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
Returns the signature of this method.
public ISignature getSignature() { return _signature; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default String getSignature() {\n StringBuilder sb = new StringBuilder();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describeType());\n }\n sb.append(\")\");\n return sb.toString();\n }", "int getSignatureType();", "String getSignature();", "String getSignature();", "String getSignature();", "public String getSignature() {\n return \"P\" + getPointedType().getSignature();\n }", "public abstract String getSignature();", "org.apache.calcite.avatica.proto.Common.Signature getSignature();", "int getSignature ();", "Signature getSignature();", "public ExecSignature getSignature() {\n\t\t\treturn ((TSExecutable)this.getTypeSpec()).getSignature();\n\t\t}", "public ExecSignature getSignature() {\n\t\t\tif(this.Signature == null) {\n\t\t\t\tthis.Signature = (ExecSignature)this.Datas[Index_ExecSignature];\n\t\t\t\tif(this.isParameterized() || this.isParametered()) {\n\t\t\t\t\tTypeRef TR = this.getTypeRef();\n\t\t\t\t\tType T = TR.getTheType();\n\t\t\t\t\tEngine E = (T == null) ? null : T.getEngine();\n\t\t\t\t\tthis.Signature = OperationInfo.SimpleOperation.ChangeBaseTypeSignature(E, TR, TR, this.Signature);\n\t\t\t\t\tthis.Signature = OperationInfo.SimpleOperation.flatSignature( E, TR, this.Signature);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn this.Signature;\n\t\t}", "public ExecSignature getSignature() {\n\t\t\treturn this.getIdentity();\n\t\t}", "public ExecSignature getSignature() {\n\t\t\treturn this.getIdentity();\n\t\t}", "public ExecSignature getSignature() {\n\t\t\treturn this.getIdentity();\n\t\t}", "public org.apache.calcite.avatica.proto.Common.Signature getSignature() {\n if (signatureBuilder_ == null) {\n return signature_ == null ? org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_;\n } else {\n return signatureBuilder_.getMessage();\n }\n }", "public String getSignature() {\n Object ref = signature_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getSignature() {\n Object ref = signature_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public org.apache.calcite.avatica.proto.Common.Signature getSignature() {\n return signature_ == null ? org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_;\n }", "protected String getCallingClassSignature() {\r\n \treturn Watcher.getCallingClassSignature(5) ;\r\n }", "public String getSignature()\r\n {\r\n return signature;\r\n }", "public String getSignature() {\n\t\treturn signature;\n\t}", "public org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder() {\n return getSignature();\n }", "public ConstUtf8 signature() {\n return typeSignature;\n }", "public String getSignature() {\n return signature;\n }", "public String getSignature() {\n return signature;\n }", "public String getSignature() {\n return signature;\n }", "@Override\n public String getSignature() {\n Object ref = signature_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n }\n }", "@Override\n public String getSignature() {\n Object ref = signature_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n }\n }", "default String getQualifiedSignature() {\n return declaringType().getId() + \".\" + this.getSignature();\n }", "com.google.protobuf.ByteString getSignature();", "public abstract byte[] getSignature();", "public String getSignature() {\n\tString sig;\n\n\tsig = dims.substring(0, dim_count);\n\tif (num_comp == 1) {\n\t if (comp[0].compareTo(\"byte\") == 0)\n\t\tsig += \"B\";\n\t else if (comp[0].compareTo(\"char\") == 0)\n\t\tsig += \"C\";\n\t else if (comp[0].compareTo(\"double\") == 0)\n\t\tsig += \"D\";\n\t else if (comp[0].compareTo(\"float\") == 0)\n\t\tsig += \"F\";\n\t else if (comp[0].compareTo(\"int\") == 0)\n\t\tsig += \"I\";\n\t else if (comp[0].compareTo(\"long\") == 0)\n\t\tsig += \"J\";\n\t else if (comp[0].compareTo(\"short\") == 0)\n\t\tsig += \"S\";\n\t else if (comp[0].compareTo(\"boolean\") == 0)\n\t\tsig += \"Z\";\n\t else if (comp[0].compareTo(\"void\") == 0)\n\t\tsig += \"V\";\n\t else {\n\t\t// Component is an object but might have implied context\n\t\tsig += \"L\" + fullName + \";\";\n\t }\n\t}\n\telse\n\t sig += \"L\" + fullName + \";\";\n\treturn(sig);\n }", "public Sig getSignature() {\n return this.sig;\n }", "public String[] getSignature() {\n\t\treturn signature;\n\t}", "public String getSignature() {\n return this.Signature;\n }", "com.google.protobuf.ByteString\n getSignatureBytes();", "com.google.protobuf.ByteString\n getSignatureBytes();", "public String getSignatureClass() {\n\t\treturn signatureClass;\n\t}", "org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder();", "@Override\n public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getMethodSignature(final Method method) {\n return getMethodSignature(method.getParameterTypes(), method.getReturnType());\n }", "public String getCurrentMethodSignature () {\n final Element[] elementPtr = new Element[] { null };\n try {\n getCurrentElement(ElementKind.METHOD, elementPtr);\n } catch (final java.awt.IllegalComponentStateException icse) {\n throw new java.awt.IllegalComponentStateException() {\n @Override\n public String getMessage() {\n icse.getMessage();\n return createSignature((ExecutableElement) elementPtr[0]);\n }\n };\n }\n if (elementPtr[0] != null) {\n return createSignature((ExecutableElement) elementPtr[0]);\n } else {\n return null;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getSignature() {\n return instance.getSignature();\n }", "public org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder() {\n if (signatureBuilder_ != null) {\n return signatureBuilder_.getMessageOrBuilder();\n } else {\n return signature_ == null ?\n org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_;\n }\n }", "public byte []\ngetSignature() {\n\treturn signature;\n}", "@java.lang.Override\n public com.google.protobuf.ByteString getSignature() {\n return signature_;\n }", "String componentSignature();", "public ExecSignature getDeclaredSignature() {\n\t\t\treturn (ExecSignature)this.Datas[Index_ExecSignature];\n\t\t}", "@NonNull\n public String getSignature() {\n return mSignature;\n }", "public int getSignature() {\n\t\ttry {\n\t\t\treturn getStream().getInt(signature);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t}", "public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private static String getMethodSignature(Class[] paramTypes, Class retType) {\n StringBuffer sbuf = new StringBuffer();\n sbuf.append('(');\n for (int i = 0; i < paramTypes.length; i++) {\n sbuf.append(getClassSignature(paramTypes[i]));\n }\n sbuf.append(')');\n sbuf.append(getClassSignature(retType));\n return sbuf.toString();\n }", "public String getBaseLocalName() {\n/* 463 */ return \"SignatureMethod\";\n/* */ }", "java.lang.String getSignatureText();", "com.microsoft.schemas.office.x2006.digsig.STSignatureType xgetSignatureType();", "public ActionParameterTypes getParametersTypes() {\n\t\treturn this.signature;\n\t}", "com.google.protobuf.ByteString getSig();", "protected byte[] getSignature() {\n return signatureImpl.calculate(content, null);\n }", "String getUniqueSignature();", "native String nativeGetSignature(long nativeHandler) throws RuntimeException;", "java.lang.String getSignatureComments();", "public static native String getSignature(long[] msgArgs);", "public String getRetType(String signature) {\n String[] tokens = (signature.split(\"\\\\s\"));\n return tokens[0];\n }", "public byte[] getSignature()\n {\n return Arrays.clone(signature);\n }", "public byte[] getSignature() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSignature():byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSignature():byte[]\");\n }", "String getReturnType();", "static MBeanParameterInfo[] methodSignature(Method method) {\r\n Class[] classes = method.getParameterTypes();\r\n MBeanParameterInfo[] params = new MBeanParameterInfo[classes.length];\r\n\r\n for (int i = 0; i < classes.length; i++) {\r\n String parameterName = \"p\" + (i + 1);\r\n params[i] = new MBeanParameterInfo(parameterName, classes[i].getName(), \"\");\r\n }\r\n\r\n return params;\r\n }", "public java.lang.String getSignatureimage () {\n\t\treturn signatureimage;\n\t}", "protected void createGetSignatureMethod() {\n MethodVisitor cv = m_cw.visitMethod(\n ACC_PUBLIC,\n GET_SIGNATURE_METHOD_NAME,\n GET_SIGNATURE_METHOD_SIGNATURE,\n null,\n null\n );\n cv.visitFieldInsn(\n GETSTATIC, m_joinPointClassName,\n SIGNATURE_FIELD_NAME, FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE\n );\n cv.visitInsn(ARETURN);\n cv.visitMaxs(0, 0);\n }", "private byte getSignatureType() \r\n \t //@ requires [?f]signatureType |-> ?theSignatureType &*& theSignatureType != null &*& theSignatureType.length == 1 &*& is_transient_byte_array(theSignatureType) == true &*& transient_byte_arrays(?ta) &*& foreachp(ta, transient_byte_array);\r\n \t //@ ensures [f]signatureType |-> theSignatureType &*& transient_byte_arrays(ta) &*& foreachp(ta, transient_byte_array);\r\n\t{\r\n\t\t//@ transient_byte_arrays_mem(theSignatureType);\r\n\t\t//@ foreachp_remove(theSignatureType, ta);\r\n\t\t//@ open transient_byte_array(theSignatureType);\r\n\t\treturn signatureType[0];\r\n\t\t//@ close transient_byte_array(theSignatureType);\r\n\t\t//@ foreachp_unremove(theSignatureType, ta);\r\n\t}", "int getSignatureProviderDetails();", "private static String signature(ILoggingEvent evt) {\n IThrowableProxy proxy = evt.getThrowableProxy();\n if (proxy == null) {\n return null;\n }\n \n // Skip LoggingEvents that originate from Gibson itself.\n Marker marker = evt.getMarker();\n if (marker != null && marker.equals(Gibson.MARKER)) {\n return null;\n }\n \n return GibsonUtils.signature(evt);\n }", "public com.google.protobuf.ByteString getSig() {\n return sig_;\n }", "public com.google.protobuf.ByteString getSig() {\n return sig_;\n }", "public String getSignatureReason()\n {\n return signatureReason;\n }", "public static String getClassSignature(Class cl) {\n StringBuffer sbuf = new StringBuffer();\n while (cl.isArray()) {\n sbuf.append('[');\n cl = cl.getComponentType();\n }\n if (cl.isPrimitive()) {\n if (cl == Integer.TYPE) {\n sbuf.append('I');\n } else if (cl == Byte.TYPE) {\n sbuf.append('B');\n } else if (cl == Long.TYPE) {\n sbuf.append('J');\n } else if (cl == Float.TYPE) {\n sbuf.append('F');\n } else if (cl == Double.TYPE) {\n sbuf.append('D');\n } else if (cl == Short.TYPE) {\n sbuf.append('S');\n } else if (cl == Character.TYPE) {\n sbuf.append('C');\n } else if (cl == Boolean.TYPE) {\n sbuf.append('Z');\n } else if (cl == Void.TYPE) {\n sbuf.append('V');\n } else {\n throw new InternalError();\n }\n } else {\n sbuf.append('L' + cl.getName().replace('.', '/') + ';');\n }\n return sbuf.toString();\n }", "@JsonValue\n TypeSignature getTypeSignature();", "public String getGraphSignature(){\n \t this.generateGraphSignature();\n \t return this.graphSignature;\n \t}", "public SignType getSignType();", "@ApiModelProperty(example = \"D8047EB8285077D9900EDD42F4081070DDB26E08E7F15A3E29642C80CF0C7D68340682DC9868C73EB09744D6298146D8DFC02ED47070FC81FB47D6F73B33EF0A\", required = true, value = \"The signature of the entity. The signature was generated by the signer and can be used to validate tha the entity data was not modified by a node. \")\n public String getSignature() {\n return signature;\n }", "public String getSigRequest() {\n return sigRequest;\r\n }", "protected String getFunctionName(ArrayList<SystemType> signature) {\n return getClass().getSimpleName().toLowerCase();\n }", "public\tString\tgetNewSignature() {\n\t\t\treturn\tthis.newSignature;\n\t\t}", "com.google.protobuf.ByteString getArtifactSignature();", "public MethodSignature(Method method)\n {\n final StringBuilder buf = new StringBuilder(method.getName()).append('(');\n for (Class<?> p : method.getParameterTypes())\n {\n appendTo(buf, p);\n }\n buf.append(')');\n this.internal = buf.toString();\n }", "@java.lang.Override\n public int getSignaturesCount() {\n return signatures_.size();\n }", "public Integer getSigntype() {\n\t\treturn signtype;\n\t}", "String getMethod();", "String getMethod();", "boolean hasSignature();", "boolean hasSignature();", "public String getMethod ()\n {\n return method;\n }", "Methodsig getMethod();", "public String getTypeName()\n {\n return getArgumentTypeName(type);\n }", "private String signature() {\n\t\t++this.nonce;\n\t\tString message = new String(this.nonce + this.username + this.apiKey);\n\t\tMac hmac = null;\n\n\t\ttry {\n\t\t\thmac = Mac.getInstance(\"HmacSHA256\");\n\t\t\tSecretKeySpec secret_key = new SecretKeySpec(\n\t\t\t\t\t((String) this.apiSecret).getBytes(\"UTF-8\"), \"HmacSHA256\");\n\t\t\thmac.init(secret_key);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidKeyException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn String.format(\"%X\",\n\t\t\t\tnew BigInteger(1, hmac.doFinal(message.getBytes())));\n\t}", "public abstract String getCurrentUserSignature(PortletRequest request);", "org.apache.xmlbeans.XmlInt xgetSignatureProviderDetails();" ]
[ "0.7811372", "0.7634423", "0.75225127", "0.75225127", "0.75225127", "0.74811083", "0.732407", "0.727832", "0.7184132", "0.71529514", "0.7036272", "0.70244706", "0.6940703", "0.6940703", "0.6940703", "0.69219965", "0.69152886", "0.69152886", "0.6889908", "0.6870562", "0.6864523", "0.6845974", "0.68376577", "0.68312645", "0.68283385", "0.68283385", "0.68283385", "0.68246865", "0.68246865", "0.68146336", "0.68044776", "0.6703797", "0.6678805", "0.6666808", "0.6662287", "0.6660339", "0.66336215", "0.66336215", "0.662565", "0.66216624", "0.6573273", "0.6573273", "0.6559476", "0.65522766", "0.6551749", "0.6548883", "0.65247136", "0.6520473", "0.64909214", "0.64818543", "0.64777917", "0.6468402", "0.64583945", "0.64583945", "0.64342034", "0.6303078", "0.6267093", "0.6166991", "0.6151975", "0.6151614", "0.60977393", "0.6080331", "0.6072425", "0.6058195", "0.6035458", "0.59951156", "0.5971912", "0.59504455", "0.5919779", "0.58968276", "0.5885414", "0.58782", "0.5872238", "0.58626324", "0.5856284", "0.5845186", "0.5838865", "0.5830305", "0.5816718", "0.5809312", "0.57859194", "0.5770412", "0.5765739", "0.5757554", "0.5742759", "0.5739497", "0.5718657", "0.56616485", "0.5625472", "0.56089425", "0.5600508", "0.5600508", "0.55749446", "0.55749446", "0.55326974", "0.5517355", "0.5510567", "0.5497679", "0.5480603", "0.5468373" ]
0.6216709
57
Called when activity begins, sets up the browser and loads the gatech web email client. DOES NOT automatically authenticate in its current state.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.web); browser = (WebView) findViewById(R.id.webview); browser.setWebViewClient(new CustomWebViewClient()); browser.getSettings().setJavaScriptEnabled(true); browser.loadUrl("http://www.mail.gatech.edu"); //TODO automatically log in using saved credentials }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onCreate() {\r\n\t\trelayState = null;\r\n\t\tdomainName = ((Person) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getDomain().getName();\r\n\t\tgoogleAccount = ((Person) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getGoogleAccount();\r\n\t\tregistry = ((Person) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getRegistry();\r\n\t\tacsForm = new AcsForm(domainName);\r\n\t\tappendChild(acsForm);\r\n\t\ticeForm = new IceForm();\r\n\t\tappendChild(iceForm);\r\n\t\ticeAppsController = (IceAppsController) SpringUtil.getBean(\"iceAppsController\");\r\n\t}", "public EmailerClientGUI() {\r\n\t\t//dblogic.load();\r\n\t\tsetupEmailStorage();\r\n\t\tinitialize();\r\n\t\tsetupFrameSaveFeature();\r\n\t\tsetupServerSettings();\r\n\t\tsetupCredentials();\r\n\t\tsetupBackup();\r\n\t\tsetupImport();\r\n\t\tsetupEditAndTemplate();\r\n\t\tconfigurePromo();\r\n\t\tsetupTimer();\r\n\t\tsetupDismiss();\r\n\t\tsetupExit();\r\n\t\tsetTemplateButtons();\r\n\t\tconfigureEnableButtons();\r\n\t\t\r\n\t\tsetupSender();\r\n\t\r\n\t}", "private void setUpWebView() {\n setWebViewClient(new MPulseInboxWebViewClient());\n setWebChromeClient(new MPulseInboxWebChromeClient());\n configureWebViewSettings();\n }", "@Test\n\t@BeforeSuite\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.get(\"https://www.gmail.com\");\n\t\tmanageInit();\n\t\n\t}", "private static void COA() throws InterruptedException, AWTException {\n\r\n\t\t// TODO Auto-generated method stub\r\n\t\tMap<String, Object> prefs = new HashMap<String, Object>();\r\n\t\tprefs.put(\"profile.default_content_setting_values.notifications\", 2);\r\n \r\n\r\n\t\t//Create an instance of ChromeOptions \r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\toptions.setExperimentalOption(\"prefs\", prefs);\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tSystem.out.println(\"Driver initiated\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\t\r\n\t\t//Loading the website\r\n\t\tdriver.get(\"https://apps.google.com/meet/\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Website loaded.\");\r\n\t\t\r\n\t\t//Clicks on the sign in button \r\n\t\tdriver.findElement(By.xpath(\"/html/body/header/div[1]/div/div[3]/div[1]/div/span[1]/a\")).click();\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Sign in page loaded.\");\r\n\t\t\r\n\t\t//Clicks on the email field\r\n\t\tThread thread = new Thread();\r\n\t\t\r\n\t\tif(driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div/div[1]/div/div[1]/input\")) == null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Email\");\r\n\t\t\tWebElement email =driver.findElement(By.id(\"Email\"));\r\n\t\t\temail.sendKeys(\"<Enter Email Here>\");\r\n\t\t\temail.sendKeys(Keys.ENTER);\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Email2\");\r\n\t\t\tWebElement email1=driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div/div[1]/div/div[1]/input\"));\r\n\t\t\temail1.sendKeys(\"<Enter Email Here>\");\r\n\t\t\temail1.sendKeys(Keys.ENTER);\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t\tthread.sleep(2000);\r\n\t\t\tSystem.out.println(\"Thread slept\");// Thread slept due to password enter issues \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\tthread.run();// Thread resumed\r\n\t\tSystem.out.println(\"Thread run\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Password time!!!!\");\r\n\t\t// Password entered\r\n\t\tWebElement password = driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div[1]/div/div/div/div/div[1]/div/div[1]/input\"));\r\n\t\tpassword.sendKeys(\"<Enter Password Here>\");\r\n\t\tpassword.sendKeys(Keys.ENTER);// Enter key\r\n\t\tSystem.out.println(\"Password entered\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t// Enter meeting ID\r\n\t\tSystem.out.println(\"Meeting ID\");\r\n\t\tdriver.findElement(By.xpath(\"/html/body/div[1]/c-wiz/div/div/div/div[2]/div[2]/div[2]/div/c-wiz/div[1]/div/div/div[1]/div\")).click();\r\n\t\tWebElement meetID=driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div[2]/span/div/div[2]/div[1]/div[1]/input\"));\r\n\t\tmeetID.sendKeys(\"seitacoa\");\r\n\t\tSystem.out.println(\"ID Entered\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tthread.sleep(2000);\r\n\t\tthread.run();\r\n\t\tmeetID.sendKeys(Keys.ENTER);\r\n\t\tSystem.out.println(\"Key Enter\");\r\n\t\t\r\n\t\tthread.sleep(5000);\r\n\t\tSystem.out.println(\"Thread slept\");\r\n\t\tthread.run();\r\n\t\tSystem.out.println(\"thread running\");\r\n\t\t\r\n\t\t\r\n\t\t//alert.dismiss();\r\n\t\t\r\n\t\tthread.sleep(5000);\r\n\t\tthread.run();\r\n\t\r\n\t\tRobot robo = new Robot();\r\n\t\tthread.sleep(5000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_ENTER);\r\n\t\tthread.sleep(5000);\r\n\t\tthread.run();\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"/html/body/div/c-wiz/div/div/div[8]/div[3]/div/div/div[2]/div/div[1]/div[2]/div/div[2]/div/div[1]/div[1]/span/span\")).click();\r\n\t\tthread.sleep(3900000);\r\n\t\tdriver.close();\r\n\t\r\n\t}", "public void email() {\n\t\t\t\temailGUI = new EmailGUI();\n\t\t\t\tpopUpWindow = emailGUI.getFrame();\n\t\t\t\tpopUpWindow.setVisible(true);\n\t\t\t\temailGUI.setListeners(new mailListener());\n\t\t\t}", "public TycoAgent() {\n\n\t\t// Initialize the Gmail, clear its emails via initialize(), initialize\n\t\t// the whole map with the init message, then initialize the new map,\n\t\t// dummy databse, auth users, and auth threads\n\t\tjciEmail = GmailAuthorize.getGmailService();\n\t\t// initialize();\n\t\trecentMailMap = new HashMap<String, Mail>();\n\n\t}", "private static void PL() throws InterruptedException, AWTException {\n\r\n\t\t// TODO Auto-generated method stub\r\n\t\tMap<String, Object> prefs = new HashMap<String, Object>();\r\n\t\tprefs.put(\"profile.default_content_setting_values.notifications\", 2);\r\n \r\n\r\n\t\t//Create an instance of ChromeOptions \r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\toptions.setExperimentalOption(\"prefs\", prefs);\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver(options);\r\n\t\tSystem.out.println(\"Driver initiated\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\t\r\n\t\t//Loading the website\r\n\t\tdriver.get(\"https://apps.google.com/meet/\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Website loaded.\");\r\n\t\t\r\n\t\t//Clicks on the sign in button \r\n\t\tdriver.findElement(By.xpath(\"/html/body/header/div[1]/div/div[3]/div[1]/div/span[1]/a\")).click();\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Sign in page loaded.\");\r\n\t\t\r\n\t\t//Clicks on the email field\r\n\t\tThread thread = new Thread();\r\n\t\t\r\n\t\tif(driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div/div[1]/div/div[1]/input\")) == null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Email\");\r\n\t\t\tWebElement email =driver.findElement(By.id(\"Email\"));\r\n\t\t\temail.sendKeys(\"<Enter Email Here>\");\r\n\t\t\temail.sendKeys(Keys.ENTER);\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Email2\");\r\n\t\t\tWebElement email1=driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div/div[1]/div/div[1]/input\"));\r\n\t\t\temail1.sendKeys(\"<Enter Email Here>\");\r\n\t\t\temail1.sendKeys(Keys.ENTER);\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t\tthread.sleep(2000);\r\n\t\t\t\r\n\t\t}\r\n\t\tthread.run();// Thread resumed\r\n\t\tSystem.out.println(\"Thread run\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Password time!!!!\");\r\n\t\t// Password entered\r\n\t\tWebElement password = driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div[1]/div/div/div/div/div[1]/div/div[1]/input\"));\r\n\t\tpassword.sendKeys(\"<Enter Password Here>\");\r\n\t\tpassword.sendKeys(Keys.ENTER);// Enter key\r\n\t\tSystem.out.println(\"Password entered\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t// Enter meeting ID\r\n\t\tSystem.out.println(\"Meeting ID\");\r\n\t\tdriver.findElement(By.xpath(\"/html/body/div[1]/c-wiz/div/div/div/div[2]/div[2]/div[2]/div/c-wiz/div[1]/div/div/div[1]/div\")).click();\r\n\t\tWebElement meetID=driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div[2]/span/div/div[2]/div[1]/div[1]/input\"));\r\n\t\tmeetID.sendKeys(\"seitapl\");\r\n\t\tSystem.out.println(\"ID Entered\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tthread.sleep(2000);\r\n\t\tthread.run();\r\n\t\tmeetID.sendKeys(Keys.ENTER);\r\n\t\tSystem.out.println(\"Key Enter\");\r\n\t\t\r\n\t\tthread.sleep(5000);\r\n\t\tSystem.out.println(\"Thread slept\");\r\n\t\tthread.run();\r\n\t\tSystem.out.println(\"thread running\");\r\n\t\t\r\n\t\t\r\n\t\t//alert.dismiss();\r\n\t\t\r\n\t\tthread.sleep(5000);\r\n\t\tthread.run();\r\n\t\r\n\t\tRobot robo = new Robot();\r\n\t\tthread.sleep(5000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_ENTER);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"/html/body/div/c-wiz/div/div/div[8]/div[3]/div/div/div[2]/div/div[1]/div[2]/div/div[2]/div/div[1]/div[1]/span/span\")).click();\r\n\t\tthread.sleep(3900000);\r\n\t\tdriver.close();\r\n\t\t\r\n\t}", "public NewSessionGui() {\n initComponents();\n client = new HttpBraimClient();\n setLocationRelativeTo(null);\n }", "private static void CompsNet() throws InterruptedException, AWTException \r\n\t{\n\r\n\t\tMap<String, Object> prefs = new HashMap<String, Object>();\r\n\t\tprefs.put(\"profile.default_content_setting_values.notifications\", 2);\r\n \r\n\r\n\t\t//Create an instance of ChromeOptions \r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\toptions.setExperimentalOption(\"prefs\", prefs);\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver(options);\r\n\t\tSystem.out.println(\"Driver initiated\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\t\r\n\t\t//Loading the website\r\n\t\tdriver.get(\"https://apps.google.com/meet/\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Website loaded.\");\r\n\t\t\r\n\t\t//Clicks on the sign in button \r\n\t\tdriver.findElement(By.xpath(\"/html/body/header/div[1]/div/div[3]/div[1]/div/span[1]/a\")).click();\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Sign in page loaded.\");\r\n\t\t\r\n\t\t//Clicks on the email field\r\n\t\tThread thread = new Thread();\r\n\t\t\r\n\t\tif(driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div/div[1]/div/div[1]/input\")) == null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Email\");\r\n\t\t\tWebElement email =driver.findElement(By.id(\"Email\"));\r\n\t\t\temail.sendKeys(\"<Enter Email Here>\");\r\n\t\t\temail.sendKeys(Keys.ENTER);\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Email2\");\r\n\t\t\tWebElement email1=driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div/div[1]/div/div[1]/input\"));\r\n\t\t\temail1.sendKeys(\"<Enter Email Here>\");\r\n\t\t\temail1.sendKeys(Keys.ENTER);\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t\tthread.sleep(2000);\r\n\t\t\tSystem.out.println(\"Thread slept\");// Thread slept due to password enter issues \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\tthread.run();// Thread resumed\r\n\t\tSystem.out.println(\"Thread run\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Password time!!!!\");\r\n\t\t// Password entered\r\n\t\tWebElement password = driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div[1]/div/div/div/div/div[1]/div/div[1]/input\"));\r\n\t\tpassword.sendKeys(\"<Enter Password Here>\");\r\n\t\tpassword.sendKeys(Keys.ENTER);// Enter key\r\n\t\tSystem.out.println(\"Password entered\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t// Enter meeting ID\r\n\t\tSystem.out.println(\"Meeting ID\");\r\n\t\tdriver.findElement(By.xpath(\"/html/body/div[1]/c-wiz/div/div/div/div[2]/div[2]/div[2]/div/c-wiz/div[1]/div/div/div[1]/div\")).click();\r\n\t\tWebElement meetID=driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div[2]/span/div/div[2]/div[1]/div[1]/input\"));\r\n\t\tmeetID.sendKeys(\"seitacn\");\r\n\t\tSystem.out.println(\"ID Entered\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tthread.sleep(2000);\r\n\t\tthread.run();\r\n\t\tmeetID.sendKeys(Keys.ENTER);\r\n\t\tSystem.out.println(\"Key Enter\");\r\n\t\t\r\n\t\tthread.sleep(2000);\r\n\t\tSystem.out.println(\"Thread slept\");\r\n\t\tthread.run();\r\n\t\tSystem.out.println(\"thread running\");\r\n\t\t\r\n\t\r\n\t\tRobot robo = new Robot();\r\n\t\tthread.sleep(5000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_ENTER);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\t\r\n\t\tthread.sleep(5000);\r\n\t\tthread.run();\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"/html/body/div/c-wiz/div/div/div[8]/div[3]/div/div/div[2]/div/div[1]/div[2]/div/div[2]/div/div[1]/div[1]/span/span\")).click();\r\n\t\t\r\n\t\tthread.sleep(3900000);\r\n\t\tdriver.close();\r\n\t\t\r\n\t}", "private static void OS() throws InterruptedException, AWTException {\n\r\n\t\t// TODO Auto-generated method stub\r\n\t\tMap<String, Object> prefs = new HashMap<String, Object>();\r\n\t\tprefs.put(\"profile.default_content_setting_values.notifications\", 2);\r\n \r\n\r\n\t\t//Create an instance of ChromeOptions \r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\toptions.setExperimentalOption(\"prefs\", prefs);\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver(options);\r\n\t\tSystem.out.println(\"Driver initiated\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\t\r\n\t\t//Loading the website\r\n\t\tdriver.get(\"https://apps.google.com/meet/\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Website loaded.\");\r\n\t\t\r\n\t\t//Clicks on the sign in button \r\n\t\tdriver.findElement(By.xpath(\"/html/body/header/div[1]/div/div[3]/div[1]/div/span[1]/a\")).click();\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Sign in page loaded.\");\r\n\t\t\r\n\t\t//Clicks on the email field\r\n\t\tThread thread = new Thread();\r\n\t\t\r\n\t\tif(driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div/div[1]/div/div[1]/input\")) == null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Email\");\r\n\t\t\tWebElement email =driver.findElement(By.id(\"Email\"));\r\n\t\t\temail.sendKeys(\"<Enter Email Here>\");\r\n\t\t\temail.sendKeys(Keys.ENTER);\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Email2\");\r\n\t\t\tWebElement email1=driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div/div[1]/div/div[1]/input\"));\r\n\t\t\temail1.sendKeys(\"<Enter Email Here>\");\r\n\t\t\temail1.sendKeys(Keys.ENTER);\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t\tthread.sleep(2000);\r\n\t\t\tSystem.out.println(\"Thread slept\");// Thread slept due to password enter issues \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\tthread.run();// Thread resumed\r\n\t\tSystem.out.println(\"Thread run\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Password time!!!!\");\r\n\t\t// Password entered\r\n\t\tWebElement password = driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div[1]/div/div/div/div/div[1]/div/div[1]/input\"));\r\n\t\tpassword.sendKeys(\"<Enter Password Here>\");\r\n\t\tpassword.sendKeys(Keys.ENTER);// Enter key\r\n\t\tSystem.out.println(\"Password entered\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t// Enter meeting ID\r\n\t\tSystem.out.println(\"Meeting ID\");\r\n\t\tdriver.findElement(By.xpath(\"/html/body/div[1]/c-wiz/div/div/div/div[2]/div[2]/div[2]/div/c-wiz/div[1]/div/div/div[1]/div\")).click();\r\n\t\tWebElement meetID=driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div[2]/span/div/div[2]/div[1]/div[1]/input\"));\r\n\t\tmeetID.sendKeys(\"seitaos\");\r\n\t\tSystem.out.println(\"ID Entered\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tthread.sleep(2000);\r\n\t\tthread.run();\r\n\t\tmeetID.sendKeys(Keys.ENTER);\r\n\t\tSystem.out.println(\"Key Enter\");\r\n\t\t\r\n\t\tthread.sleep(5000);\r\n\t\tSystem.out.println(\"Thread slept\");\r\n\t\tthread.run();\r\n\t\tSystem.out.println(\"thread running\");\r\n\t\t\r\n\t\t\r\n\t\t//alert.dismiss();\r\n\t\t\r\n\t\tthread.sleep(5000);\r\n\t\tthread.run();\r\n\t\r\n\t\tRobot robo = new Robot();\r\n\t\tthread.sleep(5000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_ENTER);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"/html/body/div/c-wiz/div/div/div[8]/div[3]/div/div/div[2]/div/div[1]/div[2]/div/div[2]/div/div[1]/div[1]/span/span\")).click();\r\n\t\t\r\n\t\tthread.sleep(3900000);\r\n\t\tdriver.close();\r\n\t\r\n\t}", "@Override\n protected void onStart(){\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestEmail()\n .build();\n\n // Build a GoogleSignInClient with the options specified by gso.\n mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n super.onStart();\n }", "private static void Automata() throws InterruptedException, AWTException {\n\r\n\t\t// TODO Auto-generated method stub\r\n\t\tMap<String, Object> prefs = new HashMap<String, Object>();\r\n\t\tprefs.put(\"profile.default_content_setting_values.notifications\", 2);\r\n \r\n\r\n\t\t//Create an instance of ChromeOptions \r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\toptions.setExperimentalOption(\"prefs\", prefs);\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\t\r\n\t\tWebDriver driver = new ChromeDriver(options);\r\n\t\tSystem.out.println(\"Driver initiated\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\t\r\n\t\t//Loading the website\r\n\t\tdriver.get(\"https://apps.google.com/meet/\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Website loaded.\");\r\n\t\t\r\n\t\t//Clicks on the sign in button \r\n\t\tdriver.findElement(By.xpath(\"/html/body/header/div[1]/div/div[3]/div[1]/div/span[1]/a\")).click();\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Sign in page loaded.\");\r\n\t\t\r\n\t\t//Clicks on the email field\r\n\t\tThread thread = new Thread();\r\n\t\t\r\n\t\tif(driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div/div[1]/div/div[1]/input\")) == null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Email\");\r\n\t\t\tWebElement email =driver.findElement(By.id(\"Email\"));\r\n\t\t\temail.sendKeys(\"<Enter Email Here>\");\r\n\t\t\temail.sendKeys(Keys.ENTER);\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Email2\");\r\n\t\t\tWebElement email1=driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div/div[1]/div/div[1]/input\"));\r\n\t\t\temail1.sendKeys(\"<Enter Email Here>\");\r\n\t\t\temail1.sendKeys(Keys.ENTER);\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t\tthread.sleep(2000);\r\n\t\t\tSystem.out.println(\"Thread slept\");// Thread slept due to password enter issues \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\tthread.run();// Thread resumed\r\n\t\tSystem.out.println(\"Thread run\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"//////////////////////////////////////////\");\r\n\t\tSystem.out.println(\"Password time!!!!\");\r\n\t\t// Password entered\r\n\t\tWebElement password = driver.findElement(By.xpath(\"/html/body/div[1]/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div[1]/div/div/div/div/div[1]/div/div[1]/input\"));\r\n\t\tpassword.sendKeys(\"<Enter Password Here>\");\r\n\t\tpassword.sendKeys(Keys.ENTER);// Enter key\r\n\t\tSystem.out.println(\"Password entered\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t// Enter meeting ID\r\n\t\tSystem.out.println(\"Meeting ID\");\r\n\t\tdriver.findElement(By.xpath(\"/html/body/div[1]/c-wiz/div/div/div/div[2]/div[2]/div[2]/div/c-wiz/div[1]/div/div/div[1]/div\")).click();\r\n\t\tWebElement meetID=driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div[2]/span/div/div[2]/div[1]/div[1]/input\"));\r\n\t\tmeetID.sendKeys(\"seitaat\");\r\n\t\tSystem.out.println(\"ID Entered\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\t\tthread.sleep(2000);\r\n\t\tthread.run();\r\n\t\tmeetID.sendKeys(Keys.ENTER);\r\n\t\tSystem.out.println(\"Key Enter\");\r\n\t\t\r\n\t\tthread.sleep(5000);\r\n\t\tSystem.out.println(\"Thread slept\");\r\n\t\tthread.run();\r\n\t\tSystem.out.println(\"thread running\");\r\n\t\t\r\n\t\t\r\n\t\t//alert.dismiss();\r\n\t\t\r\n\t\tthread.sleep(5000);\r\n\t\tthread.run();\r\n\t\r\n\t\tRobot robo = new Robot();\r\n\t\tthread.sleep(5000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_TAB);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\trobo.keyPress(KeyEvent.VK_ENTER);\r\n\t\tthread.sleep(1000);\r\n\t\tthread.run();\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"/html/body/div/c-wiz/div/div/div[8]/div[3]/div/div/div[2]/div/div[1]/div[2]/div/div[2]/div/div[1]/div[1]/span/span\")).click();\r\n\t\t\r\n\t\tthread.sleep(3900000);\r\n\t\tdriver.close();\r\n\t\r\n\t}", "public void awake()\n {\n super.awake();\n if ( log.isDebugEnabled() )\n {\n log.debug( \"awake(): session id = \" + context()._requestSessionID());\n log.debug( \"awake(): errors = \" + errors );\n log.debug( \"awake(): domain = \" + domain );\n log.debug( \"awake(): parameters = \"\n + context().request().formValues() );\n }\n\n domainDisplayGroup.setObjectArray(\n AuthenticationDomain.authDomainStubs() );\n if ( domain == null )\n {\n domain = AuthenticationDomain.defaultDomainStub();\n }\n log.debug( \"awake(): domain = \" + domain );\n\n sendEmailIfNecessary();\n if ( log.isDebugEnabled() )\n {\n log.debug( \"awake(): errors = \" + errors );\n }\n }", "@Before\n\tpublic void setup() throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"G:\\\\bahubali2\\\\chromedriver.exe\");\n\t\tdrv = new ChromeDriver();\n\t\t// launching gmail.com on the browser\n\t\tdrv.get(\"https://accounts.google.com/signin/v2/identifier?continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&service=mail&sacu=1&rip=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin\");\n\t\t// maximized the browser window\n\t\t//drv.manage().deleteAllCookies();\n\t\t\n\t\tdrv.manage().window().maximize();\n\t\tdrv.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t}", "@Override\n public void establish() {\n logger.info(\"Opening page {}...\", pageObject);\n initializePage();\n pageObject.open();\n }", "public ClientApp()\n\t{\n\t\tinitComponents();\n\t\tafterInitComponents();\n\t}", "public static void launchingBrowser() throws Exception {\n\n\t\tString applicationURL = merchEnv.getProtocol() + \"://\"\n\t\t\t\t+ merchEnv.getHost() + \":\" + merchEnv.getPort() + \"/\";\n\t\tselectedBrowser = merchEnv.getBrowser();\n\t\ttry {\n\t\t\tbaseScreen = new BaseScreen(selectedBrowser, applicationURL,\n\t\t\t\t\tmerchEnv.getContext(), merchEnv, merchUserInfo, merchUI);\n\t\t} catch (ScreenException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n \n mPortalStateChangedReceiver = new PortalStateChangedReceiver();\n registerReceiver(mPortalStateChangedReceiver,\n mPortalStateChangedReceiver.INTENT_FILTER);\n \n setContentView(R.layout.portal_signin_layout);\n getWindow().setLayout(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n \n mPortalInfo = new PortalInfo(getIntent());\n \n mWebView = (WebView) findViewById(R.id.webview);\n mProgressBar = (ProgressBar) findViewById(R.id.progress);\n \n initializeWebView();\n \n String portalUrl = mPortalInfo.getPortalUrl();\n \n if (BuildConfig.DEBUG && portalUrl.length() == 0)\n {\n portalUrl = \"http://www.google.com\";\n }\n \n Log.d(LOG_TAG, \"Loading portal url: \" + portalUrl);\n \n mWebView.loadUrl(portalUrl);\n }", "public void setupTask() {\n\t\tif (!hasInternetConnection()) {\n\t\t\tdlgNoInet.show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tsetupMessageHandler();\n\t\t\n\t\t// Activate text box if user is logged in.\n\t\tString userid = checkLogin();\n\t\tLog.d(\"TIMER\", \"User logged in: \" + userid);\n\t\tif (userid != null && userid.length() > 0 && etMessage != null) {\n\t\t\tsetupSendMessageListener();\n\t\t\tetMessage.setEnabled(true);\n\t\t\thideVirtualKeyboard();\n\t\t}\n\t\t\n\t\t// Setup the message cursor object.\n\t\tsetupMessageCursor();\n\n\t\t// Start message listener if base url is set.\n\t\tstartMessageListener();\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n sendToLogin();\n }", "public static void start() {\n final Context appContext = ContextUtils.getApplicationContext();\n tryObtainingDataDirLock(appContext);\n // We must post to the UI thread to cover the case that the user\n // has invoked Chromium startup by using the (thread-safe)\n // CookieManager rather than creating a WebView.\n ThreadUtils.runOnUiThreadBlocking(new Runnable() {\n @Override\n public void run() {\n boolean multiProcess = CommandLine.getInstance().hasSwitch(\n AwSwitches.WEBVIEW_SANDBOXED_RENDERER);\n if (multiProcess) {\n // Have a background thread warm up a renderer process now, so that this can\n // proceed in parallel to the browser process initialisation.\n AsyncTask.THREAD_POOL_EXECUTOR.execute(new Runnable() {\n @Override\n public void run() {\n ChildProcessLauncher.warmUp(appContext);\n }\n });\n }\n // The policies are used by browser startup, so we need to register the policy\n // providers before starting the browser process. This only registers java objects\n // and doesn't need the native library.\n CombinedPolicyProvider.get().registerProvider(new AwPolicyProvider(appContext));\n\n try {\n BrowserStartupController.get(appContext, LibraryProcessType.PROCESS_WEBVIEW)\n .startBrowserProcessesSync(!multiProcess);\n } catch (ProcessInitException e) {\n throw new RuntimeException(\"Cannot initialize WebView\", e);\n }\n }\n });\n }", "private void initializeChannelize() {\n ChannelizeConfig channelizeConfig = new ChannelizeConfig.Builder(this)\n .setAPIKey(Config.API_KEY)\n .setLoggingEnabled(true).build();\n Channelize.initialize(channelizeConfig);\n Channelize.getInstance().setCurrentUserId(ChannelizePreferences.getCurrentUserId(getContext()));\n if (Channelize.getInstance().getCurrentUserId() != null\n && !Channelize.getInstance().getCurrentUserId().isEmpty()) {\n Channelize.connect();\n }\n\n ChannelizeUIConfig channelizeUIConfig = new ChannelizeUIConfig.Builder()\n .enableCall(true)\n .build();\n ChannelizeUI.initialize(channelizeUIConfig);\n channelize = Channelize.getInstance();\n\n ChannelizeUtils channelizeUtils = ChannelizeUtils.getInstance();\n channelizeUtils.setOnConversationClickListener(this);\n }", "public void onModuleLoad() {\r\n\t\trpcService = GWT.create(ContactService.class);\r\n\t\teventBus = new HandlerManager(null);\r\n\t\tappViewer = new AppController(rpcService, eventBus);\r\n\t\tappViewer.go(RootPanel.get(\"initView\"));\r\n\t}", "protected void setup() {\n\t\tSystem.out.println(\"Messenger agent \"+getAID().getName()+\" is ready.\");\r\n\t\tagentList = new ArrayList();\r\n\t\trefreshActiveAgents();\r\n\r\n\t\tmessageGUI = new MessageAgentGui(this);\r\n\t\tmessageGUI.displayGUI();\r\n\r\n\t\tDFAgentDescription dfd = new DFAgentDescription();\r\n\t\tdfd.setName(getAID());\r\n\t\tServiceDescription sd = new ServiceDescription();\r\n\t\tsd.setType(\"messenger-agent\");\r\n\t\tsd.setName(getLocalName()+\"-Messenger agent\");\r\n\t\tdfd.addServices(sd);\r\n\t\ttry {\r\n\t\t\tDFService.register(this, dfd);\r\n\t\t}\r\n\t\tcatch (FIPAException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\t\taddBehaviour(new ReceiveMessage());\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n try {\n ChromeBrowserInitializer.getInstance(this).handleSynchronousStartup();\n } catch (ProcessInitException e) {\n Log.e(TAG, \"Failed to start browser process.\", e);\n // Since the library failed to initialize nothing in the application\n // can work, so kill the whole application not just the activity\n System.exit(-1);\n }\n\n // We don't trust android to restore the saved state correctly, so pass null.\n super.onCreate(null);\n setContentView(R.layout.account_signin_view_cheetah);\n\n mGoogleSign = new GoogleSignin(this, this);\n\n ButtonCompat positiveButton = (ButtonCompat) findViewById(R.id.positive_button);\n positiveButton.setOnClickListener(view -> mGoogleSign.signIn());\n\n Button negativeButton = (Button) findViewById(R.id.negative_button);\n negativeButton.setOnClickListener(view -> finish());\n\n String google = \"Google\";\n ((TextView) findViewById(R.id.account_name)).setText(google);\n }", "private void init() {\n\t\tutils = new MmustUtils(Authenticate.this);\n\t\treceiver = new AuthReceiver();\n\t\t\n\t\tetRegno = (EditText)findViewById(R.id.authenticate_editText_reg_no);\n\t\tetPassword = (EditText)findViewById(R.id.authenticate_editText_password);\n\t\tetPassword.addTextChangedListener(this);\n\t\t\n\t\tbtAuth = (Button)findViewById(R.id.authenticate_button_auth);\n\t\tbtAuth.setOnClickListener(this);\n\t\t\n\t\tivPeek = (ImageView)findViewById(R.id.authenticate_imageView_view_password);\n\t\tivPeek.setVisibility(ImageView.GONE);\n\t\tivPeek.setOnClickListener(this);\n\t\t\n\t\t\n\t\tpbAuthenticating = (ProgressBar)findViewById(R.id.authenticate_progressBar_authenticating);\n\t\tpbAuthenticating.setVisibility(ProgressBar.GONE);\n\t\t\n\t\ttvLoginFail = (TextView)findViewById(R.id.authenticate_textView_login_fail);\n\t\ttvLoginFail.setVisibility(TextView.GONE);\n\t\t\n\t\tgetRegisteredEmails();\n\t\t\n\t}", "public Launcher()\n {\n // Loading (or creating) the preferences file\n // TODO: handle read/create file failed (maybe with an error popup?)\n boolean settingsLoaded = settings.checkAndLoad();\n\n if (!settingsLoaded) {\n System.exit(-10);\n }\n\n LoginController loginController = configureController(new LoginController());\n configureController(new ContactsController());\n configureController(new ConversationsController());\n\n /**\n * --------------------------\n * Event listeners\n * --------------------------\n */\n eventManager.attach(MvcEvent.WINDOW_CLOSING, new SaveOnExitListener());\n\n\n /**\n * --------------------------\n * Running the application\n * --------------------------\n */\n loginController.displayLogin();\n }", "public MailerPanel() {\n initComponents();\n }", "@Override\n\tpublic void start() {\n\t\ttry {\n\t\t\tif ( _webView instanceof BBWebView) {\n\t\t\t\t_webView.start();\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tConsole.Log(ex.getMessage());\n\t\t}\n\t}", "private static void signInCorpMailApp()\n\t{\n\t\t\n\t\tif(driver==null)\n\t\t\tlaunchBrowser();\n\t\t\n\t\tdriver.get(\"https://mail.nagra.com/\");\n\t\t\n\t\tCommonUtil.sleep(30);\n\t\t\n\t\t/*WebElement txtUserName = driver.findElement(By.id(\"username\"));\n\t\tWebElement txtPassword = driver.findElement(By.id(\"password\"));\n\t\t\n\t\tdriver.getTitle()\n\t\t\n\t\t//Input user name\n\t\ttxtUserName.clear();\n\t\ttxtUserName.sendKeys(username);\n\t\t\n\t\t//Input password\n\t\ttxtPassword.clear();\n\t\ttxtPassword.sendKeys(password);\n\t\t\n\t\t//Click login\n\t\tdriver.findElement(By.id(\"SubmitCreds\")).click();*/\n\t}", "public void logon ()\n {\n ClientResolutionListener clr = new ClientResolutionListener() {\n public void clientResolved (Name username, ClientObject clobj) {\n // fake up a bootstrap; I need to expose the mechanisms in\n // Presents that create it in a network environment\n BootstrapData data = new BootstrapData();\n data.clientOid = clobj.getOid();\n data.services = EditorServer.invmgr.bootlist;\n\n // and configure the client to operate using the server's\n // distributed object manager\n _client.getContext().getClient().gotBootstrap(\n data, EditorServer.omgr);\n }\n\n public void resolutionFailed (Name username, Exception reason) {\n log.log(Level.WARNING, \"Failed to resolve client [who=\" +\n username + \"].\", reason);\n // TODO: display this error\n }\n };\n EditorServer.clmgr.resolveClientObject(new Name(\"editor\"), clr);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n loadMainActivity = (ProgressBar) findViewById(R.id.load_mainactivity);\n recyclerView = (RecyclerView)findViewById(R.id.recyclerview_for_main_activity);\n toolbar_main_activity = (Toolbar) findViewById(R.id.activity_main_toolbar);\n setSupportActionBar(toolbar_main_activity);\n AuthenticationRequest.Builder builder = new AuthenticationRequest.Builder\n (clientId, AuthenticationResponse.Type.TOKEN, redirectUri);\n AuthenticationRequest request = builder.build();\n AuthenticationClient.openLoginActivity(this, request_Code, request);\n }", "public Client_app() {\n initComponents();\n }", "public static void initialization() {\n\t\tSystem.out.println(\"**Open initialization**\");\r\n\t\tString browserName = props.getProperty(\"browser\");\r\n\t\tSystem.out.println(\"Browser User = \" + browserName + \" URL = \" + props.getProperty(\"url\"));\r\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:/Selenium Automation/chromedriver/chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\r\n\t\tdriver.get(props.getProperty(\"url\"));\r\n\t\tSystem.out.println(\"**Close initialization**\");\r\n\t}", "public InviteEmail_1() {\n initComponents();\n }", "private void configureSignup() {\n\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(this.getResources().getString(R.string.web_client_id))\n .requestEmail().build();\n\n // Build a GoogleApiClient with access to GoogleSignIn.API and the options above.\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)\n .addApi(Auth.GOOGLE_SIGN_IN_API, gso)\n .build();\n\n\n mGoogleApiClient.connect();\n }", "public CommunicationController() {\r\n _context = new Context(\"MyContext\");\r\n _app = UiApplication.getUiApplication();\r\n try {\r\n // Read settings from config.xml\r\n ECHO_SERVER_URI = Utils.getEchoServerUri();\r\n TIMEOUT = Utils.getTimeout();\r\n } catch (final Exception e) {\r\n alertDialog(e.toString());\r\n }\r\n }", "public HomePage(WebDriver dr,String email){\n this.driver = dr;\n wait = new WebDriverWait(dr,10);\n this.email = email;\n }", "public void launchYopmail() throws Exception {\n\t\twdriver.get(WebData.urlOfYopmail);\n\t}", "void authenticate() {\n if (lifecycle != null) {\n lifecycle.addObserver(this);\n } else {\n activity.getApplication().registerActivityLifecycleCallbacks(this);\n }\n biometricPrompt = new BiometricPrompt(activity, uiThreadExecutor, this);\n biometricPrompt.authenticate(promptInfo);\n }", "public CheckMail() {\n initComponents();\n \n \n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }", "private void initHomeScreenFlowFlow(){\n Button btnLogin = (Button) findViewById(R.id.btnLogin);\n btnLogin.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String email = ((EditText) findViewById(R.id.txtEmail)).getText().toString();\n String password = ((EditText) findViewById(R.id.txtPwd)).getText().toString();\n try {\n postDetailsOnServer(email, password);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n }", "public static void initialization() {\n String browserName = properties.getProperty(\"browserName\");\n\n if (browserName.equalsIgnoreCase(\"chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", \"F:/LearningStuff/WebDrivers/chromedriver.exe\");\n driver = new ChromeDriver();\n\n } else if (browserName.equalsIgnoreCase(\"firefox\")) {\n System.setProperty(\"webdriver.gecko.driver\", \"\");\n driver = new FirefoxDriver();\n }\n\n driver.manage().window().maximize(); //maximize browser\n driver.manage().deleteAllCookies(); //clear cookies\n driver.manage().timeouts().pageLoadTimeout(TestUtil.PAGE_LOAD_TIMEOUT, TimeUnit.SECONDS); //waits for a page load\n driver.manage().timeouts().implicitlyWait(TestUtil.IMPLICIT_WAIT, TimeUnit.SECONDS); //waits for an element\n driver.get(properties.getProperty(\"url\")); //opens the url\n }", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "public void initialize()\n throws EmailApplicationException {\n final String temp = null;\n emailConfig.clear();\n\n /**\n * Required by JavaMail in order to determine the message delivery\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.transport.protocol\", \"smtp\");\n \n \n\n setHostSend(\"\");\n setPortSend(25);\n setUserSend(\"\");\n setUseSSL(false);\n\n try {\n setPasswordSend(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserSend=\" + getUserSend() + \" or PasswordSend=\" + temp + \",\\n\" +\n \"Exception info: \" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Required by JavaMail in order to determine the message retrieval\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.store.protocol\", \"pop3\");\n\n setHostRecv(\"\");\n setPortRecv(110);\n setUserRecv(\"\");\n try {\n setPasswordRecv(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserRecv=\" + getUserRecv() + \" or PasswordRecv=\" + temp + \",\\n\" +\n \"Exception info:\" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Determine whether to perform POP3 authentication before attempting\n * SMTP transfer.\n */\n setSessionAuth(false);\n\n /**\n * Prepare for SSL\n */\n// aConfiguration.setSubSection(\"SSL\");\n// try {\n// boolean recvSSL = aConfiguration.getStringParameterValue(\"Receive/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n// boolean sendSSL = aConfiguration.getStringParameterValue(\"Send/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n\n// // Set up the TrustStore\n// if (recvSSL || sendSSL) {\n\n// if (mLogger.isDebugEnabled()) {\n// System.setProperty(\"javax.net.debug\", \"all\");\n// }\n\n// // Set up the trustore\n// aConfiguration.setSubSection(\"SSL/CACerts\");\n// String trustStore = aConfiguration.getStringParameterValue(\"TrustStore\", null);\n// if (trustStore == null || trustStore.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStore is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStoreType = aConfiguration.getStringParameterValue(\"TrustStoreType\", null);\n// if (trustStoreType == null || trustStoreType.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStoreType is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStorePass = aConfiguration.getStringParameterValue(\"TrustStorePassword\", null);\n// if (trustStorePass == null || trustStorePass.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStorePassword is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// mLogger.info (\"Using TrustStore \" + trustStore + \" of type \" + trustStoreType);\n// EmailSystemProperties.setTrustStore(trustStore);\n// EmailSystemProperties.setTrustStoreType(trustStoreType);\n// EmailSystemProperties.setTrustStorePassword(trustStorePass);\n\n// // Setup receive\n// if (recvSSL) {\n// mLogger.info (\"SSL is enabled for RECEIVE; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // POP3 provider\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.class\", SSL_FACTORY);\n\n// // POP3 provider - no fallback.\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for RECEIVE.\");\n// }\n\n// // Setup send\n// if (sendSSL) {\n// mLogger.info (\"SSL is enabled for SEND; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // SMTP provider\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.class\", SSL_FACTORY);\n\n// // SMTP provider - no fallback.\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for SEND.\");\n// }\n\n// } else {\n// mLogger.debug (\"SSL is NOT enabled.\");\n// }\n\n mLogger.fine(\"EmailConfiguration.initialize() completed successfully.\");\n }", "public JSipClient() {\n\t\tinitComponents();\n\t}", "private void sendMailInit() {\r\n\t\tif(mailSender == null){\r\n\t\t\tmailSender = new JavaMailSenderImpl();\r\n\t\t\tmailSender.setHost(ConfigManager.getInstance().getString(\"mail.host\"));\r\n\t\t\tmailSender.setPort(ConfigManager.getInstance().getInt(\"mail.port\", 25));\r\n\t\t\tmailSender.setUsername(ConfigManager.getInstance().getString(\"mail.username\"));\r\n\t\t\tmailSender.setPassword(ConfigManager.getInstance().getString(\"mail.password\"));\r\n\t\t\tmailSender.setDefaultEncoding(\"utf-8\");\r\n\t\t\tlogger.info(\"HOST>>>>>>>>>>>>>>>Host=\" + mailSender.getHost() + \",Port=\"+ mailSender.getPort());\r\n\t\t\tProperties props = new Properties();\r\n\t\t\tprops.setProperty(\"mail.smtp.auth\", \"true\");\r\n\t\t\tprops.setProperty(\"mail.smtp.timeout\", \"0\");\r\n\t\t\tmailSender.setJavaMailProperties(props);\r\n\t\t\tthis.setMailSender(mailSender);\r\n\t\t}\r\n\t}", "public void addBehavior() {\n replyFab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // The intent to start reply activity\n Intent replyMailIntent = new Intent(\n EmailViewerActivity.this, MailEditorActivity.class);\n // Put message ID that this activity receive from InboxActivity\n replyMailIntent.putExtra(MailEditorActivity.KEY_REPLY,\n getIntent().getExtras().getInt(KEY_EXTRA));\n // Start the reply activity when this button is clicked\n startActivity(replyMailIntent);\n }\n });\n\n // Check network connection\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get network info\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n\n boolean isConnected = (activeNetwork != null) &&\n (activeNetwork.isConnectedOrConnecting());\n\n if (isConnected) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n LoaderManager loaderManager = getLoaderManager();\n\n // Initialize the loader\n loaderManager.initLoader(MAIL_LOADER_ID, null, this);\n } else {\n // Show no internet warning if there is no internet connection\n emailViewer.loadDataWithBaseURL(null, getText(R.string.no_internet).toString(),\n \"text/html\", \"utf-8\", null);\n viewerSpinner.setVisibility(View.GONE);\n }\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.agreement_activity);\n\t\tif (myDialog == null) {\n\t\t\tmyDialog = ProcessDialog.createDialog(AgreementActivity.this, \"正在加载中...\");\n\t\t}\n\t\tNetState connected = NetReceiver.isConnected(this);\n\t\tif (connected == connected.NET_NO) {\n\t\t\tToast.makeText(this, \"当前网络不可用\", Toast.LENGTH_SHORT).show();\n\t\t}\n\t\tintentView();\n\t\tgetWebView();\n\t\tMyApplication.getInstance().addActivity(this);\n\t}", "public void setup(){\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"//Users//bpat12//Downloads//chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tSystem.out.println(\"launch browser\");\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdriver.get(url);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void initComponents() {\n\t\t//System.out.println(\"----------------------------Welcome Sip client---------------------------------------------\");\n\t\tiniStack();\n\t\t//onInvite(sendTo,message);\n//\t\tonRegisterStateless();\n\n\t}", "private void setupGoogleSignin() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n // Build a GoogleApiClient with access to the Google Sign-In API and the\n // options specified by gso.\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)\n .addApi(Auth.GOOGLE_SIGN_IN_API, gso)\n .build();\n }", "private void initiateActivity() {\r\n\t\tif (application == null) {\r\n\t\t\tthis.application = SmartApplication.REF_SMART_APPLICATION;\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tif (application.attachedCrashHandler)\r\n\t\t\t\tCrashReportHandler.attach(this);\r\n\t\t} catch (Throwable e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tfinish();\r\n\t\t}\r\n\r\n\t\tif (setLayoutView() != null) {\r\n\t\t\tsetContentView(setLayoutView());\r\n\t\t} else {\r\n\t\t\tsetContentView(setLayoutId());\r\n\t\t}\r\n\r\n\t}", "public Gorail1() {\n initComponents();\n }", "public void onModuleLoad() {\n \t\tMainPage.currentPage = this;\n \t\t\n \t\tif(Window.Location.getHash().length() == 0){\n \t\t\tloggedIn = false;\n \t\t}else{\n \t\t\tloggedIn = true;\n \t\t}\n \t\t\n \t\tinitUI();\n \t\t\n \t\tif(loggedIn){\n \t\t\tsetStatus(\"fetching JSON...\", false);\n \t\t\tfbFetcher.fetchNeededJSON();\n \t\t}\n \t\t\n \t}", "public InscriptionClient() {\n initComponents();\n }", "private void initialise() {\n progressBar = (ProgressBar) view.findViewById(R.id.deliver_page_progress_bar);\n getCurrentAddressButton = (Button) view.findViewById(R.id.get_current_address);\n\n contactPersonEditText = (EditText) view.findViewById(R.id.contact_person);\n phoneNumberEditText = (EditText) view.findViewById(R.id.phone_number);\n emailEditText = (EditText) view.findViewById(R.id.email);\n houseNumberEditText = (EditText) view.findViewById(R.id.house_number);\n streetAddressEditText = (EditText) view.findViewById(R.id.street_address);\n //clearErrors();\n\n\n// normalDeliveryButton.setOnClickListener(this);\n// expressDeliveryButton.setOnClickListener(this);\n getCurrentAddressButton.setOnClickListener(this);\n\n sharedData = SharedData.getSingletonObject();\n\n ApplicationPreferences preferences = new ApplicationPreferences();\n String phone_number = preferences.getUserRegisterPhone(getContext());\n\n phoneNumberEditText.setText(phone_number);\n hideSoftKeyboard();\n }", "@Override\n /**\n * User clicked something---launch the browser\n */\n public void propertyChange(PropertyChangeEvent propertyChangeEvent) {\n CardData cardData = (CardData) propertyChangeEvent.getNewValue();\n String url = cardData.getUrl();\n //showErrorMessage(\"clicked on \" + propertyChangeEvent.getNewValue());\n Uri uri = Uri.parse(url);\n\n // log the activity\n\n // TODO: Map the current feed's url\n String sourceUrlPath = getCurrentStrategy().getUrlPath(); // e,g, \"/news/home\"\n String idStr = String.format(\"%d\", cardData.getId());\n\n EventDispatchService dispatchService = _dispatchPaymentFactory.createEventDispatch(idStr);\n dispatchService.sendConfirmation(getDispatchSuccessCallback(), getDispatchFailureCallback());\n\n\n AuthEventPublicDispatch eventDispatchService = _dispatchPaymentFactory.createDispatch(sourceUrlPath, uri.getPath(), url);\n eventDispatchService.sendConfirmation(getEventDispatchSuccessCallback(), getEventDispatchFailureCallback());\n\n Intent browserLaunchIntent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(browserLaunchIntent);\n\n }", "public void initialize() {\n webDriverConfig = WebDriverConfig.getInstance();\n webDriver = WebDriverFactory.getDriver(webDriverConfig.getBrowser());\n webDriver.manage().window().maximize();\n webDriver.manage().timeouts().implicitlyWait(webDriverConfig.getImplicitWaitTime(), TimeUnit.SECONDS);\n webDriverWait = new WebDriverWait(webDriver, webDriverConfig.getExplicitWaitTime());\n }", "public clientHome() {\n initComponents();\n }", "public DmaiClient() {\r\n\t\tthis.mainView = new MainView();\r\n\t\tconnexionServeur();\r\n\r\n\t}", "public void gotoGmail(){\n }", "public Authentification() {\n initComponents();\n }", "public GoogleAutomation() {\n\t\t\n\t\t//The setProperty() method of Java system class sets the property of the system which is indicated by a key.\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"driver//chromedriver.exe\");\n\t\t\n\t\t//initilize webDriver \n\t\twebDriver = new ChromeDriver();\n\t}", "@Override\n\tpublic void initWebViewClient(BBWebViewClient webViewClient) {\n\t\ttry {\n\t\t\tthis._webView.setWebViewClient(webViewClient);\n\t\t} catch (Exception ex) {\n\t\t\t\n\t\t}\n\t}", "private static void initialize()\n {\n\tif (cookieHandler == null)\n\t{\n\t BrowserService service = ServiceProvider.getService();\n\t cookieHandler = service.getCookieHandler();\n\t}\n }", "@Override\n\tpublic void initWebViewClient(BBWebViewChromeClient webViewClient) {\n\t\ttry {\n\t\t\tthis._webView.setWebChromeClient(webViewClient);\n\t\t} catch (Exception ex) {\n\t\t\t\n\t\t}\n\t}", "@Override\n protected void init() {\n viewModel.setNavigator(this);\n setUp();\n subscribeToLiveData();\n\n setUpNotificationUi();\n setUpNotification();\n\n setUpAds();\n\n viewModel.start(getCurrentVersionOfApp());\n }", "public void start() {\r\n\t\tfinal Element frame = this.createFrame();\r\n\t\tthis.setFrame(frame);\r\n\r\n\t\tthis.getSupport().start(this, frame);\r\n\r\n\t\t// the reason for the query string is to avoid caching problems...the\r\n\t\t// src attribute is set before the frame is attached this also\r\n\t\t// avoids the nasty clicking noises in ie.\r\n\t\tDOM.setElementProperty(frame, \"src\", this.getServiceEntryPoint() + \"?serializationEngine=Gwt&\" + System.currentTimeMillis());\r\n\r\n\t\tfinal Element body = RootPanel.getBodyElement();\r\n\t\tDOM.appendChild(body, frame);\r\n\t}", "@Override\n\tpublic void onActivate() {\n\t\tsetCurrentPageWhenReady(StaticPageNames.Core_UserLogin, 30, pageName -> {\n\t\t\t//TODO: Show error popup\n\t\t\tlogger.severe(\"Failed to load Login page, timed out while waiting for page!\");\n\t\t});\n\t}", "public LoginBackendPage() {\n\t\t PageFactory.initElements(driver, this);\n\t}", "@BeforeTest()\n\tpublic void initializemanager() {\n\t\tsetDriver(\"chrome\");\n\t\tdriver.get(getApplicationUrl(\"salesforce\"));\n\t\tdriver.manage().window().maximize();\n\t\tWebpageFactory.initializePageObjects(driver);\n\t\tDBUtil.createConnection();\n\t}", "public void start(AcceptsOneWidget containerWidget, EventBus eventBus) {\n\t homeView = clientFactory.getAccountView();\n\t\thomeView.setPresenter(this);\n\t\tcontainerWidget.setWidget(homeView.asWidget());\n\t}", "public void openGmail (View view) {\n TextView textView = (TextView) findViewById(R.id.emailContent);\n String emailContent = textView.getText().toString();\n Log.i(TAG, \"emailContent: \" + emailContent);\n\n /**\n * code was adapted from the information here:\n * https://javadevnotes.com/java-string-split-newline-examples\n */\n /*takes the above string object, splits it into parts seperated by\n * line breaks and puts it into an array\n */\n String[] content = emailContent.split(\"\\\\r?\\\\n\");\n\n // created string objects out of the array for each part of the email\n String emailAddress = content[0];\n String emailSubject = content[1];\n String emailBody = content [2];\n\n /***\n * following code was adapted from here:\n * https://www.javatpoint.com/how-to-send-email-in-android-using-intent\n */\n //opens an email client of users choice and prepopulates with data sent back to mainactivity\n Intent email = new Intent(Intent.ACTION_SEND);\n email.putExtra(Intent.EXTRA_EMAIL, new String[]{emailAddress});\n email.putExtra(Intent.EXTRA_SUBJECT, emailSubject);\n email.putExtra(Intent.EXTRA_TEXT, emailBody);\n\n //need this to prompts email client only\n email.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(email, \"Choose an Email client :\"));\n\n }", "public static void authenticate() {\n\n Stage window = new Stage();\n\n final String url = OAUTH_URL + getQuery();\n\n BorderPane borderPane = new BorderPane();\n WebView browser = new WebView();\n WebEngine webEngine = browser.getEngine();\n\n webEngine.load(url);\n borderPane.setCenter(browser);\n\n webEngine.setOnStatusChanged(event -> {\n if (event.getSource() instanceof WebEngine) {\n WebEngine we = (WebEngine) event.getSource();\n String location = we.getLocation();\n // If we are redirected to REDIRECT_URL we get contents, and send it to verify() to get access token\n if (location.startsWith(REDIRECT_URL) && location.contains(\"code\") && AUTH_OBECT == null) try {\n URL url1 = new URL(location);\n String[] params = url1.getQuery().split(\"&\");\n Map<String, String> map = new HashMap<>();\n for (String param : params) {\n String name = param.split(\"=\")[0];\n String value = param.split(\"=\")[1];\n map.put(name, value);\n }\n String code = map.get(\"code\");\n // We have code so we continue the flow\n verify(code);\n window.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // create scene\n window.setTitle(\"Authentication\");\n Scene scene = new Scene(borderPane, 750, 500);\n window.setScene(scene);\n window.showAndWait();\n }", "public void init()\r\n\t{\r\n\t\tStaticAppletData.setCodeBase(getCodeBase().toString()); // set the code base\r\n\t\tStaticAppletData.setCodeBaseURL(getCodeBase()); // set the code base URL\r\n\t\t\r\n\t\tloadLoginUI(); // load the login UI first\r\n\t\t//loadRoomViewerUI();\r\n\t}", "@Override\n @SuppressFBWarnings(\"DM_EXIT\")\n protected void initializeBrowserProcess() {\n try {\n LibraryLoader.get(LibraryProcessType.PROCESS_BROWSER)\n .ensureInitialized(getApplicationContext());\n } catch (ProcessInitException e) {\n Log.e(TAG, \"Cannot load content_browsertests.\", e);\n System.exit(-1);\n }\n BrowserStartupController.get(getApplicationContext(), LibraryProcessType.PROCESS_BROWSER)\n .initChromiumBrowserProcessForTests();\n\n setContentView(getTestActivityViewId());\n mShellManager = (ShellManager) findViewById(getShellManagerViewId());\n mWindowAndroid = new ActivityWindowAndroid(this);\n mShellManager.setWindow(mWindowAndroid);\n\n Window wind = this.getWindow();\n wind.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);\n wind.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);\n wind.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);\n }", "public Mail() {\n this.login();\n this.setMessages();\n }", "public void run() {\n SimpleChatUI firstWin = new SimpleChatUI();\n windows.add(firstWin);\n firstWin.setVisible(true);\n hub = new HubSession(new LoginCredentials(new ChatKeyManager(CHAT_USER)));\n\n firstWin.setStatus(\"No active chat\");\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n //new JSONTask().execute(URL_TO_HIT);\n email = (EditText) findViewById(R.id.email);\n pwd = (EditText) findViewById(R.id.password);\n\n loginButton = (Button) findViewById(R.id.btn_login);\n loginButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n login();\n }\n });\n\n }", "public Assignment4SwingClient() {\n buildGUI();\n remoteTuna = getRemoteSession();\n }", "public void tener_acceso_a_la_plataforma() {\n\t\tbaseState.setUrl(\"http://km.choucairtesting.com/login/index.php\");\t\n\t\tbaseState.setBrowserType(BrowserType.GoogleChrome);\n\t\tbaseState.execute(desktop);\t\n\t\tSerenity.takeScreenshot();\n\t\t\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n if (authenticate()) {\n displayUserDetails();\n } else {\n startActivity(new Intent(this, Login.class));\n }\n }", "void initCognito() {\n Auth.Builder builder = new Auth.Builder().setAppClientId(getString(R.string.cognito_client_id))\n .setAppClientSecret(getString(R.string.cognito_client_secret))\n .setAppCognitoWebDomain(getString(R.string.cognito_web_domain))\n .setApplicationContext(getApplicationContext())\n .setAuthHandler(new callback())\n .setSignInRedirect(getString(R.string.app_redirect))\n .setSignOutRedirect(getString(R.string.app_redirect));\n this.auth = builder.build();\n appRedirect = Uri.parse(getString(R.string.app_redirect));\n }", "@Override\n public void startNewSession(final IBrowser.BrowserType aBrowserType) {\n endSession();\n\n final WetatorConfiguration tmpConfiguration = wetatorEngine.getConfiguration();\n\n // reset the bookmarks\n bookmarks = new HashMap<>();\n\n final BrowserVersion tmpBrowserVersion = determineBrowserVersionFor(aBrowserType);\n\n DefaultCredentialsProvider tmpCredentialProvider = null;\n\n final String tmpHost = tmpConfiguration.getProxyHost();\n if (StringUtils.isNotEmpty(tmpHost)) {\n LOG.info(\"Proxy configured\");\n LOG.info(\"Proxy Host: '\" + tmpHost + \"'\");\n final int tmpPort = tmpConfiguration.getProxyPort();\n LOG.info(\"Proxy Port: '\" + tmpPort + \"'\");\n\n webClient = new WebClient(tmpBrowserVersion, tmpHost, tmpPort);\n\n final SecretString tmpProxyUser = tmpConfiguration.getProxyUser();\n if (null != tmpProxyUser && !tmpProxyUser.isEmpty()) {\n final String tmpUser = tmpProxyUser.getValue();\n LOG.info(\"Proxy User: '\" + tmpUser + \"'\");\n final String tmpPassword = tmpConfiguration.getProxyPassword().getValue();\n tmpCredentialProvider = new DefaultCredentialsProvider();\n webClient.setCredentialsProvider(tmpCredentialProvider);\n\n tmpCredentialProvider.addCredentials(tmpUser, tmpPassword, tmpHost, tmpPort, null);\n } else {\n LOG.info(\"Proxy no user defined\");\n }\n\n final Set<String> tmpNonProxyHosts = tmpConfiguration.getProxyHostsToBypass();\n\n for (final String tmpString : tmpNonProxyHosts) {\n String tmpHostsToProxyBypass = tmpString.trim();\n tmpHostsToProxyBypass = tmpHostsToProxyBypass.replaceAll(\"\\\\.\", \"\\\\\\\\.\");\n tmpHostsToProxyBypass = tmpHostsToProxyBypass.replaceAll(\"^\\\\*\", \".*\");\n\n webClient.getOptions().getProxyConfig().addHostsToProxyBypass(tmpHostsToProxyBypass);\n LOG.info(\"Proxy HostsToProxyBypass: '\" + tmpHostsToProxyBypass + \"'\");\n }\n } else {\n webClient = new WebClient(tmpBrowserVersion);\n }\n\n final SecretString tmpBasicAuthUser = tmpConfiguration.getBasicAuthUser();\n if (null != tmpBasicAuthUser && !tmpBasicAuthUser.isEmpty()) {\n final String tmpUser = tmpBasicAuthUser.getValue();\n final String tmpPassword = tmpConfiguration.getBasicAuthPassword().getValue();\n\n if (null == tmpCredentialProvider) {\n tmpCredentialProvider = new DefaultCredentialsProvider();\n webClient.setCredentialsProvider(tmpCredentialProvider);\n }\n\n tmpCredentialProvider.addCredentials(tmpUser, tmpPassword);\n webClient.setCredentialsProvider(tmpCredentialProvider);\n\n LOG.info(\"BasicAuth enabled user '\" + tmpUser + \"'.\");\n }\n\n final SecretString tmpNtlmUser = tmpConfiguration.getNtlmUser();\n if (null != tmpNtlmUser && !tmpNtlmUser.isEmpty()) {\n final String tmpUser = tmpNtlmUser.getValue();\n final String tmpPassword = tmpConfiguration.getNtlmPassword().getValue();\n final String tmpWorkstation = tmpConfiguration.getNtlmWorkstation().getValue();\n final String tmpDomain = tmpConfiguration.getNtlmDomain().getValue();\n\n if (null == tmpCredentialProvider) {\n tmpCredentialProvider = new DefaultCredentialsProvider();\n webClient.setCredentialsProvider(tmpCredentialProvider);\n }\n\n tmpCredentialProvider.addNTLMCredentials(tmpUser, tmpPassword, null, -1, tmpWorkstation, tmpDomain);\n\n LOG.info(\"NTLM enabled user '\" + tmpUser + \"' workstation '\" + tmpWorkstation + \"' domain '\" + tmpDomain + \"'.\");\n }\n\n // setup our listener\n webClient.addWebWindowListener(new WebWindowListener(this));\n webClient.setAttachmentHandler(new AttachmentHandler());\n webClient.setAlertHandler(new AlertHandler(wetatorEngine));\n webClient.getWebConsole().setLogger(new WebConsoleLogger(wetatorEngine));\n webClient.setIncorrectnessListener(new IncorrectnessListener(wetatorEngine));\n webClient.setConfirmHandler(new ConfirmHandler(wetatorEngine));\n\n // refresh handler - behave like the browser does\n webClient.setRefreshHandler(new WaitingRefreshHandler());\n\n // javascript\n webClient.getOptions().setJavaScriptEnabled(true);\n webClient.getOptions().setThrowExceptionOnScriptError(false);\n webClient.setJavaScriptErrorListener(new JavaScriptErrorListener(this));\n\n // webClient.getOptions().setThrowExceptionOnFailingStatusCode(false);\n // webClient.getOptions().setUseInsecureSSL(true);\n\n final Set<SearchPattern> tmpFilters = tmpConfiguration.getJsJobFilterPatterns();\n if (tmpFilters.isEmpty()) {\n jobFilter = null;\n } else {\n jobFilter = new JavaScriptJobFilter();\n for (final SearchPattern tmpSearchPattern : tmpFilters) {\n jobFilter.addPattern(tmpSearchPattern);\n }\n }\n\n // register activeX control mocker\n // should we do something like this?\n // webClient.getOptions().setActiveXNative(false);\n webClient.setActiveXObjectMap(tmpConfiguration.getBrowserActiveXObjects());\n\n // set Accept-Language header\n webClient.addRequestHeader(\"Accept-Language\", tmpConfiguration.getAcceptLanaguage());\n\n // trust all SSL-certificates\n webClient.getOptions().setUseInsecureSSL(true);\n\n // use client certificate key store\n final String tmpClientCertKeyStoreUrl = tmpConfiguration.getClientCertificateKeyStoreUrl();\n if (StringUtils.isNotEmpty(tmpClientCertKeyStoreUrl)) {\n final String tmpClientCertKeyStoreType = tmpConfiguration.getClientCertificateKeyStoreType();\n final SecretString tmpClientCertKeyStorePassword = tmpConfiguration.getClientCertificateKeyStorePassword();\n\n LOG.info(\"ClientCertificateKeyStore configured\");\n LOG.info(\" URL: \" + tmpClientCertKeyStoreUrl);\n LOG.info(\" Type: \" + tmpClientCertKeyStoreType);\n LOG.info(\" Password: \" + tmpClientCertKeyStorePassword);\n\n try {\n final URL tmpKeyStoreURL = new URL(tmpClientCertKeyStoreUrl);\n webClient.getOptions().setSSLClientCertificate(tmpKeyStoreURL, tmpClientCertKeyStorePassword.getValue(),\n tmpClientCertKeyStoreType);\n } catch (final Exception e) {\n LOG.error(\"Failed to use configured ClientCertificateKeyStore.\", e.getCause());\n }\n }\n\n // set the timeout\n webClient.getOptions().setTimeout(tmpConfiguration.getHttpTimeoutInSeconds() * 1000);\n\n // debug stuff\n if (tmpConfiguration.isDebugLoggingEnabled()) {\n final HtmlUnitContextFactory tmpContextFactory = ((JavaScriptEngine) webClient.getJavaScriptEngine())\n .getContextFactory();\n tmpContextFactory.setDebugger(new DebuggerImpl());\n }\n // webClient.setAjaxController(new NicelyResynchronizingAjaxController());\n if (tmpConfiguration.startJsDebugger()) {\n WebClientUtils.attachVisualDebugger(webClient);\n }\n }", "private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }", "public void robotInit() {\n chooser = new SendableChooser();\n chooser.addDefault(\"Default Auto\", defaultAuto);\n chooser.addObject(\"My Auto\", customAuto);\n SmartDashboard.putData(\"Auto choices\", chooser);\n\n initialize();\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "public RegistrationPage() {\t\t\r\n\t\tdriver = DriverManager.getThreadSafeDriver();\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n try {\n ChromeBrowserInitializer.getInstance().handleSynchronousStartup();\n } catch (ProcessInitException e) {\n Log.e(TAG, \"Failed to start browser process.\", e);\n ChromeApplication.reportStartupErrorAndExit(e);\n }\n\n super.onCreate(savedInstanceState);\n setContentView(R.layout.signin_activity);\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n Fragment fragment = fragmentManager.findFragmentById(R.id.fragment_container);\n if (fragment == null) {\n Bundle fragmentArgs = getIntent().getBundleExtra(ARGUMENT_FRAGMENT_ARGS);\n fragment = Fragment.instantiate(this, SigninFragment.class.getName(), fragmentArgs);\n fragmentManager.beginTransaction().add(R.id.fragment_container, fragment).commit();\n }\n }", "private void initThings() {\n\t\tmyApp = (MyApp) getApplicationContext();\n\t\tnextIntent = new Intent(this, AnimActivity2.class);\n\t\t// nextIntent = new Intent(this, SelectEventActivity.class);\n\t\tnextIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t| Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\t\tuserDAO = new UserDAO(this);\n\t\tdialog = new CreateDialog(this);\n\t\tprogressDialog = dialog.createProgressDialog(null, \"Logging In\", false,\n\t\t\t\tnull, false);\n\t\ttypeface = myApp.getTypefaceRegular();\n\n\t\t// <<<<<<< HEAD\n\t\t//\n\t\t// GsonBuilder builder = new GsonBuilder();\n\t\t// gson = builder.create();\n\t\t//\n\t\t// queue = Volley.newRequestQueue(this);\n\t\t// =======\n\t\t// >>>>>>> parent of 48afbfc... setup android again\n\t}", "public void configure() throws IOException {\n\n\n mWebClient = new WebClient(BrowserVersion.getDefault());\n\n // 1 启动JS\n mWebClient.getOptions().setJavaScriptEnabled(true);\n // 2 禁用Css,可避免自动二次请求CSS进行渲染\n mWebClient.setCssErrorHandler(new SilentCssErrorHandler());\n mWebClient.setAjaxController(new NicelyResynchronizingAjaxController());\n mWebClient.getOptions().setCssEnabled(true);\n // 3 启动客户端重定向\n mWebClient.getOptions().setRedirectEnabled(true);\n\n mWebClient.getOptions().setAppletEnabled(false);\n\n mWebClient.getOptions().setPopupBlockerEnabled(true);\n\n // 4 js运行错误时,是否抛出异常\n //mWebClient.getOptions().setThrowExceptionOnScriptError(false);\n // 5 设置超时\n mWebClient.getOptions().setTimeout(20000);\n\n //HtmlPage htmlPage = mWebClient.getPage();\n // 等待JS驱动dom完成获得还原后的网页\n mWebClient.waitForBackgroundJavaScript(50000);\n\n }", "@BeforeTest\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PSQA\\\\Desktop\\\\driver\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.booking.com/\");\n\t\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(100);\n\t\t\n}", "private void init() {\n\t\tMobclickAgent.onError(this);\n\t\tMobclickAgent.setUpdateOnlyWifi(false);\n\t\tMobclickAgent.update(this);\n\t\tUMFeedbackService.enableNewReplyNotification(this,\n\t\t\t\tNotificationType.AlertDialog);\n\t\tMobclickAgent.updateOnlineConfig(this);\n\n\t\tString header = MobclickAgent.getConfigParams(this, \"header\");\n\t\tif (\"\".equals(header)) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tif (header.equals(\"on\")) {\n\t\t\t\turl = MobclickAgent.getConfigParams(this, \"url\");\n\t\t\t\tshowHeader = true;\n\t\t\t} else {\n\t\t\t\tshowHeader = false;\n\t\t\t}\n\n\t\t}\n\n\t\tString footer = MobclickAgent.getConfigParams(this, \"footer\");\n\t\tif (\"\".equals(footer)) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tif (footer.equals(\"on\")) {\n\t\t\t\turl = MobclickAgent.getConfigParams(this, \"url\");\n\t\t\t\tshowFooter = true;\n\t\t\t} else {\n\t\t\t\tshowFooter = false;\n\t\t\t}\n\t\t}\n\t}", "private void launchApplication() {\n driver.manage().deleteAllCookies();\n driver.get(config.getProperty(\"testSiteUrl\"));\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(Integer.parseInt(config.getProperty(\"implicit.wait\")), TimeUnit.SECONDS);\n }", "public login() {\n initComponents();\n setTitle(\"COLLAGE MANAGEMENT SYSTEM\");\n }", "public ProcessAnalyticsPage(WebDriver webDriver) {\n\t\tsuper(webDriver);\n\t\tSystem.out.println(\"Initiated SBLoginPage web elements\");\n\t}", "public void gotoCoachLogin(){ application.gotoCoachLogin(); }" ]
[ "0.62297624", "0.6209181", "0.6173306", "0.6108973", "0.5877465", "0.5877388", "0.58383375", "0.58097756", "0.5778845", "0.5756875", "0.5738287", "0.57035977", "0.5674896", "0.5651329", "0.5622446", "0.5600438", "0.5579509", "0.5555781", "0.55380464", "0.55104345", "0.550719", "0.5500406", "0.5471002", "0.5439234", "0.54197305", "0.5405476", "0.53938055", "0.53783643", "0.53620714", "0.5358253", "0.53572595", "0.53440046", "0.53314245", "0.53293866", "0.5319168", "0.5314391", "0.5311176", "0.5301326", "0.5300775", "0.5292118", "0.5282829", "0.5280111", "0.5277995", "0.52608436", "0.525099", "0.5245351", "0.5244741", "0.5242086", "0.52417344", "0.5234629", "0.5220163", "0.52075016", "0.52069557", "0.52042216", "0.52026165", "0.51979536", "0.51943463", "0.51939183", "0.5184742", "0.5184424", "0.51842046", "0.5181808", "0.5180758", "0.51804405", "0.5179391", "0.5178622", "0.5174627", "0.5168422", "0.5165063", "0.5164001", "0.51617163", "0.51564634", "0.51563257", "0.51560533", "0.51539564", "0.51515853", "0.5145526", "0.5139298", "0.5125391", "0.51231605", "0.51137954", "0.51044315", "0.50995773", "0.50978583", "0.50885534", "0.5086888", "0.50816864", "0.50791955", "0.50773084", "0.50723636", "0.5071932", "0.5071612", "0.5066172", "0.5064325", "0.50630295", "0.5061244", "0.5059445", "0.5059052", "0.5056958", "0.5055216" ]
0.62477034
0
Called when user presses the back button. If the browser can go back then it simply tells the browser to go back. If not then the default back button behavior continues.
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_BACK) && browser.canGoBack()) { browser.goBack(); return true; } return super.onKeyDown(keyCode, event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n\n // Let the system handle the back button\n\n super.onBackPressed();\n\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}", "@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n if (webView.canGoBack()) {\n webView.goBack();\n } else {\n // Let the system handle the back button\n super.onBackPressed();\n }\n }", "@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n if(webView.canGoBack()) {\n webView.goBack();\n } else {\n // Let the system handle the back button\n super.onBackPressed();\n }\n }", "@Override\n\t\tpublic boolean handleBackPressed() {\n\t\t\treturn false;\n\t\t}", "@Override\n public void onBackPressed() {\n if(web.canGoBack()){\n web.goBack();\n } else {\n super.onBackPressed();\n }\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tdoBack();\r\n\t}", "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}", "public abstract boolean onBackPressed(boolean isSystemBackKey);", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "@Override\n\tpublic boolean onBackPressed() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onBackPressed() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}", "@Override\n protected boolean canGoBack() {\n return false;\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "void onGoBackButtonClick();", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\treturn;\n\t}", "@Override\n\tpublic void backButton() {\n\n\t}", "@Override\n public void onBackPressed() {\n if(webView.canGoBack()) {\n webView.goBack();\n } else {\n super.onBackPressed();\n }\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "public abstract boolean onBackPressed();", "@Override\r\n\tpublic void onBackPressed() {\n\t\tmoveTaskToBack(true);\r\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n public void onBackPressed()\n {\n mIsBackButtonPressed = true;\n super.onBackPressed();\n \n }", "@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if ((keyCode == KeyEvent.KEYCODE_BACK) && view.canGoBack()) {\n view.goBack();\n return true;\n }\n // If it wasn't the Back key or there's no web page history, bubble up to the default\n // system behavior (probably exit the activity)\n return super.onKeyDown(keyCode, event);\n }", "@Override\n public void onBackPressed() {\n if(mWebView.canGoBack()) {\n mWebView.goBack();\n } else {\n super.onBackPressed();\n }\n }", "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "@Override public void onBackPressed() {\n boolean handled = container.onBackPressed();\n if (!handled) {\n finish();\n }\n }", "public void onBackPressed() {\n backbutton();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tthis.finish();\n\t}", "boolean onBackPressed();", "boolean onBackPressed();", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\n\t\t\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tthis.finish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if ((keyCode == KeyEvent.KEYCODE_BACK) && wpBrowser.canGoBack()) {\n wpBrowser.goBack();\n return true;\n }\n // If it wasn't the Back key or there's no web page history, bubble up to the default\n // system behavior (probably exit the activity)\n return super.onKeyDown(keyCode, event);\n }", "@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}", "@Override\n\tpublic boolean onNaviBackClick() {\n\t\treturn false;\n\t}", "public void back() {\n Views.goBack();\n }", "@Override\n\tpublic boolean onBackPressedListener() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tmoveTaskToBack(false);\n\t}", "@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event)\n\t{\n\t\tif ((keyCode == KeyEvent.KEYCODE_BACK) && mWebView.canGoBack())\n\t\t{\n\t\t\tmWebView.goBack();\n\t\t\treturn true;\n\t\t}\n\n\t\t// If it wasn't the Back key or there's no web page history, bubble up\n\t\t// to the default\n\t\t// system behavior (probably exit the activity)\n\t\treturn super.onKeyDown(keyCode, event);\n\t}", "@Override\r\n\tpublic void onBackPressed() {\r\n\t\tif (displayingWebViewFragment != null && displayingWebViewFragment.isVisible()) {\r\n\t\t\t// see if we can go back\r\n\t\t\tif (displayingWebViewFragment.getWebView().canGoBack()) {\r\n\t\t\t\tdisplayingWebViewFragment.getWebView().goBack();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuper.onBackPressed();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuper.onBackPressed();\r\n\t\t}\r\n\t}", "@Override\n public void onBackPressed() {\n backToHome();\n }", "@Override\n public void onBackPressed() {\n exitReveal();\n\n super.onBackPressed();\n }", "@Override\r\n public void onBackPressed() {\n }", "@Override\n\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if ((keyCode == KeyEvent.KEYCODE_BACK) && webView.canGoBack()) {\n webView.goBack();\n \n return true;\n }\n if((keyCode == KeyEvent.KEYCODE_BACK) && (webView.canGoBack()!=true)) \n {\n \tfinish();\n \t return true;\n }\n // If it wasn't the Back key or there's no web page history, bubble up to the default\n // system behavior (probably exit the activity)\n return super.onKeyDown(keyCode, event);\n }", "@Override\n\tpublic void onBackPressed()\n\t{\n\t}", "public void onBackPressed() {\r\n }", "@Override\n public void backButton() {\n\n\n }", "protected void onBackKey() {\n if (!mUi.onBackKey()) {\n WebView subwindow = mTabControl.getCurrentSubWindow();\n if (subwindow != null) {\n if (subwindow.canGoBack()) {\n subwindow.goBack();\n } else {\n dismissSubWindow(mTabControl.getCurrentTab());\n }\n } else {\n goBackOnePageOrQuit();\n }\n }\n }", "protected void goBack() {\r\n\t\tfinish();\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n public void onBackPressed() {}", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n }", "@Override\n public void handleOnBackPressed() {\n }", "@Override\n \tpublic void onBackPressed() {\n \t}", "@Override\n public void onBackPressed() {\n confirmExit();\n }", "@Override\r\n\tpublic void onBackPressed() {\n\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\r\n\t}", "@Override\n public void onBackPressed() {\n // Do nothing\n }", "@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\t\tif ((keyCode == KeyEvent.KEYCODE_BACK) && m_webView.canGoBack()) {\n\t\t\tm_webView.goBack();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onKeyDown(keyCode, event);\n\t}", "@Override\n public void onBackPressed() { }", "@Override\n\tpublic void onBackPressed() {\n\n\t}", "@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if ((keyCode == KeyEvent.KEYCODE_BACK) && webView.canGoBack()) {\n webView.goBack();\n return true;\n }\n return super.onKeyDown(keyCode, event);\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t finish();\n\t}", "@Override\n public void onBackPressed() {\n //super.onBackPressed();\n goBack();\n }", "@Override\n public void onBackPressed() {\n this.moveTaskToBack(true);\n }", "public boolean onBackPressed() {\n \treturn m_renderer.onBackPressed();\n }", "@Override\r\n public void onBackPressed() {\n moveTaskToBack(true);\r\n }", "@Override\n public void backPressed(){\n }", "@Override\n public void onBackPressed() {\n //noinspection ConstantConditions\n if (MenuActivityHelper.onBackPressed(this)) {\n super.onBackPressed();\n }\n }", "@Override\n public void onBackPressed() {\n }" ]
[ "0.8282378", "0.8120069", "0.8034056", "0.8032016", "0.79645425", "0.7946204", "0.7934234", "0.7931279", "0.78052473", "0.7798289", "0.7795724", "0.77366686", "0.77366686", "0.77184904", "0.77165264", "0.7714747", "0.7714747", "0.76914287", "0.76891214", "0.768529", "0.7668704", "0.7666811", "0.7666811", "0.7666811", "0.7666811", "0.7666811", "0.7666811", "0.7666811", "0.7666811", "0.76619357", "0.7656927", "0.7647837", "0.7647837", "0.7646535", "0.7646535", "0.7646535", "0.76134646", "0.76103085", "0.7610088", "0.7608862", "0.7603585", "0.7600773", "0.7589668", "0.7583657", "0.7583657", "0.7583557", "0.75808364", "0.75808364", "0.7580559", "0.7566205", "0.756083", "0.7559795", "0.7559734", "0.75594366", "0.755692", "0.75500137", "0.7536448", "0.7530476", "0.75284255", "0.751967", "0.7513974", "0.7503111", "0.7501681", "0.7495429", "0.7494559", "0.7492459", "0.7492347", "0.7478101", "0.74726105", "0.74726105", "0.74726105", "0.74726105", "0.7458013", "0.74512917", "0.74512917", "0.74512917", "0.74512917", "0.74512917", "0.74512917", "0.74512917", "0.74500114", "0.7446883", "0.7439197", "0.7434572", "0.7434572", "0.7429007", "0.742426", "0.7423386", "0.74215066", "0.7415523", "0.74050486", "0.74050486", "0.7395246", "0.7394812", "0.7385062", "0.73810464", "0.7377384", "0.7372588", "0.73724747", "0.7364838" ]
0.7618246
36
Constructs a new Capability Definitions Type test case with the given name.
public CapabilityDefinitionsTypeTest(String name) { super(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CapabilitiesType createCapabilitiesType();", "public static RequirementType create(String name) {\n throw new IllegalStateException(\"Enum not extended\");\n }", "public ReflectiveCapabilitiesFactory(String name, String capabilitiesClassName, Object... args) {\n this.name = name;\n this.capabilitiesClassName = capabilitiesClassName;\n this.args = args;\n try {\n capabilitiesClass = (Class<? extends Capabilities>) Class.forName(capabilitiesClassName);\n available = Capabilities.class.isAssignableFrom(capabilitiesClass);\n } catch (ClassNotFoundException e) {\n available = false;\n }\n }", "GetCapabilitiesType createGetCapabilitiesType();", "public ReflectiveCapabilitiesFactory(String name, Class<? extends Capabilities> capabilitiesClass, Object... args) {\n this.name = name;\n this.capabilitiesClass = capabilitiesClass;\n this.args = args;\n capabilitiesClassName = capabilitiesClass.getName();\n available = Capabilities.class.isAssignableFrom(this.capabilitiesClass);\n }", "public MTNamed(TypeGraph g, String name) {\n super(g);\n myName = name;\n }", "private JavaType(String name) {\n this.name = name;\n }", "ProductType(String name)\n {\n this.name = name;\n }", "public GameType(String name)\n\t\t{\n\t\t\tgame_name = name;\n\t\t}", "private CommandType(String name) {\n\t\t\n\t\tthis.name = name;\n\t}", "public Type(String name) {\n\t\tsuper(name);\n\t\tsetSize();\n\t}", "public OpcDeviceTest(String name)\n {\n super(name);\n }", "private void generateTestCapabilityFiles() {\n\n String[] ids = {\"cap_1_001\", \"cap_1_002\", \"cap_1_003\", \"cap_1_004\", \"cap_1_005\", \"cap_3_001\", \"cap_3_002\", \"cap_2_001\", \"cap_2_002\"};\n String[] actionNames_en = {\"Go Forward\", \"Reverse\", \"Turn Left\", \"Turn Right\", \"Stop\", \"Light ON\", \"Light OFF\", \"No Object\", \"See Object\"};\n String[] actionNames_si = {\"ඉදිරියට යන්න\", \"පසුපසට යන්න\", \"වමට හැරෙන්න\", \"දකුණට හැරෙන්න\", \"නවතින්න\", \"Light ON\", \"Light OFF\", \"No Object\", \"See Object\"};\n String[] actionCmd = {\"1\", \"2\", \"3\", \"4\", \"5\", \"1\", \"2\", \"3\", \"4\"};\n String[] comparaters = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \">\", \"<\"};\n String[] response = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"1\", \"1\"};\n String[] reference = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"100\", \"100\"};\n String[] buttonList = {\"true\", \"true\", \"true\", \"true\", \"false\", \"true\", \"false\", \"false\", \"false\"};\n //String[] imageList = {\"forward\", \"reverse\", \"left\", \"right\", \"stop\", \"true\", \"false\"};\n\n for (int i = 0; i < 9; i++) {\n\n String types;\n\n if (i >= 7) {\n types = Capability.CAP_SENSE;\n } else if (i < 2 || i > 5) {\n types = Capability.CAP_ACTION_C;\n } else {\n types = Capability.CAP_ACTION;\n }\n\n Map<String, String> nameList = new HashMap<>();\n nameList.put(\"en_US\", actionNames_en[i]);\n nameList.put(\"si_LK\", actionNames_si[i]);\n\n try {\n\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n // root elements\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n\n Element capability = doc.createElement(\"Capability\");\n rootElement.appendChild(capability);\n\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(ids[i]));\n capability.appendChild(id);\n\n Element names = doc.createElement(\"Names\");\n capability.appendChild(names);\n\n for (Map.Entry<String, String> entry : nameList.entrySet()) {\n Element name = doc.createElement(\"Name\");\n Element locale = doc.createElement(\"Locale\");\n Element nameStr = doc.createElement(\"Value\");\n\n locale.appendChild(doc.createTextNode(entry.getKey()));\n nameStr.appendChild(doc.createTextNode(entry.getValue()));\n\n name.appendChild(locale);\n name.appendChild(nameStr);\n names.appendChild(name);\n }\n\n Element type = doc.createElement(\"Type\");\n type.appendChild(doc.createTextNode(types));\n capability.appendChild(type);\n\n Element testCmd = doc.createElement(\"TestCommand\");\n testCmd.appendChild(doc.createTextNode(\"t\" + actionCmd[i]));\n capability.appendChild(testCmd);\n\n Element button = doc.createElement(\"HasTestButton\");\n button.appendChild(doc.createTextNode(buttonList[i]));\n capability.appendChild(button);\n\n Element exeCmd = doc.createElement(\"ExeCommand\");\n exeCmd.appendChild(doc.createTextNode(\"a\" + actionCmd[i]));\n capability.appendChild(exeCmd);\n\n Element stopCmd = doc.createElement(\"StopCommand\");\n stopCmd.appendChild(doc.createTextNode(\"a5\"));\n capability.appendChild(stopCmd);\n\n Element compType = doc.createElement(\"Comparator\");\n compType.appendChild(doc.createTextNode(comparaters[i]));\n capability.appendChild(compType);\n\n Element respSize = doc.createElement(\"Response\");\n respSize.appendChild(doc.createTextNode(response[i]));\n capability.appendChild(respSize);\n\n Element refVal = doc.createElement(\"Reference\");\n refVal.appendChild(doc.createTextNode(reference[i]));\n capability.appendChild(refVal);\n\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(ids[i]));\n capability.appendChild(image);\n\n // write the content into xml file\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.CAP_FILE_DIR + ids[i] + \".xml\");\n StreamResult result = new StreamResult(file); //new File(\"C:\\\\file.xml\"));\n\n transformer.transform(source, result);\n\n System.out.println(\"File saved!\");\n\n } catch (ParserConfigurationException | TransformerException pce) {\n pce.printStackTrace();\n }\n\n }\n }", "WithCreate withKind(String kind);", "public ModuleType(String name) {\r\n super(name, name);\r\n }", "public Circuit(String s) {\r\n name = s;\r\n }", "public ProductType(String name, String spacecraft, String sensor,\n String description, String level)\n {\n this.name = name;\n this.spacecraft = spacecraft.toUpperCase();\n this.sensor = sensor;\n this.description = description;\n this.level = level;\n }", "public OptionsTypeTest(String name) {\n\t\tsuper(name);\n\t}", "public void newQuest(String name) {\n\t\t//Prevent NullPointerExcpetions\n\t\tif (name == null) {\n\t\t\tbakeInstance.getLogger().info(\"[Bake] Null name for new generated quest. Falling back to default quest selection.\");\n\t\t\tnewQuest();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (QuestCfg.getString(\"quests.\" + name + \".type\", \"N/A\").equals(\"N/A\")) {\n\t\t\tbakeInstance.getLogger().info(\"[Bake] Invalid name (\" + name + \") for new generated quest. Falling back to default quest selection.\");\n\t\t\t//Invalid quest name\n\t\t\tnewQuest();\n\t\t} else {\n\t\t\t//Valid quest name\n\t\t\tactiveQuest = new Quest(QuestCfg, name);\n\t\t}\n\t}", "public Spec__1() {\n }", "public GuidanceTest(String name) {\n\t\tsuper(name);\n\t}", "NamedType createNamedType();", "public static JavaType createForCStruct(String name) {\n return new JavaType(name);\n }", "public static MethodBuilder constructor(String name) {\n\t\treturn new MethodBuilder().returnType(\"\").name(name);\n\t}", "public static CommandType createClass(String name) {\n\t\t\n\t\tif(counter < MAX) {\n\t\t\tcounter ++;\n\t\t\treturn new CommandType(name);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Es können keine CommandType Objekte mehr erstellt werden!\");\n\t\t\treturn null;\n\t\t}\n\t\t\t\n\t}", "public ModuleType(String name, String description) {\r\n super(name, description);\r\n }", "public VirtualMachineTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "@JsonCreator\n public static ComputeType fromString(String name) {\n return fromString(name, ComputeType.class);\n }", "String getCapability_name();", "SimPolicy.DefinitionStages.Blank define(String name);", "Builder(String name) {\n var synthetic = Set.of(ModuleDescriptor.Modifier.SYNTHETIC);\n this.descriptor = ModuleDescriptor.newModule(name, synthetic);\n }", "UsabilityRequirement createUsabilityRequirement();", "public TestCase(String name) {\n\t\tsetName(name);\n\t}", "public SampleJUnit(String name) {\r\n\t\tsuper(name);\r\n\t}", "@JsonCreator\n public static CapacityReservationGroupInstanceViewTypes fromString(String name) {\n return fromString(name, CapacityReservationGroupInstanceViewTypes.class);\n }", "public PlanillaTest(String name) {\n\t\tsuper(name);\n\t}", "public MetaTypedElementTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "void generate(String name, List<String> types, Settings settings);", "public Feature(String name) {\n\t\tthis(name.split(\"\\\\.\"));\n\t}", "VirtualMachineTemplate.DefinitionStages.Blank define(String name);", "public Type type(String name);", "public abstract IExperiment createExperiment(String description);", "ConceptType createConceptType();", "ResourceInstance createResource(String type) {\n Map<Resource.Type, String> mapIds = new HashMap<>();\n mapIds.put(Resource.Type.Cluster, clusterName);\n mapIds.put(Resource.Type.ClusterKerberosDescriptor, type);\n return createResource(Resource.Type.ClusterKerberosDescriptor, mapIds);\n }", "public GridTest(String name) {\n\t\tsuper(name);\n\t}", "public Type(final String name, final String extension) {\n this.name = name;\n this.extension = extension;\n }", "public AxiomTest(String name) {\n\t\tsuper(name);\n\t}", "public static void makeCritter(String critter_class_name) throws InvalidCritterException {\n\t\tCritter critter;\n\t//Create the critter\t\n\t\ttry {\n\t\t\tClass<?> critter_class = Class.forName(myPackage + \".\" + critter_class_name);\n\t\t\tcritter = (Critter) critter_class.newInstance();\n\t\t}\n\t\tcatch (ClassNotFoundException e1) {\t\t//Class.forName() exception\n\t\t\tthrow new InvalidCritterException(critter_class_name);\n\t\t}\n\t\tcatch (IllegalAccessException e2) {\t\t//Class.newInstance() exception\n\t\t\tthrow new InvalidCritterException(critter_class_name);\n\t\t}\n\t\tcatch (InstantiationException e3) { \t//Class.newInstance() exception\n\t\t\tthrow new InvalidCritterException(critter_class_name);\n\t\t}\n\t//Initialize the location/energy of the critter\n\t\tcritter.energy = Params.start_energy;\n\t\tcritter.x_coord = getRandomInt(Params.world_width);\n\t\tcritter.y_coord = getRandomInt(Params.world_height);\n\t//Add the critter to the world\n\t\tpopulation.add(critter);\n\t}", "public BaseFeat(String inName)\n {\n super(inName, TYPE);\n }", "ComponentType createComponentType();", "public GenMercuryCapabilities() {\n }", "public SchemeTest (String name)\n {\n super (name);\n /*\n * This constructor should not be modified. Any initialization code\n * should be placed in the setUp() method instead.\n */\n }", "public interface Capability\n{\n String BUNDLE = \"bundle\";\n String FRAGMENT = \"fragment\";\n String PACKAGE = \"package\";\n String SERVICE = \"service\";\n String EXECUTIONENVIRONMENT = \"ee\";\n\n /**\n * Return the name of the capability.\n *\n */\n String getName();\n\n /**\n * Return the properties of this capability\n *\n * @return\n */\n Property[] getProperties();\n\n /**\n * Return the map of properties.\n *\n * @return a Map<String,Object>\n */\n Map<String, Object> getPropertiesAsMap();\n\n /**\n * Return the directives of this capability. The returned map\n * can not be modified.\n *\n * @return a Map of directives or an empty map there are no directives.\n */\n Map<String, String> getDirectives();\n}", "public SwitchLookupTest(String name) {\n super(name);\n }", "QualityScenario createQualityScenario();", "public Spec(int id, String name) {\n super();\n this.id = id;\n this.name = name;\n }", "public Service(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String name) {\n super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);\n software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, \"scope is required\"), java.util.Objects.requireNonNull(name, \"name is required\") });\n }", "PrioritySpecifierType createPrioritySpecifierType();", "public ControlChannel(String name)\n\t{\n\t\tthis.name = name;\n\t\tmyController = Controller.getController();\n\t}", "public LTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "public static Unit generateDummy(String className)\r\n {\r\n try\r\n {\r\n //find constructor requiring no parameters\r\n Class classToCreate = Class.forName(\"TowerDefense.\"+className);\r\n Class[] params = {};\r\n Constructor constructor = classToCreate.getConstructor(params);\r\n \r\n //create instance of object using found constructor\r\n Object[] argList = {};\r\n return (Tower)constructor.newInstance(argList);\r\n }\r\n catch (Exception e)\r\n {\r\n System.out.println(e);\r\n return null;\r\n }\r\n }", "public DRDAProtocolTest(String name) {\n super(name);\n }", "public PowerSource(String name) {\n super(name, null);\n Reporter.report(this, Reporter.Msg.CREATING);\n }", "public ProductType(String name, String spacecraft, String sensor,\n String description, String level, File is_directory)\n {\n this.name = name;\n this.spacecraft = spacecraft.toUpperCase();\n this.sensor = sensor;\n this.description = description;\n this.level = level;\n this.is_directory = is_directory;\n }", "ConceptsType createConceptsType();", "private Constant(String name) {\n this.name = name.trim().intern();\n if (StringUtils.isNumeric(this.name())){\n if (StringUtils.isInteger(this.name())){\n this.intValue = Integer.parseInt(this.name());\n this.doubleValue = Double.parseDouble(this.name());\n this.constantType = INTEGER;\n } else if (StringUtils.isDouble(this.name())){\n this.doubleValue = Double.parseDouble(this.name());\n this.constantType = DOUBLE;\n }\n } else {\n this.constantType = GENERIC;\n }\n }", "public static void createCritter(String critter_class_name)\n throws InvalidCritterException {\n //does the desired critter class exist????\n Class<?> myCritClass;\n try {\n myCritClass = Class.forName(myPackage+\".\"+critter_class_name);\n if(!Critter.class.isAssignableFrom(myCritClass)) {\n throw new InvalidCritterException(critter_class_name);\n }\n } catch (ClassNotFoundException e) {\n throw new InvalidCritterException(critter_class_name);\n }\n\n //init the critters data and check for collisions\n try {\n //set the critters position and energy\n Critter critterToAdd = (Critter)(myCritClass.newInstance());\n critterToAdd.x_coord = getRandomInt(Params.WORLD_WIDTH);\n critterToAdd.y_coord = getRandomInt(Params.WORLD_HEIGHT);\n critterToAdd.energy = Params.START_ENERGY;\n\n //if two critters collide on spawning then their fight is done on the next time step\n\n population.add(critterToAdd);\n } catch (InstantiationException | IllegalAccessException e) {\n throw new InvalidCritterException(critter_class_name);\n }\n }", "public Character(String name, Gender gen, Species spec) {\n this.name = name;\n this.gender = gen;\n this.species = spec;\n this.lifePoints = BASE_LIFE_POINTS;\n this.energy = BASE_ENERGY;\n this.level = 1;\n this.exp = 0;\n }", "protected SIRequestFailureType(String name)\n {\n this.name = name;\n if (name == null)\n {\n throw new NullPointerException(\"Name is null\");\n }\n }", "FeatureConcept createFeatureConcept();", "public TcgPlatformSpecification() {\n\t}", "public TestCase(String name) {\n fName= name;\n }", "public SqlValidatorTestCase(String name)\n {\n super(splitName(name));\n SqlConformance conformance = splitConformance(name);\n if (conformance == null) {\n conformance = SqlConformance.Default;\n }\n this.tester = getTester(conformance);\n }", "@JsonCreator\n public static CreateMode fromString(String name) {\n return fromString(name, CreateMode.class);\n }", "public Capabilities() {\n super();\n this.caps = new HashSet<ICapability>();\n }", "private PoliticalSystem(String name) {\n\t\tthis.name = name;\n\t}", "public FastProvisioningEditionCapability() {\n }", "public Kit(@Nonnull String name) {\n this(name, new HashMap<>(), new HashMap<>());\n }", "public tuna_Ep17(String name){ \t// Constructor added in Episode 17\r\n\t\tgirlName = name;\r\n\t}", "public DefaultScopeDescriptionTest() {\n }", "private TestDescriptor() {\r\n super(\"net.ssehub.easy.reasoning.drools2.tests\", \r\n null, \r\n true, // CHECK\r\n false);\r\n }", "private Capability getCapFromElement(Element el) {\n String capId = el.getElementsByTagName(\"Id\").item(0).getTextContent();\n NodeList nodeList = el.getElementsByTagName(\"Names\").item(0).getChildNodes();\n Map<Locale, String> actNames = new HashMap<>();\n\n for (int i = 0; i < nodeList.getLength(); i++) {\n NodeList nameNodes = nodeList.item(i).getChildNodes();\n String locale = nameNodes.item(0).getTextContent();\n String name = nameNodes.item(1).getTextContent();\n actNames.put(new Locale(locale.split(\"_\")[0], locale.split(\"_\")[1]), name);\n }\n String testCmd = el.getElementsByTagName(\"TestCommand\").item(0).getTextContent();\n String exeCmd = el.getElementsByTagName(\"ExeCommand\").item(0).getTextContent();\n String stopCmd = el.getElementsByTagName(\"StopCommand\").item(0).getTextContent();\n\n String compType = el.getElementsByTagName(\"Comparator\").item(0).getTextContent();\n String resp = el.getElementsByTagName(\"Response\").item(0).getTextContent();\n String refVal = el.getElementsByTagName(\"Reference\").item(0).getTextContent();\n\n String type = el.getElementsByTagName(\"Type\").item(0).getTextContent();\n String image = el.getElementsByTagName(\"Image\").item(0).getTextContent();\n boolean hasTestButton = Boolean.parseBoolean(el.getElementsByTagName(\"HasTestButton\").item(0).getTextContent());\n Capability cap = new Capability(capId, actNames, null, type, testCmd, exeCmd, stopCmd, compType, resp, refVal, image, hasTestButton);\n\n return cap;\n }", "public static Creature CreaturesFactory(String type , String name , int point ,int power )\r\n\t{\r\n\t\tif (type.compareToIgnoreCase(\"Goblin\") == 0)\r\n\t\t{\r\n\t\t\treturn new Goblin(name, point, power);\r\n\t\t}\r\n\t\telse if (type.compareToIgnoreCase(\"Mummy\") == 0)\r\n\t\t{\r\n\t\t\treturn new Mummy(name, point, power); \r\n\t\t}\r\n\t\t\r\n\t\treturn null ;\r\n\t}", "VirtualMachine.DefinitionStages.Blank define(String name);", "VirtualMachine.DefinitionStages.Blank define(String name);", "CharacterType createCharacterType(CharacterType t, long gameId);", "public RJBTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "Case createCase();", "public GeneralNames(\n GeneralName name)\n {\n this.names = new GeneralName[] { name };\n }", "private ConfigParamSpecification(Name simpleName, TypeName returnType) {\n this.simpleName = simpleName;\n this.returnType = returnType;\n }", "public Creator(String score_name) {\n this.score_name = score_name;\n\n this.bukkitScoreboard = Bukkit.getScoreboardManager().getNewScoreboard();\n this.obj = this.bukkitScoreboard.registerNewObjective(randomString(), \"dummy\", \"test\");\n\n this.obj.setDisplaySlot(DisplaySlot.SIDEBAR);\n this.obj.setDisplayName(color(score_name));\n }", "public Module createModule(String bundleName, String moduleTypeName) {\n Bundle bundle = getBundle(bundleName);\n if (bundle == null) {\n return null;\n }\n //System.err.println(\"creating \"+bundleName+\":\"+moduleTypeName);\n CModule newModule = createCModule(bundleName, moduleTypeName);\n //System.err.println(\"done\");\n return newModule;\n }", "private CoverageType(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public GridChangeDescriptionTest(String name) {\n\t\tsuper(name);\n\t}", "HxType createType(final String className);", "private HydroPlantType(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "TypeSystemDefinition createTypeSystemDefinition();", "@JsonCreator\n public static CheckNameResourceTypes fromString(String name) {\n return fromString(name, CheckNameResourceTypes.class);\n }", "public TC_008_010(DesiredCapabilities glb_capacities)\n\t{\n\t\tsuper(glb_capacities);\n\t}", "public ProcessorTest(String name) {\n\t\tsuper(name);\n\t}" ]
[ "0.6600699", "0.6382009", "0.6072974", "0.575884", "0.57530826", "0.55206776", "0.5519628", "0.5506608", "0.5505532", "0.5496521", "0.54478455", "0.54215115", "0.5398941", "0.536309", "0.5362593", "0.5341075", "0.52796036", "0.5269311", "0.5258633", "0.5208306", "0.5204312", "0.5193955", "0.51913166", "0.51483893", "0.51285523", "0.511564", "0.51035386", "0.5099642", "0.50800127", "0.5079412", "0.50759876", "0.50654846", "0.5062756", "0.50566566", "0.50460184", "0.5043922", "0.5011813", "0.50098205", "0.500115", "0.49949738", "0.49916473", "0.49883792", "0.49862963", "0.49827877", "0.49806446", "0.4976891", "0.4967326", "0.49608576", "0.49599364", "0.4957786", "0.49544117", "0.49428684", "0.49421826", "0.4940992", "0.49387687", "0.49328774", "0.49322075", "0.49261078", "0.49239308", "0.4920007", "0.49160305", "0.49160072", "0.49044937", "0.48973235", "0.48891848", "0.48866558", "0.48803827", "0.48790643", "0.48781186", "0.48736274", "0.48612845", "0.4858867", "0.4857587", "0.48548645", "0.48543552", "0.48483044", "0.48425546", "0.48413137", "0.4837159", "0.48308486", "0.48302877", "0.48300588", "0.48278454", "0.48278055", "0.48278055", "0.481723", "0.48157626", "0.48157215", "0.48052275", "0.47966033", "0.47809416", "0.47805667", "0.4775166", "0.47632295", "0.47627813", "0.47604582", "0.4760116", "0.47597873", "0.47587028", "0.47572833" ]
0.78799784
0
Sets the fixture for this Capability Definitions Type test case.
protected void setFixture(CapabilityDefinitionsType fixture) { this.fixture = fixture; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected CapabilityDefinitionsType getFixture() {\n\t\treturn fixture;\n\t}", "protected void setFixture(OptionsType fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(PropertyInstance fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(VirtualMachine fixture) {\r\n\t\tthis.fixture = fixture;\r\n\t}", "protected void setFixture(OpcDevice fixture)\n {\n this.fixture = fixture;\n }", "protected void setFixture(Grid<?, ?> fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(ColumnGroup fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(SaveParameters fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(DatabaseOptions fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(IBodyElementsContainer fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(MobileDevice fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(Colour fixture)\n\t{\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(Map fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(Axiom fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(SokobanService fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(ConnectionInfo fixture) {\r\n\t\tthis.fixture = fixture;\r\n\t}", "protected void setFixture(AddAutoIncrementType fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(BPFieldOfActivityAnnotationsRepository fixture) {\r\n\t\tthis.fixture = fixture;\r\n\t}", "protected void setFixture(Inconsistency fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(BooleanExp fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(FSM fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void setFixture(JournalStatement fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected OptionsType getFixture() {\n\t\treturn fixture;\n\t}", "protected VirtualMachine getFixture() {\r\n\t\treturn fixture;\r\n\t}", "@Test\n\tpublic void testSetTankType_1()\n\t\tthrows Exception {\n\t\tSaveScenarioAction fixture = SaveScenarioActionFactory.createInstance();\n\t\tTANK_TYPE type = TANK_TYPE.FIFTEEN_GAL;\n\n\t\tfixture.setTankType(type);\n\n\t\t// add additional test code here\n\t}", "protected PropertyInstance getFixture() {\n\t\treturn fixture;\n\t}", "@BeforeEach\n void setup() {\n String contentType = getContentType();\n preload(contentType, \"staff\", false);\n }", "public void setUp() {\n entity = new Entity(BaseCareerSet.FIGHTER);\n }", "@BeforeEach\n void setup() {\n String contentType = getContentType();\n preload(contentType, \"staff\", true);\n }", "@Override\r\n\tprotected MetaTypedElement getFixture() {\r\n\t\treturn (MetaTypedElement)fixture;\r\n\t}", "protected SaveParameters getFixture() {\n\t\treturn fixture;\n\t}", "protected SokobanService getFixture() {\n\t\treturn fixture;\n\t}", "protected MobileDevice getFixture() {\n\t\treturn fixture;\n\t}", "@BeforeEach\n void setup() {\n String contentType = getContentType();\n preload(contentType, \"hc_staff\", false);\n }", "protected Map getFixture() {\n\t\treturn fixture;\n\t}", "@Override\n\tprotected Guidance getFixture() {\n\t\treturn (Guidance)fixture;\n\t}", "@Override\n\tprotected SignalArgumentExpression getFixture() {\n\t\treturn (SignalArgumentExpression)fixture;\n\t}", "protected OpcDevice getFixture()\n {\n return fixture;\n }", "@Override\n\tprotected Tablet getFixture() {\n\t\treturn (Tablet)fixture;\n\t}", "@BeforeEach\n void setup() {\n String contentType = getContentType();\n preload(contentType, \"staffNS\", true);\n }", "protected Axiom getFixture() {\n\t\treturn fixture;\n\t}", "protected DatabaseOptions getFixture() {\n\t\treturn fixture;\n\t}", "void setSpecimen(org.hl7.fhir.ResourceReference specimen);", "protected Grid<?, ?> getFixture() {\n\t\treturn fixture;\n\t}", "protected void setUp() {\n multiplicity = new MultiplicityImpl();\n owner = new StereotypeImpl();\n typedValue = new TaggedValueImpl();\n instance = new TagDefinitionImpl();\n }", "protected AddAutoIncrementType getFixture() {\n\t\treturn fixture;\n\t}", "protected IBodyElementsContainer getFixture() {\n\t\treturn fixture;\n\t}", "@Override\n\tprotected Planilla getFixture() {\n\t\treturn (Planilla)fixture;\n\t}", "@Override\n public void setTestItem(){\n expectedName = \"Common lightMagicBook\";\n expectedPower = 10;\n expectedMinRange = 1;\n expectedMaxRange = 2;\n lightMagicBook = new LightMagicBook(expectedName,expectedPower,expectedMinRange,expectedMaxRange);\n animaMagicBook1 = new AnimaMagicBook(\"\",30,1,2);\n darknessMagicBook1 = new DarknessMagicBook(\"\",30,1,2);\n }", "@Test\n public void testSetScriptDriver_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n ScriptDriver driver = ScriptDriver.SilkPerformer;\n\n fixture.setScriptDriver(driver);\n\n }", "@Override\n\tprotected RDFProperty getFixture() {\n\t\treturn (RDFProperty)fixture;\n\t}", "private ColumnGroup getFixture() {\n\t\treturn fixture;\n\t}", "@Override\r\n\tprotected RJB getFixture() {\r\n\t\treturn (RJB)fixture;\r\n\t}", "@Before\n public void setUp() {\n hero = new Character(\"hero\");\n enemy = new Character(\"enemy\");\n }", "@BeforeEach\n void setup() {\n String contentType = getContentType();\n preload(contentType, \"frame2\", false);\n }", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }", "@Before\n\tpublic void setUp()\n\t{\n\t\tOptionsManager.getSingleton().setTestMode(true);\n\t\tQuestManager.resetSingleton();\n\t}", "protected BooleanExp getFixture() {\n\t\treturn fixture;\n\t}", "protected FSM getFixture() {\n\t\treturn fixture;\n\t}", "public void testSetType_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\t\tString value = \"\";\n\n\t\tfixture.setType(value);\n\n\t\t\n\t}", "@Before\n public void setup() {\n super.setup();\n fixture = Fixtures.newGivenWhenThenFixture(projectAggregate.class);\n\n fixture.registerAnnotatedCommandHandler(new projectCommandHandler(fixture.getEventBus(), fixture.getEventStore()));\n }", "@Before\n public void setUp() {\n permissionsS.add(EntityUtil.getSamplePermission());\n }", "@BeforeEach\r\n\tpublic void setUp() {\r\n\t\tplatform = new Platform();\r\n\t\tbastide = new Person(\"Rémi Bastide\");\r\n\t\thistoire = new Course(\"Histoire\", 15);\r\n\t\tgeo = new Course(\"Géographie\", 20);\r\n\t\tplatform.addCourse(histoire);\r\n\t\tplatform.addCourse(geo);\r\n\t\tplatform.registerStudent(bastide);\r\n\t}", "protected BPFieldOfActivityAnnotationsRepository getFixture() {\r\n\t\treturn fixture;\r\n\t}", "@Override\n\tprotected uCourses getFixture() {\n\t\treturn (uCourses)fixture;\n\t}", "@Override\n public void setTestUnit() {\n hero = new Hero(50, 2, field.getCell(0, 0));\n }", "protected Colour getFixture()\n\t{\n\t\treturn fixture;\n\t}", "@Before\n public void setUp() {\n dialog = new File(\"unittests/rc/mock.vxml\").toURI();\n voice = new Voice();\n final GenericClient client = voice.getClient();\n client.setSecurityPolicy(\"unittests/etc/jvoicexml.policy\");\n client.loadConfiguration(\"unittests/etc/jndi.properties\");\n }", "@BeforeEach\n void setUp() {\n super.setUp();\n testWeapon = getWeapon(WeaponType.SWORD);\n testDifferentWeapon = getWeaponWith(WeaponType.SWORD, 30, 15);\n correctCharacters.add(testKnight);\n correctCharacters.add(testThief);\n incorrectCharacters.add(testEngineer);\n incorrectCharacters.add(testBlackMage);\n incorrectCharacters.add(testWhiteMage);\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tsubGen = new SubsetGenerator();\n\t}", "protected Inconsistency getFixture() {\n\t\treturn fixture;\n\t}", "@Before\n\tpublic void setUpMutableFixture() {\n\t\tcmcSystem = new CMCSystem(new OrderDAOImpl());\n\t\tschedule = cmcSystem.getScheduler();\n\t\tassemblyLine = cmcSystem.getAssemblyLine(0);\n\t}", "@Before\n\tpublic void setup() {\n\t\tthis.item = new CollisionItemAdapter<Body, BodyFixture>();\n\t}", "@ProgrammaticProperty\n public void setSeparateTestSetDataSource(String spec) {\n m_separateTestSetDataSource = spec;\n }", "@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }", "@Override\n\tprotected SmokeDetector getFixture() {\n\t\treturn (SmokeDetector)fixture;\n\t}", "@BeforeClass\n\tpublic static void setUpImmutableFixture() {\n\t\t\n\t}", "protected ConnectionInfo getFixture() {\r\n\t\treturn fixture;\r\n\t}", "@BeforeEach\n\tvoid testSetup() {\n\t\tCrewMember testMember = new Medic(\"Test Medic\");\n\t\tArrayList<CrewMember> crewList = new ArrayList<CrewMember>();\n\t\tcrewList.add(testMember);\n\t\ttestCrew = new Crew(\"Test Crew\", crewList);\n\t\titemList = new ArrayList<MedicalItem>();\n\t\titemList.add(new AdvancedMedicalKit());\n\t\titemList.add(new BasicMedicalKit());\n\t\titemList.add(new PlagueCure());\n\t}", "@Override\n\tprotected GridChangeDescription getFixture() {\n\t\treturn (GridChangeDescription)fixture;\n\t}", "@Override\n\tprotected ExternalReference getFixture() {\n\t\treturn (ExternalReference)fixture;\n\t}", "public CapabilityDefinitionsTypeTest(String name) {\n\t\tsuper(name);\n\t}", "public void testSetName_fixture1_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture1();\n\t\tString name = \"\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Before\n\tpublic void setUp() {\n\t\tcompteTest = FactoryCompte.getCompteVide();\n\t\tcompteTest.setIdClient(3630);\n\t\tcompteTest.setBalance(89.8);\n\t\tcompteTest.setNegativeBalanceAllowed(false);\n\t\t\n\t\tinstance.createWithId(compteTest);\t\t\n\t}", "public void testSetName_fixture3_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture3();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testSetProductName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String productName = \"\";\n\n fixture.setProductName(productName);\n\n }", "@Before\r\n\tpublic void set()\r\n\t{\n\t\tif (!Message.configure(\"wordsweeper.xsd\")) {\r\n\t\t\tfail (\"unable to configure protocol\");\r\n\t\t}\r\n\t\tModel.serverAccess = mockServer;\r\n\t\tModel.gameLayout = gameLayout;\r\n\t\tModel.GAME = game;\r\n\t\tModel.PLAYER = player;\r\n\t\tModel.BOARD = board;\r\n\t\tModel.gameLayout.setLayout();\r\n\t\tModel.gameLayout.addListener();\r\n\t}", "public void testSetName_fixture13_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture13();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Before\n public void setUp() {\n fixture = new WordCounter(testMap);\n }", "public void testSetName_fixture17_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture17();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Override\n\tpublic void setTest() {\n\t}", "@Override\n\tprotected FuncionInterna getFixture() {\n\t\treturn (FuncionInterna)fixture;\n\t}", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "@Before\n public void setup() {\n kata4 = new SpinWords();\n }", "public void testSetName_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testSetScript_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String script = \"\";\n\n fixture.setScript(script);\n\n }", "@BeforeEach\n void setup() {\n String contentType = getContentType();\n preload(contentType, \"document\", false);\n }", "protected JournalStatement getFixture() {\n\t\treturn fixture;\n\t}", "@Before\n public void setUp() {\n \tserver = super.populateTest();\n }", "@Override\n\tprotected EntidadRelacionDebil getFixture() {\n\t\treturn (EntidadRelacionDebil)fixture;\n\t}" ]
[ "0.7247942", "0.7105525", "0.67401123", "0.67162114", "0.66897887", "0.66676235", "0.6649708", "0.6605117", "0.6592108", "0.6493185", "0.6471886", "0.6470848", "0.6449307", "0.64475846", "0.6344124", "0.6324366", "0.62798285", "0.62690175", "0.6247243", "0.6236075", "0.6202529", "0.6134213", "0.60193133", "0.5904136", "0.5902713", "0.58885914", "0.56573033", "0.5657143", "0.565167", "0.5640774", "0.5608632", "0.5605248", "0.5586071", "0.5569641", "0.55615985", "0.55569774", "0.55254036", "0.5521769", "0.55053675", "0.5501075", "0.54999566", "0.54895735", "0.5452172", "0.544946", "0.5438281", "0.5399083", "0.539563", "0.53664005", "0.53639174", "0.5355987", "0.5301487", "0.5301279", "0.52838975", "0.5274282", "0.52506644", "0.5221919", "0.5221077", "0.5210847", "0.5203889", "0.51932657", "0.51918036", "0.5180622", "0.5170856", "0.5170524", "0.51612806", "0.5160007", "0.51573145", "0.51569194", "0.5153409", "0.51503706", "0.5143372", "0.5137871", "0.5134666", "0.51193154", "0.51107156", "0.5109005", "0.51070017", "0.5101651", "0.50997984", "0.50993216", "0.50941527", "0.5085667", "0.50714314", "0.50691736", "0.5066914", "0.50621396", "0.5059715", "0.5058905", "0.50579315", "0.5054301", "0.50470984", "0.50381124", "0.503742", "0.5033437", "0.50329655", "0.5025027", "0.50250036", "0.50217485", "0.50143546", "0.5007418" ]
0.8202376
0
Returns the fixture for this Capability Definitions Type test case.
protected CapabilityDefinitionsType getFixture() { return fixture; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected OptionsType getFixture() {\n\t\treturn fixture;\n\t}", "protected Grid<?, ?> getFixture() {\n\t\treturn fixture;\n\t}", "protected OpcDevice getFixture()\n {\n return fixture;\n }", "protected VirtualMachine getFixture() {\r\n\t\treturn fixture;\r\n\t}", "protected PropertyInstance getFixture() {\n\t\treturn fixture;\n\t}", "protected Map getFixture() {\n\t\treturn fixture;\n\t}", "@Override\n\tprotected Guidance getFixture() {\n\t\treturn (Guidance)fixture;\n\t}", "protected SaveParameters getFixture() {\n\t\treturn fixture;\n\t}", "@Override\r\n\tprotected MetaTypedElement getFixture() {\r\n\t\treturn (MetaTypedElement)fixture;\r\n\t}", "protected SokobanService getFixture() {\n\t\treturn fixture;\n\t}", "protected Axiom getFixture() {\n\t\treturn fixture;\n\t}", "private ColumnGroup getFixture() {\n\t\treturn fixture;\n\t}", "protected IBodyElementsContainer getFixture() {\n\t\treturn fixture;\n\t}", "protected DatabaseOptions getFixture() {\n\t\treturn fixture;\n\t}", "protected MobileDevice getFixture() {\n\t\treturn fixture;\n\t}", "protected BPFieldOfActivityAnnotationsRepository getFixture() {\r\n\t\treturn fixture;\r\n\t}", "protected AddAutoIncrementType getFixture() {\n\t\treturn fixture;\n\t}", "@Override\r\n\tprotected RJB getFixture() {\r\n\t\treturn (RJB)fixture;\r\n\t}", "protected BooleanExp getFixture() {\n\t\treturn fixture;\n\t}", "protected ConnectionInfo getFixture() {\r\n\t\treturn fixture;\r\n\t}", "@Override\n\tprotected Tablet getFixture() {\n\t\treturn (Tablet)fixture;\n\t}", "protected Inconsistency getFixture() {\n\t\treturn fixture;\n\t}", "protected Colour getFixture()\n\t{\n\t\treturn fixture;\n\t}", "@Override\n\tprotected SignalArgumentExpression getFixture() {\n\t\treturn (SignalArgumentExpression)fixture;\n\t}", "@Override\n\tprotected FuncionInterna getFixture() {\n\t\treturn (FuncionInterna)fixture;\n\t}", "protected JournalStatement getFixture() {\n\t\treturn fixture;\n\t}", "protected FSM getFixture() {\n\t\treturn fixture;\n\t}", "Reference getSpecimen();", "@Override\n\tprotected Planilla getFixture() {\n\t\treturn (Planilla)fixture;\n\t}", "@Override\n\tprotected GridChangeDescription getFixture() {\n\t\treturn (GridChangeDescription)fixture;\n\t}", "@Override\n\tprotected uCourses getFixture() {\n\t\treturn (uCourses)fixture;\n\t}", "private L getFixture() {\r\n\t\treturn (L)fixture;\r\n\t}", "@Override\n\tprotected ExternalReference getFixture() {\n\t\treturn (ExternalReference)fixture;\n\t}", "@Override\n\tprotected SmokeDetector getFixture() {\n\t\treturn (SmokeDetector)fixture;\n\t}", "@Override\n\tprotected RDFProperty getFixture() {\n\t\treturn (RDFProperty)fixture;\n\t}", "@Override\r\n\tprotected INetElement getFixture() {\r\n\t\treturn (INetElement)fixture;\r\n\t}", "@Override\n\tprotected Association getFixture() {\n\t\treturn (Association)fixture;\n\t}", "@Override\n\tprotected ObjectsPublic getFixture() {\n\t\treturn (ObjectsPublic)fixture;\n\t}", "@Override\n\tprotected EntidadRelacionDebil getFixture() {\n\t\treturn (EntidadRelacionDebil)fixture;\n\t}", "@Override\r\n\tprotected AbstractDiagramElement getFixture() {\r\n\t\treturn (AbstractDiagramElement)fixture;\r\n\t}", "@Override\n\tprotected UL getFixture() {\n\t\treturn (UL)fixture;\n\t}", "@Override\n\tprotected Presentation getFixture() {\n\t\treturn (Presentation)fixture;\n\t}", "@Override\n\tprotected CRUDPage getFixture() {\n\t\treturn (CRUDPage)fixture;\n\t}", "@Override\n\tprotected BPMNDiagram getFixture() {\n\t\treturn (BPMNDiagram)fixture;\n\t}", "protected void setFixture(CapabilityDefinitionsType fixture) {\n\t\tthis.fixture = fixture;\n\t}", "private DeltaReplacedConnector getFixture() {\n\t\treturn (DeltaReplacedConnector)fixture;\n\t}", "@Override\n\tprotected HTTPHookDecorator getFixture() {\n\t\treturn (HTTPHookDecorator)fixture;\n\t}", "org.hl7.fhir.ResourceReference getSpecimen();", "@Override\n\tprotected SubrangoNumerico getFixture() {\n\t\treturn (SubrangoNumerico)fixture;\n\t}", "@Nested\n TestFixturesDependencyModifier getTestFixtures();", "@Override\n\tprotected TestIdentityAction getFixture() {\n\t\treturn (TestIdentityAction)fixture;\n\t}", "@Override\r\n\tprotected TokenAttribute getFixture() {\r\n\t\treturn (TokenAttribute)fixture;\r\n\t}", "@Override\n\tprotected Node getFixture() {\n\t\treturn (Node)fixture;\n\t}", "public Array<Fixture> getFixtureList () {\n\t\treturn fixtures;\n\t}", "@Override\n\tprotected ParameterDateType getFixture() {\n\t\treturn (ParameterDateType)fixture;\n\t}", "@Override\n\tprotected Processor getFixture() {\n\t\treturn (Processor)fixture;\n\t}", "@Override\n\tprotected OutputPort getFixture() {\n\t\treturn (OutputPort)fixture;\n\t}", "public CapabilityDefinitionsTypeTest(String name) {\n\t\tsuper(name);\n\t}", "public Version getFixture()\n\t\tthrows Exception {\n\t\tif (fixture == null) {\n\t\t\tfixture = new Version(\"1\");\n\t\t}\n\t\treturn fixture;\n\t}", "@Override\n\tprotected DeletePage getFixture() {\n\t\treturn (DeletePage)fixture;\n\t}", "public String getTestCaseType() {\r\n\t\treturn testCaseType;\r\n\t}", "public String getTestType() {\n return testType;\n }", "@Override\n\tprotected GreaterThan getFixture() {\n\t\treturn (GreaterThan)fixture;\n\t}", "@Override\n\tprotected ConditionalExpression getFixture() {\n\t\treturn (ConditionalExpression)fixture;\n\t}", "@Override\n\tprotected AlternativeFlow getFixture() {\n\t\treturn (AlternativeFlow)fixture;\n\t}", "@Override\n\tprotected OPMExhibitionLink getFixture() {\n\t\treturn (OPMExhibitionLink)fixture;\n\t}", "@Override\n\tprotected DeterministicEvaluationAspect getFixture() {\n\t\treturn (DeterministicEvaluationAspect)fixture;\n\t}", "@Override\n\tprotected UpperClockConstraint getFixture() {\n\t\treturn (UpperClockConstraint)fixture;\n\t}", "CapabilitiesType createCapabilitiesType();", "@Override\n\tprotected BasicLink getFixture() {\n\t\treturn (BasicLink)fixture;\n\t}", "public static PurchasePlanEnsurePageBo getTestCase()\n\t{\n\t\tPurchasePlanEnsurePageBo bo = new PurchasePlanEnsurePageBo();\n\t\tList<PurchasePlanEnsureBo> assetsList = new ArrayList<PurchasePlanEnsureBo>();\n\n\t\tPurchasePlanEnsureBo a = PurchasePlanEnsureBoTest.getTestCase();\n\n\t\tassetsList.add(a);\n\t\tassetsList.add(a);\n\t\tassetsList.add(a);\n\t\tbo.setAssetsList(assetsList);\n\t\treturn bo;\n\t}", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "public UiTestBase<D> getTestBase();", "public ScenarioType getScenarioType() {\n return scenarioType;\n }", "public static VerticalExtent getFixture() {\r\n\t\ttry {\r\n\t\t\tif (!DDMSVersion.getCurrentVersion().isAtLeast(\"5.0\"))\r\n\t\t\t\treturn (new VerticalExtent(1.1, 2.2, \"Meter\", \"HAE\"));\r\n\t\t}\r\n\t\tcatch (InvalidDDMSException e) {\r\n\t\t\tfail(\"Could not create fixture: \" + e.getMessage());\r\n\t\t}\r\n\t\treturn (null);\r\n\t}", "@Override\n\tprotected LightSensor getFixture() {\n\t\treturn (LightSensor)fixture;\n\t}", "TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }", "public String getSampleType() {\n return sampleType;\n }", "public Feature getTestedFeature() {\n return testedFeature;\n }", "public JFrame getCreateTestFrame() {\r\n\t\treturn createTestFrame;\r\n\t}", "public Instances getTesting()\n {\n return new Instances(mTesting);\n }", "public static String getSampleDefintion() throws IOException\n\t{\n\t\tInputStream is = ResourceHelper.getResourceAsStream(\"org/infoglue/cms/controllers/TestContentDefinition.xml\", ContentTypeDefinitionControllerTest.class);\n\n\t\tif(is == null)\n\t\t\tfail(\"Unable to read test document, make sure it got copied to the test classpath\");\n\n\t\tString line = null;\n\t\tStringBuffer sb = new StringBuffer();\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is));\n\t\twhile((line = reader.readLine()) != null)\n\t\t\tsb.append(line);\n\n\t\treader.close();\n\t\treturn sb.toString();\n\t}", "public CustomizationSpecification specification() {\n return this.specification;\n }", "public ITrait<T> getRandomTraitFromDimension() {\n // needs to use the list only\n Integer randomTraitNumber = this.model.getUniformRandomInteger(this.traitList.size() - 1);\n return this.traitList.get(randomTraitNumber);\n }", "public static Test suite() {\n return createModuleTest(WizardsTest.class);\n }", "@Test\n public void getItemType () {\n Assert.assertEquals(\"SPECIAL\", bomb.getItemType().name());\n }", "@DataProvider\r\n\t\t public Object[][] getTestData()\r\n\t\t\t{\r\n\t\t\t \r\n\t\t\t\treturn TestUtil.getData(suiteProductDescPageXls,this.getClass().getSimpleName());\r\n\t\t\t}", "public Collection<List<NameValueBean>> getSpecimenList()\r\n\t{\r\n\t\treturn this.specimenList;\r\n\t}", "protected Object createTest() throws Exception {\n Object test = super.createTest();\n dataPopulator.populate(test);\n return test;\n }", "public String getSpec() {\n return spec;\n }", "public String getSpec() {\n return spec;\n }", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#bondPartialPiCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "public Short getSpecType() {\n return specType;\n }", "@Override\n public ITestContext getTestContext() {\n return testContext;\n }", "public String getTestDefinitionName() {\n return testdefinitionname;\n }", "private MolecularSample createTestSample() {\n testMolecularSample = new MolecularSample();\n testMolecularSample.setName(TEST_MOLECULAR_SAMPLE_NAME_CREATE);\n testMolecularSample.setMaterialSample(TEST_MATERIAL_SAMPLE_UUID);\n testMolecularSample.setSampleType(TEST_MOLECULAR_SAMPLE_SAMPLE_TYPE);\n \n persist(testMolecularSample);\n \n return testMolecularSample;\n }", "@Override\n public Description getDescription() {\n return suiteDescription;\n }", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "public SessionListMsg getFixture()\n\t\tthrows Exception {\n\t\tif (fixture == null) {\n\t\t\tfixture = new SessionListMsg();\n\t\t}\n\t\treturn fixture;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic Class[] getTemplate();" ]
[ "0.6935266", "0.6532805", "0.65102565", "0.6470927", "0.64503", "0.6422818", "0.63774884", "0.63765806", "0.63729376", "0.6318388", "0.63050056", "0.6286694", "0.6266442", "0.6252678", "0.62394196", "0.62349373", "0.6208812", "0.612109", "0.61113954", "0.60854334", "0.60827684", "0.6071684", "0.6046387", "0.6028393", "0.59402007", "0.5927448", "0.5902526", "0.58551204", "0.5842273", "0.58141106", "0.5805375", "0.5805371", "0.57995117", "0.5777071", "0.5741359", "0.57126373", "0.565937", "0.5640782", "0.56168777", "0.5603007", "0.5597563", "0.556439", "0.55395377", "0.55289966", "0.5513796", "0.54787266", "0.54787123", "0.5478102", "0.5472152", "0.5469907", "0.5447028", "0.5440803", "0.542496", "0.5384934", "0.5373982", "0.5369554", "0.53680557", "0.5365151", "0.53501225", "0.5346647", "0.5345731", "0.53352255", "0.5309799", "0.53066504", "0.529197", "0.524273", "0.52339214", "0.51775575", "0.5163612", "0.5152724", "0.5133744", "0.5131155", "0.5095111", "0.5069394", "0.50548685", "0.5029218", "0.5015959", "0.4996857", "0.490408", "0.48722714", "0.48638448", "0.48629236", "0.48513192", "0.48440954", "0.48335916", "0.48204884", "0.4811805", "0.4792194", "0.4789079", "0.4765794", "0.4765794", "0.4763062", "0.47494295", "0.47450063", "0.47265908", "0.47119975", "0.46927294", "0.4688573", "0.4677349", "0.4664991" ]
0.8744248
0
~ Methods ======================================================================================================== all the listed roles must be granted to return true, otherwise fasle;
boolean allGranted(String roles);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean anyGranted(String roles);", "boolean noneGranted(String roles);", "boolean hasRole();", "public Boolean isRoleValid(String userName,String password, Vector roles)\n {\n try\n {\n UserEntityInterface userEntityInterface = UserEntityFactory.getInstance();\n UserInterface userInterface = userEntityInterface.getUser(userName);\n \n if(userInterface.getRole() == null)\n {\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n LogUtil.put(LogFactory.getInstance(\"Role is null: \" + userInterface.getRole() +\n \" Valid Roles: \" + roles.toString(),\n this, \"isRoleValid()\"));\n }\n \n return Boolean.FALSE;\n }\n \n Iterator iter = roles.iterator();\n while(iter.hasNext())\n {\n BasicUserRole nextRole = (BasicUserRole) iter.next();\n if(userInterface.getRole().getBasicUserRole().equals(nextRole))\n {\n //role is verified\n \n //validate permissions to set session\n //this should be seperated into hasPermissions method\n \n /*if(userInterface.hasPermission(new RequestParams(this.request)))\n {\n userInterface.validateSession(weblisketSession,new RequestParams(this.request));\n }\n else\n {\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n LogUtil.put(LogFactory.getInstance(\"Role is not valid: \" + userInterface.getRole() +\n \" Valid Roles: \" + roles.toString(),\n this,\"isRoleValid()\"));\n }\n \n return Boolean.FALSE;\n }\n */\n \n userInterface.validateSession((WeblisketSessionInterface) weblisketSession);\n \n this.request.removeAttribute(WeblisketSessionData.REMOVABLEUSERNAME);\n this.request.removeAttribute(WeblisketSessionData.REMOVABLEPASSWORD);\n return Boolean.TRUE;\n }\n }\n \n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n \t StringBuffer stringBuffer = new StringBuffer();\n \t \n \t stringBuffer.append(\"Role is not valid: \");\n \t stringBuffer.append(userInterface.getRole());\n \t stringBuffer.append(\" Valid Roles: \");\n \t stringBuffer.append(roles.toString());\n \t \n LogUtil.put(LogFactory.getInstance(stringBuffer.toString(), this, \"isRoleValid()\"));\n }\n //on userInterface.getRole() failure\n return Boolean.FALSE;\n }\n catch(Exception e)\n {\n String error = \"Failed to check if Role is valid\";\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPERERROR))\n {\n LogUtil.put(LogFactory.getInstance(error, this, \"isRoleValid()\", e));\n }\n return Boolean.FALSE;\n }\n }", "public abstract boolean checkRolesAllowed(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "@Test\n public void testGetPermissionsRole() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"GREET_PEOPLE\");\n permissionManager.addPermission(permission);\n Permission permission2 = permissionManager.getPermissionInstance(\"ADMINISTER_DRUGS\");\n permissionManager.addPermission(permission2);\n Role role = securityService.getRoleManager().getRoleInstance(\"VET_TECH\");\n securityService.getRoleManager().addRole(role);\n ((DynamicModelManager) securityService.getModelManager()).grant(role, permission);\n PermissionSet permissions = ((DynamicRole) role).getPermissions();\n assertEquals(1, permissions.size());\n assertTrue(permissions.contains(permission));\n assertFalse(permissions.contains(permission2));\n }", "boolean isAdmin() {\n\n if (isAdminDirect()) {\n return true;\n }\n\n RoleManager rm = getRoleManager();\n Iterator it = getAllRoles().iterator();\n\n while (it.hasNext()) {\n try {\n if (((Grantee) rm.getGrantee(\n (String) it.next())).isAdminDirect()) {\n return true;\n }\n } catch (HsqlException he) {\n throw Trace.runtimeError(Trace.RETRIEVE_NEST_ROLE_FAIL,\n he.getMessage());\n }\n }\n\n return false;\n }", "public void testRequiredRolesMultipleGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addRequiredMember(m_anyone);\n alarmSystemActivation.addMember(administrators);\n alarmSystemActivation.addMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "boolean hasAttackerRoleId();", "public boolean hasRole() {\n return fieldSetFlags()[6];\n }", "public boolean hasRole(String roleName);", "public void testRequiredRolesMultipleRequiredGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addMember(m_anyone);\n alarmSystemActivation.addRequiredMember(administrators);\n alarmSystemActivation.addRequiredMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "public boolean canUserPerformFunction(int function) {\r\n if (roles != null) {\r\n for (Iterator iter = roles.iterator(); iter.hasNext();) {\r\n UserRole userRole = (UserRole)iter.next();\r\n if (userRole.canRolePerformFunction(function)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "@Override\n\tpublic boolean isRole() {\n\t\treturn true;\n\t}", "Builder rolesAllowed(String... roles) {\n return rolesAllowed(Arrays.asList(roles));\n }", "@Override\r\n\tpublic boolean hasCredential(String[] roles) {\n\t\treturn false;\r\n\t}", "AuthorizationResult hasRoles(Subject subject, String[] roles);", "@Test\n\tpublic void testIsPermittedAll_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "Collection<? extends Role> getIsPerformOf();", "boolean hasAttackerRoleName();", "public boolean isAllowed(BaseAction actionClass) {\r\n\t\tint role = getCurrentRole();\r\n\t\tif ((role & User.ROLE_ADMINISTRATOR) != 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tInteger requiredRoles = privilegeDef.get(actionClass.getClass().getSimpleName());\r\n\t\treturn requiredRoles == null || (requiredRoles & role) != 0;\r\n\t}", "@Test\n\tpublic void testIsPermittedAll_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testIsPermitted_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testCheckRoles_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = new Vector();\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testIsPermitted_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testCheckRoles_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = new Vector();\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}", "boolean every_role(DiagnosticChain diagnostics, Map<Object, Object> context);", "@Test\n\tpublic void testIsPermitted_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "protected boolean hasMyRole() {\r\n String role = getDef().getMyRole();\r\n return AeUtil.notNullOrEmpty(role);\r\n }", "@Test\n\tpublic void testHasAllRoles_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testIsPermittedAll_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testIsPermitted_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = null;\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testHasAllRoles_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public boolean hasRole() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasRole() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Test\n\tpublic void testCheckRoles_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = null;\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testIsPermittedAll_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = null;\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public boolean userHasARole(List<String> userRoles) {\n List<String> specifiedRoles = Arrays.asList(Constants.SUPERVISOR_ROLE, Constants.TRAINER_ROLE, Constants.PARTICIPANT_ROLE);\n int roleCount = 0;\n for (String role : userRoles) {\n if (specifiedRoles.contains(role)) {\n roleCount++;\n }\n }\n return (roleCount == 1) ? true : false;\n }", "@Test\n\tpublic void testHasRoles_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = new Vector();\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testHasRoles_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = null;\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Override\n public boolean isSpecialRoles() {\n\t\tString specialRoles = PropertiesUtils.getStringValue(\"SPECIAL_ROLES\");\n\t\tboolean flag = false;\n\t\tif(StringUtil.isNotEmpty(specialRoles)){\n\t\t\tString[] specialRoleArr = specialRoles.split(\",\");\n\t\t\tList<String> roleList = Arrays.asList(specialRoleArr);\n\t\t\tList<Role> roles = userService.getCurrentLoginUserRoles();\n\t\t\tif(roles != null && roles.size() > 0 ){\n\t\t\t\tfor(Role role : roles ){\n\t\t\t\t\tif(roleList.contains(role.getRoleId())){\n\t\t\t\t\t\t//是老师\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//不是超管\n\t\t\t\tfor(Role role : roles ){\n\t\t\t\t\tif(RoleCode.SUPER_ADMIN.equals(role.getRoleCode())){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn flag;\n }", "@Test\n\tpublic void testHasAllRoles_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testCheckRoles_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = new Vector();\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testHasRoles_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = new Vector();\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private boolean userHasAllowedRole(User u, String[] allowedRoles) {\n\n for (GroupRef group : u.getGroups()) {\n\n if (Arrays.binarySearch(allowedRoles, group.getDisplay()) >= 0) {\n return true;\n }\n }\n\n return false;\n }", "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "@Test(dependsOnMethods = \"testRoleAdd\", groups = \"role\", priority = 1)\n public void testRoleGrantPermission() throws ExecutionException, InterruptedException {\n this.authDisabledAuthClient\n .roleGrantPermission(rootRole, rootRolekeyRangeBegin, rootkeyRangeEnd,\n Permission.Type.READWRITE).get();\n this.authDisabledAuthClient\n .roleGrantPermission(userRole, userRolekeyRangeBegin, userRolekeyRangeEnd, Type.READWRITE)\n .get();\n }", "@Override\n public boolean isRole() {\n return false;\n }", "@Test\n\tpublic void testHasRoles_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = new Vector();\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Override\n\tpublic boolean isAdminRole(String userName) throws Exception {\n\t\treturn false;\n\t}", "@Test\n\tpublic void testHasAllRoles_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = null;\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "boolean isHasPermissions();", "@Test\n public void testDenyAccessWithNegateRoleCondition() {\n denyAccessWithRoleCondition(true);\n }", "@Override\n\tpublic boolean can(String permission)\n\t{\n\t\treturn this.auth() != null && this.auth().getRole() != null && this.auth().getRole().getPermissions().parallelStream().filter(p -> Pattern.compile(p.getName()).matcher(permission).groupCount() == 0).count() != 0;\n\t}", "public void requireRoles(Set<Role> roles) {\n requiredRoles.addAll(roles);\n }", "private static Boolean isAuthorised(Page page, List<GrantedAuthority> userAuthorities ) {\n if ( page.getAllowedRoles().size() == 0 ) {\n return true;\n }\n \n for ( GrantedAuthority role : userAuthorities ) {\n for ( String requiredRole : page.getAllowedRoles() ) {\n if ( role.getAuthority().equals(requiredRole) ) {\n return true;\n }\n }\n }\n return false;\n }", "private static boolean rolesContainRole(Identity userIdentity, String roleName)\r\n {\r\n if (roleName.equals(\"PILOT\"))\r\n return (userIdentity instanceof Pilot) || (userIdentity instanceof SystemAdministrator);\r\n if (roleName.equals(\"GENERAL\"))\r\n return (userIdentity instanceof General) || (userIdentity instanceof SystemAdministrator);\r\n if (roleName.equals(\"ADMIN\"))\r\n return (userIdentity instanceof SystemAdministrator);\r\n return false;\r\n }", "@Override\n\tpublic boolean checkRole(Role Role) {\n\t\tSystem.out.println(Role.getRoleid());\n\t\tif(RoleDao.checkRole(Role).isEmpty())\n\t\t{\n\t\t return true;\n\t\t}\n\t\telse\n\t\t{\n\t\t return false;\n\t\t}\n\t}", "@Override\r\n protected void mayProceed() throws InsufficientPermissionException {\n if (ub.isSysAdmin() || ub.isTechAdmin()) {\r\n return;\r\n }\r\n// if (currentRole.getRole().equals(Role.STUDYDIRECTOR) || currentRole.getRole().equals(Role.COORDINATOR)) {// ?\r\n// ?\r\n// return;\r\n// }\r\n\r\n addPageMessage(respage.getString(\"no_have_correct_privilege_current_study\") + respage.getString(\"change_study_contact_sysadmin\"));\r\n throw new InsufficientPermissionException(Page.MENU_SERVLET, resexception.getString(\"not_allowed_access_extract_data_servlet\"), \"1\");// TODO\r\n // above copied from create dataset servlet, needs to be changed to\r\n // allow only admin-level users\r\n\r\n }", "boolean hasRoleID();", "boolean isAccessible(Object dbobject, int rights) throws HsqlException {\n\n /*\n * The deep recusion is all done in getAllRoles(). This method\n * only recurses one level into isDirectlyAccessible().\n */\n if (isDirectlyAccessible(dbobject, rights)) {\n return true;\n }\n\n if (pubGrantee != null && pubGrantee.isAccessible(dbobject, rights)) {\n return true;\n }\n\n RoleManager rm = getRoleManager();\n Iterator it = getAllRoles().iterator();\n\n while (it.hasNext()) {\n if (((Grantee) rm.getGrantee(\n (String) it.next())).isDirectlyAccessible(\n dbobject, rights)) {\n return true;\n }\n }\n\n return false;\n }", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "private boolean hasRole(Roles role) {\n\t\tSecurityContext context = SecurityContextHolder.getContext();\n\t\t\n\t\tif(context == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tAuthentication aut = context.getAuthentication();\n\t\tif(aut == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tCollection<? extends GrantedAuthority> autohotities = aut.getAuthorities();\n\t\tfor(GrantedAuthority ga : autohotities) {\n\t\t\tif(role.toString().equals(ga.getAuthority())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Test\n\tpublic void testIsPermitted_6()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public void testVotersRequiredMembersOk() {\n Group citizens = RoleFactory.createGroup(\"citizen\");\n citizens.addRequiredMember(m_anyone);\n \n Group adults = RoleFactory.createGroup(\"adult\");\n adults.addRequiredMember(m_anyone);\n \n Group voters = RoleFactory.createGroup(\"voter\");\n voters.addRequiredMember(citizens);\n voters.addRequiredMember(adults);\n voters.addMember(m_anyone);\n \n \n // Elmer belongs to the citizens and adults...\n User elmer = RoleFactory.createUser(\"elmer\");\n citizens.addMember(elmer);\n adults.addMember(elmer);\n \n // Pepe belongs to the citizens, but is not an adult...\n User pepe = RoleFactory.createUser(\"pepe\");\n citizens.addMember(pepe);\n \n // Bugs is an adult, but is not a citizen...\n User bugs = RoleFactory.createUser(\"bugs\");\n adults.addMember(bugs);\n \n // Daffy is not an adult, neither a citizen...\n User daffy = RoleFactory.createUser(\"daffy\");\n\n assertTrue(m_roleChecker.isImpliedBy(voters, elmer));\n assertFalse(m_roleChecker.isImpliedBy(voters, pepe));\n assertFalse(m_roleChecker.isImpliedBy(voters, bugs));\n assertFalse(m_roleChecker.isImpliedBy(voters, daffy));\n }", "Set getRoles();", "@Test\n\tpublic void testIsPermittedAll_5()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testHasAllRoles_5()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Override\n\tpublic boolean isUserInRole(String arg0) {\n\t\treturn false;\n\t}", "public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }", "@Override\n \t\tpublic void checkRoles(RoleChecker arg0) throws SecurityException {\n \t\t}", "boolean hasSetAcl();", "public boolean isAnyRole(String roles) {\n if (authService.isAnonymous()) {\n return false;\n } else {\n String[] rolesArr = roles.split(\",\");\n \n Collection<String> autorities = authService.getCurrentUserAuthorities();\n \n for (String role : rolesArr) {\n for (String autority : autorities) {\n if (autority.equalsIgnoreCase(role)) {\n return true;\n }\n }\n }\n \n return false;\n }\n }", "@Test\n\tpublic void testIsPermitted_7()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test(expected = org.jsecurity.authz.UnauthorizedException.class)\n\tpublic void testCheckRole_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tString role = \"\";\n\n\t\tfixture.checkRole(role);\n\n\t\t// add additional test code here\n\t}", "private void checkUserRoleAssignment(final VOUserDetails consideredUser,\n final String... roleNames) throws Exception {\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n PlatformUser user = dm.getReference(PlatformUser.class,\n consideredUser.getKey());\n Set<RoleAssignment> assignedRoles = user.getAssignedRoles();\n assertEquals(roleNames.length, assignedRoles.size());\n for (String roleName : roleNames) {\n boolean roleFound = false;\n for (RoleAssignment roleAssignment : assignedRoles) {\n if (roleAssignment.getRole().getRoleName().name()\n .equals(roleName)) {\n roleFound = true;\n }\n }\n assertTrue(\"User is missing the required role \" + roleName,\n roleFound);\n }\n return null;\n }\n });\n }", "@Override\n public boolean isPermitted(HttpServletRequest request, int permittedRole) {\n boolean result = false;\n HttpSession session = request.getSession();\n String userName = (String) session.getAttribute(\"userName\");\n String token = (String) session.getAttribute(\"token\");\n int role = Integer.parseInt((String) session.getAttribute(\"role\"));\n if (userName != null && token != null) {\n CrUser user = userRepo.findByUserName(userName);\n if (user != null && isTokenValid(user, token) && role == permittedRole) {\n result = true;\n }\n }\n return result;\n }", "@Override\n public boolean isUserInRole(final String roleName) {\n return scopes.contains(roleName);\n }", "@Override\n protected boolean isAuthorized(PipelineData pipelineData) throws Exception\n {\n \t// use data.getACL() \n \treturn true;\n }", "public boolean isElearningAdministrator(){\r\n \treturn doesUserHaveRole(UserRole.ELEARNING_ADMINISTRATOR);\r\n }", "@Test\n\tpublic void testCheckRole_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tString role = \"\";\n\n\t\tfixture.checkRole(role);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testIsPermitted_5()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testIsPermitted_9()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Override\n public int getRolesCount() {\n return roles_.size();\n }", "@Override\n public int getRolesCount() {\n return roles_.size();\n }", "@Test\n\tpublic void testHasRole_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tString roleName = \"\";\n\n\t\tboolean result = fixture.hasRole(roleName);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public boolean granted(){\n\t\treturn this.granted;\n\t}", "private static boolean checkRole(String roleAsString) {\n for (Roles roleChecked : Roles.values()) {\n if (roleChecked.toString().equals(roleAsString)) {\n return true;\n }\n }\n return false;\n }", "public boolean addSupportRole(Role ... r) {\n\t\tif (getGuild() == null || r == null) { return false; }\n\t\tfor (Role role : r) { if (role.getGuild().equals(getGuild())) supportRoles.add(role); }\n\t\tconfig.save();\n\t\tif (!config.isLoading()) { TMEventManager.departmentChange(this, ChangeType.Dept.ROLES); }\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean isUserInRole(String role) {\n\t\t\treturn false;\n\t\t}", "public boolean hasRoleId() {\n return result.hasRoleId();\n }", "default RolesAndPermissions getRolesAndPermissions()\n throws AuthorizationException {\n throw new IllegalStateException(\n \"Roles and permissions are not properly configured\");\n }", "public void setRoles( Set<String> roles )\n {\n this.roles = roles;\n }", "@Test\n\tpublic void testHasRole_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tString roleName = \"\";\n\n\t\tboolean result = fixture.hasRole(roleName);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public boolean hasAccess(Subject subject, List<? extends Authorizable> authorizableHierarchy,\n Set<? extends Action> actions, ActiveRoleSet roleSet);", "public void testRoles() {\n // this has to be an integration test to ensure roles are available.\n internalCluster().startMasterOnlyNode();\n ReactiveStorageDeciderService service = new ReactiveStorageDeciderService(\n Settings.EMPTY,\n new ClusterSettings(Settings.EMPTY, ClusterSettings.BUILT_IN_CLUSTER_SETTINGS),\n null,\n TestShardRoutingRoleStrategies.DEFAULT_ROLE_ONLY\n );\n assertThat(\n service.roles().stream().sorted().collect(Collectors.toList()),\n equalTo(\n DiscoveryNodeRole.roles()\n .stream()\n .filter(DiscoveryNodeRole::canContainData)\n .filter(r -> r != DiscoveryNodeRole.DATA_FROZEN_NODE_ROLE)\n .filter(r -> r != DiscoveryNodeRole.SEARCH_ROLE)\n .filter(r -> r != DiscoveryNodeRole.INDEX_ROLE)\n .sorted()\n .collect(Collectors.toList())\n )\n );\n }", "@Test\n\tpublic void testIsPermitted_8()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(null);\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testCheckPermissions_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tfixture.checkPermissions(permissions);\n\n\t\t// add additional test code here\n\t}", "private static boolean isAuthorized(\n @Nonnull Authorizer authorizer,\n @Nonnull String actor,\n @Nonnull ConjunctivePrivilegeGroup requiredPrivileges,\n @Nonnull Optional<ResourceSpec> resourceSpec) {\n for (final String privilege : requiredPrivileges.getRequiredPrivileges()) {\n // Create and evaluate an Authorization request.\n final AuthorizationRequest request = new AuthorizationRequest(actor, privilege, resourceSpec);\n final AuthorizationResult result = authorizer.authorize(request);\n if (AuthorizationResult.Type.DENY.equals(result.getType())) {\n // Short circuit.\n return false;\n }\n }\n return true;\n }" ]
[ "0.81748885", "0.749346", "0.746882", "0.68641454", "0.67536783", "0.6734636", "0.6708631", "0.6695182", "0.6681393", "0.6669299", "0.666244", "0.665489", "0.6575256", "0.65577734", "0.65529597", "0.65410125", "0.65106905", "0.65078557", "0.64946425", "0.6487566", "0.64767414", "0.64691377", "0.646322", "0.64472973", "0.64392555", "0.6414196", "0.6406879", "0.6394223", "0.63934386", "0.63905215", "0.63850516", "0.6383257", "0.6374888", "0.637275", "0.6371052", "0.63468343", "0.63439393", "0.633988", "0.63376415", "0.63112384", "0.6298691", "0.62957376", "0.62952316", "0.6290049", "0.6287857", "0.6287288", "0.62845683", "0.62781626", "0.6277989", "0.62748617", "0.6272554", "0.62687397", "0.62625694", "0.6254626", "0.62413067", "0.622883", "0.61920154", "0.616886", "0.616567", "0.6142718", "0.6142285", "0.6141958", "0.6134964", "0.6121405", "0.6116789", "0.6116252", "0.6112709", "0.61057186", "0.61056864", "0.61024344", "0.6083617", "0.60759217", "0.6058148", "0.6054473", "0.605175", "0.60211086", "0.6005657", "0.5999483", "0.5999067", "0.59709764", "0.5970004", "0.59537506", "0.59528434", "0.5947641", "0.5922191", "0.5922191", "0.5905263", "0.59029603", "0.5900882", "0.58997726", "0.58975065", "0.58966184", "0.5881933", "0.5873291", "0.58660257", "0.58639294", "0.58557606", "0.5842553", "0.58357614", "0.58303255" ]
0.8286851
0
any the listed roles must be granted to return true, otherwise fasle;
boolean anyGranted(String roles);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean allGranted(String roles);", "boolean noneGranted(String roles);", "boolean hasRole();", "AuthorizationResult hasRoles(Subject subject, String[] roles);", "boolean hasAttackerRoleId();", "public boolean hasRole(String roleName);", "private boolean userHasAllowedRole(User u, String[] allowedRoles) {\n\n for (GroupRef group : u.getGroups()) {\n\n if (Arrays.binarySearch(allowedRoles, group.getDisplay()) >= 0) {\n return true;\n }\n }\n\n return false;\n }", "public void testRequiredRolesMultipleGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addRequiredMember(m_anyone);\n alarmSystemActivation.addMember(administrators);\n alarmSystemActivation.addMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "public boolean userHasARole(List<String> userRoles) {\n List<String> specifiedRoles = Arrays.asList(Constants.SUPERVISOR_ROLE, Constants.TRAINER_ROLE, Constants.PARTICIPANT_ROLE);\n int roleCount = 0;\n for (String role : userRoles) {\n if (specifiedRoles.contains(role)) {\n roleCount++;\n }\n }\n return (roleCount == 1) ? true : false;\n }", "public void testRequiredRolesMultipleRequiredGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addMember(m_anyone);\n alarmSystemActivation.addRequiredMember(administrators);\n alarmSystemActivation.addRequiredMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "public boolean canUserPerformFunction(int function) {\r\n if (roles != null) {\r\n for (Iterator iter = roles.iterator(); iter.hasNext();) {\r\n UserRole userRole = (UserRole)iter.next();\r\n if (userRole.canRolePerformFunction(function)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "boolean every_role(DiagnosticChain diagnostics, Map<Object, Object> context);", "Collection<? extends Role> getIsPerformOf();", "boolean hasAttackerRoleName();", "private boolean hasRole(Roles role) {\n\t\tSecurityContext context = SecurityContextHolder.getContext();\n\t\t\n\t\tif(context == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tAuthentication aut = context.getAuthentication();\n\t\tif(aut == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tCollection<? extends GrantedAuthority> autohotities = aut.getAuthorities();\n\t\tfor(GrantedAuthority ga : autohotities) {\n\t\t\tif(role.toString().equals(ga.getAuthority())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public Boolean isRoleValid(String userName,String password, Vector roles)\n {\n try\n {\n UserEntityInterface userEntityInterface = UserEntityFactory.getInstance();\n UserInterface userInterface = userEntityInterface.getUser(userName);\n \n if(userInterface.getRole() == null)\n {\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n LogUtil.put(LogFactory.getInstance(\"Role is null: \" + userInterface.getRole() +\n \" Valid Roles: \" + roles.toString(),\n this, \"isRoleValid()\"));\n }\n \n return Boolean.FALSE;\n }\n \n Iterator iter = roles.iterator();\n while(iter.hasNext())\n {\n BasicUserRole nextRole = (BasicUserRole) iter.next();\n if(userInterface.getRole().getBasicUserRole().equals(nextRole))\n {\n //role is verified\n \n //validate permissions to set session\n //this should be seperated into hasPermissions method\n \n /*if(userInterface.hasPermission(new RequestParams(this.request)))\n {\n userInterface.validateSession(weblisketSession,new RequestParams(this.request));\n }\n else\n {\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n LogUtil.put(LogFactory.getInstance(\"Role is not valid: \" + userInterface.getRole() +\n \" Valid Roles: \" + roles.toString(),\n this,\"isRoleValid()\"));\n }\n \n return Boolean.FALSE;\n }\n */\n \n userInterface.validateSession((WeblisketSessionInterface) weblisketSession);\n \n this.request.removeAttribute(WeblisketSessionData.REMOVABLEUSERNAME);\n this.request.removeAttribute(WeblisketSessionData.REMOVABLEPASSWORD);\n return Boolean.TRUE;\n }\n }\n \n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n \t StringBuffer stringBuffer = new StringBuffer();\n \t \n \t stringBuffer.append(\"Role is not valid: \");\n \t stringBuffer.append(userInterface.getRole());\n \t stringBuffer.append(\" Valid Roles: \");\n \t stringBuffer.append(roles.toString());\n \t \n LogUtil.put(LogFactory.getInstance(stringBuffer.toString(), this, \"isRoleValid()\"));\n }\n //on userInterface.getRole() failure\n return Boolean.FALSE;\n }\n catch(Exception e)\n {\n String error = \"Failed to check if Role is valid\";\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPERERROR))\n {\n LogUtil.put(LogFactory.getInstance(error, this, \"isRoleValid()\", e));\n }\n return Boolean.FALSE;\n }\n }", "public boolean isAnyRole(String roles) {\n if (authService.isAnonymous()) {\n return false;\n } else {\n String[] rolesArr = roles.split(\",\");\n \n Collection<String> autorities = authService.getCurrentUserAuthorities();\n \n for (String role : rolesArr) {\n for (String autority : autorities) {\n if (autority.equalsIgnoreCase(role)) {\n return true;\n }\n }\n }\n \n return false;\n }\n }", "@Override\r\n\tpublic boolean hasCredential(String[] roles) {\n\t\treturn false;\r\n\t}", "public abstract boolean checkRolesAllowed(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "Builder rolesAllowed(String... roles) {\n return rolesAllowed(Arrays.asList(roles));\n }", "@Test\n public void testGetPermissionsRole() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"GREET_PEOPLE\");\n permissionManager.addPermission(permission);\n Permission permission2 = permissionManager.getPermissionInstance(\"ADMINISTER_DRUGS\");\n permissionManager.addPermission(permission2);\n Role role = securityService.getRoleManager().getRoleInstance(\"VET_TECH\");\n securityService.getRoleManager().addRole(role);\n ((DynamicModelManager) securityService.getModelManager()).grant(role, permission);\n PermissionSet permissions = ((DynamicRole) role).getPermissions();\n assertEquals(1, permissions.size());\n assertTrue(permissions.contains(permission));\n assertFalse(permissions.contains(permission2));\n }", "@Override\n\tpublic boolean can(String permission)\n\t{\n\t\treturn this.auth() != null && this.auth().getRole() != null && this.auth().getRole().getPermissions().parallelStream().filter(p -> Pattern.compile(p.getName()).matcher(permission).groupCount() == 0).count() != 0;\n\t}", "private static boolean rolesContainRole(Identity userIdentity, String roleName)\r\n {\r\n if (roleName.equals(\"PILOT\"))\r\n return (userIdentity instanceof Pilot) || (userIdentity instanceof SystemAdministrator);\r\n if (roleName.equals(\"GENERAL\"))\r\n return (userIdentity instanceof General) || (userIdentity instanceof SystemAdministrator);\r\n if (roleName.equals(\"ADMIN\"))\r\n return (userIdentity instanceof SystemAdministrator);\r\n return false;\r\n }", "boolean isHasPermissions();", "boolean isAdmin() {\n\n if (isAdminDirect()) {\n return true;\n }\n\n RoleManager rm = getRoleManager();\n Iterator it = getAllRoles().iterator();\n\n while (it.hasNext()) {\n try {\n if (((Grantee) rm.getGrantee(\n (String) it.next())).isAdminDirect()) {\n return true;\n }\n } catch (HsqlException he) {\n throw Trace.runtimeError(Trace.RETRIEVE_NEST_ROLE_FAIL,\n he.getMessage());\n }\n }\n\n return false;\n }", "public boolean hasRole() {\n return fieldSetFlags()[6];\n }", "public void requireRoles(Set<Role> roles) {\n requiredRoles.addAll(roles);\n }", "private static Boolean isAuthorised(Page page, List<GrantedAuthority> userAuthorities ) {\n if ( page.getAllowedRoles().size() == 0 ) {\n return true;\n }\n \n for ( GrantedAuthority role : userAuthorities ) {\n for ( String requiredRole : page.getAllowedRoles() ) {\n if ( role.getAuthority().equals(requiredRole) ) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean isAllowed(BaseAction actionClass) {\r\n\t\tint role = getCurrentRole();\r\n\t\tif ((role & User.ROLE_ADMINISTRATOR) != 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tInteger requiredRoles = privilegeDef.get(actionClass.getClass().getSimpleName());\r\n\t\treturn requiredRoles == null || (requiredRoles & role) != 0;\r\n\t}", "public boolean hasPermission(List<Role> roles, Permission permission) {\n boolean hasPermission = false;\n Connection conn = null;\n PreparedStatement ps = null;\n ResultSet resultSet = null;\n String query = null;\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < roles.size(); i++) {\n sb.append(\"?,\");\n }\n String roleIds = sb.deleteCharAt(sb.length() - 1).toString();\n\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.HAS_PERMISSION_QUERY)\n .replace(\"{ROLE_IDS}\", roleIds);\n ps = conn.prepareStatement(query);\n ps.setString(1, permission.getAppName());\n ps.setString(2, permission.getPermissionString());\n for (int i = 0; i < roles.size(); i++) {\n ps.setString(i + 3, roles.get(i).getId());\n }\n resultSet = ps.executeQuery();\n while (resultSet.next()) {\n hasPermission = true;\n }\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to check permissions.\", e);\n } finally {\n closeConnection(conn, ps, resultSet);\n }\n return hasPermission;\n }", "@Test\n\tpublic void testHasAllRoles_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testHasRoles_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = new Vector();\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testHasRoles_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = null;\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "boolean hasRoleID();", "@Test\n\tpublic void testIsPermittedAll_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "private static boolean isAuthorized(\n @Nonnull Authorizer authorizer,\n @Nonnull String actor,\n @Nonnull ConjunctivePrivilegeGroup requiredPrivileges,\n @Nonnull Optional<ResourceSpec> resourceSpec) {\n for (final String privilege : requiredPrivileges.getRequiredPrivileges()) {\n // Create and evaluate an Authorization request.\n final AuthorizationRequest request = new AuthorizationRequest(actor, privilege, resourceSpec);\n final AuthorizationResult result = authorizer.authorize(request);\n if (AuthorizationResult.Type.DENY.equals(result.getType())) {\n // Short circuit.\n return false;\n }\n }\n return true;\n }", "@Test\n\tpublic void testIsPermitted_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testIsPermittedAll_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "boolean hasRole(@NotNull String role);", "@Test\n\tpublic void testHasRoles_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = new Vector();\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testIsPermitted_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = null;\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testHasAllRoles_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testHasAllRoles_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testHasAllRoles_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = null;\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testIsPermitted_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private static boolean checkRole(String roleAsString) {\n for (Roles roleChecked : Roles.values()) {\n if (roleChecked.toString().equals(roleAsString)) {\n return true;\n }\n }\n return false;\n }", "@Test\n\tpublic void testIsPermitted_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testIsPermittedAll_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testHasRoles_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = new Vector();\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testCheckRoles_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = new Vector();\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}", "protected boolean hasMyRole() {\r\n String role = getDef().getMyRole();\r\n return AeUtil.notNullOrEmpty(role);\r\n }", "@Test\n\tpublic void testCheckRoles_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = new Vector();\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}", "@Override\n public boolean isSpecialRoles() {\n\t\tString specialRoles = PropertiesUtils.getStringValue(\"SPECIAL_ROLES\");\n\t\tboolean flag = false;\n\t\tif(StringUtil.isNotEmpty(specialRoles)){\n\t\t\tString[] specialRoleArr = specialRoles.split(\",\");\n\t\t\tList<String> roleList = Arrays.asList(specialRoleArr);\n\t\t\tList<Role> roles = userService.getCurrentLoginUserRoles();\n\t\t\tif(roles != null && roles.size() > 0 ){\n\t\t\t\tfor(Role role : roles ){\n\t\t\t\t\tif(roleList.contains(role.getRoleId())){\n\t\t\t\t\t\t//是老师\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//不是超管\n\t\t\t\tfor(Role role : roles ){\n\t\t\t\t\tif(RoleCode.SUPER_ADMIN.equals(role.getRoleCode())){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn flag;\n }", "@Test\n\tpublic void testIsPermittedAll_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = null;\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public void testVotersRequiredMembersOk() {\n Group citizens = RoleFactory.createGroup(\"citizen\");\n citizens.addRequiredMember(m_anyone);\n \n Group adults = RoleFactory.createGroup(\"adult\");\n adults.addRequiredMember(m_anyone);\n \n Group voters = RoleFactory.createGroup(\"voter\");\n voters.addRequiredMember(citizens);\n voters.addRequiredMember(adults);\n voters.addMember(m_anyone);\n \n \n // Elmer belongs to the citizens and adults...\n User elmer = RoleFactory.createUser(\"elmer\");\n citizens.addMember(elmer);\n adults.addMember(elmer);\n \n // Pepe belongs to the citizens, but is not an adult...\n User pepe = RoleFactory.createUser(\"pepe\");\n citizens.addMember(pepe);\n \n // Bugs is an adult, but is not a citizen...\n User bugs = RoleFactory.createUser(\"bugs\");\n adults.addMember(bugs);\n \n // Daffy is not an adult, neither a citizen...\n User daffy = RoleFactory.createUser(\"daffy\");\n\n assertTrue(m_roleChecker.isImpliedBy(voters, elmer));\n assertFalse(m_roleChecker.isImpliedBy(voters, pepe));\n assertFalse(m_roleChecker.isImpliedBy(voters, bugs));\n assertFalse(m_roleChecker.isImpliedBy(voters, daffy));\n }", "public boolean hasAccess(Subject subject, List<? extends Authorizable> authorizableHierarchy,\n Set<? extends Action> actions, ActiveRoleSet roleSet);", "@Test\n\tpublic void testCheckRoles_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = null;\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}", "public boolean addSupportRole(Role ... r) {\n\t\tif (getGuild() == null || r == null) { return false; }\n\t\tfor (Role role : r) { if (role.getGuild().equals(getGuild())) supportRoles.add(role); }\n\t\tconfig.save();\n\t\tif (!config.isLoading()) { TMEventManager.departmentChange(this, ChangeType.Dept.ROLES); }\n\t\treturn true;\n\t}", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "@Override\n public boolean isUserInRole(final String roleName) {\n return scopes.contains(roleName);\n }", "@Override\n\tpublic boolean isRole() {\n\t\treturn true;\n\t}", "public boolean checkAllRoles(String sessID, Set<UserRole> roles) throws RemoteException, SQLException, SessionExpiredException {\n if (roles.isEmpty()) {\n throw new IllegalArgumentException(\"Can't check empty role\");\n }\n\n Set<UserRole> assignedRoles\n = getRolesForUser(sessID, SessionManager.getInstance().getUserForSession(sessID));\n return !assignedRoles.isEmpty() && assignedRoles.containsAll(roles);\n }", "public boolean hasRole() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Test\n\tpublic void testHasAllRoles_5()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public boolean hasRole(RoleType role) {\n for (TableProtectionElement tpe : securityRights) {\n if (tpe.hasRole(role)) {\n return true;\n }\n }\n\n return false;\n }", "@Test\n public void testDenyAccessWithNegateRoleCondition() {\n denyAccessWithRoleCondition(true);\n }", "@Override\n public boolean isPermitted(HttpServletRequest request, int permittedRole) {\n boolean result = false;\n HttpSession session = request.getSession();\n String userName = (String) session.getAttribute(\"userName\");\n String token = (String) session.getAttribute(\"token\");\n int role = Integer.parseInt((String) session.getAttribute(\"role\"));\n if (userName != null && token != null) {\n CrUser user = userRepo.findByUserName(userName);\n if (user != null && isTokenValid(user, token) && role == permittedRole) {\n result = true;\n }\n }\n return result;\n }", "@Override\n\tpublic boolean checkRole(Role Role) {\n\t\tSystem.out.println(Role.getRoleid());\n\t\tif(RoleDao.checkRole(Role).isEmpty())\n\t\t{\n\t\t return true;\n\t\t}\n\t\telse\n\t\t{\n\t\t return false;\n\t\t}\n\t}", "public boolean hasRole() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean hasSetAcl();", "public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }", "private void checkUserRoleAssignment(final VOUserDetails consideredUser,\n final String... roleNames) throws Exception {\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n PlatformUser user = dm.getReference(PlatformUser.class,\n consideredUser.getKey());\n Set<RoleAssignment> assignedRoles = user.getAssignedRoles();\n assertEquals(roleNames.length, assignedRoles.size());\n for (String roleName : roleNames) {\n boolean roleFound = false;\n for (RoleAssignment roleAssignment : assignedRoles) {\n if (roleAssignment.getRole().getRoleName().name()\n .equals(roleName)) {\n roleFound = true;\n }\n }\n assertTrue(\"User is missing the required role \" + roleName,\n roleFound);\n }\n return null;\n }\n });\n }", "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "@Test(dependsOnMethods = \"testRoleAdd\", groups = \"role\", priority = 1)\n public void testRoleGrantPermission() throws ExecutionException, InterruptedException {\n this.authDisabledAuthClient\n .roleGrantPermission(rootRole, rootRolekeyRangeBegin, rootkeyRangeEnd,\n Permission.Type.READWRITE).get();\n this.authDisabledAuthClient\n .roleGrantPermission(userRole, userRolekeyRangeBegin, userRolekeyRangeEnd, Type.READWRITE)\n .get();\n }", "@Override\n\tpublic boolean isUserInRole(String arg0) {\n\t\treturn false;\n\t}", "@Test\n\tpublic void testCheckRoles_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = new Vector();\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}", "boolean isAccessible(Object dbobject, int rights) throws HsqlException {\n\n /*\n * The deep recusion is all done in getAllRoles(). This method\n * only recurses one level into isDirectlyAccessible().\n */\n if (isDirectlyAccessible(dbobject, rights)) {\n return true;\n }\n\n if (pubGrantee != null && pubGrantee.isAccessible(dbobject, rights)) {\n return true;\n }\n\n RoleManager rm = getRoleManager();\n Iterator it = getAllRoles().iterator();\n\n while (it.hasNext()) {\n if (((Grantee) rm.getGrantee(\n (String) it.next())).isDirectlyAccessible(\n dbobject, rights)) {\n return true;\n }\n }\n\n return false;\n }", "public boolean checkPermission(PermissionCheckContext context) {\n PolarAccountInfo account = accountPrivilegeData.getAndCheckById(context.getAccountId());\n if (PolarAuthorizer.hasPermission(account, context.getPermission())) {\n return true;\n }\n\n return account.getRolePrivileges().getActiveRoleIds(context.getActiveRoles(), config.getMandatoryRoleIds())\n .stream()\n .map(accountPrivilegeData::getById)\n .filter(Objects::nonNull)\n .anyMatch(role -> PolarAuthorizer.hasPermission(role, context.getPermission()));\n }", "boolean hasPants();", "@Test\n\tpublic void testIsPermitted_6()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testIsPermittedAll_5()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testIsPermitted_7()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public interface AuthorizationService {\n \n /**\n * Checks whether the specified subject has the requested roles.\n * \n * @param subject Subject whose roles need to be checked.\n * @param roles Roles that need to be checked for the subject.\n * @return Result indicating the access check.\n */\n AuthorizationResult hasRoles(Subject subject, String[] roles);\n\n}", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "@Override\n\t\tpublic boolean isUserInRole(String role) {\n\t\t\treturn false;\n\t\t}", "private boolean isAvailable() {\n\t\tfor (int i = 0; i < lawsuitsAsClaimant.size(); i++) {\n\t\t\tif (lawsuitsAsClaimant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check lawsuits as Defendant\n\t\tfor (int i = 0; i < lawsuitsAsDefendant.size(); i++) {\n\t\t\tif (lawsuitsAsDefendant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean isUserInRole(String string) {\n String imp = (String)ADFContext.getCurrent().getSessionScope().get(\"isImpersonationOn\");\n if(imp == null || !imp.equals(\"Y\")){\n return super.isUserInRole(string);\n }\n else{\n List<String> userRoles = (List<String>)ADFContext.getCurrent().getSessionScope().get(\"userRoles\");\n if(userRoles != null && userRoles.contains(string)){\n return true;\n }\n else{\n return false;\n }\n \n }\n \n }", "@Override\n\tpublic boolean isAdminRole(String userName) throws Exception {\n\t\treturn false;\n\t}", "public void setRoles( Set<String> roles )\n {\n this.roles = roles;\n }", "public boolean hasRights(Right... permissions) {\n if (rights != null) {\n for (Right permission : permissions) {\n if (!rights.contains(permission)) {\n return false;\n }\n }\n\n return true;\n }\n\n return false;\n }", "boolean hasPrincipal();", "@Override\r\n protected void mayProceed() throws InsufficientPermissionException {\n if (ub.isSysAdmin() || ub.isTechAdmin()) {\r\n return;\r\n }\r\n// if (currentRole.getRole().equals(Role.STUDYDIRECTOR) || currentRole.getRole().equals(Role.COORDINATOR)) {// ?\r\n// ?\r\n// return;\r\n// }\r\n\r\n addPageMessage(respage.getString(\"no_have_correct_privilege_current_study\") + respage.getString(\"change_study_contact_sysadmin\"));\r\n throw new InsufficientPermissionException(Page.MENU_SERVLET, resexception.getString(\"not_allowed_access_extract_data_servlet\"), \"1\");// TODO\r\n // above copied from create dataset servlet, needs to be changed to\r\n // allow only admin-level users\r\n\r\n }", "public boolean isElearningAdministrator(){\r\n \treturn doesUserHaveRole(UserRole.ELEARNING_ADMINISTRATOR);\r\n }", "private void checkUserAuthorities() {\n\t\tAuthority auth = authorityRepository.findTop1ByName(AuthorityType.ROLE_ADMIN);\n\t\tif (null == auth) {\n\t\t\tauth = Authority.createAdmin();\n\t\t\tauthorityRepository.save(auth);\n\t\t}\n\t\tAuthority authUser = authorityRepository.findTop1ByName(AuthorityType.ROLE_USER);\n\t\tif (null == authUser) {\n\t\t\tauthUser = Authority.createUser();\n\t\t\tauthorityRepository.save(authUser);\n\t\t}\n\t}", "public boolean doesUserHaveRole(int inRole) {\r\n if (roles != null) {\r\n for (Iterator iter = roles.iterator(); iter.hasNext();) {\r\n UserRole userRole = (UserRole)iter.next();\r\n if (userRole.getId().intValue() == inRole) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "@Override\n \t\tpublic void checkRoles(RoleChecker arg0) throws SecurityException {\n \t\t}", "@Test\n\tpublic void testHasRole_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tString roleName = \"\";\n\n\t\tboolean result = fixture.hasRole(roleName);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public boolean granted(){\n\t\treturn this.granted;\n\t}", "public static boolean canAccess (HttpServletRequest req, AccessRights requiredRights) {\n\t\tif (requiredRights.equals(AccessRights.PUBLIC)) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (req.getSession().getAttribute(SESS_IS_EMPLOYEE) != null) {\n\t\t\tif (requiredRights.equals(AccessRights.AUTHENTICATED) || requiredRights.equals(AccessRights.EMPLOYEE)) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn req.getSession().getAttribute(SESS_IS_ADMIN) != null && (boolean) req.getSession().getAttribute(SESS_IS_ADMIN);\n\t\t}\n\n\t\treturn false;\n\t}", "public void checkIfProgramsAccesible(List<String> programList);" ]
[ "0.84330314", "0.7485125", "0.73108387", "0.677431", "0.6771374", "0.6734994", "0.6664426", "0.66622066", "0.6648652", "0.66427255", "0.65947515", "0.65169805", "0.65140885", "0.6492079", "0.64567304", "0.64547807", "0.6430952", "0.64165926", "0.6408004", "0.6397066", "0.63931715", "0.63526344", "0.63189745", "0.62729275", "0.625127", "0.6242473", "0.6239784", "0.6233974", "0.62113076", "0.6191352", "0.6130931", "0.61120504", "0.6109029", "0.6107234", "0.60854524", "0.6070725", "0.60657144", "0.60574824", "0.60565513", "0.60556614", "0.6053044", "0.60521597", "0.6046935", "0.6033353", "0.6029727", "0.60177386", "0.60083205", "0.60082895", "0.6003169", "0.6000914", "0.59961873", "0.5990272", "0.5990193", "0.59832805", "0.5962522", "0.59621316", "0.5960261", "0.5950311", "0.5897995", "0.5890863", "0.58878374", "0.58769715", "0.585969", "0.58517635", "0.5850483", "0.5845063", "0.5842456", "0.5841333", "0.58408314", "0.5827275", "0.58233804", "0.5810056", "0.5804928", "0.57969415", "0.57967734", "0.5796173", "0.5786492", "0.5775804", "0.5774379", "0.57601804", "0.57289577", "0.57205755", "0.5690573", "0.5686145", "0.5676878", "0.5670135", "0.5669231", "0.56614095", "0.56595945", "0.5658081", "0.5655147", "0.56544375", "0.56491965", "0.5648414", "0.56341785", "0.5627481", "0.5624824", "0.56038505", "0.5599019", "0.55912334" ]
0.8752401
0
set Spring application context which contains acegi related bean
ApplicationContext getAppCtx();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setAppCtx(ApplicationContext appCtx);", "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\t\tcontext = (WebApplicationContext) applicationContext;\r\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tcontext=applicationContext;\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\t\tSystem.out.println(\"进入方法。。。\"+applicationContext);\r\n\t\tApplicationContextHolder.app=applicationContext;\r\n\t}", "public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tthis.context=context;\r\n\t}", "public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}", "public ApplicationContextAwareProcessor(ConfigurableApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "private AnnotationConfigWebApplicationContext getGlobalApplicationContext() {\r\n\t\tAnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();\r\n\t\t//rootContext.register(ApplicationConfig.class);\r\n\t\trootContext.register(new Class[] {ApplicationConfig.class});\r\n\t\treturn rootContext;\r\n\t}", "static void setActiveContext(ApplicationContext context) {\n SchemaCompilerApplicationContext.context = context;\n }", "public void setApplicationContext(ApplicationContext context) throws BeansException {\n appContext = context;\n }", "@Override\n public void setApplicationContext(ApplicationContext applicationContext) {\n super.setApplicationContext(applicationContext);\n this.applicationContext = applicationContext;\n }", "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\t\r\n\t}", "@Autowired\n\tpublic void setContext(ApplicationContext context) {\n\t\tthis.context = context;\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\n\t}", "public void setApplicationContext(ApplicationContext applicationContext)\n/* */ throws BeansException\n/* */ {\n/* 106 */ applicationContext = applicationContext;\n/* */ }", "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tthis.applicationContext = applicationContext;\r\n\t}", "public static void setApplicationContext( ApplicationContext context ){\n\t\t\tctx = context;\n//\t\telse{\n//\t\t\tSystem.out.println(\"Error, ApplicationContext already has been set\");\n//\t\t}\n\t}", "@Autowired\r\n\tpublic void setContext(ApplicationContext context) {\r\n\t\tthis.context = context;\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\r\n\t}", "@Autowired\r\n\tpublic void setContext(ApplicationContext context) {\r\n\t\tthis.context = context;\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\r\n\t}", "public void setApplicationContext(final ApplicationContext inApplicationContext)\n {\n ctx = inApplicationContext;\n }", "@Override\n protected void configure() {\n bind(ApplicationContext.class).toInstance(ctxt);\n }", "public void setApplicationContext(ApplicationContext context) throws BeansException {\r\n CONTEXT = context;\r\n }", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\t\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext context) throws BeansException {\n\t\t\n\t\tthis.context = context;\n\t\t\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext context) throws BeansException {\n\t\tSystem.out.println(\"setting newly\");\n\t\tthis.context=context;\n\t\tsetContext();\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException\n\t{\n\t\trootApplicationContext = applicationContext;\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext ctx) throws BeansException {\n\t\tthis.ctx=ctx;\n\t}", "public void setApplicationContext(ApplicationContext applicationContext)\n throws BeansException\n {\n this.applicationContext = applicationContext;\n }", "@Override\n public void onStartup(ServletContext container) {\n AnnotationConfigWebApplicationContext rootContext =\n new AnnotationConfigWebApplicationContext();\n rootContext.register(ApplicationConfig.class);\n rootContext.setConfigLocation(\"example.spring\");\n\n // Manage the lifecycle of the root application context\n container.addListener(new ContextLoaderListener(rootContext));\n container.addListener(new RequestContextListener());\n\n // The following line is required to avoid having jersey-spring3 registering it's own Spring root context.\n container.setInitParameter(\"contextConfigLocation\", \"\");\n\n }", "@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n Context getApplication();\n}", "@Override\r\n public void init() throws Exception {\r\n context = SpringApplication.run(getClass(), savedArgs);\r\n context.getAutowireCapableBeanFactory().autowireBean(this);\r\n }", "public void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\t\tZWUtil.applicationContext = applicationContext;\r\n\t}", "public ApplicationContext getApplicationContext() {\n return applicationContext;\n }", "@Override\n public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n System.out.println(\"## setApplicationContext(appcontext) Application context has been set!\");\n }", "private SpringApplicationContextProvider() {\r\n\t}", "public static Context getAppContext() {\n return _BaseApplication.context;\n }", "public static ApplicationContext getApplicationContext() {\n return appContext;\n }", "public interface MyApplicationContextAware {\n /**\n * 20:18 2020/11/15\n * @param \n * @return\n */\n void setAapplicationContext(MyApplicationContext application);\n}", "public void configureContextInitializationComponents(AppConfiguration appConfig,\n\t SpringBeansXMLBuilder builder);", "public ApplicationContext getApplicationContext()\n {\n return this.applicationContext;\n }", "public void injectContext(ComponentContext context);", "public Context getApplicationContext();", "public static ApplicationContext getApplicationContext() {\r\n\t\treturn applicationContext;\r\n\t}", "private SpringApplicationContext() {}", "public void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\t}", "public void initApplicationContext()\r\n/* 32: */ throws BeansException\r\n/* 33: */ {\r\n/* 34:103 */ super.initApplicationContext();\r\n/* 35:104 */ registerHandlers(this.urlMap);\r\n/* 36: */ }", "@Component(modules = LoginApplicationModule.class)\n@Singleton\npublic interface LoginApplicationComponent {\n Context exposeContext();\n}", "private static CamelContext configureCamelContext(ApplicationContext context) throws Exception {\n //normal way of getting camel context but i have it defined in camelSpringApplicationContext.xml\n // CamelContext camel = new DefaultCamelContext();\n // CamelContext camel = new SpringCamelContext(context);\n CamelContext camel = (CamelContext) context.getBean(\"myCamelContext\");\n // shows up in jmx with this context name instead of camel-1\n camel.setNameStrategy(new DefaultCamelContextNameStrategy(\"steves_camel_driver\"));\n // camel.setTracing(true); // set in camelSpringApplicationContext.xml\n camel.addStartupListener(new StartupListener() {\n @Override\n public void onCamelContextStarted(CamelContext context, boolean alreadyStarted) throws Exception {\n LOG.info(\"Seeing when startup strategy is called. CamelContext=\" + context);\n }\n });\n\n return camel;\n }", "public static Context getContext(){\n return appContext;\n }", "private ApplicationContext()\n\t{\n\t}", "@Before\n public void setUp() {\n this.context = new AnnotationConfigApplicationContext(\"com.fxyh.spring.config\");\n// this.context = new ClassPathXmlApplicationContext(\"classpath*:applicationContext-bean.xml\");\n this.user = this.context.getBean(User.class);\n this.user2 = this.context.getBean(User.class);\n this.department = this.context.getBean(Department.class);\n this.userService = (UserService) this.context.getBean(\"userService\");\n }", "@Provides\n @Singleton\n @ApplicationScope\n public Context provideApplicationContext() {\n return mApp.getApplicationContext();\n }", "@Component(modules = {ApplicationModule.class, HttpModule.class})\npublic interface ApplicationComponent {\n MyApp getApplication();\n\n ApiService getApiService();\n\n Context getContext();\n\n}", "private AppContext()\n {\n }", "@Override\r\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\tCptedController.getInstance();\r\n\t}", "protected abstract ApplicationContext createApplicationContextImpl(\n MarinerRequestContext requestContext);", "@Override\n public void onApplicationEvent(ContextRefreshedEvent event) {\n\n appContext = event.getApplicationContext();\n System.out.println(appContext.getId());\n\n\n log.info(\"api-web初始化\");\n try {\n ApiUtils_.init(appContext);\n } catch (Exception e) {\n log.warn(\"初始化异常!\", e);\n }\n log.info(\"api-web初始化完成\");\n }", "@Override\n public void onApplicationEvent(ContextRefreshedEvent event) {\n if(event.getApplicationContext().getDisplayName().equals(\"Root WebApplicationContext\")){\n System.out.println(\"避免spring-servlet.xml跟appicationContext.xml两次加载\");\n }\n if(event.getApplicationContext().getParent()==null){\n System.out.println(\"执行context上下文初始化\");\n ApplicationContextUtil.instance.init(event.getApplicationContext());\n }\n }", "@Component(modules = { ApplicationModule.class, SettingsDataModule.class, UserDataModule.class, RecipeDataModule.class })\n@ApplicationScope\npublic interface ApplicationComponent {\n\n void inject(HoppyApplication application);\n\n @ApplicationContext\n Context applicationContext();\n Navigator navigator();\n\n UserRepository userRepository();\n RecipeRepository recipeRepository();\n SettingsRepository settingsRepository();\n GetCurrentUserInteractor getCurrentUserInteractor();\n}", "public void setUserContext(UserContext userContext);", "public void setSpringContext(ApplicationContext springContext) {\n\t\tthis.springContext = springContext;\n\t}", "protected void setContext(RestContext context) throws ServletException {\n\t\tthis.context.set(context);\n\t}", "protected Spring() {}", "@Singleton\n@Component(modules = {AppModule.class})\npublic interface AppComponent {\n Context getContext();\n CommonUtil getComminUtil();\n}", "public void setContext(ActionBeanContext context) {\r\n this.context = context;\r\n }", "public static Context getApplicationContext() { return mApplicationContext; }", "@Autowired\n public void setWebApp( WebApp sysDesc ) {\n webapp = sysDesc;\n }", "@Test\n\tpublic void testContextShouldInitalizeChildContexts() {\n\t\tassertThat(Foo.getInstanceCount()).isEqualTo(1);\n\t\tApplicationContext ctx = springClientFactory.getContext(\"testspec\");\n\n\t\tassertThat(Foo.getInstanceCount()).isEqualTo(1);\n\t\tFoo foo = ctx.getBean(\"foo\", Foo.class);\n\t\tassertThat(foo).isNotNull();\n\t}", "@Autowired\n public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {\n \tKeycloakAuthenticationProvider keycloakAuthenticationProvider = keycloakAuthenticationProvider();\n\t\tkeycloakAuthenticationProvider.setGrantedAuthoritiesMapper(new SimpleAuthorityMapper());\n\t\tauth.authenticationProvider(keycloakAuthenticationProvider);\n }", "public abstract ApplicationLoader.Context context();", "@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t\t\n\t\tApplicationContext applicationContext=new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t\tmservice= (MemberService) applicationContext.getBean(\"memberservice\");\n\t\tbservice=(BookService) applicationContext.getBean(\"bookservice\");\n\t\toservice=(OrderService) applicationContext.getBean(\"orderservice\");\n\t\t\n\t}", "public MyApp() {\n sContext = this;\n }", "private static void assertContextInjected() {\n if (applicationContext == null) {\n throw new IllegalStateException(\"applicaitonContext attribute is not injected, please enter applicationContext\" +\n \"Define SpringContextHolder in .xml or register SpringContextHolder in SpringBoot startup class.\");\n }\n }", "protected void init() { \n ServletContext servletContext = getServletContext();\n applicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);\n\n String names[] = applicationContext.getBeanDefinitionNames();\n\n for (String name : names) {\n System.out.println(\"name:\" + name);\n }\n }", "@Override\n public void onStartup(ServletContext sc) throws ServletException {\n AnnotationConfigWebApplicationContext rootApplicationContext = new AnnotationConfigWebApplicationContext();\n rootApplicationContext.register(RootAppConfig.class);\n sc.addListener(new ContextLoaderListener(rootApplicationContext));\n \n //kreiraj web application kontekst koji se vezuje za dispatcher servlet\n AnnotationConfigWebApplicationContext webApplicationContext = new AnnotationConfigWebApplicationContext();\n webApplicationContext.register(MvcConfig.class);\n \n //konfigurisanje dispatcher servlet-a\n ServletRegistration.Dynamic dispatcher = sc\n .addServlet(\"dispatcher\", new DispatcherServlet(webApplicationContext));\n dispatcher.addMapping(\"/\");\n dispatcher.setLoadOnStartup(1);\n }", "private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }", "@Bean\n\tpublic CustomSAMLContextProviderImpl contextProvider() {\n\t\treturn new CustomSAMLContextProviderImpl();\n\t}", "@Singleton\n@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n// @ApplicationContext\n// Context context();\n\n Application application();\n\n SharedPrefencesHelper sharedPrefencesHelper();\n\n DataManager dataManager();\n\n G3anService g3anService();\n}", "protected AbstractApplicationContext getServicesContext() {\r\n\t\treturn this.servicesContext;\r\n\t}", "@Autowired\n public void setEnvironment(Environment environment) {\n this.environment = environment;\n }", "void inject(StychApplication stychApplication);", "@Override\r\n\tpublic void configureContext(RobotEngine engine,\r\n\t\t\tNavigationModule navigation, ItemContainer robotContainer) {\n\t\tthis.robot = engine;\r\n\t}", "@Singleton\n@Component(modules = {ApplicationModule.class})\npublic interface ApplicationComponent {\n\n void inject(GoToDream goToDream);\n\n @Named(\"application\")\n Context getContext();\n}", "protected void initSpring() {\n\t\tgetComponentInstantiationListeners().add(new SpringComponentInjector(this));\n\t}", "public static void setupContext(ServletContext context) {\n \t//I don't need this dropdown list. bguo.\n// ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(context);\n// LookupManager mgr = (LookupManager) ctx.getBean(\"lookupManager\");\n//\n// // get list of possible roles\n// context.setAttribute(RoleConstants.AVAILABLE_ROLES, mgr.getAllRoles());\n// log.debug(\"Drop-down initialization complete [OK]\");\n }", "public void setContext(Context context) {\n this.contextMain = context;\n }", "@Binds\n public abstract Context bindContext(Application application);", "public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);\n }", "@Override\n\tpublic void configure(Context arg0) {\n\n\t}", "@Singleton\n@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n @ApplicationContext\n Context context();\n\n void inject(ZoloApplication zoloApplication);\n\n DataManagerLogic datamangerLogic();\n\n Application application();\n\n}", "public void activate(BundleContext context) {\r\n\r\n // define the global ServiceRegistryAccessFactory for components and GUI code\r\n // TODO initialize from another location?\r\n ServiceRegistry.setAccessFactory(new OsgiServiceRegistryAccessFactory(context));\r\n\r\n bootstrapSettings = BootstrapConfiguration.getInstance();\r\n\r\n initializeProfileDirFromBootstrapSettings();\r\n initializeConfigurablePaths();\r\n loadRootConfiguration(false);\r\n initializeGeneralSettings();\r\n\r\n // initialize parent temp directory root\r\n initializeParentTempDirectoryRoot(generalSettings.getTempDirectoryOverride());\r\n\r\n initializeInstanceTempDirectoryRoot();\r\n\r\n if (PROPERTY_SUBSTITUTION_MECHANISM_ENABLED) {\r\n initializePropertySubstitution();\r\n }\r\n }", "@Override\r\n\tpublic void configureContext(RobotEngine engine,\r\n\t\t\tNavigationModule navigation, ItemContainer robotContainer) {\r\n\t\tthis.navigation = navigation;\r\n\t\tthis.robotContainer = robotContainer;\r\n\r\n\t}", "@Override\r\n\tpublic void configureContext(RobotEngine engine,\r\n\t\t\tNavigationModule navigation, ItemContainer robotContainer) {\r\n\t\tthis.navigation = navigation;\r\n\t\tthis.robotContainer = robotContainer;\r\n\r\n\t}", "@ApplicationScope\n@Component(modules = {ContextModule.class,ServiceModule.class}) // tell which modules to use in order to generate this instance\npublic interface ApplicationComponent {\n\n\n\n SharedPreferencesClass getSharedPrefs();\n\n RequestManager getGlide();\n\n void injectRepo(ProjectRepository repository);\n\n}", "@Component(modules = {ApplicationModule.class,HttpModule.class})\npublic interface ApplicationComponent {\n\n MyApp getApplication();\n\n NewsApi getNetEaseApi();\n\n JanDanApi getJanDanApi();\n\n Context getContext();\n\n}", "public interface ServletContextAware {\r\n\t/**\r\n\t * Set the ServletContext that this object runs in.\r\n\t * <p>Invoked after population of normal bean properties but before an init\r\n\t * callback like InitializingBean's <code>afterPropertiesSet</code> or a\r\n\t * custom init-method. Invoked after ApplicationContextAware's\r\n\t * <code>setApplicationContext</code>.\r\n\t * @param servletContext ServletContext object to be used by this object\r\n\t * @see InitializingBean#afterPropertiesSet\r\n\t * @see ApplicationContextAware#setApplicationContext\r\n\t */\r\n\tvoid setServletContext(ServletContext servletContext);\r\n\r\n}", "@Override\n public void configurarContexto(Presentador presentador) {\n\n }", "@Autowired\n public void setGreetingService(GreetingsServiceUsingSpring greetingsServiceUsingSpring) {\n this.greetingsServiceImplUsingSpring = greetingsServiceUsingSpring;\n }", "@Bean\n public ServletContextInitializer initializer() {\n return servletContext -> {\n // RestEasy configuration\n servletContext.setInitParameter(RestCoreConstant.RESTEASY_SCAN.getValue(),\n RestCoreConstant.RESTEASY_SCAN_VALUE.getValue());\n servletContext.setInitParameter(RestCoreConstant.RESTEASY_SERVLET_MAPPING_PREFIX.getValue(),\n apiUrlMappingPrefix);\n };\n }", "@Override\n\tpublic void configure(Context arg0) {\n\t\t\n\t}" ]
[ "0.6877766", "0.66600704", "0.6642895", "0.662576", "0.6566177", "0.6543505", "0.6527211", "0.6483805", "0.6460188", "0.6450316", "0.64131343", "0.64096117", "0.6393324", "0.63831997", "0.63787824", "0.6370375", "0.6364148", "0.6357091", "0.6357091", "0.6356215", "0.6304266", "0.6291689", "0.6256995", "0.6222738", "0.62199575", "0.61769533", "0.61665225", "0.60704964", "0.6026451", "0.60135674", "0.6008441", "0.5998404", "0.5965167", "0.593956", "0.59244126", "0.5883601", "0.5877689", "0.5868138", "0.5863116", "0.583685", "0.581608", "0.579009", "0.57790315", "0.5727004", "0.5720984", "0.5710802", "0.5704339", "0.5688491", "0.56119835", "0.5606874", "0.5589461", "0.5571641", "0.5559432", "0.5558293", "0.5537756", "0.5502318", "0.5502082", "0.5501645", "0.54783726", "0.5474279", "0.5466953", "0.54615664", "0.5458749", "0.54480094", "0.54431444", "0.5415819", "0.54131806", "0.541227", "0.5405982", "0.5400846", "0.53990316", "0.539739", "0.5384341", "0.53805107", "0.53793156", "0.53676116", "0.53558147", "0.5355593", "0.53546923", "0.53517693", "0.5349359", "0.53469276", "0.5344117", "0.5324877", "0.5322482", "0.5307093", "0.5299567", "0.52979565", "0.5296403", "0.5290513", "0.5285136", "0.5279386", "0.5279386", "0.5264632", "0.52615994", "0.52604014", "0.52575976", "0.52471566", "0.52448016", "0.52320296" ]
0.6367683
16
none the listed roles must be granted to return true, otherwise fasle;
boolean noneGranted(String roles);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean anyGranted(String roles);", "boolean allGranted(String roles);", "boolean hasRole();", "public boolean hasRole(String roleName);", "boolean hasAttackerRoleName();", "boolean hasAttackerRoleId();", "public boolean hasRole() {\n return fieldSetFlags()[6];\n }", "@Override\r\n\tpublic boolean hasCredential(String[] roles) {\n\t\treturn false;\r\n\t}", "public Boolean isRoleValid(String userName,String password, Vector roles)\n {\n try\n {\n UserEntityInterface userEntityInterface = UserEntityFactory.getInstance();\n UserInterface userInterface = userEntityInterface.getUser(userName);\n \n if(userInterface.getRole() == null)\n {\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n LogUtil.put(LogFactory.getInstance(\"Role is null: \" + userInterface.getRole() +\n \" Valid Roles: \" + roles.toString(),\n this, \"isRoleValid()\"));\n }\n \n return Boolean.FALSE;\n }\n \n Iterator iter = roles.iterator();\n while(iter.hasNext())\n {\n BasicUserRole nextRole = (BasicUserRole) iter.next();\n if(userInterface.getRole().getBasicUserRole().equals(nextRole))\n {\n //role is verified\n \n //validate permissions to set session\n //this should be seperated into hasPermissions method\n \n /*if(userInterface.hasPermission(new RequestParams(this.request)))\n {\n userInterface.validateSession(weblisketSession,new RequestParams(this.request));\n }\n else\n {\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n LogUtil.put(LogFactory.getInstance(\"Role is not valid: \" + userInterface.getRole() +\n \" Valid Roles: \" + roles.toString(),\n this,\"isRoleValid()\"));\n }\n \n return Boolean.FALSE;\n }\n */\n \n userInterface.validateSession((WeblisketSessionInterface) weblisketSession);\n \n this.request.removeAttribute(WeblisketSessionData.REMOVABLEUSERNAME);\n this.request.removeAttribute(WeblisketSessionData.REMOVABLEPASSWORD);\n return Boolean.TRUE;\n }\n }\n \n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPER))\n {\n \t StringBuffer stringBuffer = new StringBuffer();\n \t \n \t stringBuffer.append(\"Role is not valid: \");\n \t stringBuffer.append(userInterface.getRole());\n \t stringBuffer.append(\" Valid Roles: \");\n \t stringBuffer.append(roles.toString());\n \t \n LogUtil.put(LogFactory.getInstance(stringBuffer.toString(), this, \"isRoleValid()\"));\n }\n //on userInterface.getRole() failure\n return Boolean.FALSE;\n }\n catch(Exception e)\n {\n String error = \"Failed to check if Role is valid\";\n if(org.allbinary.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(org.allbinary.logic.communication.log.config.type.LogConfigTypeFactory.getInstance().TAGHELPERERROR))\n {\n LogUtil.put(LogFactory.getInstance(error, this, \"isRoleValid()\", e));\n }\n return Boolean.FALSE;\n }\n }", "private boolean hasRole(Roles role) {\n\t\tSecurityContext context = SecurityContextHolder.getContext();\n\t\t\n\t\tif(context == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tAuthentication aut = context.getAuthentication();\n\t\tif(aut == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tCollection<? extends GrantedAuthority> autohotities = aut.getAuthorities();\n\t\tfor(GrantedAuthority ga : autohotities) {\n\t\t\tif(role.toString().equals(ga.getAuthority())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean hasRoleID();", "protected boolean hasMyRole() {\r\n String role = getDef().getMyRole();\r\n return AeUtil.notNullOrEmpty(role);\r\n }", "@Override\n\tpublic boolean isRole() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isUserInRole(String arg0) {\n\t\treturn false;\n\t}", "boolean isAdmin() {\n\n if (isAdminDirect()) {\n return true;\n }\n\n RoleManager rm = getRoleManager();\n Iterator it = getAllRoles().iterator();\n\n while (it.hasNext()) {\n try {\n if (((Grantee) rm.getGrantee(\n (String) it.next())).isAdminDirect()) {\n return true;\n }\n } catch (HsqlException he) {\n throw Trace.runtimeError(Trace.RETRIEVE_NEST_ROLE_FAIL,\n he.getMessage());\n }\n }\n\n return false;\n }", "public abstract boolean checkRolesAllowed(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "@Test\n public void testGetPermissionsRole() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"GREET_PEOPLE\");\n permissionManager.addPermission(permission);\n Permission permission2 = permissionManager.getPermissionInstance(\"ADMINISTER_DRUGS\");\n permissionManager.addPermission(permission2);\n Role role = securityService.getRoleManager().getRoleInstance(\"VET_TECH\");\n securityService.getRoleManager().addRole(role);\n ((DynamicModelManager) securityService.getModelManager()).grant(role, permission);\n PermissionSet permissions = ((DynamicRole) role).getPermissions();\n assertEquals(1, permissions.size());\n assertTrue(permissions.contains(permission));\n assertFalse(permissions.contains(permission2));\n }", "private boolean userHasAllowedRole(User u, String[] allowedRoles) {\n\n for (GroupRef group : u.getGroups()) {\n\n if (Arrays.binarySearch(allowedRoles, group.getDisplay()) >= 0) {\n return true;\n }\n }\n\n return false;\n }", "public boolean hasRole() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public void testRequiredRolesMultipleGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addRequiredMember(m_anyone);\n alarmSystemActivation.addMember(administrators);\n alarmSystemActivation.addMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "public boolean hasRole() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean canUserPerformFunction(int function) {\r\n if (roles != null) {\r\n for (Iterator iter = roles.iterator(); iter.hasNext();) {\r\n UserRole userRole = (UserRole)iter.next();\r\n if (userRole.canRolePerformFunction(function)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "Collection<? extends Role> getIsPerformOf();", "AuthorizationResult hasRoles(Subject subject, String[] roles);", "public void testRequiredRolesMultipleRequiredGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addMember(m_anyone);\n alarmSystemActivation.addRequiredMember(administrators);\n alarmSystemActivation.addRequiredMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }", "@Override\n public boolean isRole() {\n return false;\n }", "boolean every_role(DiagnosticChain diagnostics, Map<Object, Object> context);", "Builder rolesAllowed(String... roles) {\n return rolesAllowed(Arrays.asList(roles));\n }", "@Test\n public void testDenyAccessWithNegateRoleCondition() {\n denyAccessWithRoleCondition(true);\n }", "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "public boolean userHasARole(List<String> userRoles) {\n List<String> specifiedRoles = Arrays.asList(Constants.SUPERVISOR_ROLE, Constants.TRAINER_ROLE, Constants.PARTICIPANT_ROLE);\n int roleCount = 0;\n for (String role : userRoles) {\n if (specifiedRoles.contains(role)) {\n roleCount++;\n }\n }\n return (roleCount == 1) ? true : false;\n }", "private static Boolean isAuthorised(Page page, List<GrantedAuthority> userAuthorities ) {\n if ( page.getAllowedRoles().size() == 0 ) {\n return true;\n }\n \n for ( GrantedAuthority role : userAuthorities ) {\n for ( String requiredRole : page.getAllowedRoles() ) {\n if ( role.getAuthority().equals(requiredRole) ) {\n return true;\n }\n }\n }\n return false;\n }", "boolean isHasPermissions();", "public boolean isAllowed(BaseAction actionClass) {\r\n\t\tint role = getCurrentRole();\r\n\t\tif ((role & User.ROLE_ADMINISTRATOR) != 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tInteger requiredRoles = privilegeDef.get(actionClass.getClass().getSimpleName());\r\n\t\treturn requiredRoles == null || (requiredRoles & role) != 0;\r\n\t}", "boolean hasRole(@NotNull String role);", "@Override\n\tpublic boolean can(String permission)\n\t{\n\t\treturn this.auth() != null && this.auth().getRole() != null && this.auth().getRole().getPermissions().parallelStream().filter(p -> Pattern.compile(p.getName()).matcher(permission).groupCount() == 0).count() != 0;\n\t}", "@Test\n\tpublic void testHasRoles_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = null;\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Override\n\tpublic boolean isAdminRole(String userName) throws Exception {\n\t\treturn false;\n\t}", "@Override\n\t\tpublic boolean isUserInRole(String role) {\n\t\t\treturn false;\n\t\t}", "public boolean isAnyRole(String roles) {\n if (authService.isAnonymous()) {\n return false;\n } else {\n String[] rolesArr = roles.split(\",\");\n \n Collection<String> autorities = authService.getCurrentUserAuthorities();\n \n for (String role : rolesArr) {\n for (String autority : autorities) {\n if (autority.equalsIgnoreCase(role)) {\n return true;\n }\n }\n }\n \n return false;\n }\n }", "private static boolean rolesContainRole(Identity userIdentity, String roleName)\r\n {\r\n if (roleName.equals(\"PILOT\"))\r\n return (userIdentity instanceof Pilot) || (userIdentity instanceof SystemAdministrator);\r\n if (roleName.equals(\"GENERAL\"))\r\n return (userIdentity instanceof General) || (userIdentity instanceof SystemAdministrator);\r\n if (roleName.equals(\"ADMIN\"))\r\n return (userIdentity instanceof SystemAdministrator);\r\n return false;\r\n }", "boolean hasSetAcl();", "@Test\n\tpublic void testHasRoles_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = new Vector();\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testHasRoles_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = new Vector();\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Override\r\n protected void mayProceed() throws InsufficientPermissionException {\n if (ub.isSysAdmin() || ub.isTechAdmin()) {\r\n return;\r\n }\r\n// if (currentRole.getRole().equals(Role.STUDYDIRECTOR) || currentRole.getRole().equals(Role.COORDINATOR)) {// ?\r\n// ?\r\n// return;\r\n// }\r\n\r\n addPageMessage(respage.getString(\"no_have_correct_privilege_current_study\") + respage.getString(\"change_study_contact_sysadmin\"));\r\n throw new InsufficientPermissionException(Page.MENU_SERVLET, resexception.getString(\"not_allowed_access_extract_data_servlet\"), \"1\");// TODO\r\n // above copied from create dataset servlet, needs to be changed to\r\n // allow only admin-level users\r\n\r\n }", "@Test\n\tpublic void testIsPermitted_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = null;\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test(dependsOnMethods = \"testRoleAdd\", groups = \"role\", priority = 1)\n public void testRoleGrantPermission() throws ExecutionException, InterruptedException {\n this.authDisabledAuthClient\n .roleGrantPermission(rootRole, rootRolekeyRangeBegin, rootkeyRangeEnd,\n Permission.Type.READWRITE).get();\n this.authDisabledAuthClient\n .roleGrantPermission(userRole, userRolekeyRangeBegin, userRolekeyRangeEnd, Type.READWRITE)\n .get();\n }", "@Test\n\tpublic void testHasRoles_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<String> roleIdentifiers = new Vector();\n\n\t\tboolean[] result = fixture.hasRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Override\n\tpublic boolean checkRole(Role Role) {\n\t\tSystem.out.println(Role.getRoleid());\n\t\tif(RoleDao.checkRole(Role).isEmpty())\n\t\t{\n\t\t return true;\n\t\t}\n\t\telse\n\t\t{\n\t\t return false;\n\t\t}\n\t}", "public void requireRoles(Set<Role> roles) {\n requiredRoles.addAll(roles);\n }", "@Test\n\tpublic void testCheckRoles_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = null;\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testCheckRoles_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = new Vector();\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testHasAllRoles_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Override\n public boolean isPermitted(HttpServletRequest request, int permittedRole) {\n boolean result = false;\n HttpSession session = request.getSession();\n String userName = (String) session.getAttribute(\"userName\");\n String token = (String) session.getAttribute(\"token\");\n int role = Integer.parseInt((String) session.getAttribute(\"role\"));\n if (userName != null && token != null) {\n CrUser user = userRepo.findByUserName(userName);\n if (user != null && isTokenValid(user, token) && role == permittedRole) {\n result = true;\n }\n }\n return result;\n }", "@Test\n\tpublic void testIsPermitted_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public boolean hasRoleId() {\n return result.hasRoleId();\n }", "@Override\n public boolean isUserInRole(String string) {\n String imp = (String)ADFContext.getCurrent().getSessionScope().get(\"isImpersonationOn\");\n if(imp == null || !imp.equals(\"Y\")){\n return super.isUserInRole(string);\n }\n else{\n List<String> userRoles = (List<String>)ADFContext.getCurrent().getSessionScope().get(\"userRoles\");\n if(userRoles != null && userRoles.contains(string)){\n return true;\n }\n else{\n return false;\n }\n \n }\n \n }", "@Test\n\tpublic void testIsPermitted_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testHasAllRoles_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Override\n \t\tpublic void checkRoles(RoleChecker arg0) throws SecurityException {\n \t\t}", "@Test\n\tpublic void testCheckRoles_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = new Vector();\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}", "@Override\n public boolean isSpecialRoles() {\n\t\tString specialRoles = PropertiesUtils.getStringValue(\"SPECIAL_ROLES\");\n\t\tboolean flag = false;\n\t\tif(StringUtil.isNotEmpty(specialRoles)){\n\t\t\tString[] specialRoleArr = specialRoles.split(\",\");\n\t\t\tList<String> roleList = Arrays.asList(specialRoleArr);\n\t\t\tList<Role> roles = userService.getCurrentLoginUserRoles();\n\t\t\tif(roles != null && roles.size() > 0 ){\n\t\t\t\tfor(Role role : roles ){\n\t\t\t\t\tif(roleList.contains(role.getRoleId())){\n\t\t\t\t\t\t//是老师\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//不是超管\n\t\t\t\tfor(Role role : roles ){\n\t\t\t\t\tif(RoleCode.SUPER_ADMIN.equals(role.getRoleCode())){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn flag;\n }", "@Test\n\tpublic void testIsPermitted_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tList<Permission> permissions = new Vector();\n\n\t\tboolean[] result = fixture.isPermitted(permissions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public boolean isElearningAdministrator(){\r\n \treturn doesUserHaveRole(UserRole.ELEARNING_ADMINISTRATOR);\r\n }", "@Test\n\tpublic void testHasAllRoles_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = null;\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public boolean granted(){\n\t\treturn this.granted;\n\t}", "public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "public void testVotersRequiredMembersOk() {\n Group citizens = RoleFactory.createGroup(\"citizen\");\n citizens.addRequiredMember(m_anyone);\n \n Group adults = RoleFactory.createGroup(\"adult\");\n adults.addRequiredMember(m_anyone);\n \n Group voters = RoleFactory.createGroup(\"voter\");\n voters.addRequiredMember(citizens);\n voters.addRequiredMember(adults);\n voters.addMember(m_anyone);\n \n \n // Elmer belongs to the citizens and adults...\n User elmer = RoleFactory.createUser(\"elmer\");\n citizens.addMember(elmer);\n adults.addMember(elmer);\n \n // Pepe belongs to the citizens, but is not an adult...\n User pepe = RoleFactory.createUser(\"pepe\");\n citizens.addMember(pepe);\n \n // Bugs is an adult, but is not a citizen...\n User bugs = RoleFactory.createUser(\"bugs\");\n adults.addMember(bugs);\n \n // Daffy is not an adult, neither a citizen...\n User daffy = RoleFactory.createUser(\"daffy\");\n\n assertTrue(m_roleChecker.isImpliedBy(voters, elmer));\n assertFalse(m_roleChecker.isImpliedBy(voters, pepe));\n assertFalse(m_roleChecker.isImpliedBy(voters, bugs));\n assertFalse(m_roleChecker.isImpliedBy(voters, daffy));\n }", "private void checkUserRoleAssignment(final VOUserDetails consideredUser,\n final String... roleNames) throws Exception {\n runTX(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n PlatformUser user = dm.getReference(PlatformUser.class,\n consideredUser.getKey());\n Set<RoleAssignment> assignedRoles = user.getAssignedRoles();\n assertEquals(roleNames.length, assignedRoles.size());\n for (String roleName : roleNames) {\n boolean roleFound = false;\n for (RoleAssignment roleAssignment : assignedRoles) {\n if (roleAssignment.getRole().getRoleName().name()\n .equals(roleName)) {\n roleFound = true;\n }\n }\n assertTrue(\"User is missing the required role \" + roleName,\n roleFound);\n }\n return null;\n }\n });\n }", "private static boolean checkRole(String roleAsString) {\n for (Roles roleChecked : Roles.values()) {\n if (roleChecked.toString().equals(roleAsString)) {\n return true;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean checkRoleName(String role_name) {\n\t\treturn false;\n\t}", "boolean isAccessible(Object dbobject, int rights) throws HsqlException {\n\n /*\n * The deep recusion is all done in getAllRoles(). This method\n * only recurses one level into isDirectlyAccessible().\n */\n if (isDirectlyAccessible(dbobject, rights)) {\n return true;\n }\n\n if (pubGrantee != null && pubGrantee.isAccessible(dbobject, rights)) {\n return true;\n }\n\n RoleManager rm = getRoleManager();\n Iterator it = getAllRoles().iterator();\n\n while (it.hasNext()) {\n if (((Grantee) rm.getGrantee(\n (String) it.next())).isDirectlyAccessible(\n dbobject, rights)) {\n return true;\n }\n }\n\n return false;\n }", "boolean hasPrincipal();", "@Test\n\tpublic void testIsPermittedAll_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Override\n public boolean isUserInRole(final String roleName) {\n return scopes.contains(roleName);\n }", "@Test\n\tpublic void testHasRole_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tString roleName = \"\";\n\n\t\tboolean result = fixture.hasRole(roleName);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testIsPermittedAll_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testHasAllRoles_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public boolean addSupportRole(Role ... r) {\n\t\tif (getGuild() == null || r == null) { return false; }\n\t\tfor (Role role : r) { if (role.getGuild().equals(getGuild())) supportRoles.add(role); }\n\t\tconfig.save();\n\t\tif (!config.isLoading()) { TMEventManager.departmentChange(this, ChangeType.Dept.ROLES); }\n\t\treturn true;\n\t}", "@Test\n\tpublic void testHasRole_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tString roleName = \"\";\n\n\t\tboolean result = fixture.hasRole(roleName);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "boolean hasPants();", "@Test\n\tpublic void testCheckRoles_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roles = new Vector();\n\n\t\tfixture.checkRoles(roles);\n\n\t\t// add additional test code here\n\t}", "private static boolean isAuthorized(\n @Nonnull Authorizer authorizer,\n @Nonnull String actor,\n @Nonnull ConjunctivePrivilegeGroup requiredPrivileges,\n @Nonnull Optional<ResourceSpec> resourceSpec) {\n for (final String privilege : requiredPrivileges.getRequiredPrivileges()) {\n // Create and evaluate an Authorization request.\n final AuthorizationRequest request = new AuthorizationRequest(actor, privilege, resourceSpec);\n final AuthorizationResult result = authorizer.authorize(request);\n if (AuthorizationResult.Type.DENY.equals(result.getType())) {\n // Short circuit.\n return false;\n }\n }\n return true;\n }", "@Test(expected = org.jsecurity.authz.UnauthorizedException.class)\n\tpublic void testCheckRole_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tString role = \"\";\n\n\t\tfixture.checkRole(role);\n\n\t\t// add additional test code here\n\t}", "@Override\n protected boolean isAuthorized(PipelineData pipelineData) throws Exception\n {\n \t// use data.getACL() \n \treturn true;\n }", "public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }", "private void checkUserAuthorities() {\n\t\tAuthority auth = authorityRepository.findTop1ByName(AuthorityType.ROLE_ADMIN);\n\t\tif (null == auth) {\n\t\t\tauth = Authority.createAdmin();\n\t\t\tauthorityRepository.save(auth);\n\t\t}\n\t\tAuthority authUser = authorityRepository.findTop1ByName(AuthorityType.ROLE_USER);\n\t\tif (null == authUser) {\n\t\t\tauthUser = Authority.createUser();\n\t\t\tauthorityRepository.save(authUser);\n\t\t}\n\t}", "@Test\n\tpublic void testIsPermittedAll_4()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = null;\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@Test\n\tpublic void testCheckRole_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tString role = \"\";\n\n\t\tfixture.checkRole(role);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testIsPermittedAll_3()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<Permission> permissions = new Vector();\n\n\t\tboolean result = fixture.isPermittedAll(permissions);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "@FunctionalInterface\n private interface RoleChecker {\n public void checkAndRedirect(String role, String redirectAddress) throws IOException;\n }", "public boolean hasRole(RoleType role) {\n for (TableProtectionElement tpe : securityRights) {\n if (tpe.hasRole(role)) {\n return true;\n }\n }\n\n return false;\n }", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "boolean isAdmin();", "@Override\n\tpublic boolean hasRole(Class<? extends IRole> role) {\n\t\treturn getInnerObject().hasRole(role);\n\t}", "@Test\n\tpublic void testIsPermitted_6()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}", "public void setRoles( Set<String> roles )\n {\n this.roles = roles;\n }", "public boolean hasPermission(List<Role> roles, Permission permission) {\n boolean hasPermission = false;\n Connection conn = null;\n PreparedStatement ps = null;\n ResultSet resultSet = null;\n String query = null;\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < roles.size(); i++) {\n sb.append(\"?,\");\n }\n String roleIds = sb.deleteCharAt(sb.length() - 1).toString();\n\n try {\n conn = getConnection();\n query = queryManager.getQuery(conn, QueryManager.HAS_PERMISSION_QUERY)\n .replace(\"{ROLE_IDS}\", roleIds);\n ps = conn.prepareStatement(query);\n ps.setString(1, permission.getAppName());\n ps.setString(2, permission.getPermissionString());\n for (int i = 0; i < roles.size(); i++) {\n ps.setString(i + 3, roles.get(i).getId());\n }\n resultSet = ps.executeQuery();\n while (resultSet.next()) {\n hasPermission = true;\n }\n } catch (SQLException e) {\n log.debug(\"Failed to execute SQL query {}\", query);\n throw new PermissionException(\"Unable to check permissions.\", e);\n } finally {\n closeConnection(conn, ps, resultSet);\n }\n return hasPermission;\n }", "@Test\n\tpublic void testHasAllRoles_5()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tCollection<String> roleIdentifiers = new Vector();\n\n\t\tboolean result = fixture.hasAllRoles(roleIdentifiers);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}" ]
[ "0.85051244", "0.82833076", "0.7861832", "0.70624095", "0.7043963", "0.7040026", "0.6867313", "0.6746703", "0.66475993", "0.66460425", "0.6645252", "0.66206926", "0.661665", "0.6605493", "0.6562891", "0.6556193", "0.65335906", "0.6519643", "0.6513863", "0.6500683", "0.64909565", "0.64886475", "0.64860016", "0.64707136", "0.6450132", "0.6430335", "0.64171493", "0.64092225", "0.63982695", "0.6374107", "0.6364941", "0.6351516", "0.63473946", "0.6343216", "0.63258827", "0.63168806", "0.63099575", "0.6307684", "0.62658465", "0.62631226", "0.62519795", "0.6248206", "0.6197825", "0.61728394", "0.6168494", "0.6155813", "0.61452425", "0.61448216", "0.61376995", "0.6134521", "0.6128409", "0.6126261", "0.6126164", "0.611962", "0.6099224", "0.60951096", "0.60941595", "0.60849816", "0.6069366", "0.60660267", "0.605862", "0.6058147", "0.60572314", "0.6047947", "0.60325736", "0.60304946", "0.60286826", "0.6027908", "0.6027176", "0.6016971", "0.6015352", "0.6011434", "0.6010664", "0.60104346", "0.6007563", "0.60042304", "0.60001284", "0.59935087", "0.59929967", "0.59836245", "0.59749264", "0.59626514", "0.5958041", "0.5934749", "0.5931739", "0.59115183", "0.59076005", "0.59062207", "0.5890442", "0.58843315", "0.5883471", "0.58744514", "0.5864593", "0.58597416", "0.5836681", "0.58316433", "0.5820602", "0.5802582", "0.58011526", "0.57944006" ]
0.81934625
2
get Spring application context which contains acegi related bean
void setAppCtx(ApplicationContext appCtx);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ApplicationContext getAppCtx();", "public static ApplicationContext getApplicationContext() {\n return appContext;\n }", "public ApplicationContext getApplicationContext() {\n return applicationContext;\n }", "public static ApplicationContext getApplicationContext() {\r\n\t\treturn applicationContext;\r\n\t}", "public ApplicationContext getApplicationContext()\n {\n return this.applicationContext;\n }", "public Context getApplicationContext();", "public static Context getAppContext() {\n return _BaseApplication.context;\n }", "private AnnotationConfigWebApplicationContext getGlobalApplicationContext() {\r\n\t\tAnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();\r\n\t\t//rootContext.register(ApplicationConfig.class);\r\n\t\trootContext.register(new Class[] {ApplicationConfig.class});\r\n\t\treturn rootContext;\r\n\t}", "@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n Context getApplication();\n}", "public static Context getContext(){\n return appContext;\n }", "public static Context getApplicationContext() { return mApplicationContext; }", "private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}", "private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}", "public static ApplicationContext getInstance() {\r\n\t\tsynchronized (SpringApplicationContextProvider.class) {\r\n\t\tif (applicationContext == null) {\r\n\t\t\tapplicationContext = new ClassPathXmlApplicationContext(\r\n\t\t\t\t\tnew String[] { \"META-INF/app-context.xml\" });\r\n\t\t}\r\n\t\t}\r\n\t\treturn (ApplicationContext) applicationContext;\r\n\t}", "public static ApplicationContext getContext() {\n if (context == null) {\n CompilerExtensionRegistry.setActiveExtension( OTA2CompilerExtensionProvider.OTA2_COMPILER_EXTENSION_ID );\n }\n return context;\n }", "@Singleton\n@Component(modules = {AppModule.class})\npublic interface AppComponent {\n Context getContext();\n CommonUtil getComminUtil();\n}", "static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/18\n// throw new RuntimeException(\"please init LogXixi\");\n return null;\n else\n return ctx;\n }", "@Provides\n @Singleton\n @ApplicationScope\n public Context provideApplicationContext() {\n return mApp.getApplicationContext();\n }", "@Component(modules = {ApplicationModule.class, HttpModule.class})\npublic interface ApplicationComponent {\n MyApp getApplication();\n\n ApiService getApiService();\n\n Context getContext();\n\n}", "public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }", "public abstract ApplicationLoader.Context context();", "public ServletContext getApplication() {\n return servletRequest.getServletContext();\n }", "@Component(modules = LoginApplicationModule.class)\n@Singleton\npublic interface LoginApplicationComponent {\n Context exposeContext();\n}", "protected AbstractApplicationContext getServicesContext() {\r\n\t\treturn this.servicesContext;\r\n\t}", "private SpringApplicationContextProvider() {\r\n\t}", "public static ApplicationContext getInstance()\n\t{\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public static Context getAppContext() {\n return mContext;\n }", "public UserContext getUserContext();", "public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }", "@Component(modules = {ApplicationModule.class,HttpModule.class})\npublic interface ApplicationComponent {\n\n MyApp getApplication();\n\n NewsApi getNetEaseApi();\n\n JanDanApi getJanDanApi();\n\n Context getContext();\n\n}", "@Override\n public Context getApplicationContext() {\n return mView.get().getApplicationContext();\n }", "private SpringApplicationContext() {}", "Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }", "public GenericContainer<?> applicationContainer() {\n return applicationContainer;\n }", "public Object lookup()\r\n {\n if (applicationInstance != null)\r\n return applicationInstance;\r\n\r\n ApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(flex.messaging.FlexContext.getServletConfig().getServletContext());\r\n if (appContext == null)\r\n {\r\n if (Log.isError())\r\n Log.getLogger(\"Configuration\").error(\r\n \"SpringFactory - not able to look up the WebApplicationContext for Spring. Check your web.xml to ensure Spring is installed properly in this web application.\");\r\n return null;\r\n }\r\n String beanName = getSource();\r\n\r\n try\r\n {\r\n Object inst;\r\n if (appContext.isSingleton(beanName))\r\n {\r\n if (Log.isDebug())\r\n Log.getLogger(\"Configuration\").debug(\r\n \"SpringFactory creating singleton component with spring id: \" + beanName + \" for destination: \" + getId());\r\n // We have a singleton instance but no one has initialized it yet.\r\n // We need to sync to prevent two threads from potentially initializing\r\n // the instance at the same time and to ensure we only return\r\n // initialized instances.\r\n synchronized (this)\r\n {\r\n // Someone else got to this before us\r\n if (applicationInstance != null)\r\n return applicationInstance;\r\n inst = appContext.getBean(beanName);\r\n if (inst instanceof FlexConfigurable)\r\n ((FlexConfigurable) inst).initialize(getId(), getProperties());\r\n applicationInstance = inst;\r\n }\r\n }\r\n else\r\n {\r\n if (Log.isDebug())\r\n Log.getLogger(\"Configuration\").debug(\r\n \"SpringFactory creating non-singleton component with spring id: \" + beanName + \" for destination: \" + getId());\r\n inst = appContext.getBean(beanName);\r\n if (inst instanceof FlexConfigurable)\r\n ((FlexConfigurable) inst).initialize(getId(), getProperties());\r\n }\r\n return inst;\r\n }\r\n catch (NoSuchBeanDefinitionException nexc)\r\n {\r\n ServiceException e = new ServiceException();\r\n String msg = \"Spring service named '\" + beanName + \"' does not exist.\";\r\n e.setMessage(msg);\r\n e.setRootCause(nexc);\r\n e.setDetails(msg);\r\n e.setCode(\"Server.Processing\");\r\n throw e;\r\n }\r\n catch (BeansException bexc)\r\n {\r\n ServiceException e = new ServiceException();\r\n String msg = \"Unable to create Spring service named '\" + beanName + \"' \";\r\n e.setMessage(msg);\r\n e.setRootCause(bexc);\r\n e.setDetails(msg);\r\n e.setCode(\"Server.Processing\");\r\n throw e;\r\n }\r\n }", "@Singleton\n@Component(modules = {ApplicationModule.class})\npublic interface ApplicationComponent {\n\n void inject(GoToDream goToDream);\n\n @Named(\"application\")\n Context getContext();\n}", "public void configureContextInitializationComponents(AppConfiguration appConfig,\n\t SpringBeansXMLBuilder builder);", "@Component(modules = { ApplicationModule.class, SettingsDataModule.class, UserDataModule.class, RecipeDataModule.class })\n@ApplicationScope\npublic interface ApplicationComponent {\n\n void inject(HoppyApplication application);\n\n @ApplicationContext\n Context applicationContext();\n Navigator navigator();\n\n UserRepository userRepository();\n RecipeRepository recipeRepository();\n SettingsRepository settingsRepository();\n GetCurrentUserInteractor getCurrentUserInteractor();\n}", "public ActionBeanContext getContext() {\r\n return context;\r\n }", "AdminApplication getApplication();", "private static CamelContext configureCamelContext(ApplicationContext context) throws Exception {\n //normal way of getting camel context but i have it defined in camelSpringApplicationContext.xml\n // CamelContext camel = new DefaultCamelContext();\n // CamelContext camel = new SpringCamelContext(context);\n CamelContext camel = (CamelContext) context.getBean(\"myCamelContext\");\n // shows up in jmx with this context name instead of camel-1\n camel.setNameStrategy(new DefaultCamelContextNameStrategy(\"steves_camel_driver\"));\n // camel.setTracing(true); // set in camelSpringApplicationContext.xml\n camel.addStartupListener(new StartupListener() {\n @Override\n public void onCamelContextStarted(CamelContext context, boolean alreadyStarted) throws Exception {\n LOG.info(\"Seeing when startup strategy is called. CamelContext=\" + context);\n }\n });\n\n return camel;\n }", "@Singleton\n@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n// @ApplicationContext\n// Context context();\n\n Application application();\n\n SharedPrefencesHelper sharedPrefencesHelper();\n\n DataManager dataManager();\n\n G3anService g3anService();\n}", "@Singleton\n@Component(modules = AppModule.class)\npublic interface AppComponent {\n\n @ContextLife(\"Application\")\n App getContext(); // 提供App的Context\n\n RetrofitHelper retrofitHelper(); //提供http的帮助类\n\n}", "public interface AppConfigService {\n /**\n * 获取中台AppKey\n * @return\n */\n String getAppKey();\n /**\n * 获取中台channel\n * @return\n */\n String getChannel();\n /**\n * 获取中台domain\n * @return\n */\n String getMiddleDomain();\n /**\n * 获取自己服务器domain\n * @return\n */\n String getOwnDomain();\n /**\n * 获取网页domain\n * @return\n */\n String getH5Domain();\n\n /**\n * 获取weex远端地址目录\n * @return\n */\n String getWeexDomain();\n /**\n * 获取全局ApplicationContext\n * @return\n */\n Application getApplication();\n}", "public interface MyApplicationContextAware {\n /**\n * 20:18 2020/11/15\n * @param \n * @return\n */\n void setAapplicationContext(MyApplicationContext application);\n}", "@Override\n public Context getContext() {\n return this.getApplicationContext();\n }", "@Singleton\n@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n @ApplicationContext\n Context context();\n\n void inject(ZoloApplication zoloApplication);\n\n DataManagerLogic datamangerLogic();\n\n Application application();\n\n}", "public ApplicationContextAwareProcessor(ConfigurableApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "public static String getOaiproviderContext() {\r\n if (oaiproviderContext == null) {\r\n oaiproviderContext =\r\n PropertiesProvider.getInstance().getProperty(\"oaiprovider.context\", \"/escidoc-oaiprovider/\");\r\n }\r\n return oaiproviderContext;\r\n }", "public BeanContextServices getSourceAsBeanContextServices() {\n return (BeanContextServices)getBeanContext();\n }", "protected abstract ApplicationContext createApplicationContextImpl(\n MarinerRequestContext requestContext);", "private static BeanFactory getBeanFactory() {\n\t\tBeanFactory factory = new ClassPathXmlApplicationContext(\"withauto/beans.xml\");\n\t\treturn factory;\n\t}", "public void injectContext(ComponentContext context);", "Application getApplication();", "@Singleton\n@Component(modules = {ContextModule.class, BusModule.class, GithubModule.class, GankModule.class, ZhiHuModule.class, RssModule.class})\npublic interface AppComponent {\n Context getContext();\n GankService getGankService();\n ZhiHuService getZhiHuService();\n RssService getRssService();\n EventBus getBus();\n}", "@ApplicationScope\n@Component(modules = {ContextModule.class,ServiceModule.class}) // tell which modules to use in order to generate this instance\npublic interface ApplicationComponent {\n\n\n\n SharedPreferencesClass getSharedPrefs();\n\n RequestManager getGlide();\n\n void injectRepo(ProjectRepository repository);\n\n}", "@Override\r\n\tpublic CamelContext getCamelContext() {\n\t\treturn ctx ;\r\n\t}", "protected Application getApplication() {\r\n\t\treturn application;\r\n\t}", "Context getContext();", "protected ApplicationBean1 getApplicationBean1() {\n return (ApplicationBean1)getBean(\"ApplicationBean1\");\n }", "protected ApplicationBean1 getApplicationBean1() {\n return (ApplicationBean1)getBean(\"ApplicationBean1\");\n }", "public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}", "@Test\n\tpublic void testContextShouldInitalizeChildContexts() {\n\t\tassertThat(Foo.getInstanceCount()).isEqualTo(1);\n\t\tApplicationContext ctx = springClientFactory.getContext(\"testspec\");\n\n\t\tassertThat(Foo.getInstanceCount()).isEqualTo(1);\n\t\tFoo foo = ctx.getBean(\"foo\", Foo.class);\n\t\tassertThat(foo).isNotNull();\n\t}", "private Context getThreadContext() throws NamingException {\n final ThreadContext threadContext = ThreadContext.getThreadContext();\n if (skipEjbContext(threadContext)) {\n return ContextBindings.getClassLoader();\n }\n final Context context = threadContext.getBeanContext().getJndiEnc();\n return context;\n }", "public static AvarioCoreConfig getInstance(Context context) {\n if (AvarioCoreConfig.instance == null) {\n AvarioCoreConfig.instance = new AvarioCoreConfig(context);\n }\n\n return AvarioCoreConfig.instance;\n }", "private static void assertContextInjected() {\n if (applicationContext == null) {\n throw new IllegalStateException(\"applicaitonContext attribute is not injected, please enter applicationContext\" +\n \"Define SpringContextHolder in .xml or register SpringContextHolder in SpringBoot startup class.\");\n }\n }", "public static IConsortiaService getInstance(ApplicationContext context) {\r\n return (IConsortiaService) context.getBean(SERVICE_BEAN_ID);\r\n }", "public com.atomgraph.linkeddatahub.apps.model.Application getApplication()\n {\n return (com.atomgraph.linkeddatahub.apps.model.Application)getContainerRequestContext().getProperty(LAPP.Application.getURI());\n }", "ComponentContainer container(ContextDefinition context);", "private AppContext()\n {\n }", "@Bean\n\tpublic CustomSAMLContextProviderImpl contextProvider() {\n\t\treturn new CustomSAMLContextProviderImpl();\n\t}", "Context context();", "Context context();", "@Override\n protected void configure() {\n bind(ApplicationContext.class).toInstance(ctxt);\n }", "private ApplicationContext()\n\t{\n\t}", "final protected ServletBeanContext getServletBeanContext()\n {\n if (_beanContext == null)\n {\n ControlContainerContext ccc = ControlThreadContext.getContext();\n if (! (ccc instanceof ServletBeanContext))\n throw new IllegalStateException(\"No ServletBeanContext available\");\n\n _beanContext = (ServletBeanContext)ccc;\n }\n return _beanContext;\n }", "@Override\n public void onStartup(ServletContext container) {\n AnnotationConfigWebApplicationContext rootContext =\n new AnnotationConfigWebApplicationContext();\n rootContext.register(ApplicationConfig.class);\n rootContext.setConfigLocation(\"example.spring\");\n\n // Manage the lifecycle of the root application context\n container.addListener(new ContextLoaderListener(rootContext));\n container.addListener(new RequestContextListener());\n\n // The following line is required to avoid having jersey-spring3 registering it's own Spring root context.\n container.setInitParameter(\"contextConfigLocation\", \"\");\n\n }", "String getApplicationContextPath();", "protected void init() { \n ServletContext servletContext = getServletContext();\n applicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);\n\n String names[] = applicationContext.getBeanDefinitionNames();\n\n for (String name : names) {\n System.out.println(\"name:\" + name);\n }\n }", "@Override\n public void onApplicationEvent(ContextRefreshedEvent event) {\n\n appContext = event.getApplicationContext();\n System.out.println(appContext.getId());\n\n\n log.info(\"api-web初始化\");\n try {\n ApiUtils_.init(appContext);\n } catch (Exception e) {\n log.warn(\"初始化异常!\", e);\n }\n log.info(\"api-web初始化完成\");\n }", "@Override\r\n\tpublic Context getContext()\r\n\t{\n\t\treturn this.getActivity().getApplicationContext();\r\n\t}", "public static ApplicationContext loadCfg(URL springCfgUrl) throws GridException {\n GenericApplicationContext springCtx;\n\n try {\n springCtx = new GenericApplicationContext();\n\n new XmlBeanDefinitionReader(springCtx).loadBeanDefinitions(new UrlResource(springCfgUrl));\n\n springCtx.refresh();\n }\n catch (BeansException e) {\n throw new GridException(\"Failed to instantiate Spring XML application context [springUrl=\" +\n springCfgUrl + \", err=\" + e.getMessage() + ']', e);\n }\n\n return springCtx;\n }", "private static ExternalContext getContext() {\n\tExternalContext externalContext=null;\n\tFacesContext facesContext=FacesContext.getCurrentInstance();\n\tif(facesContext==null) {\n\t return null;\n\t}\n\t\n\ttry {\n\t externalContext=facesContext.getExternalContext();\n\t}\n\tcatch(Exception ex) {\n\t ex.printStackTrace();\n\t}\n\n\treturn externalContext;\n }", "public DataSource getDataSource(){\n\n // open/read the applicliation context file\n // belove instruction to ger absolute path of current java apps\n //URL location = NaicsUtility.class.getProtectionDomain().getCodeSource().getLocation();\n //System.out.println(location);\n ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(\"./../db.xml\");\n DataSource dataSource = null;\n try{ \n dataSource = (DataSource) appContext.getBean(\"dataSource\");\n } catch ( Exception ex ) {\n logger.log( Level.SEVERE, \"ERROR: can't create spring context and data source from application context\", ex.getMessage() );\n } finally {\n appContext.close();\n }\n return dataSource;\n }", "@ApplicationScope\n@Component(modules = {\n ApplicationModule.class,\n NetworkModule.class,\n ApiModule.class,\n PersistenceModule.class\n})\npublic interface ApplicationComponent {\n\n ArchitectureUrl url();\n\n void inject(CatApplication application);\n HomeComponent plus(HomeModule module);\n}", "@Override\n public void onApplicationEvent(ContextRefreshedEvent event) {\n if(event.getApplicationContext().getDisplayName().equals(\"Root WebApplicationContext\")){\n System.out.println(\"避免spring-servlet.xml跟appicationContext.xml两次加载\");\n }\n if(event.getApplicationContext().getParent()==null){\n System.out.println(\"执行context上下文初始化\");\n ApplicationContextUtil.instance.init(event.getApplicationContext());\n }\n }", "protected ApplicationComponent getApplicationComponent() {\n return ((MainApp) getApplication()).getApplicationComponent();\n }", "public static ELContext getELContext() {\n return FacesContext.getCurrentInstance().getELContext();\n }", "public static Context getContext() {\n\t\treturn context;\n\t}", "public static Context getContext() {\n\t\treturn context;\n\t}", "@Binds\n public abstract Context bindContext(Application application);", "public AppService appService() {\n\t\treturn appService;\n\t}", "public ServletContext getContext() {\r\n\t\treturn new ContextWrapper(getEvent().getServletContext());\r\n\t}", "public Context getContext() {\n return context;\n }", "private DiaryApplication getApp() {\n ServletContext application = (ServletContext) context.getMessageContext().get(MessageContext.SERVLET_CONTEXT);\n synchronized (application) {\n DiaryApplication diaryApp = (DiaryApplication) application.getAttribute(\"diaryApp\");\n if (diaryApp == null) {\n try {\n diaryApp = new DiaryApplication();\n diaryApp.setAllPath(application.getRealPath(\"WEB-INF/bookings.xml\"), application.getRealPath(\"WEB-INF/students.xml\"), application.getRealPath(\"WEB-INF/tutors.xml\"));\n application.setAttribute(\"diaryApp\", diaryApp);\n } catch (JAXBException ex) {\n Logger.getLogger(soapService.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(soapService.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return diaryApp;\n }\n }", "public String getContext() { return context; }", "public Context getContext() {\n return this.mService.mContext;\n }", "public ConfigContext getConfigContext() {\n\n return (ConfigContext)getSource();\n\n }", "public ApiContext getApiContext() {\n return this.apiContext;\n }", "public static Context getContext() {\n\t\treturn instance;\n\t}" ]
[ "0.7455985", "0.708865", "0.704017", "0.69415385", "0.6922314", "0.6916092", "0.6793672", "0.67216593", "0.6677651", "0.6634985", "0.635167", "0.6221895", "0.6221895", "0.6195262", "0.6168723", "0.61644816", "0.6164087", "0.61547357", "0.60594493", "0.6034627", "0.60346097", "0.59870327", "0.59774673", "0.59308696", "0.5881104", "0.5876031", "0.57112503", "0.5697947", "0.5692519", "0.56762296", "0.5663074", "0.5655672", "0.56542087", "0.5644428", "0.5634837", "0.56248087", "0.56160396", "0.56074077", "0.5606999", "0.5604791", "0.5602981", "0.5584199", "0.5555523", "0.5541035", "0.5533528", "0.5526819", "0.5519792", "0.5516375", "0.5509146", "0.54796875", "0.5478114", "0.54445165", "0.54311347", "0.54227436", "0.5421116", "0.5415917", "0.54069144", "0.54067916", "0.54023284", "0.53958863", "0.53958863", "0.53870106", "0.538324", "0.5382131", "0.5357877", "0.53510433", "0.5334531", "0.5330331", "0.5330052", "0.53258276", "0.53115046", "0.52994525", "0.52994525", "0.5290902", "0.52804077", "0.527932", "0.52713054", "0.5268931", "0.5267986", "0.5260495", "0.52500975", "0.5239673", "0.5235925", "0.52354944", "0.52348465", "0.5231498", "0.52278876", "0.52245724", "0.52205014", "0.52205014", "0.52075845", "0.520623", "0.5204414", "0.51809084", "0.5175815", "0.5172819", "0.5168906", "0.51574874", "0.51556003", "0.5145276" ]
0.5545814
43
Instantiates a new order event.
OrderEvent(String apiName) { this.apiName = apiName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void create(Order order);", "public Order() {\n\t}", "public Order() {\n }", "public OrderInventedRecord() {\n super(OrderInvented.ORDER_INVENTED);\n }", "public void startOrder() {\r\n this.o= new Order();\r\n }", "public void create(Order order) {\n order_dao.create(order);\n }", "public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}", "public OrderOffered() {\r\n }", "public Order() {\n this(DSL.name(\"order\"), null);\n }", "public void create(Order order) {\n\t\torderDao.create(order);\n\t}", "public Order() {\n\t\tsuper();\n\t\tcurrentOrder += 1;\n\t\torderNumber = currentOrder;\n\t\tthis.orderPrice.setScale(2, BigDecimal.ROUND_HALF_EVEN);\n\t}", "void newOrder();", "NewOrderResponse newOrder(NewOrder order);", "public Order(String deliveryAddress, String customerName, double orderTotalPrice, String id,\n String description, String customerTelephone, String comment, String pharmacyId, Date date, String userToken) {\n this.deliveryAddress = deliveryAddress;\n this.customerName = customerName;\n this.orderStatus = OrderStatus.WAITING_ORDER;\n this.orderTotalPrice = orderTotalPrice;\n this.description = description;\n this.id = id;\n this.customerTelephone = customerTelephone;\n this.pharmacyId = pharmacyId;\n this.comment = comment;\n this.date = new Date(date.getTime());\n this.userToken = userToken;\n }", "@Override\n public Order create(Order order) {\n this.orders.add(order);\n save();\n return order;\n }", "public Order()\r\n\t{\r\n\t\tnew BigDecimal(\"0.0\");\r\n\t\tsubtotal = new BigDecimal(\"0.0\");\r\n\t\tarraySize = 5;\r\n\t\torderSize = 0;\r\n\t\torder = new Drink[arraySize];\r\n\t\tSystem.out.println(\"New Order started!\");\r\n\t}", "public Order() {\n\t\tthis.orderID = DataHolder.getInstance().getLastOrderId() + 1;\n\t\tthis.dateOrdered = new Date();\n\t\tthis.dateFilled = null;\n\t\tthis.projectedDate = addDays(dateOrdered,1);\n\t}", "Order sendNotificationNewOrder(Order order);", "@FXML\n\tpublic void createNewOrder(ActionEvent event) {\n\t\t// TODO Autogenerated\n\t}", "public Order() {\n orderID = \"\";\n customerID = \"\";\n status = \"\";\n }", "public Order() {\n\t\tsuper();\n\t\titems = new HashMap<>();\n\t}", "public void onOrderAdded(OrderEntry orderEntry);", "Event createEvent();", "Event createEvent();", "public Order(int _orderId){\n this.orderId = _orderId;\n }", "public OrderLine() {\n }", "public OrderItem() {}", "public ServiceOrderRecord() {\n super(ServiceOrder.SERVICE_ORDER);\n }", "public CustomerEvent()\r\n {\r\n this(0, 0, ENTER);\r\n }", "protected Order(String custFName, String custLName, String custEmail, int orderID,\n Timestamp creationDate, double totalDue, String status, String salesFName,\n String salesLName,\n String salesEmail) {\n this.custFName = custFName;\n this.custLName = custLName;\n this.custEmail = custEmail;\n this.orderID = orderID;\n this.creationDate = creationDate;\n this.totalDue = totalDue;\n this.status = status;\n this.salesFName = salesFName;\n this.salesLName = salesLName;\n this.salesEmail = salesEmail;\n products = new ArrayList<>();\n }", "public Invoice createInvoice(Order order);", "public Order(int orderID, int userID, String orderDate, String orderTitle) {\n this.order_id = orderID;\n this.user_id = userID;\n this.order_date = orderDate;\n this.order_title = orderTitle;\n }", "public void addNewOrder(Order order) {\n\t\tnewOrders.add(order);\n\t}", "public Event() {\r\n\r\n\t}", "public Event() {\n\t}", "public UserOrder() {\n }", "public Event() {\n }", "public Event() {\n }", "public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}", "public Event() {}", "public Event() {\n\n }", "private void createInventoryAllocationEvent(final OrderModel order)\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal SourcingResults results = getSourcingService().sourceOrder(order);\n\t\t\tif (results != null)\n\t\t\t{\n\t\t\t\tresults.getResults().forEach(result -> logSourcingInfo(result));\n\t\t\t\tLOGGER.info(\"Before allocation event for the the consignemnts on Order : \" + order.getCode());\n\t\t\t\tfinal Collection<ConsignmentModel> consignments = getAllocationService().createConsignments(order,\n\t\t\t\t\t\t\"cons\" + order.getCode(), results);\n\t\t\t\tLOGGER.info(\"After allocation event for the the consignemnts on Order : \" + order.getCode());\n\t\t\t\t\n\t\t\t\tint counter = 0;\n\t\t\t\tfor (final ConsignmentModel consignment : consignments)\n\t\t\t\t{\n\t\t\t\t\tLOGGER.info(\"consignemnts after allocation : \" + consignment.getCode());\n\t\t\t\t\tfor (final ConsignmentEntryModel consignmentEntry : consignment.getConsignmentEntries())\n\t\t\t\t\t{\n\t\t\t\t\t\tconsignmentEntry.setSapOrderEntryRowNumber(++counter);\n\t\t\t\t\t\tgetModelService().save(consignmentEntry);\n\t\t\t\t\t\tLOGGER.info(\"consignemnt entries after save for consignemnt : \" + consignment.getCode());\n\t\t\t\t\t}\n\t\t\t\t\tLOGGER.info(\"Inventory allocation event has been created on Consignment : \" + consignment.getCode());\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (final Exception e)\n\t\t{\n\t\t\tLOGGER.warn(\"Allocation event cannot triggered for consignment : \", e);\n\t\t}\n\t}", "public\n CreateEvent()\n {}", "void createOrders(int orderNum) throws OrderBookOrderException;", "@Override\n\tpublic OrderResponseDto createOrder(OrderRequestDto orderRequestDto) {\n\t\tLOGGER.info(\"Enter into order service impl\");\n\n\t\tOptional<Stocks> stock = stockRepository.findById(orderRequestDto.getStockId());\n\t\tOptional<User> user = userRepository.findById(orderRequestDto.getUserId());\n\n\t\tif (!stock.isPresent())\n\t\t\tthrow new CommonException(TradingConstants.ERROR_STOCK_NOT_FOUND);\n\t\tif (!user.isPresent())\n\t\t\tthrow new CommonException(TradingConstants.ERROR_USER_NOT_FOUND);\n\t\tif (orderRequestDto.getStockQuantity() >= 100)\n\t\t\tthrow new CommonException(TradingConstants.ERROR_QUANTITY);\n\t\tDouble brokeragePercent = Double.valueOf(stock.get().getBrokerageAmount() / 100d);\n\t\tDouble brokerageAmount = stock.get().getStockPrice() * orderRequestDto.getStockQuantity() + brokeragePercent;\n\t\tDouble totalPrice = stock.get().getStockPrice() * orderRequestDto.getStockQuantity() + brokerageAmount;\n\n\t\tOrders orders = Orders.builder().stockId(stock.get().getStockId())\n\t\t\t\t.stockQuantity(orderRequestDto.getStockQuantity()).totalPrice(totalPrice)\n\t\t\t\t.stockStatus(StockStatus.P.toString()).userId(orderRequestDto.getUserId()).build();\n\t\torderRepository.save(orders);\n\t\tResponseEntity<GlobalQuoteDto> latest = latestStockPrice(stock.get().getStockName());\n\t\treturn new OrderResponseDto(orders.getOrderId(), stock.get().getStockPrice(),\n\t\t\t\tlatest.getBody().getGlobalQuote().getPrice());\n\t}", "protected abstract Order createOrder(Cuisine cuisine);", "public OrderLogRecord() {\n super(OrderLog.ORDER_LOG);\n }", "public ScheduleEvent()\n\t{\n\n\t}", "public AnalyticsEvent build() {\n AnalyticsEvent purchaseEvent = null;\n if(isValid() && doBaseValidation()) {\n purchaseEvent = eventClient.createEvent(PURCHASE_EVENT_NAME);\n\n purchaseEvent.addAttribute(PURCHASE_EVENT_PRODUCT_ID_ATTR, productId);\n purchaseEvent.addAttribute(PURCHASE_EVENT_STORE_ATTR, store);\n purchaseEvent.addMetric(PURCHASE_EVENT_QUANTITY_METRIC, quantity);\n\n if(formattedItemPrice != null) {\n purchaseEvent.addAttribute(PURCHASE_EVENT_PRICE_FORMATTED_ATTR, formattedItemPrice);\n }\n\n if(itemPrice != null) {\n purchaseEvent.addMetric(PURCHASE_EVENT_ITEM_PRICE_METRIC, itemPrice);\n }\n\n if(transactionId != null) {\n purchaseEvent.addAttribute(PURCHASE_EVENT_TRANSACTION_ID_ATTR, transactionId);\n }\n\n if(currency != null) {\n purchaseEvent.addAttribute(PURCHASE_EVENT_CURRENCY_ATTR, currency);\n }\n }\n \n return purchaseEvent;\n }", "@Override\n\tpublic Order create(Order order) {\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();) {\n\t\t\tstatement.executeUpdate(\"INSERT INTO orders(customer_id) VALUES ('\" + order.getCustomer_id() + \"')\");\n\t\t\treturn readLatest();\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn null;\n\t}", "Order addOrder(String orderId, Order order) throws OrderBookOrderException;", "public org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrder addNewOrder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrder target = null;\n target = (org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrder)get_store().add_element_user(ORDER$0);\n return target;\n }\n }", "public Orders()\n {\n setEntityDelegate(DELEGATE);\n _init();\n }", "public Eventd() {\n }", "public Orders(int ordersId) {\r\n this.ordersId = ordersId;\r\n }", "public Invoice createInvoice(Order order) {\n\t\treturn new Invoice(order);\n\t}", "Order placeNewOrder(Order order, Project project, User user);", "public TExpressOrderRecord() {\n super(TExpressOrder.T_EXPRESS_ORDER);\n }", "public FlightOrder(Flight flight, Order order) {\n\t\tsuper();\n\t\tthis.flight = flight;\n\t\tthis.order = order;\n\t\tthis.tickets = new HashSet<FlightTicket>();\n\t}", "OrderDTO create(OrderDTO orderDTO);", "public Order(int orderID, int customerID, Date orderDate, Date expectedDeliveryDate) {\n this.orderID = orderID;\n this.customerID = customerID;\n this.orderDate = orderDate;\n this.expectedDeliveryDate = expectedDeliveryDate;\n }", "private IEvent createEvent() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.createChild(IEvent.ELEMENT_TYPE, null, null);\n\t}", "public void placeOrder(String custID) {\r\n //creates Order object based on current cart\r\n Order order = new Order(custID, getItems());\r\n //inserts new order into DB\r\n order.insertDB();\r\n }", "public McHappyDay(Order order) {\n\t\tthis.order = order;\n\t}", "EventChannel create();", "public Order create(Order order) {\n\t\tthis.orderRepository.save(order);\n\t\tfor (Product product : order.getProducts()) {\n\t\t\tproduct.setOrder(order);\n\t\t\tthis.productService.create(product);\n\t\t}\n\t\treturn order;\n\t}", "public LogEvent newInstance()\n {\n return new LogEvent();\n }", "public TaskOrder(TaskOrderDetails details){\n\t\tthis.details = details;\n\t}", "public void createGenesisEvent() {\n handleNewEvent(buildEvent(null, null));\n }", "public History(ArrayList<Order> orders) {\n this.orders = orders;\n }", "public void addOrder(Order order) {\n orders.add(order);\n }", "public Order(long price, long quantity, long seqNo) {\n this.price = price;\n this.quantity = quantity;\n this.seqNo = seqNo;\n }", "@Test\n public void testAddOrder() {\n Order addedOrder = new Order();\n\n addedOrder.setOrderNumber(1);\n addedOrder.setOrderDate(LocalDate.parse(\"1900-01-01\"));\n addedOrder.setCustomer(\"Add Test\");\n addedOrder.setTax(new Tax(\"OH\", new BigDecimal(\"6.25\")));\n addedOrder.setProduct(new Product(\"Wood\", new BigDecimal(\"5.15\"), new BigDecimal(\"4.75\")));\n addedOrder.setArea(new BigDecimal(\"100.00\"));\n addedOrder.setMaterialCost(new BigDecimal(\"515.00\"));\n addedOrder.setLaborCost(new BigDecimal(\"475.00\"));\n addedOrder.setTaxCost(new BigDecimal(\"61.88\"));\n addedOrder.setTotal(new BigDecimal(\"1051.88\"));\n\n dao.addOrder(addedOrder);\n\n Order daoOrder = dao.getAllOrders().get(0);\n\n assertEquals(addedOrder, daoOrder);\n }", "public Event(){\n\n }", "@Override\n\t public void onMessage(NewOrderSingle message, SessionID sessionID)\n\t throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {\n\t System.out.println(\"Inside onMessage for New Order Single\");\n//\t super.onMessage(message, sessionID);\n\t OrdType orderType = message.getOrdType();\n\t Symbol currencyPair = message.getSymbol();\n\t /*\n\t * Assuming that we are directly dealing with Market\n\t */\n\t Price price = null;\n\t if (OrdType.FOREX_MARKET == orderType.getValue()) {\n\t if(this.priceMap.containsKey(currencyPair.getValue())){\n\t price = new Price(this.priceMap.get(currencyPair.getValue()));\n\t } else {\n\t price = new Price(1.4589);\n\t }\n\t }\n\t \n\t //We are hardcoding this to 1, but in real world this may be something like a sequence.\n\t OrderID orderNumber = new OrderID(\"1\");\n\t //Id of the report, a unique identifier, once again this will be somthing like a sequence\n\t ExecID execId = new ExecID(\"1\");\n\t //In this case this is a new order with no exception hence mark it as NEW\n\t ExecTransType exectutionTransactioType = new ExecTransType(ExecTransType.NEW);\n\t //This execution report is for confirming a new Order\n\t ExecType purposeOfExecutionReport =new ExecType(ExecType.FILL);\n\t //Represents status of the order, since this order was successful mark it as filled.\n\t OrdStatus orderStatus = new OrdStatus(OrdStatus.FILLED);\n\t //Represents the currencyPair\n\t Symbol symbol = currencyPair;\n\t //Represents side\n\t Side side = message.getSide();\n\t //What is the quantity left for the day, we will take 100 as a hardcoded value, we can also keep a note of this from say limit module.\n\t LeavesQty leavesQty = new LeavesQty(100);\n\t //Total quantity of all the trades booked in this applicaition, here it is hardcoded to be 100.\n\t CumQty cummulativeQuantity = new CumQty(100);\n\t //Average Price, say make it 1.235\n\t AvgPx avgPx = new AvgPx(1.235);\n\t ExecutionReport executionReport = new ExecutionReport(orderNumber,execId, exectutionTransactioType,\n\t purposeOfExecutionReport, orderStatus, symbol, side, leavesQty, cummulativeQuantity, avgPx);\n\t executionReport.set(price);\n\t try {\n\t Session.sendToTarget(executionReport, sessionID);\n\t } catch (SessionNotFound e) {\n\t e.printStackTrace();\n\t }\n\t \n\t }", "public Order createOrder(final Checkout checkout) {\n Map<String, Object> logMap = LoggingUtils.createLogMap();\n LoggingUtils.logIfNotNull(logMap, LoggingUtils.CHECKOUT_ID, checkout.getId());\n LoggingUtils.logIfNotNull(logMap, LoggingUtils.USER_ID, checkout.getUserId());\n LOGGER.info(\"Creating order\", logMap);\n final Order mappedOrder = mapper.checkoutToOrder(checkout);\n setCreationDateTimes(mappedOrder);\n mappedOrder.getData().setLinks(linksGeneratorService.generateOrderLinks(mappedOrder.getId()));\n\n LoggingUtils.logIfNotNull(logMap, LoggingUtils.ORDER_ID, mappedOrder.getId());\n final Optional<Order> order = orderRepository.findById(mappedOrder.getId());\n order.ifPresent(\n o -> {\n final String message = \"Order ID \" + o.getId() + \" already exists. Will not update.\";\n LOGGER.error(message, logMap);\n throw new ForbiddenException(message);\n }\n );\n\n Order savedOrder;\n try {\n savedOrder = orderRepository.save(mappedOrder);\n } catch (MongoException ex) {\n String errorMessage = String.format(\"Failed to save order with id %s\", mappedOrder.getId());\n LOGGER.error(errorMessage, ex, logMap);\n throw new MongoOperationException(errorMessage, ex);\n }\n\n LOGGER.info(\"Publishing notification to Kafka 'order-received' topic for order - \" + mappedOrder.getId(), logMap);\n sendOrderReceivedMessage(mappedOrder.getId());\n\n return savedOrder;\n }", "public Order(int custID)\r\n\t{\r\n\t\tcustomerID = custID;\r\n\t\torderItemList = new ArrayList();\r\n\t\torderID = 0;\r\n\t\torderTotal = 0;\r\n\t}", "public Event createEvent(String name) {\r\n\t\tEvent newEvent = new Event(this.GID, name);\r\n\t\tevents.add(newEvent);\r\n\t\treturn newEvent;\r\n\t}", "EventChannel create(Context context);", "@Override\n public void onApplicationEvent(TransportServiceEvent event) {\n switch (event.getType()) {\n case INITIALIZED:\n case TRANSPORT_FINISHED:\n case TRANSPORT_ONFAILURE:\n case TRANSPORT_CANCELED:\n case TRANSPORT_INTERRUPTED:\n\n final TransportOrder to = repository.findOne((Long) event.getSource());\n// List<TransportOrder> transportOrders = repository.findByTransportUnitBKAndStates(to.getTransportUnitBK(), TransportOrderState.CREATED);\n LOGGER.debug(\"> Request to start the TransportOrder with PKey [{}]\", to.getPersistentKey());\n Optional<LocationGroup> lg = commonGateway.getLocationGroup(to.getTargetLocationGroup());\n Optional<Location> loc = commonGateway.getLocation(to.getTargetLocation());\n if (!lg.isPresent() && !loc.isPresent()) {\n // At least one target must be set\n throw new NotFoundException(\n \"Neither a valid target LocationGroup nor a Location are set, hence it is not possible to start the TransportOrder\");\n }\n lg.ifPresent(l -> {\n if (l.isInfeedBlocked())\n throw new StateChangeException(\"Cannot start the TransportOrder because TargetLocationGroup is blocked\");\n });\n loc.ifPresent(l -> {\n if (l.isInfeedBlocked())\n throw new StateChangeException(\"Cannot start the TransportOrder because TargetLocation is blocked\");\n });\n lg.ifPresent(l -> to.setTargetLocationGroup(l.toString()));\n loc.ifPresent(l -> to.setTargetLocation(l.toString()));\n\n List<TransportOrder> others = repository.findByTransportUnitBKAndStates(to.getTransportUnitBK(), TransportOrderState.STARTED);\n if (!others.isEmpty()) {\n throw new StateChangeException(\n \"Cannot start TransportOrder for TransportUnit [\" + to.getTransportUnitBK() + \"] because \" + others.size() + \" TransportOrders already started [\" + others.get(0).getPersistentKey() + \"]\");\n }\n to.changeState(TransportOrderState.STARTED);\n repository.save(to);\n LOGGER.info(\"TransportOrder for TransportUnit with Barcode {} STARTED at {}. Persisted key is {}\", to.getTransportUnitBK(), to.getStartDate(), to.getPk());\n break;\n }\n }", "public Order(int ordID, int custID)\r\n\t{\r\n\t\tcustomerID = custID;\r\n\t\torderItemList = new ArrayList();\r\n\t\torderID = ordID;\r\n\t\torderTotal = 0;\r\n\t}", "@Override\n public SoapEvent create(SoapEvent event) {\n throw new UnsupportedOperationException();\n }", "public EventMessage(Event event)\r\n {\r\n //super(\"EventMessage\");\r\n super(TYPE_IDENT, event);\r\n }", "public Order createOrder(WeeklyRecipe wr, User u, Date deliveryTime,\n\t\t\tint quantity) {\n\t\tem.getTransaction().begin();\n\t\tOrder order = new Order(false, null, false, deliveryTime, false,\n\t\t\t\tquantity, 0, wr, u);\n\t\tem.persist(order);\n\t\tem.getTransaction().commit();\n\t\treturn order;\n\t}", "public LabOrder generateOrder() {\n LabOrder order = new LabOrder();\n Random r = new Random();\n Date date = getDate(r);\n order.insertts = date; //randbetween 1388534400 <-> 1420070400\n order.ordernr = \"O\" + r.nextInt();\n order.patientnr = \"P\" + r.nextInt(10000); //1 mil / 100 = 10 000\n order.visitNr = \"V\" + r.nextInt(); //unique;\n order.specimens.add(generateSpecimen(order));\n order.specimens.add(generateSpecimen(order));\n return order;\n }", "@Test\n public void testCreatePurchaseOrder() throws Exception {\n System.out.println(\"createPurchaseOrder\");\n Long factoryId = 1L;\n Long contractId = 2L;\n Double purchaseAmount = 4D;\n Long storeId = 2L;\n String destination = \"store\";\n Calendar deliveryDate = Calendar.getInstance();\n deliveryDate.set(2015, 0, 13);\n Boolean isManual = false;\n Boolean isToStore = true;\n PurchaseOrderEntity result = PurchaseOrderManagementModule.createPurchaseOrder(factoryId, contractId, purchaseAmount, storeId, destination, deliveryDate, isManual, isToStore);\n assertNotNull(result);\n }", "public Order(Builder builder) {\r\n this.id = builder.id;\r\n this.orderDate = builder.orderDate;\r\n //this.orderLine = builder.orderLine;\r\n }", "@Override\r\n\tpublic Order create(Order order) {\r\n\t\ttry (Connection connection = JDBCUtils.getInstance().getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement();) {\r\n\t\t\tstatement.executeUpdate(String.format(\"INSERT INTO orders(customer_id) values(%d)\",\r\n\t\t\t\t\torder.getCustomer().getId()));\r\n\t\t\t\tHashMap<Item, Long> items = order.getItems();\r\n\t\t\t\tfor (Entry<Item, Long> entry : items.entrySet()) {\r\n\t\t\t\t\tstatement.executeUpdate(String.format(\"INSERT INTO orders_items(order_id, item_id, quantity) \"\r\n\t\t\t\t\t\t\t+ \"values(last_insert_id(), %d, %d)\", entry.getKey().getId(), entry.getValue()));\r\n\t\t\t\t}\r\n\t\t\treturn readLatest();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOGGER.debug(e);\r\n\t\t\tLOGGER.error(e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Order(String pRecipientName, int pFinalPrice, Timestamp pPickupTime, Pizza[] PizzaArray) {\n this.recipientName = pRecipientName;\n this.finalPrice = pFinalPrice;\n this.pickupTime = pPickupTime;\n this.pizzaArray = PizzaArray;\n }", "@Override\n public void addOrder(Order o) {\n orders.add(o);\n }", "@Override\n public void onMessage(final Message message) {\n final var objectMessage = (ObjectMessage) message;\n try {\n var orderMessage = (OrderMessage) objectMessage.getObject();\n var orders = createOrder.create(orderMessage);\n jmsContext.createProducer().send(orderCreatedBean, orders);\n } catch (JMSException e) {\n throw new RuntimeException(e);\n }\n }", "public Event(){\n \n }", "public Order(int orderID, int customerID, Date orderDate) {\n this(orderID, customerID, orderDate, null);\n }", "@Test(dependsOnMethods = \"checkSiteVersion\")\n public void createNewOrder() {\n actions.openRandomProduct();\n\n // save product parameters\n actions.saveProductParameters();\n\n // add product to Cart and validate product information in the Cart\n actions.addToCart();\n actions.goToCart();\n actions.validateProductInfo();\n\n // proceed to order creation, fill required information\n actions.proceedToOrderCreation();\n\n // place new order and validate order summary\n\n // check updated In Stock value\n }", "public OrderExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public static Event createEntity(EntityManager em) {\n Event event = new Event()\n .name(DEFAULT_NAME)\n .gpx(DEFAULT_GPX)\n .gpxContentType(DEFAULT_GPX_CONTENT_TYPE)\n .kmRoute(DEFAULT_KM_ROUTE)\n .timeRoute(DEFAULT_TIME_ROUTE)\n .date(DEFAULT_DATE)\n .descripction(DEFAULT_DESCRIPCTION)\n .observacionsPrev(DEFAULT_OBSERVACIONS_PREV);\n return event;\n }", "public void placeOrder(TradeOrder order) {\r\n\t\tString msg = \"New order: \";\r\n\t\tif (order.isBuy()) {\r\n\t\t\tbuy.add(order);\r\n\t\t\tmsg += \"Buy \";\r\n\r\n\t\t}\r\n\r\n\t\tif (order.isSell()) {\r\n\t\t\tsell.add(order);\r\n\t\t\tmsg += \"Sell \";\r\n\t\t}\r\n\r\n\t\tmsg += this.getSymbol() + \" (\" + this.getName() + \")\";\r\n\t\tmsg += \"\\n\" + order.getShares() + \" shares at \";\r\n\r\n\t\tif (order.isLimit())\r\n\t\t\tmsg += money.format(order.getPrice());\r\n\t\telse\r\n\t\t\tmsg += \"market\";\r\n\t\tdayVolume += order.getShares();\r\n\t\torder.getTrader().receiveMessage(msg);\r\n\t\t\r\n\t}", "public ServiceEvent() {\n // eventSenderID and eventSenderClass are initialized by the OperatingSystem! \n }", "public static Product[] createOrder()\n {\n Order order = new Order();\n Random r = new Random();\n int x;\n order.orderNumber++;\n int itemCount = 1 + r.nextInt(50);\n order.orderContents = new Product[itemCount];\n for (x = 0 ; x < itemCount; x++){\n Product item = productMaker.generateProduct();\n order.orderContents[x] = item;\n }\n\n return order.orderContents;\n\n }", "public Order(Long order_id, boolean generateNumber) {\n this.order_id = order_id;\n if (generateNumber) {\n this.order_no = this.generateOrderNumber();\n }\n }" ]
[ "0.68660015", "0.6667074", "0.6662633", "0.6413399", "0.63988084", "0.6355712", "0.6348999", "0.6348652", "0.63121164", "0.6300884", "0.6254167", "0.6246286", "0.6211123", "0.6206202", "0.61862814", "0.6167329", "0.61619973", "0.6111616", "0.6093601", "0.609307", "0.6054559", "0.60483027", "0.60424674", "0.60424674", "0.6038732", "0.6014656", "0.6011993", "0.5973236", "0.5970299", "0.5968405", "0.59673685", "0.5946315", "0.59427375", "0.59175974", "0.59018624", "0.5893542", "0.58889836", "0.58889836", "0.5885956", "0.5880527", "0.58348453", "0.5827535", "0.5806462", "0.57963103", "0.57915604", "0.57880497", "0.5785638", "0.57518804", "0.57127964", "0.5705508", "0.5690363", "0.5687509", "0.56824374", "0.5676282", "0.56710684", "0.5669277", "0.5662532", "0.5660342", "0.5653599", "0.56525266", "0.56521505", "0.56272346", "0.5622847", "0.56148803", "0.5610635", "0.5602474", "0.5601032", "0.56003076", "0.55759114", "0.5573049", "0.5568722", "0.5564168", "0.5557922", "0.5554037", "0.5547125", "0.5544725", "0.5540702", "0.55328095", "0.55303395", "0.5524435", "0.5522099", "0.55202013", "0.5520146", "0.5516955", "0.55140656", "0.5511165", "0.5508926", "0.5502896", "0.5498086", "0.54963654", "0.5490829", "0.54825723", "0.5478226", "0.5474616", "0.5462601", "0.54612476", "0.5449706", "0.54490143", "0.54440486", "0.5443928" ]
0.5907683
34
Gets the API name.
public String getAPIName() { return apiName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getApiName();", "public String getAPIClassName()\n {\n return _apiClass.getName();\n }", "public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }", "public String getAPIManagerName()\n {\n return apiManagerName;\n }", "String getWebhookName();", "String getSdkName();", "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "public String getName(){\n\t\tif(name==null) return webserviceUrl;\n\t\treturn name;\n\t}", "@Override\n public String getApiWrapperModuleName() {\n List<String> names = Splitter.on(\".\").splitToList(packageName);\n return names.get(0);\n }", "@ApiModelProperty(value = \"String matching the name of the application\")\n public String getName() {\n return name;\n }", "public static String getApiName(String path) {\r\n\t\tBuffer buffer = jEdit.openTemporary(jEdit.getActiveView(), path, \"index.html\", false);\r\n\t\tif (buffer == null || buffer.isNewFile()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tint start = -1, end = -1;\r\n\t\tfor (int i = 0; i<buffer.getLineCount(); i++) {\r\n\t\t\tString line = buffer.getLineText(i).toLowerCase();\r\n\t\t\tint j = line.indexOf(\"<title>\");\r\n\t\t\tif (start == -1 && j != -1) {\r\n\t\t\t\tstart = buffer.getLineStartOffset(i)+j+7;\r\n\t\t\t}\r\n\t\t\tj = line.indexOf(\"</title>\");\r\n\t\t\tif (start != -1 && end == -1 && j != -1) {\r\n\t\t\t\tend = buffer.getLineStartOffset(i)+j;\r\n\t\t\t}\r\n\t\t\tif (start != -1 && end != -1) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn buffer.getText(start, end-start).trim();\r\n\t}", "public java.lang.String getName();", "public String getName() {\n return Utility.getInstance().getPackageName();\n }", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.9007122", "0.70750636", "0.6846226", "0.6783389", "0.66736865", "0.66437757", "0.66289485", "0.6568499", "0.6528519", "0.6514007", "0.6482302", "0.64792985", "0.6446275", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953" ]
0.8356251
1
Gets the API name.
public static OrderEvent fromAPIName(String apiName) { for (OrderEvent event : values()) { if (event.getAPIName().equals(apiName.trim())) { return event; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getApiName();", "public String getAPIName() {\r\n return apiName;\r\n }", "public String getAPIClassName()\n {\n return _apiClass.getName();\n }", "public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }", "public String getAPIManagerName()\n {\n return apiManagerName;\n }", "String getWebhookName();", "String getSdkName();", "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "public String getName(){\n\t\tif(name==null) return webserviceUrl;\n\t\treturn name;\n\t}", "@Override\n public String getApiWrapperModuleName() {\n List<String> names = Splitter.on(\".\").splitToList(packageName);\n return names.get(0);\n }", "@ApiModelProperty(value = \"String matching the name of the application\")\n public String getName() {\n return name;\n }", "public static String getApiName(String path) {\r\n\t\tBuffer buffer = jEdit.openTemporary(jEdit.getActiveView(), path, \"index.html\", false);\r\n\t\tif (buffer == null || buffer.isNewFile()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tint start = -1, end = -1;\r\n\t\tfor (int i = 0; i<buffer.getLineCount(); i++) {\r\n\t\t\tString line = buffer.getLineText(i).toLowerCase();\r\n\t\t\tint j = line.indexOf(\"<title>\");\r\n\t\t\tif (start == -1 && j != -1) {\r\n\t\t\t\tstart = buffer.getLineStartOffset(i)+j+7;\r\n\t\t\t}\r\n\t\t\tj = line.indexOf(\"</title>\");\r\n\t\t\tif (start != -1 && end == -1 && j != -1) {\r\n\t\t\t\tend = buffer.getLineStartOffset(i)+j;\r\n\t\t\t}\r\n\t\t\tif (start != -1 && end != -1) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn buffer.getText(start, end-start).trim();\r\n\t}", "public java.lang.String getName();", "public String getName() {\n return Utility.getInstance().getPackageName();\n }", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.9007122", "0.8356251", "0.70750636", "0.6846226", "0.6783389", "0.66736865", "0.66437757", "0.66289485", "0.6568499", "0.6528519", "0.6514007", "0.6482302", "0.64792985", "0.6446275", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953", "0.6439953" ]
0.0
-1
Created by Bruce Lee on 2017/7/22.
public interface ISearchService { public static final String cacheName = "searchService"; String splitGoodsName(String goodsName); public List<Goods> sortByPrice(List<Goods> goodsList, boolean flag); public List<Goods> sortByTime(List<Goods> goodsList, boolean flag); public List<Goods> sortBySales(List<Goods> goodsList, boolean flag); List<Goods> getGoodsByWord(String goodsName); List<Goods> ascByPrice(String goodsName); List<Goods> ascBySales(String goodsName); List<Goods> ascByCreateTime(String goodsName); List<Goods> descByPrice(String goodsName); List<Goods> descBySales(String goodsName); List<Goods> descByCreateTime(String goodsName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@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 final void mo51373a() {\n }", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void init() {}", "@Override public int describeContents() { return 0; }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private void init() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\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}", "Consumable() {\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\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 mo4359a() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void jugar() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n\t\tpublic void init() {\n\t\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 public int getOrder() {\n return 4;\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void method_4270() {}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}" ]
[ "0.58261883", "0.5681645", "0.56105745", "0.5593831", "0.5546186", "0.5533506", "0.55118847", "0.5497763", "0.5497763", "0.5477331", "0.54365444", "0.5418789", "0.53854346", "0.5384535", "0.5369037", "0.53528833", "0.532524", "0.53166556", "0.5295698", "0.52955997", "0.5291945", "0.52899605", "0.5285548", "0.5285548", "0.5285548", "0.5285548", "0.5285548", "0.5285548", "0.52807784", "0.52745456", "0.5272173", "0.5272173", "0.5272173", "0.5272173", "0.5272173", "0.5264127", "0.52591854", "0.52484274", "0.524751", "0.52413243", "0.52274984", "0.5222647", "0.5220069", "0.5218254", "0.5213786", "0.5205673", "0.5205673", "0.5194914", "0.5183111", "0.51826483", "0.51819557", "0.5178298", "0.5164207", "0.5164207", "0.5164207", "0.5151821", "0.51511115", "0.5148145", "0.51413524", "0.5138802", "0.51378447", "0.5130321", "0.5130316", "0.5123059", "0.5123059", "0.5120098", "0.5120098", "0.5120098", "0.5111291", "0.5110712", "0.5105902", "0.5104827", "0.5100376", "0.50889313", "0.50889313", "0.50889313", "0.5081723", "0.5078602", "0.5077998", "0.5075859", "0.5067068", "0.50651777", "0.5062516", "0.50621176", "0.50621176", "0.50621176", "0.505407", "0.5051774", "0.5051774", "0.5051774", "0.5051774", "0.5051774", "0.5051774", "0.5051774", "0.5050726", "0.5045796", "0.50455767", "0.5045466", "0.50351894", "0.5034789", "0.5034789" ]
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(true); String id = (String) session.getAttribute("id");//ici la valeur de la session va dans id if (id == null) { sc.getRequestDispatcher("/connexion.jsp").forward(request, response); //si l'authentification n'a pas encore eu lieu, on renvoie sur la page connexion.html; dont l'action fait fonctionner le servlet sauthentifier return; } else{ sc.getRequestDispatcher("/emprunter.jsp").forward(request, response); } response.setContentType("text/html"); // on pourra générer ca dans le code jsp en entête PrintWriter p = response.getWriter(); p.println("<DOCTYPE html>"); p.println("<html>"); p.println("<head>"); p.println("</head>"); p.println("<body>"); p.println("<h1>Page pour Emprunter</h1>"); p.println("</body>"); p.println("</html>"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "public Result get(Get get) throws IOException;", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\npublic void get(String url) {\n\t\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}", "@NonNull\n public String getAction() {\n return \"GET\";\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }", "@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }", "public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }", "public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}", "@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}", "public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}" ]
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234", "0.6754993", "0.6754993", "0.67394847", "0.6719924", "0.6716244", "0.67054695", "0.67054695", "0.67012346", "0.6684415", "0.6676695", "0.6675696", "0.6675696", "0.66747975", "0.66747975", "0.6669016", "0.66621476", "0.66621476", "0.66476154", "0.66365504", "0.6615004", "0.66130257", "0.6604073", "0.6570195", "0.6551141", "0.65378064", "0.6536579", "0.65357745", "0.64957607", "0.64672184", "0.6453189", "0.6450501", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.64067316", "0.6395873", "0.6379907", "0.63737476", "0.636021", "0.6356937", "0.63410467", "0.6309468", "0.630619", "0.630263", "0.63014317", "0.6283933", "0.62738425", "0.62680805", "0.62585783", "0.62553537", "0.6249043", "0.62457556", "0.6239428", "0.6239428", "0.62376446", "0.62359244", "0.6215947", "0.62125194", "0.6207376", "0.62067443", "0.6204527", "0.6200444", "0.6199078", "0.61876005", "0.6182614", "0.61762017", "0.61755335", "0.61716276", "0.6170575", "0.6170397", "0.616901" ]
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }" ]
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", "0.85282224", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8516995", "0.8512296", "0.8511239", "0.8510324", "0.84964365", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599" ]
0.0
-1
Verify the token that it is actually allowed to start a benchmark TODO: go to database, get groupname
@Override public void createNewBenchmark(BenchmarkConfiguration request, StreamObserver<Benchmark> responseObserver) { String token = request.getToken(); //Only a certain configuration for the batchsize is allowed, check if this is allowed //TODO: precompute the batchsizes int batchSize = request.getBatchSize(); if(batchSize > 20_000) { Logger.info("batchsize to large: " + request.getToken()); Status status = Status.FAILED_PRECONDITION.withDescription("batchsize to large"); responseObserver.onError(status.asException()); responseObserver.onCompleted(); return; } try { if(!q.checkIfGroupExists(token)) { Status status = Status.FAILED_PRECONDITION.withDescription("token invalid"); responseObserver.onError(status.asException()); responseObserver.onCompleted(); return; } } catch (SQLException throwables) { errorCounter.inc(); Status status = Status.INTERNAL.withDescription("database offline - plz. inform the challenge organizers"); responseObserver.onError(status.asException()); responseObserver.onCompleted(); return; } batchSizeHistogram.observe(batchSize); if(request.getQueriesList().size() < 1) { Logger.info("no query selected: " + request.getToken()); Status status = Status.FAILED_PRECONDITION.withDescription("no query selected"); responseObserver.onError(status.asException()); responseObserver.onCompleted(); return; } if(!isValid(request.getBenchmarkType())) { Logger.info("different BenchmarkType set: " + request.getBenchmarkType()); Status status = Status.FAILED_PRECONDITION.withDescription("unsupported benchmarkType"); responseObserver.onError(status.asException()); responseObserver.onCompleted(); return; } BenchmarkType bt = BenchmarkType.Test; if(request.getBenchmarkType().equalsIgnoreCase("test")) { bt = BenchmarkType.Test; }else if (request.getBenchmarkType().equalsIgnoreCase("verification")) { bt = BenchmarkType.Verification; } else if (request.getBenchmarkType().equalsIgnoreCase("evaluation")){ bt = BenchmarkType.Evaluation; } if(bt == BenchmarkType.Evaluation && batchSize != 10_000) { errorCounter.inc(); Status status = Status.FAILED_PRECONDITION.withDescription("Evaluation is only possible with batch size == 10_000"); responseObserver.onError(status.asException()); responseObserver.onCompleted(); return; } //Save this benchmarkname to database String benchmarkName = request.getBenchmarkName(); long benchmarkId = Math.abs(random.nextLong()); try { UUID groupId = q.getGroupIdFromToken(token); q.insertBenchmarkStarted(benchmarkId, groupId, benchmarkName, batchSize, bt); } catch (SQLException throwables) { throwables.printStackTrace(); errorCounter.inc(); Status status = Status.FAILED_PRECONDITION.withDescription("plz. inform the challenge organisers - database not reachable"); responseObserver.onError(status.asException()); responseObserver.onCompleted(); return; } BenchmarkState bms = new BenchmarkState(this.dbInserter); bms.setToken(token); bms.setBenchmarkId(benchmarkId); bms.setToken(token); bms.setBatchSize(batchSize); bms.setBenchmarkType(bt); bms.setBenchmarkName(benchmarkName); bms.setQ1(request.getQueriesList().contains(BenchmarkConfiguration.Query.Q1)); bms.setQ2(request.getQueriesList().contains(BenchmarkConfiguration.Query.Q2)); switch(bt) { case Test: case Verification: bms.setDatasource(ad.newDataSource(bt, batchSize)); break; case Evaluation: Instant stopTime = Instant.now().plus(durationEvaluationMinutes, ChronoUnit.MINUTES); bms.setDatasource(this.inMemoryAd.getIterator(stopTime)); break; } Logger.info("Ready for benchmark: " + bms.toString()); this.benchmark.put(benchmarkId, bms); Benchmark bm = Benchmark.newBuilder() .setId(benchmarkId) .build(); responseObserver.onNext(bm); responseObserver.onCompleted(); createNewBenchmarkCounter.inc(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkToken(String token) throws InvalidTokenException;", "@Test\r\n\tpublic void TestvalidateToken() {\r\n\t\tlog.info(env.getProperty(\"log.start\"));\r\n\t\tudetails = new User(\"admin\", \"admin\", new ArrayList<>());\r\n\t\tString generateToken = jwtutil.generateToken(udetails);\r\n\t\tBoolean validateToken = jwtutil.validateToken(generateToken);\r\n\t\tassertEquals(true, validateToken);\r\n\t\tlog.info(env.getProperty(\"log.end\"));\r\n\t}", "@Test\n public void testValidToken() {\n try {\n int coachId = authBO.getUserIdAndValidateToken(\"thisisaworkingtoken\");\n Assert.assertTrue(coachId == 1);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "@Test\n public void tokenTest() {\n // TODO: test token\n }", "@Test\n public void tokenTest() {\n // TODO: test token\n }", "int getTokenStart();", "protected void validateToken() {\n\n authToken = preferences.getString(getString(R.string.auth_token), \"\");\n saplynService = new SaplynService(preferences.getInt(debugLvl, -1), authToken);\n\n // Check if user already authenticated\n if (authToken.equals(\"\")) {\n Intent intent = new Intent(HomeActivity.this, AuthenticationActivity.class);\n startActivityForResult(intent, 0);\n }\n else {\n populateUser();\n }\n }", "protected boolean getStravaCheckToken()\n {\n return true;\n }", "protected void checkToken(){\n DBManager dao = new DBManager(appContext);\n dao= dao.open();\n Cursor c = dao.selectionner();\n if (c.getCount()>0) {\n System.out.println(\"Base activity token:\"+c.getCount());\n System.out.println(\"Base activity token:\"+c.getString(0));\n Intent main =new Intent(this, SplashScreenActivity.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(main);\n } else {\n System.out.println(\"No token Found\");\n Intent main = new Intent(this, LoginActivity.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(main);\n }\n }", "@Test\n\tpublic void getTokenTest() {\n\t}", "public boolean isTokenValid(String actionUrl, String fuseaction, String displayAction, String reqToken)\r\n\t\t\tthrows AAException\r\n\t{\r\n\t\t// when first use this method, init blackList cache data.\r\n\t\tif (m_CSRFBlackList.size() == 0) \r\n\t\t{\r\n//\t\t\tthis.initCSRFBlackListCache(NEED_VALIDATE);\r\n\t\t\tthis.initCSRFBlackListFromFileCache();\r\n\t\t}\r\n\r\n\t\tboolean flag = Boolean.TRUE;\r\n\t\tif (NEED_VALIDATE.equals(SystemConfigCacheHelper.getInstance().getCSRFBlackListCache(\r\n\t\t\tactionUrl + \"_\" + fuseaction + \"_\" + displayAction)))\r\n\t\t{\r\n\t\t\t// validate token\r\n\t\t\tif (!tokensManager.isTokenExistAndRemove(reqToken))\r\n\t\t\t{\r\n\t\t\t\tflag = Boolean.FALSE;\r\n\t\t\t\tlogger.error(\"CSRF token validate failed, url: \" + actionUrl + \" fuseaction: \" + fuseaction\r\n\t\t\t\t\t\t+ \" displayAction: \" + displayAction);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn flag;\r\n\t}", "private boolean isIllegalTokenCollectionForRuleOne(int elapsedTimeInSeconds) {\n int interval = elapsedTimeInSeconds / 10;\n int intervalModTwo = interval % 2;\n return intervalModTwo == 0;\n }", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "@Test\r\n\tpublic void TestvalidateTokenWithuserId() {\r\n\t\tlog.info(env.getProperty(\"log.start\"));\r\n\t\tudetails = new User(\"admin\", \"admin\", new ArrayList<>());\r\n\t\tString generateToken = jwtutil.generateToken(udetails);\r\n\t\tBoolean validateToken = jwtutil.validateToken(generateToken, udetails);\r\n\t\tassertEquals(true, validateToken);\r\n\t\tlog.info(env.getProperty(\"log.end\"));\r\n\r\n\t}", "private boolean validateToken(String token, String user) {\n System.out.println(\"Userid is: \" + user);\n System.out.println(\"The token is \" + token);\n return user.equals(Jwts.parser().setSigningKey(SIGNING_KEY).parseClaimsJws(token).getBody().getSubject());\n\n }", "@Test\r\n public void testGetAuthorisationToken() throws Exception {\r\n LOG.info(\"getAuthorisationToken\");\r\n TokenAuthorisation result = tmdb.getAuthorisationToken();\r\n assertFalse(\"Token is null\", result == null);\r\n assertTrue(\"Token is not valid\", result.getSuccess());\r\n LOG.info(result.toString());\r\n }", "public boolean validateUserToken(String login, String token) throws SQLException;", "public void validarToken() {\r\n\t\ttry {\r\n\t\t\tif (getToken() == null || getToken().trim().isEmpty())\r\n\t\t\t\tMensaje.crearMensajeWARN(\"Debe ingresar su token para continuar.\");\r\n\t\t\telse if (!mngRes.verificarTokenEstudiante(getEstudiante().getId(), getToken()))\r\n\t\t\t\tMensaje.crearMensajeWARN(\"Su token es incorrecto. Verifíquelo.\");\r\n\t\t\telse {\r\n\t\t\t\treserva = mngRes.buscarReservaPorID(getDniEstudiante(), periodo.getPrdId());\r\n\t\t\t\tif (reserva != null && reserva.getResEstado().equals(Funciones.estadoFinalizado))\r\n\t\t\t\t\tMensaje.crearMensajeWARN(\"Usted ya posee una reserva finalizada:\");\r\n\t\t\t\telse {\r\n\t\t\t\t\ttokenOk = true;\r\n\t\t\t\t\tmayorEdad = Funciones.mayorDeEdad(getEstudiante().getMatFechaNacimiento());\r\n\t\t\t\t\tcargarSitiosLibres();\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('dlgtoken').hide();\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetToken(\"\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tMensaje.crearMensajeERROR(\"Error al validar token: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean isTokenValid(String token) {\n\t\tLoginToken loginToken = getLoginTokenByToken(token);\n\t\tif (loginToken != null) {\n\t\t\tDate createTime = loginToken.getCreateTime();\n\t\t\tDate current = new Date();\n\t\t\tSystem.out.println(\"过了:\"+Math.abs(current.getTime() - createTime.getTime()));\n\t\t\tSystem.out.println(\"过了:\"+Math.abs(current.getTime() - createTime.getTime()) / (1000 *60));\n\t\t\tif (Math.abs(current.getTime() - createTime.getTime()) / (1000 * 60) >= 60) {\n\t\t\t\tloginToken.setStatus(Constant.LOGIN_TOKEN_STATUS_INVALID);\n\t\t\t\tloginTokenMapper.updateByPrimaryKey(loginToken);\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tloginToken.setCreateTime(current);\n\t\t\t\tloginTokenMapper.updateByPrimaryKey(loginToken);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void mpanNameErrorMsgValidation(){\t\t\t \n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verify the functionality of Supply field and its appropriate error messages\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRGasUserforsingleMeter\");\n\tnew SubmitMeterReadAction()\n\t.openSMRpage(\"Electricity\")\n\t.ValidatempanErrormsg(smrProfile);\t\t\t\n}", "public abstract boolean validateAuthToken(String username , String authToken);", "@Test\n public void uidTokenTest() {\n // TODO: test uidToken\n }", "@Test\n public void uidTokenTest() {\n // TODO: test uidToken\n }", "@POST\n\t @Produces(\"application/json\")\n\t @Path(\"/validateToken\")\n\t public Response validateToken(@HeaderParam(\"Authorization\") String token){\n\t\t String result=\"\";\n\t\t String Role=\"Visitor\";\n\t\t boolean isValid=false;\n\t\t TokenFactory tokens= listBook.tokens;\n\t\t JSONObject jsonObject= new JSONObject(); \n\t\t System.out.println(token);\n\t\t JSONObject verifyToken =tokens.tokenConsume(token);\n\t\t if(verifyToken.length()>1){\n\t\t\t\t try {\n\t\t\t\t\tif(verifyToken.getInt(\"ID\")>0){\n\t\t\t\t\t\tisValid=true;\n\t\t\t\t\t\tHashMap<String,String> memberData = new HashMap<String,String>();\n\t\t\t\t\t\tmemberData.put(\"ID_Member\", verifyToken.getInt(\"ID\")+\"\");\n\t\t\t\t\t\tmemberData.put(\"Role\", verifyToken.getString(\"Role\")); \n\t\t\t\t\t\tif(retrieveMember(memberData).length()>0){\n\t\t\t\t\t\t\tRole=verifyToken.getString(\"Role\");\n\t\t\t\t\t\t}\n\t\t\t\t\t }\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t }\n\t\t\t \t\t\t \n\t\t\ttry {\n\t\t\t\tjsonObject.put(\"isValid\", isValid);\n\t\t\t\tjsonObject.put(\"Role\", Role);\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tresult=jsonObject+\"\";\n\t\t\treturn listBook.makeCORS(Response.status(200), result);\t\n \t }", "public void testGetSessionToken() throws Exception {\r\n LOG.info(\"getSessionToken\");\r\n TokenAuthorisation token = tmdb.getAuthorisationToken();\r\n assertFalse(\"Token is null\", token == null);\r\n assertTrue(\"Token is not valid\", token.getSuccess());\r\n LOG.info(token.toString());\r\n \r\n TokenSession result = tmdb.getSessionToken(token);\r\n assertFalse(\"Session token is null\", result == null);\r\n assertTrue(\"Session token is not valid\", result.getSuccess());\r\n LOG.info(result.toString());\r\n }", "@Test\r\n\tpublic void TestvalidateTokenWithUserIdFalse() {\r\n\t\tlog.info(env.getProperty(\"log.start\"));\r\n\t\tudetails = new User(\"admin\", \"admin\", new ArrayList<>());\r\n\t\tUserDetails user1 = new User(\"admin1\", \"admin1\", new ArrayList<>());\r\n\t\tString generateToken = jwtutil.generateToken(udetails);\r\n\t\tBoolean validateToken = jwtutil.validateToken(generateToken, user1);\r\n\t\tassertEquals(false, validateToken);\r\n\t\tlog.info(env.getProperty(\"log.end\"));\r\n\t}", "@BeforeAll\n\tstatic void TM_RF() {\n\t\tpassword = \"Stardust\";\n\t\ttokenManager = new TokenManager();\n\n\t\t// this assertion gives no throws, so we commented it\n\t\t//Assertions.assertThrows(TokenManagementException.class, () -> tm.readTokenRequestFromJSON(filePath));\n\t}", "@Test\r\n public void testGetGuestSessionToken() throws Exception {\r\n LOG.info(\"getGuestSessionToken\");\r\n TokenSession result = tmdb.getGuestSessionToken();\r\n \r\n assertTrue(\"Failed to get guest session\", result.getSuccess());\r\n }", "@Override\n public boolean isTokenValid(CrUser user, String token) {\n boolean result = false;\n if (user.getToken().equalsIgnoreCase(token)) {\n Date currentTime = new Date();\n if ((currentTime.getTime() - user.getTokenUpdateTime().getTime()) <= 1800000) {\n user.setTokenUpdateTime(currentTime);\n result = true;\n }\n }\n return result;\n }", "public boolean checkToken(BrewFindToken tok) {\n\t\t\n\t\t// The 'token' field on BrewFindToken contains the username base64 encoded\n\t\tString uname = Base64.decodeAsString(tok.token);\n\t\t\n\t\t// Make sure the user exists\n\t\tUser u = findUser(uname);\n\t\tif(u == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn checkToken(tok, u);\n\t\t\n\t}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void ValidateSearchTermError()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify the functionality of Search term field and its appropriate error message\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersite\");\n\tnew SubmitMeterReadAction()\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .searchByInvalidata();\n \n}", "boolean tokenCanStart(Token token)\r\n {\r\n\r\n int type = token.getType();\r\n switch (type) {\r\n case MExprANTLRParserTokenTypes.NOT:\r\n case MExprANTLRParserTokenTypes.PLUS:\r\n case MExprANTLRParserTokenTypes.MINUS:\r\n case MExprANTLRParserTokenTypes.PLUSPLUS:\r\n case MExprANTLRParserTokenTypes.MINUSMINUS:\r\n case MExprANTLRParserTokenTypes.LBRACE:\r\n case MExprANTLRParserTokenTypes.LPAREN:\r\n case MExprANTLRParserTokenTypes.INT:\r\n case MExprANTLRParserTokenTypes.REAL:\r\n case MExprANTLRParserTokenTypes.ID:\r\n case MExprANTLRParserTokenTypes.STRING:\r\n case MExprANTLRParserTokenTypes.BLANK1:\r\n case MExprANTLRParserTokenTypes.IDBLANK1:\r\n case MExprANTLRParserTokenTypes.BLANKID1:\r\n case MExprANTLRParserTokenTypes.IDBLANKID1:\r\n case MExprANTLRParserTokenTypes.BLANK2:\r\n case MExprANTLRParserTokenTypes.IDBLANK2:\r\n case MExprANTLRParserTokenTypes.BLANKID2:\r\n case MExprANTLRParserTokenTypes.IDBLANKID2:\r\n case MExprANTLRParserTokenTypes.BLANK3:\r\n case MExprANTLRParserTokenTypes.IDBLANK3:\r\n case MExprANTLRParserTokenTypes.BLANKID3:\r\n case MExprANTLRParserTokenTypes.IDBLANKID3:\r\n case MExprANTLRParserTokenTypes.SLOT:\r\n case MExprANTLRParserTokenTypes.TYPESETEXPR:\r\n case MExprANTLRParserTokenTypes.PERCENT:\r\n case MExprANTLRParserTokenTypes.PERCENTNUMBER:\r\n case MExprANTLRParserTokenTypes.GET:\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyMorethanMaximumMeter()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether appropriate error message is getting displayed when Number of meters more than maximum\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMeter11\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .SearchByAccoutnNumber(smrProfile)\n\t.VerifyNumberofmetersmorethanmaximum();\n \n}", "@Test\r\n public void test() {\r\n Owner owner = new Owner();\r\n owner.setOauthToken(\"CAACEdEose0cBAMCKHcqSEOcS5O40e4co26HaL6YyEtM7PZAUlPSSDbIca80wF2w3G9B43ZCAx8vojAQKfeyk8ZAapSjv5ala0FPAawudbeNPpFMgyGCDmR0bEhNUuj9gbRjKHQqvVt28DUegx6uAVtMy5PYGhoFSYHstHBtt8Hby7wp2cIczDeZAiuoKe0L6qbGJnFRHqzO87pyZBEhPDpbAZBWjrtCyQZD\");\r\n owner.setFacebookID(\"1492826064306740\");\r\n\r\n MonitorRunner runner = new MonitorRunner(owner);\r\n //runner.run();\r\n }", "private void checkAuthSessionToken() {\n val auth = config.getString(\"authSessionToken\");\n\n checkArgument(auth.length() > 10, \"auth string (sessionToken) length is less than or equal to 10!\");\n }", "public void checkToken(Token token) {\n if(keywordHashTable.containsKey(token.getTokenInstance()))\n token.setTokenID(keywordHashTable.get(token.getTokenInstance()));\n }", "@Test\n public void when_token_has_no_prefix_then_user_does_not_get_authentication() throws ServletException, IOException {\n test(\"eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.hZnl5amPk_I3tb4O-Otci_5XZdVWhPlFyVRvcqSwnDo_srcysDvhhKOD01DigPK1lJvTSTolyUgKGtpLqMfRDXQlekRsF4XhAjYZTmcynf-C-6wO5EI4wYewLNKFGGJzHAknMgotJFjDi_NCVSjHsW3a10nTao1lB82FRS305T226Q0VqNVJVWhE4G0JQvi2TssRtCxYTqzXVt22iDKkXeZJARZ1paXHGV5Kd1CljcZtkNZYIGcwnj65gvuCwohbkIxAnhZMJXCLaVvHqv9l-AAUV7esZvkQR1IpwBAiDQJh4qxPjFGylyXrHMqh5NlT_pWL2ZoULWTg_TJjMO9TuQ\",\n null);\n }", "private boolean isValidToken(String authHeader) {\n AuthorisedTokenData token = authorisedTokensServices.getAuthorisedTokenByToken(authHeader);\n\n return token != null && token.getToken().equals(authHeader);\n }", "@Override\n public boolean tokenIsValid(String token) {\n return DATABASE.getTokens().stream()\n .anyMatch(currentToken -> currentToken.equals(token));\n }", "@Test\n public void getTokenTest() {\n assertEquals(token, device.getToken());\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void TitileFieldErrorValidation(){\t\t\t \n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verify the functionality of Title drop down and its appropriate error messages\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRElectricityUserforsingleMeter\");\n\tnew SubmitMeterReadAction()\n\t.openSMRpage(\"Electricity\")\n\t.verifyAndValidateSMRTitleFieldContent(smrProfile); \n}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void ValidateImplausibleMeterRead()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether the customer can force submit the meter read by clicking Submit button in overlay\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersite\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .SearchByAccoutnNumber(smrProfile)\n .verifyImplausibleReadds(smrProfile);\n\n }", "private boolean verifyToken(final String token) {\n LOG.debug(token);\n if (!this.verificationToken.equals(token)) {\n LOG.error(Constants.VERIFICATION_TOKEN_INVALID);\n return false;\n }\n return true;\n }", "public static boolean isValidToken(final String token) {\n\t\treturn token != null && token.startsWith(BEARER_TOKEN_PREFIX);\n\t}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void readingGasErrorMsgValidation(){\t\t\t \n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verify functionality of Gas reading dials and its appropriate error messages for non SAP-ISU customer\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRGas\");\n\tnew SubmitMeterReadAction()\n\t.openSMRpage(\"Gas\")\n\t.validateGasreadingFiledErrormsg(smrProfile);\t\t\t\n}", "public boolean isTokenValide() {\n try {\n token = Save.defaultLoadString(Constants.PREF_TOKEN, getApplicationContext());\n if (token != null && !token.equals(\"\")) {\n if (token.equals(\"\"))\n return false;\n JWT jwt = new JWT(token);\n boolean isExpired = jwt.isExpired(0);\n return !isExpired;\n } else\n return false;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void readingElectricityErrorMsgValidation(){\t\t\t \n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verify the anonymous submit meter read page for error message validation\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRUser1\");\n\tnew SubmitMeterReadAction()\n\t.openSMRpage(\"Electricity\")\n\t.validateElectricityreadingFiledErrormsg(smrProfile);\t\t\t\n}", "private String prepareSecurityToken() {\r\n\t\tint time = ((int) System.currentTimeMillis() % SECURITY_TOKEN_TIMESTAMP_RANGE);\r\n\t\treturn String.valueOf(time + (new Random().nextLong() - SECURITY_TOKEN_TIMESTAMP_RANGE));\r\n\t}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyMeterByMeterpointreference()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether Single Search result is getting displayed while giving valid MPRN in search field\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRUserMultiMeters\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .searchByMeterpointreference(smrProfile)\n \t.enterGlobalMeterDials(smrProfile)\n\t.verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile);\n}", "@Test\n public void testStartRunWithNoRunName() {\n ArgumentCaptor<CreateRun> createRunArgument = ArgumentCaptor.forClass(CreateRun.class);\n MlflowContext mlflow = setupMlflowContext();\n mlflow.startRun();\n verify(mockClient).createRun(createRunArgument.capture());\n List<RunTag> tags = createRunArgument.getValue().getTagsList();\n Assert.assertFalse(\n tags.stream().anyMatch(tag -> tag.getKey().equals(MlflowTagConstants.RUN_NAME)));\n }", "public static boolean isFirstRun(Context context) {\n SharedPreferences sp = context.getSharedPreferences(SHARED_PREFERENCES_KEY, context.MODE_PRIVATE);\n return sp.getBoolean(IS_FIRST_TOKEN,true);\n }", "public boolean isTokenValid(String actionUrl, String fuseaction, String displayAction, String user,\r\n\t\t\tString reqToken, String isAddBlackList, String currentUrl, String refererUrl)\r\n\t{\r\n\t\tboolean flag = Boolean.TRUE;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// when first use this method, init blackList cache data.\r\n\t\t\tif (m_CSRFBlackList.size() == 0)\r\n\t\t\t{\r\n\t\t\t\tthis.initCSRFBlackListCache(null);\r\n//\t\t\t\tthis.initCSRFBlackListFromFileCache();\r\n\t\t\t}\r\n\r\n\t\t\t// get blackList from cache\r\n\t\t\tString flagStr = SystemConfigCacheHelper.getInstance().getCSRFBlackListCache(\r\n\t\t\t\tactionUrl + \"_\" + fuseaction + \"_\" + displayAction);\r\n\r\n\t\t\t// current URL not exists in blackList Cache\r\n\t\t\tif (flagStr == null)\r\n\t\t\t{\r\n\t\t\t\tCSRFBlackListService service = this.getCSRFBlackListService();\r\n\t\t\t\t// current URL exists in blackList database, add this record to cache\r\n\t\t\t\tif (service.isExistBlackList(actionUrl, fuseaction, displayAction, NEED_VALIDATE))\r\n\t\t\t\t{\r\n\t\t\t\t\tflagStr = NEED_VALIDATE;\r\n\t\t\t\t\tSystemConfigCacheHelper.getInstance().putCSRFBlackListCache(\r\n\t\t\t\t\t\tactionUrl + \"_\" + fuseaction + \"_\" + displayAction, NEED_VALIDATE);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// auto collect blackList path\r\n\t\t\t\t\tif (\"true\".equals(isAddBlackList))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// service.addBlackList(actionUrl, fuseaction, displayAction, user);\r\n\t\t\t\t\t\tservice.addBlackList(new CSRFBlackListModel(actionUrl, fuseaction, displayAction, user));\r\n\t\t\t\t\t\tSystemConfigCacheHelper.getInstance().putCSRFBlackListCache(\r\n\t\t\t\t\t\t\tactionUrl + \"_\" + fuseaction + \"_\" + displayAction, NEED_VALIDATE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// current URL not is blackList\r\n\t\t\t\t\t\tSystemConfigCacheHelper.getInstance().putCSRFBlackListCache(\r\n\t\t\t\t\t\t\tactionUrl + \"_\" + fuseaction + \"_\" + displayAction, NOT_NEED_VALIDATE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (NEED_VALIDATE.equals(flagStr))\r\n\t\t\t{\r\n\t\t\t\t// validate current URL token\r\n\t\t\t\tflag = tokensManager.isTokenExistAndRemove(reqToken);\r\n\r\n\t\t\t\t// auto update blackList validate status when token validate failed\r\n\t\t\t\tif (!flag)\r\n\t\t\t\t{\r\n\t\t\t\t\t this.getCSRFBlackListService().updateBlackListValidate(actionUrl, fuseaction, displayAction,\r\n\t\t\t\t\t\t user, NOT_NEED_VALIDATE, currentUrl, refererUrl);\r\n\t\t\t\t\t flag = Boolean.TRUE;\r\n\r\n\t\t\t\t\tlogger.error(\"CSRF token validate failed, url: \" + actionUrl + \" fuseaction: \" + fuseaction\r\n\t\t\t\t\t\t\t+ \" displayAction: \" + displayAction);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception re)\r\n\t\t{\r\n\t\t\tlogger.throwing(CSRFBlackListClient.class.getName(), \"isTokenValid\", re);\r\n\t\t\treturn Boolean.FALSE;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "private static void checkTokenName(String namedOutput) {\r\n\t\tif (namedOutput == null || namedOutput.length() == 0) {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Name cannot be NULL or emtpy\");\r\n\t\t}\r\n\t\tfor (char ch : namedOutput.toCharArray()) {\r\n\t\t\tif ((ch >= 'A') && (ch <= 'Z')) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif ((ch >= 'a') && (ch <= 'z')) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif ((ch >= '0') && (ch <= '9')) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Name cannot be have a '\" + ch + \"' char\");\r\n\t\t}\r\n\t}", "private boolean validateAccessToken(String clientId, String clientSecret) {\n log.info(\"Client Id:{} Client Secret:{}\", clientId, clientSecret);\n\n // Enable the Below code when the Introspection URL is ready to test\n /**\n * String auth = clientId + clientSecret; RestTemplate restTemplate = new RestTemplate();\n * HttpHeaders headers = new HttpHeaders(); headers.add(\"Content-Type\",\n * MediaType.APPLICATION_JSON_VALUE); headers.add(\"Authorization\", \"Basic \" +\n * Base64.getEncoder().encodeToString(auth.getBytes())); HttpEntity<String> request = new\n * HttpEntity<String>(headers);\n *\n * <p>log.info(\"Sending Token Intropsection request to Endpoint::::: {}\",\n * tokenIntrospectionURL); ResponseEntity<String> response =\n * restTemplate.exchange(tokenIntrospectionURL, HttpMethod.POST, request, String.class); *\n */\n return true;\n }", "@Test\n void shouldExpandTokenMacro() {\n WorkflowJob job = createPipelineWithWorkspaceFilesWithSuffix(\"checkstyle1.xml\", \"checkstyle2.xml\");\n\n configureToken(job, \"checkstyle1\");\n\n AnalysisResult baseline = scheduleBuildAndAssertStatus(job, Result.SUCCESS);\n verifyConsoleLog(baseline, 3, 0, 0);\n\n configureToken(job, \"checkstyle2\");\n\n AnalysisResult result = scheduleBuildAndAssertStatus(job, Result.SUCCESS);\n\n verifyConsoleLog(result, 4, 3, 2);\n }", "private void verifySingleTokens(String token){\n\t\t//verify normal codes\n\t\tif (token.equals(\"\")) {\n\t\t\treturn;\n\t\t}\n\t\tif (codingTable.hasCode(token)) {\n\t\t\tSystem.out.println(\"Keyword: \" + token);\n\t\t\tprogramInternalForm.addValues(codingTable.getValueForCode(token), null);\n\t\t\treturn;\n\t\t}\n\t\tif (isConstantToken(token)) {\n\t\t\tSystem.out.println(\"Constant: \" + token);\n\t\t\tsymbolTable.addValue(token);\n\t\t\tprogramInternalForm.addValues(codingTable.getValueForCode(CONSTANT), symbolTable.getPosition(token));\n\t\t\treturn;\n\t\t}\n\t\tif (isIdentifierToken(token)) {\n\t\t\tSystem.out.println(\"Identifier: \" + token);\n\t\t\tsymbolTable.addValue(token);\n\t\t\tprogramInternalForm.addValues(codingTable.getValueForCode(IDENTIFIER), symbolTable.getPosition(token));\n\t\t\treturn;\n\t\t}\n\n\t\tthrow new RuntimeException(\"Couldn't find a category for string '\" + token + \"'\");\n\t}", "private boolean tokenValido(TipoToken tipoToken) {\r\n Token token = colaDeTokens.poll();\r\n if (token.tipoToken.equals(tipoToken)) {\r\n return true;\r\n } else {\r\n System.out.println(\"Error: token no válido \" + token.valor);\r\n return false;\r\n }\r\n }", "public boolean validate(String securityToken, RequestMetadata requestMetadata);", "public boolean checkValidity(int api_key) throws ParseException{\n User user= getUser(api_key);\n //if user is hitting api first time then set start date = now\n if(user.getHitCount()==0){\n user.setStartDate(new Date());\n }\n //if user is allowed then increment the hit_count\n if(user.isUserAllowed(new Date())){\n user.setHitCount(user.getHitCount());\n return true;\n }\n else{\n return false;\n }\n \n }", "private void collectToken()\n {\n String token = FirebaseInstanceId.getInstance().getId();\n Log.d(\"MYTAG\", \"Firebase_token \" + token);\n }", "@Test\r\n\tpublic void TestgenerateToken() {\r\n\t\tlog.info(env.getProperty(\"log.start\"));\r\n\t\tudetails = new User(\"admin\", \"admin\", new ArrayList<>());\r\n\t\tString generateToken = jwtutil.generateToken(udetails);\r\n\t\tassertNotNull(generateToken);\r\n\t\tlog.info(env.getProperty(\"log.end\"));\r\n\t}", "public void setToken(java.lang.String param){\n localTokenTracker = true;\n \n this.localToken=param;\n \n\n }", "@VisibleForTesting\n protected boolean validateToken(EzSecurityToken token) {\n try {\n securityClient.validateReceivedToken(token);\n } catch (EzSecurityTokenException e) {\n logger.error(\"Token validation failed. \", e);\n throw new SecurityException(\"Token failed validation\");\n }\n\n String fromId = token.getValidity().getIssuedTo();\n String toId = token.getValidity().getIssuedFor();\n if (!fromId.equals(toId) && !fromId.equals(deployerSecurityId)) {\n throw new SecurityException(String.format(\n \"This call can only be made from Deployer (%s) or INS services. From: %s - To: %s\",\n deployerSecurityId, fromId, toId));\n }\n\n return true;\n }", "@Test\n public void parseToken() {\n }", "public static boolean hasRequestToken(Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\treturn prefs.getString(TWITTER_REQUEST_TOKEN, null)!= null;\n\t\t}", "public void alg_INIT(){\nBlock.value=false;\nTokenOut.value=false;\nSystem.out.println(\"init head, grant false, token true\");\n\n}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void billingCollectiveUptoAndAbove3Meters(){\n\tReport.createTestLogHeader(\"SubmitMeterRead\", \"Validates whether address displayed for particular meter is billing address for collective account for less than 3 meters\");\n\t SMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"MeterReadCollectiveAndElec\");\n\t new SubmitMeterReadAction()\n\t \t .BgbnavigateToLogin()\n\t .BgbloginDetails(smrProfile)\n\t .SubmitMeterreadManage(smrProfile)\n\t .smrCollectiveBilling(smrProfile);\n}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyAnonymousGasCustomer()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the anonymous SMR page for Gas customer\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRGasUserforsingleMeter\");\n new SubmitMeterReadAction()\n .openSMRpage(\"Gas\")\n .verifyServiceDeskCustomerGas(smrProfile); \n}", "@GetMapping(\"/validateToken\")\n\t@ApiOperation(value = \"Validate token\", notes = \"Validates token \", response = AuthenticationResponse.class)\n\tpublic AuthenticationResponse getValidity(\n\t\t\t@ApiParam(value = \"Token for validation\", required = true) @RequestHeader(\"Authorization\") final String token) {\n\t\tlog.info(\"Token Validation ----->{}\", token);\n\t\treturn validationService.validate(token);\n\t}", "private void errorCheck( Token token, String kind, String details ) {\n if( ! token.isKind( kind ) || ! token.getDetails().equals( details ) ) {\n System.out.println(\"Error: expected \" + token + \" to be kind=\" + kind + \" and details=\" + details );\n System.exit(1);\n }\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void siteNormalUptoAndAbove3Meters(){\n\tReport.createTestLogHeader(\"SubmitMeterRead\", \"Validates whether address displayed for particular meter is Site address for normal account for less than 3 meters\");\n\t SMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"MeterReadCollectiveAndElec\");\n\t new SubmitMeterReadAction()\n\t \t.BgbnavigateToLogin()\n\t .BgbloginDetails(smrProfile)\n\t .clickManageAccountLinkWithAccNo(smrProfile)\n\t .submitMeterReadLink(smrProfile)\n\t .smrNormalSite(smrProfile);\n}", "boolean hasStartGameRequest();", "public void alg_PASSTOKEN(){\nTokenOut.value=true;\nSystem.out.println(\"pass\");\n\n}", "public boolean checkKillToken()\r\n {\r\n return killNode;\r\n }", "int getTokenFinish();", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyMultiDialMetersearchBySSupplynumber()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"erify Global Meter Read For Gas Account\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersite\");\n\tnew SubmitMeterReadAction()\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .searchByAccountnumber(smrProfile)\n .enterMeterDialsGlobal(smrProfile)\n //.enterGlobalMeterDials(smrProfile)\n .verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile); \n}", "public TokenTest (String name)\r\n {\r\n super (name);\r\n /*\r\n * This constructor should not be modified. Any initialization code\r\n * should be placed in the setUp() method instead.\r\n */\r\n }", "public boolean validateToken(String token, String username) {\n\t\tString tokenUserName = getUsername(token);\n\t\treturn username.equals(tokenUserName) && !isTokenExpired(tokenUserName);\n\t}", "public Boolean checkToken(BrewFindToken tok, User u) {\n\t\tBrewFindToken uTok = u.getU_curToken();\t\n\t\tif(uTok == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\t\t\n\t\t// Check that the token matches\n\t\tif((tok.access == uTok.access) && (tok.stamp == uTok.stamp) && (tok.token.equals(uTok.token))) {\n\t\t\treturn true;\n\t\t}\n\t\t\t\t\n\t\treturn false;\n\t}", "boolean hasFirstToken();", "public String validateToken(HttpServletRequest request, HttpServletResponse response) {\n String[] cookieTokens = extractAndDecodeCookie(request, response);\n return validateToken(cookieTokens, request, response);\n }", "public Boolean validateToken(String token, UserDetails userDetails) {\n\t\tfinal String username = getUsernameFromToken(token);\n\t\treturn (username.equals(userDetails.getUsername())\n\t\t\t\t&& !isTokenExpired(token)\n\t\t\t\t&& activeTokens.getActiveTokens().contains(token));\n\t}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifySearchMeterByAcctno()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify multiple Search results are getting displayed while giving valid Account number in search field\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMeter11\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .SearchByAccoutnNumber(smrProfile)\n .enterMeterDials(smrProfile)\n //.enterGlobalMeterDials(smrProfile)\n\t.verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile);\n \n}", "private static void assertToken(StringTokenizer tokenizer, String token) {\n String realToken = tokenizer.nextToken();\n if (!realToken.equals(token))\n throw new IllegalArgumentException(\n \"Bad token \\\"\" + realToken + \"\\\", expected \\\"\" + token + \"\\\" instead\");\n }", "@Test\n void testGetAndSetToken() {\n isLockedRequest2.setToken(\"Pippin\");\n assertEquals(\"Pippin\", isLockedRequest2.getToken());\n }", "private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }", "@Override\n public void run() {\n\n try {\n token=null;\n token=getAccessGenToken(hand);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public boolean hasToken(){\n return (!clozerrtoken.isEmpty());\n }", "public static boolean checkSavedToken(Context context) {\n SharedPreferences preferences = context.getSharedPreferences(token_storage, 0);\n String storage_token = preferences.getString(\"token\", \"notoken\");\n\n if (!storage_token.equals(\"notoken\")) {\n Log.d(\"Service\", \"Using stored token\");\n header_token = \"Bearer \" + storage_token;\n isTokenPresent = true;\n bindToken();\n return true;\n }\n return false;\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void ValidateGlobalSearchField()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether error message is getting displayed when Drop down is not selected\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersite\");\n\tnew SubmitMeterReadAction()\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .VerifyAndValidateSMRSearchField(); \n}", "public static boolean validate(String submittedOTP, byte[] secret, int numDigits) throws GeneralSecurityException {\n Calendar currentDateTime = getCalendar();\n\n String generatedTOTP = TOTP.generateTOTP(new String(secret), numDigits);\n boolean result = generatedTOTP.equals(submittedOTP);\n\n if (!result) {\n // Step back time interval\n long timeInMilis = currentDateTime.getTimeInMillis();\n timeInMilis -= TIME_INTERVAL;\n\n String steps = \"0\";\n long T = (timeInMilis - TOTP.TIME_ZERO) / TOTP.TIME_SLICE_X;\n steps = Long.toHexString(T).toUpperCase();\n\n // Just get a 16 digit string\n while (steps.length() < 16)\n steps = \"0\" + steps;\n\n generatedTOTP = TOTP.generateTOTP(new String(secret), \"\" + steps, numDigits);\n result = generatedTOTP.equals(submittedOTP);\n }\n\n if (!result) {\n // Step ahead time interval\n long timeInMilis = currentDateTime.getTimeInMillis();\n timeInMilis += TIME_INTERVAL;\n\n String steps = \"0\";\n long T = (timeInMilis - TOTP.TIME_ZERO) / TOTP.TIME_SLICE_X;\n steps = Long.toHexString(T).toUpperCase();\n\n // Just get a 16 digit string\n while (steps.length() < 16)\n steps = \"0\" + steps;\n\n generatedTOTP = TOTP.generateTOTP(new String(secret), \"\" + steps, numDigits);\n result = generatedTOTP.equals(submittedOTP);\n }\n\n return result;\n }", "public String authByToken (String token){\n if (token.equals(\"ripcpsrlro3mfdjsaieoppsaa\")){\n return \"admin\";\n }\n else {\n Document query = new Document();\n query.put(\"token\", token);\n MongoCursor<Document> cursor = Security.find(query).iterator();\n if (cursor==null || !cursor.hasNext()) {\n System.out.println(\"here fails ! token used: \"+token);\n return \"none\";\n }\n else {\n Document c = cursor.next();\n String tnp = c.get(\"token\").toString();\n String admin = c.get(\"admin\").toString();\n if (tnp.equals(token)){\n if (admin.equals(\"true\")){\n return \"admin\";\n }\n else return \"user\";\n }\n else return \"none\";\n }\n //return \"none\";\n }\n }", "public JSONObject checkTokenIntegrity(String token){\n\t\t String result=\"\";\n\t\t String Role=\"Visitor\";\n\t\t int tokenID=0;\n\t\t boolean isValid=false;\n\t\t TokenFactory tokens= listBook.tokens;\n\t\t JSONObject jsonObject= new JSONObject(); \n\t\t System.out.println(token);\n\t\t JSONObject verifyToken =tokens.tokenConsume(token);\n\t\t //checks if the token consuming response is valid,if its valid it will validate its contents with the the database member entry\n\t\t if(verifyToken.length()>1){\n\t\t\t\t try {\n\t\t\t\t\tif(verifyToken.getInt(\"ID\")>0){\n\t\t\t\t\t\tisValid=true;\n\t\t\t\t\t\tHashMap<String,String> memberData = new HashMap<String,String>();\n\t\t\t\t\t\ttokenID= verifyToken.getInt(\"ID\");\n\t\t\t\t\t\tmemberData.put(\"ID_Member\", verifyToken.getInt(\"ID\")+\"\");\n\t\t\t\t\t\tmemberData.put(\"Role\", verifyToken.getString(\"Role\"));\n\t\t\t\t\t\tif(retrieveMember(memberData).length()>0){\n\t\t\t\t\t\t\ttokenID=verifyToken.getInt(\"ID\");\n\t\t\t\t\t\t\tRole=verifyToken.getString(\"Role\");\n\t\t\t\t\t\t}\n\t\t\t\t\t }\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t }\n\t\t\t \t\t\t \n\t\t\ttry {\n\t\t\t\tjsonObject.put(\"isValid\", isValid);\n\t\t\t\tjsonObject.put(\"ID\", tokenID);\n\t\t\t\tjsonObject.put(\"Role\", Role);\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn jsonObject;\n \t }", "boolean hasLoginapihitcount();", "public void processToken(String token) {\n \n // Create an int with an id of currentTokenLength and set it equal to the token.length()\n int currentTokenLength = token.length();\n processTokenHelper(currentTokenLength);\n\n /**\n * Create an int with an id of tokenLengthReps and set it equal to \n * tokenSizes.get(currentTokenLength);\n */\n int tokenLengthReps = tokenSizes.get(currentTokenLength);\n\n /**\n * Create an if statement that will determine if the tokenLength is \n * larger than the maximumSize int variable\n */\n if (tokenLengthReps > maximumSize) {\n maximumSize = tokenSizes.get(currentTokenLength);\n }\n }" ]
[ "0.5930345", "0.5921597", "0.59162474", "0.5727539", "0.5727539", "0.5582884", "0.5566401", "0.55481964", "0.5544808", "0.5418637", "0.54102963", "0.5374951", "0.53396744", "0.53396744", "0.53396744", "0.53396744", "0.53396744", "0.53396744", "0.53231144", "0.5244319", "0.5195714", "0.51330554", "0.5123956", "0.51130354", "0.51078343", "0.50570655", "0.5042646", "0.5042646", "0.503395", "0.50265384", "0.5021621", "0.5011843", "0.50068694", "0.5006837", "0.49853212", "0.4973305", "0.4971526", "0.49565178", "0.49513483", "0.49473396", "0.4926228", "0.49206635", "0.49131268", "0.49037024", "0.48938406", "0.488495", "0.48842758", "0.48656195", "0.48627144", "0.48463434", "0.48449883", "0.48314977", "0.48265386", "0.48259175", "0.48146713", "0.48106825", "0.4809575", "0.48060286", "0.4802742", "0.48017025", "0.4791248", "0.47785854", "0.47652674", "0.4757154", "0.47565123", "0.47546962", "0.47537443", "0.4748166", "0.4742201", "0.4738518", "0.4733265", "0.47313395", "0.4724603", "0.47230348", "0.4720451", "0.47125822", "0.47074175", "0.47059023", "0.47013703", "0.46990475", "0.46932748", "0.4685588", "0.4683228", "0.46823812", "0.467995", "0.46793553", "0.4672985", "0.4669175", "0.46639442", "0.4663345", "0.4655797", "0.46548238", "0.46532834", "0.4638008", "0.4637326", "0.4616666", "0.46109226", "0.46092892", "0.45951343", "0.45919007" ]
0.47886533
61
Stores an object of Page type into the data database.
public final int save(final Page page) throws DAOException { String query = "INSERT INTO pages (name, description, json) VALUES (?, ?,?)"; System.out.println("guardando mashup"); int result = 0; Connection con = null; PreparedStatement pstmt = null; try { con = JDBCDAOFactory.getConnection(); con.setAutoCommit(false); pstmt = con.prepareStatement(query); if (page.getName() != null) { pstmt.setString(1, page.getName()); } else { pstmt.setNull(1, Types.VARCHAR); } if (page.getDescription() != null) { pstmt.setString(2, page.getDescription()); } else { pstmt.setNull(2, Types.VARCHAR); } if (page.getDescription() != null) { pstmt.setString(3, page.getJson()); } else { pstmt.setNull(3, Types.VARCHAR); } result = pstmt.executeUpdate(); con.commit(); } catch (SQLException ex) { throw new DAOException(ex); } finally { DBUtils.closeStatement(pstmt); DBUtils.closeConnection(con); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void save(JournalPage page);", "public void savePage(int page_number) throws DBAppException, IOException{\n\t\tint page_index = getPageIndexInArrayList(page_number);\n\t\tPage pageToInsert = this.getPageByNumber(page_number);\n\t\tif (pages_loaded_is_changed.get(page_index).booleanValue() == false){\n\t\t\treturn;\n\t\t}\n\t\tpageToInsert.serializePage(this.table_name + \"-\" + page_number + \".ser\");\n//\t\tBoolean b = pages_loaded_is_changed.get(page_index);\n//\t\tb = new Boolean(false);\n\t\tpages_loaded_is_changed.set(page_index,new Boolean(false));\n\t}", "public synchronized void savePage(int pageId, String pageType, byte data[])\n\t\t{\n\t\t\tif (sessionIdentifier == null)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// only save page that has some data\n\t\t\tif (data != null)\n\t\t\t{\n\t\t\t\t// allocate window for page\n\t\t\t\tFileWindow window = getManager().createPageWindow(pageId, pageType, data.length);\n\n\t\t\t\tFileChannel channel = getFileChannel(true);\n\t\t\t\tif (channel != null)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// write the content\n\t\t\t\t\t\tchannel.write(ByteBuffer.wrap(data), window.getFilePartOffset());\n\t\t\t\t\t}\n\t\t\t\t\tcatch (IOException e)\n\t\t\t\t\t{\n\t\t\t\t\t\tlog.error(\"Error writing to a channel \" + channel, e);\n\t\t\t\t\t}\n\t\t\t\t\tfinally\n\t\t\t\t\t{\n\t\t\t\t\t\tIOUtils.closeQuietly(channel);\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\tlog.warn(\n\t\t\t\t\t\t\"Cannot save page with id '{}' because the data file cannot be opened.\",\n\t\t\t\t\t\tpageId);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "boolean put(PageId pageId, byte[] page);", "public void save() throws IOException {\n File f = new File(\"data/pages/\" + pageName + \".class\");\n if (!f.exists()) {\n if (!f.getParentFile().exists()) {\n if (f.getParentFile().mkdirs()) {\n f.createNewFile();\n }\n }\n }\n FileOutputStream fos = new FileOutputStream(f);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this);\n oos.flush();\n oos.close();\n }", "public void save() throws DBAppException, IOException{\n\t\tint numberOfPages = pages_loaded.size();\n\t\tfor (int i = 1; i <= numberOfPages; i++) {\n\t\t\tsavePage(i);\n\t\t}\n\t}", "@Override\r\n\tpublic void save(T t) {\n\t\tgetSession().save(t);\r\n\t}", "public void save(Object instance);", "@Override\n\tpublic void saveEntry(T t) {\n\t\tthis.hibernateTemplate.save(t);\n\t}", "public <E extends Writeable> void storeObject(String sql, E e);", "@Override\n\tpublic void persist(T obj) throws Exception {\n\t\t\n\t}", "@Override\n public void save(T element) {\n manager.persist(element);\n }", "@Override\n\tpublic void saveEntity(T t) {\n\t\tgetSession().save(t);\n\t}", "public void setPage(Page page) {this.page = page;}", "public void setPage(Page page) throws SQLException {\n\t\tif (page.getId() == -1) {\n\t\t\tpage.setId(upodDao.nextAvailableId(Table.PAGE));\n\t\t}\n\t\tupodDao.setPage(page);\n\t}", "public void save(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//session.save(obj);\n\t\tsession.persist(obj);\n\t}", "@Override\n\tpublic TypeDocument save(TypeDocument typeDocument) {\n\t\treturn typeDocumentRepository.save(typeDocument);\n\t}", "T save(T object);", "public void doSave(T objectToSave) throws SQLException;", "void savePost(Post post);", "public void setPage(Page page)\r\n {\r\n this.pageId = page.getId();\r\n }", "Type persistir(Type type);", "void save(Object entity);", "@Override\r\n\tpublic Visit save(Visit object) {\n\t\treturn super.save(object);\r\n\t}", "public interface IStoreable {\n void store(Good page);\n}", "public void saveAllAPagePage(List<APagePage> aPagePages) {\r\n\t\tappDao.makePersistenAll(aPagePages);\r\n\t}", "T save(T obj);", "T save(T t);", "public void setPage(Page page) {\n this.page=page;\n }", "public void setPage(Page page) {\n this.page=page;\n }", "@Override\n\tpublic void save(T obj) throws Exception {\n\t\t\n\t}", "@Override\n public void persist() {\n }", "private void saveData() {\n }", "public void saveObject(DBDoc object) {\n\t\tmongoTemplate.insert(object);\n\t}", "public void save(HashMap<Integer, T> data) {\n\t\tthis.data.putAll(data);\n\t}", "<T> T save(T bean);", "@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}", "public void putObject(long index, T value) {\n\t\tValueStoragePage<T> page = getOrCreatePage(getPageID(index));\n\t\tint n = page.getSize();\n\t\tpage.addObject(getPageOffset(index), value);\n\t\tnumProperties += page.getSize() - n;\n\t}", "void save(T entity);", "public void store() throws PersistenceException {\n }", "void store(WebCrawlerData data);", "@Override\n\tItem save(Item item);", "@Override\n\tpublic T save(T t) {\n\t\t hibernateTemplate.getSessionFactory().getCurrentSession().save(t);\n\t\treturn t;\n\t}", "void storeEditorData(int userid,String name,Object bodyContent){\n dbConnection();\n try{\n PGobject editorData = new PGobject();\n editorData.setType(\"json\");\n editorData.setValue(bodyContent.toString());\n\n stmt = con.prepareStatement(\"INSERT INTO editorData(name,bodyContent,userid)VALUES(?,?,?)\");\n stmt.setString(1,name);\n stmt.setObject(2,editorData);\n stmt.setInt(3,userid);\n\n stmt.executeUpdate();\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n closeConnection();\n }\n \n }", "@Override\n\tpublic void persist(Object entity) {\n\t\t\n\t}", "@Override\r\n\tpublic void persist() {\n\t}", "synchronized public static void storeData(ArrayList<DataObject> data, ProcessSteps step) {\n ArrayList<Document> dataDocs = DataConverter.convertDataObjectToDocument(data);\n MongoDatabase database = getDatabase(step);\n // Groups the objects by the simple name of their class.\n // This can create conflicts in cases where DataObjects have duplicated names.\n // This also means that multiple types of DataObjects can be collected in the same step.\n // The approach of using multiple objects is preferable, as it is more easily manageable than using nested objects.\n database.getCollection(data.get(0).getClass().getSimpleName()).insertMany(dataDocs);\n }", "public void write(int transactionId, int pageid, String data) throws Exception {\n Transaction trans = getTransaction(transactionId);\n if (trans != null) {\n int newLsn = getNewLSN();\n UserData newData = new UserData(pageid, data, newLsn);\n LogData logdata = new LogData(pageid, data, newLsn, transactionId);\n\n //The ordering of following 3 statements is fundamentally important!\n persistData(logdata);\n trans.getDatasets().add(newData);\n persistUserDataIfNeeded();\n } else {\n throw new Exception(\"Bad Transaction ID \" + transactionId);\n }\n }", "protected void saveValues() {\n dataModel.persist();\n }", "T persist(T obj) throws PersistException;", "private void saveObject(Object object) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, object.getClass());\n try {\n Field[] fields = object.getClass().getDeclaredFields();\n Field id = null;\n for (Field f : fields) {\n if (f.isAnnotationPresent(Id.class)) {\n id = f;\n }\n }\n id.setAccessible(true);\n\n if (Integer.parseInt(id.get(object).toString()) != 0 && !id.get(object).equals(null)) {\n crudService.update((SimpleORMInterface) object);\n } else {\n crudService.insert((SimpleORMInterface) object);\n }\n id.setAccessible(false);\n ConnectionPoll.releaseConnection(connection);\n\n } catch (IllegalAccessException | NoSuchFieldException e) {\n e.printStackTrace();\n }\n }", "int insert(PageItemCfg record);", "@Override\n\tpublic void save(EmpType entity) {\n\t\t\n\t}", "<T> Serializable save(T persistentObject);", "public void save();", "public void save();", "public void save();", "public void save();", "@Override\r\n public void store(long key, O object) throws OBException {\n }", "void saveSaves(Object data, Context context);", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "@Override\n\tpublic void SavePais(Pais elemento) {\n\t\tgetSession().persist(elemento);\n\t\t\n\t}", "@Transactional(propagation = Propagation.REQUIRED)\n private void saveClickedPage(String locationId) {\n try {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String formattedDate = formatter.format(new Date());\n\n PageClickedEntity entity = pageClickedTableRepository.findOneByContentId(locationId);\n if(entity == null) entity = new PageClickedEntity(locationId, formattedDate);\n entity.setDate(formattedDate);\n pageClickedTableRepository.saveAndFlush(entity);\n } catch (Exception e) {\n log.error(e);\n }\n }", "public void save() {\n ProductData.saveData(tree);\n }", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "public void saveMetaData(Transaction tr) {\r\n\t\tDebug.indexLogger.debug(\"save BPlus index meta data on page {}\",\r\n\t\t\t\tmetaPageID);\r\n\t\tPage page = BufferManager.getPage(tr, metaPageID);\r\n\r\n\t\tpage.setType(tr, Page.TYPE_BTREE_HEADER);\r\n\t\t// always remember: first seek, then write\r\n\t\tpage.seek(Page.HEADER_LENGTH);\r\n\t\tpage.writeString(tr, name);\r\n\t\tpage.writeString(tr, table.getName());\r\n\t\tpage.writeInt(tr, columnID);\r\n\t\tpage.writeInt(tr, metaPageID);\r\n\t\tpage.writeInt(tr, isPrimary ? 1 : 0);\r\n\t\tpage.writeInt(tr, treeRoot);\r\n\r\n\t\tpage.release(tr);\r\n\r\n\t}", "public void save(Object obj) throws HibException;", "@Override\n public void save(T pojo) {\n\n Map<Class, Set<ReflectionUtils.DataDescriptor>> valueMap = new HashMap<>();\n\n try {\n ReflectionUtils.valuesForClasses(valueMap, null, pojo);\n\n for (Map.Entry<Class, Set<ReflectionUtils.DataDescriptor>> entry : valueMap.entrySet()) {\n Insert insert = null;\n if (entry.getKey().getName().equals(pojo.getClass().getName())) {\n logger.info(\"Working on the root class \" + pojo);\n for (ReflectionUtils.DataDescriptor descriptor : entry.getValue()) {\n insert = QueryBuilder.insertInto(keySpace, tableName).values(ReflectionUtils.fieldNames(entry.getKey()),\n descriptor.getValues());\n\n logger.debug(\"Insert \" + insert);\n ResultSet res = session.execute(insert);\n logger.debug(\"Result \" + res);\n }\n } else {\n for (ReflectionUtils.DataDescriptor descriptor : entry.getValue()) {\n String nestedtableName = descriptor.getTableName();\n logger.debug(\"Insert builder \" + descriptor + \" into \" + keySpace + \".\" + nestedtableName);\n insert = QueryBuilder.insertInto(keySpace, nestedtableName).values(ReflectionUtils.fieldNames(entry.getKey()),\n descriptor.getValues());\n ResultSet res = session.execute(insert);\n logger.debug(\"Result \" + res);\n }\n }\n }\n }\n catch (HecateException e) {\n logger.error(\"Hecate problem \" + e);\n }\n }", "public void onSave() {\n\t\tsetCreationDate(new Date());\n\t\tPageAlias.create(this, null);\n\t\tupdateChildPaths();\n\t}", "void saveUserData(User user);", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "void save(E entity);", "public void writePage(Page page) throws IOException {\n // some code goes here\n // not necessary for proj1\n try {\n PageId pid= page.getId();\n HeapPageId hpid= (HeapPageId)pid;\n\n RandomAccessFile rAf=new RandomAccessFile(f,\"rw\");\n int offset = pid.pageNumber()*BufferPool.PAGE_SIZE;\n byte[] b=new byte[BufferPool.PAGE_SIZE];\n b=page.getPageData();\n rAf.seek(offset);\n rAf.write(b, 0, BufferPool.PAGE_SIZE);\n rAf.close(); \n page.markDirty(false,null); \n }catch (IOException e){\n e.printStackTrace();\n }\n\n }", "@Override\r\n\tpublic void save(T elemento) {\n\r\n\t}", "@Override\n\tpublic int saveObject(Evaluate entity) {\n\t\treturn evaluateMapper.saveObject(entity)\n\t\t\t\t;\n\t}", "public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void saveData(){\n\n if(addFieldstoLift()) {\n Intent intent = new Intent(SetsPage.this, LiftsPage.class);\n intent.putExtra(\"lift\", lift);\n setResult(Activity.RESULT_OK, intent);\n finish();\n }else{\n AlertDialog.Builder builder = new AlertDialog.Builder(SetsPage.this);\n builder.setCancelable(true);\n builder.setTitle(\"Invalid Entry\");\n builder.setMessage(\"Entry is invalid. If you continue your changes will not be saved\");\n builder.setPositiveButton(\"Continue\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n }", "private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }", "public void writePage(Page page) throws IOException {\n \tHeapPage heapPage = (HeapPage)page;\n \tbyte[] byteArray = heapPage.getPageData();\n \t\n \tint pageNumber = heapPage.getId().pageno();\n \tint offSet = (pageNumber)*BufferPool.PAGE_SIZE;\n \t\n \tRandomAccessFile oStream = null;\n \t\n \toStream = new RandomAccessFile(file,\"rw\");\n \toStream.skipBytes(offSet);\n \toStream.write(byteArray);\n }", "@Override\n\tpublic VisitorDetails saveData(VisitorDetails data) {\n\t\treturn repo.save(data);\n\t}", "public void writePage(Page page) throws IOException {\n // some code goes here\n // not necessary for proj1\n try {\n PageId pid = page.getId();\n HeapPageId hpid = (HeapPageId) pid;\n\n RandomAccessFile accessor = new RandomAccessFile(f, \"rw\");\n int offset = pid.pageNumber() * BufferPool.PAGE_SIZE;\n byte[] data = new byte[BufferPool.PAGE_SIZE];\n data = page.getPageData();\n\n accessor.seek(offset);\n accessor.write(data, 0, BufferPool.PAGE_SIZE);\n accessor.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void save( T entity) {\n\t baseDaoImpl.save(entity);\n\t}", "@Override\r\n\tpublic void save(Plate tipo) {\n\t\t\r\n\t}", "private void putObjectFromPages(JSONArray pageArray) {\n\n for (int i = 0; i < pageArray.length(); i++) {\n JSONObject page = pageArray.optJSONObject(i);\n String pName = page.optString(\"name\");\n JSONArray pageElementArray = page.optJSONArray(\"uiObjects\");\n\n Map<String, PageElement> pageElements = new HashMap<String, PageElement>();\n pageElementsMap.put(pName, pageElements);\n // Searching for the target element in the current page\n for (int j = 0; j < pageElementArray.length(); j++) {\n JSONObject pageElement = pageElementArray.optJSONObject(j);\n String name = pageElement.optString(\"name\");\n\n PageElement element = new PageElement();\n element.setName(name);\n element.setType(pageElement.optString(\"type\"));\n element.setLocatorType(pageElement.optString(\"locatorType\"));\n element.setLocatorValue(pageElement.optString(\"locatorValue\"));\n pageElements.put(name, element);\n }\n\n }\n }", "protected void save(T item) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tsession.save(item);\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute save\");\n\t\t}\n\t}", "public int save(Type t) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "protected void persist(T item) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tsession.persist(item);\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute persist\");\n\t\t}\n\t}", "@Override\n public void save() {\n \n }", "private void writeObject(Object object) {\r\n\t\tsession.saveOrUpdate(object);\r\n\r\n\t\t// Since can writing large amount of data should use Hibernate \r\n\t\t// batching to make sure don't run out memory.\r\n\t\tcounter++;\r\n\t\tif (counter % HibernateUtils.BATCH_SIZE == 0) {\r\n\t\t\tsession.flush();\r\n\t\t\tsession.clear();\r\n\t\t}\r\n\t}", "@Override\n public int save(T entity) {\n return mapper.insert(entity);\n }", "public void setPage(Page page) {\n\t\tthis.page = page;\n\t}", "public void save() {\t\n\t\n\t\n\t}", "public void storeBlog() {\r\n // notify user\r\n activityScreen.setString(Locale.get(\"blogManager.alert.storing\"));\r\n controller.show(activityScreen);\r\n // schedule process\r\n this.storageTerminationNotifier.schedule(new BlogStoreTerminator(), STORAGE_TIMEOUT);\r\n // start process\r\n this.prepareBlog();\r\n this.serializeBlog();\r\n }", "void storeObject(PointLatLng point, String id);", "@Override\n public void save()\n {\n \n }", "@Override\n\tpublic void save(Tmenu t) throws Exception {\n\t\tmenuMapper.save(t);\n\t\t\n\t}", "@Override\n\tpublic void post(BookCopies object) throws SQLException {\n\t\t\n\t}" ]
[ "0.68315023", "0.6630067", "0.6571393", "0.63090545", "0.6105551", "0.6089977", "0.60493493", "0.5914289", "0.58837306", "0.58734685", "0.5849178", "0.57885903", "0.57848614", "0.57827437", "0.57647705", "0.575945", "0.5758399", "0.573096", "0.5716272", "0.571598", "0.57026845", "0.56976473", "0.56861323", "0.56825846", "0.5660608", "0.5648255", "0.5645647", "0.56098205", "0.5597047", "0.5597047", "0.55919164", "0.5584102", "0.55823016", "0.55721843", "0.5556174", "0.5550023", "0.5529546", "0.5528143", "0.55265105", "0.5524296", "0.55199933", "0.5519578", "0.5519405", "0.55110496", "0.550647", "0.55012405", "0.54934037", "0.54846114", "0.5484186", "0.54814756", "0.54769593", "0.5473324", "0.54732114", "0.5451057", "0.544732", "0.544732", "0.544732", "0.544732", "0.54460686", "0.5444827", "0.54442185", "0.5439309", "0.5434175", "0.54242456", "0.5420704", "0.5417768", "0.54150534", "0.54038036", "0.5392362", "0.53915626", "0.53813577", "0.53813577", "0.53744626", "0.53708154", "0.5369124", "0.536448", "0.5355655", "0.53492844", "0.53491044", "0.5348986", "0.5348408", "0.5344685", "0.5344108", "0.53439474", "0.53386813", "0.53379923", "0.5325276", "0.5313648", "0.5313648", "0.5300819", "0.53002805", "0.52914965", "0.5290145", "0.5289777", "0.52893364", "0.5284438", "0.5284254", "0.52832264", "0.52819633", "0.52780247" ]
0.6138575
4
Stores an object of Page type into the database.
public final int saveAndGetId(final Page page) throws DAOException { String query = "INSERT INTO pages (name, description, json) VALUES (?, ?,?)"; String query2 = "SELECT MAX(id) FROM pages "; int result = 0; Connection con = null; PreparedStatement pstmt = null; try { con = JDBCDAOFactory.getConnection(); con.setAutoCommit(false); pstmt = con.prepareStatement(query); if (page.getName() != null) { pstmt.setString(1, page.getName()); } else { pstmt.setNull(1, Types.VARCHAR); } if (page.getDescription() != null) { pstmt.setString(2, page.getDescription()); } else { pstmt.setNull(2, Types.VARCHAR); } if (page.getJson() != null) { pstmt.setString(3, page.getJson()); } else { pstmt.setNull(3, Types.VARCHAR); } result = pstmt.executeUpdate(); pstmt.close(); boolean[] existingFields = new boolean[3]; String[] values = new String[3]; StringBuilder sb = new StringBuilder(); sb.append(" WHERE 1=1 "); if (page.getName() != null) { sb.append(" and name = ? "); existingFields[0] = true; values[0] = page.getName(); } if (page.getDescription() != null) { sb.append(" and description = ? "); existingFields[1] = true; values[1] = page.getDescription(); } if (page.getJson() != null) { sb.append(" and json = ? "); existingFields[2] = true; values[2] = page.getJson(); } pstmt = con.prepareStatement(query2 + sb.toString()); for (int i = 0; i < existingFields.length; i++) { if (existingFields[i]) { pstmt.setString(i + 1, values[i]); } } ResultSet rs = pstmt.executeQuery(); if (rs.next()) { result = rs.getInt(1); } rs.close(); con.commit(); } catch (SQLException ex) { throw new DAOException(ex); } finally { DBUtils.closeStatement(pstmt); DBUtils.closeConnection(con); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void save(JournalPage page);", "public void savePage(int page_number) throws DBAppException, IOException{\n\t\tint page_index = getPageIndexInArrayList(page_number);\n\t\tPage pageToInsert = this.getPageByNumber(page_number);\n\t\tif (pages_loaded_is_changed.get(page_index).booleanValue() == false){\n\t\t\treturn;\n\t\t}\n\t\tpageToInsert.serializePage(this.table_name + \"-\" + page_number + \".ser\");\n//\t\tBoolean b = pages_loaded_is_changed.get(page_index);\n//\t\tb = new Boolean(false);\n\t\tpages_loaded_is_changed.set(page_index,new Boolean(false));\n\t}", "public synchronized void savePage(int pageId, String pageType, byte data[])\n\t\t{\n\t\t\tif (sessionIdentifier == null)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// only save page that has some data\n\t\t\tif (data != null)\n\t\t\t{\n\t\t\t\t// allocate window for page\n\t\t\t\tFileWindow window = getManager().createPageWindow(pageId, pageType, data.length);\n\n\t\t\t\tFileChannel channel = getFileChannel(true);\n\t\t\t\tif (channel != null)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// write the content\n\t\t\t\t\t\tchannel.write(ByteBuffer.wrap(data), window.getFilePartOffset());\n\t\t\t\t\t}\n\t\t\t\t\tcatch (IOException e)\n\t\t\t\t\t{\n\t\t\t\t\t\tlog.error(\"Error writing to a channel \" + channel, e);\n\t\t\t\t\t}\n\t\t\t\t\tfinally\n\t\t\t\t\t{\n\t\t\t\t\t\tIOUtils.closeQuietly(channel);\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\tlog.warn(\n\t\t\t\t\t\t\"Cannot save page with id '{}' because the data file cannot be opened.\",\n\t\t\t\t\t\tpageId);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public final int save(final Page page) throws DAOException {\n String query = \"INSERT INTO pages (name, description, json) VALUES (?, ?,?)\";\n\n \n System.out.println(\"guardando mashup\");\n int result = 0;\n Connection con = null;\n PreparedStatement pstmt = null;\n\n try {\n con = JDBCDAOFactory.getConnection();\n con.setAutoCommit(false);\n pstmt = con.prepareStatement(query);\n if (page.getName() != null) {\n pstmt.setString(1, page.getName());\n } else {\n pstmt.setNull(1, Types.VARCHAR);\n }\n if (page.getDescription() != null) {\n pstmt.setString(2, page.getDescription());\n } else {\n pstmt.setNull(2, Types.VARCHAR);\n }\n if (page.getDescription() != null) {\n pstmt.setString(3, page.getJson());\n } else {\n pstmt.setNull(3, Types.VARCHAR);\n }\n result = pstmt.executeUpdate();\n con.commit();\n } catch (SQLException ex) {\n throw new DAOException(ex);\n } finally {\n DBUtils.closeStatement(pstmt);\n DBUtils.closeConnection(con);\n }\n return result;\n }", "boolean put(PageId pageId, byte[] page);", "@Override\r\n\tpublic void save(T t) {\n\t\tgetSession().save(t);\r\n\t}", "public void save() throws IOException {\n File f = new File(\"data/pages/\" + pageName + \".class\");\n if (!f.exists()) {\n if (!f.getParentFile().exists()) {\n if (f.getParentFile().mkdirs()) {\n f.createNewFile();\n }\n }\n }\n FileOutputStream fos = new FileOutputStream(f);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this);\n oos.flush();\n oos.close();\n }", "public void save() throws DBAppException, IOException{\n\t\tint numberOfPages = pages_loaded.size();\n\t\tfor (int i = 1; i <= numberOfPages; i++) {\n\t\t\tsavePage(i);\n\t\t}\n\t}", "@Override\n\tpublic void saveEntry(T t) {\n\t\tthis.hibernateTemplate.save(t);\n\t}", "public void save(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//session.save(obj);\n\t\tsession.persist(obj);\n\t}", "public void save(Object instance);", "T save(T object);", "@Override\n\tpublic void saveEntity(T t) {\n\t\tgetSession().save(t);\n\t}", "@Override\n public void save(T element) {\n manager.persist(element);\n }", "@Override\n\tpublic void persist(T obj) throws Exception {\n\t\t\n\t}", "void savePost(Post post);", "@Override\n\tpublic TypeDocument save(TypeDocument typeDocument) {\n\t\treturn typeDocumentRepository.save(typeDocument);\n\t}", "public void doSave(T objectToSave) throws SQLException;", "void save(Object entity);", "public <E extends Writeable> void storeObject(String sql, E e);", "public void setPage(Page page) throws SQLException {\n\t\tif (page.getId() == -1) {\n\t\t\tpage.setId(upodDao.nextAvailableId(Table.PAGE));\n\t\t}\n\t\tupodDao.setPage(page);\n\t}", "T save(T obj);", "Type persistir(Type type);", "public void saveObject(DBDoc object) {\n\t\tmongoTemplate.insert(object);\n\t}", "@Override\n\tpublic T save(T t) {\n\t\t hibernateTemplate.getSessionFactory().getCurrentSession().save(t);\n\t\treturn t;\n\t}", "@Override\r\n\tpublic Visit save(Visit object) {\n\t\treturn super.save(object);\r\n\t}", "public void setPage(Page page) {this.page = page;}", "public void setPage(Page page)\r\n {\r\n this.pageId = page.getId();\r\n }", "T save(T t);", "public void saveAllAPagePage(List<APagePage> aPagePages) {\r\n\t\tappDao.makePersistenAll(aPagePages);\r\n\t}", "@Transactional(propagation = Propagation.REQUIRED)\n private void saveClickedPage(String locationId) {\n try {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String formattedDate = formatter.format(new Date());\n\n PageClickedEntity entity = pageClickedTableRepository.findOneByContentId(locationId);\n if(entity == null) entity = new PageClickedEntity(locationId, formattedDate);\n entity.setDate(formattedDate);\n pageClickedTableRepository.saveAndFlush(entity);\n } catch (Exception e) {\n log.error(e);\n }\n }", "<T> T save(T bean);", "void save(T entity);", "@Override\n\tpublic void save(T obj) throws Exception {\n\t\t\n\t}", "private void saveObject(Object object) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, object.getClass());\n try {\n Field[] fields = object.getClass().getDeclaredFields();\n Field id = null;\n for (Field f : fields) {\n if (f.isAnnotationPresent(Id.class)) {\n id = f;\n }\n }\n id.setAccessible(true);\n\n if (Integer.parseInt(id.get(object).toString()) != 0 && !id.get(object).equals(null)) {\n crudService.update((SimpleORMInterface) object);\n } else {\n crudService.insert((SimpleORMInterface) object);\n }\n id.setAccessible(false);\n ConnectionPoll.releaseConnection(connection);\n\n } catch (IllegalAccessException | NoSuchFieldException e) {\n e.printStackTrace();\n }\n }", "T persist(T obj) throws PersistException;", "public interface IStoreable {\n void store(Good page);\n}", "@Override\n\tpublic void save(EmpType entity) {\n\t\t\n\t}", "@Override\n\tItem save(Item item);", "protected void save(T item) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tsession.save(item);\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute save\");\n\t\t}\n\t}", "@Override\n public void persist() {\n }", "void save(E entity);", "@Override\n\tpublic void SavePais(Pais elemento) {\n\t\tgetSession().persist(elemento);\n\t\t\n\t}", "public void save();", "public void save();", "public void save();", "public void save();", "<T> Serializable save(T persistentObject);", "@Override\n\tpublic void persist(Object entity) {\n\t\t\n\t}", "public void setPage(Page page) {\n this.page=page;\n }", "public void setPage(Page page) {\n this.page=page;\n }", "protected void persist(T item) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tsession.persist(item);\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute persist\");\n\t\t}\n\t}", "public void onSave() {\n\t\tsetCreationDate(new Date());\n\t\tPageAlias.create(this, null);\n\t\tupdateChildPaths();\n\t}", "@Override\r\n\tpublic void persist() {\n\t}", "@Override\r\n\tpublic void create(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().save(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "@Override\r\n\tpublic void save(T elemento) {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "void storeEditorData(int userid,String name,Object bodyContent){\n dbConnection();\n try{\n PGobject editorData = new PGobject();\n editorData.setType(\"json\");\n editorData.setValue(bodyContent.toString());\n\n stmt = con.prepareStatement(\"INSERT INTO editorData(name,bodyContent,userid)VALUES(?,?,?)\");\n stmt.setString(1,name);\n stmt.setObject(2,editorData);\n stmt.setInt(3,userid);\n\n stmt.executeUpdate();\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n closeConnection();\n }\n \n }", "public Post save(Post t) {\n\t\tSession session;\n\t\ttry {\n\t\t\tsession = sessfact.getCurrentSession();\n\t\t} catch (HibernateException e) {\n\t\t\tsession = sessfact.openSession();\n\t\t}\n\t\tTransaction trans = session.beginTransaction();\n\t\tsession.save(t);\n\t\ttrans.commit();\n\t\treturn t;\n\t}", "Post save(Post post) throws Exception;", "public void save(Object obj) throws HibException;", "public void putObject(long index, T value) {\n\t\tValueStoragePage<T> page = getOrCreatePage(getPageID(index));\n\t\tint n = page.getSize();\n\t\tpage.addObject(getPageOffset(index), value);\n\t\tnumProperties += page.getSize() - n;\n\t}", "int insert(PageItemCfg record);", "@Override\n\tpublic void save( T entity) {\n\t baseDaoImpl.save(entity);\n\t}", "public void saveOneWord(Pojo.OneWord e){ \n template.save(e); \n}", "void save(Account account);", "public void store() throws PersistenceException {\n }", "<T> void saveOrUpdate(T persistentObject);", "@Override\n public int save(T entity) {\n return mapper.insert(entity);\n }", "@Override\n\tpublic Genero save(Genero genero) {\n\t\treturn generoRepository.save(genero);\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\r\n\tpublic void save(Plate tipo) {\n\t\t\r\n\t}", "public void save(PtJJdwcy entity);", "@Override //插入通知\n\tpublic void insertPoInfo(PageData pd) throws Exception {\n\t\tdao.save(\"PoInfoMapper.insertPoInfo\", pd);\n\t}", "public int save(Type t) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int saveObject(Evaluate entity) {\n\t\treturn evaluateMapper.saveObject(entity)\n\t\t\t\t;\n\t}", "public boolean save(New object);", "@Override\n public void save(T pojo) {\n\n Map<Class, Set<ReflectionUtils.DataDescriptor>> valueMap = new HashMap<>();\n\n try {\n ReflectionUtils.valuesForClasses(valueMap, null, pojo);\n\n for (Map.Entry<Class, Set<ReflectionUtils.DataDescriptor>> entry : valueMap.entrySet()) {\n Insert insert = null;\n if (entry.getKey().getName().equals(pojo.getClass().getName())) {\n logger.info(\"Working on the root class \" + pojo);\n for (ReflectionUtils.DataDescriptor descriptor : entry.getValue()) {\n insert = QueryBuilder.insertInto(keySpace, tableName).values(ReflectionUtils.fieldNames(entry.getKey()),\n descriptor.getValues());\n\n logger.debug(\"Insert \" + insert);\n ResultSet res = session.execute(insert);\n logger.debug(\"Result \" + res);\n }\n } else {\n for (ReflectionUtils.DataDescriptor descriptor : entry.getValue()) {\n String nestedtableName = descriptor.getTableName();\n logger.debug(\"Insert builder \" + descriptor + \" into \" + keySpace + \".\" + nestedtableName);\n insert = QueryBuilder.insertInto(keySpace, nestedtableName).values(ReflectionUtils.fieldNames(entry.getKey()),\n descriptor.getValues());\n ResultSet res = session.execute(insert);\n logger.debug(\"Result \" + res);\n }\n }\n }\n }\n catch (HecateException e) {\n logger.error(\"Hecate problem \" + e);\n }\n }", "public void save(E model) {\n\t\tgetHibernateTemplate().save(model);\r\n\t}", "public <T> T save(T entity);", "public void writePage(Page page) throws IOException {\n \tHeapPage heapPage = (HeapPage)page;\n \tbyte[] byteArray = heapPage.getPageData();\n \t\n \tint pageNumber = heapPage.getId().pageno();\n \tint offSet = (pageNumber)*BufferPool.PAGE_SIZE;\n \t\n \tRandomAccessFile oStream = null;\n \t\n \toStream = new RandomAccessFile(file,\"rw\");\n \toStream.skipBytes(offSet);\n \toStream.write(byteArray);\n }", "void save(Teacher teacher);", "T save(T entity);", "T save(T entity);", "T save(T entity);", "@Override\n\tpublic void post(BookCopies object) throws SQLException {\n\t\t\n\t}", "@Override\n\tpublic void save(Tmenu t) throws Exception {\n\t\tmenuMapper.save(t);\n\t\t\n\t}", "private void writeObject(Object object) {\r\n\t\tsession.saveOrUpdate(object);\r\n\r\n\t\t// Since can writing large amount of data should use Hibernate \r\n\t\t// batching to make sure don't run out memory.\r\n\t\tcounter++;\r\n\t\tif (counter % HibernateUtils.BATCH_SIZE == 0) {\r\n\t\t\tsession.flush();\r\n\t\t\tsession.clear();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}", "long save(T item) throws DaoException;", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "public void save() {\t\n\t\n\t\n\t}", "@Override\r\n\tpublic void salvar(Plano t) {\n\t\tEntityManager em = new Conexao().getInstance();\r\n\t\tem.getTransaction().begin();\r\n\t\tem.persist(t);\r\n\t\tem.getTransaction().commit();\r\n\t\tem.close();\r\n\t}", "public PSTemplate save(PSTemplate template, String siteId, String pageId) throws PSDataServiceException;", "public void writePage(Page page) throws IOException {\n // some code goes here\n // not necessary for proj1\n try {\n PageId pid= page.getId();\n HeapPageId hpid= (HeapPageId)pid;\n\n RandomAccessFile rAf=new RandomAccessFile(f,\"rw\");\n int offset = pid.pageNumber()*BufferPool.PAGE_SIZE;\n byte[] b=new byte[BufferPool.PAGE_SIZE];\n b=page.getPageData();\n rAf.seek(offset);\n rAf.write(b, 0, BufferPool.PAGE_SIZE);\n rAf.close(); \n page.markDirty(false,null); \n }catch (IOException e){\n e.printStackTrace();\n }\n\n }", "E save(E entity);", "public void writePage(Page page) throws IOException {\n // some code goes here\n // not necessary for proj1\n try {\n PageId pid = page.getId();\n HeapPageId hpid = (HeapPageId) pid;\n\n RandomAccessFile accessor = new RandomAccessFile(f, \"rw\");\n int offset = pid.pageNumber() * BufferPool.PAGE_SIZE;\n byte[] data = new byte[BufferPool.PAGE_SIZE];\n data = page.getPageData();\n\n accessor.seek(offset);\n accessor.write(data, 0, BufferPool.PAGE_SIZE);\n accessor.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void save(PembayaranObat pembayaranObat) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tsession.save(pembayaranObat);\r\n\t\tsession.flush();\r\n\t}" ]
[ "0.688629", "0.6531218", "0.6354462", "0.63079125", "0.62267965", "0.6125609", "0.6097259", "0.5970049", "0.59413123", "0.5897297", "0.58755136", "0.58653784", "0.5842981", "0.58403647", "0.5836315", "0.582082", "0.57998466", "0.57917136", "0.5789506", "0.5747758", "0.57414156", "0.57201064", "0.57136774", "0.56900334", "0.5658312", "0.56262314", "0.56189024", "0.5618363", "0.5608804", "0.56057286", "0.5594164", "0.55845386", "0.55818486", "0.55771494", "0.5567617", "0.55518323", "0.5524226", "0.55012316", "0.5498106", "0.548857", "0.54854685", "0.5483276", "0.5476781", "0.54625505", "0.54625505", "0.54625505", "0.54625505", "0.5442207", "0.5440665", "0.54347575", "0.54347575", "0.5418902", "0.5414474", "0.54031706", "0.5367885", "0.53632975", "0.5360145", "0.5359386", "0.53531635", "0.53515667", "0.535141", "0.5342125", "0.53368694", "0.5323559", "0.53181314", "0.5315109", "0.53092307", "0.5307619", "0.53044116", "0.53031355", "0.5295094", "0.5295094", "0.52923745", "0.5286875", "0.52856356", "0.52846956", "0.5282107", "0.52766424", "0.52746207", "0.5271395", "0.5265145", "0.5263125", "0.5257749", "0.52531385", "0.52531385", "0.52531385", "0.5240358", "0.5237772", "0.5237762", "0.52345836", "0.52243286", "0.5216104", "0.5216104", "0.52120745", "0.52085197", "0.51952934", "0.51946217", "0.51767904", "0.5171706", "0.5170232" ]
0.5383812
54
Updates an object of Page type from the database.
public final int update(final Page page) throws DAOException { String query = "UPDATE pages SET name=? description=?, json=? WHERE id=?"; int result = 0; Connection con = null; PreparedStatement pstmt = null; try { con = JDBCDAOFactory.getConnection(); con.setAutoCommit(false); pstmt = con.prepareStatement(query); if (page.getName() != null) { pstmt.setString(1, page.getName()); } else { pstmt.setNull(1, Types.VARCHAR); } if (page.getDescription() != null) { pstmt.setString(2, page.getDescription()); } else { pstmt.setNull(2, Types.VARCHAR); } if (page.getDescription() != null) { pstmt.setString(3, page.getJson()); } else { pstmt.setNull(3, Types.VARCHAR); } pstmt.setInt(4, page.getId()); result = pstmt.executeUpdate(); con.commit(); } catch (SQLException ex) { throw new DAOException(ex); } finally { DBUtils.closeStatement(pstmt); DBUtils.closeConnection(con); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update(Page currentPage) throws RQLException ;", "@Override\r\n\tpublic void update(CustomizePage cp) {\n\t\tgetHibernateTemplate().update(cp);\r\n\t}", "public void setPage(Page page) throws SQLException {\n\t\tif (page.getId() == -1) {\n\t\t\tpage.setId(upodDao.nextAvailableId(Table.PAGE));\n\t\t}\n\t\tupodDao.setPage(page);\n\t}", "public void setPage(Page page)\r\n {\r\n this.pageId = page.getId();\r\n }", "public void setPage(Page page) {this.page = page;}", "public final int updateJson(final Page page) throws DAOException {\n String query = \"UPDATE pages SET json=? WHERE id=?\";\n\n int result = 0;\n Connection con = null;\n PreparedStatement pstmt = null;\n\n try {\n con = JDBCDAOFactory.getConnection();\n con.setAutoCommit(false);\n pstmt = con.prepareStatement(query);\n pstmt.setString(1, page.getJson());\n pstmt.setInt(2, page.getId());\n result = pstmt.executeUpdate();\n con.commit();\n } catch (SQLException ex) {\n throw new DAOException(ex);\n } finally {\n DBUtils.closeStatement(pstmt);\n DBUtils.closeConnection(con);\n }\n return result;\n }", "void update(T obj) throws PersistException;", "int updateByPrimaryKey(PageFunc record);", "public void setPage(Page page) {\n this.page=page;\n }", "public void setPage(Page page) {\n this.page=page;\n }", "@Override\n public WikiPageInfo updateWikiPage(WikiPageInfo page) \n {\n if (page.getNodeRef() == null)\n {\n throw new IllegalArgumentException(\"Can't update a page that was never persisted, call create instead\");\n }\n \n NodeRef nodeRef = page.getNodeRef();\n String nodeName = buildName(page.getTitle());\n \n // Handle the rename case\n boolean renamed = false;\n if (! nodeService.getProperty(nodeRef, ContentModel.PROP_TITLE).equals(page.getTitle()))\n {\n try\n {\n fileFolderService.rename(nodeRef, nodeName);\n renamed = true;\n }\n catch (FileNotFoundException e)\n {\n throw new AlfrescoRuntimeException(\"Invalid node state - wiki page no longer found\");\n }\n nodeService.setProperty(nodeRef, ContentModel.PROP_NAME, nodeName);\n nodeService.setProperty(nodeRef, ContentModel.PROP_TITLE, page.getTitle());\n }\n \n // Change the content\n ContentWriter writer = contentService.getWriter(nodeRef, ContentModel.PROP_CONTENT, true);\n writer.setMimetype(MimetypeMap.MIMETYPE_HTML);\n writer.setEncoding(\"UTF-8\");\n writer.putContent(page.getContents());\n \n // Now do the tags\n taggingService.setTags(nodeRef, page.getTags());\n \n // If we re-named, re-create the object\n if (renamed)\n {\n page = buildPage(nodeRef, page.getContainerNodeRef(), nodeName, page.getContents());\n }\n \n // All done\n return page;\n }", "<T> void update(T persistentObject);", "public void update(T object) throws SQLException;", "void updateEntry(BlogEntry entry) throws DAOException;", "int updateByPrimaryKey(TNavigation record);", "int updateByPrimaryKey(Tipologia record);", "public void setPage(Page page) {\n\t\tthis.page = page;\n\t}", "int updateByPrimaryKey(HotelType record);", "public void doUpdate(T objectToUpdate) throws SQLException;", "@Override\n\tpublic void updateEntry(T t) {\n\t\tthis.hibernateTemplate.update(t);\n\t}", "int updateByPrimaryKey(WpPosts record);", "public static void updateSavedPage(BlockPos pos, String page) {\n MantleNetwork.INSTANCE.network.sendToServer(new UpdateLecternPagePacket(pos, page));\n }", "private void updateObject(Object object) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, object.getClass());\n\n try {\n crudService.update((SimpleORMInterface) object);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n ConnectionPoll.releaseConnection(connection);\n\n try {\n connection.close();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }", "@Override //编辑通知\n\tpublic void editPoInfo(PageData pd) throws Exception {\n\t\tdao.update(\"PoInfoMapper.editPoInfo\", pd);\n\t\t\n\t}", "public void update(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.update(obj);\n\t\t\n\t}", "@RequestMapping(value = \"EditStaticPage/{id}\", method = RequestMethod.POST)\n public String updateStaticPage(@PathVariable(\"id\") int staticPageId, @ModelAttribute(\"staticPage\") StaticPage updatedPage, Model model, HttpServletRequest req) {\n model.addAttribute(\"staticPageList\", blogDAO.getListOfStaticPages());\n /**\n * ************************************************************\n */\n List<StaticPage> pages = blogDAO.getListOfStaticPages();\n StaticPage page = new StaticPage();\n int pageCreatorId = 0;\n\n //updatedPage = pages.get(staticPageId);\n for (int i = 0; i < pages.size(); i++) {\n if (pages.get(i).getStaticPageId() == staticPageId) {\n page = pages.get(i);\n pageCreatorId = page.getPageCreatorId();\n }\n }\n updatedPage.setPageTitle(req.getParameter(\"title\"));\n\n updatedPage.setPageCreatorId(pageCreatorId);\n updatedPage.setStaticPageId(staticPageId);\n blogDAO.editStaticPage(updatedPage);\n\n return \"redirect:/AdminStaticPage\";\n }", "int updateByPrimaryKey(PmPost record);", "boolean put(PageId pageId, byte[] page);", "public final int save(final Page page) throws DAOException {\n String query = \"INSERT INTO pages (name, description, json) VALUES (?, ?,?)\";\n\n \n System.out.println(\"guardando mashup\");\n int result = 0;\n Connection con = null;\n PreparedStatement pstmt = null;\n\n try {\n con = JDBCDAOFactory.getConnection();\n con.setAutoCommit(false);\n pstmt = con.prepareStatement(query);\n if (page.getName() != null) {\n pstmt.setString(1, page.getName());\n } else {\n pstmt.setNull(1, Types.VARCHAR);\n }\n if (page.getDescription() != null) {\n pstmt.setString(2, page.getDescription());\n } else {\n pstmt.setNull(2, Types.VARCHAR);\n }\n if (page.getDescription() != null) {\n pstmt.setString(3, page.getJson());\n } else {\n pstmt.setNull(3, Types.VARCHAR);\n }\n result = pstmt.executeUpdate();\n con.commit();\n } catch (SQLException ex) {\n throw new DAOException(ex);\n } finally {\n DBUtils.closeStatement(pstmt);\n DBUtils.closeConnection(con);\n }\n return result;\n }", "public void setPage(SQLInteger page) {\n\t\tthis.page = page;\n\t}", "public abstract <T> T update(Object object, Class<T> clazz);", "int updateByPrimaryKey(SysType record);", "int updateByPrimaryKey(Crawl record);", "@Override\r\n\tpublic void update(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().update(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "private synchronized void flushPage(PageId pid) throws IOException {\n // some code goes here\n // not necessary for proj1\n try {\n Page page = bufferedPages.get(pid).page;\n page.markDirty(false, null);\n DbFile dbFile = Database.getCatalog()\n .getDbFile(((HeapPageId)pid).getTableId());\n dbFile.writePage(page);\n } catch(IOException e) {\n e.printStackTrace();\n System.exit(0);\n }\n }", "@Override\n\tpublic void updateEntity(T t) {\n\t\tgetSession().update(t);\n\t}", "@Override\n\tpublic boolean update(Item obj) {\n\t\ttry{\n\t\t\tString query=\"UPDATE items SET title = ?, start_date = ?, end_date = ?, type = ? WHERE id = ?\";\n\t\t\tPreparedStatement state = conn.prepareStatement(query,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t\tstate.setString(1, obj.getTitle());\n\t\t\tstate.setDate(2, obj.getStartDate());\n\t\t\tstate.setDate(3, obj.getEndDate());\n\t\t\tstate.setInt(4, obj.getItemType().getIndex());\n\t\t\tstate.setInt(5, obj.getIndex());\n\t\t\t\n\t\t\t// Run the query\n\t\t\tstate.executeUpdate();\n\n\t\t\tstate.close();\n\t\t\t\n\t\t\t// Notify the Dispatcher on a suitable channel.\n\t\t\tthis.publish(EntityEnum.ITEM.getValue());\n\t\t\t\n\t\t\treturn true;\n\t\t} catch (SQLException e){\n\t\t\tJOptionPane jop = new JOptionPane();\n\t\t\tjop.showMessageDialog(null, e.getMessage(),\"PostgreSQLItemDao.update -- ERROR!\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public void update(T obj) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tsession.update(obj);\n\t}", "int updateByPrimaryKeySelective(PageFunc record);", "public <T> T update(T entity);", "int updateByPrimaryKey(PracticeClass record);", "@Override\r\n\tpublic void update(T t) {\n\t\tgetSession().update(t);\r\n\t}", "E update(E entity);", "E update(E entity);", "int updateByPrimaryKey(News record);", "public Post update(Post t) {\n\t\tSession session;\n\t\ttry {\n\t\t\tsession = sessfact.getCurrentSession();\n\t\t} catch (HibernateException e) {\n\t\t\tsession = sessfact.openSession();\n\t\t}\n\t\tTransaction trans = session.beginTransaction();\n\t\tsession.update(t);\n\t\ttrans.commit();\n\t\treturn t;\n\t}", "int updateByPrimaryKey(SecondSlideshow record);", "public void update(TdiaryArticle obj) throws SQLException {\n\r\n\t}", "public void flushPage(PageId pageid) throws Exception {\n\t\ttry {\n\t\t\t// flush the dirty page\n\t\t\tint pos = pageHashtable.get(pageid.pid);\n\t\t\tPage page = new Page(pool[pos]);\n\n\t\t\t(SystemDefs.JavabaseDB).write_page(new PageId(pageid.pid), page);\n\t\t} catch (InvalidPageNumberException e) {\n\t\t\tthrow new InvalidPageNumberException(e, \"invalid page number \");\n\t\t} catch (FileIOException e) {\n\t\t\tthrow new FileIOException(e, \"File IO exception in pinning\");\n\t\t} catch (IOException e) {\n\t\t\tthrow new IOExceptionBM(e, \"IO Exception in pinning \");\n\t\t}\n\n\t}", "int updateByPrimaryKey(Clazz record);", "public void setPage(Integer page) {\n this.page = page;\n }", "UpdateType updateType();", "E update(E entiry);", "public void update( final T model )\n\t{\n\t\tthis.dao.save( model );\n\t}", "@Override\n\tpublic void updateClazz(Clazz clazz) {\n\t\tclazzDao.updateClazz(clazz);\n\t}", "void save(JournalPage page);", "Builder addMainEntityOfPage(String value);", "public final void setPageType(String pageType) {\n\t\tthis.pageType = pageType;\n\t}", "void update(T objectToUpdate);", "int updateByPrimaryKey(GoodsPo record);", "@Override\n public void update(Person p) throws SQLException, ClassNotFoundException\n {\n\n BasicDBObject query = new BasicDBObject();\n query.put(\"Id\", p.getId()); // old data, find key Id\n\n BasicDBObject newDocument = new BasicDBObject();\n\n// newDocument.put(\"Id\", p.getId()); // new data\n newDocument.put(\"FName\", p.getFName()); // new data\n newDocument.put(\"LName\", p.getLName()); // new data\n newDocument.put(\"Age\", p.getAge()); // new data\n System.out.println(newDocument);\n\n BasicDBObject updateObj = new BasicDBObject();\n updateObj.put(\"$set\", newDocument);\n System.out.println(updateObj);\n\n table.update(query, updateObj);\n }", "T update(T entity);", "T update(T entity);", "private void updatePage() {\n\t\ttry {\n\t\t\tList<ParseUser> friendUsers = ParseUser.getQuery()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.fromLocalDatastore()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.whereNotEqualTo(\"facebookId\", currentUser.getString(\"facebookId\"))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.find();\n\t\t\t\n\t\t\tpopulateViews(friendUsers);\n\t\t\n\t\t} catch (ParseException e) {\n\t\t\tLog.e(StealTheCheeseApplication.LOG_TAG, \"Fetch friends from localstore failed with message: \" + e);\n\t\t}\n\t}", "int updateByPrimaryKey(SellType record);", "@Override\r\n\tpublic void update(Object obj) throws DAOException {\n\r\n\t}", "public void updateEntity();", "public static void update(DocumentType documentType) throws SQLException, Exception {\n\n String sql = \"UPDATE document_type SET name=? WHERE (id=?)\";\n\n Connection con = null;\n\n PreparedStatement stmt = null;\n try {\n //Opens a connection to the DB\n con = ConnectionUtils.getConnection();\n //Creates a statement for SQL commands\n stmt = con.prepareStatement(sql);\n\n //Configures the parameters of the \"PreparedStatement\"\n stmt.setString(1, documentType.getName());\n stmt.setInt(2, documentType.getId());\n\n //Executes the command in the DB\n stmt.execute();\n } finally {\n ConnectionUtils.finalize(stmt, con);\n }\n }", "public void update(Pessoa p) {\n\t\tdb.save(p);\t\t\n\t}", "@Override\n\tpublic void update(EmpType entity) {\n\t\t\n\t}", "int updateByPrimaryKey(BookDO record);", "int updateByPrimaryKeySelective(Tipologia record);", "int updateByPrimaryKey(Forumpost record);", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "int updateByPrimaryKey(Ltsprojectpo record);", "void update(Type type);", "int updateByPrimaryKey(NewsInfo record);", "public void update(E model) {\n\t\tgetHibernateTemplate().update(model);\r\n\t}", "public void updatePost(Long id, BlogPost post);", "@Dao\npublic interface PageDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insert(Page page);\n\n @Query(\"SELECT * FROM Page WHERE id = :id\")\n LiveData<Page> load(String id);\n\n @Update\n void update(Page page);\n}", "public void setPage(int page) {\n this.page = page;\n }", "public <T> void update(final PersistableDataObject<T> obj) {\n txTemplate.execute(new TransactionCallbackWithoutResult() {\n @Override\n public void doInTransactionWithoutResult(TransactionStatus status) {\n getHibernateTemplate().update(obj);\n }\n });\n }", "public Integer updatePaymentType(PaymentTypeObject paymentTypeObject) throws AppException;", "void updatePage(String name, String park);", "public void setEditDocumentationPage(org.semanticwb.model.WebPage value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swpres_editDocumentationPage, value.getSemanticObject());\r\n }else\r\n {\r\n removeEditDocumentationPage();\r\n }\r\n }", "public boolean updatePagesInfo (com.mcip.bus.orb.PagesInfo pagesinfoobj) throws com.mcip.orb.CoException {\n return this._delegate.updatePagesInfo(pagesinfoobj);\n }", "private void putObjectFromPages(JSONArray pageArray) {\n\n for (int i = 0; i < pageArray.length(); i++) {\n JSONObject page = pageArray.optJSONObject(i);\n String pName = page.optString(\"name\");\n JSONArray pageElementArray = page.optJSONArray(\"uiObjects\");\n\n Map<String, PageElement> pageElements = new HashMap<String, PageElement>();\n pageElementsMap.put(pName, pageElements);\n // Searching for the target element in the current page\n for (int j = 0; j < pageElementArray.length(); j++) {\n JSONObject pageElement = pageElementArray.optJSONObject(j);\n String name = pageElement.optString(\"name\");\n\n PageElement element = new PageElement();\n element.setName(name);\n element.setType(pageElement.optString(\"type\"));\n element.setLocatorType(pageElement.optString(\"locatorType\"));\n element.setLocatorValue(pageElement.optString(\"locatorValue\"));\n pageElements.put(name, element);\n }\n\n }\n }", "public void changePage(Page page) {\n currentClient.changePage(page);\n this.page = currentClient.getCurrentPage();\n this.refresh();\n }", "int updateByPrimaryKey(WxNews record);", "int updateByPrimaryKey(Prueba record);", "public void update() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.update(this);\n\t\tsession.getTransaction().commit();\n\t}", "@Override\n\tpublic void update(Factura t) {\n\t\tfacturaRepository.save(t);\n\t\t\n\t}", "@Override\n\tpublic void update(Unidade obj) {\n\n\t}", "int updateByPrimaryKeySelective(HotelType record);", "@Override\n public void update(T entity) throws SQLException {\n\n this.dao.update(entity);\n\n }", "public void updateRecord(Record object);", "int updateByPrimaryKey(CmsVoteTitle record);", "@Override\n\tpublic void update(Room ob) {\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tPreparedStatement ps = cn.prepareStatement(\"UPDATE room SET id_room_type = ? WHERE id_room = ?\");\n\t\t\tps.setInt(1, ob.getIdRoomType());\n\t\t\tps.setInt(2, ob.getIdRoom());\n\n\t\t\tps.execute();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t}", "@Override\n public void update(Object object, Object id) throws DAOException {\n\n }", "private static void LessonDAOUpdate() {\n PersonDAO personDAO = new PersonDAOImpl();\n\n Person person = personDAO.getPersonById(7);\n person.setFirstName(\"Teddy\");\n\n if(personDAO.updatePerson(person)) {\n System.out.println(\"Person Update Success!\");\n } else {\n System.out.println(\"Person Update Fail!\");\n }\n }" ]
[ "0.68116325", "0.62250453", "0.6066431", "0.5876816", "0.58469546", "0.5844054", "0.5824813", "0.5811234", "0.56988394", "0.56988394", "0.5605992", "0.55574816", "0.55180526", "0.5482771", "0.54818183", "0.544889", "0.5430244", "0.54254925", "0.5415046", "0.539709", "0.53969336", "0.53921115", "0.5383234", "0.53784937", "0.5362946", "0.53572124", "0.53540623", "0.53416955", "0.533489", "0.5324349", "0.53139126", "0.52821606", "0.5279731", "0.52788246", "0.5258142", "0.52432215", "0.52368027", "0.52348775", "0.5223219", "0.52032804", "0.5200975", "0.5194904", "0.5185489", "0.5185489", "0.5183652", "0.51832944", "0.5180519", "0.51704174", "0.51701945", "0.51547366", "0.5150199", "0.5148907", "0.5147377", "0.514352", "0.5139049", "0.51348466", "0.5133356", "0.51326", "0.513078", "0.51276726", "0.5115367", "0.51149374", "0.51149374", "0.5114192", "0.5111101", "0.51076305", "0.51032853", "0.50955325", "0.5091988", "0.5088425", "0.50877535", "0.5083453", "0.50793284", "0.506402", "0.50515366", "0.5047647", "0.50475913", "0.5040225", "0.5039593", "0.5038156", "0.50281656", "0.50259924", "0.50162923", "0.50154066", "0.5013427", "0.5010496", "0.5004676", "0.50004727", "0.498841", "0.4987163", "0.49733195", "0.49716964", "0.49702686", "0.49640828", "0.49631754", "0.4963088", "0.49615583", "0.49601638", "0.49545342", "0.4938469" ]
0.61665756
2
Updates an object of Page type from the database, but only update the property json.
public final int updateJson(final Page page) throws DAOException { String query = "UPDATE pages SET json=? WHERE id=?"; int result = 0; Connection con = null; PreparedStatement pstmt = null; try { con = JDBCDAOFactory.getConnection(); con.setAutoCommit(false); pstmt = con.prepareStatement(query); pstmt.setString(1, page.getJson()); pstmt.setInt(2, page.getId()); result = pstmt.executeUpdate(); con.commit(); } catch (SQLException ex) { throw new DAOException(ex); } finally { DBUtils.closeStatement(pstmt); DBUtils.closeConnection(con); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update(Page currentPage) throws RQLException ;", "public final int update(final Page page) throws DAOException {\n String query = \"UPDATE pages SET name=? description=?, json=? WHERE id=?\";\n\n int result = 0;\n Connection con = null;\n PreparedStatement pstmt = null;\n\n try {\n con = JDBCDAOFactory.getConnection();\n con.setAutoCommit(false);\n pstmt = con.prepareStatement(query);\n if (page.getName() != null) {\n pstmt.setString(1, page.getName());\n } else {\n pstmt.setNull(1, Types.VARCHAR);\n }\n if (page.getDescription() != null) {\n pstmt.setString(2, page.getDescription());\n } else {\n pstmt.setNull(2, Types.VARCHAR);\n }\n if (page.getDescription() != null) {\n pstmt.setString(3, page.getJson());\n } else {\n pstmt.setNull(3, Types.VARCHAR);\n }\n pstmt.setInt(4, page.getId());\n result = pstmt.executeUpdate();\n con.commit();\n } catch (SQLException ex) {\n throw new DAOException(ex);\n } finally {\n DBUtils.closeStatement(pstmt);\n DBUtils.closeConnection(con);\n }\n return result;\n }", "@Override\r\n\tpublic void update(CustomizePage cp) {\n\t\tgetHibernateTemplate().update(cp);\r\n\t}", "public void setPage(Page page) {this.page = page;}", "public void setPage(Page page)\r\n {\r\n this.pageId = page.getId();\r\n }", "public void setPage(Page page) {\n this.page=page;\n }", "public void setPage(Page page) {\n this.page=page;\n }", "<T> Ack editProperty(ProjectEntity entity, Class<? extends PropertyType<T>> propertyType, T data);", "private void putObjectFromPages(JSONArray pageArray) {\n\n for (int i = 0; i < pageArray.length(); i++) {\n JSONObject page = pageArray.optJSONObject(i);\n String pName = page.optString(\"name\");\n JSONArray pageElementArray = page.optJSONArray(\"uiObjects\");\n\n Map<String, PageElement> pageElements = new HashMap<String, PageElement>();\n pageElementsMap.put(pName, pageElements);\n // Searching for the target element in the current page\n for (int j = 0; j < pageElementArray.length(); j++) {\n JSONObject pageElement = pageElementArray.optJSONObject(j);\n String name = pageElement.optString(\"name\");\n\n PageElement element = new PageElement();\n element.setName(name);\n element.setType(pageElement.optString(\"type\"));\n element.setLocatorType(pageElement.optString(\"locatorType\"));\n element.setLocatorValue(pageElement.optString(\"locatorValue\"));\n pageElements.put(name, element);\n }\n\n }\n }", "public void setPageDto(PageDto pageDto) {\n this.pageDto=pageDto;\n }", "void update(T obj) throws PersistException;", "public void setPage(Page page) {\n\t\tthis.page = page;\n\t}", "public void setPage(Page page) throws SQLException {\n\t\tif (page.getId() == -1) {\n\t\t\tpage.setId(upodDao.nextAvailableId(Table.PAGE));\n\t\t}\n\t\tupodDao.setPage(page);\n\t}", "Ack editProperty(ProjectEntity entity, String propertyTypeName, JsonNode data);", "Builder addMainEntityOfPage(String value);", "int updateByPrimaryKey(PageFunc record);", "public final int save(final Page page) throws DAOException {\n String query = \"INSERT INTO pages (name, description, json) VALUES (?, ?,?)\";\n\n \n System.out.println(\"guardando mashup\");\n int result = 0;\n Connection con = null;\n PreparedStatement pstmt = null;\n\n try {\n con = JDBCDAOFactory.getConnection();\n con.setAutoCommit(false);\n pstmt = con.prepareStatement(query);\n if (page.getName() != null) {\n pstmt.setString(1, page.getName());\n } else {\n pstmt.setNull(1, Types.VARCHAR);\n }\n if (page.getDescription() != null) {\n pstmt.setString(2, page.getDescription());\n } else {\n pstmt.setNull(2, Types.VARCHAR);\n }\n if (page.getDescription() != null) {\n pstmt.setString(3, page.getJson());\n } else {\n pstmt.setNull(3, Types.VARCHAR);\n }\n result = pstmt.executeUpdate();\n con.commit();\n } catch (SQLException ex) {\n throw new DAOException(ex);\n } finally {\n DBUtils.closeStatement(pstmt);\n DBUtils.closeConnection(con);\n }\n return result;\n }", "@Override\n public WikiPageInfo updateWikiPage(WikiPageInfo page) \n {\n if (page.getNodeRef() == null)\n {\n throw new IllegalArgumentException(\"Can't update a page that was never persisted, call create instead\");\n }\n \n NodeRef nodeRef = page.getNodeRef();\n String nodeName = buildName(page.getTitle());\n \n // Handle the rename case\n boolean renamed = false;\n if (! nodeService.getProperty(nodeRef, ContentModel.PROP_TITLE).equals(page.getTitle()))\n {\n try\n {\n fileFolderService.rename(nodeRef, nodeName);\n renamed = true;\n }\n catch (FileNotFoundException e)\n {\n throw new AlfrescoRuntimeException(\"Invalid node state - wiki page no longer found\");\n }\n nodeService.setProperty(nodeRef, ContentModel.PROP_NAME, nodeName);\n nodeService.setProperty(nodeRef, ContentModel.PROP_TITLE, page.getTitle());\n }\n \n // Change the content\n ContentWriter writer = contentService.getWriter(nodeRef, ContentModel.PROP_CONTENT, true);\n writer.setMimetype(MimetypeMap.MIMETYPE_HTML);\n writer.setEncoding(\"UTF-8\");\n writer.putContent(page.getContents());\n \n // Now do the tags\n taggingService.setTags(nodeRef, page.getTags());\n \n // If we re-named, re-create the object\n if (renamed)\n {\n page = buildPage(nodeRef, page.getContainerNodeRef(), nodeName, page.getContents());\n }\n \n // All done\n return page;\n }", "<T> void update(T persistentObject);", "@Override\n\tpublic List<Object> modifyByPage(JSONObject params) {\n\t\tList<Object> resultData = new ArrayList<Object>();\n\t\tString type = StringUtil.ToString(params.getString(\"type\"));\n\t\tSystem.out.println(type);\n\t\tString tip = StringUtil.ToString(params.getString(\"tip\"));\n\t\tString area = StringUtil.ToString(params.getString(\"area\"));\n\t\tString releaseDate = StringUtil.ToString(params.getString(\"releaseDate\"));\n\t\tint size = Integer.parseInt(params.getString(\"size\"));\n\t\tint currentPage = Integer.parseInt(params.getString(\"currentPage\"));\n \n\t\tMap<String, Object> data = new HashMap<String, Object>();\n\t\tdata.put(\"type\", type);\n\t\tif(!tip.equals(\"\")){\n\t\t\tdata.put(\"tip\", tip);\n\t\t} else if(!area.equals(\"\")){\n\t\t\tdata.put(\"area\", area);\n\t\t} else if(!releaseDate.equals(\"\")){\n\t\t\tdata.put(\"releaseDate\", releaseDate);\n\t\t}\n\t\tPageResultBean prb = new PageResultBean();\n\t\tprb.setPageSize(size);\n\t\tprb.setCurrentPage(currentPage);\n\t\tprb.setToPage(currentPage);\n\t\tPageResultBean resultPrb = new PageResultBean();\n\t\tString orderBy = \"asc\";\n\t\tresultPrb = this.queryForPage(prb, \"Movie.selectByType\", \"Movie.selectPage\", data, orderBy);\n\t\tresultData.add(resultPrb);\n\n\t\treturn resultData;\n\t}", "@Override\n public void update(Person p) throws SQLException, ClassNotFoundException\n {\n\n BasicDBObject query = new BasicDBObject();\n query.put(\"Id\", p.getId()); // old data, find key Id\n\n BasicDBObject newDocument = new BasicDBObject();\n\n// newDocument.put(\"Id\", p.getId()); // new data\n newDocument.put(\"FName\", p.getFName()); // new data\n newDocument.put(\"LName\", p.getLName()); // new data\n newDocument.put(\"Age\", p.getAge()); // new data\n System.out.println(newDocument);\n\n BasicDBObject updateObj = new BasicDBObject();\n updateObj.put(\"$set\", newDocument);\n System.out.println(updateObj);\n\n table.update(query, updateObj);\n }", "int updateByPrimaryKeySelective(PageFunc record);", "Builder addMainEntityOfPage(URL value);", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "@Override //编辑通知\n\tpublic void editPoInfo(PageData pd) throws Exception {\n\t\tdao.update(\"PoInfoMapper.editPoInfo\", pd);\n\t\t\n\t}", "@Override\n\tpublic int updateObject(Evaluate entity) {\n\t\treturn evaluateMapper.updateObject(entity);\n\t}", "@Override\n\tpublic void update(Object dto) throws Exception {\n\t\tpropertyConfigMapper.updateByPrimaryKeySelective(dto);\n\t}", "@PUT\n\t\t@Path(\"update\")\n\t\t@Consumes(MediaType.APPLICATION_JSON)\n\t\tpublic Response updateProfile(ProfileJson json) throws ProfileDaoException{\n\t\t\t\n\t\t\tProfile profile = json.asProfile();\n\t\t\t\n\t\t\t\n\t\t\t//ItemDAO itemDAO = new ItemDAO(ItemJson.class, datastore);\n\t\t\tboolean update = api.updateProfile(profile);\n\n\t\t\treturn ( (update)? Response.ok(null).build() :\n\t\t\t\t\tResponse.notModified().build());\n\n\t\t}", "@Test\n public void updateViajeroTest() {\n ViajeroEntity entity = data.get(0);\n PodamFactory factory = new PodamFactoryImpl();\n ViajeroEntity newEntity = factory.manufacturePojo(ViajeroEntity.class);\n\n newEntity.setId(entity.getId());\n\n vp.update(newEntity);\n\n ViajeroEntity resp = em.find(ViajeroEntity.class, entity.getId());\n\n Assert.assertEquals(newEntity.getId(), resp.getId());\n }", "void update(String page, Collection<String> paths, Collection<String> refreshPaths);", "@Override\n\tpublic Book update(Book dto) {\n\t\treturn null;\n\t}", "boolean put(PageId pageId, byte[] page);", "private void updateItem(JsonNode json) {\n }", "@Override\n\tpublic void update(EmpType entity) {\n\t\t\n\t}", "public void setPage(Integer page) {\n this.page = page;\n }", "@Test\n\t@Override\n\tpublic void testUpdateObjectOKJson() throws Exception {\n\t}", "@Test\n public void test2POJOWriteWithPojoPage() {\n PojoRepository<Artifact, Long> products = client.newPojoRepository(Artifact.class, Long.class);\n // Load more than 110 objects into different collections\n products.deleteAll();\n Long[] ids = new Long[111];\n int j = 0;\n for (int i = 222; i < 333; i++) {\n ids[j] = (long) i;\n j++;\n if (i % 2 == 0) {\n products.write(this.getArtifact(i), \"even\", \"numbers\");\n }\n else {\n products.write(this.getArtifact(i), \"odd\", \"numbers\");\n }\n }\n assertEquals(\"Total number of object recods\", 111, products.count(\"numbers\"));\n assertEquals(\"Collection even count\", 56, products.count(\"even\"));\n assertEquals(\"Collection odd count\", 55, products.count(\"odd\"));\n\n System.out.println(\"Default Page length setting on docMgr :\" + products.getPageLength());\n assertEquals(\"Default setting for page length\", 50, products.getPageLength());\n products.setPageLength(100);\n assertEquals(\"explicit setting for page length\", 100, products.getPageLength());\n PojoPage<Artifact> p = products.search(1, \"numbers\");\n // test for page methods\n assertEquals(\"Number of records\", 100, p.size());\n // System.out.println(\"Page size\"+p.size());\n assertEquals(\"Starting record in first page \", 1, p.getStart());\n // System.out.println(\"Starting record in first page \"+p.getStart());\n\n assertEquals(\"Total number of estimated results:\", 111, p.getTotalSize());\n // System.out.println(\"Total number of estimated results:\"+p.getTotalSize());\n assertEquals(\"Total number of estimated pages :\", 2, p.getTotalPages());\n // System.out.println(\"Total number of estimated pages :\"+p.getTotalPages());\n System.out.println(\"is this firstPage or LastPage:\" + p.isFirstPage() + \" \" + p.isLastPage() + \"has previous page\" + p.hasPreviousPage());\n assertTrue(\"Is this First page :\", p.isFirstPage());// this is bug\n assertFalse(\"Is this Last page :\", p.isLastPage());\n assertTrue(\"Is this First page has content:\", p.hasContent());\n // Need the Issue #75 to be fixed\n assertFalse(\"Is first page has previous page ?\", p.hasPreviousPage());\n long pageNo = 1, count = 0;\n do {\n count = 0;\n p = products.search(pageNo, \"numbers\");\n if (pageNo > 1) {\n assertFalse(\"Is this first Page\", p.isFirstPage());\n assertTrue(\"Is page has previous page ?\", p.hasPreviousPage());\n }\n Iterator<Artifact> itr = p.iterator();\n while (itr.hasNext()) {\n this.validateArtifact(p.iterator().next());\n count++;\n }\n // assertEquals(\"document count\", p.size(),count);\n System.out.println(\"Is this Last page :\" + p.hasContent() + p.isLastPage() + p.getPageNumber());\n pageNo = pageNo + p.getPageSize();\n } while (pageNo < p.getTotalSize());\n assertTrue(\"Page has previous page ?\", p.hasPreviousPage());\n assertEquals(\"page size\", 11, p.size());\n assertEquals(\"document count\", 111, p.getTotalSize());\n assertTrue(\"Page has any records ?\", p.hasContent());\n\n products.deleteAll();\n // see any document exists\n for (long i = 112; i < 222; i++) {\n assertFalse(\"Product id \" + i + \" exists ?\", products.exists(i));\n }\n // see if it complains when there are no records\n }", "@Override\n\tpublic void update(Unidade obj) {\n\n\t}", "@Test\r\n public void testUpdate() throws Exception {\r\n MonitoriaEntity entity = data.get(0);\r\n PodamFactory pf = new PodamFactoryImpl();\r\n MonitoriaEntity nuevaEntity = pf.manufacturePojo(MonitoriaEntity.class);\r\n nuevaEntity.setId(entity.getId());\r\n persistence.update(nuevaEntity);\r\n// Assert.assertEquals(nuevaEntity.getName(), resp.getName());\r\n }", "public void writeFromObjectIntoRowForUpdate(WriteObjectQuery writeQuery, AbstractRecord row) throws DescriptorException {\n AbstractSession session = writeQuery.getSession();\n\n //Helper.toDo(\"bjv: need to figure out how to handle read-only elements...\");\n if (session.isClassReadOnly(this.getReferenceClass())) {\n return;\n }\n\n if (session.isUnitOfWork()) {\n if (this.compareObjects(writeQuery.getObject(), writeQuery.getBackupClone(), session)) {\n return;// nothing has changed - don't put anything in the row\n }\n }\n this.writeFromObjectIntoRow(writeQuery.getObject(), row, session);\n }", "public void setPage(SQLInteger page) {\n\t\tthis.page = page;\n\t}", "public void updateOneWord(Pojo.OneWord e){ \n template.update(e); \n}", "@Test\n public void updateVisitaTest() {\n VisitaEntity entity = data.get(0);\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity newEntity = factory.manufacturePojo(VisitaEntity.class);\n newEntity.setId(entity.getId());\n\n VisitaPersistence.update(newEntity);\n\n VisitaEntity resp = em.find(VisitaEntity.class, entity.getId());\n\n Assert.assertEquals(newEntity.getId(), resp.getId());\n Assert.assertArrayEquals(newEntity.getFotos().toArray(), resp.getFotos().toArray());\n Assert.assertEquals(newEntity.getOferta(), resp.getOferta());\n Assert.assertEquals(newEntity.getUsuario(), resp.getUsuario());\n Assert.assertEquals(newEntity.getComentario(), resp.getComentario());\n Assert.assertEquals(newEntity.getCalificacion(), resp.getCalificacion());\n }", "@BodyParser.Of(play.mvc.BodyParser.Json.class)\n public static Result update(Long id) throws JsonParseException, JsonMappingException, IOException {\n JsonNode json = request().body().asJson();\n Thing thing = mapper.treeToValue(json, Thing.class);\n thing.cachedJson = json.toString();\n Logger.debug(\"Content: \" + thing.content);\n Logger.debug(\"Content: \" + thing.content);\n thing.update();\n return ok();\n }", "void update(T transientObject);", "void update(T objectToUpdate);", "public <T> void update(final PersistableDataObject<T> obj) {\n txTemplate.execute(new TransactionCallbackWithoutResult() {\n @Override\n public void doInTransactionWithoutResult(TransactionStatus status) {\n getHibernateTemplate().update(obj);\n }\n });\n }", "@Override\r\n\tpublic Ngo update(Ngo obj) {\n\t\treturn null;\r\n\t}", "public boolean updataVisualProperty(VisualProperty prop) \r\n throws RepositoryAccessException {\r\n boolean success = false;\r\n Connection conn = null;\r\n try {\r\n conn = openTransaction();\r\n VisualPropertyProxy proxy = new VisualPropertyProxy(conn);\r\n success = proxy.update(prop);\r\n conn.commit();\r\n } catch (Exception ex) {\r\n rollback(conn);\r\n String msg = \"Could not update visual property: \" + \r\n prop.getId() + \". \" + ex.getMessage();\r\n\r\n LogService.logWarn(msg, LOGGER);\r\n throw new RepositoryAccessException(msg, ex);\r\n } finally {\r\n close(conn);\r\n }\r\n \r\n return success;\r\n }", "public abstract <T> T update(Object object, Class<T> clazz);", "int updateByPrimaryKey(TNavigation record);", "@Override\n\tpublic void updateFalse(MetodoPagamento object) {\n\t\t\n\t}", "@Test\n\t@Override\n\tpublic void testUpdateObjectWrongIdJson() throws Exception {\n\t}", "@Override\n\tpublic boolean update(Document obj) {\n\t\treturn false;\n\t}", "public void updateEntity();", "public final void setPageType(String pageType) {\n\t\tthis.pageType = pageType;\n\t}", "E update(E entity);", "E update(E entity);", "public void setPage(int page) {\n this.page = page;\n }", "@Test\n public void updatePage() {\n }", "@RequestMapping(value = \"EditStaticPage/{id}\", method = RequestMethod.POST)\n public String updateStaticPage(@PathVariable(\"id\") int staticPageId, @ModelAttribute(\"staticPage\") StaticPage updatedPage, Model model, HttpServletRequest req) {\n model.addAttribute(\"staticPageList\", blogDAO.getListOfStaticPages());\n /**\n * ************************************************************\n */\n List<StaticPage> pages = blogDAO.getListOfStaticPages();\n StaticPage page = new StaticPage();\n int pageCreatorId = 0;\n\n //updatedPage = pages.get(staticPageId);\n for (int i = 0; i < pages.size(); i++) {\n if (pages.get(i).getStaticPageId() == staticPageId) {\n page = pages.get(i);\n pageCreatorId = page.getPageCreatorId();\n }\n }\n updatedPage.setPageTitle(req.getParameter(\"title\"));\n\n updatedPage.setPageCreatorId(pageCreatorId);\n updatedPage.setStaticPageId(staticPageId);\n blogDAO.editStaticPage(updatedPage);\n\n return \"redirect:/AdminStaticPage\";\n }", "UpdateType updateType();", "int updateByPrimaryKey(HotelType record);", "Builder addMainEntityOfPage(CreativeWork value);", "void replacePojo(Object pojo);", "public final int saveAndGetId(final Page page) throws DAOException {\n String query = \"INSERT INTO pages (name, description, json) VALUES (?, ?,?)\";\n String query2 = \"SELECT MAX(id) FROM pages \";\n\n int result = 0;\n Connection con = null;\n PreparedStatement pstmt = null;\n\n try {\n con = JDBCDAOFactory.getConnection();\n con.setAutoCommit(false);\n\n pstmt = con.prepareStatement(query);\n if (page.getName() != null) {\n pstmt.setString(1, page.getName());\n } else {\n pstmt.setNull(1, Types.VARCHAR);\n }\n if (page.getDescription() != null) {\n pstmt.setString(2, page.getDescription());\n } else {\n pstmt.setNull(2, Types.VARCHAR);\n }\n if (page.getJson() != null) {\n pstmt.setString(3, page.getJson());\n } else {\n pstmt.setNull(3, Types.VARCHAR);\n }\n result = pstmt.executeUpdate();\n pstmt.close();\n\n\n boolean[] existingFields = new boolean[3];\n String[] values = new String[3];\n StringBuilder sb = new StringBuilder();\n sb.append(\" WHERE 1=1 \");\n if (page.getName() != null) {\n sb.append(\" and name = ? \");\n existingFields[0] = true;\n values[0] = page.getName();\n }\n if (page.getDescription() != null) {\n sb.append(\" and description = ? \");\n existingFields[1] = true;\n values[1] = page.getDescription();\n }\n if (page.getJson() != null) {\n sb.append(\" and json = ? \");\n existingFields[2] = true;\n values[2] = page.getJson();\n }\n\n pstmt = con.prepareStatement(query2 + sb.toString());\n for (int i = 0; i < existingFields.length; i++) {\n if (existingFields[i]) {\n pstmt.setString(i + 1, values[i]);\n }\n }\n ResultSet rs = pstmt.executeQuery();\n if (rs.next()) {\n result = rs.getInt(1);\n }\n rs.close();\n\n con.commit();\n } catch (SQLException ex) {\n throw new DAOException(ex);\n } finally {\n DBUtils.closeStatement(pstmt);\n DBUtils.closeConnection(con);\n }\n return result;\n }", "private synchronized void flushPage(PageId pid) throws IOException {\n // some code goes here\n // not necessary for proj1\n try {\n Page page = bufferedPages.get(pid).page;\n page.markDirty(false, null);\n DbFile dbFile = Database.getCatalog()\n .getDbFile(((HeapPageId)pid).getTableId());\n dbFile.writePage(page);\n } catch(IOException e) {\n e.printStackTrace();\n System.exit(0);\n }\n }", "int updateByExampleSelective(@Param(\"record\") PageItemCfg record, @Param(\"example\") PageItemCfgExample example);", "public boolean updatePagesInfo (com.mcip.bus.orb.PagesInfo pagesinfoobj) throws com.mcip.orb.CoException {\n return this._delegate.updatePagesInfo(pagesinfoobj);\n }", "T update(T entity);", "T update(T entity);", "public <T> T update(T entity);", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "int updateByPrimaryKey(PmPost record);", "int updateByExample(@Param(\"record\") PageItemCfg record, @Param(\"example\") PageItemCfgExample example);", "@Override\n protected Response doUpdate(Long id, JSONObject data) {\n return null;\n }", "private void setPageProperties(PageDef pageDef){\n\t\tenableQuestionOnlyProperties(false);\n\n\t\ttxtText.setEnabled(true);\n\t\t//txtDescTemplate.setVisible(false);\n\t\t//btnDescTemplate.setVisible(false);\n\t\tenableDescriptionTemplate(false);\n\t\ttxtCalculation.setEnabled(false);\n\t\tbtnCalculation.setEnabled(false);\n\n\t\ttxtText.setText(pageDef.getName());\n\t\ttxtBinding.setText(String.valueOf(pageDef.getPageNo()));\n\t\t//skipRulesView.updateSkipRule();\n\t}", "public void update(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.update(obj);\n\t\t\n\t}", "@Override\n protected void updateProperties() {\n }", "int updateByPrimaryKeySelective(HotelType record);", "protected Page<V> getVO (Page<T> page, Pageable pageRequest) {\n List<V> contentVO = getVO(page.getContent());\n Page<V> pageResult = new PageImpl<>(contentVO, pageRequest, page.getTotalElements());\n return pageResult;\n }", "@Override\r\n\tpublic void update(PartyType entity) {\n\t\t\r\n\t}", "public void updateNonDynamicFields() {\n\n\t}", "void update(org.sakaiproject.nakamura.api.lite.Session session, String profilePath,\n JSONObject json, boolean replace, boolean replaceProperties, boolean removeTree)\n throws StorageClientException, AccessDeniedException, JSONException;", "int updateByPrimaryKey(WpPosts record);", "public void updateByObject()\r\n\t{\n\t}", "public void setPageableParams(Page pageObj) {\n\n if(pageObj ==null){\n\n return;\n\n }\n // Set the current page number\n setPageNumber(pageObj.getNumber());\n\n // Set the total pages\n setTotalPages(pageObj.getTotalPages());\n\n // Set the total elements in all pages\n setTotalElements(pageObj.getTotalElements());\n\n }", "int updateByPrimaryKeySelective(Tipologia record);", "int updateByPrimaryKeySelective(TNavigation record);", "void MypageUpdate(SecondUserDto userId) throws Exception;", "void update(Type type);", "public interface GoodsTypeDao extends JpaRepository<GoodsType,Integer> {\n\n @Modifying\n @Transactional\n @Query(nativeQuery = true,\n value = \"update goods_type \"\n +\"set type_name=:#{#goodsType.name} where type_id=:#{#goodsType.id}\")\n void updataGoodsType(@Param(\"goodsType\") GoodsType goodsType);\n}", "public void update(Pessoa p) {\n\t\tdb.save(p);\t\t\n\t}", "E update(E entiry);", "@Override\n\tpublic Post updatePost(Post post) {\n\t\treturn null;\n\t}", "@Override\n public void updateProperties(final String id, final Map<Name, Property> properties ) {\n final File sidecarFile = sidecarFile(id);\n try {\n final EditableDocument document;\n if (!sidecarFile.exists()) {\n if (properties.isEmpty()) {\n return;\n }\n sidecarFile.createNewFile();\n document = Schematic.newDocument();\n } else {\n try (final FileInputStream sidecarStream = new FileInputStream(sidecarFile)) {\n final Document existing = Json.read(sidecarStream, false);\n document = Schematic.newDocument(existing);\n }\n }\n properties.forEach((key, property) -> {\n if (property == null) {\n translator.removeProperty(document, key, null, null);\n } else {\n translator.setProperty(document, property, null, null);\n }\n });\n try (final FileOutputStream outputStream = new FileOutputStream(sidecarFile)) {\n Json.write(document, outputStream);\n }\n } catch (final IOException e) {\n throw new RepositoryRuntimeException(id, e);\n }\n }", "@Override\n public void updateProperties() {\n // unneeded\n }", "@Override\n\tpublic boolean update(Item obj) {\n\t\ttry{\n\t\t\tString query=\"UPDATE items SET title = ?, start_date = ?, end_date = ?, type = ? WHERE id = ?\";\n\t\t\tPreparedStatement state = conn.prepareStatement(query,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t\tstate.setString(1, obj.getTitle());\n\t\t\tstate.setDate(2, obj.getStartDate());\n\t\t\tstate.setDate(3, obj.getEndDate());\n\t\t\tstate.setInt(4, obj.getItemType().getIndex());\n\t\t\tstate.setInt(5, obj.getIndex());\n\t\t\t\n\t\t\t// Run the query\n\t\t\tstate.executeUpdate();\n\n\t\t\tstate.close();\n\t\t\t\n\t\t\t// Notify the Dispatcher on a suitable channel.\n\t\t\tthis.publish(EntityEnum.ITEM.getValue());\n\t\t\t\n\t\t\treturn true;\n\t\t} catch (SQLException e){\n\t\t\tJOptionPane jop = new JOptionPane();\n\t\t\tjop.showMessageDialog(null, e.getMessage(),\"PostgreSQLItemDao.update -- ERROR!\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public abstract <T> void update(String id, Map<String, Object> objectMap, Class<T> clazz);" ]
[ "0.5905048", "0.590456", "0.58252484", "0.57581806", "0.5610805", "0.55605775", "0.55605775", "0.55089444", "0.5382412", "0.534322", "0.5282101", "0.5252627", "0.5217884", "0.5214176", "0.52030635", "0.51343864", "0.5129626", "0.51118654", "0.50628084", "0.5059388", "0.50363547", "0.5020509", "0.50011086", "0.49989274", "0.49989274", "0.49891087", "0.4987744", "0.4985974", "0.49804854", "0.49745768", "0.49588183", "0.4891956", "0.48901284", "0.48869562", "0.4880589", "0.48793098", "0.48769873", "0.484667", "0.48463547", "0.4818963", "0.4813821", "0.48106033", "0.48029315", "0.48025087", "0.47964516", "0.47931919", "0.47884792", "0.4780562", "0.4764687", "0.47621167", "0.4755236", "0.47500205", "0.47496706", "0.4744824", "0.47365403", "0.47346473", "0.47249892", "0.471963", "0.471963", "0.47195834", "0.47189787", "0.47127405", "0.4700408", "0.46937355", "0.4690705", "0.46789867", "0.46774182", "0.46637696", "0.46621522", "0.4657936", "0.46552703", "0.46552703", "0.4651994", "0.46443024", "0.4641175", "0.46369654", "0.46342334", "0.4632896", "0.46302053", "0.46279895", "0.46269578", "0.4618394", "0.46178615", "0.46174753", "0.4617324", "0.46148545", "0.46070144", "0.46058625", "0.46047536", "0.4602921", "0.46000627", "0.4599794", "0.4599773", "0.4592791", "0.4588788", "0.45843917", "0.4581305", "0.4580565", "0.45781714", "0.45755914" ]
0.65944666
0
Deletes an object of Page type from the database.
public final int delete(final Page page) throws DAOException { String query = "DELETE FROM pages WHERE id=?"; int result = 0; Connection con = null; PreparedStatement pstmt = null; try { con = JDBCDAOFactory.getConnection(); con.setAutoCommit(false); pstmt = con.prepareStatement(query); pstmt.setInt(3, page.getId()); result = pstmt.executeUpdate(); con.commit(); } catch (SQLException ex) { throw new DAOException(ex); } finally { DBUtils.closeStatement(pstmt); DBUtils.closeConnection(con); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean delete(PageId pageId);", "public void deletePage(int pageId) throws SQLException {\n\t\tif (upodDao.pageExists(pageId)) {\n\t\t\tupodDao.deletePage(pageId);\n\t\t}\n\t}", "@Override\r\n\tpublic int delete(int num) {\n\t\treturn mypagedao.delete(num);\r\n\t}", "public void deletePageById(long id) {\n pageImpl.deletePageById(id);\n }", "public void deletePagoById(String id){\n pagoMongoRepository.deleteById(id);\n }", "void delete(T obj) throws PersistException;", "<T> void delete(T persistentObject);", "@Override\n\tpublic int deleteObject(Evaluate entity) {\n\t\treturn evaluateMapper.deleteObject(entity);\n\t}", "void delete(T persistentObject);", "@Override\n\tpublic void delete(T t) {\n\t\thibernateTemplate.delete(t);\n\t}", "public void delete(TipoPk pk) throws TipoDaoException;", "@Override\n\tpublic void delete(MedioPago entidad) {\n\t\t\n\t}", "public void doDelete(T objectToDelete) throws SQLException;", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Unidade obj) {\n\n\t}", "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }", "@Override\r\n\tpublic void deletePost(Post post) {\n\t\tgetHibernateTemplate().delete(post);\r\n\t}", "void delete(Object entity);", "@Override\n\tpublic void delete(Object object) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction ts = session.beginTransaction();\n\t\tsession.delete(object);\n\t\tts.commit();\n\t\tsession.close();\n\t}", "public void delete( T obj) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\t\n\t\tsession.delete(obj);\n\t}", "public void removePage(Page page){\n\t\tpages.remove(page);\n\t\t///////////////////observer metode\n\t\tModelUpdateEvent event = new ModelUpdateEvent((Object)page,false,true);\n\t\tsetChanged();\n\t\tnotifyObservers(event);\n\t\t///////////////////////////////////\n\t}", "@Override\n public boolean deleteObject(Pyramid obj) {\n if(obj!=null){\n return this.deleteById(obj.getId());\n }else{\n return false;\n }\n }", "int deleteByPrimaryKey(String idTipoPersona) throws SQLException;", "public boolean deletePersistedObject(final Class myClass) {\n return this.deleteFromMasterDB(myClass);\n }", "@Override\r\n\tpublic boolean delete(Pilote obj) {\r\n\t\tboolean succes=true;\r\n\t\tString req = \"delete from \" + TABLE + \" where numPil= ?\" + \";\";\r\n\t\tPreparedStatement pst;\r\n\t\ttry {\r\n\t\t\tpst = Connexion.getInstance().prepareStatement(req);\r\n\t\t\tpst.setInt(1, obj.getNumPil());\r\n\t\t\tpst.executeUpdate();\r\n\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tsucces=false;\r\n\t\t\tSystem.out.println(\"Echec de la tentative delete pilote : \" + e.getMessage()) ;\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn succes;\r\n\t}", "@Override\r\n\tpublic void delete(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().delete(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "protected void deleteRecord() throws DAOException {\r\n\t\t// Elimina relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\tsedrelcoDao.delete(relco);\r\n\t\t}\r\n\t\t// Elimina objeto\r\n\t\tobjectDao.delete(object);\r\n\t}", "int deleteByPrimaryKey(Integer typeiId);", "public void delete( final T model )\n\t{\n\t\tthis.dao.delete( model );\n\t}", "@Override\n\tpublic void delete(ExperTypeVO expertypeVO) {\n\n\t}", "@Override\r\n\tpublic void delete(Object object) {\n\t\t\r\n\t}", "public void delete() throws EntityPersistenceException {\n\n }", "@Override\n\tpublic int delete(int courseTypeNo) {\n\t\treturn courseTypeDaoImpl.delete(courseTypeNo);\n\t}", "@Execute(validator = true, input = \"error.jsp\", urlPattern = \"deletepage/{crudMode}/{id}\")\n /* CRUD COMMENT: END */\n /* CRUD: BEGIN\n @Execute(validator = true, input = \"error.jsp\", urlPattern = \"deletepage/{crudMode}/{${table.primaryKeyPath}}\")\n CRUD: END */\n public String deletepage() {\n if (crudTableForm.crudMode != CommonConstants.DELETE_MODE) {\n throw new ActionMessagesException(\"errors.crud_invalid_mode\",\n new Object[] { CommonConstants.DELETE_MODE,\n crudTableForm.crudMode });\n }\n \n loadCrudTable();\n \n return \"confirm.jsp\";\n }", "int deleteByPrimaryKey(String objId);", "int deleteByPrimaryKey(String objId);", "protected static void deleteObjectFromDB(Object obj) {\n String query;\n\n if (obj instanceof User) {\n query = String.format(\"DELETE FROM users WHERE username='%s'\", ((User) obj).getUsername());\n } else if (obj instanceof Company) {\n query = String.format(\"DELETE FROM companies WHERE name='%s'\", ((Company) obj).getName());\n } else {\n Print.print(\"Object type not supported to remove from db.\");\n return;\n }\n\n UpdateSQL.updateDBWithQuery(query);\n }", "@Override\r\n\tpublic void remove(long id) {\n\t\tObject obj = getHibernateTemplate().get(CustomizePage.class, id);\r\n\t\tgetHibernateTemplate().delete(obj);\r\n\t}", "@Override\n\tpublic int deleteByObject(Personmanagemarticle record) {\n\t\treturn personmanagemarticleMapper.deleteByObject(record);\n\t}", "@Override\n public void removeFromDb() {\n }", "public void deleteObject() {\n\n\t}", "public void delete(E model) {\n\t\tgetHibernateTemplate().delete(model);\r\n\t}", "@Override\n\tpublic void delete(NewsCollection findOne) {\n\t\tnewsCollectionMapper.delete(findOne);\n\t\t\n\t}", "public void delete(NominaPuestoPk pk) throws NominaPuestoDaoException;", "boolean delete(Long id, Class<T> type);", "public void delete(Object obj) throws SQLException {\n\r\n\t}", "int deleteByPrimaryKey(Long navigationId);", "int deleteByExample(PageFuncExample example);", "void deleteEntityById(Long id);", "int deleteByPrimaryKey(Integer postid);", "public void remove(DBObject dbObjectQuery);", "@Override\n\tpublic void deleteByType(int type) {\n\t\tsettingDao.deleteByType(type);\n\t}", "public void delete(RutaPk pk) throws RutaDaoException;", "@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}", "void deletePostById(int id);", "@Override\n\tpublic boolean delete(Object obj) throws SQLException {\n\t\treturn false;\n\t}", "void deleteBlogPost(BlogPost blogPost);", "@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}", "@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}", "@Override\r\n\tpublic Ngo delete(Ngo obj) {\n\t\treturn null;\r\n\t}", "public T delete(T t) {\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tString query = createDelete(t);\n\t\ttry {\n\t\t\tconnection = ConnectionDB.getConnection();\n\t\t\tstatement = connection.prepareStatement(query);\n\t\t\tstatement.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, type.getName() + \"DAO:Delete \" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionDB.close(statement);\n\t\t\tConnectionDB.close(connection);\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\tpublic boolean delete(Moteur obj) {\n\t\treturn false;\r\n\t}", "@Override\n public void deleteItem(P_CK t) {\n \n }", "public <T> void delete(final Object obj) {\n txTemplate.execute(new TransactionCallbackWithoutResult() {\n @Override\n public void doInTransactionWithoutResult(TransactionStatus status) {\n getHibernateTemplate().delete(obj);\n }\n });\n }", "public void delete(Object bo) {\r\n getPersistenceBrokerTemplate().delete(bo);\r\n }", "@Override\n\tpublic void delete(T obj) throws Exception {\n\t\t\n\t}", "boolean removeObject(int ID) throws DatabaseNotAccessibleException;", "public boolean delete(ModelObject obj);", "public void deletePage(int position)\n {\n arrayIndexes.remove(position);\n // Notify the adapter that the data set is changed\n notifyDataSetChanged();\n }", "void delete(T entity);", "void delete(T entity);", "int deleteByPrimaryKey(String postId);", "@Override\r\n\tpublic void delete(Visit object) {\n\t\tsuper.delete(object);\r\n\t}", "protected void delete(Object object) {\n EntityManager em = getEntityManager();\n em.getTransaction().begin();\n try {\n em.remove(object);\n em.getTransaction().commit();\n } catch (Exception e) {\n LOG.error(\"Could not delete Object\", e);\n em.getTransaction().rollback();\n } finally {\n em.close();\n }\n }", "@Override\n public void eliminarElemento(Object elemento) {\n database.delete(elemento);\n }", "@Override\n\tpublic int delete(PrestationCDI obj) throws DAOException {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void delete(T entity) {\n\t}", "@Override\n public boolean delete(Revue objet) {\n return false;\n }", "public void Delete(){\n String whereClause2 = PostDatabase.ID + \" = ?\";\n // Specify arguments in placeholder order.\n String[] whereArgs2 = { \"6\" };\n // Issue SQL statement.\n sqlDB.delete(PostDatabase.TABLE_POSTS, whereClause2, whereArgs2);\n\n }", "@Override\r\n\tpublic void deleteEntity(TypeModePaiement entity) {\n\t\trepository.deleteById(entity.getIdTypeMdp());\r\n\t}", "public Integer deletePaymentType(PaymentTypeObject paymentTypeObject) throws AppException;", "@Override\n\tpublic int delete(Object object) {\n\t\treturn 0;\n\t}", "public void delete(Object o) throws RNoEntityException{\n\t\tEntity e = ALiteOrmBuilder.getInstance().getEntity(o.getClass());\n\t\tif(e == null)\n\t\t\tthrow new RNoEntityException(\"For : \" + o.getClass().getName());\n\t\te.delete(this, db, new TravelingEntity(o));\n\t}", "@Override\n\tpublic void delete(BatimentoCardiaco t) {\n\t\t\n\t}", "int deleteByPrimaryKey(Integer oId);", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "public void delete(Premie premie){\n premieRepository.delete(premie);\n }", "@Override\n\tpublic ImageEntity delete(Object entity) {\n\t\tDatabaseContext.delete(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "@Override\n public int delete(Object object) throws DAOException {\n EntityManager entitymanager = this.factory.createEntityManager();\n Long terrainId = (long) -1;\n if (object instanceof Long) {\n terrainId = (Long) object;\n }\n try {\n // Lancement d'une transaction\n entitymanager.getTransaction().begin();\n\n // Chercher un utilisateur par son email\n Terrain terrain = entitymanager.find(Terrain.class, terrainId);\n\n if (terrain != null) {\n // suppression de l'inscrit et mise à jours de la table\n entitymanager.remove(terrain);\n entitymanager.getTransaction().commit();\n }\n\n } catch (Exception e) {\n System.out.println(\"Canno't delete terrain\");\n return -1;\n } finally {\n entitymanager.close();\n }\n return 0;\n }", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "@Override\n\tpublic void delete(T entity) {\n\t\tbaseDaoImpl.delete(entity);\n\t}", "@Override\n\tpublic void delete(T entity) {\n\t\tbaseDaoImpl.delete(entity);\n\t}", "@Override\n\tpublic void delete(Integer id) {\n\t\tgastoModel.deleteById(id);\n\t}", "@Override\n\tpublic boolean delete(Langues obj) {\n\t\treturn false;\n\t}" ]
[ "0.7325631", "0.67950916", "0.65256536", "0.6358296", "0.6330977", "0.62746394", "0.6135222", "0.61113304", "0.6049006", "0.6041806", "0.5997882", "0.5988961", "0.5982345", "0.5981507", "0.59797376", "0.5959048", "0.59570694", "0.5948219", "0.59412485", "0.59185183", "0.58909744", "0.5878995", "0.58782274", "0.5836566", "0.5820564", "0.5819705", "0.58174586", "0.581537", "0.58085364", "0.5803563", "0.58008915", "0.57974607", "0.57923937", "0.5791473", "0.5780876", "0.5780876", "0.5774714", "0.57732975", "0.57714146", "0.575519", "0.5739353", "0.5737822", "0.57310116", "0.5715372", "0.5712965", "0.57074374", "0.5697523", "0.569004", "0.56810856", "0.56802243", "0.5671796", "0.5669462", "0.5666307", "0.5660289", "0.5657871", "0.56447256", "0.56443095", "0.5633951", "0.5633951", "0.56337756", "0.56281894", "0.56242317", "0.5620423", "0.56168294", "0.561427", "0.5612989", "0.56061965", "0.56058055", "0.55989575", "0.55944467", "0.55944467", "0.55877626", "0.5584124", "0.5576737", "0.5576455", "0.557339", "0.557312", "0.5572558", "0.55707586", "0.5569865", "0.5567919", "0.5565222", "0.55605215", "0.5559694", "0.5554644", "0.55539143", "0.555214", "0.55497664", "0.5546749", "0.5544379", "0.55442566", "0.55442566", "0.55442566", "0.55442566", "0.55442566", "0.55442566", "0.5542651", "0.5542651", "0.554153", "0.5539748" ]
0.676666
2
Searches the Page objects into the database according with a given pattern.
public final Page find(final Page page) throws DAOException { String query = "SELECT id, name, description, json FROM pages WHERE id=?"; Connection con = null; PreparedStatement pstmt = null; ResultSet rs = null; Page pageFound = null; try { con = JDBCDAOFactory.getConnection(); pstmt = con.prepareStatement(query); pstmt.setInt(1, page.getId()); rs = pstmt.executeQuery(); if (rs.next()) { pageFound = new Page(); pageFound.setId(rs.getInt("id")); pageFound.setName(rs.getString("name")); pageFound.setDescription(rs.getString("description")); pageFound.setJson(rs.getString("json")); } rs.close(); } catch (SQLException ex) { throw new DAOException(ex); } finally { DBUtils.closeStatement(pstmt); DBUtils.closeConnection(con); } return pageFound; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void search(Pattern pattern) {\r\n\t\tregularSearch.setPattern(pattern);\r\n\t\tStringBuffer result = regularSearch.lookAt(new StringBuffer(source\r\n\t\t\t\t.toString()));\r\n\t\tmatchFound(result, source);\r\n\t}", "public List<Page> relevantPages(String query) {\n\t\tList<Page> relevantPages = new ArrayList<>();\n\t\tfor (Page p : pTable.values()) {\n\t\t\tif (matches(query, p.getContent())) {\n\t\t\t\trelevantPages.add(p);\n\t\t\t}\n\t\t}\n\t\treturn relevantPages;\n\t}", "private List<FindResult> findOnPage(int page) {\n\t\t\tif (this.text == null) throw new IllegalStateException(\"text cannot be null\");\n\t\t\treturn this.parent.pdf.find(this.text, page);\n\t\t}", "public Result findByPage(Page page,String hql, Object... params) ;", "@Test\n\tpublic void findByRegularExpression() {\n\t\tBdmService service = new BdmService();\n\t\tservice.setIndexRepository(this.getRepository(10, 100, BDM_CODE));\n\t\tPageableResult<Bdm> list = service.findByRegularExpression(SEARCH_STRING,\n\t\t\t\t10, 100);\n\t\tAssert.assertEquals(this.getTestBdm(), list.getData().iterator().next());\n\t}", "public static void search(){\n\t\tfor (Page p:heap){\n\t\t\tfor(Building b:p.buildings){\n\t\t\t\t\n\t\t\t\t//System.out.println(b.buildingName);\n\t\t\t\tif(b.getBuildingName()!=null) {\n\t\t\t\t\tif(b.getBuildingName().contains(searchQuery)){\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println(\"Building Name: \" + b.getBuildingName());\n\t\t\t\t\t\tSystem.out.println(\"Property ID: \" + b.getPropID());\n\t\t\t\t\t\tSystem.out.println(\"Census year: \" + b.getCensusYear());\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tbuildingsFound++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpagesSearched++;\n\t\t}\n\t}", "public List<Page> searchAll() {\n return mysqlDao.searchAll();\n }", "@Query(value = \"select * from account_details where name ILIKE concat('%',?1,'%')\"+\n \" or country ILIKE concat('%',?1,'%') or address ILIKE concat('%',?1,'%')\"+\n \" or state ILIKE concat('%',?1,'%')\"+\n \" or city ILIKE concat('%',?1,'%')\",nativeQuery = true)\n List<AccountDetail> retrieveAllBySearchCriteria(String pattern);", "final void searchPage(DataInputStream dis,String url)\r\n {\r\n try\r\n\t{\r\n String input; // Raw line read in.\r\n\t String upperCaseInput; // Upper case version of the above\r\n\t String link; // HTML link found\r\n\t String temp; \r\n\t String title=\"\"; // Page Title;\r\n\r\n\t // Read a line at a time.\r\n\t while((input=dis.readLine())!=null)\r\n\t {\r\n\t // Convert to Upper case (makes comparisions easier)\r\n\t\tupperCaseInput=input.toUpperCase();\r\n\t\t// Check for document title\r\n\t\ttemp=parseForTitle(input,upperCaseInput,dis);\r\n\t\t// If a title has been found then remember it. So, that it can displayed on the list box.\r\n\t\tif(temp!=null && temp.length()>0)\r\n\t\t title=temp;\r\n\t //Check for match after title has been found (Don't bother Searching the title though)\r\n\t\tif(title.length()>0 && temp==null)\r\n\t\t checkMatch(input,url,title);\r\n \r\n\t\t// Check to see if this line contains a link\r\n\t\tlink=parseForLink(upperCaseInput,input);\r\n\t\tif(link!=null)\r\n\t\t{\r\n\t\t // Check if the maximum number of pages to search has been reached.\r\n\t\t if(app.getTotalPages()>=maxPages)\r\n\t\t return;\r\n if(topLevelSearch==FIND_TOP_LEVEL_PAGES)\r\n\t\t topLevelPages.addElement(link);\r\n else if(topLevelSearch==SEARCH_TOP_LEVEL_PAGES)\r\n\t\t nextLevelPages.addElement(link);\r\n\t\t else checkLink(link);\t \r\n\t\t}\r\n\t }\r\n }\r\n\tcatch(IOException e){ }\r\n }", "public static List<Cancion> selectAllH2(String pattern) {\n\t\tList<Cancion> result = new ArrayList();\n\n\t\ttry {\n\t\t\tmanager = Connection.connectToH2();\n\t\t\tmanager.getTransaction().begin();\n\n\t\t\tString q = \"FROM Cancion\";\n\n\t\t\tif (pattern.length() > 0) {\n\t\t\t\tq += \" WHERE nombre LIKE ?\";\n\t\t\t}\n\n\t\t\tif (pattern.length() > 0) {\n\t\t\t\tresult = manager.createQuery(\"FROM Cancion WHERE nombre LIKE '\" + pattern + \"%'\").getResultList();\n\t\t\t} else {\n\t\t\t\tresult = manager.createQuery(\"FROM Cancion\").getResultList();\n\t\t\t}\n\n\t\t\tmanager.getTransaction().commit();\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\n\t\treturn result;\n\t}", "@Override\n public List<News> search(String txt, int pageIndex, int pageSize) throws Exception {\n Connection conn = null;\n PreparedStatement statement = null;\n ResultSet result = null;\n List<News> list = new ArrayList<>();\n String query = \"select *from(\"\n + \"select ROW_NUMBER() over (order by ID ASC) as rn, *\\n\"\n + \"from news where title \\n\"\n + \"like ?\"\n + \")as x\\n\"\n + \"where rn between ?*?-2\"\n + \"and ?*?\";\n try {\n conn = getConnection();\n statement = conn.prepareStatement(query);\n statement.setString(1, \"%\" + txt + \"%\");\n statement.setInt(2, pageIndex);\n statement.setInt(3, pageSize);\n statement.setInt(4, pageIndex);\n statement.setInt(5, pageSize);\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 }", "public Page[] searchPages(String query) throws SQLException {\n\t\tSearchUtils.cleanQuery(query);\n\t\t\n\t\tArrayList<Page> pages = new ArrayList<Page>();\n\t\tfor (String term : query.split(\" \")) {\n\t\t\tpages.addAll(upodDao.searchPages(term));\n\t\t}\n\t\treturn sortPagesByRelevance(query, pages);\n\t}", "@Query(\"SELECT i FROM Item i WHERE \"+\n \"upper(i.name) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.number) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.waybill) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.factory) LIKE concat('%',upper(?1),'%')\")\n Page<Item> filterAll(String substring, Pageable pageable);", "@Override\n\tpublic List<SApplicationcategory> find(String searchinfo, int page, int rows) {\n\t\tString hql=\"from \"+tablename +\" where 1=1 \";\t\t\n\t\tif(searchinfo!=null&& !searchinfo.equals(\"\")){\t\t\t\n\t\t\thql+=\" and t.name like '%\"+ searchinfo+\"%' \";\n\t\t}\t\t\n\t\treturn SApplicationcategorydao.find(hql, page, rows);\n\t}", "public static List<Cancion> selectAll(String pattern) {\n\t\tList<Cancion> result = new ArrayList();\n\n\t\ttry {\n\t\t\tmanager = Connection.connectToMysql();\n\t\t\tmanager.getTransaction().begin();\n\n\t\t\tString q = \"FROM Cancion\";\n\n\t\t\tif (pattern.length() > 0) {\n\t\t\t\tq += \" WHERE nombre LIKE ?\";\n\t\t\t}\n\n\t\t\tif (pattern.length() > 0) {\n\t\t\t\tresult = manager.createQuery(\"FROM Cancion WHERE nombre LIKE '\" + pattern + \"%'\").getResultList();\n\t\t\t} else {\n\t\t\t\tresult = manager.createQuery(\"FROM Cancion\").getResultList();\n\t\t\t}\n\n\t\t\tmanager.getTransaction().commit();\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\n\t\treturn result;\n\t}", "Page<T> search(Pageable pageable, String query);", "public PageBean<Match> find(String name) {\n\t\tif(name==null||\"\".equals(name.trim())){\r\n\t\t\treturn matchDao.find(\"from Match\");\r\n\t\t}else{\r\n\t\t\treturn matchDao.find(\"from Match where nickname like ? or userName like ?\",\r\n\t\t\t\t\tnew Object[]{\"%\"+name+\"%\",\"%\"+name+\"%\"});\r\n\t\t\t\r\n\t\t}\r\n\t}", "abstract public void search();", "@Override\n\tpublic Page<Product> findKeyWordPage(Integer pageint, String searchContent) {\n\t\tPageRequest pageable = PageRequest.of(pageint, 9);\n//\t\tPage<Product> page = productRepository.findBydescriptionLike(pageable, searchContent);\n\t\tPage<Product> page = productRepository.searchAll(pageable, searchContent);\n\t\t\n\t\tSystem.out.println(\"page->\"+page.getContent());\n\t\treturn page;\n\t}", "public ObjectCreatedSearchQuery(JiveSearchPattern pattern) {\n\t\tthis.exporter = new NewEventExporter();\n\t\tthis.pattern = pattern;\n\t}", "public Page page(Page page, String hql,Object[] objWhere){\r\n if(hql==null || \"\".equals(hql))\r\n {\r\n hql = \" from SearchMessageDTO Z\";\r\n }\r\n return searchMessageDAO.findPage(page, hql, objWhere);\r\n}", "@Query(\"select i from Item i where lower(i.name) like lower(?1)\")\n Page<Item> searchInNames(String namePart, Pageable pageable);", "@Query(value = \"SELECT * FROM account_details WHERE name ilike concat('%',?1,'%')\"\n ,nativeQuery = true)\n List<Account> readAccountByPattern(String pattern);", "public void getOppoByStr(String str, Page<Oppo> page) {\n\t\t\tList<Oppo> list=new ArrayList<Oppo>();\r\n\t\t\t Oppo oppo=null;\r\n\t\t\t Connection con=null;\r\n\t\t\t PreparedStatement pst=null;\r\n\t\t\t ResultSet rs=null;\r\n\t\t\t try{\r\n\t\t\t\tcon=DBUtil.getCon();\r\n\t\t\t\tString count=\"select count(*) from oppo where opponame like ?\";\r\n\t\t\t\tpst=con.prepareStatement(count);\r\n\t\t\t\tpst.setString(1,\"%\"+str+\"%\");\r\n\t\t\t\trs=pst.executeQuery();\r\n\t\t\t\tif(rs.next()){\r\n\t\t\t\tpage.setTotalCount(rs.getInt(1));\r\n\t\t\t\t}\r\n\t\t\t\tString sql=\"select * from oppo where opponame like ? limit ?,?\";\r\n\t\t\t\tpst=con.prepareStatement(sql);\r\n\t\t\t\tpst.setString(1,\"%\"+str+\"%\");\r\n\t\t\t\tpst.setInt(2,(page.getCurrentPage()-1)*page.getPageCount());\r\n\t\t\t\tpst.setInt(3,page.getPageCount());\r\n\t\t\t\trs=pst.executeQuery();\r\n\t\t\t\twhile(rs.next()){\r\n\t\t\t\t\toppo=new Oppo();\r\n\t\t\t\t\toppo.setCatalogid(rs.getInt(\"catalogid\"));\r\n\t\t\t\t\toppo.setOpponame(rs.getString(\"opponame\"));\r\n\t\t\t\t\toppo.setOppoid(rs.getInt(\"oppoid\"));\r\n\t\t\t\t\toppo.setPicture(rs.getString(\"picture\"));\r\n\t\t\t\t\toppo.setPrice(rs.getFloat(\"price\"));\r\n\t\t\t\t\tlist.add(oppo);\r\n\t\t\t\t\tpage.setPageData(list);\r\n\t\t\t\t}\r\n\t\t\t }catch(Exception e){\r\n\t\t\t\te.printStackTrace(); \r\n\t\t\t }finally{\r\n\t\t\t\t DBUtil.closeAll(con, rs, pst);\r\n\t\t\t }\r\n\t\t\t \r\n\t}", "private static List<String> getAllMatches(final String page, final String pattern, final int group)\n {\n if (page == null || page.length() == 0)\n {\n return Collections.emptyList();\n }\n\n final List<String> trimmedMatches = new ArrayList<String>();\n final List<String> matches = RegExUtils.getAllMatches(page, \"(?is)\" + pattern, group);\n\n for (int i = 0; i < matches.size(); i++)\n {\n final String s = matches.get(i);\n\n final String trimmed = s.trim();\n if (trimmed.length() > 0)\n {\n trimmedMatches.add(trimmed);\n }\n }\n\n return trimmedMatches;\n }", "@Query(value = \"SELECT * FROM account_details where name ILIKE concat('%',?1,'%') OR country ILIKE concat('%', ?1, '%') OR address ILIKE concat('%', ?1, '%') OR state ILIKE concat('%', ?1, '%')\",\n nativeQuery = true)\n List<Account> getSpecificAccount(String pattern);", "List<T> findPage(int pageNumber);", "public Result sqlQueryByPage(String sql,Page page,Object... params);", "@In String search();", "public Page<Search> getAll(Integer page) {\r\n\t\tUser user = userService.getLoggedUser();\r\n\t\treturn searchRepository.findAllByUser(user, user.getUserPreferences().getSearchCount().getPageable(page));\r\n\t}", "List<Account> findAccountByAddressStartingWith(String pattern);", "Page<Preferences> search(String query, Pageable pageable);", "@Override\r\n\tpublic List<Post> searchInfResult(String word) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectPosts(word);\r\n\t}", "@Override\n\tpublic List<Factory> findPage(Page page) {\n\t\treturn null;\n\t}", "public void search() {\r\n \t\r\n }", "public Iterable<Integer> findAll (String pat, String txt) {\n // Fila que armazena as posicoes nas quais foram encontradas \n // o padrao no texto \n Queue<Integer> queue = new Queue<Integer> ();\n\n int N = txt.length ();\n int M = pat.length ();\n // Armazena a posicao das ocorrencias do padrao no texto\n int position;\n // Posicao a partir do qual o texto sera processado\n int start = 0;\n\n // Achando o estado que devemos ficar apos encontrar um padrao no texto\n int X = 1;\n\n // Achando todas as ocorrencias do padrao\n do { \n position = search (txt, start);\n if (position < N) {\n queue.enqueue (position);\n }\n start = position + X;\n } while (start < txt.length ());\n \n return queue;\n }", "Enumeration<URL> findEntries(String path, String pattern, boolean recurse) throws IOException;", "@Override\n public List<Digital> getSearch(String txt, int pageIndex, int pageSize) throws Exception {\n\n Connection con = null;\n ResultSet rs = null;\n PreparedStatement ps = null;\n List<Digital> list = new ArrayList<>();\n String query = \"select *from(\"\n + \"select ROW_NUMBER() over (order by ID ASC) as rn, *\\n\"\n + \"from digital where title \\n\"\n + \"like ?\"\n + \")as x\\n\"\n + \"where rn between ?*?-2\"\n + \"and ?*?\";\n // check connection of db if cannot connect, it will throw an object of Exception\n try {\n con = getConnection();\n ps = con.prepareStatement(query);\n ps.setString(1, \"%\" + txt + \"%\");\n ps.setInt(2, pageIndex);\n ps.setInt(3, pageSize);\n ps.setInt(4, pageIndex);\n ps.setInt(5, pageSize);\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 } 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 interface RegisterVisitorSearchRepository {\n\n Page findBySearchText(String searchText, TypeShowData typeShowData, Pageable page) throws Exception;\n\n}", "Condition like(QueryParameter parameter, String pattern);", "public Page<BlogEntry> search(final String term, final Pageable page) {\n return blogEntryRepository.findBySubjectContainsOrBodyContainsAllIgnoreCase(term, term, page);\n }", "List<Card> search(String searchString) throws PersistenceCoreException;", "@Override\r\n\tpublic Page<UserModule> findPage(String hql, Page<UserModule> page, Class<UserModule> entityClass, Object[] params) {\n\t\treturn baseDao.findPage(hql, page, entityClass, params);\r\n\t}", "private void searchFunction() {\n\t\t\r\n\t}", "public ArrayList<Article> search(String keyword, int pageIndex, int pageSize)\n throws Exception {\n String sql = \"WITH t AS (\\n\"\n + \"SELECT ROW_NUMBER() OVER (ORDER BY [time] DESC) rownum,* \"\n + \"FROM dbo.Article \\n\"\n + \"WHERE title LIKE '%' + ? + '%' OR content LIKE '%' + ? + '%'\\n\"\n + \")\\n\"\n + \"SELECT * FROM t \"\n + \"WHERE t.rownum >= (? - 1) * ? + 1 AND t.rownum <= ? * ?\";\n ArrayList<Article> articles = new ArrayList<>();\n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n con = getConnection();\n st = con.prepareStatement(sql);\n st.setString(1, keyword);\n st.setString(2, keyword);\n st.setInt(3, pageIndex);\n st.setInt(4, pageSize);\n st.setInt(5, pageIndex);\n st.setInt(6, pageSize);\n rs = st.executeQuery();\n while (rs.next()) {\n Article a = new Article();\n a.setId(rs.getInt(\"id\"));\n a.setTitle(rs.getString(\"title\"));\n a.setContent(rs.getString(\"content\"));\n a.setDescription(rs.getString(\"description\"));\n a.setImage(getImgPath() + rs.getString(\"image\"));\n a.setTime(rs.getTimestamp(\"time\"));\n a.setAuthor(rs.getString(\"author\"));\n articles.add(a);\n }\n } catch (Exception ex) {\n throw ex;\n } finally {\n closeResultSet(rs);\n closePreparedStatement(st);\n closeConnection(con);\n }\n return articles;\n }", "@Query(\"{'alias':{$regex: ?0}}\")\n Flux<Attempt> findRegexByAliasWithPage(String alias, Pageable page);", "public abstract Page<CustomerInfo> findAll(GlobalSearch globalSearch, Pageable pageable);", "public List<Post> getBySearchString(String search) throws SQLException {\r\n\tString sql = \"SELECT * FROM posts WHERE content LIKE ? ORDER BY date DESC LIMIT ?\";\r\n\tPreparedStatement st = db.prepareStatement(sql);\r\n\tst.setQueryTimeout(TIMEOUT);\r\n\t\r\n\tst.setString(1, \"%\" + search + \"%\");\r\n\tst.setInt(2, LIMIT);\r\n\t\r\n\tResultSet results = st.executeQuery();\r\n\tList<Post> parsed = parseResults(results);\r\n\treturn parsed;\r\n }", "@Override\n\tpublic void search() {\n\t}", "private List<Integer> search(String pattern, int startPosition)\n {\n if (pattern.length() == startPosition) return indexes;\n\n// we are currently at the root\n if (children.get(pattern.charAt(startPosition)) != null)\n {\n return children.get(pattern.charAt(startPosition)).search(pattern, ++startPosition);\n }\n\n return null;\n }", "@Override\r\n\tpublic void search() {\n\r\n\t}", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public void search() {\n }", "@Override\n\tpublic Page<Role> findPage(String hql, Page<Role> page, Class<Role> entityClass, Object[] params) {\n\t\treturn baseDao.findPage(hql, page, entityClass, params);\n\t}", "@Override\r\n\tpublic List<String> getListByPattern(String pattern) {\n\t\treturn companyRepository.getPattern(pattern);\r\n\t}", "public List<Product> search(String searchString);", "void search();", "void search();", "@Override\n\tpublic PageBean<AnimalHelp> findAnimal(Integer page, AnimalFindHelp AnimalFindHelp) {\n\t\tPageBean<AnimalHelp> pageBean = new PageBean<AnimalHelp>();\n\t\t\n\t\tSystem.out.println(\"pageBean : \" + pageBean + \";\" + page);\n\t\tpageBean.setPage(page);\n\t\tpageBean.setLimit(com.bs.constant.Constant.PAGE_LIMIT);\n\t\t//int totalCount = animalDao.findCountFeed();\n\t\tint totalCount = 0;\n\t\ttotalCount = animaldao.findCountByInformation(AnimalFindHelp);\n\t\tSystem.out.println(\"totalCount = \" + totalCount);\n\t\tpageBean.setTotalCount(totalCount);\n\t\tint totalPage = (int)Math.ceil((double)totalCount/(double)Constant.PAGE_LIMIT);\n\t\tSystem.out.println(\"totalPage = \" + totalPage);\n\t\tpageBean.setTotalPage(totalPage);\n\t\tint start = pageBean.getLimit()*(pageBean.getPage() - 1) + 1;\n\t\tSystem.out.println(\"start = \" + start);\n\t\tList<?> primarylist = animaldao.findAllFeedByPage(start,AnimalFindHelp);\n\t\tSystem.out.println(\"primarylist == null : \" + primarylist == null);\n\t\tif (primarylist != null && primarylist.size() > 0) {\n\t\t\tSystem.out.println(\"查到的list的长度\" + primarylist.size());\n\t\t\tSystem.out.println(primarylist.get(0));\n\t\t\tAnimal findAnimal = new Animal();\n\t\t\tAnimalInformation findAnimalInformation = new AnimalInformation();\n\t\t\t\n\t\t\tList<AnimalHelp> animalFindHelps = new ArrayList<AnimalHelp>();\n\t\t\tSystem.out.println(\"animalFindHelps 长度 =\" + animalFindHelps.size());\n\t\t\tfor (int i = 0; i < primarylist.size(); i++) {\n\t\t\t\tAnimalHelp animalHelp = new AnimalHelp();\n\t\t\t\tAnimalFindHelp feedlisAnimalFindHelp = new AnimalFindHelp();\n\t\t\t\tSystem.out.println(\"i = \" + i);\n\t\t\t\tObject[] object = (Object[]) primarylist.get(i);\n\t\t\t\tSystem.out.println(\"获取到object,长度为:\" + object.length);\n\t\t\t\tfindAnimal = (Animal) object[0];\n\t\t\t\tSystem.out.println(\"成功获取到findAnimal对象:\" + findAnimal.getAnimalId() );\n\t\t\t\tfindAnimalInformation = (AnimalInformation) object[1];\n\t\t\t\tSystem.out.println(\"成功获取到findAnimalInformation对象:\" + findAnimalInformation.getAnimal().getAnimalId());\n\t\t\t\tanimalHelp.setAnimal(findAnimal);\n\t\t\t\tSystem.out.println(\"animalHelp中成功添加了findAnimal对象:\" + animalHelp.getAnimal().getAnimalId());\n\t\t\t\tanimalHelp.setAnimalInformation(findAnimalInformation);\n\t\t\t\tSystem.out.println(\"animalHelp中成功添加了findAnimalInformation对象:\" + animalHelp.getAnimalInformation().getNumber());\n\t\t\t\tanimalFindHelps.add(animalHelp);\n\t\t\t\tSystem.out.println(\"animalFindHelps成功添加了feedlistAnimalFindHelp对象:\"+animalFindHelps.size());\n\t\t\t\tSystem.out.println(\"animalFindHelps:\"\n\t\t\t\t\t\t+ animalFindHelps.get(i)\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t\tpageBean.setList(animalFindHelps);\n\t\t\treturn pageBean;\n\t\t}\nelse {\n\treturn null;\n}\n}", "@Override\n\tString search(String text) throws Exception {\n\t\tString result = null;\n\t\tthis.text = text;\n\t\tthis.connection = this.getConnection();\n\n\t\tresult = searchRes();\n\t\tif (result != null)\n\t\t\treturn result;\n\n\t\tresult = searchTour();\n\t\tif (result != null)\n\t\t\treturn result;\n\n\t\tconnection.close();\n\t\tthrow new Exception(\"NOT FOUND\");\n\t}", "public Page searchOneRecord(String sql) {\n return mysqlDao.searchOneRecord(sql);\n }", "Page<T> search(Pageable pageable, QueryBuilder query);", "public List<Payment> searchPaymentByName(String substring) {\n List<Payment> payments = new ArrayList<>();\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.rawQuery(\"SELECT * FROM \"+tableName+\n \" WHERE \"+Payment.COLUMN_NAME+\" LIKE '%\"+ substring +\"%'\"\n + \" ORDER BY \" + Payment.COLUMN_ID + ORDER, null);\n\n // looping through all rows and adding to list\n if (cursor!=null && cursor.moveToFirst()) {\n do {\n Payment payment = new Payment();\n payment.setId(cursor.getInt(cursor.getColumnIndex(Payment.COLUMN_ID)));\n payment.setName(cursor.getString(cursor.getColumnIndex(Payment.COLUMN_NAME)));\n payment.setPrice(cursor.getString(cursor.getColumnIndex(Payment.COLUMN_PRICE)));\n payment.setDetails(cursor.getString(cursor.getColumnIndex(Payment.COLUMN_DETAILS)));\n payment.setTimestamp(cursor.getString(cursor.getColumnIndex(Payment.COLUMN_TIMESTAMP)));\n\n payments.add(payment);\n } while (cursor.moveToNext());\n cursor.close();\n }\n return payments;\n }", "@Override\r\n\tpublic PageBean findPage(PageBean pageBean) {\n\t\tpageBean.setTotal(codeRangeDisMapper.findCount((CodeRangeDisBean)pageBean));\r\n\t\tPageBean.calculate(pageBean);\r\n\t\tList<CodeRangeDis> codeRanges = codeRangeDisMapper.findPage((CodeRangeDisBean) pageBean);\r\n\t\tpageBean.setList(codeRanges);\r\n\t\treturn pageBean;\r\n\t}", "public HashMap<String, Integer> process(IProject project, String pattern) {\n\t\tHashMap<String, Integer> numOfOccuranceInEachFile = new HashMap<String, Integer>();\n\n\t\tSystem.out.println(\"begining a iteration for pattern \" + pattern);\n\t\tString elementName = null;\n\t\tSearchMatch[] newMatches = null;\n\t\tSearchMatch[] matches = PHPSearchEngine.findMethodCall(pattern,\n\t\t\t\tPHPSearchEngine.createProjectScope(project));\n\t\t// must distinguish between method declaration and method call!!!!\n\t\tIModelElement iModelElement;\n\t\tObject obj = null;\n\t\tSystem.out.println(\"maches size = \" + matches.length);\n\t\tif (matches.length > 0) {\n\t\t\tfor (SearchMatch match : matches) {\n\t\t\t\tobj = match.getElement();\n\t\t\t\tif (obj instanceof IModelElement) {\n\t\t\t\t\tiModelElement = (IModelElement) obj;\n\t\t\t\t\tString filePath = iModelElement.getPath().toString();\n\t\t\t\t\telementName = iModelElement.getElementName();\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"iModelElement.getElementName() = \" +\n\t\t\t\t\t * elementName + \" --path= \" + filePath);\n\t\t\t\t\t */\n\t\t\t\t\tif (Utils.isInTransactionLevel(iModelElement)) {// right\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// now, we\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// consider\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// only the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// transactional\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// level\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// occurance\n\t\t\t\t\t\tif (numOfOccuranceInEachFile.containsKey(filePath)) {\n\t\t\t\t\t\t\tnumOfOccuranceInEachFile.put(filePath,\n\t\t\t\t\t\t\t\t\tnumOfOccuranceInEachFile.get(filePath) + 1);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnumOfOccuranceInEachFile.put(filePath, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t/*\n\t\t\t\t\t * if(iModelElement.getElementType() ==\n\t\t\t\t\t * IModelElement.METHOD){ IMethod iMethod =\n\t\t\t\t\t * (IMethod)iModelElement; iMethod. }\n\t\t\t\t\t */\n\t\t\t\t\t/*\n\t\t\t\t\t * if (!elementName.equals(pattern)) { // avoid recursive,\n\t\t\t\t\t * or // iterative method, // temp implementation, // should\n\t\t\t\t\t * be // modified!!!! pattern = elementName;\n\t\t\t\t\t * System.out.println(\"begining next iteration\");\n\t\t\t\t\t * process(project, pattern);\n\t\t\t\t\t * System.out.println(\"return from an iteration\"); } else\n\t\t\t\t\t * {// it is recursive/iterative, we regard it as the // top\n\t\t\t\t\t * level method call (temp implementation!!!!!)\n\t\t\t\t\t * System.out.println(\"Top Level(recursive reason): \" +\n\t\t\t\t\t * \"iModelElement.getElementName() = \" + elementName +\n\t\t\t\t\t * \" --path= \" + iModelElement.getPath().toString()); }\n\t\t\t\t\t */// comment out Feb. 9, 2014 temporarily\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else { // if there is no callers, then means it is the top level\n\n\t\t\t/*\n\t\t\t * System.out.println(\"Top Level(real reason): \" + \"pattern = \" +\n\t\t\t * pattern);\n\t\t\t */\n\n\t\t}\n\t\tSystem.out.println(\"end of an iteration\");\n\t\treturn numOfOccuranceInEachFile;\n\n\t}", "public void search() throws SQLException;", "@Query(\n \"Select t FROM Ticket t WHERE t.user.id = :userId \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType1(@Param(\"userId\") Long userId,@Param(\"searchTerm\") String searchTerm,Pageable pageable);", "@Override\r\n\tpublic PageData<Food> queryFoods(int page,int pageSize,String keyWords,int busId) {\n\t\tString sql=\"select * from food where foodName like ? and busId=?\";\r\n\t\tPageData<Food> pd= BaseDao.getPage(sql, page, pageSize, Food.class,\"%\"+keyWords+\"%\",busId);\r\n\t\treturn pd;\r\n\t}", "@Override\n\tpublic List<BoardVO> searchArticle(String keyword) {\n\t\t\n\t\tString sql = \"SELECT * FROM board WHERE board_writer LIKE ?\";\n\t\treturn template.query(sql,new BoardMapper(), keyword);\n\t}", "Page<Examination> searchPageOfExamPackageByTitle(int examPackageID, String examinationTitle, int pageNo, int pageSize);", "public int searchPattern(File filePath, String pattern) throws IOException \r\n\t{\r\n\t\tint my_counter = 0;\r\n\t\tString fileText = \"\";\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));\r\n\t\t\tString line = null;\r\n\r\n\t\t\twhile ((line = bufferedReader.readLine()) != null)\r\n\t\t\t{\r\n\t\t\t\tfileText = fileText + line;\r\n\t\t\t}\r\n\t\t\tbufferedReader.close();\r\n\r\n\t\t\tString textinFile = fileText;\r\n\t\t\r\n\t\t\tBoyerMoore boyerMoore = new BoyerMoore(pattern);\r\n\r\n\t\t\tint offset = 0;\r\n\r\n\t\t\tfor (int loc = 0; loc <= textinFile.length(); loc += offset + pattern.length()) \r\n\t\t\t{\r\n\t\t\t\toffset = boyerMoore.search(pattern, textinFile.substring(loc));\r\n\t\t\t\tif ((offset + loc) < textinFile.length()) \r\n\t\t\t\t{\r\n\t\t\t\t\tmy_counter++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (NullPointerException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\r\n\t\treturn my_counter;\r\n\t}", "public static boolean searchThroughScreens(String search, TestObject Screen, TopLevelTestObject Frame, boolean pattern) {\r\n\r\n\t\tTerminalHelperMethods th = new TerminalHelperMethods();\r\n\t\tboolean more = false;\r\n\t\t\r\n\t\tif (isStringOnScreen(search, Screen, pattern)) {\r\n\t\t\tSystem.out.println(\"String '\"+search+\"' found on screen.\");\r\n\t\t\treturn true;\r\n\t\t} else if (isStringOnScreen(\"More...\", Screen)) {\r\n\t\t\tmore = true;\r\n\t\t\twhile (more) {\r\n\t\t\t\tFrame.inputKeys(\"{ExtPgDn}\");\r\n\t\t\t\tth.wait(2);\r\n\t\t\t\tif (isStringOnScreen(search, Screen, pattern)) {\r\n\t\t\t\t\tSystem.out.println(\"String '\"+search+\"' found on screen.\");\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tmore = isStringOnScreen(\"More...\", Screen);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"String '\"+search+\"' not found on screens.\");\r\n\t\treturn false;\r\n\r\n\t}", "public ArrayList<Shout> getMatches(Pattern pattern, String text) {\r\n\t\tArrayList<Shout> matches = new ArrayList<Shout>();\r\n\t\tMatcher m = pattern.matcher(text);\r\n//\t\tint match= 0;\r\n\t\twhile(m.find()){\r\n//\t\t\tLog.i(\"FUCKING WORK\", \"a: \" + m.start());\r\n\t\t\tmatches.add(new Shout(Integer.parseInt(m.group(1)), m.group(2), m.group(3)));\r\n//\t\t\tmatch++;\r\n\t\t}\r\n\t\treturn matches;\r\n\t}", "public List<Budget> search (String search) throws SQLException{\n List<Budget> found = new ArrayList<Budget>();\n DatabaseConnection dbaInfo = new DatabaseConnection();\n Connection conn = null;\n try {\n conn = dbaInfo.getConnection();\n search = search + \"%\";\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM finance.budget WHERE (bud_category ILIKE ?) OR (bud_description ILIKE ?);\");\n ps.setString(1, search);\n ps.setString(2, search);\n ResultSet rs = ps.executeQuery();\n found = listResults(rs);\n }catch (Exception error) {\n error.printStackTrace();\n conn.rollback();\n }finally {\n conn.close();\n }\n return found;\n }", "@Override\n public List<Page> findAll() {\n Query q = new Query(\"pages\");\n // Use PreparedQuery interface to retrieve results\n PreparedQuery pq = datastore.prepare(q);\n List<Entity> list = pq.asList(FetchOptions.Builder.withDefaults());\n List<Page> result = new ArrayList<>();\n for (Entity entity : list) {\n Page page = new Page();\n page.setId(entity.getKey().getId());\n page.setTitle(entity.getProperty(\"title\").toString());\n page.setDescription(entity.getProperty(\"description\").toString());\n page.setUrl(entity.getProperty(\"url\").toString());\n page.setCrawled((boolean) entity.getProperty(\"crawled\"));\n result.add(page);\n }\n return result;\n }", "Page<Tbc_analises_componente> search(String query, Pageable pageable);", "@Override\r\n\tpublic PageData queryHLikeByPage(int pageNo, int pageSize, String search) {\n\t\treturn adi.queryHLikeByPage(pageNo, pageSize, search);\r\n\t}", "public WildcardPattern(String pattern) {\r\n this.pattern = pattern;\r\n }", "public int search(String text, String pattern) {\n int M = pattern.length();\n int N = text.length();\n int i, j;\n for (i = 0, j = 0; i < N && j < M; i++) {\n while (j >= 0 && text.charAt(i) != pattern.charAt(j))\n j = next[j];\n j++;\n }\n if (j == M) return i - M;\n return N;\n }", "List<AddressbookEntry> findByLastNameLike(String pattern);", "public static ResultModel search(String text, String pattern) {\n long startTime = System.nanoTime();\n ResultModel Result = new ResultModel();\n String positionText = \"\";\n int Count = 0;\n // Write your code here\n int M = pattern.length(); \n int N = text.length(); \n int i, j; \n int p = 0; // hash value for pattern \n int t = 0; // hash value for txt \n int h = 1; \n \n // The value of h would be \"pow(d, M-1)%q\" \n for (i = 0; i < M-1; i++) {\n h = (h*d)%q; \n }\n // Calculate the hash value of pattern and first \n // window of text \n for (i = 0; i < M; i++) \n { \n p = (d*p + pattern.charAt(i))%q; \n t = (d*t + text.charAt(i))%q; \n\n\n } \n \n \n // Slide the pattern over text one by one \n for (i = 0; i <= N - M; i++) \n { \n \n // Check the hash values of current window of text \n // and pattern. If the hash values match then only \n // check for characters on by one \n if ( p == t ) \n { \n /* Check for characters one by one */\n for (j = 0; j < M; j++) \n { \n if (text.charAt(i+j) != pattern.charAt(j)) \n break; \n } \n \n // if p == t and pat[0...M-1] = txt[i, i+1, ...i+M-1] \n if (j == M) { \n \tCount ++;\n\t // return i\n\t if(positionText == \"\") {\n\t positionText += (i+ 1) + \"th\";\n\t }else {\n\t positionText = positionText + \", \" + (i+1) + \"th\";\n\t }\n }\n } \n \n // Calculate hash value for next window of text: Remove \n // leading digit, add trailing digit \n if ( i < N-M ) \n { \n\n t = (d*(t - text.charAt(i)*h) + text.charAt(i+M))%q; \n \n // We might get negative value of t, converting it \n // to positive \n if (t < 0) {\n\n t = (t + q); \n }\n \n } \n \n } \n\n //End of code\n\n long endTime = System.nanoTime();\n long totalTime = endTime - startTime;\n\n Result.setExecutionTime(TimeUnit.NANOSECONDS.toMillis(totalTime));\n Result.setFoundCount(Count);\n Result.setPosition(positionText);\n return Result;\n }", "@Override\n public ArrayList<ItemBean> searchAll(String keyword)\n {\n String query= \"SELECT * FROM SilentAuction.Items WHERE Item_ID =?\";\n //Seacrh by Category Query\n String query1=\"SELECT * FROM SilentAuction.Items WHERE Category LIKE?\";\n //Seaches and finds items if Category is inserted\n ArrayList<ItemBean> resultsCat = searchItemsByCategory(query1,keyword);\n //Searches and finds items if number is inserted \n ArrayList<ItemBean> resultsNum= searchItemsByNumber(query,keyword);\n resultsCat.addAll(resultsNum);\n return resultsCat;\n }", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public List<T> findByName(String text) {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u where u.name like :name\");\n\t q.setParameter(\"name\", \"%\" + text + \"%\");\n\t return q.getResultList();\n\t }", "@Transactional(readOnly = true)\n Collection<DataRistorante> find(String pattern, int maxResults);", "public void search(String url, String searchWord)\n {\n while(this.pagesVisited.size() < MAX_PAGES_TO_SEARCH)\n {\n String currentUrl;\n SpiderLeg leg = new SpiderLeg();\n if(this.pagesToVisit.isEmpty())\n {\n currentUrl = url;\n this.pagesVisited.add(url);\n }\n else\n {\n currentUrl = this.nextUrl();\n }\n leg.crawl(currentUrl); // Lots of stuff happening here. Look at the crawl method in\n // SpiderLeg\n boolean success = leg.searchForWord(searchWord);\n if(success)\n {\n System.out.println(String.format(\"**Success** Word %s found at %s\", searchWord, currentUrl));\n break;\n }\n this.pagesToVisit.addAll(leg.getLinks());\n }\n System.out.println(\"\\n**Done** Visited \" + this.pagesVisited.size() + \" web page(s)\");\n }", "protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }", "PersonFinder whereNameContains(String fragment);", "public void searchForPageToChange(String searchPage)\n\t{\n\t\twait.waitElementToBeDisplayed(By.xpath(\"//td/input[@class='z-textbox' and @z.type='zul.vd.Txbox']\"));\n\t\tdriver.findElement(By.xpath(\"//td/input[@class='z-textbox' and @z.type='zul.vd.Txbox']\")).sendKeys(searchPage);\n\t\tList<WebElement> searchBtn=driver.findElements(By.xpath(\"//img[@src='/cmscockpit/cockpit/images/BUTTON_search.png']\"));\n\t\tif(searchBtn!=null&&searchBtn.size()>0)\n\t\t{\n\t\t\tsearchBtn.get(0).click();\n\t\t}\n\t}", "public PageRecord findByQueryConditions(String conditions,int pageNo,int recordPerPage) throws Exception\n {\n DBManager dbManager = new DBManager();\n PageRecord pageRecord = null;\n try\n {\n\n dbManager.open(AppConfig.get(\"sysconst.DBJNDI\")) ;\n // BLPrpLregistAction blPrpLregistAction = new BLPrpLregistAction();\n BLClaimAction blClaimAction = new BLClaimAction();\n pageRecord = (PageRecord)blClaimAction.findByConditions(dbManager,conditions,pageNo,recordPerPage);\n }\n catch(SQLException sqle)\n {\n throw sqle;\n }\n catch (Exception ex) {\n throw ex;\n }\n finally\n {\n dbManager.close();\n }\n return pageRecord;\n }", "Observable<Page<E>> search(C criteria);", "Page<ChatDTO> search(String query, Pageable pageable);", "@Query(\n \"Select t FROM Ticket t WHERE t.responsible IS NOT NULL \"\n + \"AND (t.isOpen = :isOpen) \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType4(@Param(\"isOpen\") Boolean isOpen, @Param(\"searchTerm\") String searchTerm,Pageable pageable);", "Page<NoteDTO> search(String query, Pageable pageable);", "@Override\n\tpublic PageBean<Animal> findByPage(PageBean<Animal> pageBean) {\n\t\tpageBean.getTotalCount();\n\t\tpageBean.getTotalPage();\n\t\tint totalCount = 0;\n\t\tint totalPage = 0;\n\t\ttotalCount = animaldao.findCount();\n\t\tpageBean.setTotalCount(totalCount);\n\t\tSystem.out.println(\"totalCount = \" + totalCount);\n\t\ttotalPage = (int) Math.ceil((double)totalCount/(double)pageBean.getLimit());\n\t\tSystem.out.println(\"totalPage = \" + totalPage);\n\t\tpageBean.setTotalPage(totalPage);\n\t\tint start = pageBean.getLimit()*(pageBean.getPage() - 1) + 1;\n\t\tint end = pageBean.getPage() * pageBean.getLimit();\n\t\tSystem.out.println(\"start / end = \" + start + \"/\" + end);\n\t\tList<Animal> list = animaldao.findByPage(start , end);\n\t\tpageBean.setList(list);\n\t\treturn pageBean;\n\t}", "@Override\n public ArrayList<News> findByTitle(String foundTitle) throws DAOException, ConnectionPoolDataSourceException {\n ArrayList<News> news = new ArrayList<>();\n PreparedStatement preparedStatement = null;\n ResultSet resultSet = null;\n Connection connection = connectionPool.takeConnection();\n try {\n preparedStatement = connection.prepareStatement(SQL_SELECT_BY_TITLE);\n preparedStatement.setString(1, foundTitle);\n resultSet = preparedStatement.executeQuery();\n while (resultSet.next()) {\n String category = resultSet.getString(2);\n String title = resultSet.getString(3);\n String author = resultSet.getString(4);\n String date = resultSet.getString(5);\n news.add(new News(category, title, author, date));\n }\n if (news == null) {\n throw new DAOException(\"Error in findByTitle.\");\n }\n connectionPool.closeConnection(connection, preparedStatement, resultSet);\n } catch (SQLException e) {\n throw new DAOException(e);\n }\n return news;\n }", "@Query(\"SELECT a FROM Appointment a WHERE a.description like ?1\")\n\t public List<Appointment> searchByDescription(String searchstr);", "public void performSearch()\r\n {\r\n setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR) );\r\n\r\n try\r\n {\r\n // Create the search pattern.\r\n String SearchPatternString = SearchPatternField.getText();\r\n if ( SearchPatternString == null\r\n || SearchPatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No search pattern entered\",\r\n SearchPatternField);\r\n SearchPattern = new Regex(SearchPatternString);\r\n SearchPattern.optimize();\r\n\r\n // Build the definition of the root directory to search.\r\n String FilePatternString = FilePatternField.getText();\r\n if ( FilePatternString == null\r\n || FilePatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No file pattern entered\",\r\n FilePatternField);\r\n\r\n String DirPathString = DirPatternField.getText();\r\n if ( DirPathString == null\r\n || DirPathString.equals(\"\") )\r\n throw new ScreenInputException(\"No directory specified\",\r\n DirPatternField);\r\n File DirectoryFile = new File(DirPathString);\r\n if (!DirectoryFile.exists() )\r\n throw new ScreenInputException(\"Directory '\" + DirPathString + \"'does not exist\",\r\n DirPatternField);\r\n\r\n // Prepare the walker that performs the grep on each directory.\r\n GrepSubDirWalker.prepareSearch(SearchPattern,\r\n FilePatternString,\r\n DirPathString,\r\n ResultsDocument);\r\n\r\n if (SubDirsTooCheckBox.isSelected() )\r\n {\r\n // Process named directory and its sub-directories.\r\n Directory RootDirectory = new Directory(DirPathString);\r\n RootDirectory.walk(GrepSubDirWalker);\r\n }\r\n else\r\n // Process just the named directory.\r\n GrepSubDirWalker.processDirectory(DirPathString);\r\n\r\n GrepSubDirWalker.appendStatistics(); // Show statistics\r\n }\r\n catch (NoClassDefFoundError InputException)\r\n {\r\n showPatMissingDialog();\r\n }\r\n catch (ScreenInputException InputException)\r\n {\r\n InputException.requestComponentFocus();\r\n showExceptionDialog(InputException);\r\n }\r\n catch (Exception InputException)\r\n {\r\n showExceptionDialog(InputException);\r\n }\r\n setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR) );\r\n }", "Page<SpCharInSeq> findAll(String query, Pageable pageable);", "Page<Product> findByNameContaining(@RequestParam(\"name\") String name, Pageable pageable);" ]
[ "0.6109946", "0.5862838", "0.5854279", "0.57815784", "0.5778101", "0.5658391", "0.56577224", "0.5626691", "0.5591766", "0.55641425", "0.5558542", "0.55031055", "0.5490588", "0.5462467", "0.54463285", "0.5424808", "0.540732", "0.540728", "0.5402941", "0.5384643", "0.53674126", "0.5346069", "0.53120995", "0.529398", "0.52862555", "0.5225249", "0.52230334", "0.52063006", "0.5192451", "0.5186625", "0.5148179", "0.51306504", "0.51302636", "0.5099161", "0.50816447", "0.50756335", "0.5074", "0.50639915", "0.50605243", "0.5050861", "0.50329846", "0.50322646", "0.50275123", "0.5015627", "0.5012258", "0.5005438", "0.49972433", "0.49937946", "0.4985164", "0.49421662", "0.49412763", "0.49385044", "0.49365905", "0.4933589", "0.49323538", "0.49255252", "0.4922536", "0.4922536", "0.490735", "0.49064064", "0.48931035", "0.4878138", "0.4877266", "0.48694566", "0.48692614", "0.4869203", "0.4863654", "0.48503265", "0.48454732", "0.4839878", "0.4837574", "0.482429", "0.48211607", "0.48191294", "0.4818323", "0.4818139", "0.4816121", "0.48131222", "0.48097557", "0.47887194", "0.47862586", "0.47804478", "0.47801185", "0.47798127", "0.47763762", "0.47550038", "0.47473076", "0.4745756", "0.4744095", "0.4741959", "0.47366878", "0.4736059", "0.4725156", "0.47248584", "0.47180024", "0.4710407", "0.47033316", "0.47006443", "0.4696844", "0.4681937" ]
0.486004
67
Retrieves all the Page objects stored into the data source.
public final List<Page> getAll() throws DAOException { String query = "SELECT id, name, description, json FROM pages"; Connection con = null; PreparedStatement pstmt = null; ResultSet rs = null; List<Page> pageList = new ArrayList<Page>(); try { con = JDBCDAOFactory.getConnection(); pstmt = con.prepareStatement(query); rs = pstmt.executeQuery(); while (rs.next()) { Page page = new Page(); page.setId(rs.getInt("id")); page.setName(rs.getString("name")); page.setDescription(rs.getString("description")); page.setJson(rs.getString("description")); pageList.add(page); } rs.close(); } catch (SQLException ex) { throw new DAOException(ex); } finally { DBUtils.closeStatement(pstmt); DBUtils.closeConnection(con); } return pageList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<Page> findAll() {\n Query q = new Query(\"pages\");\n // Use PreparedQuery interface to retrieve results\n PreparedQuery pq = datastore.prepare(q);\n List<Entity> list = pq.asList(FetchOptions.Builder.withDefaults());\n List<Page> result = new ArrayList<>();\n for (Entity entity : list) {\n Page page = new Page();\n page.setId(entity.getKey().getId());\n page.setTitle(entity.getProperty(\"title\").toString());\n page.setDescription(entity.getProperty(\"description\").toString());\n page.setUrl(entity.getProperty(\"url\").toString());\n page.setCrawled((boolean) entity.getProperty(\"crawled\"));\n result.add(page);\n }\n return result;\n }", "public List<PageContent> getAllPageContent();", "List<JournalPage> getAllPages();", "public List<Page> getPageList() {\n return conf.getPages().getPage();\n }", "public List<Page> searchAll() {\n return mysqlDao.searchAll();\n }", "Pages getPages();", "List<? extends Page> getPages();", "public Vector<WbRecord> getAllPages() {\n\t\tVector<WbRecord> content = getNPages(130000000);\n\t\tSystem.out.println(\"Number of pages expected:\t\" + this.numPagesRequested);\n\t\tSystem.out.println(\"Actual number of pages wbRecordReader crawl:\t\" + this.totalNumPagesRetrieved);\n\t\treturn content;\n\t}", "public List<Page> getPages() {\r\n\t\treturn immutablePageList;\r\n\t}", "public Collection<Page> getPages() {\n return Collections.unmodifiableCollection(pages);\n }", "@Override\n public LiveWebModel[] getChildren() {\n return pages;\n }", "Page<T> findAll(Pageable pageable);", "public ArrayList<DiscoveryPage> getPages() {\n return pages;\n }", "public List<Object> retrievePagingList(PageBean pageBean) ;", "public IScapSyncSearchPage[] getPages();", "List<E> findAll(int page, int size);", "Page<Catalog> findAll(Pageable pageable);", "Page<Preferences> findAll(Pageable pageable);", "@Override\r\n\tpublic List<String> queryAll() {\n\t\tList<String> list = homePageDao.queryAll();\r\n\t\treturn list;\r\n\t}", "public List<Pagos> findAll(){\n return pagoMongoRepository.findAll();\n }", "public List<T> getPageElementsList();", "@Override\n public Page<Container> findAll(Pageable pageable) {\n log.debug(\"Request to get all Containers\");\n return containerRepository.findAll(pageable);\n }", "@Override\r\n public Page<Standard> findAll(PageRequest pageRequest) {\n return standardRepository.findAll(pageRequest);\r\n }", "@Override\n\tpublic List<BaseEntity> getAll(BaseEntity entity, Page page)\n\t\t\tthrows DaoException {\n\t\treturn null;\n\t}", "public Iterable<Post> findAll(){\n return postDao.findAll();\n }", "public Page<T> findAll(Pageable arg0) {\n\t\treturn null;\n\t}", "public Set getPages () {\n return pages;\n }", "public Set getPages () {\n return new TreeSet (allPages.values ());\n }", "@Override\n public List<T> getAllByPaging(Integer size, Integer page) {\n PageHelper.startPage(page, size);\n return mapper.selectAll();\n }", "Page<PaperDTO> findAll(Pageable pageable);", "@Override\n\tpublic List<MedioPago> getall() {\n\t\treturn (List<MedioPago>) iMedioPagoDao.findAll();\t\t\n\t}", "public Iterable<Content> findAllContent(){\n\n return contentRepository.findAll();\n }", "public List<Page> getRealPages() {\n List<Page> pages = new ArrayList<>(pageRepository.findByUrlIsNotNull().stream().filter(p -> !p.getUrl().equals(\"\")).collect(Collectors.toList()));\n Comparator<Page> c = (a, b) -> a.getName().compareToIgnoreCase(b.getName());\n pages.sort(c);\n return pages;\n }", "public abstract <T> Page<T> list(Pageable pageable, Class<T> clazz);", "Page<Visited> findAll(Pageable pageable);", "Page<Livre> findAll(Pageable pageable);", "protected abstract DataPage getDataPage(PageId pageId);", "List<WebCrawlerData> retrieveAllEntity();", "Page getPage();", "Page<DashboardDTO> findAll(Pageable pageable);", "public List<Post> retriveAllPosts()\n\t {\n\t\t List<Post> Posts =(List<Post>) Postrepository.findAll();\n\t\t \n\t\t for(Post Post :Posts)\n\t\t {\n\t\t\t //l.info(\"Post +++ :\" +Post);\n\t\t }\n\t\t return Posts;\n\t\t\t \n\t }", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "@Override\n @Transactional(readOnly = true)\n public Page<RefSiteDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all RefSites\");\n return refSiteRepository.findAll(pageable)\n .map(refSiteMapper::toDto);\n }", "private List<PageExtract> getList() throws SQLException {\n\t\tDbConnector db = null;\n\t\ttry {\n\t\t\tdb = new DbConnector();\n\t\t} catch (ClassNotFoundException | SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tdb.executeQuery(SqlConstants.SET_MAX_CONCAT_LENGTH);\n\t\tResultSet pageResult = db.executeQuery(SqlConstants.PAGE_EXTRACT);\n\t\tList<PageExtract> list = new ArrayList<>();\n\t\twhile (pageResult.next()) {\n\t\t\tint pageId = pageResult.getInt(\"pageId\");\n\t\t\tString content = pageResult.getString(\"content\");\n\t\t\tlist.add(new PageExtract(pageId, content));\n\n\t\t}\n\t\treturn list;\n\t}", "@Override\n @Transactional(readOnly = true)\n public Page<JeuDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all Jeus\");\n return jeuRepository.findAll(pageable)\n .map(jeuMapper::toDto);\n }", "public abstract Page<CustomerInfo> findAll(GlobalSearch globalSearch, Pageable pageable);", "void retrievePageContents()\n\t{\n\t\tStringBuilder longString = new StringBuilder();\n\t\tfor (int i = 0; i < pageContents.size(); i++)\n\t\t{\n\t\t\tlongString.append(pageContents.get(i));\n\t\t}\n\t\tString pageMarkup = longString.toString().toLowerCase();\n\t\textractComments(pageMarkup);\n\n\t}", "Page<PathHistory> findAll(Pageable pageable);", "Page<Person> findAll(Pageable pageable);", "@Override\n public List<BookmarkEntity> findAll() {\n logger.info(\"Entering findAll() in BookmarkDAO\");\n return bookmarkRepository.findAll();\n\n }", "public Page<Post> getNewPosts(){\n Pageable page = new PageRequest(0, 3, Sort.Direction.DESC, \"createdAt\");\n System.out.println(\"getNewPosts\");\n // Page<Post> posts = postRepository.findTop10OrderByCreatedAtOrderByCreatedAtDesc(page);\n // List<Post> p = postRepository.getNewestPosts();\n\n Page<Post> pp = postRepository.findAll(page);\n\n for (Post p :pp){\n logger.info(\"getNewPosts -> \" + p);\n }\n return pp;\n/* for (Post p :posts){\n System.out.println(\"p->\" + p);\n }\n if (posts != null)\n return posts;\n return null;*/\n }", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "Page<Accessprofile> listAllByPage(Pageable pageable);", "@Override\n\tpublic Page<Resident> getPage(Pageable pageable) {\n\t\tPage<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll(pageable);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "public Page getPage() {return page;}", "public String getPages() {\n return pages;\n }", "Page<Product> findAll(Pageable pageable);", "Page<UserContentComment> findAll(Pageable pageable);", "Page<CardDTO> findAll(Pageable pageable);", "public Iterator<T> getPageElements();", "@Override\n @Transactional(readOnly = true)\n public Page<CollectionDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all Collections\");\n return collectionRepository.findAll(pageable)\n .map(collectionMapper::toDto);\n }", "public DataModel getData() {\r\n state = PersistentFacesState.getInstance();\r\n if (onePageDataModel == null) {\r\n onePageDataModel = new LocalDataModel(pageSize);\r\n }\r\n return onePageDataModel;\r\n }", "public List<Content> getAllContents() {\n return contentRepo.findAll();\n }", "Page<SuppliesDTO> findAll(Pageable pageable);", "public List<Dojo> findAll(){\n\t\treturn dojoRepository.findAll();\n\t}", "public List<Page> getExtractsFromDatabase() throws SQLException {\n\t\tDbConnector db = null;\n\t\ttry {\n\t\t\tdb = new DbConnector();\n\t\t} catch (ClassNotFoundException | SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tResultSet pageResult = db.executeQuery(SqlConstants.GET_PAGES);\n\n\t\tList<Page> pageList = new ArrayList<>();\n\t\tGson gson = new Gson();\n\t\twhile (pageResult.next()) {\n\t\t\tint pageId = pageResult.getInt(\"pageId\");\n\t\t\tString title = pageResult.getString(\"title\");\n\t\t\tint earliestYear = pageResult.getInt(\"earliestYear\");\n\t\t\tint latestYear = pageResult.getInt(\"latestYear\");\n\t\t\tToneAnalysis ibmTone = gson.fromJson(pageResult.getString(\"ibmTone\"), ToneAnalysis.class);\n\t\t\tReceptivitiAnalysis liwcTone = gson.fromJson(pageResult.getString(\"liwcTone\"), ReceptivitiAnalysis.class);\n\t\t\tDocumentSentiment docSentiment = gson.fromJson(pageResult.getString(\"alchemyTone\"),\n\t\t\t\t\tDocumentSentiment.class);\n\t\t\tPage page = new Page(pageId, title);\n\t\t\tpage.setIbmTone(ibmTone);\n\t\t\tpage.setLiwcTone(liwcTone);\n\t\t\tpage.setDocumentSentiment(docSentiment);\n\t\t\tpage.setEarliestYear(earliestYear);\n\t\t\tpage.setLatestYear(latestYear);\n\t\t\tResultSet rs = db.executeQuery(SqlConstants.PAGE_EXTRACT_GET, Arrays.asList(String.valueOf(pageId)));\n\t\t\trs.close();\n\t\t\tpageList.add(page);\n\t\t}\n\t\tpageResult.close();\n\t\treturn pageList;\n\t}", "Page<TITransferDetails> findAll(Pageable pageable);", "public List<PdfPage> getPages() {\n return this.pages;\n }", "public int getPageCount() { return _pages.size(); }", "@Transactional(readOnly = true)\n public Page<BlogDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all Blogs\");\n return blogRepository.findAll(pageable)\n .map(blogMapper::toDto);\n }", "public List<Data> getAllDataFromService() {\n\t\t\n\t\tList<Data> data = new ArrayList<>();\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\t// get first page data\n\t\tResponse response = restTemplate.getForObject(\n\t\t\t\t\"https://jsonmock.hackerrank.com/api/article_users/search?page=1\",\n\t\t\t\tResponse.class);\n\t\tdata.addAll(response.getData());\n\t\t\n\t\t// get second page data\n\t\tResponse response2 = restTemplate.getForObject(\n\t\t\t\t\"https://jsonmock.hackerrank.com/api/article_users/search?page=2\",\n\t\t\t\tResponse.class);\n\t\tdata.addAll(response2.getData());\n\t\t\n\t\treturn data;\t\n\t}", "public Page<User> findAll(Pageable pageable);", "Page<Employee> findAll(Pageable page);", "PageAgent getPage();", "Page<ProjectsDTO> findAll(Pageable pageable);", "Page<PeopleDTO> findAll(Pageable pageable);", "@Transactional(readOnly = true)\n public Page<DocumentStoreDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all DocumentStores\");\n return documentStoreRepository.findAll(pageable)\n .map(documentStoreMapper::toDto);\n }", "public Page<T> list(DetachedCriteria criteria, Integer pageNumber, Integer pageSize);", "public List getAll(){\n\t\tList<Person> personList = personRepository.getAll();\n\t\treturn personList;\n\t}", "public abstract List<Object> getAll();", "@Override\n @Transactional(readOnly = true)\n public Page<Books> findAll(Pageable pageable) {\n log.debug(\"Request to get all Books\");\n return booksRepository.findAll(pageable);\n }", "LiveData<PagedList<Response>> pagedList();", "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 }", "List<Activity> findAllPageable(int page, int size);", "public Page<Provider> findAll(Pageable pageable) {\n\n return providerRepository.findAll(pageable);\n }", "@Override\n\tpublic Page<Customer> findAll(Pageable pageable) {\n\t\treturn customerDAO.findAll(pageable);\n\t}", "Page<BannerInfoDTO> findAll(Pageable pageable);", "public Iterable<Post> listAllPosts();", "public java.util.List<DataEntry> findAll();", "@Override\r\n\tpublic List<WarehouseInfo> selectAll(Page page) {\n\t\treturn warehouseDao.selectAll(page);\r\n\t}", "@Override\n\tpublic List<Company> getAll(Page<Company,Long> page) {\n\t\t\treturn dao.getAll(companyPageMapper.pageToDaoRequestParameter(page));\n\t}", "public Page getPage() {\n return page;\n }", "public Page getPage() {\n return page;\n }", "Page<Expert> findAll(Pageable pageable);", "@Override\n\tpublic ArrayList<Parent> queryAllOrderPage(int begin, int size) {\n\t\treturn parentDao.queryAllOrderPage(begin, size);\n\t}", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic @ResponseBody\n\tIterable<Customer> findAll() {\n\t\tLOGGER.debug(\"Rendering persons list\");\n\t\treturn customerService.findAll();\n\n\t}", "Page<LoginHistoryEntity> findAll(Integer page);", "List<T> getAll() throws PersistException;", "Page<BaacDTO> findAll(Pageable pageable);", "@Override\n @Transactional(readOnly = true)\n public Page<ProductDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all Products\");\n return productRepository.findAll(pageable)\n .map(productMapper::toDto);\n }" ]
[ "0.7857159", "0.74186075", "0.68652785", "0.6677696", "0.6589606", "0.65666056", "0.652613", "0.6514984", "0.63521975", "0.6282451", "0.62743473", "0.62691826", "0.62333137", "0.62311536", "0.616118", "0.6153062", "0.6132858", "0.60934", "0.60672444", "0.60558593", "0.6019841", "0.5999619", "0.59931475", "0.5991986", "0.59760827", "0.59664565", "0.5962062", "0.5949158", "0.59368193", "0.59242266", "0.59118634", "0.5900931", "0.5892499", "0.5887374", "0.5880338", "0.5867488", "0.5864056", "0.585347", "0.58485746", "0.5844505", "0.58269614", "0.581018", "0.5801127", "0.5795788", "0.5795353", "0.5793798", "0.57892734", "0.5788668", "0.5785412", "0.5775768", "0.57600856", "0.5753058", "0.57521445", "0.5745678", "0.57406443", "0.57391036", "0.5737672", "0.5734714", "0.5731846", "0.5729882", "0.57294905", "0.57265073", "0.5723018", "0.5704869", "0.5703528", "0.56965566", "0.5691298", "0.56884426", "0.5685048", "0.5677115", "0.56759214", "0.56746626", "0.5674138", "0.56627053", "0.56619084", "0.56608737", "0.5652328", "0.5646243", "0.5645018", "0.5641709", "0.5631376", "0.5630862", "0.56283486", "0.5621642", "0.56187737", "0.5618348", "0.56176656", "0.5610662", "0.5609482", "0.56077313", "0.560113", "0.55955255", "0.55955255", "0.5591379", "0.5587297", "0.55870914", "0.55860144", "0.55782074", "0.5576616", "0.55638164" ]
0.7150231
2
Crea un nuevo PointHandler.
public CenterHandler(int i, double x, double y) { point = new Point2D.Double(x, y); index = i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point createPoint();", "void createPoint(JsonObject jsonMetadata, Handler<AsyncResult<String>> resultHandler);", "CreateHandler()\n {\n }", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "public static GPSManager newInstance(Handler handler)\n {\n return new GPSManager(handler);\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointType createPricePointType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl();\n }", "public Point() {\n }", "public Point() {\n }", "void newRoutePoint(RoutePointDTO routePointDTO, RouteDTO routeDTO, List<RoutePointDTO> points);", "private void createHandler() {\r\n playerAHandler = new Handler() {\r\n @Override\r\n public void handleMessage(Message msg) {\r\n switch(msg.what) {\r\n case Constants.MADE_MOVE:\r\n makeMove();\r\n break;\r\n default: break;\r\n }\r\n }\r\n };\r\n }", "Viewpoint createViewpoint();", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType createPricePointFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl();\n }", "public PointSET() {\n pointSet = new SET<Point2D>();\n }", "public PointRecord(){\n \n }", "public static boolean createPointForEvent(int eventType, int points) {\n PointsTranslation pointsTranslation = new PointsTranslation();\n pointsTranslation.eventTypeId = eventType;\n pointsTranslation.points = points;\n pointsTranslation.createdAt = GlobalDate.getCurrentDate();\n pointsTranslation.lastModified = pointsTranslation.createdAt;\n Model.pointsTranslation().insert(pointsTranslation);\n\n OpsLog.onNew(pointsTranslation);\n return true;\n }", "public LocationPoint(){\n this.mLocationID = UUID.randomUUID();\n }", "public Point(){\n this.x = 0;\n this.y = 0;\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "public static Points createEntity() {\n Points points = new Points()\n .date(DEFAULT_DATE)\n .exercise(DEFAULT_EXERCISE)\n .meals(DEFAULT_MEALS)\n .alcohol(DEFAULT_ALCOHOL)\n .notes(DEFAULT_NOTES);\n return points;\n }", "Point() {\n this.x = 0;\n this.y = 0;\n }", "public void onTrackedHand(SimpleOpenNI curKinect, int handId, PVector pos){\n kinect.convertRealWorldToProjective(pos,pos);\n\n if( gesture.getHands().containsKey(handId) ){\n //insert point\n gesture.getHand(handId).savePoint(pos);\n\n }\n}", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "public PointEventNode(String id) {\n\t\tsuper(id);\n\t}", "public com.vodafone.global.er.decoupling.binding.request.CatalogPackageLittleType.PricePointsType createCatalogPackageLittleTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageLittleTypeImpl.PricePointsTypeImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.ErServiceFullType.PricePointsType createErServiceFullTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ErServiceFullTypeImpl.PricePointsTypeImpl();\n }", "Point()\n\t{\n\t\t//default point\n\t\t//this = properties of this object we are working with\n\t\tthis.x=0;\n\t\tthis.y=0;\n\t\tcountOfPoints++;\n\t}", "Point() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "public void createHandles() {\n\t\tList<Handle> handles = new ArrayList<Handle>();\n\n\t\tHandle centerHandle = new Handle(center, \"center\", MotionRestriction.None);\n\t\tHandle XRadiusHandle = new Handle(new Point2D.Double(center.x + radiusx, center.y), \"XRadius\", MotionRestriction.Horizontal);\n\t\tHandle YRadiusHandle = new Handle(new Point2D.Double(center.x, center.y + radiusy), \"YRadius\", MotionRestriction.Vertical);\n\n\t\thandles.add(centerHandle);\n\t\thandles.add(XRadiusHandle);\n\t\thandles.add(YRadiusHandle);\n\n\t\taddHandles(handles);\n\t}", "public void createHandles() {\n\t\tList<Handle> handles = new ArrayList<Handle>();\n\n\t\tHandle centerHandle = new Handle(center, \"center\", MotionRestriction.None);\n\t\tHandle XRadiusHandle = new Handle(new Point2D.Double(center.x + radiusx, center.y), \"XRadius\", MotionRestriction.Horizontal);\n\t\tHandle YRadiusHandle = new Handle(new Point2D.Double(center.x, center.y + radiusy), \"YRadius\", MotionRestriction.Vertical);\n\n\t\thandles.add(centerHandle);\n\t\thandles.add(XRadiusHandle);\n\t\thandles.add(YRadiusHandle);\n\n\t\taddHandles(handles);\n\t}", "public com.vodafone.global.er.decoupling.binding.request.ErServiceType.PricePointsType createErServiceTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ErServiceTypeImpl.PricePointsTypeImpl();\n }", "public static Point createPoint(double x, double y) {\n Point point = new Point();\n point.setX(x);\n point.setY(y);\n\n return point;\n }", "void createHandler(final String handlerClassName);", "public Point()\r\n\t{\r\n\t\tx = y = 0;\r\n\t}", "public PointSET() {\n points = new SET<Point2D>();\n }", "public Point(Point point) {\n super(point.getReferenceX(), point.getReferenceY());\n this.x = point.x;\n this.y = point.y;\n this.setHeight(point.getHeight());\n }", "public static native GPolyline create(JavaScriptObject points, String color)/*-{\r\n\t\treturn new $wnd.GPolyline(points, color);\r\n\t}-*/;", "public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }", "public static native GPolyline create(JavaScriptObject points)/*-{\r\n\t\treturn new $wnd.GPolyline(points);\r\n\t}-*/;", "public Point() {\n this.x = Math.random();\n this.y = Math.random();\n }", "public MyPoint1 (double x, double y) {}", "public com.vodafone.global.er.decoupling.binding.request.PricePointLittleType createPricePointLittleType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointLittleTypeImpl();\n }", "public PointDistributer() {\n }", "public static native GPolyline create(JavaScriptObject points, String color, int weight)/*-{\r\n\t\treturn new $wnd.GPolyline(points, color, weight);\r\n\t}-*/;", "@Override\n\tpublic Location newInstance() {\n\t\treturn new Location(this.X,this.Y,0);\n\t}", "public Point() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "Position createPosition();", "public Point(int x,int y){\r\n\t\tthis.pos = x;\r\n\t\tthis.id = y;\r\n\t}", "@Action\n public void addPoint() { \n Point2D pt = randomPoint();\n PrimitiveGraphic bp = JGraphics.point(pt, RandomStyles.point());\n bp.setDefaultTooltip(\"<html><b>Point</b>: <i> \" + pt + \"</i>\");\n bp.setDragEnabled(true);\n root1.addGraphic(bp);\n }", "public Step createStep(int n, double x, double y) {\n if (isLocked()) return null;\n OffsetOriginStep step = (OffsetOriginStep) getStep(n);\n if (step == null) {\n step = new OffsetOriginStep(this, n, x, y);\n step.setFootprint(getFootprint());\n steps = new StepArray(step);\n support.firePropertyChange(\"step\", null, n); //$NON-NLS-1$\n } else if (trackerPanel != null) {\n XMLControl currentState = new XMLControlElement(this);\n TPoint p = step.getPosition();\n p.setLocation(x, y);\n Point2D pt = p.getWorldPosition(trackerPanel);\n step.worldX = pt.getX();\n step.worldY = pt.getY();\n keyFrames.add(n);\n Undo.postTrackEdit(this, currentState);\n }\n return step;\n }", "public void create(HandlerContext context, Management request, Management response) {\n\t\t// TODO Auto-generated method stub\n\n\t}", "public CoreBreakpoint.Event getNewInstance () {\n return new LineBreakpoint ();\n }", "Handle newHandle();", "Position_ordonnee createPosition_ordonnee();", "@Override\n public MapPoint clone(){\n MapPoint pl = new MapPoint();\n pl.setId(this.pointId);\n pl.setX(this.pointX);\n pl.setY(this.pointY);\n pl.setTags(this.tags);\n return pl;\n }", "Vaisseau_positionner createVaisseau_positionner();", "public PointSET() {\n\n point2DSET = new SET<>();\n }", "public Point(int x, int y) {\n /* DO NOT MODIFY */\n this.x = x;\n this.y = y;\n SLOPE_ORDER = new SlopeOrder();\n }", "private void definePoints(){\n defineLinePoints(x1, y1, x2, y2);\n defineLinePoints(x1,y1, x3, y3);\n defineLinePoints(x2,y2, x3, y3);\n }", "public ParkingSpot createSpot() {\n ParkingSpot spot = new ParkingSpot();\n spot.setTime(time);\n spot.setId(id);\n spot.setLongitude(longitude);\n spot.setLatitude(latitude);\n spot.setAccuracy(accuracy);\n return spot;\n }", "public Point2d() {\r\n\t // Call two-argument constructor and specify the origin.\r\n\t\t this(0, 0);\r\n\t\t System.out.println(\"Point2d default initiializing\");\r\n\t }", "public com.vodafone.global.er.decoupling.binding.request.CatalogPackageFullType.PricePointsType createCatalogPackageFullTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageFullTypeImpl.PricePointsTypeImpl();\n }", "public Bus createBus(String line, Point point) throws PFWModelException {\t\t\n\t\tBus bus = constructBus(line, point);\t\t\t\t\n int legacyid = bus.getAttribute(PFWModelConstants.PFW_LEGACY_ID_KEY,Integer.class);\n\n \t// check to see if the area already exists\n \tif (doesLegacyExist(LEGACY_TAG,legacyid)) {\n \t\tif (point == null) {\n bus.setCoordinate(getLegacy(LEGACY_TAG,legacyid).getCoordinate());\n \n \t\t} \t\t\n \t}\n \treturn bus;\n\t}", "public GenericHandler() {\n\n }", "public Point(double x, double y){\n this.x = x;\n this.y = y;\n }", "public Hello(Handler handler){\n this.handler = handler;\n }", "public void manageInputPointCreation(){\n Button addInputButton = new Button();\n addInputButton.setId(\"addInputListButton\");\n\n addInputButton.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent event) {\n try {\n Map<String, IYamlDomain> newMap = new HashMap<String, IYamlDomain>();\n newMap.put(Integer.toString(_addCounter), _class.newInstance());\n _abstractUiNode.getChilds().get(0).addInputData(newMap);\n _addCounter ++;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n _abstractUiNode.getChildren().add(addInputButton);\n addInputButton.setVisible(true);\n StackPane.setAlignment(addInputButton, Pos.BOTTOM_LEFT);\n\n }", "public org.astrogrid.stc.coords.v1_10.beans.Double3Type addNewPoint()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.astrogrid.stc.coords.v1_10.beans.Double3Type target = null;\n target = (org.astrogrid.stc.coords.v1_10.beans.Double3Type)get_store().add_element_user(POINT$0);\n return target;\n }\n }", "public abstract Shape create(Point2D press, Point2D release);", "protected DDBUserPointDAO() {\r\n\t\tsuper(UserPoint.class);\r\n\t}", "public void setPointId(Integer pointId) {\n this.pointId = pointId;\n }", "public void setPoint(Integer point) {\n this.point = point;\n }", "@Test\n\tpublic void testCreation() {\n\n\t\tnew Point(20, 10).save();\n\n\t\tList<Point> points = Point.findByAll();\n\n\t\tassertEquals(1, points.size());\n\t\tassertEquals(points.get(0).x, 20);\n\t\tassertEquals(points.get(0).y, 10);\n\n\t}", "public State createState(final Point point) {\n\t\tint i = 0;\n\t\twhile (getStateWithID(i) != null) {\n\t\t\ti++;\n\t\t}\n\t\tfinal State state = new State(i, point, this);\n\t\taddState(state);\n\t\treturn state;\n\t}", "public Point(int x, int y){\n this.x = x;\n this.y = y;\n }", "public Point()\n {\n x = -100 + (int) (Math.random() * ((100 - (-100)) + 1)); \n y = -100 + (int) (Math.random() * ((100 - (-100)) + 1));\n //x = (int) (Math.random()); \n //y =(int) (Math.random());\n pointArr[0] = 1;\n pointArr[1] = x;\n pointArr[2] = y;\n //If the point is on the line, is it accepted? I counted it as accepted for now\n if(y >= 3*x){\n desiredOut = 1;\n }\n else\n {\n desiredOut = 0;\n }\n }", "public PacketHandler() {}", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.CreditPurchasePricePointsType createPricePointFullTypeCreditPurchasePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.CreditPurchasePricePointsTypeImpl();\n }", "public void createNew(int xSize, int ySize, int countOfMines);", "public static native GPolyline create(JavaScriptObject points, String color, int weight, double opacity)/*-{\r\n \treturn new $wnd.GPolyline(points, color, weight, opacity);\r\n }-*/;", "public Point(Vector position) {\n\t\tthis(position, 5.0);\n\t}", "private PersonHandler() {\n }", "public Point(double x, double y) {\n this.xPosition = x;\n this.yPosition = y;\n }", "public Point(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }", "public static QueryParamHandler create(QueryParamMapping mapping) {\n return new QueryParamHandler(mapping);\n }", "public Point2Dd () {\r\n x = 0;\r\n y = 0;\r\n }", "public com.vodafone.global.er.decoupling.binding.request.PackageType.PricePointsType createPackageTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PackageTypeImpl.PricePointsTypeImpl();\n }", "public Handle(int position) {\n this.position = position;\n }", "private void initPoint() {\n\t\tfor (int i = 0; i < images.length; i++) {\r\n\t\t\tView view = new View(SnaDetailsActivity.this);\r\n\t\t\tparamsL.setMargins(YangUtils.dip2px(SnaDetailsActivity.this, 5), 0, 0, 0);\r\n\t\t\tview.setLayoutParams(paramsL);\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tview.setBackgroundResource(R.drawable.sy_03);\r\n\t\t\t} else {\r\n\t\t\t\tview.setBackgroundResource(R.drawable.sy_05);\r\n\t\t\t}\r\n\r\n\t\t\tviews.add(view);\r\n\t\t\tll_point.addView(view);\r\n\t\t}\r\n\t}", "private DataHandler createDataHandler(URL url) throws MalformedURLException {\n return new DataHandler(url);\n }", "protected Tool createHandleTracker(DrawingView view, Handle handle) {\n return new HandleTracker(view, handle);\n }", "public PointSET() { // construct an empty set of points\n\n }", "public PrecisePoint() {\n }", "@Override\n\tpublic void RegisterHandler(HotSpotServerEventHandler handler) {\n\t\teventHandlers.add(handler);\n\t}", "public void createHandlerAndRunnable(){\n handler = new Handler();\n runnable = new Runnable(){\n @Override\n public void run() {\n makegoaway();\n }\n };\n handler.postDelayed(runnable, SPLASH_DISPLAY_LENGHT);\n }", "private MarkerOptions makeMarkerAt( LatLng point ) {\n \t\treturn new MarkerOptions().flat( true ).draggable( true ).position( point );\n \t}", "public Point(Point p)\r\n\t{\r\n\t\tx = p.x;\r\n\t\ty = p.y;\r\n\t}", "Point(Double x, Double y) {\n\t\tthis.setX(x);\n\t\tthis.setY(y);\n\t}", "public PointServlet() {\n\t\tsuper();\n\t}", "private static List<Point> genererPointsAlea(int nbPoints) {\n /*List<Point> points = new ArrayList<>();\n Random rand = new Random(0);\n for(int i=0; i<nbPoints; i++) {\n Point p = new Point(rand.nextDouble(), rand.nextDouble());\n points.add(p);\n }\n return points;*/\n return null;\n }", "public FieldPoint() {\n setX( DEFAULT_VALUE );\n setY( DEFAULT_VALUE );\n }", "public Point(int x, int y) {\r\n /* DO NOT MODIFY */\r\n this.x = x;\r\n this.y = y;\r\n\t\tSLOPE_ORDER = new SlopeOrderComparator(this);\r\n }" ]
[ "0.63380426", "0.6163667", "0.59996086", "0.5821952", "0.57316726", "0.57227194", "0.56354636", "0.56354636", "0.5429676", "0.53841454", "0.53402483", "0.5316464", "0.53056663", "0.5293003", "0.5260689", "0.5246629", "0.5243436", "0.5239561", "0.52330595", "0.5231368", "0.52273065", "0.5212598", "0.5211474", "0.5170622", "0.5168278", "0.51513153", "0.512614", "0.5123809", "0.5123809", "0.51221216", "0.51069045", "0.5103842", "0.5051029", "0.5042611", "0.50314355", "0.50134426", "0.501027", "0.5003766", "0.4995042", "0.4991314", "0.49855056", "0.49852085", "0.4970166", "0.49620563", "0.4950538", "0.4934374", "0.49302185", "0.4925766", "0.49213225", "0.48900917", "0.48877186", "0.48847786", "0.48835874", "0.48798925", "0.4868809", "0.4854539", "0.48451784", "0.4844004", "0.4843126", "0.48427123", "0.48265186", "0.4799635", "0.47842944", "0.47751397", "0.4775084", "0.47748077", "0.4768396", "0.4767759", "0.47614574", "0.47597554", "0.475837", "0.47547096", "0.47499985", "0.47485283", "0.474591", "0.47388062", "0.47379562", "0.47315946", "0.47286677", "0.47203714", "0.4719167", "0.47170532", "0.47161493", "0.47039825", "0.4701137", "0.4698827", "0.46959218", "0.46958303", "0.4694598", "0.4685445", "0.46846867", "0.46796966", "0.46796778", "0.46783662", "0.4674227", "0.467159", "0.46714127", "0.46704417", "0.46698064", "0.46671337", "0.46630585" ]
0.0
-1
Crea un nuevo PointHandler.
public CenterSelHandler(int i, double x, double y) { point = new Point2D.Double(x, y); index = i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point createPoint();", "void createPoint(JsonObject jsonMetadata, Handler<AsyncResult<String>> resultHandler);", "CreateHandler()\n {\n }", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "public static GPSManager newInstance(Handler handler)\n {\n return new GPSManager(handler);\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointType createPricePointType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl();\n }", "public Point() {\n }", "public Point() {\n }", "void newRoutePoint(RoutePointDTO routePointDTO, RouteDTO routeDTO, List<RoutePointDTO> points);", "private void createHandler() {\r\n playerAHandler = new Handler() {\r\n @Override\r\n public void handleMessage(Message msg) {\r\n switch(msg.what) {\r\n case Constants.MADE_MOVE:\r\n makeMove();\r\n break;\r\n default: break;\r\n }\r\n }\r\n };\r\n }", "Viewpoint createViewpoint();", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType createPricePointFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl();\n }", "public PointSET() {\n pointSet = new SET<Point2D>();\n }", "public PointRecord(){\n \n }", "public static boolean createPointForEvent(int eventType, int points) {\n PointsTranslation pointsTranslation = new PointsTranslation();\n pointsTranslation.eventTypeId = eventType;\n pointsTranslation.points = points;\n pointsTranslation.createdAt = GlobalDate.getCurrentDate();\n pointsTranslation.lastModified = pointsTranslation.createdAt;\n Model.pointsTranslation().insert(pointsTranslation);\n\n OpsLog.onNew(pointsTranslation);\n return true;\n }", "public LocationPoint(){\n this.mLocationID = UUID.randomUUID();\n }", "public Point(){\n this.x = 0;\n this.y = 0;\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "public static Points createEntity() {\n Points points = new Points()\n .date(DEFAULT_DATE)\n .exercise(DEFAULT_EXERCISE)\n .meals(DEFAULT_MEALS)\n .alcohol(DEFAULT_ALCOHOL)\n .notes(DEFAULT_NOTES);\n return points;\n }", "Point() {\n this.x = 0;\n this.y = 0;\n }", "public void onTrackedHand(SimpleOpenNI curKinect, int handId, PVector pos){\n kinect.convertRealWorldToProjective(pos,pos);\n\n if( gesture.getHands().containsKey(handId) ){\n //insert point\n gesture.getHand(handId).savePoint(pos);\n\n }\n}", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "public PointEventNode(String id) {\n\t\tsuper(id);\n\t}", "public com.vodafone.global.er.decoupling.binding.request.CatalogPackageLittleType.PricePointsType createCatalogPackageLittleTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageLittleTypeImpl.PricePointsTypeImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.ErServiceFullType.PricePointsType createErServiceFullTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ErServiceFullTypeImpl.PricePointsTypeImpl();\n }", "Point()\n\t{\n\t\t//default point\n\t\t//this = properties of this object we are working with\n\t\tthis.x=0;\n\t\tthis.y=0;\n\t\tcountOfPoints++;\n\t}", "Point() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "public com.vodafone.global.er.decoupling.binding.request.ErServiceType.PricePointsType createErServiceTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ErServiceTypeImpl.PricePointsTypeImpl();\n }", "public void createHandles() {\n\t\tList<Handle> handles = new ArrayList<Handle>();\n\n\t\tHandle centerHandle = new Handle(center, \"center\", MotionRestriction.None);\n\t\tHandle XRadiusHandle = new Handle(new Point2D.Double(center.x + radiusx, center.y), \"XRadius\", MotionRestriction.Horizontal);\n\t\tHandle YRadiusHandle = new Handle(new Point2D.Double(center.x, center.y + radiusy), \"YRadius\", MotionRestriction.Vertical);\n\n\t\thandles.add(centerHandle);\n\t\thandles.add(XRadiusHandle);\n\t\thandles.add(YRadiusHandle);\n\n\t\taddHandles(handles);\n\t}", "public void createHandles() {\n\t\tList<Handle> handles = new ArrayList<Handle>();\n\n\t\tHandle centerHandle = new Handle(center, \"center\", MotionRestriction.None);\n\t\tHandle XRadiusHandle = new Handle(new Point2D.Double(center.x + radiusx, center.y), \"XRadius\", MotionRestriction.Horizontal);\n\t\tHandle YRadiusHandle = new Handle(new Point2D.Double(center.x, center.y + radiusy), \"YRadius\", MotionRestriction.Vertical);\n\n\t\thandles.add(centerHandle);\n\t\thandles.add(XRadiusHandle);\n\t\thandles.add(YRadiusHandle);\n\n\t\taddHandles(handles);\n\t}", "public static Point createPoint(double x, double y) {\n Point point = new Point();\n point.setX(x);\n point.setY(y);\n\n return point;\n }", "void createHandler(final String handlerClassName);", "public Point()\r\n\t{\r\n\t\tx = y = 0;\r\n\t}", "public PointSET() {\n points = new SET<Point2D>();\n }", "public Point(Point point) {\n super(point.getReferenceX(), point.getReferenceY());\n this.x = point.x;\n this.y = point.y;\n this.setHeight(point.getHeight());\n }", "public static native GPolyline create(JavaScriptObject points, String color)/*-{\r\n\t\treturn new $wnd.GPolyline(points, color);\r\n\t}-*/;", "public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }", "public static native GPolyline create(JavaScriptObject points)/*-{\r\n\t\treturn new $wnd.GPolyline(points);\r\n\t}-*/;", "public Point() {\n this.x = Math.random();\n this.y = Math.random();\n }", "public MyPoint1 (double x, double y) {}", "public com.vodafone.global.er.decoupling.binding.request.PricePointLittleType createPricePointLittleType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointLittleTypeImpl();\n }", "public PointDistributer() {\n }", "public static native GPolyline create(JavaScriptObject points, String color, int weight)/*-{\r\n\t\treturn new $wnd.GPolyline(points, color, weight);\r\n\t}-*/;", "@Override\n\tpublic Location newInstance() {\n\t\treturn new Location(this.X,this.Y,0);\n\t}", "public Point() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "Position createPosition();", "public Point(int x,int y){\r\n\t\tthis.pos = x;\r\n\t\tthis.id = y;\r\n\t}", "@Action\n public void addPoint() { \n Point2D pt = randomPoint();\n PrimitiveGraphic bp = JGraphics.point(pt, RandomStyles.point());\n bp.setDefaultTooltip(\"<html><b>Point</b>: <i> \" + pt + \"</i>\");\n bp.setDragEnabled(true);\n root1.addGraphic(bp);\n }", "public Step createStep(int n, double x, double y) {\n if (isLocked()) return null;\n OffsetOriginStep step = (OffsetOriginStep) getStep(n);\n if (step == null) {\n step = new OffsetOriginStep(this, n, x, y);\n step.setFootprint(getFootprint());\n steps = new StepArray(step);\n support.firePropertyChange(\"step\", null, n); //$NON-NLS-1$\n } else if (trackerPanel != null) {\n XMLControl currentState = new XMLControlElement(this);\n TPoint p = step.getPosition();\n p.setLocation(x, y);\n Point2D pt = p.getWorldPosition(trackerPanel);\n step.worldX = pt.getX();\n step.worldY = pt.getY();\n keyFrames.add(n);\n Undo.postTrackEdit(this, currentState);\n }\n return step;\n }", "public void create(HandlerContext context, Management request, Management response) {\n\t\t// TODO Auto-generated method stub\n\n\t}", "public CoreBreakpoint.Event getNewInstance () {\n return new LineBreakpoint ();\n }", "Handle newHandle();", "Position_ordonnee createPosition_ordonnee();", "@Override\n public MapPoint clone(){\n MapPoint pl = new MapPoint();\n pl.setId(this.pointId);\n pl.setX(this.pointX);\n pl.setY(this.pointY);\n pl.setTags(this.tags);\n return pl;\n }", "Vaisseau_positionner createVaisseau_positionner();", "public PointSET() {\n\n point2DSET = new SET<>();\n }", "public Point(int x, int y) {\n /* DO NOT MODIFY */\n this.x = x;\n this.y = y;\n SLOPE_ORDER = new SlopeOrder();\n }", "private void definePoints(){\n defineLinePoints(x1, y1, x2, y2);\n defineLinePoints(x1,y1, x3, y3);\n defineLinePoints(x2,y2, x3, y3);\n }", "public ParkingSpot createSpot() {\n ParkingSpot spot = new ParkingSpot();\n spot.setTime(time);\n spot.setId(id);\n spot.setLongitude(longitude);\n spot.setLatitude(latitude);\n spot.setAccuracy(accuracy);\n return spot;\n }", "public Point2d() {\r\n\t // Call two-argument constructor and specify the origin.\r\n\t\t this(0, 0);\r\n\t\t System.out.println(\"Point2d default initiializing\");\r\n\t }", "public com.vodafone.global.er.decoupling.binding.request.CatalogPackageFullType.PricePointsType createCatalogPackageFullTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageFullTypeImpl.PricePointsTypeImpl();\n }", "public Bus createBus(String line, Point point) throws PFWModelException {\t\t\n\t\tBus bus = constructBus(line, point);\t\t\t\t\n int legacyid = bus.getAttribute(PFWModelConstants.PFW_LEGACY_ID_KEY,Integer.class);\n\n \t// check to see if the area already exists\n \tif (doesLegacyExist(LEGACY_TAG,legacyid)) {\n \t\tif (point == null) {\n bus.setCoordinate(getLegacy(LEGACY_TAG,legacyid).getCoordinate());\n \n \t\t} \t\t\n \t}\n \treturn bus;\n\t}", "public GenericHandler() {\n\n }", "public Point(double x, double y){\n this.x = x;\n this.y = y;\n }", "public void manageInputPointCreation(){\n Button addInputButton = new Button();\n addInputButton.setId(\"addInputListButton\");\n\n addInputButton.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent event) {\n try {\n Map<String, IYamlDomain> newMap = new HashMap<String, IYamlDomain>();\n newMap.put(Integer.toString(_addCounter), _class.newInstance());\n _abstractUiNode.getChilds().get(0).addInputData(newMap);\n _addCounter ++;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n _abstractUiNode.getChildren().add(addInputButton);\n addInputButton.setVisible(true);\n StackPane.setAlignment(addInputButton, Pos.BOTTOM_LEFT);\n\n }", "public Hello(Handler handler){\n this.handler = handler;\n }", "public abstract Shape create(Point2D press, Point2D release);", "public org.astrogrid.stc.coords.v1_10.beans.Double3Type addNewPoint()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.astrogrid.stc.coords.v1_10.beans.Double3Type target = null;\n target = (org.astrogrid.stc.coords.v1_10.beans.Double3Type)get_store().add_element_user(POINT$0);\n return target;\n }\n }", "protected DDBUserPointDAO() {\r\n\t\tsuper(UserPoint.class);\r\n\t}", "public void setPointId(Integer pointId) {\n this.pointId = pointId;\n }", "public void setPoint(Integer point) {\n this.point = point;\n }", "@Test\n\tpublic void testCreation() {\n\n\t\tnew Point(20, 10).save();\n\n\t\tList<Point> points = Point.findByAll();\n\n\t\tassertEquals(1, points.size());\n\t\tassertEquals(points.get(0).x, 20);\n\t\tassertEquals(points.get(0).y, 10);\n\n\t}", "public State createState(final Point point) {\n\t\tint i = 0;\n\t\twhile (getStateWithID(i) != null) {\n\t\t\ti++;\n\t\t}\n\t\tfinal State state = new State(i, point, this);\n\t\taddState(state);\n\t\treturn state;\n\t}", "public Point(int x, int y){\n this.x = x;\n this.y = y;\n }", "public Point()\n {\n x = -100 + (int) (Math.random() * ((100 - (-100)) + 1)); \n y = -100 + (int) (Math.random() * ((100 - (-100)) + 1));\n //x = (int) (Math.random()); \n //y =(int) (Math.random());\n pointArr[0] = 1;\n pointArr[1] = x;\n pointArr[2] = y;\n //If the point is on the line, is it accepted? I counted it as accepted for now\n if(y >= 3*x){\n desiredOut = 1;\n }\n else\n {\n desiredOut = 0;\n }\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.CreditPurchasePricePointsType createPricePointFullTypeCreditPurchasePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.CreditPurchasePricePointsTypeImpl();\n }", "public PacketHandler() {}", "public void createNew(int xSize, int ySize, int countOfMines);", "public static native GPolyline create(JavaScriptObject points, String color, int weight, double opacity)/*-{\r\n \treturn new $wnd.GPolyline(points, color, weight, opacity);\r\n }-*/;", "public Point(Vector position) {\n\t\tthis(position, 5.0);\n\t}", "public Point(double x, double y) {\n this.xPosition = x;\n this.yPosition = y;\n }", "public Point(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }", "private PersonHandler() {\n }", "public Point2Dd () {\r\n x = 0;\r\n y = 0;\r\n }", "public static QueryParamHandler create(QueryParamMapping mapping) {\n return new QueryParamHandler(mapping);\n }", "public com.vodafone.global.er.decoupling.binding.request.PackageType.PricePointsType createPackageTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PackageTypeImpl.PricePointsTypeImpl();\n }", "public Handle(int position) {\n this.position = position;\n }", "private void initPoint() {\n\t\tfor (int i = 0; i < images.length; i++) {\r\n\t\t\tView view = new View(SnaDetailsActivity.this);\r\n\t\t\tparamsL.setMargins(YangUtils.dip2px(SnaDetailsActivity.this, 5), 0, 0, 0);\r\n\t\t\tview.setLayoutParams(paramsL);\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tview.setBackgroundResource(R.drawable.sy_03);\r\n\t\t\t} else {\r\n\t\t\t\tview.setBackgroundResource(R.drawable.sy_05);\r\n\t\t\t}\r\n\r\n\t\t\tviews.add(view);\r\n\t\t\tll_point.addView(view);\r\n\t\t}\r\n\t}", "private DataHandler createDataHandler(URL url) throws MalformedURLException {\n return new DataHandler(url);\n }", "public PointSET() { // construct an empty set of points\n\n }", "protected Tool createHandleTracker(DrawingView view, Handle handle) {\n return new HandleTracker(view, handle);\n }", "public PrecisePoint() {\n }", "private MarkerOptions makeMarkerAt( LatLng point ) {\n \t\treturn new MarkerOptions().flat( true ).draggable( true ).position( point );\n \t}", "@Override\n\tpublic void RegisterHandler(HotSpotServerEventHandler handler) {\n\t\teventHandlers.add(handler);\n\t}", "public void createHandlerAndRunnable(){\n handler = new Handler();\n runnable = new Runnable(){\n @Override\n public void run() {\n makegoaway();\n }\n };\n handler.postDelayed(runnable, SPLASH_DISPLAY_LENGHT);\n }", "public Point(Point p)\r\n\t{\r\n\t\tx = p.x;\r\n\t\ty = p.y;\r\n\t}", "Point(Double x, Double y) {\n\t\tthis.setX(x);\n\t\tthis.setY(y);\n\t}", "public PointServlet() {\n\t\tsuper();\n\t}", "private static List<Point> genererPointsAlea(int nbPoints) {\n /*List<Point> points = new ArrayList<>();\n Random rand = new Random(0);\n for(int i=0; i<nbPoints; i++) {\n Point p = new Point(rand.nextDouble(), rand.nextDouble());\n points.add(p);\n }\n return points;*/\n return null;\n }", "public FieldPoint() {\n setX( DEFAULT_VALUE );\n setY( DEFAULT_VALUE );\n }", "public Point(int x, int y) {\r\n /* DO NOT MODIFY */\r\n this.x = x;\r\n this.y = y;\r\n\t\tSLOPE_ORDER = new SlopeOrderComparator(this);\r\n }" ]
[ "0.63409686", "0.6164", "0.5996672", "0.58234715", "0.57300484", "0.57251096", "0.5638657", "0.5638657", "0.5430027", "0.5379613", "0.5342413", "0.5318158", "0.53083473", "0.5295687", "0.5262619", "0.5248844", "0.5246272", "0.52425116", "0.52351207", "0.5233972", "0.5227372", "0.5215027", "0.52140915", "0.5172511", "0.51697785", "0.515422", "0.51286197", "0.51239735", "0.51223534", "0.51223534", "0.5108494", "0.51007044", "0.5053858", "0.5045048", "0.50343376", "0.50151795", "0.50135005", "0.500522", "0.49981415", "0.49941587", "0.498725", "0.49871778", "0.49712867", "0.49634993", "0.4953027", "0.49358085", "0.49335536", "0.49278", "0.4921284", "0.4887839", "0.48865372", "0.48835635", "0.48835257", "0.48813742", "0.48684707", "0.48571163", "0.48481512", "0.48455846", "0.48451743", "0.4844861", "0.48285204", "0.4802267", "0.47823846", "0.47777542", "0.47742218", "0.47722307", "0.47700885", "0.4770006", "0.4763952", "0.47624508", "0.4760999", "0.47567484", "0.4753512", "0.47514528", "0.47494444", "0.47392252", "0.47369343", "0.47324088", "0.47295266", "0.47232175", "0.47195622", "0.47191128", "0.47176746", "0.4703184", "0.47031355", "0.4701013", "0.4696033", "0.4695649", "0.46932828", "0.46877974", "0.4685558", "0.46828565", "0.46769804", "0.46765077", "0.46745434", "0.4674233", "0.46736524", "0.4672523", "0.4670976", "0.46690693", "0.4665928" ]
0.0
-1
Crea un nuevo PointHandler.
public RadioSelHandler(int i, double x, double y) { point = new Point2D.Double(x, y); index = i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point createPoint();", "void createPoint(JsonObject jsonMetadata, Handler<AsyncResult<String>> resultHandler);", "CreateHandler()\n {\n }", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "public static GPSManager newInstance(Handler handler)\n {\n return new GPSManager(handler);\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointType createPricePointType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl();\n }", "public Point() {\n }", "public Point() {\n }", "void newRoutePoint(RoutePointDTO routePointDTO, RouteDTO routeDTO, List<RoutePointDTO> points);", "private void createHandler() {\r\n playerAHandler = new Handler() {\r\n @Override\r\n public void handleMessage(Message msg) {\r\n switch(msg.what) {\r\n case Constants.MADE_MOVE:\r\n makeMove();\r\n break;\r\n default: break;\r\n }\r\n }\r\n };\r\n }", "Viewpoint createViewpoint();", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType createPricePointFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl();\n }", "public PointSET() {\n pointSet = new SET<Point2D>();\n }", "public PointRecord(){\n \n }", "public static boolean createPointForEvent(int eventType, int points) {\n PointsTranslation pointsTranslation = new PointsTranslation();\n pointsTranslation.eventTypeId = eventType;\n pointsTranslation.points = points;\n pointsTranslation.createdAt = GlobalDate.getCurrentDate();\n pointsTranslation.lastModified = pointsTranslation.createdAt;\n Model.pointsTranslation().insert(pointsTranslation);\n\n OpsLog.onNew(pointsTranslation);\n return true;\n }", "public LocationPoint(){\n this.mLocationID = UUID.randomUUID();\n }", "public Point(){\n this.x = 0;\n this.y = 0;\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "public static Points createEntity() {\n Points points = new Points()\n .date(DEFAULT_DATE)\n .exercise(DEFAULT_EXERCISE)\n .meals(DEFAULT_MEALS)\n .alcohol(DEFAULT_ALCOHOL)\n .notes(DEFAULT_NOTES);\n return points;\n }", "Point() {\n this.x = 0;\n this.y = 0;\n }", "public void onTrackedHand(SimpleOpenNI curKinect, int handId, PVector pos){\n kinect.convertRealWorldToProjective(pos,pos);\n\n if( gesture.getHands().containsKey(handId) ){\n //insert point\n gesture.getHand(handId).savePoint(pos);\n\n }\n}", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "public PointEventNode(String id) {\n\t\tsuper(id);\n\t}", "public com.vodafone.global.er.decoupling.binding.request.CatalogPackageLittleType.PricePointsType createCatalogPackageLittleTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageLittleTypeImpl.PricePointsTypeImpl();\n }", "public com.vodafone.global.er.decoupling.binding.request.ErServiceFullType.PricePointsType createErServiceFullTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ErServiceFullTypeImpl.PricePointsTypeImpl();\n }", "Point()\n\t{\n\t\t//default point\n\t\t//this = properties of this object we are working with\n\t\tthis.x=0;\n\t\tthis.y=0;\n\t\tcountOfPoints++;\n\t}", "Point() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "public com.vodafone.global.er.decoupling.binding.request.ErServiceType.PricePointsType createErServiceTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ErServiceTypeImpl.PricePointsTypeImpl();\n }", "public void createHandles() {\n\t\tList<Handle> handles = new ArrayList<Handle>();\n\n\t\tHandle centerHandle = new Handle(center, \"center\", MotionRestriction.None);\n\t\tHandle XRadiusHandle = new Handle(new Point2D.Double(center.x + radiusx, center.y), \"XRadius\", MotionRestriction.Horizontal);\n\t\tHandle YRadiusHandle = new Handle(new Point2D.Double(center.x, center.y + radiusy), \"YRadius\", MotionRestriction.Vertical);\n\n\t\thandles.add(centerHandle);\n\t\thandles.add(XRadiusHandle);\n\t\thandles.add(YRadiusHandle);\n\n\t\taddHandles(handles);\n\t}", "public void createHandles() {\n\t\tList<Handle> handles = new ArrayList<Handle>();\n\n\t\tHandle centerHandle = new Handle(center, \"center\", MotionRestriction.None);\n\t\tHandle XRadiusHandle = new Handle(new Point2D.Double(center.x + radiusx, center.y), \"XRadius\", MotionRestriction.Horizontal);\n\t\tHandle YRadiusHandle = new Handle(new Point2D.Double(center.x, center.y + radiusy), \"YRadius\", MotionRestriction.Vertical);\n\n\t\thandles.add(centerHandle);\n\t\thandles.add(XRadiusHandle);\n\t\thandles.add(YRadiusHandle);\n\n\t\taddHandles(handles);\n\t}", "public static Point createPoint(double x, double y) {\n Point point = new Point();\n point.setX(x);\n point.setY(y);\n\n return point;\n }", "void createHandler(final String handlerClassName);", "public Point()\r\n\t{\r\n\t\tx = y = 0;\r\n\t}", "public PointSET() {\n points = new SET<Point2D>();\n }", "public Point(Point point) {\n super(point.getReferenceX(), point.getReferenceY());\n this.x = point.x;\n this.y = point.y;\n this.setHeight(point.getHeight());\n }", "public static native GPolyline create(JavaScriptObject points, String color)/*-{\r\n\t\treturn new $wnd.GPolyline(points, color);\r\n\t}-*/;", "public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }", "public static native GPolyline create(JavaScriptObject points)/*-{\r\n\t\treturn new $wnd.GPolyline(points);\r\n\t}-*/;", "public Point() {\n this.x = Math.random();\n this.y = Math.random();\n }", "public MyPoint1 (double x, double y) {}", "public com.vodafone.global.er.decoupling.binding.request.PricePointLittleType createPricePointLittleType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointLittleTypeImpl();\n }", "public PointDistributer() {\n }", "public static native GPolyline create(JavaScriptObject points, String color, int weight)/*-{\r\n\t\treturn new $wnd.GPolyline(points, color, weight);\r\n\t}-*/;", "@Override\n\tpublic Location newInstance() {\n\t\treturn new Location(this.X,this.Y,0);\n\t}", "public Point() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "Position createPosition();", "public Point(int x,int y){\r\n\t\tthis.pos = x;\r\n\t\tthis.id = y;\r\n\t}", "@Action\n public void addPoint() { \n Point2D pt = randomPoint();\n PrimitiveGraphic bp = JGraphics.point(pt, RandomStyles.point());\n bp.setDefaultTooltip(\"<html><b>Point</b>: <i> \" + pt + \"</i>\");\n bp.setDragEnabled(true);\n root1.addGraphic(bp);\n }", "public Step createStep(int n, double x, double y) {\n if (isLocked()) return null;\n OffsetOriginStep step = (OffsetOriginStep) getStep(n);\n if (step == null) {\n step = new OffsetOriginStep(this, n, x, y);\n step.setFootprint(getFootprint());\n steps = new StepArray(step);\n support.firePropertyChange(\"step\", null, n); //$NON-NLS-1$\n } else if (trackerPanel != null) {\n XMLControl currentState = new XMLControlElement(this);\n TPoint p = step.getPosition();\n p.setLocation(x, y);\n Point2D pt = p.getWorldPosition(trackerPanel);\n step.worldX = pt.getX();\n step.worldY = pt.getY();\n keyFrames.add(n);\n Undo.postTrackEdit(this, currentState);\n }\n return step;\n }", "public CoreBreakpoint.Event getNewInstance () {\n return new LineBreakpoint ();\n }", "public void create(HandlerContext context, Management request, Management response) {\n\t\t// TODO Auto-generated method stub\n\n\t}", "Position_ordonnee createPosition_ordonnee();", "@Override\n public MapPoint clone(){\n MapPoint pl = new MapPoint();\n pl.setId(this.pointId);\n pl.setX(this.pointX);\n pl.setY(this.pointY);\n pl.setTags(this.tags);\n return pl;\n }", "Handle newHandle();", "Vaisseau_positionner createVaisseau_positionner();", "public PointSET() {\n\n point2DSET = new SET<>();\n }", "public Point(int x, int y) {\n /* DO NOT MODIFY */\n this.x = x;\n this.y = y;\n SLOPE_ORDER = new SlopeOrder();\n }", "private void definePoints(){\n defineLinePoints(x1, y1, x2, y2);\n defineLinePoints(x1,y1, x3, y3);\n defineLinePoints(x2,y2, x3, y3);\n }", "public Point2d() {\r\n\t // Call two-argument constructor and specify the origin.\r\n\t\t this(0, 0);\r\n\t\t System.out.println(\"Point2d default initiializing\");\r\n\t }", "public ParkingSpot createSpot() {\n ParkingSpot spot = new ParkingSpot();\n spot.setTime(time);\n spot.setId(id);\n spot.setLongitude(longitude);\n spot.setLatitude(latitude);\n spot.setAccuracy(accuracy);\n return spot;\n }", "public com.vodafone.global.er.decoupling.binding.request.CatalogPackageFullType.PricePointsType createCatalogPackageFullTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageFullTypeImpl.PricePointsTypeImpl();\n }", "public Bus createBus(String line, Point point) throws PFWModelException {\t\t\n\t\tBus bus = constructBus(line, point);\t\t\t\t\n int legacyid = bus.getAttribute(PFWModelConstants.PFW_LEGACY_ID_KEY,Integer.class);\n\n \t// check to see if the area already exists\n \tif (doesLegacyExist(LEGACY_TAG,legacyid)) {\n \t\tif (point == null) {\n bus.setCoordinate(getLegacy(LEGACY_TAG,legacyid).getCoordinate());\n \n \t\t} \t\t\n \t}\n \treturn bus;\n\t}", "public GenericHandler() {\n\n }", "public Point(double x, double y){\n this.x = x;\n this.y = y;\n }", "public void manageInputPointCreation(){\n Button addInputButton = new Button();\n addInputButton.setId(\"addInputListButton\");\n\n addInputButton.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent event) {\n try {\n Map<String, IYamlDomain> newMap = new HashMap<String, IYamlDomain>();\n newMap.put(Integer.toString(_addCounter), _class.newInstance());\n _abstractUiNode.getChilds().get(0).addInputData(newMap);\n _addCounter ++;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n _abstractUiNode.getChildren().add(addInputButton);\n addInputButton.setVisible(true);\n StackPane.setAlignment(addInputButton, Pos.BOTTOM_LEFT);\n\n }", "public Hello(Handler handler){\n this.handler = handler;\n }", "public org.astrogrid.stc.coords.v1_10.beans.Double3Type addNewPoint()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.astrogrid.stc.coords.v1_10.beans.Double3Type target = null;\n target = (org.astrogrid.stc.coords.v1_10.beans.Double3Type)get_store().add_element_user(POINT$0);\n return target;\n }\n }", "public abstract Shape create(Point2D press, Point2D release);", "public void setPointId(Integer pointId) {\n this.pointId = pointId;\n }", "protected DDBUserPointDAO() {\r\n\t\tsuper(UserPoint.class);\r\n\t}", "public void setPoint(Integer point) {\n this.point = point;\n }", "@Test\n\tpublic void testCreation() {\n\n\t\tnew Point(20, 10).save();\n\n\t\tList<Point> points = Point.findByAll();\n\n\t\tassertEquals(1, points.size());\n\t\tassertEquals(points.get(0).x, 20);\n\t\tassertEquals(points.get(0).y, 10);\n\n\t}", "public State createState(final Point point) {\n\t\tint i = 0;\n\t\twhile (getStateWithID(i) != null) {\n\t\t\ti++;\n\t\t}\n\t\tfinal State state = new State(i, point, this);\n\t\taddState(state);\n\t\treturn state;\n\t}", "public Point(int x, int y){\n this.x = x;\n this.y = y;\n }", "public Point()\n {\n x = -100 + (int) (Math.random() * ((100 - (-100)) + 1)); \n y = -100 + (int) (Math.random() * ((100 - (-100)) + 1));\n //x = (int) (Math.random()); \n //y =(int) (Math.random());\n pointArr[0] = 1;\n pointArr[1] = x;\n pointArr[2] = y;\n //If the point is on the line, is it accepted? I counted it as accepted for now\n if(y >= 3*x){\n desiredOut = 1;\n }\n else\n {\n desiredOut = 0;\n }\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.CreditPurchasePricePointsType createPricePointFullTypeCreditPurchasePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.CreditPurchasePricePointsTypeImpl();\n }", "public PacketHandler() {}", "public static native GPolyline create(JavaScriptObject points, String color, int weight, double opacity)/*-{\r\n \treturn new $wnd.GPolyline(points, color, weight, opacity);\r\n }-*/;", "public void createNew(int xSize, int ySize, int countOfMines);", "public Point(Vector position) {\n\t\tthis(position, 5.0);\n\t}", "public Point(double x, double y) {\n this.xPosition = x;\n this.yPosition = y;\n }", "public Point(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }", "private PersonHandler() {\n }", "public Point2Dd () {\r\n x = 0;\r\n y = 0;\r\n }", "public static QueryParamHandler create(QueryParamMapping mapping) {\n return new QueryParamHandler(mapping);\n }", "public com.vodafone.global.er.decoupling.binding.request.PackageType.PricePointsType createPackageTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PackageTypeImpl.PricePointsTypeImpl();\n }", "private void initPoint() {\n\t\tfor (int i = 0; i < images.length; i++) {\r\n\t\t\tView view = new View(SnaDetailsActivity.this);\r\n\t\t\tparamsL.setMargins(YangUtils.dip2px(SnaDetailsActivity.this, 5), 0, 0, 0);\r\n\t\t\tview.setLayoutParams(paramsL);\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tview.setBackgroundResource(R.drawable.sy_03);\r\n\t\t\t} else {\r\n\t\t\t\tview.setBackgroundResource(R.drawable.sy_05);\r\n\t\t\t}\r\n\r\n\t\t\tviews.add(view);\r\n\t\t\tll_point.addView(view);\r\n\t\t}\r\n\t}", "public Handle(int position) {\n this.position = position;\n }", "private DataHandler createDataHandler(URL url) throws MalformedURLException {\n return new DataHandler(url);\n }", "public PointSET() { // construct an empty set of points\n\n }", "protected Tool createHandleTracker(DrawingView view, Handle handle) {\n return new HandleTracker(view, handle);\n }", "public PrecisePoint() {\n }", "private MarkerOptions makeMarkerAt( LatLng point ) {\n \t\treturn new MarkerOptions().flat( true ).draggable( true ).position( point );\n \t}", "@Override\n\tpublic void RegisterHandler(HotSpotServerEventHandler handler) {\n\t\teventHandlers.add(handler);\n\t}", "public void createHandlerAndRunnable(){\n handler = new Handler();\n runnable = new Runnable(){\n @Override\n public void run() {\n makegoaway();\n }\n };\n handler.postDelayed(runnable, SPLASH_DISPLAY_LENGHT);\n }", "Point(Double x, Double y) {\n\t\tthis.setX(x);\n\t\tthis.setY(y);\n\t}", "public Point(Point p)\r\n\t{\r\n\t\tx = p.x;\r\n\t\ty = p.y;\r\n\t}", "private static List<Point> genererPointsAlea(int nbPoints) {\n /*List<Point> points = new ArrayList<>();\n Random rand = new Random(0);\n for(int i=0; i<nbPoints; i++) {\n Point p = new Point(rand.nextDouble(), rand.nextDouble());\n points.add(p);\n }\n return points;*/\n return null;\n }", "public PointServlet() {\n\t\tsuper();\n\t}", "public FieldPoint() {\n setX( DEFAULT_VALUE );\n setY( DEFAULT_VALUE );\n }", "public Point(int x, int y) {\r\n /* DO NOT MODIFY */\r\n this.x = x;\r\n this.y = y;\r\n\t\tSLOPE_ORDER = new SlopeOrderComparator(this);\r\n }" ]
[ "0.6340927", "0.6164584", "0.59948206", "0.58236945", "0.5729952", "0.572513", "0.5637684", "0.5637684", "0.54317105", "0.53795296", "0.5342827", "0.53181046", "0.5307963", "0.52948666", "0.5263736", "0.5249878", "0.5245916", "0.52417135", "0.5236671", "0.52336526", "0.52274567", "0.52152973", "0.5213998", "0.5173107", "0.5170435", "0.51533663", "0.51282424", "0.512467", "0.512121", "0.512121", "0.51098776", "0.5098831", "0.5053005", "0.504465", "0.50342864", "0.50173366", "0.50136316", "0.5007101", "0.4997775", "0.49941334", "0.4987397", "0.4986249", "0.49733078", "0.49640483", "0.49526867", "0.49358228", "0.49336386", "0.49283683", "0.49218848", "0.4887882", "0.48864117", "0.48836613", "0.4883066", "0.48813745", "0.4869096", "0.48569447", "0.48484516", "0.4847084", "0.48454583", "0.4844812", "0.4828839", "0.48008162", "0.4780088", "0.47777224", "0.47740287", "0.47713545", "0.47701842", "0.4768332", "0.47639364", "0.47628298", "0.47613463", "0.47580466", "0.47520477", "0.47514436", "0.47490442", "0.47393793", "0.47346416", "0.47312886", "0.4730676", "0.4722478", "0.47200352", "0.47192246", "0.47161794", "0.4704111", "0.47033635", "0.47012487", "0.46966892", "0.46940422", "0.46921107", "0.46870136", "0.46851397", "0.46818236", "0.46779922", "0.46763194", "0.46753928", "0.4674268", "0.4674051", "0.46719044", "0.46712705", "0.4669719", "0.46665704" ]
0.0
-1
Created by Ro0kieY on 2017/8/3.
@Component(modules = ActivityModule.class) public interface ActivityComponent { void injectMainActivity(MainActivity activity); void injectGankActivity(GankActivity activity); void injectListActivity(ListActivity activity); void injectMeiziActivity(MeiziActivity activity); void injectVideoActivity(VideoActivity activity); void injectWebActivity(WebActivity activity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n void init() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void init() {}", "private void init() {\n\n\t}", "@Override\n protected void getExras() {\n }", "private Rekenhulp()\n\t{\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo4359a() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\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 jugar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "private void m50366E() {\n }", "public void mo6081a() {\n }", "@Override\n public void initialize() { \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\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\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\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\tprotected void initialize() {\n\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n\tpublic void init() {\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "Petunia() {\r\n\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "private TMCourse() {\n\t}", "private UsineJoueur() {}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n public void init() {\n }" ]
[ "0.6143652", "0.60419315", "0.57993346", "0.57797366", "0.57797366", "0.57774824", "0.56931305", "0.5686589", "0.56673443", "0.56478363", "0.56290424", "0.5622678", "0.561271", "0.56078684", "0.5606807", "0.5601153", "0.5588236", "0.5582829", "0.5581277", "0.55783594", "0.5569441", "0.5553413", "0.55348337", "0.5533297", "0.5533297", "0.5533297", "0.5533297", "0.5533297", "0.5533297", "0.5519582", "0.55171853", "0.5509407", "0.5505975", "0.5505975", "0.5497832", "0.54865927", "0.54865927", "0.54865927", "0.54865927", "0.54865927", "0.5482514", "0.54791796", "0.54685974", "0.5466075", "0.5462251", "0.545643", "0.5454862", "0.54493743", "0.54493743", "0.54473615", "0.5438497", "0.54182345", "0.54155016", "0.54155016", "0.54155016", "0.540892", "0.54048884", "0.53979963", "0.53905", "0.53852916", "0.5384877", "0.5383454", "0.5379915", "0.53792506", "0.5378749", "0.5374034", "0.5374034", "0.5346417", "0.5346417", "0.5346417", "0.53454125", "0.53454125", "0.53454125", "0.53454125", "0.53454125", "0.53454125", "0.53454125", "0.5342877", "0.5342877", "0.5342877", "0.53388405", "0.53289694", "0.53289694", "0.53289694", "0.5314653", "0.5314072", "0.53080034", "0.5307926", "0.5307474", "0.530272", "0.5293713", "0.5283609", "0.5279279", "0.52743524", "0.5268828", "0.52680784", "0.5251831", "0.52440333", "0.5240749", "0.52365035", "0.52318513" ]
0.0
-1
Create object for ReportingPOM
@Test (priority=2) public void ReportingTest() { ReportingPOM ReportPOM = new ReportingPOM(driver); ReportPOM.clickReporting(); Wait = properties.getProperty("implicitWait"); ReportPOM.clickFollowedStudents(); screenShot.captureScreenShot("17"); //Enter student name in keyword ReportPOM.keyword("Kritika"); //Click on search button ReportPOM.clicksearchbutton(); screenShot.captureScreenShot("18"); //Click on >> icon of the student name ReportPOM.ClickArrow(); screenShot.captureScreenShot("19"); //Click on course >> icon ReportPOM.Clickcoursearrow(); screenShot.captureScreenShot("20"); // Click on quiz icon ReportPOM.Clickquizicon(); screenShot.captureScreenShot("21"); //Click on send email ReportPOM.Clicknotification(); // Click on correct test ReportPOM.Clickcorrecttest(); screenShot.captureScreenShot("22"); //Click on course link ReportPOM.ClickCourseName(); screenShot.captureScreenShot("23"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Report createReport();", "public static Report createEntity() {\n\t\tReport report = new Report()\n\t\t\t\t.fromIsoCode(DEFAULT_FROM_ISO_CODE)\n\t\t\t\t.toIsoCode(DEFAULT_TO_ISO_CODE)\n\t\t\t\t.total(DEFAULT_TOTAL)\n\t\t\t\t.lastUpdated(DEFAULT_LAST_UPDATED);\n\t\treturn report;\n\t}", "public Report() {\r\n }", "void createReport(Report report);", "public ProductTestReport() {}", "protected Report()\n {\n super();\n }", "Prms createPrms();", "public Report() {\n\t\tsuper();\n\t}", "public CommonPersonalReportServiceImpl() {\r\n }", "public FormFieldsReport() {}", "public DefaultValidationReport()\r\n {\r\n factory = new DefaultReportFactory();\r\n }", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "public static ReportGenerator createInstance()\r\n {\r\n return new ReportGenerator();\r\n }", "public ArAgingDetailReportDAO () {}", "public static ExtentReports createInstance() {\n\n\t\tExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(Constants.EXTENTREPORT_PATH+\"---\"+ScreenShot.timeStamp()+\".html\");\n\t\thtmlReporter.config().setTestViewChartLocation(ChartLocation.BOTTOM);\n\t\thtmlReporter.config().setChartVisibilityOnOpen(true);\n\t\thtmlReporter.config().setTheme(Theme.DARK);\n\t\thtmlReporter.config().setReportName(\"Functional Report\");\n\t\thtmlReporter.config().setEncoding(\"utf-8\");\n\t\thtmlReporter.config().setDocumentTitle(\"AutoMation Report\");\n\n\t\thtmlReporter.config().setTimeStampFormat(\"EEEE, MMMM dd, yyyy, hh:mm a '('zzz')'\");\n\n\t\textent = new ExtentReports();\n\t\textent.attachReporter(htmlReporter);\n\t\textent.setSystemInfo(\"OS\", \"Windows\");\n\t\textent.setSystemInfo(\"AUT\", \"QA\");\n\n\t\treturn extent;\n\t}", "public Report(Employee employee, int numberOfReports){\n this.employee=employee;\n this.numberOfReports=numberOfReports;\n }", "public Pojo1110110(){\r\n\t}", "private ReportService() { }", "public final InternalReportModel newReportModel() {\n return (InternalReportModel) newProxy(InternalReportModel.class,\n ReportModelImpl.class);\n }", "public ProjectOfferPOExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public abstract void generateReport(Date from, Date to, String objectCode);", "public MTPostEditDistanceReportGenerator()\n {\n\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "public Report build() {\n return new Report(this);\n }", "public Prof_Report() {\r\n initComponents();\r\n }", "private ReportRepository() {\n ConnectionBD BD = ConnectionBD.GetInstance();\n this.con = BD.GetConnection();\n this.itemInfoFactory = ItemInfoFactory.GetInstance();\n }", "ProjetoRN createProjetoRN();", "private Report createFullReport(String message, Type type) {\n return Report.create(message, type);\n }", "public ProjectPhaseDTO() {\r\n }", "public GenerateReport() {\n initComponents();\n displayLogs();\n }", "@Bean\n ReportCreator reportCreator(ReportRepository reportRepository, ModelMapper modelMapper) {\n return new com.report.application.service.ReportCreator(reportRepository, modelMapper);\n }", "public void generateReport()\r\n {\r\n ProfilerGUI reportGUI = new ProfilerGUI(map,mapCountTracker);\r\n //reportGUI.\r\n }", "public ProducerPlan()\r\n\t{\r\n\t\tgetLogger().info(\"Created: \"+this);\r\n\t}", "public static Report getInstance(Modello unModello, TestSuite unTestSuite) {\r\n\t\tif(instance==null)\r\n\t\t\tinstance = new Report(unModello,unTestSuite);\r\n\t\treturn instance;\r\n\t}", "public ControllerReporteHistorialClinico() {\n }", "public EmailDailyReportOfZA() {\n\t}", "public PromotionDetail() {\r\n\t}", "public static ReportType createEntity(EntityManager em) {\n ReportType reportType = new ReportType()\n .name(DEFAULT_NAME)\n .text(DEFAULT_TEXT)\n .status(DEFAULT_STATUS);\n return reportType;\n }", "public PaymentDetailPojo() {\n }", "private ReportConcept createReportConcept(IClass cls) {\n\t\tConceptEntry entry = new ConceptEntry(cls.getName(), getEntryType(cls));\n\t\treturn new ReportConcept(entry, reportInterface);\n\t}", "public X837Ins_2305_CR7_HomeHealthCarePlanInformation() {}", "public AppointmentTM() {\n }", "public RubyObject createObject() {\n\t\treturn (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(\"return RPG::Troop::Page.new\");\n\t}", "P createP();", "protected ReportGenerator()\r\n {\r\n helperObjects = new HashMap();\r\n }", "@Override\n public ResponseEntity<?> createReport(OutputReport report) throws IOException, MessagingException {\n Date endDate = midnight();\n Date startDate = midnight();\n if (report.getReportType() == 0) {\n endDate = midnight();\n startDate = setDateBefore(1);\n } else if (report.getReportType() == 1) {\n endDate = midnight();\n startDate = setDateBefore(7);\n } else if (report.getReportType() == 2) {\n endDate = midnight();\n startDate = setDateBefore(30);\n } else if (report.getReportType() == 3) {\n endDate = new Date(report.getEndDate());\n startDate = new Date(report.getStartDate());\n }\n ExcelHelper.writeExcel(report.getReportItemList(), \"NiceJavaBooks.xls\", report.getTotalRevenue());\n Place place = placeRepository.findById(report.getPlaceId()).get();\n String content = \"\";\n if(report.getReportType() == 0){\n content = \"Daily sales report\";\n }else if(report.getReportType() == 1){\n content = \"Weekly sales report\";\n }else if(report.getReportType() == 2){\n content = \"Monthly sales report\";\n }else if(report.getReportType() == 3){\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n content = \"Sales report from \"+formatter.format(startDate)+\" to \"+formatter.format(endDate);\n }\n sendEmail(new File(\"NiceJavaBooks.xls\"), place.getMail(), content);\n return ResponseEntity.ok(\"OK\");\n }", "public ReportMetadataExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}", "public reporteController() {\n }", "public DocumentReport() {\n\n\t\tLOGGER.info(\"Create Document Processor\");\n\n\t\tresultsXMLWriter = new ResultsXMLWriter();\n\t\tgaugesWriter = new GaugeJSONWriter();\n\t\tgaugesWriter.setMode(processMode.toString());\n\t\tgaugesXMLWriter = new GaugeXMLWriter();\n\t\tstylesXMLWriter = new StylesXMLWriter();\n\t\tstylesWriter = new StylesJSONWriter();\n\t\tstylesWriter.setMode(processMode.toString());\n\t\t\n\t\txPathWriter = new XPathJSONWriter();\n\t\txPathDotWriter = new DotWriter();\n\t\txPathXMLWriter = new XMLWriter();\n\t\txPathWriter.setMode(processMode.toString());\n\t\t\n//\t\tdotWriter = new DotWriter();\n\t}", "ExchangePlanContent createExchangePlanContent();", "public static void generateReport() {\n PrintImpl printer = new PrintImpl(realtorLogImpl, propertyLogImpl);\n printer.generateReport(REQUESTS_FILE);\n }", "public void create(Employee employee, Company company, IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "public interface Reporting {\n ////////////////////////////////////////////////////////////////////////////////////\n // methods specific to reporting\n public String getName();\n\n public Date getDate();\n\n public String productBreakdown();\n}", "public PaperDTO() {\n }", "public PPI() {\n \tsuper();\n this.goals = new ArrayList<String>();\n this.informed = new ArrayList<String>();\n }", "public DeviceReportExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public PapelBean() {\n }", "GoalModel createGoalModel();", "public PppoeSessionInfo() {\n }", "public static IReport createReport(InputStream in) throws ArfException {\r\n \treturn new Report(Report.getAssetReportCollection(in));\r\n }", "public static IReport createReport(File f) throws ArfException {\r\n \treturn new Report(Report.getAssetReportCollection(f));\r\n }", "@Before\n\tpublic void createPOJO() {\n\t\tpojo0 = new Pojo();\n\t\tpojo0.setId(1);\n\t\tpojo0.setName(\"Geddy Lee\");\n\t\tpojo0.setFunction(\"Bass\");\n\t\t\n\t\t// creating others simple objects and an array for the ultimate test\n\t\tpojo1 = new Pojo();\n\t\tpojo1.setId(2);\n\t\tpojo1.setName(\"Alex Lifeson\");\n\t\tpojo1.setFunction(\"Guitar\");\n\n\t\tpojo2 = new Pojo();\n\t\tpojo2.setId(3);\n\t\tpojo2.setName(\"Neal Peart\");\n\t\tpojo2.setFunction(\"Drums\");\n\t\t\n\t\tpojos = new Pojo[3];\n\t\tpojos[0] = pojo0;\n\t\tpojos[1] = pojo1;\n\t\tpojos[2] = pojo2;\n\t\t\n\t\t// tricky list\n\t\ttricky = new Pojo[3];\n\t\ttricky[0] = pojo0;\n\t\ttricky[1] = null;\n\t\ttricky[2] = pojo2;\n\t\t\n\t\t// file name for output\n\t\tfileName = \"c:\\\\test.csv\";\n\n\t}", "public M create(P model);", "protected DPP createDPP() {\n\t\tDPP dpp = new DPP();\n\t\tdpp.add(null, OP_CREATE, ST_CREATED);\n\t\t// dpp.add(ST_CREATED, ..., ...);\n\t\treturn dpp;\n\t}", "public PurityReport(ZonedDateTime date, int reportID, String reporterName,\n Location location, OverallCondition condition,\n int virusPPM, int contaminantPPM) {\n this.date = date;\n this.reportID = reportID;\n this.reporterName = reporterName;\n this.location = location;\n this.condition = condition;\n this.virusPPM = virusPPM;\n this.contaminantPPM = contaminantPPM;\n }", "public Excel_Reporte_Borrador() {\r\n }", "public Poem(){}", "public Produto() {}", "public ProductTestReport(Long id)\n/* 26: */ {\n/* 27:27 */ super(id);\n/* 28: */ }", "For createFor();", "public static ProblemReport newReport(CMMCore core) {\n return new ProblemReport(core);\n }", "public ProductTestReport(Long id, String name, Date date, String operator, Long fileId, String fileName)\n/* 16: */ {\n/* 17:17 */ setId(id);\n/* 18:18 */ setName(name);\n/* 19:19 */ setDate(date);\n/* 20:20 */ setOperator(operator);\n/* 21:21 */ setFileId(fileId);\n/* 22:22 */ setFileName(fileName);\n/* 23: */ }", "@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }", "public ProdutoDTO()\n {\n super();\n }", "public PostOffice() {\n }", "public static Builder builder() {\n return new Report.Builder();\n }", "public final void createReporter(){\n\n buildWriter();\n buildReporter();\n buildCloser();\n\n Validate.notNull(writer,\"Writer can not be null\");\n Validate.notNull(reporter,\"Reporter can not be null\");\n Validate.notNull(closer,\"Closer can not be null\");\n }", "JobResponse create();", "public LineData_mxJPO() {\n super();\n // TODO Auto-generated constructor stub\n }", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "public PointRecord(){\n \n }", "public Report getReport();", "public void createReport(Report report) {\n view.onProgress(true);\n apiInterface.newReport(report.getNumber(), report.isNo_telp(), report.isNo_rek())\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new SingleObserver<ReportItem>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onSuccess(ReportItem reportItem) {\n if (reportItem != null) {\n view.onReportResult(reportItem.toReportparcel(), true);\n }\n view.onProgress(false);\n }\n\n @Override\n public void onError(Throwable e) {\n view.onError(e.getMessage());\n view.onProgress(false);\n }\n });\n }", "public StubReport() {\n\t\t\thashMapDB = new HashMap<String, HashMap<Integer, String>>();\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\t\t\tparkReportData.put(1, \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\");\n\t\t\tparkReportData.put(2,\n\t\t\t\t\t\"12 88 28 60 28 0 76 40 20 32 76 0 16 96 0 96 0 0 60 56 28 56 28 0 60 28 0 56 0 0 92 28 0 44 28 0\");\n\t\t\tparkReportData.put(3, \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 23 7\");\n\t\t\thashMapDB.put(\"Haifa Park\", parkReportData);\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\t\t\tparkReportData.put(4, \"1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1\");\n\t\t\tparkReportData.put(5, \"1 2 7 4 7 6 7 7 0 8 7 0 7 7 7 0 7 0 7 5 7 5 7 6 7 7 7 8 7 5 7 6 7 5 7 7\");\n\t\t\tparkReportData.put(6,\n\t\t\t\t\t\"11 22 33 44 55 66 17 23 5 8 4 2 3 2 54 34 2 32 1 61 1 75 32 46 12 67 23 82 12 56 32 36 12 85 232 7\");\n\t\t\thashMapDB.put(\"Tel-Aviv Park\", parkReportData);\n\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\t\t\tparkReportData.put(7, \"1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1\");\n\t\t\tparkReportData.put(8, \"1 2 3 4 5 6 0 0 0 8 9 0 3 0 4 0 6 0 0 5 5 5 0 6 0 7 0 8 0 5 0 6 0 5 0 7\");\n\t\t\tparkReportData.put(9, \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 23 7\");\n\t\t\thashMapDB.put(\"Safed Park\", parkReportData);\n\t\t}", "public XL() {\n Reporter.log(\"New XL ctor\", true);\n }", "public PathologyReportDetailQueryBuilder() {\n super();\n }", "@Override\n public Map<String, OEEReport> build() {\n return generators.entrySet().stream().collect(Collectors.toMap(\n entry -> entry.getKey(),\n entry -> entry.getValue().getReport()\n ));\n }", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "RentalObject createRentalObject();", "ShippingDocument createShippingDocument();", "Parcelle createParcelle();", "MetricModel createMetricModel();", "public void create(){}", "@Test\r\n public void testCreate() throws Exception {\r\n PodamFactory pf=new PodamFactoryImpl();\r\n MonitoriaEntity nuevaEntity=pf.manufacturePojo(MonitoriaEntity.class);\r\n MonitoriaEntity respuestaEntity=persistence.create(nuevaEntity);\r\n Assert.assertNotNull(respuestaEntity);\r\n Assert.assertEquals(respuestaEntity.getId(), nuevaEntity.getId());\r\n Assert.assertEquals(respuestaEntity.getIdMonitor(), nuevaEntity.getIdMonitor());\r\n Assert.assertEquals(respuestaEntity.getTipo(), nuevaEntity.getTipo());\r\n \r\n \r\n }", "private void inicializar() {\n\t\treporte = new Jasperreport();\n\t\tdiv = new Div();\n\t}", "public UpdateTrackingResp() {\n }", "public CommAreaRecord() {\n\t}", "public Plato(){\n\t\t\n\t}", "public MPaciente() {\r\n\t}", "public Promo(){\n}", "private PeriodoAcademicos Crear(ResultSet rs) {\n PeriodoAcademicos obj;\n try {\n obj = new PeriodoAcademicos();\n obj.setCodigo(rs.getLong(\"codigo_paca\"));\n obj.setCodioPadre(rs.getLong(\"codigopadre_paca\"));\n obj.setNombre(rs.getString(\"nombre_paca\"));\n obj.setDescripcion(rs.getString(\"descripcion_paca\"));\n obj.setEstado(rs.getString(\"estado_paca\").charAt(0));\n\n return obj;\n } catch (Exception ex) {\n throw new RuntimeException(\"Error al Crear Objeto\");\n }\n }" ]
[ "0.7169801", "0.6900656", "0.65871644", "0.6567174", "0.64696395", "0.61873496", "0.61729586", "0.6169437", "0.60734683", "0.6052581", "0.60415417", "0.6009081", "0.5994348", "0.59643275", "0.5843654", "0.57484615", "0.57412", "0.5722115", "0.5704222", "0.5698256", "0.56716317", "0.56691796", "0.56622475", "0.56491536", "0.564477", "0.56392753", "0.5624234", "0.5595978", "0.5573209", "0.5550008", "0.554344", "0.5522092", "0.55220205", "0.5510755", "0.5506246", "0.54883647", "0.5485788", "0.5466325", "0.546434", "0.54614276", "0.54577017", "0.545632", "0.54510665", "0.54430246", "0.5442521", "0.54367954", "0.54251784", "0.54194427", "0.5411411", "0.5406208", "0.53872395", "0.53824836", "0.5379412", "0.5376167", "0.53716075", "0.53704786", "0.53639644", "0.5362485", "0.5359818", "0.5346966", "0.53434014", "0.5332919", "0.5327272", "0.5325526", "0.5321558", "0.5314666", "0.5305725", "0.52924794", "0.5290129", "0.52853453", "0.5279498", "0.52774155", "0.52746", "0.52739507", "0.5268528", "0.5264699", "0.52630424", "0.5261368", "0.52557266", "0.5254071", "0.523563", "0.5233713", "0.523336", "0.5218214", "0.52163726", "0.52111244", "0.5209461", "0.520832", "0.5207865", "0.520649", "0.520255", "0.519761", "0.51901585", "0.5188647", "0.51795113", "0.5175227", "0.5173883", "0.51724124", "0.51677746", "0.51646775", "0.5164547" ]
0.0
-1
Finds the node whose device signals match a client's initial configuration signature
public Node findLocation( ArrayList<NodeSignature> nodeSignatures, ArrayList<DeviceObject> devices) { if (nodeSignatures != null) { NodeManager nm = NodeManager.getInstance(); ArrayList<Score> signatureScores = new ArrayList<Score>(); Iterator<NodeSignature> iterableSignatures = nodeSignatures.iterator(); DeviceObject device; while(iterableSignatures.hasNext()){ NodeSignature signature = iterableSignatures.next(); Iterator<DeviceObject> iterableDevices = devices.iterator(); Score score = new Score(signature, 0); while(iterableDevices.hasNext()){ device = iterableDevices.next(); if(signature.getNodeRange(device.id).checkRange(device.rssi)){ score.matches++; } } signatureScores.add(score); } Score chosenScore = null; for (Iterator<Score> i = signatureScores.iterator(); i.hasNext();) { Score nextScore = i.next(); if (chosenScore == null) { chosenScore = nextScore; } else if (chosenScore.matches < nextScore.matches) { chosenScore = nextScore; } } return nm.getNodeById(chosenScore.signature.getNodeId()).getNode(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasNodeCharacteristicId();", "boolean hasNodeCharacteristicId();", "public DeviceLocator getDeviceLocator();", "io.dstore.values.StringValue getSearchNodeCharacteristicIds();", "private List<Device> getDeviceCandidates(Node node, State state) {\n\t\tList<Device> candidates = new ArrayList<Device>();\n\t\tfor (Device device : Basic_ILS.devices) {\n\t\t\tif (state.deviceConstraint(node, device)\n\t\t\t\t\t&& state.colocationConstraint(node, device)\n\t\t\t\t\t&& state.memoryConstraint(node, device)) {\n\t\t\t\tcandidates.add(device);\n\t\t\t}\n\t\t}\n\t\treturn candidates;\n\t}", "public RegistryKeyProperty getOnAcceptBranchSequenceKey();", "public abstract UPnPDeviceNode GetDeviceNode(String name);", "private Boolean isDeviceYouWant(BleManager.DiscoveryListener.DiscoveryEvent event) {\n String name = event.device().getName_native();\n if (name.toLowerCase().startsWith(\"polar\")) {\n Log.v(TAG, event.device().getName_native());\n return true;\n }\n return false;\n\n// // Test with prototype BLE device, same repro.\n// byte[] b = event.device().getScanRecord();\n// if (null == b) {\n// return false;\n// }\n// if (b.length < 22) {\n// return false;\n// }\n//\n// byte[] kCompanyIdentifier = new byte[] {(byte)0x01, (byte)0x02, (byte)0x03};\n// byte[] companyIdentifier = new byte[] {b[19], b[20], b[21]};\n// if (Arrays.equals(kCompanyIdentifier, companyIdentifier)){\n// return true;\n// }\n// return false;\n }", "boolean hasSearchNodeCharacteristicIds();", "@Override\n\tpublic List<Map<String, Object>> getParentDevice(Map<String, Object> condition) {\n\t\treturn null;\n\t}", "protected List<PCIDevice> probeDevices() {\n final ArrayList<PCIDevice> result = new ArrayList<PCIDevice>();\n rootBus.probeDevices(result);\n return result;\n }", "public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllInitialKey_asNode_() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), INITIALKEY, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}", "io.dstore.values.IntegerValue getNodeCharacteristicId();", "io.dstore.values.IntegerValue getNodeCharacteristicId();", "public abstract AbstractConfigNode find(List<String> path, int index)\n throws ConfigurationException;", "boolean hasDeviceId();", "boolean hasDeviceId();", "public int\ngetNodeIndexMin();", "public GraphNode firstEndpoint(){\r\n return first;\r\n }", "private ChatNetworkServicePluginRoot getRandomChatNs(){\n Map.Entry<String, ChatNetworkServicePluginRoot> entry = nsPublicKeyMap.entrySet().iterator().next();\n return entry.getValue();\n }", "NodeInformationProvider getNodeInformationProvider();", "public static int offsetBits_senderNodeID() {\n return 8;\n }", "public short get_senderNodeID() {\n return (short)getUIntBEElement(offsetBits_senderNodeID(), 8);\n }", "protected Object getReceiverKey(UMOComponent component, UMOEndpoint endpoint) {\n if(endpoint.getEndpointURI().getPort()==-1) {\n return component.getDescriptor().getName();\n } else {\n return endpoint.getEndpointURI().getAddress() + \"/\" + component.getDescriptor().getName();\n }\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 String getRingerDevice();", "protected abstract void discoverInitiators(Host host, List<Initiator> oldInitiators, HostStateChange changes);", "public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllInitialKey_asNode_(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, INITIALKEY, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}", "public RegistryKeyProperty getOnRejectBranchSequenceKey();", "public static int offset_senderNodeID() {\n return (8 / 8);\n }", "public Object[] getStartNodes ();", "public String selectNodeId(Node node, String remoteHost, String remoteAddress);", "public NodeInformation[] getNodes() throws CassandraServerManagementException {\r\n StorageServiceMBean ssMBean = null;\r\n try {\r\n ssMBean = CassandraAdminDataHolder\r\n .getInstance().getCassandraMBeanLocator().locateStorageServiceMBean();\r\n } catch (CassandraServerManagementException e) {\r\n handleException(\"Error occurred while retrieving node information list\", e);\r\n }\r\n\r\n if (ssMBean == null) {\r\n handleException(\"Storage Server MBean is null\");\r\n }\r\n\r\n Map<String, String> tokenToEndpoint = ssMBean.getTokenToEndpointMap();\r\n List<String> sortedTokens = new ArrayList<String>(tokenToEndpoint.keySet());\r\n Collections.sort(sortedTokens);\r\n\r\n /* Calculate per-token ownership of the ring */\r\n Map<InetAddress, Float> ownerships = ssMBean.getOwnership();\r\n\r\n List<NodeInformation> nodeInfoList = new ArrayList<NodeInformation>();\r\n for (String token : sortedTokens) {\r\n String primaryEndpoint = tokenToEndpoint.get(token);\r\n String status = ssMBean.getLiveNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_UP\r\n : ssMBean.getUnreachableNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_DOWN\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n String state = ssMBean.getJoiningNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_JOINING\r\n : ssMBean.getLeavingNodes().contains(primaryEndpoint)\r\n ? CassandraManagementConstants.NodeStatuses.NODE_STATUS_LEAVING\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_NORMAL;\r\n\r\n Map<String, String> loadMap = ssMBean.getLoadMap();\r\n String load = loadMap.containsKey(primaryEndpoint)\r\n ? loadMap.get(primaryEndpoint)\r\n : CassandraManagementConstants.NodeStatuses.NODE_STATUS_UNKNOWN;\r\n\r\n Float ownership = ownerships.get(token);\r\n String owns = \"N/A\";\r\n if(ownership!=null){\r\n owns = new DecimalFormat(\"##0.00%\").format(ownership);\r\n }\r\n NodeInformation nodeInfo = new NodeInformation();\r\n nodeInfo.setAddress(primaryEndpoint);\r\n nodeInfo.setState(state);\r\n nodeInfo.setStatus(status);\r\n nodeInfo.setOwn(owns);\r\n nodeInfo.setLoad(load);\r\n nodeInfo.setToken(token);\r\n nodeInfoList.add(nodeInfo);\r\n }\r\n return nodeInfoList.toArray(new NodeInformation[nodeInfoList.size()]);\r\n }", "public UUID nodeId();", "public static int offsetBits_receiverNodeID() {\n return 16;\n }", "private Client findClient() {\n if ( key != null )\n return clientConnections.getConnection(key);\n else { //use keyCluster to find client\n return clientConnections.getConnection( keyCluster.getCluster(), keyCluster.getIndex());\n }\n }", "private boolean readFile() {\n\t\ttry {\n\n\t\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\n\t\t\tDocument doc = docBuilder.parse(cnfFile);\n\n\t\t\t// normalize text representation\n\t\t\tdoc.getDocumentElement().normalize();\n\t\t\tSystem.out.println(\"Root element of the doc is \" + doc.getDocumentElement().getNodeName());\n\t\t\tdoc.getDocumentElement().getAttributeNode(\"version\");\n\n\t\t\tNodeList rootNode = doc.getElementsByTagName(\"SCMS_DATA\");\n\t\t\tif (rootNode.getLength() < 1) {\n\t\t\t\tSystem.out.println(\"ERROR in config data file: there is no SCMS_DATA element\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString version = rootNode.item(0).getAttributes().getNamedItem(\"version\").getNodeValue();\n\t\t\tfinal String dataVersion = \"0.1\";\n\t\t\tif (!version.equals(dataVersion)) {\n\t\t\t\tSystem.out.println(\"ERROR in config data file: required version is \" + dataVersion);\n\t\t\t\tSystem.out.println(\"Version \" + version + \" is not supported.\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tNodeList listOfDevices = doc.getElementsByTagName(\"DEVICE\");\n\t\t\tint totalDevices = listOfDevices.getLength();\n\t\t\tSystem.out.println(\"Total no of devices : \" + totalDevices);\n\n\t\t\tHashMap<String, CnfDevice> devices = new HashMap<>();\n\t\t\tfor (int s = 0; s < listOfDevices.getLength(); s++) {\n\n\t\t\t\tNode node = listOfDevices.item(s);\n\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\t\tString id = node.getAttributes().getNamedItem(\"id\").getNodeValue();\n\t\t\t\t\tString name = node.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\t\tString description = node.getAttributes().getNamedItem(\"description\").getNodeValue();\n\t\t\t\t\tString pi_name = node.getAttributes().getNamedItem(\"PI_Name\").getNodeValue();\n\t\t\t\t\tString pixHor = node.getAttributes().getNamedItem(\"pixHor\").getNodeValue();\n\t\t\t\t\tString pixVer = node.getAttributes().getNamedItem(\"pixVer\").getNodeValue();\n\t\t\t\t\tString location = node.getAttributes().getNamedItem(\"location\").getNodeValue();\n\n\t\t\t\t\tdevices.put(id, new CnfDevice(id, name, description, pi_name,\n\t\t\t\t\t\t\tInteger.valueOf(pixHor), Integer.valueOf(pixVer),location));\n\t\t\t\t}\n\t\t\t}\n\t\t\tcnfData.setDevices(devices);\n\n\t\t\tNodeList listOfViews = doc.getElementsByTagName(\"VIEW\");\n\t\t\tint totalViews = listOfViews.getLength();\n\t\t\tSystem.out.println(\"Total no of views : \" + totalViews);\n\n\t\t\tHashMap<String, CnfView> views = new HashMap<>();\n\t\t\tfor (int s = 0; s < listOfViews.getLength(); s++) {\n\n\t\t\t\tNode node = listOfViews.item(s);\n\n\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tString id = node.getAttributes().getNamedItem(\"id\").getNodeValue();\n\t\t\t\t\tString name = node.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\t\tString description = node.getAttributes().getNamedItem(\"description\").getNodeValue();\n\t\t\t\t\tString pixHor = node.getAttributes().getNamedItem(\"pixHor\").getNodeValue();\n\t\t\t\t\tString pixVer = node.getAttributes().getNamedItem(\"pixVer\").getNodeValue();\n\t\t\t\t\tString asso_device = node.getAttributes().getNamedItem(\"associatedDevice\").getNodeValue();\n\n\t\t\t\t\tElement element = (Element) node;\n\t\t\t\t\tNodeList listOfImages = ((Element) node).getElementsByTagName(\"IMAGE\");\n\t\t\t\t\tElement iElement = (Element) listOfImages.item(0);\n\t\t\t\t\tString[] images = new String[listOfImages.getLength()];\n\t\t\t\t\tfor (int i = 0; i < listOfImages.getLength(); i++) {\n\n\t\t\t\t\t\tNode iNode = listOfImages.item(i);\n\t\t\t\t\t\timages[i] = iNode.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\t\t}\n\n\t\t\t\t\tviews.put(id, new CnfView(id, name, description,\n\t\t\t\t\t\t\tInteger.valueOf(pixHor), Integer.valueOf(pixVer), asso_device, images));\n\t\t\t\t}\n\t\t\t}\n\t\t\tcnfData.setViews(views);\n\n\t\t\tNodeList listOfSections = doc.getElementsByTagName(\"SECTION\");\n\t\t\tint totalSections = listOfSections.getLength();\n\t\t\tSystem.out.println(\"Total no of sections : \" + totalSections);\n\n\t\t\tHashMap<String, CnfSection> sections = new HashMap<>();\n\t\t\tfor (int s = 0; s < totalSections; s++) {\n\t\t\t\tNode node = listOfSections.item(s);\n\n\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tString sectionId = node.getAttributes().getNamedItem(\"sectionId\").getNodeValue();\n\t\t\t\t\tString deviceId = node.getAttributes().getNamedItem(\"deviceId\").getNodeValue();\n\t\t\t\t\tString positionId = node.getAttributes().getNamedItem(\"positionId\").getNodeValue();\n\t\t\t\t\tString vOffset = node.getAttributes().getNamedItem(\"vOffset\").getNodeValue();\n\n\t\t\t\t\t// A section is invalid if the deviceId doesn't exist\n\t\t\t\t\tif (null == cnfData.getDeviceById(deviceId)) {\n\t\t\t\t\t\tSystem.out.println(\"ERROR in SECTION config data: deviceId \" + deviceId + \" sectionId \" + sectionId);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsections.put(deviceId, new CnfSection(sectionId, deviceId, positionId, vOffset));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcnfData.setSections(sections);\n\t\t\treturn true;\n\n\t\t} catch (SAXParseException err) {\n\t\t\tSystem.out.println(\"** Parsing error\" + \", line \" + err.getLineNumber() + \", uri \" + err.getSystemId());\n\t\t\tSystem.out.println(\" \" + err.getMessage());\n\n\t\t} catch (SAXException e) {\n\t\t\tException x = e.getException();\n\t\t\t((x == null) ? e : x).printStackTrace();\n\n\t\t} catch (Throwable t) {\n\t\t\tt.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "public org.thethingsnetwork.management.proto.HandlerOuterClass.Device getDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);", "public static int size_senderNodeID() {\n return (8 / 8);\n }", "public int getAD_WF_Node_ID();", "public static int offset_receiverNodeID() {\n return (16 / 8);\n }", "public short get_receiverNodeID() {\n return (short)getUIntBEElement(offsetBits_receiverNodeID(), 8);\n }", "public static KubevirtNode buildKubevirtNode(Node node) {\n String hostname = node.getMetadata().getName();\n IpAddress managementIp = null;\n IpAddress dataIp = null;\n\n for (NodeAddress nodeAddress:node.getStatus().getAddresses()) {\n if (nodeAddress.getType().equals(INTERNAL_IP)) {\n managementIp = IpAddress.valueOf(nodeAddress.getAddress());\n dataIp = IpAddress.valueOf(nodeAddress.getAddress());\n }\n }\n\n Set<String> rolesFull = node.getMetadata().getLabels().keySet().stream()\n .filter(l -> l.contains(K8S_ROLE))\n .collect(Collectors.toSet());\n\n KubevirtNode.Type nodeType = WORKER;\n\n for (String roleStr : rolesFull) {\n String role = roleStr.split(\"/\")[1];\n if (MASTER.name().equalsIgnoreCase(role)) {\n nodeType = MASTER;\n break;\n }\n }\n\n // start to parse kubernetes annotation\n Map<String, String> annots = node.getMetadata().getAnnotations();\n String physnetConfig = annots.get(PHYSNET_CONFIG_KEY);\n String gatewayConfig = annots.get(GATEWAY_CONFIG_KEY);\n String dataIpStr = annots.get(DATA_IP_KEY);\n Set<KubevirtPhyInterface> phys = new HashSet<>();\n String gatewayBridgeName = null;\n try {\n if (physnetConfig != null) {\n JsonArray configJson = JsonArray.readFrom(physnetConfig);\n\n for (int i = 0; i < configJson.size(); i++) {\n JsonObject object = configJson.get(i).asObject();\n String network = object.get(NETWORK_KEY).asString();\n String intf = object.get(INTERFACE_KEY).asString();\n\n if (network != null && intf != null) {\n String physBridgeId;\n if (object.get(PHYS_BRIDGE_ID) != null) {\n physBridgeId = object.get(PHYS_BRIDGE_ID).asString();\n } else {\n physBridgeId = genDpidFromName(network + intf + hostname);\n log.trace(\"host {} physnet dpid for network {} intf {} is null so generate dpid {}\",\n hostname, network, intf, physBridgeId);\n }\n\n phys.add(DefaultKubevirtPhyInterface.builder()\n .network(network)\n .intf(intf)\n .physBridge(DeviceId.deviceId(physBridgeId))\n .build());\n }\n }\n }\n\n if (dataIpStr != null) {\n dataIp = IpAddress.valueOf(dataIpStr);\n }\n\n if (gatewayConfig != null) {\n JsonNode jsonNode = new ObjectMapper().readTree(gatewayConfig);\n\n nodeType = GATEWAY;\n gatewayBridgeName = jsonNode.get(GATEWAY_BRIDGE_NAME).asText();\n }\n } catch (JsonProcessingException e) {\n log.error(\"Failed to parse physnet config or gateway config object\", e);\n }\n\n // if the node is taint with kubevirt.io key configured,\n // we mark this node as OTHER type, and do not add it into the cluster\n NodeSpec spec = node.getSpec();\n if (spec.getTaints() != null) {\n for (Taint taint : spec.getTaints()) {\n String effect = taint.getEffect();\n String key = taint.getKey();\n String value = taint.getValue();\n\n if (StringUtils.equals(effect, NO_SCHEDULE_EFFECT) &&\n StringUtils.equals(key, KUBEVIRT_IO_KEY) &&\n StringUtils.equals(value, DRAINING_VALUE)) {\n nodeType = OTHER;\n }\n }\n }\n\n return DefaultKubevirtNode.builder()\n .hostname(hostname)\n .managementIp(managementIp)\n .dataIp(dataIp)\n .type(nodeType)\n .state(KubevirtNodeState.ON_BOARDED)\n .phyIntfs(phys)\n .gatewayBridgeName(gatewayBridgeName)\n .build();\n }", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "@DISPID(1611006008) //= 0x60060038. The runtime will prefer the VTID if present\n @VTID(83)\n boolean parametersNodeInTree();", "GraphNode firstEndpoint() \n\t{\n\t\treturn this.firstEndpoint;\n\t\t\n\t}", "public String getRefNodeKey() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn BankMaster.class.getName();\r\n\t\t\t\t\t}", "@Test\n public void findDevice() throws Exception {\n MockUpnpService upnpService = new MockUpnpService();\n LocalDevice device = SampleData.createLocalDevice();\n upnpService.getRegistry().addDevice(device);\n\n UDN udn = device.getIdentity().getUdn();\n\n Registry registry = upnpService.getRegistry(); // DOC: FIND_ROOT_UDN\n Device foundDevice = registry.getDevice(udn, true);\n\n assertEquals(foundDevice.getIdentity().getUdn(), udn); // DOC: FIND_ROOT_UDN\n\n LocalDevice localDevice = registry.getLocalDevice(udn, true); // DOC: FIND_LOCAL_DEVICE\n assertEquals(localDevice.getIdentity().getUdn(), udn);\n\n SampleDeviceRootLocal.assertLocalResourcesMatch(\n upnpService.getConfiguration().getNamespace().getResources(device)\n );\n }", "public static String isInDB(String mac, String time) {\n\t\tConnect connectServer = new Connect(\"server\", serverDatabase);// OBSERVATION\n\t\tConnection serverConnection = connectServer.getConnection();\n\t\tResultSet rs;\n\t\tString sensor_id = \"null\";\n\t\ttry {\n\t\t\tStatement stmtserver = serverConnection.createStatement();\n\t\t\trs = stmtserver.executeQuery(String.format(\"select sensor_id from OBSERVATION \\n\"\n\t\t\t\t\t+ \"where timeStamp = '%s'\\n\" + \"and payload = '{\\\"client_id\\\":\\\"%s\\\"}'\", time, mac));\n\t\t\twhile (rs.next()) {\n\t\t\t\tsensor_id = rs.getString(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tconnectServer.close();\n\t\treturn sensor_id;\n\t}", "private TestDevice searchTestDevice(final String deviceSerialNumber) {\n for (TestDevice td : mDevices) {\n if (td.getSerialNumber().equals(deviceSerialNumber)) {\n return td;\n }\n }\n return null;\n }", "public Object[] getSuccessorNodes (Object node) throws InvalidComponentException;", "DeviceId deviceId();", "DeviceId deviceId();", "public int getDevicesStartAddress() {\n return devicesStartAddress;\n }", "private String getClientKey(Channel channel) {\n InetSocketAddress socketAddress = (InetSocketAddress) channel.remoteAddress();\n String hostName = socketAddress.getHostName();\n int port = socketAddress.getPort();\n return hostName + port;\n }", "@objid (\"afa7354b-88c4-40d5-b8dd-215055f8955c\")\n CommunicationNode getStart();", "boolean getNodeCharacteristicIdNull();", "public byte[] getFirstNode()\n {\n return this.firstNode;\n }", "public NodeInfo getNodeInfo() throws RemoteException, Error;", "public static int sizeBits_senderNodeID() {\n return 8;\n }", "public String getTccConfigInstrument() {\n InstPhoenix inst = (InstPhoenix) _oe.getInstrument();\n PhoenixParams.Filter f = inst.getFilter();\n // See WDBA-37 - J\n return f == PhoenixParams.Filter.J9232 ? \"PHOENIX4_J\" : \"PHOENIX4\";\n }", "public static int size_receiverNodeID() {\n return (8 / 8);\n }", "public String getNodeKey() {\n return nodeKey;\n }", "public GraphNode firstEndpoint() {\n\t\t\treturn start;\n\t\t}", "boolean hasHasNodeSettings();", "Reference getDevice();", "public NodeDB.NodeInfo getResponsibleNode(long hash) { synchronized (this.nodedb) {\n\n\t\tNodeDB.NodeInfo prev = null;\n\t\tfor (NodeDB.NodeInfo ni : this.nodedb.values())\n\t\t\tif (hash >= ni.nodehash)\n\t\t\t\tprev = ni;\n\t\t\telse\n\t\t\t\tbreak;\n\n\t\tif (prev == null)\n\t\t\tthrow new RuntimeException(\"Not entire hash range is covered. Your setup is shit.\");\n\t\t\n\t\treturn prev;\n\t}}", "private Integer getKeyForNode(NetAddress node)\n {\n for (Integer partitionKey : partitions.keySet())\n {\n Collection<NetAddress> nodesInPartition = partitions.get(partitionKey);\n if (nodesInPartition.contains(node))\n return partitionKey;\n }\n\n LOG.error(\"Could not find partition for node: \" + node);\n return -1;\n }", "public Node getNode(String name) {\n Node result = super.getNode(name);\n\n if (result == null) {\n byte type = gateClass.getPinType(name);\n int index = gateClass.getPinNumber(name);\n if (type == CompositeGateClass.INTERNAL_PIN_TYPE)\n result = internalPins[index];\n }\n\n return result;\n }", "public String getReceivedSerialNumber() ;", "private static String getMacAddress(){\n\t\ttry {\n\t\t\t//getting hardware address from inside a virtual machine from NetworkInterface object returns null, so need a gambiarra.\n\t\t\t//if this issue is ever solved please replace for the appropriate code\n\t\t\tString command = \"ifconfig\";\n\t\t\tProcess p = Runtime.getRuntime().exec(command);\n\t\t\tBufferedReader inn = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\n\t\t\tString line = inn.readLine();\n\n\t\t\twhile( line != null ){\n\t\t\t\t\n\t\t\t\tif(line.indexOf(\"eth0\") >= 0){\n\t\t\t\t\tString[] split = line.split(\" \");\n\t\t\t\t\treturn split[split.length-1];\n\t\t\t\t}\n\n\t\t\t\tline = inn.readLine();\n\t\t\t}\n\n\t\t\tinn.close();\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn \"error\";\n\t}", "public String getClientMachine();", "io.dstore.values.StringValueOrBuilder getSearchNodeCharacteristicIdsOrBuilder();", "public UUID originatingNodeId();", "public DefaultMutableTreeNode getRequestedNode()\n {\n // Reset node to be displayed\n displayNode = root;\n \n // Iterate trough the path array\n for (int i = 0; i < pathArray.length; i++)\n {\n if (displayNode.getDepth() > 1)\n {\n displayNode = (DefaultMutableTreeNode)\n displayNode.getChildAt(pathArray[i]);\n }\n }\n \n // Return node to be displayed\n return displayNode;\n }", "cosmos.distribution.v1beta1.DelegatorStartingInfo getStartingInfo();", "public String getStartNodeID()\r\n {\r\n return startNodeID;\r\n }", "public io.dstore.values.StringValue getSearchNodeCharacteristicIds() {\n if (searchNodeCharacteristicIdsBuilder_ == null) {\n return searchNodeCharacteristicIds_ == null ? io.dstore.values.StringValue.getDefaultInstance() : searchNodeCharacteristicIds_;\n } else {\n return searchNodeCharacteristicIdsBuilder_.getMessage();\n }\n }", "private void initPossibleSignalMoves() {\n possibleSignalMoves.put(Id.createLinkId(\"3_2\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"2_1\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"7_2\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"2_1\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"1_2\"),\r\n new ArrayList<>(Arrays.asList(Id.createLinkId(\"2_3\"), Id.createLinkId(\"2_7\"))));\r\n\r\n //signals at node 5\r\n possibleSignalMoves.put(Id.createLinkId(\"8_5\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"5_6\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"4_5\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"5_6\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"6_5\"),\r\n new ArrayList<>(Arrays.asList(Id.createLinkId(\"5_4\"), Id.createLinkId(\"5_8\"))));\r\n\r\n //signals at node 10\r\n possibleSignalMoves.put(Id.createLinkId(\"3_10\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"10_9\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"4_10\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"10_9\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"9_10\"),\r\n new ArrayList<>(Arrays.asList(Id.createLinkId(\"10_3\"), Id.createLinkId(\"10_4\"))));\r\n\r\n //signals at node 11\r\n possibleSignalMoves.put(Id.createLinkId(\"7_11\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"11_12\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"8_11\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"11_12\"))));\r\n // TODO\r\n possibleSignalMoves.put(Id.createLinkId(\"12_11\"),\r\n new ArrayList<>(Arrays.asList(Id.createLinkId(\"11_7\"), Id.createLinkId(\"11_8\"))));\r\n\r\n //signals at node 3\r\n possibleSignalMoves.put(Id.createLinkId(\"2_3\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"3_4\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"10_3\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"3_7\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"4_3\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"3_2\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"7_3\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"3_10\"))));\r\n\r\n //signals at node 4\r\n possibleSignalMoves.put(Id.createLinkId(\"3_4\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"4_5\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"10_4\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"4_8\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"5_4\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"4_3\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"8_4\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"4_10\"))));\r\n\r\n //signals at node 7\r\n possibleSignalMoves.put(Id.createLinkId(\"2_7\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"7_8\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"3_7\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"7_11\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"11_7\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"7_3\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"8_7\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"7_2\"))));\r\n\r\n //signals at node 8\r\n possibleSignalMoves.put(Id.createLinkId(\"4_8\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"8_11\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"5_8\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"8_7\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"11_8\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"8_4\"))));\r\n possibleSignalMoves.put(Id.createLinkId(\"7_8\"),\r\n new ArrayList<>(Collections.singletonList(Id.createLinkId(\"8_5\"))));\r\n }", "public String getDeviceRegistration() {\n return this.deviceRegistration;\n }", "public String readDeviceSN(){\r\n return mFactoryBurnUtil.readDeviceSN();\r\n }", "private int[] findPointer() {\n \n int initialAux = 4095;\n int header = 0;\n \n \n for (int i = 0; i < 4096; i++) {\n String initialBinary = Integer.toBinaryString(0xFF & serialize[i * 4]) + Integer.toBinaryString(0xFF & serialize[i * 4 + 1]);\n short initial = Short.parseShort(initialBinary, 2);\n String sizeBinary = Integer.toBinaryString(0xFF & serialize[i * 4 + 2]) + Integer.toBinaryString(0xFF & serialize[i * 4 + 3]);\n short sizeData = Short.parseShort(sizeBinary, 2);\n \n if (initial == 0 && sizeData == 0) {\n header = i*4;\n break;\n }\n //get the higher initial \n if (initialAux > initial){\n initialAux = initial;\n }\n \n }\n\n int[] toReturn = new int[2];\n \n toReturn[0] = header;\n toReturn[1] = initialAux-1;\n \n return toReturn;\n }", "UUID getDeviceId();", "public byte[] getDeviceToken();", "public VmNetworkInterface getNetworkInterface(XmlNode node) {\n // prior to 3.0 the instanceId is int , in 3.1 and on this is Guid\n String str = node.SelectSingleNode(\"rasd:InstanceId\", _xmlNS).innerText;\n final Guid guid;\n VmNetworkInterface iface;\n if (!StringUtils.isNumeric(str)) { // 3.1 and above OVF format\n guid = new Guid(str);\n iface = LinqUtils.firstOrNull(interfaces, new Predicate<VmNetworkInterface>() {\n @Override\n public boolean eval(VmNetworkInterface iface) {\n return iface.getId().equals(guid);\n }\n });\n if (iface == null) {\n iface = new VmNetworkInterface();\n iface.setId(guid);\n }\n } else { // 3.0 and below OVF format\n iface = new VmNetworkInterface();\n }\n return iface;\n }", "private Node find_inputNode() {\r\n Node node = null;\r\n for (Node n : NodeSet) {\r\n if (n instanceof InputNode) {\r\n node = n;\r\n }\r\n }\r\n return node;\r\n }", "java.lang.String getDeviceId();", "private void getSigNodes(SkeletonNode[][] stationary_nodes) {\r\n\r\n\t\t/**-----------------------------------------------------------------------**/\r\n\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\tFileWriter fw = null;\r\n\t\ttry {fw = new FileWriter(\"y.txt\");}\r\n\t\tcatch (IOException e) {e.printStackTrace();System.out.println(\"C8923\");System.exit(1);}\r\n\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\r\n\t\tfor(int i = 0; i < skeletonNodes.length; i++) {\r\n\r\n\t\t\t/**---------------------------------------------------------------**/\r\n\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t/**Find the leaves for this skeleton**/\r\n\t\t\tLinkedList<SkeletonNode> leaf_nodes = new LinkedList<SkeletonNode>();\r\n\t\t\tSkeletonNode [] root_iter = skeletonNodes[i].getIterator();\r\n\t\t\tfor(int k = 0; k < root_iter.length; k++)\r\n\t\t\t\tif( root_iter[k].getChildren().length == 0)\r\n\t\t\t\t\tleaf_nodes.push(root_iter[k]);\r\n\t\t\t/**---------------------------------------------------------------**/\r\n\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t/**---------------------------------------------------------------**/\r\n\t\t\t/**Calculate the significant nodes, starting from each leaf**/\r\n\t\t\twhile(leaf_nodes.size() > 0) {\r\n\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\tSkeletonNode next_leaf_node = leaf_nodes.removeLast();\r\n\t\t\t\tboolean continue_onto_parent = true;\r\n\t\t\t\tif(next_leaf_node.isStationary())\r\n\t\t\t\t\tcontinue_onto_parent = false;\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\tif(next_leaf_node.getMotionValue() == -1) {\r\n\r\n\t\t\t\t\t/**Compute the angle size for the motion value**/\r\n\t\t\t\t\tdouble motion_val = getAngleDisplacement(next_leaf_node, i);\r\n\t\t\t\t\tif(next_leaf_node.getChildren().length > 0) {\r\n\r\n\t\t\t\t\t\tSkeletonNode[]children = next_leaf_node.getChildren();\r\n\t\t\t\t\t\tfor(int j = 0; j < children.length; j++) {\r\n\r\n\t\t\t\t\t\t\tdouble child_motion_val = children[j].getMotionValue();\r\n\t\t\t\t\t\t\tif(children[j].isStationary()) {\r\n\t\t\t\t\t\t\t\tchild_motion_val = 0;\r\n\t\t\t\t\t\t\t\tcontinue_onto_parent = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tmotion_val += child_motion_val;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnext_leaf_node.setMotionValue(motion_val);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnext_leaf_node.setMotionValue(motion_val);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\telse if(next_leaf_node.getMotionValue() == -1)\r\n\t\t\t\t\tcontinue_onto_parent = false;\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\tif(continue_onto_parent)\r\n\t\t\t\t\tif(next_leaf_node.getParent() != null)\r\n\t\t\t\t\t\tleaf_nodes.push(next_leaf_node.getParent());\r\n\r\n\t\t\t\ttry {bw.write(next_leaf_node.getMotionValue()+\"\\t\\t\");}\r\n\t\t\t\tcatch (IOException e) {e.printStackTrace();System.out.println(\"A1287\");System.exit(1);}\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t}\r\n\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t/**---------------------------------------------------------------**/\r\n\t\t\ttry {bw.write(\";\\n\");}\r\n\t\t\tcatch (IOException e) {System.out.println(\"P70234\");System.exit(1);e.printStackTrace();}\r\n\t\t}\r\n\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t/**-----------------------------------------------------------------------**/\r\n\t}", "public long getNodeIndex();", "org.hl7.fhir.String getDeviceIdentifier();", "public static boolean isSigned_receiverNodeID() {\n return true;\n }", "public static boolean isSigned_senderNodeID() {\n return true;\n }", "private boolean validDevice(AcceleratorNode nodeDev) {\n// for (Class<?> typeValidDev : this.arrValidDevTypes) {\n// if (nodeDev.getClass() == typeValidDev)\n// return true;\n// }\n// \n// return false;\n \n return true;\n }", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Device> \n getDevicesList();", "private void gatherNodeConfigurations(InstanceNodeConfigurationListDto result, InstanceManifest im) {\n // Build a map of configurations indexed by the node name\n Map<String, InstanceNodeConfigurationDto> node2Config = new TreeMap<>();\n result.nodeConfigDtos.forEach(dto -> node2Config.put(dto.nodeName, dto));\n\n // Update the node configuration. Create entries for nodes that are configured\n // but missing\n for (Map.Entry<String, Manifest.Key> entry : im.getInstanceNodeManifests().entrySet()) {\n String nodeName = entry.getKey();\n Manifest.Key manifestKey = entry.getValue();\n\n InstanceNodeManifest manifest = InstanceNodeManifest.of(hive, manifestKey);\n InstanceNodeConfiguration configuration = manifest.getConfiguration();\n InstanceNodeConfigurationDto nodeConfig = node2Config.computeIfAbsent(nodeName, k -> {\n // Node is not known any more but has configured applications\n InstanceNodeConfigurationDto inc = new InstanceNodeConfigurationDto(k);\n result.nodeConfigDtos.add(inc);\n return inc;\n });\n\n nodeConfig.nodeConfiguration = configuration;\n }\n }", "public Node searchPred(String id, Node n){\n\n\n try {\n while(!(n.checkCondition(genHash(id),n, largestNode))){\n Socket client = new Socket(InetAddress.getByAddress(new byte[]{10, 0, 2, 2}),\n Integer.parseInt(n.successor)*2);\n\n\n PrintWriter p1 = new PrintWriter(client.getOutputStream(), true);\n\n InputStreamReader is = new InputStreamReader( client.getInputStream());\n BufferedReader b1 = new BufferedReader(is);\n\n\n p1.println(\"get\");\n while (!client.isClosed()) {\n String ack = b1.readLine();\n\n if(ack.contains(\"send\")){\n\n n = new Node();\n String[] rcvNode = ack.split(\":\");\n n.nodeID = rcvNode[1];\n n.predecessor = rcvNode[2];\n n.successor = rcvNode[3];\n\n client.close();\n }\n }\n p1.close();\n b1.close();\n\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return n;\n }", "Integer getDeviceId();", "long getRfIdentifier();", "public boolean isContainNode(ServentInfo a){\n\t\tfor(int i = 0;i<serventList.size();i++){\n\t\t\tServentInfo b = serventList.get(i);\n\t\t\tif(b.IP.equals(a.IP) && b.port == a.port){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}" ]
[ "0.49283573", "0.49283573", "0.4905604", "0.48707384", "0.47543836", "0.47056046", "0.46940455", "0.46593276", "0.46111616", "0.45800966", "0.45735988", "0.4539442", "0.45288974", "0.45288974", "0.45140022", "0.44619063", "0.44619063", "0.44348142", "0.4433644", "0.4429279", "0.4427036", "0.44252628", "0.4419931", "0.44199014", "0.441534", "0.4395023", "0.43907246", "0.43871802", "0.43645725", "0.4359635", "0.43570155", "0.43546933", "0.43235525", "0.43142444", "0.43094814", "0.43094087", "0.43047073", "0.43045828", "0.429961", "0.42993385", "0.42942554", "0.4294048", "0.4282034", "0.4281575", "0.4281575", "0.42767563", "0.42747995", "0.42725837", "0.42690918", "0.42647114", "0.4257751", "0.4239627", "0.42299852", "0.42299852", "0.42215785", "0.42213693", "0.42189452", "0.42160794", "0.4211755", "0.42094514", "0.41951331", "0.41924816", "0.41872442", "0.4185439", "0.4179269", "0.41737986", "0.4171447", "0.41654715", "0.4162566", "0.41576126", "0.4152271", "0.4151536", "0.41497293", "0.41473028", "0.4146109", "0.4143514", "0.41374138", "0.41322443", "0.4126402", "0.4114275", "0.4112178", "0.4110819", "0.41085154", "0.4106653", "0.4105638", "0.4105344", "0.41014913", "0.41009375", "0.4097377", "0.40967026", "0.40953946", "0.4094339", "0.4089486", "0.40808877", "0.40788546", "0.40774176", "0.40748614", "0.40733242", "0.40728053", "0.40721148" ]
0.46892977
7
Creates an instance of a HexEditorControl embedded inside the supplied parent Composite.
public HexEditorControl(final HexEditor hexEditor, final Composite parent) { this.parent = parent; this.hexEditor = hexEditor; hexEncoder = new HexEncoder(parent); // // Get list of supported encodings // encodingTypes = hexEncoder.getEncodingTypes(); // // Define parent layout // GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.horizontalSpacing = 0; layout.verticalSpacing = 0; layout.marginWidth = 4; layout.marginHeight = 0; parent.setLayout(layout); hoverControl = new Composite(parent, SWT.None); layout = new GridLayout(); layout.horizontalSpacing = layout.verticalSpacing = 0; layout.marginHeight = 2; hoverControl.setLayout(layout); hoverControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); hoverControl.addPaintListener(new PaintListener() { @Override public void paintControl(PaintEvent e) { if (rulerVisible) { return; } Rectangle cl = hoverControl.getClientArea(); RGB rgb = e.gc.getBackground().getRGB(); rgb.blue /= 1.5; rgb.green /= 1.5; rgb.red /= 1.5; // e.gc.setBackground(PropertyChangeListener.getColor(rgb)); drawTriangle(e, cl.width / 2 - cl.height, 0, 2 * cl.height, cl.height); } private void drawTriangle(PaintEvent e, int x, int y, int width, int height) { e.gc.fillPolygon(new int[] { x, y , x + width / 2, y + height, x + width, y }); } }); // // Create main panel inside the parent panel // Composite mainPanel = new Composite(parent, SWT.NONE); mainPanel.setLayout(new RulerLayout()); mainPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); // // Create top panel inside the main panel // createTopPanel(mainPanel); // // Create data panel inside the main panel // createDataPanel(mainPanel); // // Create bottom panel inside the main panel // createBottomPanel(mainPanel); Composite spacer = new Composite(parent, SWT.None); layout = new GridLayout(); layout.horizontalSpacing = layout.verticalSpacing = 0; layout.marginHeight = 4; spacer.setLayout(layout); spacer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Listener hoverListener = new Listener() { @Override public void handleEvent(Event e) { if (e.type == SWT.MouseEnter) { e.display.timerExec(1500, new Runnable() { @Override public void run() { if (table == null) return; Point p = hoverControl.toControl(table.getDisplay().getCursorLocation()); Rectangle cl = hoverControl.getClientArea(); if (p.x >= 0 && p.x < cl.width && p.y >= 0 && p.y < cl.height) setRulerVisible(true); } }); } else if (e.type == SWT.MouseDown) { setRulerVisible(true); } } }; hoverControl.addListener(SWT.MouseEnter, hoverListener); hoverControl.addListener(SWT.MouseDown, hoverListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected Control createControl(Composite parent) {\n\t\tthis.parent = parent;\n\t\t//return cellEditor.getControl();\n\t\treturn null; \n\t}", "public void createPartControl(Composite parent) {\n\t\tString[] xmls = null;\n//\t\txmls = new String[]{\n//\t\t\t\"AppKitFull.bridgesupport\",\n//\t\t\t\"FoundationFull.bridgesupport\",\n//\t\t\t\"WebKitFull.bridgesupport\",\n//\t\t};\n\t\tMacGenerator gen = new MacGenerator();\n\t\tgen.setXmls(xmls);\n\t\tgen.setOutputDir(root.getLocation().toPortableString());\n\t\tgen.setMainClass(mainClassName);\n\t\tui = new MacGeneratorUI(gen);\n\t\tui.setActionsVisible(false);\n\t\tui.open(parent);\n\n\t\tmakeActions();\n\t\tcontributeToActionBars();\n\t}", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NONE);\n\t\tcontainer.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tarchitectureCanvas = new ArchitectureCanvas(container,\n\t\t\t\tSWT.DOUBLE_BUFFERED);\n\n\t\tcreateActions();\n\t\tinitializeToolBar();\n\t\tinitializeMenu();\n\n\t\tCadmosUi.getInstance()\n\t\t\t\t.addListener(cadmosEditorSelectionChangedListener);\n\t}", "protected Control createControl(Composite parent) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Control createControl (Composite parent) {\r\n\t\tSystem.out.println(\"CDTFoldingPreferenceBlock.createControl()\");\r\n\r\n\t\tchildPreferenceStore.load();\r\n\t\tchildPreferenceStore.start();\r\n\r\n\t\tComposite inner = new Composite(parent, SWT.NONE);\r\n\t\tsetLayout(inner);\r\n\r\n\t\tComposite group = ControlFactory.createGroup(inner, CDTFoldingConstants.TF_TEXTFIELD_NAME, 1);\r\n\r\n\t\tText t = addTextField(group);\r\n\r\n\t\tControlFactory.createEmptySpace(inner);\r\n\r\n\t\tcbtViewer = addCBTViewer(inner);\r\n\r\n\t\tComposite editButtons = ControlFactory.createComposite(group, 4);\r\n\r\n\t\taddButton(editButtons, t);\r\n\t\tremoveButton(editButtons);\r\n\r\n\t\tmoveButton(editButtons, Move.UP);\r\n\t\tmoveButton(editButtons, Move.DOWN);\r\n\r\n\t\thighlightOrFoldCheckBox(inner);\r\n\r\n\t\tComposite colorComposite = ControlFactory.createComposite(inner, 2);\r\n\t\tcolorScheme(colorComposite);\r\n\r\n\t\taddErrorLabel(inner);\r\n\r\n\t\treturn inner;\r\n\t}", "@Override\r\n protected Control createDialogArea(Composite parent) {\r\n Composite area = (Composite) super.createDialogArea(parent);\r\n container = createContainer(area);\r\n createField(container);\r\n return area;\r\n }", "public void createControl(Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NONE);\n\t\tcontainer.setLayout(new GridLayout());\n\t\tsetControl(container);\n\n\t\tComposite container2 = new Composite(container, SWT.BORDER);\n\t\tcontainer2.setLayout(new GridLayout());\n\t\tcontainer2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\n\n\t\ttxtSummary = new StyledText(container2, SWT.LEFT | SWT.BORDER\n\t\t\t\t| SWT.READ_ONLY | SWT.WRAP | SWT.V_SCROLL);\n\t\ttxtSummary.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\n\t\ttxtSummary.setBackground(SWTResourceConstents.COLOR_WHITE);\n\n\t\ttxtDDL = new StyledText(container2, SWT.LEFT | SWT.BORDER\n\t\t\t\t| SWT.READ_ONLY | SWT.WRAP | SWT.V_SCROLL);\n\t\tGridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);\n\t\tgd.exclude = true;\n\t\ttxtDDL.setLayoutData(gd);\n\t\ttxtDDL.setVisible(false);\n\t\ttxtDDL.setBackground(SWTResourceConstents.COLOR_WHITE);\n\t\tcreateButtons(container);\n\t}", "public void createPartControl(Composite parent) {\n\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.marginWidth = 0;\n\t\tgridLayout.marginHeight = 0;\n\t\tparent.setLayout(gridLayout);\n\n\t\t// create a ShashForm\n\t\tthis.sashForm = new SashForm(parent, SWT.VERTICAL);\n\t\tthis.sashForm.setLayout(new GridLayout(2, false));\n\n\t\t// create a table viewer\n\t\tcreateTableViewer(this.sashForm);\n\n\t\t// create a report form to go with the table viewer\n\t\tcreateReportForm(this.sashForm);\n\n\t\tthis.sashForm.setLayoutData(new GridData(GridData.FILL_BOTH));\n\n\t\t// layout the text field below the tree viewer\n\t\tGridData layoutData = new GridData();\n\t\tlayoutData.grabExcessHorizontalSpace = true;\n\t\tlayoutData.grabExcessVerticalSpace = true;\n\t\tlayoutData.horizontalAlignment = GridData.FILL;\n\t\tlayoutData.verticalAlignment = GridData.FILL;\n\n\t}", "@Override\r\n\tpublic void createPartControl(Composite parent) {\n\r\n\t}", "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\n\n\t\tcreateContent(container);\n\n\t\treturn container;\n\t}", "public void createPartControl(Composite parent) {\n \t\t// Store the display so we can make async calls from listeners\n \t\tdisplay = parent.getDisplay();\n\t\tviewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n \t\tsetTreeColumns(viewer.getTree());\n \t\tviewer.getTree().setHeaderVisible(true);\n \t\tviewer.setContentProvider(getContentProvider());\n \t\tviewer.setInput(getInput());\n \t\tviewer.setLabelProvider(getLabelProvider());\n \t\tviewer.setComparator(new ViewerComparator());\n \t\tconfigureViewer(viewer);\n \t\taddListeners();\n \t\tmakeActions();\n \t\thookContextMenu();\n \t\thookDoubleClickAction();\n \t\tcontributeToActionBars();\n \t}", "public void createControl(Composite parent) {\r\n\t\tComposite container = new Composite(parent, SWT.NULL);\r\n\t\tfinal GridLayout gridLayout = new GridLayout();\r\n\t\tcontainer.setLayout(gridLayout);\r\n\t\tsetControl(container);\r\n\r\n\t\tfinal SubscriptionWorkingCopy workingCopy = wizard.getWorkingCopy();\r\n\r\n\t\tfinal SashForm sashForm = new SashForm(container, SWT.NONE);\r\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n\r\n\t\tGroup treeGroup = new Group(sashForm, SWT.NONE);\r\n\t\ttreeGroup.setLayout(new FillLayout());\r\n\t\ttreeGroup.setText(\"Detected feeds\");\r\n\r\n\t\tfinal TreeViewer treeViewer = new TreeViewer(treeGroup, SWT.BORDER);\r\n\t\ttreeViewer.addSelectionChangedListener(new ISelectionChangedListener() {\r\n\t\t\tpublic void selectionChanged(final SelectionChangedEvent event) {\r\n\t\t\t\tISelection selection = event.getSelection();\r\n\t\t\t\tif (selection instanceof IStructuredSelection) {\r\n\t\t\t\t\tObject selected = ((IStructuredSelection) selection)\r\n\t\t\t\t\t\t\t.getFirstElement();\r\n\t\t\t\t\tif (selected instanceof Subscription) {\r\n\t\t\t\t\t\tworkingCopy.copy((Subscription) selected);\r\n\t\t\t\t\t\turlText.setText(workingCopy.getURL());\r\n\t\t\t\t\t\tcombo.setText(workingCopy.getTitle());\r\n\t\t\t\t\t\tif (authenticationButton != null) {\r\n\t\t\t\t\t\t\tIFeedCatalog catalog = ((Subscription) selected)\r\n\t\t\t\t\t\t\t\t\t.getCatalog();\r\n\t\t\t\t\t\t\tif (catalog.supportsAuthentication()) {\r\n\t\t\t\t\t\t\t\tauthenticationButton.setEnabled(true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tauthenticationButton.setSelection(false);\r\n\t\t\t\t\t\t\t\tauthenticationButton.setEnabled(false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tTree tree = treeViewer.getTree();\r\n\t\ttree.setFocus();\r\n\t\ttreeViewer.setContentProvider(new ITreeContentProvider() {\r\n\r\n\t\t\tprivate IFeedCatalog[] catalogs;\r\n\r\n\t\t\tpublic Object[] getElements(Object inputElement) {\r\n\t\t\t\treturn catalogs;\r\n\t\t\t}\r\n\r\n\t\t\tpublic void dispose() {\r\n\t\t\t}\r\n\r\n\t\t\tpublic void inputChanged(Viewer viewer, Object oldInput,\r\n\t\t\t\t\tObject newInput) {\r\n\t\t\t\tcatalogs = AggregatorPlugin.getDefault().getCatalogs();\r\n\t\t\t}\r\n\r\n\t\t\tpublic Object[] getChildren(Object parentElement) {\r\n\t\t\t\tif (parentElement instanceof IFeedCatalog) {\r\n\t\t\t\t\t((IFeedCatalog) parentElement).getLabels();\r\n\t\t\t\t\treturn ((IFeedCatalog) parentElement).getFeeds();\r\n\t\t\t\t}\r\n\t\t\t\tif (parentElement instanceof IFeedCatalog[]) {\r\n\t\t\t\t\treturn catalogs;\r\n\t\t\t\t}\r\n\t\t\t\treturn new Object[0];\r\n\t\t\t}\r\n\r\n\t\t\tpublic Object getParent(Object element) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\tpublic boolean hasChildren(Object element) {\r\n\t\t\t\tif (element instanceof Subscription) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t});\r\n\t\ttreeViewer.setInput(this);\r\n\t\ttreeViewer.setLabelProvider(new LabelProvider() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String getText(Object element) {\r\n\t\t\t\tif (element instanceof IFeedCatalog) {\r\n\t\t\t\t\treturn ((IFeedCatalog) element).getName();\r\n\t\t\t\t}\r\n\t\t\t\tif (element instanceof Subscription) {\r\n\t\t\t\t\treturn ((Subscription) element).getTitle();\r\n\t\t\t\t}\r\n\t\t\t\treturn super.getText(element);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Image getImage(Object element) {\r\n\t\t\t\tif (element instanceof IFeedCatalog) {\r\n\t\t\t\t\tIFeedCatalog catalog = (IFeedCatalog) element;\r\n\t\t\t\t\tImageRegistry registry = AggregatorUIPlugin.getDefault()\r\n\t\t\t\t\t\t\t.getImageRegistry();\r\n\t\t\t\t\tString id = \"catalog.\" + catalog.getId() + \".\"\r\n\t\t\t\t\t\t\t+ catalog.getIcon();\r\n\t\t\t\t\tif (registry.get(id) == null) {\r\n\t\t\t\t\t\tImageDescriptor img = ImageDescriptor\r\n\t\t\t\t\t\t\t\t.createFromURL(catalog.getIcon());\r\n\t\t\t\t\t\tregistry.put(id, img);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn registry.get(id);\r\n\t\t\t\t}\r\n\t\t\t\tif (element instanceof Subscription) {\r\n\t\t\t\t\tImageRegistry registry = AggregatorUIPlugin.getDefault()\r\n\t\t\t\t\t\t\t.getImageRegistry();\r\n\t\t\t\t\treturn registry.get(AggregatorUIPlugin.IMG_FEED_OBJ);\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tComposite detailsGroup = new Composite(sashForm, SWT.NONE);\r\n\t\tdetailsGroup.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\tcreateConnectionGroup(workingCopy, detailsGroup);\r\n\t\tcreateAuthenticationGroup(workingCopy, detailsGroup);\r\n\t\tsashForm.setWeights(new int[] { 1, 1 });\r\n\t}", "public void createControl(Composite parent) {\n\t\tComposite comp = new Composite(parent, SWT.NONE);\r\n\t\tsetControl(comp);\r\n\r\n\t\tLaunchUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), ICDTLaunchHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_MAIN_TAB);\r\n\r\n\t\tGridLayout topLayout = new GridLayout();\r\n\t\ttopLayout.marginHeight = 10;\r\n\t\tcomp.setLayout(topLayout);\r\n\t\t\r\n\t\tcreateTargetCommGroup(comp, 1);\r\n\t\tcreateVerticalSpacer(comp, 1);\r\n\t\tcreateTargetInfoGroup(comp, 1);\r\n\t\t\r\n\t\tLaunchUIPlugin.setDialogShell(parent.getShell());\r\n\t}", "@Override\n\tprotected Control createContents(Composite parent) {\n\t\tfieldEditorParent = new Composite(parent, SWT.NULL);\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 1;\n\t\tlayout.marginHeight = 0;\n\t\tlayout.marginWidth = 0;\n\t\tfieldEditorParent.setLayout(layout);\n\t\tfieldEditorParent.setFont(parent.getFont());\n\n\t\tcreateFieldEditors();\n\n\t\tif (style == GRID) {\n\t\t\tadjustGridLayout();\n\t\t}\n\n\t\tinitialize();\n\t\tcheckState();\n\t\treturn fieldEditorParent;\n\t}", "public void createPartControl(Composite parent)\n {\n if (Workbench.getInstance().isClosing()) return;\n \n super.createPartControl(parent);\n \n installProjectionSupport();\n installBracketInserter();\n installCaretMoveListener();\n installModuleCompletionHelper();\n installIdleTimer();\n installSyntaxValidationThread();\n installFoldReconciler();\n installTasksReconciler();\n installAnnotationListener();\n \n source = new SourceFile(\n PerlEditorPlugin.getDefault().getLog(),\n getViewer().getDocument());\n \n reconcile();\n }", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tsuper.createPartControl(parent);\n\t\ttreeViewer.setInput(ComponentType.BUSINESS);\n\t}", "protected Composite createContent(Composite parent) {\n\t\tComposite c = new Composite(parent, SWT.NONE);\n\t\tc.setLayout(new FillLayout());\n\t\treturn c;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n public void createControl( Composite parent )\r\n {\n ScrolledComposite tabScroller = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);\r\n tabScroller.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );\r\n tabScroller.setLayout( new GridLayout( 1, false ) );\r\n tabScroller.setExpandHorizontal(true);\r\n tabScroller.setExpandVertical(true);\r\n Composite tab = new Composite(tabScroller, SWT.NONE);\r\n tab.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );\r\n tab.setLayout( new GridLayout( 1, false ) );\r\n\r\n Composite buttons = new Composite(tab, SWT.NONE);\r\n buttons.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_CENTER ) );\r\n buttons.setLayout( new GridLayout( 2, false ) );\r\n\r\n setControl( tabScroller );\r\n tabScroller.setContent(tab);\r\n\r\n // Add the relevant controls for selecting parameters\r\n final UpdatableControlIF topFile = ControlRenderingFactory.fileSelectButton(buttons, \"Set top model from file selection\", false, (ConfigFile)getConfigs().get(ConfigGroup.TOP_MODEL_FILE));\r\n /*final Button defaults =*/ this.getDefaultButton(buttons);\r\n\r\n final Composite group2 = new Composite(tab, SWT.SHADOW_IN);\r\n group2.setLayoutData( new GridData(SWT.FILL, SWT.BEGINNING, true,true) );\r\n group2.setLayout( new GridLayout( 2, true ) );\r\n\r\n final Composite leftCol = new Composite(group2, SWT.NONE);\r\n leftCol.setLayoutData( new GridData(SWT.FILL, SWT.BEGINNING, true,true) );\r\n leftCol.setLayout( new GridLayout( 1, true ) );\r\n\r\n final Composite rightCol = new Composite(group2, SWT.NONE);\r\n rightCol.setLayoutData( new GridData(SWT.FILL, SWT.BEGINNING, true,true) );\r\n rightCol.setLayout( new GridLayout( 1, true ) );\r\n\r\n final UpdatableControlIF runDir = ControlRenderingFactory.renderConfigFileSelect((ConfigFile)getConfigs().get(ConfigGroup.RUN_DIR), leftCol, true, true); \r\n final UpdatableControlIF topName = ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.TOP_MODEL_NAME), leftCol); \r\n addControl(ConfigGroup.CACHE_DIR, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.CACHE_DIR), leftCol));\r\n\r\n final Composite leftColShort = new Composite(leftCol, SWT.NONE);\r\n leftColShort.setLayoutData( new GridData(SWT.FILL, SWT.BEGINNING, true,true) );\r\n leftColShort.setLayout( new GridLayout( 2, true ) );\r\n addControl(ConfigGroup.SIM_TIME, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_TIME), leftColShort));\r\n addControl(ConfigGroup.SIM_STEPS, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_STEPS), leftColShort));\r\n addControl(ConfigGroup.SIM_MAX_ERRORS, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_MAX_ERRORS), leftColShort));\r\n addControl(ConfigGroup.SIM_BUFFER_SIZE_WARNING, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_BUFFER_SIZE_WARNING), leftColShort));\r\n \r\n addControl(ConfigGroup.ELABORATE_TOP, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.ELABORATE_TOP), leftColShort));\r\n addControl(ConfigGroup.ENABLE_ASSERTIONS, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.ENABLE_ASSERTIONS), leftColShort));\r\n addControl(ConfigGroup.SIM_BUFFER_IGNORE, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_BUFFER_IGNORE), leftColShort));\r\n addControl(ConfigGroup.SIM_BUFFER_RECORD, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_BUFFER_RECORD), leftColShort));\r\n addControl(ConfigGroup.SIM_TRACE, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_TRACE), leftColShort));\r\n addControl(ConfigGroup.SIM_TYPE_CHECK, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_TYPE_CHECK), leftColShort));\r\n \r\n addControl(ConfigGroup.SIM_INPUT_FILE, ControlRenderingFactory.renderConfigFileSelect((ConfigFile)getConfigs().get(ConfigGroup.SIM_INPUT_FILE), rightCol, true, true));\r\n addControl(ConfigGroup.SIM_OUTPUT_FILE, ControlRenderingFactory.renderConfigFileSelect((ConfigFile)getConfigs().get(ConfigGroup.SIM_OUTPUT_FILE), rightCol, true, true));\r\n final UpdatableControlIF modelPath = ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.MODEL_PATH), rightCol); \r\n final UpdatableControlIF modelParams = ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.TOP_MODEL_PARAMS), rightCol); \r\n addControl(ConfigGroup.MESSAGE_SUPPRESS_IDS, ControlRenderingFactory.renderConfig((ConfigList)getConfigs().get(ConfigGroup.MESSAGE_SUPPRESS_IDS), rightCol));\r\n\r\n addControl(ConfigGroup.MODEL_PATH, modelPath);\r\n addControl(ConfigGroup.RUN_DIR, runDir);\r\n addControl(ConfigGroup.TOP_MODEL_NAME, topName);\r\n addControl(ConfigGroup.TOP_MODEL_PARAMS, modelParams);\r\n\r\n // If the user uses the button to set the model by file selection, overide any values in \r\n // the relevent fields\r\n topFile.addModifyListener(new ConfigModificationListener(){\r\n public void registerModification (int type) { \r\n // Set to false to only update in case of no user setting.\r\n final boolean forceUpdate = true;\r\n\r\n ConfigFile topFileConfig = (ConfigFile)getConfigs().get(ConfigGroup.TOP_MODEL_FILE);\r\n // In case of spurious events ignore them (possible?)\r\n if (!topFileConfig.isUserSpecified())\r\n return;\r\n\r\n // Update the run directory whenever the top file is updated\r\n ConfigFile runDirConfig = (ConfigFile)getConfigs().get(ConfigGroup.RUN_DIR);\r\n if (forceUpdate/* || !runDirConfig.isUserSpecified()*/)\r\n runDirConfig.setValue(topFileConfig.getValueFile().getParent(), true);\r\n runDir.updateValue();\r\n\r\n // Update the top level model name\r\n ConfigString topNameConfig = (ConfigString)getConfigs().get(ConfigGroup.TOP_MODEL_NAME);\r\n if (forceUpdate/* || !topNameConfig.isUserSpecified()*/)\r\n {\r\n String name = topFileConfig.getValueFile().getName();\r\n name = name.indexOf('.') > 0 ? name.substring(0, name.lastIndexOf('.')):name;\r\n topNameConfig.setValue(name, true);\r\n }\r\n topName.updateValue();\r\n\r\n // Ensure that the model path contains the run directory\r\n ConfigList modelPathConfig = (ConfigList)getConfigs().get(ConfigGroup.MODEL_PATH);\r\n if (!modelPathConfig.getValue().contains(runDirConfig.getValue()))\r\n {\r\n // The contract for setValue on collections is to append\r\n modelPathConfig.addValue(Collections.singletonList(runDirConfig.getValue()), modelPathConfig.isUserSpecified());\r\n }\r\n modelPath.updateValue();\r\n\r\n // Update the model parameters\r\n ConfigMap paramsConfig = (ConfigMap)getConfigs().get(ConfigGroup.TOP_MODEL_PARAMS);\r\n if (forceUpdate/* || !paramsConfig.isUserSpecified()*/)\r\n {\r\n String[] modelPathArr = (String[])modelPathConfig.getValue().toArray(new String[0]);\r\n try {\r\n List<TopModelParamParse.ModelParameter> params = TopModelParamParse.parseModel(topNameConfig.getValue(), modelPathArr);\r\n Map map = new HashMap();\r\n for (ModelParameter mp : params)\r\n map.put(mp.getName(), mp.getValue());\r\n paramsConfig.setValue(map, false);\r\n } catch (TopModelParamParse.ModelAnalysisException exc) {\r\n Logging.dbg().severe(\"Error loading top model \" + exc);\r\n }\r\n }\r\n modelParams.updateValue();\r\n }\r\n });\r\n\r\n // The topFile control must be added AFTER the above modificationListener is added\r\n // so that the changes instituted there will be reflected in the call to updateLaunchConfigurationDialog().\r\n addControl(ConfigGroup.TOP_MODEL_FILE, topFile);\r\n\r\n tabScroller.setMinSize(tab.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n }", "@Override\n public void createPartControl(Composite parent) {\n errorColor = parent.getDisplay().getSystemColor(SWT.COLOR_RED);\n parent.addControlListener(new ControlListener() {\n\n @Override\n public void controlMoved(ControlEvent e) {\n //\n }\n\n @Override\n public void controlResized(ControlEvent e) {\n computeOrientation();\n }\n });\n\n GridLayout parentLayout = new GridLayout();\n parentLayout.numColumns = 1;\n parentLayout.marginBottom = -5;\n parentLayout.marginTop = -5;\n parentLayout.marginLeft = -5;\n parentLayout.marginRight = -5;\n\n parent.setLayout(parentLayout);\n\n stackComposite = new Composite(parent, SWT.NONE);\n stackComposite.setLayoutData(new GridData(GridData.FILL_BOTH));\n stackComposite.setLayout(new StackLayout());\n\n statusLineManager = new StatusLineManager();\n statusControl = statusLineManager.createControl(parent, SWT.NONE);\n statusControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\n createTextControl();\n\n createTextContextMenu();\n\n createVerifyControl();\n\n initModes();\n\n if (modes.get(BCOConstants.F_SHOW_ANALYZER)) {\n ((StackLayout) stackComposite.getLayout()).topControl = verifyControl;\n } else {\n ((StackLayout) stackComposite.getLayout()).topControl = textControl;\n }\n\n createSelectionProvider();\n\n createToolbarActions();\n\n setEnabled(false);\n\n// activateView();\n }", "public void createPartControl(Composite parent) {\n\t\tlog.info(\"Workplace plugin version 1.6.0\");\n\t\t// Drag \"from\" tree\n\t\tcompositeQueryTree = new Composite(parent, SWT.NULL);\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.numColumns = 1;\n\t\tgridLayout.horizontalSpacing = 1;\n\t\tgridLayout.verticalSpacing = 1;\n\t\tgridLayout.marginHeight = 0;\n\t\tgridLayout.marginWidth = 0;\n\t\tcompositeQueryTree.setLayout(gridLayout);\n\n\t\tGridLayout gridLayoutTree = new GridLayout(1, false);\n\t\tgridLayoutTree.numColumns = 1;\n\t\tgridLayoutTree.marginHeight = 0;\n\t\tGridData fromTreeGridData = new GridData (GridData.FILL_BOTH);\n\t\tfromTreeGridData.widthHint = 300;\n\t\tcompositeQueryTree.setLayoutData(fromTreeGridData);\n\n\t\tTreeComposite dragTree = new TreeComposite(compositeQueryTree, 1, slm);\n\t\tdragTree.setLayoutData(new GridData (GridData.FILL_BOTH));\n\t\tdragTree.setLayout(gridLayout);\n\t\t\n\t\t// Setup help context\n\t\tPlatformUI.getWorkbench().getHelpSystem().setHelp(dragTree, WORKPLACE_VIEW_CONTEXT_ID);\n\t\taddHelpButtonToToolBar();\n\t}", "protected Text createEditorControl(final Composite parent, int style) {\n \t\t//create the Text control based on the specified style\n \t\tfinal Text textControl = new Text(parent, style);\n \t\t\n \t\t//set style information configured in the associated cell style\n \t\ttextControl.setBackground(this.cellStyle.getAttributeValue(CellStyleAttributes.BACKGROUND_COLOR));\n \t\ttextControl.setForeground(this.cellStyle.getAttributeValue(CellStyleAttributes.FOREGROUND_COLOR));\n \t\ttextControl.setFont(this.cellStyle.getAttributeValue(CellStyleAttributes.FONT));\n \t\t\n \t\ttextControl.setCursor(new Cursor(Display.getDefault(), SWT.CURSOR_IBEAM));\n \t\t\n \t\t//add a key listener that will commit or close the editor for special key strokes\n \t\t//and executes conversion/validation on input to the editor\n \t\ttextControl.addKeyListener(new KeyAdapter() {\n \n \t\t\t@Override\n \t\t\tpublic void keyPressed(KeyEvent event) {\n \t\t\t\tif (commitOnEnter && \n \t\t\t\t\t\t(event.keyCode == SWT.CR\n \t\t\t\t\t\t\t|| event.keyCode == SWT.KEYPAD_CR)) {\n \t\t\t\t\t\n \t\t\t\t\tboolean commit = (event.stateMask == SWT.ALT) ? false : true;\n \t\t\t\t\tMoveDirectionEnum move = MoveDirectionEnum.NONE;\n \t\t\t\t\tif (moveSelectionOnEnter && editMode == EditModeEnum.INLINE) {\n \t\t\t\t\t\tif (event.stateMask == 0) {\n \t\t\t\t\t\t\tmove = MoveDirectionEnum.DOWN;\n \t\t\t\t\t\t} else if (event.stateMask == SWT.SHIFT) {\n \t\t\t\t\t\t\tmove = MoveDirectionEnum.UP;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tif (commit)\n \t\t\t\t\t\tcommit(move);\n \t\t\t\t\t\n \t\t\t\t\tif (editMode == EditModeEnum.DIALOG) {\n \t\t\t\t\t\tparent.forceFocus();\n \t\t\t\t\t}\n \t\t\t\t} \n \t\t\t\telse if (event.keyCode == SWT.ESC && event.stateMask == 0){\n \t\t\t\t\tclose();\n \t\t\t\t}\n \t\t\t\telse if (commitOnUpDown && editMode == EditModeEnum.INLINE) {\n if (event.keyCode == SWT.ARROW_UP) {\n commit(MoveDirectionEnum.UP);\n } else if (event.keyCode == SWT.ARROW_DOWN) {\n commit(MoveDirectionEnum.DOWN);\n }\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void keyReleased(KeyEvent e) {\n \t\t\t\ttry {\n \t\t\t\t\t//always do the conversion\n \t\t\t\t\tObject canonicalValue = getCanonicalValue(inputConversionErrorHandler); \n \t\t\t\t\t//and always do the validation\n \t\t\t\t\t//even if for commiting the validation should be skipped, on editing\n \t\t\t\t\t//a validation failure should be made visible\n \t\t\t\t\t//otherwise there would be no need for validation!\n \t\t\t\t\tvalidateCanonicalValue(canonicalValue, inputValidationErrorHandler);\n \t\t\t\t}\n \t\t\t\tcatch (Exception ex) {\n \t\t\t\t\t//do nothing as exceptions caused by conversion or validation are handled already\n \t\t\t\t\t//we just need this catch block for stopping the process if conversion failed with\n \t\t\t\t\t//an exception\n \t\t\t\t}\n \t\t\t}\n \t\t});\n \t\t\n \t\treturn textControl;\n \t}", "@Override\n\tpublic void createControl(Composite parent) {\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 1;\n\t\tlayout.marginHeight = 0;\n\t\tlayout.marginTop = 0;\n\t\tlayout.marginBottom = 0;\n\t\tlayout.verticalSpacing = 0;\n\t\tlayout.makeColumnsEqualWidth = true;\n\n\t\trootComposite = new Composite(parent, SWT.NO_BACKGROUND);\n\t\trootComposite.setLayout(layout);\n\t\tGridData rootData = new GridData();\n\t\trootData.grabExcessHorizontalSpace = true;\n\t\trootData.horizontalAlignment = GridData.FILL;\n\t\trootData.grabExcessVerticalSpace = true;\n\t\trootData.verticalAlignment = GridData.FILL;\n\t\trootComposite.setLayoutData(rootData);\n\n\t\tcreateTopBar(rootComposite, layout.numColumns);\n\t\t\n\t\tthis.showMonitorVisualization();\n\n\t\tsetControl(rootComposite);\n\t}", "private ComponentComposite(Composite parent, int style) {\n\t\tsuper(parent, style);\n\t\tcreateControls();\n\t}", "public void createPartControl(Composite parent) {\n \n \t\tgetImages();\n \n \t\ttoolkit = new FormToolkit(parent.getDisplay());\n \t\tform = toolkit.createScrolledForm(parent);\n \t\tform.addListener(SWT.Resize, new Listener() {\n \t\t\tpublic void handleEvent(Event e) {\n \t\t\t\tform.setRedraw(false);\n \t\t\t\tform.reflow(true);\n \t\t\t\tform.layout(true, true);\n \t\t\t\tform.setRedraw(true);\n \t\t\t}\n \t\t});\n \t\tGridLayout layout = new GridLayout(2, false);\n \t\tlayout.verticalSpacing = 1;\n \t\tform.getBody().setLayout(layout);\n \n \t\tcreateURLAndToolbar();\n \n \t\tSashForm sashForm = new SashForm(form.getBody(), SWT.NONE);\n \t\tsashForm.setOrientation(SWT.HORIZONTAL);\n \t\ttoolkit.adapt(sashForm);\n \t\tGridLayout sashLayout = new GridLayout(2, false);\n \t\tsashForm.setLayout(sashLayout);\n \t\tGridData gd3 = new GridData(SWT.FILL, SWT.FILL, true, true);\n \t\tgd3.horizontalSpan = 2;\n \t\tgd3.widthHint = 1;\n \t\tsashForm.setLayoutData(gd3);\n \n \t\tcreateRequestSide(sashForm);\n \n \t\tcreateResponseSide(sashForm);\n \n \t\ttoolkit.paintBordersFor(form);\n \t\tform.reflow(true);\n \n \t\tmethodCombo.setText(JAX_WS);\n \t\tsetControlsForWSType(getCurrentTestType());\n \t\tsetControlsForMethodType(methodCombo.getText());\n \t\tsetControlsForSelectedURL();\n \t\tsetMenusForCurrentState();\n \t}", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tcreateCDL2BPELContent(null,null);\n\t}", "public void createPartControl(Composite parent) {\n\t\t//Sets the layout\n\t\tGridLayout layout = new GridLayout(2, false);\n\t\tparent.setLayout(layout);\n\t\t\n\t\t//Creates the search field\n\t\tLabel search_label = new Label(parent, SWT.NONE);\n\t\tsearch_label.setText(\"Search: \");\n\t\tfinal Text search_text = new Text(parent, SWT.BORDER | SWT.SEARCH);\n\t\tsearch_text.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));\n\t\t\n\t\tcreateViewer(parent);\n\n\t\t//Sets the viewer sorter\n\t\tcomparator= new ConcernReCSViewerComparator();\n\t\tviewer.setComparator(comparator);\n\t\t\n\t\t//Supports the case-sensitive search\n\t\tsearch_text.addKeyListener(new KeyAdapter() \n\t\t{\n\t\t\tpublic void keyReleased(KeyEvent event) \n\t\t\t{\n\t\t\t\tfilter.setSearchText(search_text.getText());\n\t\t\t\tviewer.refresh();\n\t\t\t}\n\t\t});\n\n\t\t// Create the help context id for the viewer's control\n\t\tPlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), \"ufmg.crcs.viewer\");\n\t\tmakeActions();\n\t\thookContextMenu();\n\t\thookDoubleClickAction();\n\t\tcontributeToActionBars();\n\t}", "@Override\n\tpublic void createPartControl(final Composite parent) {\n\t\tgetSite().getPage().addSelectionListener(this);\n\n\t\tthis.parent = parent;\n\n\t\tparent.setLayout(new GridLayout());\n\n\t\t// Add one composite that will be visible\n\t\t// when no token is selected:\n\t\tnoData = new GridData(SWT.CENTER, SWT.CENTER, true, false);\n\t\tnoLabel = new Label(parent, SWT.NONE);\n\t\tnoLabel.setText(\"Click on a token in Gantt Chart view to see details here.\");\n\t\tnoLabel.setLayoutData(noData);\n\n\t\t// Add a second composite that will be visible when\n\t\t// a token is selected:\n\t\tyesComposite = new Composite(parent,SWT.NONE);\n\t\tyesData = new GridData(SWT.FILL, SWT.FILL, true, true);\n\t\tyesComposite.setLayoutData(yesData);\n\n\t\t// We seem to need FillLayout for ScrolledComposite to work\n\t\t// (but embed a GridLayout inside that)\n\t\tyesComposite.setLayout(new FillLayout());\n\n\t\tcreateYesComposite();\n\t}", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tViewForm viewForm = new ViewForm(parent, SWT.NONE);\n\t\tviewForm.setLayoutData(new FillLayout());\n\t\t\n\t\tfinal Text text = new Text(viewForm, SWT.BORDER |SWT.WRAP |SWT.V_SCROLL );\n\t\tviewForm.setContent(text);\n\t\t\n\t\tToolBar toolBar = new ToolBar(viewForm, SWT.FLAT);\n\t\tToolItem getItem = new ToolItem(toolBar, SWT.PUSH);\n\t\tgetItem.setText(\"get\");\n\t\tgetItem.addSelectionListener(new SelectionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tToolItem clearItem = new ToolItem(toolBar, SWT.PUSH);\n\t\tclearItem.setText(\"clear\");\n\t\tclearItem.addSelectionListener(new SelectionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tMessageDialog.openInformation(parent.getShell(), \"info\", ((ToolItem)e.getSource()).getText());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tviewForm.setTopRight(toolBar);\n\t\t\n\t}", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tComposite top = new Composite(parent, SWT.NONE);\n\t\tFillLayout layout = new FillLayout(SWT.HORIZONTAL);\n\t\tlayout.marginHeight = 10;\n\t\ttop.setLayout(layout);\n\n\t\t// TabFolder\n\t\tCTabFolder tabFolder = new CTabFolder(top, SWT.BORDER);\n\t\ttabFolder.setSelectionBackground(Display.getCurrent().getSystemColor(\n\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\tGridLayout tabLayout = new GridLayout();\n\t\ttabLayout.marginHeight = 10;\n\t\ttabLayout.marginWidth = 10;\n\t\ttabLayout.verticalSpacing = 20;\n\t\ttabLayout.numColumns = 1;\n\t\ttabFolder.setLayout(tabLayout);\n\n\t\tnew MQTTTab(tabFolder, SWT.NONE, connection, eventService);\n\n\t\t// Tab Options\n\t\tnew OptionsTab(tabFolder, SWT.NONE, connection);\n\n\t\t// select the first tab by default\n\t\ttabFolder.setSelection(0);\n\t}", "public final void createPartControl(final Composite parent) {\n\t\ttop = parent;\n\t\t/* Create a label for the view to indicate no item is selected */\n\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\n\t\t/* register the property change listeners of the model */\n\t\tProjectModel.getInstance().addPropertyChangeListener(this);\n\n\t\t// ///?????\n\t\tstartUpdateTimer();\n\t}", "@Override\n public final void fill(Composite parent) {\n createControl(parent);\n }", "public void createControl(Composite parent) {\r\n \t\tinitializeDialogUnits(parent);\r\n \r\n \t\tComposite root = new Composite(parent, SWT.NONE);\r\n \t\tGridData gd = new GridData();\r\n \r\n \t\tgd.horizontalSpan = 1;\r\n \t\tgd.horizontalAlignment = GridData.FILL;\r\n \t\tgd.grabExcessHorizontalSpace = true;\r\n \t\tgd.grabExcessVerticalSpace = false;\r\n \r\n \t\tGridLayout gridLayout = new GridLayout(1, false);\r\n \t\troot.setLayout(gridLayout);\r\n \t\tGroup generalGroup = new Group(root, SWT.NONE);\r\n \t\tgeneralGroup.setLayoutData(gd);\r\n \t\tgeneralGroup.setText(SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_GENERAL);\r\n \t\tgridLayout = new GridLayout(3, false);\r\n \r\n \t\tgeneralGroup.setLayout(gridLayout);\r\n \t\tregisterEditor(jBossSeamHomeEditor, generalGroup, 3);\r\n \t\tregisterEditor(jBossAsDeployAsEditor, generalGroup, 3);\r\n \r\n \t\tgd = new GridData();\r\n \t\tgd.horizontalSpan = 1;\r\n \t\tgd.horizontalAlignment = GridData.FILL;\r\n \t\tgd.grabExcessHorizontalSpace = true;\r\n \t\tgd.grabExcessVerticalSpace = false;\r\n \r\n \t\tGroup databaseGroup = new Group(root, SWT.NONE);\r\n \t\tdatabaseGroup.setLayoutData(gd);\r\n \t\tdatabaseGroup.setText(SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_DATABASE);\r\n \t\tgridLayout = new GridLayout(4, false);\r\n \t\tdatabaseGroup.setLayout(gridLayout);\r\n \t\tregisterEditor(jBossHibernateDbTypeEditor, databaseGroup, 4);\r\n \t\tregisterEditor(connProfileSelEditor, databaseGroup, 4);\r\n \t\tregisterEditor(dbSchemaName, databaseGroup, 4);\r\n \t\tregisterEditor(dbCatalogName, databaseGroup, 4);\r\n \t\tregisterEditor(dbTablesExists, databaseGroup, 4);\r\n \t\tregisterEditor(recreateTablesOnDeploy, databaseGroup, 4);\r\n \t\t// registerEditor(pathToJdbcDriverJar,databaseGroup, 4);\r\n \r\n \t\tGroup generationGroup = new Group(root, SWT.NONE);\r\n \t\tgd = new GridData();\r\n \t\tgd.horizontalSpan = 1;\r\n \t\tgd.horizontalAlignment = GridData.FILL;\r\n \t\tgd.grabExcessHorizontalSpace = true;\r\n \t\tgd.grabExcessVerticalSpace = false;\r\n \r\n \t\tgenerationGroup.setLayoutData(gd);\r\n \t\tgenerationGroup.setText(SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_CODE_GENERATION);\r\n \t\tgridLayout = new GridLayout(3, false);\r\n \t\tgenerationGroup.setLayout(gridLayout);\r\n \t\tregisterEditor(sessionBeanPkgNameditor, generationGroup, 3);\r\n \t\tregisterEditor(entityBeanPkgNameditor, generationGroup, 3);\r\n \t\tregisterEditor(testsPkgNameditor, generationGroup, 3);\r\n \r\n \t\tsetControl(root);\r\n \t\tNewProjectDataModelFacetWizard wizard = (NewProjectDataModelFacetWizard) getWizard();\r\n \r\n \t\tIDataModel model = wizard.getDataModel();\r\n \r\n \t\tif (validatorDelegate == null) {\r\n \t\t\tvalidatorDelegate = new DataModelValidatorDelegate(this.model, this);\r\n \t\t\tvalidatorDelegate.addValidatorForProperty(jBossSeamHomeEditor\r\n \t\t\t\t\t.getName(),\r\n \t\t\t\t\tValidatorFactory.SEAM_RUNTIME_NAME_VALIDATOR);\r\n \t\t\tvalidatorDelegate.addValidatorForProperty(connProfileSelEditor\r\n \t\t\t\t\t.getName(),\r\n \t\t\t\t\tValidatorFactory.CONNECTION_PROFILE_VALIDATOR);\r\n \t\t\tvalidatorDelegate.addValidatorForProperty(testsPkgNameditor\r\n \t\t\t\t\t.getName(), new PackageNameValidator(testsPkgNameditor\r\n \t\t\t\t\t.getName(), \"tests\")); //$NON-NLS-1$\r\n \t\t\tvalidatorDelegate.addValidatorForProperty(entityBeanPkgNameditor\r\n \t\t\t\t\t.getName(), new PackageNameValidator(entityBeanPkgNameditor\r\n \t\t\t\t\t.getName(), \"entity beans\")); //$NON-NLS-1$\r\n \t\t\tvalidatorDelegate.addValidatorForProperty(sessionBeanPkgNameditor\r\n \t\t\t\t\t.getName(), new PackageNameValidator(\r\n \t\t\t\t\tsessionBeanPkgNameditor.getName(), \"session beans\")); //$NON-NLS-1$\r\n \t\t\tvalidatorDelegate.addValidatorForProperty(\r\n \t\t\t\t\tIFacetDataModelProperties.FACET_PROJECT_NAME, \r\n \t\t\t\t\tnew ProjectNamesDuplicationValidator(\r\n \t\t\t\t\t\t\tIFacetDataModelProperties.FACET_PROJECT_NAME));\r\n \t\t}\r\n \r\n \t\tjBossHibernateDbTypeEditor\r\n \t\t\t\t.addPropertyChangeListener(new PropertyChangeListener() {\r\n \t\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\r\n \t\t\t\t\t\tSeamInstallWizardPage.this.model.setProperty(ISeamFacetDataModelProperties.HIBERNATE_DIALECT,\r\n \t\t\t\t\t\tHIBERNATE_HELPER.getDialectClass(evt.getNewValue().toString()));\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t);\r\n \r\n\r\n\r\n Dialog.applyDialogFont(parent);\r\n \t}", "protected Control createContents(Composite parent) {\r\n noDefaultAndApplyButton();\r\n\r\n // The main composite\r\n Composite composite = new Composite(parent, SWT.NONE);\r\n GridLayout layout = new GridLayout(1, false);\r\n layout.marginWidth = 0;\r\n layout.marginHeight = 0;\r\n composite.setLayout(layout);\r\n\r\n // TODO change these labels later\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Provided by Duke University Computer Science Department\");\r\n new Label(composite, SWT.NONE).setText(\"http://www.cs.duke.edu\");\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Questions? Go to our website at http://www.cs.duke.edu/csed/ambient\");\r\n return composite;\r\n }", "Composite createBlockContent( Composite parent, FormToolkit toolkit );", "protected Control createControl(Composite parent) {\n combo = new Combo(parent, SWT.DROP_DOWN);\n combo.addSelectionListener(new SelectionListener() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n handleWidgetSelected(e);\n }\n\n @Override\n public void widgetDefaultSelected(SelectionEvent e) {\n handleWidgetDefaultSelected(e);\n }\n });\n combo.addFocusListener(new FocusListener() {\n @Override\n public void focusGained(FocusEvent e) {\n // do nothing\n }\n\n @Override\n public void focusLost(FocusEvent e) {\n refresh(false);\n }\n });\n\n // Initialize width of combo\n combo.setItems(initStrings);\n toolitem.setWidth(computeWidth(combo));\n refresh(true);\n return combo;\n }", "public void createPartControl(Composite parent) {\n\t\tviewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tdrillDownAdapter = new DrillDownAdapter(viewer);\n\t\tviewer.setContentProvider(new ViewContentProvider());\n\t\tviewer.setLabelProvider(new ViewLabelProvider());\n\t\tviewer.setSorter(new NameSorter());\n\t\tviewer.setInput(getViewSite());\n\n\t\t// Create the help context id for the viewer's control\n\t\tPlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), \"TreeView.viewer\");\n\t\tmakeActions();\n\t\thookContextMenu();\n\t\thookDoubleClickAction();\n\t\tcontributeToActionBars();\n\t}", "public CustomDialogCellEditor(final Composite parent) {\r\n super(parent);\r\n }", "public void createControl(Composite parent) {\n Composite main = new Composite(parent, SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.numColumns = 1;\n main.setLayout(layout);\n if (parent.getLayout() instanceof GridLayout) {\n // This is necessary otherwise Eclipse does not properly layout\n // the main control. Really the parent Composite should be doing\n // this but this seems to be how Eclipse expects search dialogs\n // to be layed out see\n // org.eclipse.search.internal.ui.text.TextSearchPage.\n main.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n }\n\n Label label = new Label(main, SWT.LEFT);\n label.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"searchStringCombo.text\"));\n\n Composite innerComposite = new Composite(main, SWT.NONE);\n innerComposite.setLayoutData(new GridData(GridData.FILL_BOTH));\n layout = new GridLayout();\n layout.numColumns = 2;\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n innerComposite.setLayout(layout);\n\n Composite comboComposite = new Composite(innerComposite, SWT.NONE);\n comboComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n layout = new GridLayout();\n layout.numColumns = 1;\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n comboComposite.setLayout(layout);\n\n searchStringCombo = new Combo(comboComposite, SWT.DROP_DOWN);\n searchStringCombo.setItems(historyManager.getHistory());\n GridData data = new GridData(GridData.FILL_BOTH);\n searchStringCombo.setLayoutData(data);\n\n searchStringCombo.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent event) {\n getContainer().setPerformActionEnabled(!searchStringCombo.\n getText().equals(\"\"));\n }\n });\n Composite checkBoxComposite = new Composite(innerComposite, SWT.NONE);\n layout = new GridLayout();\n layout.numColumns = 1;\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n\n checkBoxComposite.setLayout(layout);\n\n caseButton = new Button(checkBoxComposite, SWT.CHECK);\n caseButton.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"caseSensitive.text\"));\n caseButton.setSelection(dialogSettings.\n getBoolean(caseButton.getText()));\n\n regExpButton = new Button(checkBoxComposite, SWT.CHECK);\n regExpButton.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"regularExpression.text\"));\n regExpButton.setSelection(dialogSettings.\n getBoolean(regExpButton.getText()));\n\n final Label hint = new Label(comboComposite, SWT.LEFT);\n hint.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"nonRegExp.hint.label\"));\n hint.setVisible(!regExpButton.getSelection());\n\n\t\tregExpButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\thint.setVisible(!regExpButton.getSelection());\n\t\t\t}\n\t\t});\n\n Group searchGroup = new Group(main, SWT.SHADOW_ETCHED_IN);\n data = new GridData(GridData.FILL_HORIZONTAL);\n searchGroup.setLayoutData(data);\n searchGroup.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"searchGroup.text\"));\n searchGroup.setLayout(new FillLayout());\n\n deviceNameSearch = new Button(searchGroup, SWT.RADIO);\n deviceNameSearch.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"deviceNameSearch.text\"));\n deviceNameSearch.setSelection(dialogSettings.\n getBoolean(deviceNameSearch.getText()));\n\n devicePatternsSearch = new Button(searchGroup, SWT.RADIO);\n devicePatternsSearch.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"devicePatternsSearch.text\"));\n devicePatternsSearch.setSelection(dialogSettings.\n getBoolean(devicePatternsSearch.getText()));\n\n if(!devicePatternsSearch.getSelection() &&\n !deviceNameSearch.getSelection()) {\n deviceNameSearch.setSelection(true); // default\n }\n setControl(main);\n getContainer().setPerformActionEnabled(false);\n }", "@Override\r\n\tpublic void createControl(Composite parent) {\r\n\t\tpageBook = new PageBook(parent, SWT.NONE);\r\n\t\t\r\n\t\toutline = getViewer().createControl(pageBook);\r\n\t\tgetViewer().setContents(new Root(model));\r\n\t\tselectionSynchronizer.addViewer(getViewer());\r\n\t\t\r\n\t\toverview = new Canvas(pageBook, SWT.NONE);\r\n\t\tlws = new LightweightSystem(overview);\r\n\t\t\r\n IToolBarManager tbm = getSite().getActionBars().getToolBarManager();\r\n showOutlineAction = new Action() {\r\n public void run() {\r\n showPage(outline);\r\n }\r\n };\r\n showOutlineAction.setImageDescriptor(ImageDescriptor.createFromFile(\r\n \t\tDeploymentOutlinePage.class, \"icons/outline.gif\"));\r\n tbm.add(showOutlineAction);\r\n showOverviewAction = new Action() {\r\n public void run() {\r\n showPage(overview);\r\n }\r\n };\r\n showOverviewAction.setImageDescriptor(ImageDescriptor.createFromFile(\r\n \t\tDeploymentOutlinePage.class, \"icons/overview.gif\"));\r\n tbm.add(showOverviewAction);\r\n \r\n initializeOverview();\r\n \r\n showPage(outline);\r\n\t}", "public void createContents(Composite parent) {\n\t\tparent.setLayout(new FillLayout());\n\t\tfMainSection = fToolkit.createSection(parent, Section.TITLE_BAR);\n\n\t\tComposite mainComposite = fToolkit.createComposite(fMainSection, SWT.NONE);\n\t\tfToolkit.paintBordersFor(mainComposite);\n\t\tfMainSection.setClient(mainComposite);\n\t\tmainComposite.setLayout(new GridLayout(1, true));\n\t\t\n\t\tcreateClassListViewer(mainComposite);\n\t\tcreateBottomButtons(mainComposite);\n\t\tcreateTextClientComposite(fMainSection);\n\t}", "@Override\n\tpublic void createPartControl(Composite parent) {\n\n\t\tinitScreen(parent);\n\t\tif (!((options & VIEWER_NO_SYNC_OPTION) != 0)) {\n\t\t\tinitSyncAction();\n\t\t}\n\t}", "public FormatComposite build(Composite parent, ODOMElement element,\n FormatComposite root) {\n if (parent == null) {\n throw new IllegalArgumentException(\"Cannot be null: container\");\n }\n if (element == null) {\n throw new IllegalArgumentException(\"Cannot be null: element\");\n }\n\n return buildFormatComposite(parent, element, root);\n }", "public void createControl(Composite parent) {\n Group group = SWTFactory.createGroup(parent, PDEUIMessages.ProfileBlock_0, 1, 1, GridData.FILL_HORIZONTAL);\n fGenerateProfileButton = SWTFactory.createCheckButton(group, PDEUIMessages.ProfileBlock_1, null, false, 1);\n fGenerateProfileButton.addSelectionListener(new SelectionAdapter() {\n\n @Override\n public void widgetSelected(SelectionEvent e) {\n fTab.updateLaunchConfigurationDialog();\n }\n });\n }", "@Override\r\n\tpublic void createControl(Composite parent) {\r\n\t\tComposite container = new Composite(parent, SWT.NULL);\r\n\t\t// container.setTouchEnabled(true);\r\n\r\n\t\tsetControl(container);\r\n\r\n\t\tLabel lblAgentName = new Label(container, SWT.NONE);\r\n\t\tlblAgentName.setBounds(102, 54, 177, 13);\r\n\t\tlblAgentName.setText(\"Please enter the ZIP filename :\");\r\n\r\n\t\tfileText = new Text(container, SWT.BORDER);\r\n\t\tfileText.setText(\"C:\\\\Documents and Settings\\\\jlouis\\\\My Documents\\\\Downloads\\\\apache_net.zip\");\r\n\t\tfileText.setBounds(102, 75, 289, 19);\r\n\r\n\t\tButton btnBrowse = new Button(container, SWT.NONE);\r\n\t\tbtnBrowse.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\r\n\t\t\t\tFileDialog fileDialog = new FileDialog(getShell());\r\n\t\t\t\tfileDialog.setFilterPath(System.getProperty(\"user.home\"));\r\n\t\t\t\tfileDialog.setText(\"Please select a zip file and click OK\");\r\n\r\n\t\t\t\tString filename = fileDialog.open();\r\n\t\t\t\tif (filename != null) {\r\n\t\t\t\t\tfileText.setText(filename);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnBrowse.setBounds(102, 100, 68, 23);\r\n\t\tbtnBrowse.setText(\"Browse\");\r\n\t}", "protected Control createContents(Composite parent) {\n\t\tgetOverlayStore().load();\r\n\t\tgetOverlayStore().start();\r\n Composite composite = createContainer(parent);\r\n \r\n // The layout info for the preference page\r\n GridLayout gridLayout = new GridLayout();\r\n gridLayout.marginHeight = 0;\r\n gridLayout.marginWidth = 0;\r\n composite.setLayout(gridLayout);\r\n \r\n // A panel for the preference page\r\n Composite defPanel = new Composite(composite, SWT.NONE);\r\n GridLayout layout = new GridLayout();\r\n int numColumns = 2;\r\n layout.numColumns = numColumns;\r\n defPanel.setLayout(layout);\r\n GridData gridData =\r\n new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);\r\n defPanel.setLayoutData(gridData);\r\n \r\n\r\n // Browser options\r\n\t\tGroup wrappingGroup= createGroup(numColumns, defPanel, \"Web Browser\");\r\n\t\tString labelText= \"Use tabbed browsing\";\r\n\t\tlabelText= \"Used tabbed browsing\";\r\n\t\taddCheckBox(wrappingGroup, labelText, CFMLPreferenceConstants.P_TABBED_BROWSER, 1);\r\n \r\n // File paths\r\n createFilePathGroup(defPanel);\r\n \r\n // Images tooltips\r\n\t\tGroup imageGroup= createGroup(numColumns, defPanel, \"Images\");\r\n\t\tlabelText= \"Show Image Tooltips (restart required)\";\r\n\t\taddCheckBox(imageGroup, labelText, CFMLPreferenceConstants.P_IMAGE_TOOLTIPS, 1);\r\n \t\t\r\n\t\t// default help url\r\n\t\tGroup helpGroup= createGroup(numColumns, defPanel, \"External Help Documentation\");\r\n\t\tlabelText= \"Default URL:\";\r\n\t\taddTextField(helpGroup, labelText, CFMLPreferenceConstants.P_DEFAULT_HELP_URL, 50, 0, null);\r\n\t\tlabelText= \"Use external broswer\";\r\n\t\taddCheckBox(helpGroup, labelText, CFMLPreferenceConstants.P_HELP_URL_USE_EXTERNAL_BROWSER, 1);\r\n \r\n // Template Sites\r\n \r\n // createTemplateSitesPathGroup(defPanel);\r\n\r\n\t\tinitializeFields();\r\n\t\tapplyDialogFont(defPanel);\r\n\r\n\t\treturn composite;\r\n }", "protected Control createDialogArea(Composite parent) {\n\t\t//Composite composite = (Composite) super.createDialogArea(parent);\n\t\tComposite composite = new Composite(parent, SWT.NULL);\n\t\t\n\t\tGridLayout layout = new GridLayout(5, false);\n\t\tlayout.marginWidth = 15;\n\t\tlayout.marginHeight = 10;\n\t\tlayout.verticalSpacing = 8;\n\t\tcomposite.setLayout(layout);\n\t\t\n\t\tLabel l;\n\t\tGridData gridData;\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Fecha:\");\n\t\ttxtFecha = new Text(composite, SWT.BORDER);\n\t\tgridData = new GridData(60,15);\n\t\ttxtFecha.setLayoutData(gridData);\n\t\t//txtFecha.addKeyListener(this.crearKeyAdapter(txtFecha)); // calendar ya incluye esto\n\t\t\n\t\tbFecha = new Button(composite, SWT.NONE);\n\t\tgridData = new GridData(16,16);\n\t\t//gridData.horizontalSpan = 2;\n\t\tbFecha.setLayoutData(gridData);\n\t\timage = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, IImageKeys.CALENDARIO);\n\t\tbFecha.setImage(image.createImage());\n\t\tbFecha.addSelectionListener(this.crearCalendario(shell, txtFecha));\n\n\t\tfinal Label labelNoches = new Label(composite, SWT.NONE);\n\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\n\t\tComposite compQty = new Composite(composite, SWT.NONE);\n\t\tlayout = new GridLayout(3, false);\n\t\tlayout.marginWidth = 0;\n\t\tcompQty.setLayout(layout);\n\t\t\n\t\ttxtCantidad = new Text(compQty, SWT.BORDER);\n\t\tgridData = new GridData(25,15);\n\t\ttxtCantidad.setLayoutData(gridData);\n\t\t\n\t\tfinal Label labelEspacios = new Label(compQty, SWT.NONE);\n\t\tlabelEspacios.setText(\"PAX(s):\");\n\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\tgridData = new GridData(45, 15);\n\t\tgridData.horizontalIndent = 10;\n\t\tlabelEspacios.setLayoutData(gridData);\n\t\ttxtEspacios = new Text(compQty, SWT.BORDER);\n\t\ttxtEspacios.setLayoutData(new GridData(25,15));\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Tipo:\");\n\t\tcomboTipo = new Combo(composite, SWT.READ_ONLY);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 120;\n\t\tgridData.horizontalSpan = 2;\n\t\tcomboTipo.setLayoutData(gridData);\n\t\tcdTipoProductos = cdController.getComboDataTipoProductos();\n\t\tcomboTipo.setItems(cdTipoProductos.getTexto());\n\t\tcomboTipo.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint indice = comboTipo.getSelectionIndex();\n\t\t\t\tif (indice != -1) {\n\t\t\t\t\tLong seleccionado = cdTipoProductos.getKeyAsLongByIndex(indice);\n\t\t\t\t\tproductos.filtrarByTipo(seleccionado, true); // eliminamos cualquier filtro previo\n\t\t\t\t}\n\t\t\t\tcomboProducto.setItems(productos.getTexto());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Actividad:\");\n\t\tcomboProducto = new Combo(composite, SWT.READ_ONLY);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 150;\n\t\tcomboProducto.setLayoutData(gridData);\n\t\t/*\n\t\tcomboProducto.addSelectionListener(new SelectionListener() {\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"widgetDefSel: \" + comboProducto.getText());\n\t\t\t}\n\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"widgetSelected: \" + comboProducto.getText());\t\n\t\t\t}\n\t\t});\n\t\tcomboProducto.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tSystem.out.println(\"modifyText: \" + comboProducto.getText());\t\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tcomboProducto.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tif (!comboProducto.getText().equals(\"\")) {\n\t\t\t\t\tLong idProducto = productos.getIdProductoByName(comboProducto.getText());\n\t\t\t\t\tProducto p = productos.getProductoByIdProducto(idProducto);\n\t\t\t\t\tString tipoReserva = p.getTipoReserva();\n\t\t\t\t\tisRecursoAEP = p.isHotelAEP();\n\t\t\t\t\tisModificable = p.isModificable();\n\t\t\t\t\tprecioMinimo = p.getPrecioMinimo();\n\t\t\t\t\tSystem.out.println(\"Minimo: \" + precioMinimo);\n\t\t\t\t\tif (tipoReserva.equals(\"Hotel\") || tipoReserva.equals(\"Hospedaje\")) {\n\t\t\t\t\t\tlabelNoches.setText(\"Noche(s):\");\n\t\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\t\tlabelEspacios.setText(\"Room(s):\");\n\t\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\t\tlabelEspacios.setText(\"PAX(s):\");\n\t\t\t\t\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t\t}\n\t\t\t\t\tlistaTipoPrecio.setEnabled(true);\n\t\t\t\t\tlistaTipoPrecio.deselectAll();\n\t\t\t\t\ttxtPrecio.setText(\"\");\n\t\t\t\t\ttxtPrecio.setEditable(isModificable == null ? false : isModificable.booleanValue());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\tcomboProducto.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint idProducto = productos.getIdProductoByName(comboProducto.getText());\n\t\t\t\tProducto p = productos.getProductoByIdProducto(idProducto);\n\t\t\t\tString tipoReserva = p.getTipoReserva();\n\t\t\t\tif (tipoReserva.equals(\"Hotel\") || tipoReserva.equals(\"Hospedaje\")) {\n\t\t\t\t\tlabelNoches.setText(\"Noche(s):\");\n\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\tlabelEspacios.setText(\"Room(s):\");\n\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t} else {\n\t\t\t\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\tlabelEspacios.setText(\"PAXs:\");\n\t\t\t\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t}\n\t\t\t\tlistaTipoPrecio.setEnabled(true);\n\t\t\t\tlistaTipoPrecio.deselectAll();\n\t\t\t\ttxtPrecio.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Tipo de precio:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 75;\n\t\tgridData.horizontalSpan = 2;\n\n\t\tlistaTipoPrecio = new List(composite, SWT.SINGLE | SWT.BORDER);\n\t\tlistaTipoPrecio.setLayoutData(gridData);\n\t\tlistaTipoPrecio.setItems(new String[] {\"Comisionable\", \"Operador\", \"Público\"});\n\t\tlistaTipoPrecio.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tobtenerPrecio(listaTipoPrecio.getSelection()[0]);\n\t\t\t}\n\t\t});\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Precio:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\t\n\t\tComposite compPrecio = new Composite(composite, SWT.NONE);\n\t\tlayout = new GridLayout(3, false);\n\t\tlayout.marginWidth = 0;\n\t\tlayout.marginHeight = 0;\n\t\tcompPrecio.setLayout(layout);\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tcompPrecio.setLayoutData(gridData);\n\t\t\n\t\ttxtPrecio = new Text(compPrecio, SWT.BORDER);\n\t\ttxtPrecio.setEditable(false);\n\t\tgridData = new GridData(50,15);\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\ttxtPrecio.setLayoutData(gridData);\n\n\t\tButton bCuadrar = new Button(compPrecio, SWT.PUSH);\n\t\tgridData = new GridData(12,16);\n\t\tbCuadrar.setLayoutData(gridData);\n\t\timage = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, \"icons/cuadrar.gif\");\n\t\tbCuadrar.setImage(image.createImage());\n\t\tbCuadrar.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"Botón de cuadrar...\");\n\t\t\t\tcuadrarCotizacion();\n\t\t\t}\n\t\t});\t\n\t\t\n\t\tbVisible = new Button(compPrecio, SWT.CHECK);\n\t\tbVisible.setText(\"Visible\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalIndent = 15;\n\t\tbVisible.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Comentarios:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\ttxtComentario = new Text(composite, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP);\n\t\tgridData = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgridData.horizontalSpan = 4;\n\t\tgridData.heightHint = 40;\n\t\ttxtComentario.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Un \\\"*\\\" al inicio del comentario mostrará el mismo en el PDF de la cotización.\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalSpan = 4;\n\t\tl.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\t\n\t\tl = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t gridData = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgridData.heightHint = 10;\n\t\tgridData.horizontalSpan = 5;\n\t\tl.setLayoutData(gridData);\n\n\t\tllenarCampos();\n\t\t\n\t\treturn composite;\n\t}", "public void createTreeViewerComposite(Composite parent) {\n\t\tparent.setLayout(new GridLayout(1, false));\n\t\ttreeViewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\ttreeViewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));\n\t\ttreeViewer.setContentProvider(new TxDbContentProvider());\n\t\ttreeViewer.setLabelProvider(new TxDbLabelProvider());\n\t\ttreeViewer.setUseHashlookup(true);\n\t\ttreeViewer.setAutoExpandLevel(2);\n\t\ttreeViewer.addSelectionChangedListener(new ISelectionChangedListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\n\t\t\t\tISelection selection=event.getSelection();\n\t\t\t\tif( selection instanceof IStructuredSelection) {\n\t\t\t\t\tObject object= ((IStructuredSelection)selection).getFirstElement();\t\t\t\n\t\t\t\t\tif(object instanceof IHierNode&& ((IHierNode)object).getChildNodes().size()!=0){\n\t\t\t\t\t\ttxTableViewer.setInput(object);\n\t\t\t\t\t\tupdateButtons();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "protected Container createContainer() {\n\treturn new EditorContainer();\n }", "protected SourceViewer createViewer(Composite parent) {\n \t\tSourceViewer viewer= new SourceViewer(parent, null, null, false, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\n \t\tSourceViewerConfiguration configuration= new SourceViewerConfiguration();\n \t\tviewer.configure(configuration);\n \t\tIDocument document= new Document();\n \t\tviewer.setDocument(document);\n \t\treturn viewer;\n \t}", "public TriStateCellEditor(Composite parent) {\n\t\tthis(parent, defaultStyle);\n\t}", "SourceControl create();", "@Override\r\n\tpublic void createControl(Composite parent) {\n\t\tinitializeDialogUnits(parent);\r\n\r\n\t\tint sectionStyle = Section.TITLE_BAR | Section.CLIENT_INDENT\r\n\t\t\t\t| Section.EXPANDED;\r\n\t\tSection section = toolkit.createSection(parent, sectionStyle);\r\n\t\tsection.setText(\"Bind all parameters to values\");\r\n\t\tsection.setLayout(new GridLayout());\r\n\t\tComposite comp = toolkit.createComposite(section);\r\n\t\tcomp.setLayout(new GridLayout(2, false));\r\n\r\n\t\tcomp.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL\r\n\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL));\r\n\t\tsection.setClient(comp);\r\n\t\tselectionLabel = toolkit.createLabel(comp, \"\");\r\n\t\tGridData gridData = new GridData(GridData.VERTICAL_ALIGN_FILL\r\n\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);\r\n\t\tgridData.horizontalSpan = 2;\r\n\t\tselectionLabel.setLayoutData(gridData);\r\n\r\n\t\tmainComp = comp;\r\n\t\t// PatternToProtocolExportWizard wizard =\r\n\t\t// (PatternToProtocolExportWizard) this\r\n\t\t// .getWizard();\r\n\t\t// assume there are not more than 10 parameters\r\n\t\tint max = 10;\r\n\t\t/*\r\n\t\t * for(CoordinationPattern pattern : wizard.getPatternList()) { int\r\n\t\t * parametersize = pattern.getPatternParameters().size();\r\n\t\t * if(parametersize > max) { max = parametersize; } }\r\n\t\t */\r\n\r\n\t\tif (max > Integer.MIN_VALUE) {\r\n\t\t\tfor (int i = 0; i < max; i++) {\r\n\t\t\t\tLabel l = toolkit.createLabel(mainComp, \"\");\r\n\t\t\t\tl.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL\r\n\t\t\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL\r\n\t\t\t\t\t\t| GridData.GRAB_HORIZONTAL));\r\n\t\t\t\tText t = toolkit.createText(mainComp, \"\");\r\n\r\n\t\t\t\tt.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL\r\n\t\t\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL\r\n\t\t\t\t\t\t| GridData.GRAB_HORIZONTAL));\r\n\t\t\t\tl.setVisible(true);\r\n\t\t\t\tt.setVisible(true);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tthis.setControl(section);\r\n\r\n\t}", "public Control getControl()\n {\n return composite;\n }", "protected void postConstruct(final Composite parent) {\n\t\t// create viewer and canvas only after toolkit has been initialized\n\t\tfxCanvas = createCanvas(parent);\n\n\t\t// // hook viewer controls and selection forwarder\n\t\t// hookViewers();\n\t\t//\n\t\t// // activate domain\n\t\t// activate();\n\t}", "protected void createTypeSpecificEditors(Composite parent) throws CoreException {\r\n\t\tBPLineBreakpoint breakpoint= (BPLineBreakpoint) getBreakpoint();\r\n\t\tif (breakpoint.supportsCondition()) {\r\n\t\t\tcreateConditionEditor(parent);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void createPartControl(Composite parent) {\n\t\ttoolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\r\n\t\t/*\r\n\t\t * Create a scrolled form widget, \r\n\t\t */\r\n\t\tscrolledForm = toolkit.createScrolledForm(parent);\r\n\t\tscrolledForm.setFont(new Font(null,\"Times\",18,SWT.BOLD|SWT.ITALIC));\r\n\t\tscrolledForm.setText(\"Simulation Results\");\r\n\t\tscrolledForm.setImage(JQuantPlugin.getImageDescriptor(\"money.png\").createImage());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Make a nice gradient\r\n\t\t */\r\n\t\ttoolkit.decorateFormHeading(scrolledForm.getForm());\r\n\t\t\r\n\t\treadSimulationResults();\r\n\t\tbuildStatSection();\r\n\t\tif(results != null)\r\n\t\t\trefreshSimulationStatistics();\r\n\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void createPartControl(final Composite parent) {\r\n\t\t// Create the parent component\r\n\t\ttoolkit = new FormToolkit(Display.getDefault());\r\n\t\tform = toolkit.createForm(parent);\r\n\t\tform.setText(\"Vormerkungen\");\r\n\t\ttoolkit.decorateFormHeading(form);\r\n\r\n\t\tfinal Composite composite = form.getBody();\r\n\t\tcomposite.setLayout(new FillLayout());\r\n\r\n\t\tSashForm sash_prebooking = new SashForm(composite, SWT.HORIZONTAL);\r\n\r\n\t\t// groups-----------------------------------\r\n\t\tfinal SashForm sashForm_8 = new SashForm(sash_prebooking, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungBruckGroup = new Group(sashForm_8, SWT.NONE);\r\n\t\trichtungBruckGroup.setLayout(new FillLayout());\r\n\t\trichtungBruckGroup.setForeground(CustomColors.COLOR_RED);\r\n\t\trichtungBruckGroup.setText(\"Richtung Bruck\");\r\n\r\n\t\tfinal SashForm sashForm_7 = new SashForm(sashForm_8, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungKapfenbergGroup = new Group(sashForm_7, SWT.NONE);\r\n\t\trichtungKapfenbergGroup.setLayout(new FillLayout());\r\n\t\trichtungKapfenbergGroup.setText(\"Richtung Kapfenberg\");\r\n\r\n\t\tfinal Group richtungMariazellGroup = new Group(sashForm_7, SWT.NONE);\r\n\t\trichtungMariazellGroup.setLayout(new FillLayout());\r\n\t\trichtungMariazellGroup.setText(\"Richtung Mariazell\");\r\n\r\n\t\t// ----------------------------------------------\r\n\t\tfinal SashForm sashForm_9 = new SashForm(sash_prebooking, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungGrazGroup = new Group(sashForm_9, SWT.NONE);\r\n\t\trichtungGrazGroup.setLayout(new FillLayout());\r\n\t\trichtungGrazGroup.setText(\"Richtung Graz\");\r\n\r\n\t\tfinal SashForm sashForm_1 = new SashForm(sashForm_9, SWT.VERTICAL);\r\n\r\n\t\tfinal Group richtungLeobenGroup = new Group(sashForm_1, SWT.NONE);\r\n\t\trichtungLeobenGroup.setLayout(new FillLayout());\r\n\t\trichtungLeobenGroup.setText(\"Richtung Leoben\");\r\n\r\n\t\tfinal Group richtungWienGroup = new Group(sashForm_1, SWT.NONE);\r\n\t\trichtungWienGroup.setLayout(new FillLayout());\r\n\t\trichtungWienGroup.setText(\"Richtung Wien\");\r\n\r\n\t\t// viewers\r\n\t\tviewerLeoben = createTableViewer(richtungLeobenGroup);\r\n\t\tviewerGraz = createTableViewer(richtungGrazGroup);\r\n\t\tviewerKapfenberg = createTableViewer(richtungKapfenbergGroup);\r\n\t\tviewerBruck = createTableViewer(richtungBruckGroup);\r\n\t\tviewerWien = createTableViewer(richtungWienGroup);\r\n\t\tviewerMariazell = createTableViewer(richtungMariazellGroup);\r\n\r\n\t\t// create the tooltip\r\n\t\ttooltipLeoben = new JournalViewTooltip(viewerLeoben.getControl());\r\n\t\ttooltipGraz = new JournalViewTooltip(viewerGraz.getControl());\r\n\t\ttooltipKapfenberg = new JournalViewTooltip(viewerKapfenberg.getControl());\r\n\t\ttooltipBruck = new JournalViewTooltip(viewerBruck.getControl());\r\n\t\ttooltipWien = new JournalViewTooltip(viewerWien.getControl());\r\n\t\ttooltipMariazell = new JournalViewTooltip(viewerMariazell.getControl());\r\n\r\n\t\t// show the tool tip when the selection has changed\r\n\t\tviewerLeoben.addSelectionChangedListener(createTooltipListener(viewerLeoben, tooltipLeoben));\r\n\t\tviewerGraz.addSelectionChangedListener(createTooltipListener(viewerGraz, tooltipGraz));\r\n\t\tviewerKapfenberg.addSelectionChangedListener(createTooltipListener(viewerKapfenberg, tooltipKapfenberg));\r\n\t\tviewerBruck.addSelectionChangedListener(createTooltipListener(viewerBruck, tooltipBruck));\r\n\t\tviewerWien.addSelectionChangedListener(createTooltipListener(viewerWien, tooltipWien));\r\n\t\tviewerMariazell.addSelectionChangedListener(createTooltipListener(viewerMariazell, tooltipMariazell));\r\n\r\n\t\t// sort the table by default\r\n\t\tviewerLeoben.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerGraz.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerKapfenberg.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerBruck.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerWien.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\t\tviewerMariazell.setSorter(new TransportSorter(TransportSorter.ABF_SORTER, SWT.DOWN));\r\n\r\n\t\tmakeActionsBruck(viewerBruck);\r\n\t\tmakeActionsKapfenberg(viewerKapfenberg);\r\n\t\tmakeActionsLeoben(viewerLeoben);\r\n\t\tmakeActionsMariazell(viewerMariazell);\r\n\t\tmakeActionsGraz(viewerGraz);\r\n\t\tmakeActionsWien(viewerWien);\r\n\r\n\t\thookContextMenuLeoben(viewerLeoben);\r\n\t\thookContextMenuGraz(viewerGraz);\r\n\t\thookContextMenuWien(viewerWien);\r\n\t\thookContextMenuMariazell(viewerMariazell);\r\n\t\thookContextMenuBruck(viewerBruck);\r\n\t\thookContextMenuKapfenberg(viewerKapfenberg);\r\n\r\n\t\t// add the form actions\r\n\t\tcreateToolBarActions();\r\n\r\n\t\t// apply the filters\r\n\t\tapplyFilters();\r\n\r\n\t\t// register listeners to keep in track\r\n\t\tNetWrapper.registerListener(this, Transport.class);\r\n\t\tUiWrapper.getDefault().registerListener(this);\r\n\r\n\t\t// initialize the view with current data\r\n\t\tinitView();\r\n\t}", "public ColorCellEditor(Canvas canvas, JPanel parent) {\n this.canvas = canvas;\n this.parent = parent;\n \n colorEditButton = new JButton();\n colorEditButton.setActionCommand(EDIT);\n colorEditButton.addActionListener(this);\n colorEditButton.setBorderPainted(false);\n \n colorChooser = new JColorChooser();\n \n colorChooserPanel = new ColorChooserPanel(this);\n colorChooserPanel.setLocation(canvas.getWidth() / 2 - colorChooserPanel.getWidth()\n / 2, canvas.getHeight() / 2 - colorChooserPanel.getHeight() / 2);\n }", "@Override\n\tpublic void createControl(Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NULL);\n\n\t\tsetControl(container);\n\n\t\tString username = \"\";\n\t\tString password = \"\";\n\t\ttry {\n\t\t\tString[] array = window.ds.getURI().getUserInfo().split(\":\");\n\t\t\tusername = array[0];\n\t\t\tpassword = array[1];\n\t\t} catch (Exception e) {\n\t\t}\n\n\t\tLabel lblUsername = new Label(container, SWT.NONE);\n\t\tlblUsername.setBounds(10, 52, 75, 13);\n\t\tlblUsername.setText(\"Username\");\n\n\t\tusernameText = new Text(container, SWT.BORDER);\n\t\tusernameText.setText(username);\n\t\tusernameText.addModifyListener(new ModifyListener() {\n\t\t\t@Override\n\t\t\tpublic void modifyText(ModifyEvent arg0) {\n\t\t\t\tgetWizard().getContainer().updateButtons();\n\t\t\t}\n\t\t});\n\n\t\tusernameText.setBounds(10, 71, 187, 19);\n\t\tusernameText.setFocus();\n\n\t\tLabel lblPassword = new Label(container, SWT.NONE);\n\t\tlblPassword.setBounds(10, 96, 75, 13);\n\t\tlblPassword.setText(\"Password\");\n\n\t\tpasswordText = new Text(container, SWT.BORDER | SWT.PASSWORD);\n\t\tpasswordText.setText(password);\n\t\tpasswordText.addModifyListener(new ModifyListener() {\n\t\t\t@Override\n\t\t\tpublic void modifyText(ModifyEvent arg0) {\n\t\t\t\tgetWizard().getContainer().updateButtons();\n\t\t\t}\n\t\t});\n\n\t\tpasswordText.setBounds(10, 115, 187, 19);\n\t\tControl[] list = null;\n\t\t\n\t\tif (window.ds.usesComponent(IUserCreation.class)) {\n\t\t\tbtnCreateAnNew = new Button(container, SWT.NONE);\n\t\t\tbtnCreateAnNew.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tLOG.info(\"Create an account\");\n\t\t\t\t\tSignInWithAuthenticationWizard wizard = (SignInWithAuthenticationWizard) getWizard();\n\t\t\t\t\twizard.getWizardDialog().close();\n\t\t\t\t\twindow.newUserAction.run();\n\t\t\t\t\tLOG.info(\"Create an account 2\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tbtnCreateAnNew.setBounds(10, 10, 152, 25);\n\t\t\tbtnCreateAnNew.setText(\"Create a new account\");\n\t\t\tlist = new Control[] { btnCreateAnNew, usernameText,\n\t\t\t\t\tpasswordText };\n\t\t\tcontainer.setTabList(list);\n\t\t} else {\n\t\t\tlist = new Control[] { usernameText,\n\t\t\t\t\tpasswordText };\n\t\t\tcontainer.setTabList(list);\n\t\t}\n\n\t\t\n\t\t\n\t}", "private FormatComposite buildFormatComposite(Composite parent,\n ODOMElement element,\n FormatComposite root) {\n\n FormatComposite formatComposite = null;\n\n FormatType formatType =\n FormatType.getFormatTypeForElementName(element.getName());\n\n // formatType will be null if the element is something that supports\n // formats rather than being an actual format e.g. gridFormatColumns\n // In this case there is nothing to build.\n if (formatType != null) {\n formatComposite = new FormatComposite(\n parent,\n element,\n root,\n contextMenuGeneratingListener);\n\n\n // If there are children of this newly created FormatComposite then\n // the FormatComposite is the parent.\n parent = formatComposite;\n\n if (root == null) {\n // The FormatComposite just created must be the root.\n root = formatComposite;\n }\n\n new FormatCompositeModifier(formatComposite, this);\n\n formatComposite.pack();\n\n supportDND(formatComposite);\n }\n\n Iterator childIterator = element.getChildren().iterator();\n while (childIterator.hasNext()) {\n ODOMElement child = (ODOMElement) childIterator.next();\n FormatComposite childFC =\n buildFormatComposite(parent, child, root);\n if (childFC != null) {\n GridData data = new GridData(GridData.FILL_BOTH);\n childFC.setLayoutData(data);\n }\n }\n\n // If the FormatComposite is a FormatComposite that represents a\n // grid then its text must updated because of the children\n // that have just been added. There appears to be no way for the\n // parent to detect that a child Control has just been added -\n // Control.java inconveniently sets its parent variable directly\n // instead of calling setParent(). So the FormatComposite text is\n // updated here.\n if (formatComposite != null &&\n formatComposite.getFormatType().getStructure() ==\n FormatType.Structure.GRID) {\n formatComposite.setText(formatComposite.getLocalizedText());\n }\n\n return formatComposite;\n }", "public static int newControl(int parentControlHandle, int pos, short init, short min, short max, short procID) {\n\t\tint controlHandle;\n\t\tif (HIVIEW) {\n\t\t\tcontrolHandle= OS.NewControl(0, false, init, min, max, procID);\n\t\t\tinsertControl(controlHandle, parentControlHandle, pos);\n\t\t\tOS.HIViewSetVisible(controlHandle, true);\n\t\t\tOS.HIViewSetNeedsDisplay(controlHandle, true);\n\t\t} else {\n\t\t\tint windowHandle= OS.GetControlOwner(parentControlHandle);\n\t\t\tcontrolHandle= OS.NewControl(windowHandle, false, init, min, max, procID);\n\t\t\tinsertControl(controlHandle, parentControlHandle, pos);\n\t\t\tinitLocation(controlHandle);\n\t\t\tOS.HIViewSetVisible(controlHandle, true);\n\t\t}\n\n\t\treturn controlHandle;\n\t}", "protected Control createContents(Composite parent) {\r\n\t\t// Create the composite to hold the controls\r\n\t\tComposite composite = new Composite(parent, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(1, false));\r\n\r\n\t\t// Create the combo to hold the team names\r\n\r\n\t\t// Create the table viewer to display the players\r\n\t\ttv = new TableViewer(composite, SWT.FULL_SELECTION);\r\n\r\n\t\t// Set the content and label providers\r\n\t\ttv.setContentProvider(new MyContentProvider(properties));\r\n\t\ttv.setLabelProvider(new MyLabelProvider());\r\n\r\n\t\t// Set up the table\r\n\t\tTable table = tv.getTable();\r\n\t\ttable.setLayoutData(new GridData(GridData.FILL_BOTH));\r\n\r\n\t\t// Add the first name column\r\n\t\tTableColumn column = new TableColumn(table, SWT.LEFT);\r\n\t\tcolumn.setWidth(150);\r\n\t\tcolumn.setText(\"Nombre\");\r\n\r\n\t\t// Add the last name column\r\n\t\tcolumn = new TableColumn(table, SWT.LEFT);\r\n\t\tcolumn.setWidth(150);\r\n\t\tcolumn.setText(\"Valor\");\r\n\r\n\t\t// Pack the columns\r\n//\t\tfor (int i = 0, n = table.getColumnCount(); i < n; i++) {\r\n//\t\t\ttable.getColumn(i).pack();\r\n//\t\t}\r\n\r\n\t\t// Turn on the header and the lines\r\n\t\ttv.setInput(\"root\");\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setLinesVisible(true);\r\n\r\n\t\tIProgressMonitor monitor = this.getStatusLineManager().getProgressMonitor();\r\n\t\tJobUtils.execAsync(controller, new AnnotatedCallbackResolver(this, \"update\"), monitor).getProperties();\r\n\r\n\t\treturn composite;\r\n\t}", "@Override\n\tprotected Control createContents(Composite arg0) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic CellEditor createPropertyEditor(Composite parent) {\n\t\tMenuCellEditor editor = new MenuCellEditor(parent);\r\n\t\teditor.setListenerModel(flistenermodel);\r\n if (getValidator() != null) {\r\n\t\t\teditor.setValidator(getValidator());\r\n\t\t}\t\t\r\n\t\t return editor;\r\n\t}", "@Override\n\tprotected Control createControl(final Composite parent) {\n\t\tdisplay = parent.getDisplay();\n\t\tfinal FontData fontData = parent.getFont().getFontData()[0];\n\t\tfontData.setHeight(14);\n\t\tfontData.setStyle(1);\n\t\tfont = new Font(display, fontData);\n\t\tbackground = new Composite(parent, 0);\n\t\tbackground.setLayout(new FormLayout());\n\t\tuptimeLabel = new Label(background, 16777216);\n\t\tuptimeLabel.setFont(font);\n\t\tuptimeLabel.setText(\"Uptime: \");\n\t\tnew FormDataBuilder(0).left().top().bottom().right().width(200)\n\t\t\t\t.apply(uptimeLabel);\n\t\tfinal Thread thread = new Thread(this, new StringBuilder(\n\t\t\t\t\"Uptime Widget \").append(System.currentTimeMillis()).toString());\n\t\tthread.setDaemon(true);\n\t\tthread.start();\n\t\treturn background;\n\t}", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NONE);\n\t\t\n\t\tbtnNewButton = new Button(container, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(286, 513, 75, 30);\n\t\tbtnNewButton.setText(\"\\u9996\\u9875\");\n\t\t\n\t\tbutton = new Button(container, SWT.NONE);\n\t\tbutton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage--;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton.setText(\"\\u4E0A\\u4E00\\u9875\");\n\t\tbutton.setBounds(367, 513, 75, 30);\n\t\t\n\t\tbutton_1 = new Button(container, SWT.NONE);\n\t\tbutton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage = page.getPageCount();\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton_1.setText(\"\\u5C3E\\u9875\");\n\t\tbutton_1.setBounds(652, 513, 75, 30);\n\t\t\n\t\tbutton_2 = new Button(container, SWT.NONE);\n\t\tbutton_2.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage++;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton_2.setText(\"\\u4E0B\\u4E00\\u9875\");\n\t\tbutton_2.setBounds(571, 513, 75, 30);\n\t\t\n\t\ttext = new Text(container, SWT.BORDER);\n\t\ttext.setText(\"\"+currentPage);\n\t\ttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\ttext.setBounds(445, 515, 32, 26);\n\t\t\n\t\tLabel label = new Label(container, SWT.NONE);\n\t\tlabel.setText(\"/\");\n\t\tlabel.setBounds(483, 518, 6, 20);\n\t\t\n\t\tlabel_1 = new Label(container, SWT.NONE);\n\t\tlabel_1.setText(\"2\");\n\t\tlabel_1.setBounds(495, 518, 22, 20);\n\t\t\n\t\tButton button_3 = new Button(container, SWT.NONE);\n\t\tbutton_3.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tint want = Integer.parseInt(text.getText());\n\t\t\t\tif(want<1){\n\t\t\t\t\twant = 1;\n\t\t\t\t}else if(want>page.getCurrentPage()){\n\t\t\t\t\twant = page.getPageCount();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentPage = want;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton_3.setText(\"->\");\n\t\tbutton_3.setBounds(527, 513, 32, 30);\n\t\t\n\t\ttext_1 = new Text(container, SWT.BORDER);\n\t\ttext_1.setBounds(286, 134, 73, 26);\n\t\t\n\t\tButton btnNewButton_1 = new Button(container, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tname = text_1.getText();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(367, 134, 55, 30);\n\t\tbtnNewButton_1.setText(\"\\u67E5\\u627E\");\n\t\t\n\t\ttabFolder = new TabFolder(container, SWT.NONE);\n\t\ttabFolder.setBounds(281, 184, 456, 323);\n\t\t\n\t\ttabItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttabItem_2.setText(\"\\u672A\\u8BCA\\u65AD\");\n\t\t\n\t\ttable_2 = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable_2.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.CLOSE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_2.getItem(table_2.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdb.update(\"update register set state = 2 where name = '\"+register.getName()+\"'\");\n\t\t\t\tregister.setState(\"诊断中\");\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\ttable_2.setLinesVisible(true);\n\t\ttable_2.setHeaderVisible(true);\n\t\ttabItem_2.setControl(table_2);\n\t\t\n\t\tTableColumn tableColumn_4 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_4.setWidth(100);\n\t\ttableColumn_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tTableColumn tableColumn_5 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_5.setWidth(115);\n\t\ttableColumn_5.setText(\"\\u7ECF\\u529E\\u4EBA\");\n\t\t\n\t\tTableColumn tableColumn_6 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_6.setWidth(118);\n\t\ttableColumn_6.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tTableColumn tableColumn_7 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_7.setWidth(108);\n\t\ttableColumn_7.setText(\"\\u4EF7\\u683C\");\n\t\t\n\t\tMenu menu_2 = new Menu(table_2);\n\t\ttable_2.setMenu(menu_2);\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.NONE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_2.getItem(table_2.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"无\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t}\n\t\t});\n\t\tmenuItem_4.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tname = table_2.getItem(table_2.getSelectionIndex()).getText(0);\n\t\t\t\tWarning_1 warning = new Warning_1(new Shell(), SWT.NONE);\n\t\t\t\twarning.open();\n\t\t\t\tif(warning.isResult())\n\t\t\t\t\tif(db.update(\"delete from register where name = '\"+name+\"'\")!=0){\n\t\t\t\t\t\tOpenBox.Open(\"操作成功\");\n\t\t\t\t\t\tcurrentPage = 1;\n\t\t\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tOpenBox.Open(\"操作失败\");\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tmenuItem_5.setText(\"\\u5220\\u9664\");\n\t\t\n\t\ttabItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttabItem_1.setText(\"\\u8BCA\\u65AD\\u4E2D\");\n\t\t\n\t\ttable_1 = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.CLOSE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_1.getItem(table_1.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdb.update(\"update register set state = 2 where name = '\"+register.getName()+\"'\");\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\ttable_1.setLinesVisible(true);\n\t\ttable_1.setHeaderVisible(true);\n\t\ttabItem_1.setControl(table_1);\n\t\t\n\t\tTableColumn tableColumn = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn.setWidth(100);\n\t\ttableColumn.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tTableColumn tableColumn_1 = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn_1.setWidth(115);\n\t\ttableColumn_1.setText(\"\\u7ECF\\u529E\\u4EBA\");\n\t\t\n\t\tTableColumn tableColumn_2 = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn_2.setWidth(118);\n\t\ttableColumn_2.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tTableColumn tableColumn_3 = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn_3.setWidth(108);\n\t\ttableColumn_3.setText(\"\\u4EF7\\u683C\");\n\t\t\n\t\tMenu menu_1 = new Menu(table_1);\n\t\ttable_1.setMenu(menu_1);\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.CLOSE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_1.getItem(table_1.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"无\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tmenuItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tname = table_1.getItem(table_1.getSelectionIndex()).getText(0);\n\t\t\t\tWarning_1 warning = new Warning_1(new Shell(), SWT.CLOSE);\n\t\t\t\twarning.open();\n\t\t\t\tif(warning.isResult())\n\t\t\t\t\tif(db.update(\"delete from register where name = '\"+name+\"'\")!=0){\n\t\t\t\t\t\tOpenBox.Open(\"操作成功\");\n\t\t\t\t\t\tcurrentPage = 1;\n\t\t\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tOpenBox.Open(\"操作失败\");\n\t\t\t}\n\t\t});\n\t\tmenuItem_3.setText(\"\\u5220\\u9664\");\n\t\t\n\t\ttabItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttabItem.setText(\"\\u5DF2\\u8BCA\\u65AD\");\n\t\t\n\t\ttable = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttabItem.setControl(table);\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.NONE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table.getItem(table.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setLinesVisible(true);\n\t\t\n\t\tTableColumn tblclmnNewColumn = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn.setWidth(100);\n\t\ttblclmnNewColumn.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tTableColumn tblclmnNewColumn_1 = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn_1.setWidth(115);\n\t\ttblclmnNewColumn_1.setText(\"\\u7ECF\\u529E\\u4EBA\");\n\t\t\n\t\tTableColumn tblclmnNewColumn_2 = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn_2.setText(\"\\u7C7B\\u578B\");\n\t\ttblclmnNewColumn_2.setWidth(118);\n\t\t\n\t\tTableColumn tblclmnNewColumn_3 = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn_3.setWidth(108);\n\t\ttblclmnNewColumn_3.setText(\"\\u4EF7\\u683C\");\n\t\t\n\t\tMenu menu = new Menu(table);\n\t\ttable.setMenu(menu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.NONE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table.getItem(table.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"无\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.NONE);\n\t\tmenuItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tname = table.getItem(table.getSelectionIndex()).getText(0);\n\t\t\t\tWarning_1 warning = new Warning_1(new Shell(), SWT.NONE);\n\t\t\t\twarning.open();\n\t\t\t\tif(warning.isResult())\n\t\t\t\t\tif(db.update(\"delete from register where name = '\"+name+\"'\")!=0){\n\t\t\t\t\t\tOpenBox.Open(\"操作成功\");\n\t\t\t\t\t\tcurrentPage = 1;\n\t\t\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tOpenBox.Open(\"操作失败\");\n\t\t\t}\n\t\t});\n\t\tmenuItem_1.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\n\t\tcreateActions();\n\t\tinitializeToolBar();\n\t\tinitializeMenu();\n\t}", "public ControlFrame(String string, WorkbenchControlFrame parent, WorkbenchManager mgr) {\n super(string);\n /* Set Parent Reference for Action Handlers */\n try {\n this.parent = (WorkbenchControlFrame) parent;\n } catch (ClassCastException e) {\n this.parent = null;\n }\n\n workbenchMgr = mgr;\n\n parent.setEnabled(false);\n }", "@Override\n public void createPartControl(Composite parent) {\n\n parent.setLayout(new GridLayout(1, false));\n // create textGp group. It contains text and textMode group\n textGp = new Group(parent, SWT.SHADOW_OUT);\n textGp.setLayout(new GridLayout());\n textGp.setText(\"Text Report\");\n GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);\n textGp.setLayoutData(data);\n\n\t\tcreateTextArea(textGp);\n\t\tcreateTextModeGp(textGp);\t\t\n\t\t\t\n // Create ConfigGp group. It contains dataTypegp, dataProductGp, time\n // cover group and state/stn group\n Group configGp = new Group(parent, SWT.SHADOW_ETCHED_OUT);\n configGp.setLayout(new GridLayout(3, false));\n \t\t\n\t\tcreateGpList(configGp);\n\t\t\n createProductList(configGp);\n \n createTimeCoverBtns(configGp);\n if (currentProductName != null)\n handleStnMarkingRequestByBtn();\n // createStaStnBtns(configGp);\n \n \t}", "@Override\r\n\tpublic void createPartControl(Composite parent) {\n\t\tthis.parent = parent;\r\n\t\tColor backgroundColor = Display.getCurrent().getSystemColor(SWT.COLOR_WHITE);\r\n\t\t\r\n\t\tGridLayout rl_parent = new GridLayout();\r\n\t\trl_parent.numColumns = 2;\r\n//\t\trl_parent.wrap = false;\r\n\t\tparent.setLayout(rl_parent);\r\n\t\t\r\n\t\tforwardBackComposite = new Composite(parent, SWT.NONE);\r\n\t\tGridData gd_forwardBackComposite = new GridData(917, 480);\r\n\t\tgd_forwardBackComposite.horizontalAlignment = SWT.FILL;\r\n\t\tgd_forwardBackComposite.verticalAlignment = SWT.FILL;\r\n\t\tgd_forwardBackComposite.grabExcessHorizontalSpace = true;\r\n\t\tgd_forwardBackComposite.grabExcessVerticalSpace = true;\r\n\t\tforwardBackComposite.setLayoutData(gd_forwardBackComposite);\r\n\t\tforwardBackComposite.setBackground(backgroundColor);\r\n\t\tGridLayout rl_forwardBackComposite = new GridLayout();\r\n//\t\trl_forwardBackComposite.wrap = false;\r\n\t\tforwardBackComposite.setLayout(rl_forwardBackComposite);\r\n\t\t\r\n\t\tComposite forwardBackTimelineComposite = new Composite(forwardBackComposite, SWT.NONE);\r\n\t\tGridData gd_forwardBackTimelineComposite = new GridData(541, -1);\r\n\t\tgd_forwardBackTimelineComposite.horizontalAlignment = SWT.FILL;\r\n\t\tgd_forwardBackTimelineComposite.verticalAlignment = SWT.TOP;\r\n\t\tforwardBackTimelineComposite.setLayoutData(gd_forwardBackTimelineComposite);\r\n\t\tforwardBackTimelineComposite.setBackground(backgroundColor);\r\n\t\tGridLayout gl_forwardBackTimelineComposite = new GridLayout();\r\n\t\tgl_forwardBackTimelineComposite.numColumns = 2;\r\n\t\tforwardBackTimelineComposite.setLayout(gl_forwardBackTimelineComposite);\r\n\t\t\r\n\t\ttimeCombo = new Combo(forwardBackTimelineComposite, SWT.READ_ONLY);\r\n\t\tGridData gd_timeCombo = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_timeCombo.widthHint = 86;\r\n\t\ttimeCombo.setLayoutData(gd_timeCombo);\r\n\t\ttimeCombo.setItems(TIME);\r\n\t\ttimeCombo.select(0);\r\n\t\ttimeCombo.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tANotificationBalloon.getInstance().showNotification();\r\n\t\t\t\tif (EditorsUI.getPreferenceStore().getBoolean(Preferences.CONNECT_TO_SERVER)) {\r\n\t\t\t\t\tString text = timeCombo.getText();\r\n\t\t\t\t\tString path = getCurrentProjectPath();\r\n\t\t\t\t\tnew Thread(()->{\r\n\t\t\t\t\t\treplayListener.updateTimeSpent(path, text);\r\n\t\t\t\t\t\tEHEventRecorder.getInstance().recordCommand(new ShowStatCommand(text));\r\n\t\t\t\t\t}).start();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tJOptionPane optionPane = new JOptionPane(NOT_CONNECTED, JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\tJDialog dialog = optionPane.createDialog(\"ERROR\");\r\n\t\t\t\t\tdialog.setAlwaysOnTop(true);\r\n\t\t\t\t\tdialog.setVisible(true);\r\n\t\t\t\t}\r\n//\t\t\t\tPlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\t\t\tpublic void run() {\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\tString text = timeCombo.getText();\r\n//\t\t\t\treplayListener.updateTimeSpent(text);\r\n//\t\t\t\tEHEventRecorder.getInstance().recordCommand(new ShowStatCommand(text));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n//\t\ttimer.schedule(new TimerTask() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tPlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\t\t\tpublic void run() {\r\n//\t\t\t\t\t\t//exception, may due to Eclipse versions\r\n//\t\t\t\t\t\ttry {\r\n//\t\t\t\t\t\t\treplayListener.updateTimeSpent(timeCombo.getText());\r\n//\t\t\t\t\t\t} catch (Exception e) {\r\n//\t\t\t\t\t\t\t// TODO: handle exception\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}, ONE_MIN, ONE_MIN);\r\n\t\t\r\n\t\ttimelbl = new Label(forwardBackTimelineComposite, SWT.NONE);\r\n\t\ttimelbl.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\ttabFolder2 = new TabFolder(forwardBackComposite, SWT.NONE);\r\n\t\tGridData gd_tabFolder2 = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\r\n\t\tgd_tabFolder2.heightHint = 287;\r\n\t\ttabFolder2.setLayoutData(gd_tabFolder2);\r\n\t\t\r\n\t\tcommandsTab = new TabItem(tabFolder2, SWT.NONE);\r\n\t\tcommandsTab.setText(\"Commands\");\r\n\t\t\r\n\t\tsc_1 = new ScrolledComposite(tabFolder2, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\r\n\t\tcommandsTab.setControl(sc_1);\r\n\t\tsc_1.setTouchEnabled(true);\r\n\t\tsc_1.setShowFocusedControl(true);\r\n\t\tsc_1.setAlwaysShowScrollBars(true);\r\n\t\tsc_1.setExpandHorizontal(true);\r\n\t\tsc_1.setExpandVertical(true);\r\n\t\tcommandLabel = new Label(sc_1, SWT.NONE);\r\n\t\tsc_1.setMinSize(new Point(5000, 5000));\r\n\t\tsc_1.setContent(commandLabel);\r\n\t\t\r\n\t\tmetricsTab = new TabItem(tabFolder2, SWT.NONE);\r\n\t\tmetricsTab.setText(\"Metrics\");\r\n\t\t\r\n\t\tsc = new ScrolledComposite(tabFolder2, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\r\n\t\tsc.setTouchEnabled(true);\r\n\t\tsc.setShowFocusedControl(true);\r\n\t\tsc.setExpandVertical(true);\r\n\t\tsc.setExpandHorizontal(true);\r\n\t\tsc.setAlwaysShowScrollBars(true);\r\n\t\tmetricsTab.setControl(sc);\r\n\t\t\r\n\t\tMetricTable = new Table(sc, SWT.NONE);\r\n\t\tMetricTable.setLinesVisible(true);\r\n\t\tMetricTable.setHeaderVisible(true);\r\n\t\t\r\n\t\tfillMetricHeaders();\r\n\t\t\r\n\t\tsc.setContent(MetricTable);\r\n\t\tsc.setMinSize(MetricTable.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\tsc.setMinSize(new Point(5000, 5000));\r\n\t\t\r\n\t\tComposite timelineComposite = new Composite(forwardBackComposite, SWT.NONE);\r\n\t\tGridData gd_timelineComposite = new GridData(SWT.FILL, SWT.BOTTOM, true, false, 1, 1);\r\n\t\tgd_timelineComposite.widthHint = 910;\r\n\t\ttimelineComposite.setLayoutData(gd_timelineComposite);\r\n\t\tGridLayout timelineLayout = new GridLayout(1, false);\r\n\t\ttimelineComposite.setLayout(timelineLayout);\r\n\t\t\r\n\t\tComposite composite = new Composite(timelineComposite, SWT.NONE);\r\n\t\tGridData gd_composite = new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1);\r\n\t\tgd_composite.widthHint = 1088;\r\n\t\tcomposite.setLayoutData(gd_composite);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\t\tLabel timelineLabel = new Label(composite, SWT.NONE);\r\n\t\ttimelineLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\ttimelineLabel.setText(\"Timeline \");\r\n\t\ttimeline = new Slider(composite, SWT.HORIZONTAL);\r\n\t\tGridData gd_timeline = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\r\n\t\tgd_timeline.widthHint = 826;\r\n\t\ttimeline.setLayoutData(gd_timeline);\r\n\t\ttimeline.setMinimum(0);\r\n\t\ttimeline.setMaximum(1000);\r\n\t\ttimeline.setSelection(1000);\r\n\t\ttimeline.setIncrement(1);\r\n\t\ttimeline.setBounds(115, 50, 500, 500);\r\n\t\ttimeline.addDragDetectListener(new SliderHandler());\r\n\t\t\r\n\t\tComposite composite_1 = new Composite(timelineComposite, SWT.NONE);\r\n\t\tcomposite_1.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true, 1, 1));\r\n\t\tcomposite_1.setLayout(new GridLayout(7, false));\r\n\t\t\r\n\t\tbtnExport = new Button(composite_1, SWT.NONE);\r\n\t\tGridData gd_btnExport = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnExport.widthHint = 70;\r\n\t\tbtnExport.setLayoutData(gd_btnExport);\r\n\t\tbtnExport.setText(\"Export\");\r\n\t\tbtnExport.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n//\t\t\t\tString path = getCurrentProjectPath();\r\n\t\t\t\tIProject project = EHUtilities.getCurrentProject();\r\n\t\t\t\tnew Thread(()->{\r\n\t\t\t\t\treplayListener.zipCurrentProject(project);\r\n\t\t\t\t}).start();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tButton backButton = new Button(composite_1, SWT.PUSH);\r\n\t\tGridData gd_backButton = new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_backButton.widthHint = 70;\r\n\t\tbackButton.setLayoutData(gd_backButton);\r\n\t\tbackButton.setBackground(backgroundColor);\r\n\t\tbackButton.addSelectionListener(new BackButtonHandler());\r\n\t\tbackButton.setText(\"Back\");\r\n\t\t\r\n\t\ttext = new Text(composite_1, SWT.BORDER);\r\n\t\ttext.setText(\"1\");\r\n\t\tGridData gd_text = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_text.widthHint = 50;\r\n\t\ttext.setLayoutData(gd_text);\r\n\t\t\r\n\t\tstepSelector = new Combo(composite_1, SWT.DROP_DOWN | SWT.READ_ONLY);\r\n\t\tstepSelector.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\r\n\t\tstepSelector.setItems(steps);\r\n\t\tstepSelector.setText(EDIT);\r\n\t\t\r\n\t\tButton forwardButton = new Button(composite_1, SWT.PUSH);\r\n\t\tforwardButton.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\r\n\t\tforwardButton.setBackground(backgroundColor);\r\n\t\tforwardButton.addSelectionListener(new ForwardButtonHandler());\r\n\t\tforwardButton.setBackground(backgroundColor);\r\n\t\tforwardButton.setText(\"Forward\");\r\n\t\t\r\n\t\tbtnShowPause = new Button(composite_1, SWT.CHECK);\r\n\t\tbtnShowPause.setText(\"Show Pause\");\r\n\t\tnew Label(composite_1, SWT.NONE);\r\n\t\tbtnShowPause.addSelectionListener(new SelectionListener() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshowPause = !showPause;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttabFolder = new CTabFolder(parent, SWT.BORDER);\r\n\t\tGridData gd_tabFolder = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\r\n\t\tgd_tabFolder.widthHint = 1046;\r\n\t\ttabFolder.setLayoutData(gd_tabFolder);\r\n\t\ttabFolder.setSelectionBackground(Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\r\n\t\t\r\n\t\ttabItem = new CTabItem(tabFolder, SWT.CLOSE);\r\n\t\ttabItem.setText(\"New Item\");\r\n\t\t\r\n\t\tscrolledComposite = new ScrolledComposite(tabFolder, SWT.H_SCROLL | SWT.V_SCROLL);\r\n\t\ttabItem.setControl(scrolledComposite);\r\n\t\tscrolledComposite.setExpandHorizontal(true);\r\n\t\tscrolledComposite.setExpandVertical(true);\r\n\t\t\r\n\t\tlblFile = new Label(scrolledComposite, SWT.NONE);\r\n\t\tlblFile.setText(\"File\");\r\n\t\tscrolledComposite.setContent(lblFile);\r\n\t\tscrolledComposite.setMinSize(lblFile.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\tparent.layout(true);\r\n\t}", "public void createPartControl(Composite parent) {\n//\t\tviewer = new TreeViewer(parent, SWT.VIRTUAL | SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tviewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n\n\t\tdrillDownAdapter = new DrillDownAdapter(viewer);\n\t\tviewer.setContentProvider(new ViewContentProvider());\n\t\tviewer.setLabelProvider(new ViewLabelProvider());\n\t\tviewer.setSorter(new NameSorter()); // sorts the tree names alphabetically\n\t\tviewer.setInput(getViewSite());\n\t\t\n\t\tViewerFilter[] filters = {showAllFilter};\n\t\tviewer.setFilters(filters);\n\n\t\tshell = parent.getShell();\n\n\t\t// Create the help context id for the viewer's control\n\t\tPlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), \"org.openmodelica.modelicaml.view.componentstree\");\n\t\tmakeActions();\n\t\thookContextMenu();\n//\t\thookDoubleClickAction();\n\t\thookSelectionChangedAction();\n\t\tcontributeToActionBars();\n\n//\t\tgetSite().getWorkbenchWindow().getSelectionService().addSelectionListener(listener);\n\t\t\n\t\t// add a selection provider.\n\t\tgetSite().setSelectionProvider(viewer); \n\t\t\n\t\t// double click for opening/closing the sub tree\n\t\tviewer.addOpenListener(new IOpenListener() {\n\t\t\tpublic void open(final OpenEvent event) {\n\t\t\t\tObject firstElement = ((IStructuredSelection)\n\t\t\t\tevent.getSelection()).getFirstElement();\n\t\t\t\t\tif (viewer.getExpandedState(firstElement)) {\n\t\t\t\t\t\tviewer.collapseToLevel(firstElement, AbstractTreeViewer.ALL_LEVELS);\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tviewer.expandToLevel(firstElement, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\n\t\t// add drag support\n\t\tint operations = DND.DROP_MOVE;\n\t\tTransfer[] transferTypes = new Transfer[]{ LocalSelectionTransfer.getTransfer()};\n\t\tviewer.addDragSupport(operations, transferTypes, new DragListener(viewer));\n\n\t}", "protected SourceViewer createViewer(Composite parent) {\n \t\t\tSourceViewer viewer= new SourceViewer(parent, null, null, false, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\n \t\t\tSourceViewerConfiguration configuration= new SourceViewerConfiguration() {\n \t\t\t\tpublic IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {\n \n \t\t\t\t\tContentAssistant assistant= new ContentAssistant();\n \t\t\t\t\tassistant.enableAutoActivation(true);\n \t\t\t\t\tassistant.enableAutoInsert(true);\n \t\t\t\t\tassistant.setContentAssistProcessor(fTemplateProcessor, IDocument.DEFAULT_CONTENT_TYPE);\n \t\t\t\t\treturn assistant;\n \t\t\t\t}\n \t\t\t};\n \t\t\tviewer.configure(configuration);\n \t\t\treturn viewer;\n \t\t}", "public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}", "public void createControl(Composite parent) {\r\n\t\tComposite container = new Composite(parent, SWT.NULL);\r\n\r\n\t\tsetControl(container);\r\n\t\tcontainer.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblNewLabel = new Label(container, SWT.NONE);\r\n\t\tlblNewLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\r\n\t\t\t\tfalse, 1, 1));\r\n\t\tlblNewLabel.setText(\"Package:\");\r\n\r\n\t\ttext = new Text(container, SWT.BORDER);\r\n\t\ttext.addModifyListener(this);\r\n\t\ttext.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\r\n\t\tGroup grpAutoCreate = new Group(container, SWT.NONE);\r\n\t\tgrpAutoCreate.setText(\"auto create\");\r\n\t\tgrpAutoCreate.setLayout(new GridLayout(1, false));\r\n\t\tgrpAutoCreate.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false,\r\n\t\t\t\tfalse, 2, 1));\r\n\r\n\t\tSelectionAdapter sa = new SelectionAdapter() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tButton b = (Button) e.getSource();\r\n\t\t\t\tInteger index = (Integer) b.getData(\"index\");\r\n\t\t\t\tselectionStats[index] = b.getSelection();\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < chkBtns.length; i++) {\r\n\t\t\tButton b = chkBtns[i] = new Button(grpAutoCreate, SWT.CHECK);\r\n\t\t\tb.setSelection(selectionStats[i]);\r\n\t\t\tb.setText(baseFileNames[i]);\r\n\t\t\tb.setData(\"index\", i);\r\n\t\t\tb.addSelectionListener(sa);\r\n\t\t}\r\n\t}", "public static int newControl(int parentControlHandle, short init, short min, short max, short procID) {\n\t\treturn newControl(parentControlHandle, -1, init, min, max, procID);\n\t}", "protected Composite getFieldEditorParent() {\n\t\tif (style == FLAT) {\n\t\t\t// Create a new parent for each field editor\n\t\t\tComposite parent = new Composite(fieldEditorParent, SWT.NULL);\n\t\t\tparent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\t\t\treturn parent;\n\t\t}\n\t\t// Just return the parent\n\t\treturn fieldEditorParent;\n\t}", "protected Control createDialogArea(Composite parent) {\n\t\t\ttext = new Text(parent, SWT.READ_ONLY | SWT.NO_FOCUS);\n\n\t\t\t// Use the compact margins employed by PopupDialog.\n\t\t\tGridData gd = new GridData(GridData.BEGINNING | GridData.FILL_BOTH);\n\t\t\tgd.horizontalIndent = 5;\n\t\t\tgd.verticalAlignment = SWT.CENTER;\n\t\t\ttext.setLayoutData(gd);\n\t\t\ttext.setText(contents);\n\n\t\t\t// since SWT.NO_FOCUS is only a hint...\n\t\t\ttext.addFocusListener(new FocusAdapter() {\n\t\t\t\tpublic void focusGained(FocusEvent event) {\n\t\t\t\t\tContentProposalPopup.this.close();\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn text;\n\t\t}", "public static int newControl(int parentControlHandle, short procID) {\n\t\treturn newControl(parentControlHandle, -1, (short)0, (short)0, (short)0, procID);\n\t}", "@Override\n\tprotected Control createDialogArea(Composite parent)\n\t{\n\t\tsetMessage(\"Sollen die angezeigten Eigenschaften unwideruflich gelöscht werden ?\");\n\t\tsetTitle(\"Entfernen bestehender Eigenschaften\");\n\t\tComposite area = (Composite) super.createDialogArea(parent);\n\t\tComposite container = new Composite(area, SWT.NONE);\n\t\tcontainer.setLayout(new GridLayout(1, false));\n\t\tcontainer.setLayoutData(new GridData(GridData.FILL_BOTH));\n\t\t\n\t\ttableViewer = new TableViewer(container, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttableViewer.setLabelProvider(new TableLabelProvider());\n\t\ttableViewer.setContentProvider(new ArrayContentProvider());\n\t\ttable = tableViewer.getTable();\n\t\ttable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\treturn area;\n\t}", "protected Control createDialogArea(Composite parent) {\r\n \t\t// page group\r\n \t\tComposite composite= (Composite)super.createDialogArea(parent);\r\n \r\n \t\tfTree= new CheckboxTreeViewer(composite);\r\n \t\tfTree.setUseHashlookup(true);\r\n \t\tfTree.setContentProvider(new WorkbenchContentProvider());\r\n \t\tfTree.setLabelProvider(new WorkbenchLabelProvider());\r\n \t\tfTree.setInput(SearchPlugin.getWorkspace().getRoot());\r\n \r\n \t\tGridData gd= new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL);\r\n \t\tgd.heightHint= SIZING_SELECTION_WIDGET_HEIGHT;\r\n \t\tgd.widthHint= SIZING_SELECTION_WIDGET_WIDTH;\r\n \t\tfTree.getControl().setLayoutData(gd);\r\n \r\n \t\tfTree.addCheckStateListener(new ICheckStateListener() {\r\n \t\t\tpublic void checkStateChanged(CheckStateChangedEvent event) {\r\n \t\t\t\thandleCheckStateChange(event);\r\n \t\t\t}\r\n \t\t});\r\n \t\t\r\n \t\tfTree.addTreeListener(new ITreeViewerListener() {\r\n \t\t\tpublic void treeCollapsed(TreeExpansionEvent event) {\r\n \t\t\t}\r\n \t\t\tpublic void treeExpanded(TreeExpansionEvent event) {\r\n \t\t\t\tfinal Object element= event.getElement();\r\n \t\t\t\tif (!fTree.getGrayed(element))\r\n \t\t\t\t\tBusyIndicator.showWhile(getShell().getDisplay(), new Runnable() {\r\n \t\t\t\t\t\tpublic void run() {\r\n \t\t\t\t\t\t\tsetSubtreeChecked((IContainer)element, fTree.getChecked(element), false);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t});\r\n \t\t\t}\r\n \t\t});\r\n \t\t\r\n \t\tinitializeCheckedState();\r\n \t\tdisableClosedProjects();\r\n \r\n \t\treturn composite;\r\n \t}", "public Button(CompositeGlyph parent, CompositeGlyph c, Window w, String color) {\r\n\t\tthis(w,c,color);\r\n\t\tif (parent != null) {\r\n\t\t\tsetParent(parent);\r\n\t\t\tparent.append(this);\r\n\t\t}\r\n\t}", "public void setParent(DrawingComposite parent) {\n\t\tthis.parent = parent;\n\t}", "protected void createControl() {\n\t\tGridLayout layout = new GridLayout(1, true);\n\t\tsetLayout(layout);\n\t\tsetLayoutData(new GridData(GridData.FILL_BOTH));\n\n\t\tComposite nameGroup = new Composite(this, SWT.NONE);\n\t\tlayout = new GridLayout();\n\t\tlayout.numColumns = 2;\n\t\tnameGroup.setLayout(layout);\n\t\tnameGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\n\t\tLabel label = new Label(nameGroup, SWT.NONE);\n\t\tlabel.setText(PHPServerUIMessages\n\t\t\t\t.getString(\"ServerCompositeFragment.nameLabel\")); //$NON-NLS-1$\n\t\tGridData data = new GridData();\n\t\tlabel.setLayoutData(data);\n\n\t\tname = new Text(nameGroup, SWT.BORDER);\n\t\tdata = new GridData(GridData.FILL_HORIZONTAL);\n\t\tname.setLayoutData(data);\n\t\tname.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tif (getServer() != null)\n\t\t\t\t\tmodifiedValuesCache.serverName = name.getText();\n\t\t\t\tvalidate();\n\t\t\t}\n\t\t});\n\t\tcreateURLGroup(this);\n\t\tinit();\n\t\tvalidate();\n\n\t\tDialog.applyDialogFont(this);\n\n\t\tname.forceFocus();\n\t}", "public void createControl(Composite parent) {\r\n\t\tComposite container = new Composite(parent, SWT.NONE);\r\n\t\tsetControl(container);\r\n\t\tGroup group = new Group(container, SWT.NONE);\r\n\t\tgroup.setBounds(0, 281, 533, 60);\r\n\t\t\r\n\t\tLabel lblSelectWhetherYou = new Label(group, SWT.NONE);\r\n\t\tlblSelectWhetherYou.setBounds(10, 22, 374, 26);\r\n\t\tlblSelectWhetherYou.setText(\"\\u9009\\u62E9\\u662F\\u5426\\u8981\\u53D1\\u5E03\\u3001\\u68C0\\u7D22\\u6216\\u5220\\u9664\\u670D\\u52A1\\u5668\\u4E0A\\u7684\\u62A5\\u544A\\u3002\");\r\n\t\t\r\n\t\tlb_pr = new Label(container, SWT.NONE);\r\n\t\tlb_pr.setBounds(69, 79, 48, 48);\r\n\t\tlb_pr.setImage(SwtImageConverter.ConvertToSwtImage(ImageResolver.get_Resolver().ResolveImage(\"[IMAGE]Core#Images.Icons.ReportPublish.png\"),48,48));\r\n\t\t\r\n\t\trbtn_pr = new Button(container, SWT.RADIO);\r\n\t\trbtn_pr.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tgetNextPage();\r\n\t\t\t}\r\n\t\t});\r\n\t\trbtn_pr.setBounds(59, 133, 69, 16);\r\n\t\trbtn_pr.setText(\"\\u53D1\\u5E03\\u62A5\\u544A\");\r\n\t\trbtn_pr.setData(\"PublishedReportW2_Pub\");\r\n\t\t\r\n\t\tlb_rr = new Label(container, SWT.NONE);\r\n\t\tlb_rr.setBounds(185, 79, 48, 48);\r\n\t\tlb_rr.setImage(SwtImageConverter.ConvertToSwtImage(ImageResolver.get_Resolver().ResolveImage(\"[IMAGE]Core#Images.Icons.ReportRetrieve.png\"),48,48));\r\n\t\t\r\n\t\t\r\n\t\trbtn_rr = new Button(container, SWT.RADIO);\r\n\t\trbtn_rr.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tgetNextPage();\r\n\t\t\t}\r\n\t\t});\r\n\t\trbtn_rr.setBounds(175, 133, 69, 16);\r\n\t\trbtn_rr.setText(\"\\u68C0\\u7D22\\u62A5\\u544A\");//»ρΘ‘\\u68C0\\u7D22\\\r\n\t\trbtn_rr.setData(\"PublishedReportW2_Ret\");\r\n\t\t\r\n\t\tlb_dr = new Label(container, SWT.NONE);\r\n\t\tlb_dr.setBounds(297, 79, 48, 48);\r\n\t\tlb_dr.setImage(SwtImageConverter.ConvertToSwtImage(ImageResolver.get_Resolver().ResolveImage(\"[IMAGE]Core#Images.Icons.ReportDelete.png\"),48,48));\r\n\t\t\r\n\t\t\r\n\t\trbtn_dr = new Button(container, SWT.RADIO);\r\n\t\trbtn_dr.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tgetNextPage();\r\n\t\t\t}\r\n\t\t});\r\n\t\trbtn_dr.setBounds(287, 133, 69, 16);\r\n\t\trbtn_dr.setText(\"\\u5220\\u9664\\u62A5\\u544A\");\r\n\t\trbtn_dr.setData(\"PublishedReportW2_Del\");\r\n\t\t\r\n\t}", "@Override\n protected void createFieldEditors() {\n /* ------------------------ CLI setup ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsCLIFieldEditors();\n\n /* -------------------------------------------------------------- */\n /* ------------------------ Log action ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsWaitForLogsInSeconds(getFieldEditorParent());\n /* -------------------------------------------------------------- */\n /* ------------------------ ERROR LEVEL ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsLinterErrorLevelComboBox(getFieldEditorParent());\n\n /* -------------------------------------------------------------- */\n /* ------------------------ APPEARANCE -------------------------- */\n /* -------------------------------------------------------------- */\n GridData appearanceLayoutData = new GridData();\n appearanceLayoutData.horizontalAlignment = GridData.FILL;\n appearanceLayoutData.verticalAlignment = GridData.BEGINNING;\n appearanceLayoutData.grabExcessHorizontalSpace = true;\n appearanceLayoutData.grabExcessVerticalSpace = false;\n appearanceLayoutData.verticalSpan = 2;\n appearanceLayoutData.horizontalSpan = 3;\n\n Composite appearanceComposite = new Composite(getFieldEditorParent(), SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.numColumns = 2;\n appearanceComposite.setLayout(layout);\n appearanceComposite.setLayoutData(appearanceLayoutData);\n\n createOtherFieldEditors(appearanceComposite);\n\n createBracketsFieldEditors(appearanceComposite);\n }", "@Override\n public Control createDialogArea(Composite parent) {\n Composite top = (Composite) super.createDialogArea(parent);\n\n /*\n * Create the main layout for the shell.\n */\n GridLayout mainLayout = new GridLayout(1, false);\n mainLayout.verticalSpacing = 15;\n top.setLayout(mainLayout);\n GridData mainLayoutData = new GridData(SWT.FILL, SWT.FILL, true, true);\n top.setLayoutData(mainLayoutData);\n\n createStormTypeArea(top);\n createViewerArea(top);\n createTransmitArea(top);\n\n /*\n * Sets dialog title\n */\n getShell().setText(\"View/Send PSH\");\n\n // Update GUI from PshData.\n updateGui(pshData);\n\n return top;\n }", "public Form createEditorForm(boolean realTimeLinkWithParent, boolean exclusiveLinkWithParent) {\n\t\tObject capsule = getCapsule();\n\t\tForm result = getSwingRenderer().createForm(capsule);\n\t\tsetupLinkWithParent(result, realTimeLinkWithParent, exclusiveLinkWithParent);\n\t\treturn result;\n\t}", "protected Control createDialogArea(Composite parent) {\r\n // create composite\r\n Composite composite = (Composite) super.createDialogArea(parent);\r\n // create message\r\n if (message != null) {\r\n Label label = new Label(composite, SWT.WRAP);\r\n label.setText(message);\r\n GridData data = new GridData(GridData.GRAB_HORIZONTAL\r\n | GridData.GRAB_VERTICAL\r\n | GridData.HORIZONTAL_ALIGN_FILL\r\n | GridData.VERTICAL_ALIGN_CENTER);\r\n data.widthHint = convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH);\r\n label.setLayoutData(data);\r\n label.setFont(parent.getFont());\r\n }\r\n text = new Text(composite, SWT.SINGLE | SWT.BORDER | SWT.PASSWORD);\r\n text.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL\r\n | GridData.HORIZONTAL_ALIGN_FILL));\r\n\r\n applyDialogFont(composite);\r\n return composite;\r\n }", "public void showControl(Composite parent) {\r\n\t\t// create the parent's content\r\n\t\tsuper.showControl(parent);\r\n\t\t// add myself as listener to the application\r\n\t\tapplication.addApplicationListener(Event.EVENT_EVERYTHING, this);\r\n\t\tsynchronized (registry) {\r\n\t\t\tregistry.addDeviceListener(Event.EVENT_EVERYTHING, this);\r\n\t\t\tSystemID[] ids = registry.getDevices();\r\n\t\t\tfor (int i = 0; i < ids.length; i++) {\r\n\t\t\t\taddDevice(registry.getDeviceDescription(ids[i]));\r\n\t\t\t}\r\n\t\t}\r\n\t\tassemblerGraph.updateGraph();\r\n\t\tapplicationGraph.updateGraph();\r\n\t\tupdate();\r\n\t}", "public StylePanel(Composite parent, int style)\n\t{\n\t\tsuper(parent, style);\n\n\t\tinit();\n\t}", "@Override\r\n\tpublic void createPartControl(Composite parent) {\r\n\t\tComposite container = new Composite(parent, SWT.NONE);\r\n\t\tcontainer.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\r\n\t\ttreeViewer = new TreeViewer(container, SWT.BORDER);\r\n\t\tObservableListTreeContentProvider contentProvider = new ObservableListTreeContentProvider(\r\n\t\t\t\tnew IObservableFactory() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic IObservable createObservable(Object target) {\r\n\t\t\t\t\t\treturn new DecoratingObservableList(\r\n\t\t\t\t\t\t\t\t((Resource) target).getObservableChildren(),\r\n\t\t\t\t\t\t\t\tfalse);\r\n\t\t\t\t\t}\r\n\t\t\t\t}, null);\r\n\t\ttreeViewer.setContentProvider(contentProvider);\r\n\t\tObservableMapLabelProvider labelProvider = new ObservableMapLabelProvider(\r\n\t\t\t\tBeanProperties.value(\"label\").observeDetail(\r\n\t\t\t\t\t\tcontentProvider.getKnownElements())) {\r\n\t\t\tprivate Image folderImage = Activator.getImageDescriptor(\r\n\t\t\t\t\t\"/icons/folder.gif\").createImage();\r\n\t\t\tprivate Image fileImage = Activator.getImageDescriptor(\r\n\t\t\t\t\t\"/icons/file.gif\").createImage();\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Image getImage(Object element) {\r\n\t\t\t\tResource node = (Resource) element;\r\n\t\t\t\tif (node.getType() != Resource.TYPE_ITEM) {\r\n\t\t\t\t\treturn folderImage;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn fileImage;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void dispose() {\r\n\t\t\t\tfolderImage.dispose();\r\n\t\t\t\tfileImage.dispose();\r\n\t\t\t\tsuper.dispose();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttreeViewer.setLabelProvider(labelProvider);\r\n\t\ttreeViewer.addSelectionChangedListener(new ISelectionChangedListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\tsyncToolbarStatus();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttreeViewer.addDoubleClickListener(new IDoubleClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void doubleClick(DoubleClickEvent event) {\r\n\t\t\t\tResource node = getSelectedItem();\r\n\t\t\t\tif (node != null) {\r\n\t\t\t\t\tif (node.getType() != Resource.TYPE_ITEM) {\r\n\t\t\t\t\t\ttreeViewer.setExpandedState(node,\r\n\t\t\t\t\t\t\t\t!treeViewer.getExpandedState(node));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\teditAction.run();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tcreateActions();\r\n\t\tinitializeToolBar();\r\n\t\tinitializeMenu();\r\n\r\n\t\tloadTree(false);\r\n\t}", "Composite() {\n\n\t}", "@Override\r\n\tpublic void createControl(Composite parent) {\r\n\t\t// the container\r\n\t\tcontainer = new Composite(parent, SWT.NULL);\r\n\t\tFillLayout fillLayout = new FillLayout();\r\n\t\tfillLayout.type = SWT.VERTICAL;\r\n\t\tcontainer.setLayout(fillLayout);\r\n\r\n\t\t// the status of the connection\r\n\t\tconnectionStatus = new CLabel(container, SWT.LEFT);\r\n\t\t// the image to display\r\n\t\tif (NetSource.getInstance().getConnection() != null) {\r\n\t\t\tsetTitle(\"Verbindung hergestellt\");\r\n\t\t\tsetDescription(\"Die Ausführung des Assistenten ist nicht notwendig\");\r\n\t\t\t// show true image\r\n\t\t\tconnectionStatus.setText(\"Es besteht bereits eine Verbindung zum Server.\\n\" + \"Die Ausführung des Assistenten is nicht nötig\");\r\n\t\t\tconnectionStatus.setImage(ImageFactory.getInstance().getRegisteredImage(\"wizars.server.connected\"));\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsetTitle(\"Verbindung zum Server unterbrochen\");\r\n\t\t\tsetDescription(\"Mit diesem Assistenten können sie eine neue Verbindung aufbauen\");\r\n\t\t\t// show true image\r\n\t\t\tconnectionStatus.setText(\"Verbindung zum Server wurde unterbrochen.\\n\"\r\n\t\t\t\t\t+ \"Mit diesem Wizard kann die Verbindung zum Server wiederhergstellt werden\");\r\n\t\t\tconnectionStatus.setImage(ImageFactory.getInstance().getRegisteredImage(\"wizard.server.disconnected\"));\r\n\r\n\t\t\t// the label\r\n\t\t\tinfoText = new CLabel(container, SWT.LEFT);\r\n\t\t\tinfoText.setText(\"Klicken Sie auf weiter um einen neuen Server auszuwählen.\");\r\n\t\t}\r\n\t\t// Required to avoid an error in the system\r\n\t\tsetControl(container);\r\n\t}", "private void createEncodingPanel(final Composite fpcomp, final Vector<String> encodeType) {\n\t\t//\n\t\t// Create panel\n\t\t//\n\t\tComposite encodingPanel = new Composite(fpcomp, SWT.NONE);\n\t\tencodingPanel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 2;\n\t\tlayout.horizontalSpacing = 5;\n\t\tlayout.verticalSpacing = 0;\n\t\tlayout.marginWidth = 0;\n\t\tlayout.marginHeight = 0;\n\t\tencodingPanel.setLayout(layout);\n\n\t\t//\n\t\t// Create label\n\t\t//\n\t\tnew Label(encodingPanel, SWT.NONE).setText(Messages.HexEditorControl_30);\n\n\t\t//\n\t\t// Create combo\n\t\t//\n\t\tencodingCombo = getEncodingCombo(encodingPanel, encodeType);\n\n\t\t//\n\t\t// Add selection listener to the combo box\n\t\t//\n\t\tencodingCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n public void widgetSelected(SelectionEvent e) {\n\t\t\t\tencodingChanged();\n\t\t\t} // widgetSelected()\n\t\t});\n\t}", "private void createProjectComposite() {\r\n\t\tGridLayout gridLayout2 = new GridLayout();\r\n\t\tgridLayout2.numColumns = 2;\r\n\t\tprojectComposite = new Composite(composite, SWT.NONE);\r\n\t\tprojectComposite.setLayout(gridLayout2);\r\n\t\tprojectComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n\t\toutputChooserTreeViewer = new TreeViewer(projectComposite, SWT.BORDER);\r\n\t\toutputChooserTreeViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n\t\toutputChooserTreeViewer.setContentProvider(new ProjectContentProvider());\r\n\t\toutputChooserTreeViewer.setLabelProvider(new DecoratingLabelProvider(\r\n\t\t\t\t\t\t\t\tnew WorkbenchLabelProvider(), \r\n\t\t\t\t\t\t\t\tPlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator()));\r\n\t\toutputChooserTreeViewer.setInput(ResourcesPlugin.getWorkspace().getRoot());\r\n\t\toutputChooserTreeViewer.getTree().addSelectionListener(new SelectionListener() {\r\n\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\r\n\t\t\t}\r\n\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\t\r\n\t\t\t\tvalidatePage();\r\n\t\t\t}\r\n\t\t});\r\n\t\toutputChooserTreeViewer.addSelectionChangedListener(new ISelectionChangedListener() {\r\n\r\n\t\t\tpublic void selectionChanged(SelectionChangedEvent arg0) {\r\n\t\t\t\tTreeSelection selection = (TreeSelection) outputChooserTreeViewer.getSelection();\r\n\t\t\t\tif (selection != null) {\r\n\t\t\t\t\tObject selected = selection.getFirstElement();\r\n\t\t\t\t\tif (selected != null) {\r\n\t\t\t\t\t\tif (selected instanceof IContainer) {\r\n\t\t\t\t\t\t\tNewPIWizardSettings.getInstance().outputContainer = (IContainer) selected;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tcreateButtonComposite();\r\n\t}", "public Sash (Composite parent, int style) {\n\tsuper (parent, checkStyle (style));\n}", "public Sash (Composite parent, int style) {\n\tsuper (parent, checkStyle (style));\n}", "protected void createCancelButton(Composite parent) {\n\t\tcancel = createButton(parent, IDialogConstants.CANCEL_ID, \"取消\", true);\n\t\tcancel.setCursor(arrowCursor);\n\t\tsetOperationCancelButtonEnabled(true);\n\t}", "public DetailQueryInterfaceNodeDialog(Shell parent, int style) {\n super(parent, style);\n }", "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\t\tsetTitle(title);\n\t\tsetTitleImage(ResourceManager.getPluginImage(\"MultiType\", \"res/multitype-med.png\"));\n\t\tComposite area = (Composite) super.createDialogArea(parent);\n\t\tComposite container = new Composite(area, SWT.NONE);\n\t\tcontainer.setLayoutData(new GridData(GridData.FILL_BOTH));\n\t\t\n\t\ttxtMessage = new Text(container, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\n\t\ttxtMessage.setEditable(false);\n\t\ttxtMessage.setText(message);\n\t\ttxtMessage.setBounds(10, 10, 430, 90);\n\n\t\treturn area;\n\t}", "public static Object3D buildChild(Object3D parent, double x, double y, double z) {\n Object3D child = parent.clone();\n child.setPosition(x, y, z);\n // Parent is set to invisible to prevent it from randomly floating at position (0, 0, 0).\n // Since child inherits from its parent and needs to be visible, set the child's visibility\n // state to visible.\n child.setVisible(true);\n\n return child;\n }" ]
[ "0.6924875", "0.66791856", "0.6590563", "0.64408565", "0.6423724", "0.641296", "0.63606495", "0.63584894", "0.62695754", "0.6258798", "0.6194899", "0.6173173", "0.61065257", "0.6085229", "0.60536516", "0.5984649", "0.59265876", "0.5908513", "0.59020156", "0.589225", "0.5883362", "0.5877833", "0.5876124", "0.5843555", "0.5819276", "0.5760618", "0.57380444", "0.57306224", "0.5719218", "0.57074773", "0.5695012", "0.56888074", "0.5659783", "0.5618415", "0.558365", "0.5583403", "0.55828846", "0.5576423", "0.55398816", "0.5488802", "0.5484116", "0.5474994", "0.54573494", "0.5447501", "0.5445442", "0.540812", "0.53547525", "0.5337018", "0.52809197", "0.5256608", "0.5243097", "0.5234101", "0.52324235", "0.52321017", "0.52129644", "0.51944196", "0.51940155", "0.5173811", "0.5160756", "0.51553804", "0.5148255", "0.51264304", "0.51202375", "0.51063573", "0.50942266", "0.5091591", "0.50911164", "0.50731134", "0.50564855", "0.5053183", "0.50503975", "0.504506", "0.5037198", "0.5030465", "0.5007709", "0.5006535", "0.5003685", "0.49927902", "0.49885553", "0.49835625", "0.49757937", "0.49719146", "0.49619013", "0.49608836", "0.49505937", "0.49496236", "0.49482426", "0.4946293", "0.49308676", "0.4924501", "0.49191034", "0.49184382", "0.49129716", "0.4886167", "0.48752654", "0.48752654", "0.4873453", "0.4843722", "0.48403135", "0.4838869" ]
0.72513133
0
Undo a command stored in undolist, and move this command in redolist
public void undo() { if (undolist.empty()) return; IHexEditorCommand comm; comm = undolist.pop(); if (comm == null) return; comm.revoke(); redolist.push(comm); updateStatusPanel(); cursor.update(); updateActions(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void undo () {\r\n\t\tCommand cmd = undoCommands.pop();\r\n\t\tcmd.undo();\r\n\t\tredoCommands.push(cmd);\r\n\t}", "public void undo() {\n if (!undos.isEmpty()) {\n Command toUndo = undos.removeLast();\n redos.addLast(toUndo);\n toUndo.undo();\n } \n }", "public void undo() {\n if (!history.isEmpty()) {\n Command c = history.get(0);\n c.undo();\n history.remove(0);\n future.add(0, c);\n }\n }", "public void undo() {\n\t\tif (lastCommand != null) {\n\t\t\tlastCommand.undo();\n\t\t\tlastCommand = null;\n\t\t}\n\t}", "@Override\r\n\tpublic void undo() {\n\t\tfor (int i = 0; i < command.length; i++) {\r\n\t\t\tcommand[i].undo();\r\n\t\t}\r\n\t}", "public void undoLast() {\t\t\n\t\tCommand command = undoStack.pop();\n\t\tcommand.undo();\n\t}", "public void undoComamnd(Command command){\n undoStack.add(command);\n }", "public void undo() {\n\t\tif (doily.lines.size() > 0) {\n\t\t\tLine line = getLastLine();\n\t\t\tdoily.lines.remove(line);\n\t\t\tredoStack.push(line);\n\t\t\tredraw();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Undo Failed - Nothing to undo\", \n\t\t\t\t\t\"Undo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "public void undo() throws CannotUndoException;", "void undo();", "public static void redo () {\r\n\t\tCommand cmd = redoCommands.pop();\r\n\t\tcmd.redo();\r\n\t\tundoCommands.push(cmd);\r\n\t}", "public void redo() {\n\t\tif (redolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = redolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.execute();\n\t\tundolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tupdateActions();\n\t\tcursor.update();\n\t}", "public void doUndo()\n {\n // Get the last thing we did and reverse it, then remove it from the undoable stuff\n // This process is similar to 'Both Tool' being clicked on a hex with old values\n LinkedList\t\t\tlastChange = (LinkedList) undoableChanges.getLast();\n \n if (lastChange != null)\n {\n ListIterator\t\tit = lastChange.listIterator(0);\n ChangedMUXHex\t\tchangedHex;\n \n while (it.hasNext())\n {\n changedHex = (ChangedMUXHex) it.next();\n // We'll assume the hex is valid since it's in this list\n map.setHex(changedHex.getLocation(), changedHex.getPrevTerrain(), changedHex.getPrevElevation());\n mapComponent.repaint(mapComponent.rectForHex(changedHex.getLocation()));\n }\n \n // Repaint the hexes\n //mapComponent.repaint();\n \n // Remove what we just undid from our undoable list\n undoableChanges.removeLast();\n }\n }", "protected abstract void internalUndo();", "public abstract void undo();", "public void undo() {\n }", "public void undoMove();", "public void executeUndoCommand(){\n for (Command command: undoStack) {\n command.execute();\n }\n }", "public void undoAll() {\r\n\t\tListIterator<Command> it = stack.listIterator(stack.size());\r\n\r\n\t\twhile (it.hasPrevious())\r\n\t\t\ttry {\r\n\t\t\t\tit.previous().undo();\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t}", "public synchronized void undo(){\n int index_of_last_operation = instructions.size() - 1;\n if (index_of_last_operation >= 0){\n instructions.remove(index_of_last_operation);\n }\n }", "void undoPreviousAction() throws NothingToUndoException;", "void processUndo() {\r\n boardManager.undo();\r\n }", "public void undoAction(){}", "public final void undo() {\n\t\tthis.historyManager.undo();\n\t}", "public void undo() {\n\t\t\r\n\t}", "public void undo() {\n\t\tif (currentPlayer.getUndos() > 0) {\n\t\t\tcurrentPlayer.updateUndos();\n\t\t\t//System.out.println(\"Current Player's Undos!\" + currentPlayer.getUndos());\n\t\t\tturnEnd = false;\n\t\t\tmadeMove = false;\n\t\t\tboard = cloneForUndo;\n\t\t\t//printBoard();\n\t\t}\n\t}", "public void undo() {\n\t\tcmd = new UndoCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "@Override\n\tpublic void undo() {\n\t\tfor(SetValueCommand command : setCommands){\n\t\t\tcommand.undo();\n\t\t}\n\t\tif (layoutCommand != null){\n\t\t\tlayoutCommand.undo();\n\t\t}\n\t}", "boolean undoLastCommand() throws Exception;", "public void redoUndoneCommand() {\r\n // TODO: Fix me!!!\r\n try {\r\n char c=redo.pop();\r\n //redo.push(c);\r\n if(c=='c'){\r\n super.rotateClockwise();\r\n }\r\n if(c=='r'){\r\n super.rotateCounterClockwise();\r\n }\r\n if(c=='m'){\r\n super.moveForward();\r\n }\r\n } catch (Exception e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "private void cmdUndo() throws NoSystemException {\n \ttry {\n\t\t\tsystem().undoLastStatement();\n\t\t} catch (MSystemException e) {\n\t\t\tLog.error(e.getMessage());\n\t\t}\n }", "void undo() {\n Move rec = _history.get(_history.size() - 1);\n int to = rec.fromIndex();\n _directions.get(to).remove(_directions.get(to).size() - 1);\n if (rec.isJump()) {\n Move middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), null);\n rec = rec.jumpTail();\n while (rec != null) {\n middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), middle);\n rec = rec.jumpTail();\n }\n while (middle != null) {\n set(middle.fromIndex(), EMPTY);\n set(middle.toIndex(), _whoseMove.opposite());\n set(middle.jumpedCol(), middle.jumpedRow(), _whoseMove);\n middle = middle.jumpTail();\n }\n\n } else {\n int from = rec.toIndex();\n set(to, _whoseMove.opposite());\n set(from, EMPTY);\n\n _directions.get(from).remove(_directions.get(from).size() - 1);\n }\n\n _whoseMove = _whoseMove.opposite();\n _history.remove(_history.size() - 1);\n setChanged();\n notifyObservers();\n }", "@Override\n T undo();", "private String undo() {\n if (!undos.isEmpty()) {\n History history = undos.pop();\n this.redos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }", "public void undo() {\n setExecuted(false);\n }", "@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }", "public void undoCommands(ChessBoard board){\n\t\tfor(LiftPlaceCommand command : placeCommandSequence)\n\t\t\tcommand.undoPlace( board);\n\t\tfor(LiftPlaceCommand command : liftCommandSequence)\n\t\t\tcommand.undoLift( board);\n\t\tperformingPiece.decrementMovesMade();\n\t}", "public void redo() {\n if (!redos.isEmpty()) {\n Command toRedo = redos.removeLast();\n undos.addLast(toRedo);\n toRedo.execute();\n }\n }", "public abstract void undoMove();", "public void undo () {\n // The restores must be run in the reverse order they are added.\n for (int i = restores.size() - 1; i >= 0; --i) {\n restores.get(i).run();\n }\n restores.clear();\n }", "@Override\n public void undo(History history) throws CommandExecutionException {\n try {\n transactionManager.deleteTransaction((Integer) history.getData(\"transactionId\"));\n history.setUndone(true);\n String oldMessage = history.getDisplayString();\n String newMessage = oldMessage + \" has been undone\";\n history.setDisplayString(newMessage);\n gateway.update(history, History.class);\n } catch (Exception e) {\n throw new CommandExecutionException(e);\n }\n }", "@Override\r\n\tpublic void undo() throws InstructionExecutionException {\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.robotContainer.pickItem(id);\r\n\t\t\tthis.robotContainer.addItem(lastItem);\r\n\t\t\tthis.engine.addFuel(lastFuel-this.engine.getFuel());\r\n\t\t\tthis.engine.addRecycledMaterial(lastRecycledMaterial-this.engine.getRecycledMaterial());\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow new InstructionExecutionException();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo()\n\t{\n\t}", "public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }", "private void undoPopItemActionPerformed(java.awt.event.ActionEvent evt) {\n undoredo.undo();\n }", "public void redo() {\n\t\tif (redoStack.size() > 0) {\n\t\t\tdoily.lines.add(redoStack.pop());\n\t\t\trepaint();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Redo Failed - Nothing to redo\", \n\t\t\t\t\t\"Redo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "@Override\n public void undo() {\n\n }", "@Override\n public void undo() {\n\n }", "void redoPreviousAction() throws NothingToRedoException;", "public CommandResult undo(UniqueTaskList tasks) {\n if (!previousTask.isEmpty()) {\n Task userTask = previousTask.pop();\n String userAction = previousActionType.pop();\n int taskIndex = previousActionIndex.pop();\n\n switch (userAction) {\n // previous action was an add; delete the added task\n case \"add\":\n try {\n tasks.remove(userTask);\n if (userTask.toString().equals(userTask.getUndoFormatString())) {\n previousActionUndoString = userAction + \" \" + userTask.getUndoFormatString();\n } else {\n previousActionUndoString = userAction + \" \" + userTask.getName() + \" \"\n + userTask.getUndoFormatString();\n }\n } catch (TaskNotFoundException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_TASK_NOT_FOUND, userTask.getUndoFormatString()));\n }\n break;\n // previous action was a delete; add back the deleted task\n case \"delete\":\n try {\n tasks.add(taskIndex, userTask);\n previousActionUndoString = userAction + \" \" + (taskIndex + 1);\n } catch (DuplicateTaskException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_DUPLICATE_TASK_FOUND, userTask.getUndoFormatString()));\n }\n break;\n // previous action was an edit; set back the old task\n case \"edit\":\n try {\n Task temp = tasks.getTaskFromIndex(taskIndex);\n tasks.edit(taskIndex, userTask);\n previousActionUndoString = \"edit\" + \" \" + (taskIndex + 1) + \" \" + temp.getUndoFormatString();\n } catch (TaskNotFoundException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_TASK_NOT_FOUND, userTask.getUndoFormatString()));\n }\n break;\n // previous action was a complete; set the task back to pending\n case \"complete\":\n previousActionUndoString = userAction + \" \" + (taskIndex + 1);\n userTask = tasks.getTaskFromIndex(taskIndex);\n userTask.setPending();\n break;\n // previous action was a clear for completed tasks; add back the\n // tasks that were completed\n case \"clear\":\n previousActionUndoString = userAction;\n List<Task> lastCleared = previousClearedTasks.pop();\n List<Integer> lastClearedIndices = previousClearedIndices.pop();\n\n for (int i = 0; i < lastCleared.size(); i++) {\n int indexToUnclear = lastClearedIndices.get(i);\n Task taskToUnclear = lastCleared.get(i);\n taskToUnclear.setComplete();\n try {\n tasks.add(indexToUnclear, taskToUnclear);\n } catch (DuplicateTaskException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_DUPLICATE_TASK_FOUND, userTask.getUndoFormatString()));\n }\n }\n break;\n // previous action was a clear all regardless of status; add back\n // the tasks that were cleared\n case \"clear all\":\n previousActionUndoString = \"clear /a\";\n List<Task> lastClearedAll = previousClearedTasks.pop();\n List<Integer> lastClearedAllIndices = previousClearedIndices.pop();\n List<String> lastClearedStatuses = previousClearedStatus.pop();\n\n for (int i = 0; i < lastClearedAll.size(); i++) {\n int indexToUnclear = lastClearedAllIndices.get(i);\n Task taskToUnclear = lastClearedAll.get(i);\n String taskStatus = lastClearedStatuses.get(i);\n if (taskStatus.equals(\"Complete\")) {\n taskToUnclear.setComplete();\n } else {\n taskToUnclear.setPending();\n }\n\n try {\n tasks.add(indexToUnclear, taskToUnclear);\n } catch (DuplicateTaskException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_DUPLICATE_TASK_FOUND, userTask.getUndoFormatString()));\n }\n }\n break;\n default:\n System.out.println(\"Error occurred in undo stack\");\n }\n } else {\n throw new EmptyStackException();\n }\n return new CommandResult(MESSAGE_NOTHING_TO_UNDO);\n }", "void undo() {\r\n if (_moveCount > 0) {\r\n undoPosition();\r\n }\r\n }", "public boolean undo(){\n\t\tif(!(undoStack.isEmpty())){\n\t\t\tSystem.out.println(\"Undoing one move...\");\n\t\t\tredoStack.push(undoStack.pop());\n\t\t\tthis.setState(undoStack.pop());\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Undo is not available\");\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic void undo() {\n\t\tthis.list.delete(shape);\n\n\t}", "public void prev()\n {\n if (mHistoryIdx == 0) {\n return;\n }\n\n mCommandList.get(--mHistoryIdx).undo();\n this.setChanged();\n this.notifyObservers(mHistoryIdx);\n }", "@Override\n public void undo(int numToUndo) {\n }", "private void addUndoStep(IHexEditorCommand comm) {\n\t\tif (!comm.execute())\n\t\t\treturn;\n\t\tint maxundo = Activator.getDefault().getPreferenceStore().getInt(HexEditorConstants.PROPERTY_MAX_UNDO_STEPS);\n\n\t\tundolist.push(comm);\n\t\tredolist.clear();\n\n\t\tif (maxundo > 0 && undolist.size() > maxundo) {\n\t\t\tundolist.remove(0);\n\t\t}\n\n\t\thexEditor.setDirty(true);\n\t\tupdateActions();\n\t}", "public void redo() throws CannotRedoException;", "public void undo() {\n if (!canUndo()) {\n throw new VersionedAssignmentList.NoUndoableStateException();\n }\n currentStatePointer--;\n resetData(assignmentListStateList.get(currentStatePointer));\n }", "public void process() {\n \n//System.out.println(\"UndoCommand.undo()\");\n//System.out.println(\" command: \" + command.getDescription());\n//System.out.println(\" isTransient: \" + command.isTransient());\n//System.out.println(\" isUndoable: \" + command.isUndoable());\n\n try {\n \n command.undo();\n\n // Move the command to the top of the redo stack\n redoCommands.push(command);\n\n // Trim the redo stack\n if (redoCommands.size() > maxSize) {\n redoCommands.setSize(maxSize);\n } \n \n // finally, notify listeners of the change\n for (int i = 0; i < commandListeners.size(); i++) {\n CommandListener l = commandListeners.get(i);\n l.commandExecuted(command);\n }\n\n } catch (Exception e) {\n errorReporter.errorReport(\"Undo of \" + command.getDescription() + \" command failed.\", e);\n }\n\n }", "public void undo() {\n firePropertyChange(\"undo\", null, \"enable\");\n final Drawing removeMe = myDrawingArray.get(myDrawingArray.size() - 1);\n myDrawingArray.remove(removeMe);\n myUndoStack.push(removeMe);\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(\"stack\", null, EMPTY_STRING);\n }\n repaint();\n }", "public static void clearUndoCommands() {\r\n\t\tundoCommands.clear();\r\n\t}", "public void undo() {\n target.setCombatState( oldState );\n }", "protected final void redo() {\n requireNonNull(model);\n try {\n executeUndoableCommand();\n } catch (CommandException ce) {\n throw new AssertionError(\"The command has been successfully executed previously; \"\n + \"it should not fail now\");\n }\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "public void redo() {\n if (!future.isEmpty()) {\n Command c = future.get(0);\n c.redo();\n future.remove(0);\n history.add(0, c);\n }\n }", "@Override\n\tpublic void onUndoNotPossible() {\n\n\t}", "boolean undoMove();", "void redo();", "public void undo() {\r\n pop( true );\r\n announce( null );\r\n }", "@Override\n\tprotected CommandResult doUndoWithResult(IProgressMonitor progressMonitor,\n\t\t\tIAdaptable info) throws ExecutionException {\n\t\tpasteCommand.doUndoWithResult(progressMonitor, info);\n\t\treturn null;\n\t}", "public void onUndo() {\n game.undoLastTurn(player1);\n game.undoLastTurn(computer);\n if (player1.getRollCount() == 0 && computer.getRollCount() == 0) {\n setDefault(\"player\");\n setDefault(\"computer\");\n undoButton.setDisable(true);\n resetButton.setDisable(true);\n } else {\n updateFields(\"player\");\n updateFields(\"computer\");\n }\n }", "@Override\r\n public void undo() {\n\r\n }", "@Override\n public boolean canUndo() {\n return false;\n }", "private void undoDelete() {\n if (!mReversDeleteItemPositionsList.isEmpty()) {\n\n mAllItems.add(mReversDeleteItemPositionsList.get(mReversDeleteItemPositionsList.size() - 1),\n mReverseDeleteItemsList.get(mReverseDeleteItemsList.size() - 1));\n //subtract from pallet total\n mPickHandlerInterface.subtractFromTOtal(Integer.parseInt(mReverseDeleteItemsList.get(mReversDeleteItemPositionsList.size() - 1).getCaseQuantity()));\n notifyItemInserted(mReversDeleteItemPositionsList.get(mReversDeleteItemPositionsList.size() - 1));\n mReverseDeleteItemsList.remove(mReverseDeleteItemsList.size() - 1);\n mReversDeleteItemPositionsList.remove(mReversDeleteItemPositionsList.size() - 1);\n showUndoSnackbar();\n SendInformationToActivity();\n\n }\n\n }", "public UndoableCommand undo() {\n logger.info(String.format(\"----------------[UNDOING][%s]\", this));\n return new DeleteActivityCommand(null, activityAdded);\n }", "public UndoableCommand redo() {\n logger.info(String.format(\"----------------[REDOING][%s]\", this));\n return new AddActivityCommand(activityAdded, true);\n }", "public void undo() {\n // only check the action can be undo or not\n if (!this.canUndo()) {\n throw new CannotUndoException();\n }\n }", "public boolean canUndo();", "public boolean canUndo();", "public void undo() throws IllegalStateException{\n if (undoBoards.size() > 1){\n undoBoards.pop();\n return;\n }\n throw new IllegalStateException(\"No more moves to undo\");\n }", "public void UndoMove() {\n\t\tif ( !isNextPlayerTurnAnAIEngine() && this.historicMoves.size() > 0 && !this.playerMoveComputing)\n\t\t{\n//\t\t\tthis.updateStatusGameTextFromGameManager(\"Performing UNDO Move\", this.playerToMakeMove);\n\t\t\t// dont allow any more moves on this board while doing undo\n\t\t\tthis.playerMoveComputing = true;\n\t\t\tint undoPLayer = this.playerToMakeMove; // this human player\n\t\t\twhile ( true ) // we will break once the current player is changed or the history size is empty\n\t\t\t{\n\t\t\t\t\n\t\t\t\t// remove the last one\n\t\t\t\tMyShapeDrawable removeMe = this.removeHistoricMoveAtElement(this.historicMoves.size()-1);\n\t\t\t\tremoveMe.alreadySelected = false;\n\t\t\t\tboolean[] completedBoxes = this.b.unSelectEdge(removeMe.myEdge.getCol(), removeMe.myEdge.getRow(), removeMe.myEdge.getEdge());\n\t\t\t\tif ( this.historicMoves.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tMyShapeDrawable myS = this.historicMoves.get(this.historicMoves.size()-1);\n\t\t\t\t\t// previous shape is made current\n\t\t\t\t\tthis.updateVisualsToCurrentSelectedEdge(myS);\n\t\t\t\t\t// need to check if we must remove a box token\n\t\t\t\t\tcheckAndRemoveBoxTokenForUndo(removeMe, completedBoxes);\n\t\t\t\t\tif ( undoPLayer == this.playerToMakeMove )\n\t\t\t\t\t{\n\t\t\t\t\t\t// player is back to his undo move, so break\n\t\t\t\t\t\tbreak;\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\t// no more historic moves to act on\n\t\t\t\t\tthis.changeToPreviousPlayer(); // change to first player\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.playerMoveComputing = false; // remove control of the board\n\t\t\t// decide if to reset the ai engines\n\t\t\tdetermineIfPlayersShouldReset();\n\t\t\t// finally make player move\n\t\t\tthis.determineNextPlayerAndMakeMove();\n\t\t\n\t\t}\n\t}", "public final void redo() {\n\t\tthis.historyManager.redo();\n\t}", "@Override\n\tpublic void undo(LoginUserAction arg0, LoginUserResult arg1,\n\t\t\tExecutionContext arg2) throws ActionException {\n\n\t}", "@Override\r\n\tpublic void undo() {\n\t\tstack.push(data);\r\n\t\tJList1.setListData(stack.getStackVector()); // refresh the JList\r\n\r\n\t}", "@Override\n\tpublic String Undo() {\n\t\treturn \"Apagando la licuadora..........\" + receiver.turnOff();\n\t}", "public void undoMove()\n {\n positions.remove(positions.size()-1);\n String position = positions.get(positions.size()-1);\n ArrayList<Piece> pieces = Chess.stringToPieces(position.substring(4));\n setTurn(Integer.parseInt(position.substring(0,2)));\n setFiftyMove(Integer.parseInt(position.substring(2,4)));\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n {\n squares[i][j].setPiece(null);\n for (Piece p: pieces)\n if (p.getOrigin().equals(new Location(i,j)))\n squares[i][j].setPiece(p);\n }\n setFirstSelected(null);\n squares[0][0].deselectSquares();\n if (getTurn()<20)\n frame.setOptionVisibility(false);\n \n DefaultTableModel d = (DefaultTableModel)frame.getNotation().getModel();\n if (colorGoing()==PieceColor.BLACK)\n d.setValueAt(\"\",turn/2,1);\n else\n d.removeRow((turn+1)/2);\n frame.getSide().getDrawBox().setSelected(false);\n updateUI();\n }", "@Override\r\n\tpublic void undo(RechercheDetailleeAction arg0, RechercheDetailleeResult arg1, ExecutionContext arg2) throws ActionException {\n\r\n\t}", "@Override\n\tpublic void undoCommand() {\n\t\tselectionModel.removeAllFromSelectionList();\n\t\tmodel.removeElement(device);\n\t}", "@Override\r\n\tpublic void undo() {\n\t\tfor(IShape shape : tempList)\r\n\t\t\tshapeList.remove(shape);\r\n\t}", "@Override\n public boolean isUndo() {\n return false;\n }", "@Override\r\n\tpublic E undo() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void onUndoStart(ReadOnlyBoard board, Counter nextPlayer,\n\t\t\tboolean undoPossible) {\n\n\t}", "public abstract void redo();", "@Override\r\n\tpublic void undo(Transaction tx) {\r\n\t\t// do nothing\r\n\t\t\r\n\t}", "private void cmdRedo() throws NoSystemException {\n \ttry {\n\t\t\tsystem().redoStatement();\n\t\t} catch (MSystemException e) {\n\t\t\tLog.error(e.getMessage());\n\t\t}\n }", "public void redo() {\n\t\t\n\t}", "void Undo() {\n if (shapes.size() > 0) {\n shapes.remove(shapes.size() - 1);\n lineColours.remove(lineColours.size() - 1);\n currentPenColour = lineColours.get(lineColours.size() - 1);\n fillColours.remove(fillColours.size() - 1);\n currentFillColour = fillColours.get(fillColours.size() - 1);\n writeFile.undoWrite();\n repaint();\n }\n }", "public void onUndo(TableroInmutable tablero) {\r\n\t\tthis.tablero.undo(tablero);\r\n\t\t\r\n\t}" ]
[ "0.84310097", "0.8011123", "0.7982902", "0.7875581", "0.7806257", "0.76645285", "0.76401234", "0.75693893", "0.7552052", "0.75430304", "0.73986304", "0.7362624", "0.7338201", "0.7331153", "0.7326838", "0.7303123", "0.7293518", "0.72803277", "0.72776705", "0.72561467", "0.7203367", "0.71837175", "0.71665305", "0.7073909", "0.70654255", "0.7053797", "0.7050556", "0.70464975", "0.70198035", "0.69937116", "0.69890016", "0.695447", "0.69358194", "0.69335216", "0.69229394", "0.68965435", "0.6884322", "0.6881475", "0.68703896", "0.68578243", "0.6853661", "0.6852494", "0.68451023", "0.68451023", "0.68451023", "0.6835154", "0.68018943", "0.6747286", "0.6732148", "0.6720865", "0.6720865", "0.67009723", "0.6680988", "0.6659516", "0.6635869", "0.6630091", "0.6626071", "0.66255826", "0.6624008", "0.6611388", "0.66044295", "0.65970236", "0.6595845", "0.65799", "0.6562631", "0.65557647", "0.65490896", "0.6522585", "0.6509141", "0.6500113", "0.64968246", "0.6474536", "0.6474488", "0.6459028", "0.64519197", "0.6451046", "0.6445052", "0.64348406", "0.64249223", "0.6423224", "0.6423224", "0.64182305", "0.6402006", "0.63937163", "0.6380184", "0.6338766", "0.63216126", "0.63142264", "0.62952703", "0.62742937", "0.6270015", "0.62597936", "0.6253263", "0.62514895", "0.624785", "0.6235569", "0.623029", "0.622853", "0.6218687", "0.6204173" ]
0.81141335
1
Redo a command stored in redolist, and move this command in undolist
public void redo() { if (redolist.empty()) return; IHexEditorCommand comm; comm = redolist.pop(); if (comm == null) return; comm.execute(); undolist.push(comm); updateStatusPanel(); updateActions(); cursor.update(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void redo () {\r\n\t\tCommand cmd = redoCommands.pop();\r\n\t\tcmd.redo();\r\n\t\tundoCommands.push(cmd);\r\n\t}", "public void redo() {\n if (!redos.isEmpty()) {\n Command toRedo = redos.removeLast();\n undos.addLast(toRedo);\n toRedo.execute();\n }\n }", "public void redo() {\n\t\tif (redoStack.size() > 0) {\n\t\t\tdoily.lines.add(redoStack.pop());\n\t\t\trepaint();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Redo Failed - Nothing to redo\", \n\t\t\t\t\t\"Redo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "public void redo() throws CannotRedoException;", "public void redoUndoneCommand() {\r\n // TODO: Fix me!!!\r\n try {\r\n char c=redo.pop();\r\n //redo.push(c);\r\n if(c=='c'){\r\n super.rotateClockwise();\r\n }\r\n if(c=='r'){\r\n super.rotateCounterClockwise();\r\n }\r\n if(c=='m'){\r\n super.moveForward();\r\n }\r\n } catch (Exception e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public static void undo () {\r\n\t\tCommand cmd = undoCommands.pop();\r\n\t\tcmd.undo();\r\n\t\tredoCommands.push(cmd);\r\n\t}", "public void redo() {\n if (!future.isEmpty()) {\n Command c = future.get(0);\n c.redo();\n future.remove(0);\n history.add(0, c);\n }\n }", "void redo();", "public final void redo() {\n\t\tthis.historyManager.redo();\n\t}", "public void executeRedoCommand(){\n for (Command command: redoStack) {\n command.execute();\n }\n }", "public void undo() {\n\t\tif (undolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = undolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.revoke();\n\t\tredolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tcursor.update();\n\t\tupdateActions();\n\t}", "public void redo() {\n\t\t\n\t}", "private void cmdRedo() throws NoSystemException {\n \ttry {\n\t\t\tsystem().redoStatement();\n\t\t} catch (MSystemException e) {\n\t\t\tLog.error(e.getMessage());\n\t\t}\n }", "public abstract void redo();", "@Override\n\tpublic void redo() {\n\t\tfor(SetValueCommand command : setCommands){\n\t\t\tcommand.redo();\n\t\t}\n\t\tif (layoutCommand != null){\n\t\t\tlayoutCommand.redo();\n\t\t}\n\t}", "protected final void redo() {\n requireNonNull(model);\n try {\n executeUndoableCommand();\n } catch (CommandException ce) {\n throw new AssertionError(\"The command has been successfully executed previously; \"\n + \"it should not fail now\");\n }\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "public void undoLast() {\t\t\n\t\tCommand command = undoStack.pop();\n\t\tcommand.undo();\n\t}", "public void undo() {\n if (!undos.isEmpty()) {\n Command toUndo = undos.removeLast();\n redos.addLast(toUndo);\n toUndo.undo();\n } \n }", "public void redo() {\n\t\tcmd = new RedoCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public UndoableCommand redo() {\n logger.info(String.format(\"----------------[REDOING][%s]\", this));\n return new AddActivityCommand(activityAdded, true);\n }", "void redoPreviousAction() throws NothingToRedoException;", "@Override\n\tpublic void redo() {\n\t\t\n\t}", "public void redo() {\n if (!canRedo()) {\n throw new VersionedAssignmentList.NoRedoableStateException();\n }\n currentStatePointer++;\n resetData(assignmentListStateList.get(currentStatePointer));\n }", "@Override\n public void redo(int numToRedo) {\n }", "private String redo() {\n this.undos.push(History.copy(this));\n if (!redos.isEmpty()) {\n History history = redos.pop();\n this.undos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }", "public void undo() {\n if (!history.isEmpty()) {\n Command c = history.get(0);\n c.undo();\n history.remove(0);\n future.add(0, c);\n }\n }", "@Override\n public void redo() {\n\n }", "public void undo() {\n\t\tif (lastCommand != null) {\n\t\t\tlastCommand.undo();\n\t\t\tlastCommand = null;\n\t\t}\n\t}", "public void undo() {\n\t\tif (doily.lines.size() > 0) {\n\t\t\tLine line = getLastLine();\n\t\t\tdoily.lines.remove(line);\n\t\t\tredoStack.push(line);\n\t\t\tredraw();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Undo Failed - Nothing to undo\", \n\t\t\t\t\t\"Undo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "public void redo() {\n firePropertyChange(ARRAY_STRING, null, NOT_EMPTY_STRING);\n myDrawingArray.add(myUndoStack.pop());\n if (myUndoStack.isEmpty()) {\n firePropertyChange(\"emptystack\", null, EMPTY_STRING);\n }\n repaint();\n }", "public void redo() {\n // only check the action can be redo or not\n if (!this.canRedo()) {\n throw new CannotRedoException();\n }\n }", "boolean redoLastCommand() throws Exception;", "public boolean redo() { \n if(redoStack.peek()!=null) {\n DrawingChange change = redoStack.pop();\n drawingArray[change.x][change.y] = change.newChar;\n undoStack.push(change);\n return true;\n }\n return false;\n }", "@Override\r\n\tpublic void undo() {\n\t\tfor (int i = 0; i < command.length; i++) {\r\n\t\t\tcommand[i].undo();\r\n\t\t}\r\n\t}", "public void undoComamnd(Command command){\n undoStack.add(command);\n }", "public void executeUndoCommand(){\n for (Command command: undoStack) {\n command.execute();\n }\n }", "public boolean redo(){\n\t\tif(!(redoStack.isEmpty())){\n\t\t\tSystem.out.println(\"Redoing one move...\");\n\t\t\tundoStack.push(getState());\n\t\t\tthis.setState(redoStack.pop());\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Nothing to redo\");\n\t\t\treturn false;\n\t\t}\n\t}", "public void doUndo()\n {\n // Get the last thing we did and reverse it, then remove it from the undoable stuff\n // This process is similar to 'Both Tool' being clicked on a hex with old values\n LinkedList\t\t\tlastChange = (LinkedList) undoableChanges.getLast();\n \n if (lastChange != null)\n {\n ListIterator\t\tit = lastChange.listIterator(0);\n ChangedMUXHex\t\tchangedHex;\n \n while (it.hasNext())\n {\n changedHex = (ChangedMUXHex) it.next();\n // We'll assume the hex is valid since it's in this list\n map.setHex(changedHex.getLocation(), changedHex.getPrevTerrain(), changedHex.getPrevElevation());\n mapComponent.repaint(mapComponent.rectForHex(changedHex.getLocation()));\n }\n \n // Repaint the hexes\n //mapComponent.repaint();\n \n // Remove what we just undid from our undoable list\n undoableChanges.removeLast();\n }\n }", "public void redoAction() {\n executeAction();\n }", "public String redo() {\n/* 173 */ return redo(0, false);\n/* */ }", "boolean undoLastCommand() throws Exception;", "public void process() {\n \n//System.out.println(\"UndoCommand.undo()\");\n//System.out.println(\" command: \" + command.getDescription());\n//System.out.println(\" isTransient: \" + command.isTransient());\n//System.out.println(\" isUndoable: \" + command.isUndoable());\n\n try {\n \n command.undo();\n\n // Move the command to the top of the redo stack\n redoCommands.push(command);\n\n // Trim the redo stack\n if (redoCommands.size() > maxSize) {\n redoCommands.setSize(maxSize);\n } \n \n // finally, notify listeners of the change\n for (int i = 0; i < commandListeners.size(); i++) {\n CommandListener l = commandListeners.get(i);\n l.commandExecuted(command);\n }\n\n } catch (Exception e) {\n errorReporter.errorReport(\"Undo of \" + command.getDescription() + \" command failed.\", e);\n }\n\n }", "public void redo() throws CannotRedoException {\n\t\tsuper.redo();\n\t\t\n\t\tthis.doEdit(iDoc);\n\t}", "@Test\n public void parseCommand_redo() throws Exception {\n assertTrue(parser.parseCommand(RedoCommand.COMMAND_WORD) instanceof RedoCommand);\n assertTrue(parser.parseCommand(RedoCommand.COMMAND_WORD + \" \" + PREFIX_UNDO_REDO + \"all\")\n instanceof RedoCommand);\n assertTrue(parser.parseCommand(RedoCommand.COMMAND_WORD + \" \" + PREFIX_UNDO_REDO + \"5\")\n instanceof RedoCommand);\n assertTrue(parser.parseCommand(RedoCommand.COMMAND_WORD + \" \" + PREFIX_UNDO_REDO + \"0\")\n instanceof RedoCommand);\n assertTrue(parser.parseCommand(RedoCommand.COMMAND_WORD + \" \" + PREFIX_UNDO_REDO + \"-5\")\n instanceof RedoCommand);\n }", "public void next()\n {\n if (mHistoryIdx == mCommandList.size()) {\n return;\n }\n\n mCommandList.get(mHistoryIdx++).redo();\n this.setChanged();\n this.notifyObservers(mHistoryIdx);\n }", "void undo();", "public static void clearRedoCommands() {\r\n\t\tredoCommands.clear();\r\n\t}", "public void undoAll() {\r\n\t\tListIterator<Command> it = stack.listIterator(stack.size());\r\n\r\n\t\twhile (it.hasPrevious())\r\n\t\t\ttry {\r\n\t\t\t\tit.previous().undo();\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t}", "public void undoMove();", "@Override\n\tpublic void redo() {\n\t\tthis.list.add(shape);\n\n\t}", "public synchronized void undo(){\n int index_of_last_operation = instructions.size() - 1;\n if (index_of_last_operation >= 0){\n instructions.remove(index_of_last_operation);\n }\n }", "public Move redoMove ()\n {\n Move redoneMove = Move.redoMove();\n setGridElement(redoneMove.getRow(), redoneMove.getColumn(), redoneMove.getPlayer());\n Move.addMoveToPlayedMoveStack(redoneMove);\n return redoneMove;\n }", "private void addRedoButton() {\n\t\tredoButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.REDO);\n redoButton.setEnabled(false);\n\t\ttoolPanel.add(redoButton);\n\t\tredoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcontroller.getCommandManager().redoCommand();\n\t\t\t}\n\n\t\t});\n\t}", "private void prepareUndoRedo()\n {\n undoManager = new UndoManager();\n \n doc = textArea.getDocument();\n doc.addUndoableEditListener(new UndoableEditListener(){\n public void undoableEditHappened(UndoableEditEvent evt)\n {\n undoManager.addEdit(evt.getEdit());\n }\n });\n \n textArea.getActionMap().put(\"Undo\", new AbstractAction(\"Undo\"){\n public void actionPerformed(ActionEvent evt)\n {\n try{\n if(undoManager.canUndo())\n {\n undoManager.undo();\n }\n }catch (CannotUndoException exc)\n {\n System.out.println(\"Erro ao usar Undo :(\");\n }\n }\n });\n textArea.getInputMap().put(KeyStroke.\n getKeyStroke(\"control Z\"), \"Undo\");\n \n textArea.getActionMap().put(\"Redo\", new AbstractAction(\"Redo\"){\n public void actionPerformed(ActionEvent evt)\n {\n try{\n if(undoManager.canRedo())\n {\n undoManager.redo();\n }\n }catch (CannotRedoException exc)\n {\n System.out.println(\"Erro ao usar Redo :(\");\n }\n }\n });\n textArea.getInputMap().put(KeyStroke.\n getKeyStroke(\"control Y\"), \"Redo\"); \n }", "@Override\r\n\tpublic void redo() {\n\t\tfor(IShape shape : tempList)\r\n\t\t\tshapeList.add(shape);\r\n\t}", "public abstract void undo();", "void processUndo() {\r\n boardManager.undo();\r\n }", "private void addUndoRedo(JTextComponent... textcomp) {\n\t\n\t for(int i=0;i<textcomp.length;i++){\n\t\t final UndoManager undo = new UndoManager();\n\t\t\t Document doc = textcomp[i].getDocument();\n\t\t \n\t\t // Listen for undo and redo events\n\t\t doc.addUndoableEditListener(new UndoableEditListener() {\n\t\t public void undoableEditHappened(UndoableEditEvent evt) {\n\t\t undo.addEdit(evt.getEdit());\n\t\t }\n\t\t });\n\t\t \n\t\t // Create an undo action and add it to the text component\n\t\t textcomp[i].getActionMap().put(\"Undo\",\n\t\t new AbstractAction(\"Undo\") {\n\t\t public void actionPerformed(ActionEvent evt) {\n\t\t try {\n\t\t if (undo.canUndo()) {\n\t\t undo.undo();\n\t\t }\n\t\t } catch (CannotUndoException e) {\n\t\t }\n\t\t }\n\t\t });\n\t\t \n\t\t // Bind the undo action to ctl-Z\n\t\t textcomp[i].getInputMap().put(KeyStroke.getKeyStroke(\"control Z\"), \"Undo\");\n\t\t \n\t\t // Create a redo action and add it to the text component\n\t\t textcomp[i].getActionMap().put(\"Redo\",\n\t\t new AbstractAction(\"Redo\") {\n\t\t public void actionPerformed(ActionEvent evt) {\n\t\t try {\n\t\t if (undo.canRedo()) {\n\t\t undo.redo();\n\t\t }\n\t\t } catch (CannotRedoException e) {\n\t\t }\n\t\t }\n\t\t });\n\t\t \n\t\t // Bind the redo action to ctl-Y\n\t\t textcomp[i].getInputMap().put(KeyStroke.getKeyStroke(\"control Y\"), \"Redo\");\n\t }\n}", "protected abstract void internalUndo();", "@Override\n public void redo() {\n shapeList.add((newShape));\n }", "public void undo () {\n // The restores must be run in the reverse order they are added.\n for (int i = restores.size() - 1; i >= 0; --i) {\n restores.get(i).run();\n }\n restores.clear();\n }", "protected void redoSuccess() {\n this.isRedoable = false;\n this.isUndoable = true;\n }", "@Override\r\n\tpublic void undo() throws InstructionExecutionException {\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.robotContainer.pickItem(id);\r\n\t\t\tthis.robotContainer.addItem(lastItem);\r\n\t\t\tthis.engine.addFuel(lastFuel-this.engine.getFuel());\r\n\t\t\tthis.engine.addRecycledMaterial(lastRecycledMaterial-this.engine.getRecycledMaterial());\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow new InstructionExecutionException();\r\n\t\t}\r\n\t}", "public boolean canRedo();", "public boolean canRedo();", "private String undo() {\n if (!undos.isEmpty()) {\n History history = undos.pop();\n this.redos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }", "public abstract void undoMove();", "@Override\n\tpublic void redo() {\n\t\tfor (IShape shape : temp) {\n\t\t\tlist.delete(shape);\n\t\t}\n\t}", "@Override\n\tpublic void undo() {\n\t\tfor(SetValueCommand command : setCommands){\n\t\t\tcommand.undo();\n\t\t}\n\t\tif (layoutCommand != null){\n\t\t\tlayoutCommand.undo();\n\t\t}\n\t}", "public void undo() throws CannotUndoException;", "public void undoCommands(ChessBoard board){\n\t\tfor(LiftPlaceCommand command : placeCommandSequence)\n\t\t\tcommand.undoPlace( board);\n\t\tfor(LiftPlaceCommand command : liftCommandSequence)\n\t\t\tcommand.undoLift( board);\n\t\tperformingPiece.decrementMovesMade();\n\t}", "public E redo() {\n if (canRedo()) {\n past.addLast(present);\n present = future.pollLast();\n }\n return getCurrentState();\n }", "public String redo(int locationId, boolean sendEvent) {\n/* 185 */ this.mLocationId = locationId;\n/* 186 */ this.mLastActionIsUndo = false;\n/* 187 */ if (!sendEvent) {\n/* 188 */ this.mRedoCount++;\n/* */ } else {\n/* 190 */ this.mRedoCount = 0;\n/* */ } \n/* 192 */ return performUndoRedo(false, locationId, sendEvent);\n/* */ }", "public void undo() {\n }", "void undo() {\n Move rec = _history.get(_history.size() - 1);\n int to = rec.fromIndex();\n _directions.get(to).remove(_directions.get(to).size() - 1);\n if (rec.isJump()) {\n Move middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), null);\n rec = rec.jumpTail();\n while (rec != null) {\n middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), middle);\n rec = rec.jumpTail();\n }\n while (middle != null) {\n set(middle.fromIndex(), EMPTY);\n set(middle.toIndex(), _whoseMove.opposite());\n set(middle.jumpedCol(), middle.jumpedRow(), _whoseMove);\n middle = middle.jumpTail();\n }\n\n } else {\n int from = rec.toIndex();\n set(to, _whoseMove.opposite());\n set(from, EMPTY);\n\n _directions.get(from).remove(_directions.get(from).size() - 1);\n }\n\n _whoseMove = _whoseMove.opposite();\n _history.remove(_history.size() - 1);\n setChanged();\n notifyObservers();\n }", "public void redo()\r\n {\r\n if (changes!=null)\r\n {\r\n if (changes.getNext()!=null)\r\n {\r\n ignoreChange=true;\r\n changes = changes.getNext();\r\n changes.getElement().redo(doc);\r\n \r\n }\r\n }\r\n }", "private void undoPopItemActionPerformed(java.awt.event.ActionEvent evt) {\n undoredo.undo();\n }", "private void createUndoAndRedo(final DrawingPanel thePanel) {\n myUndo = new JButton();\n myToolBar.add(myUndo);\n \n String imageLocation = \"images/undoicon.png\";\n URL imgFileLocation = PowerPaintGUI.class.getResource(imageLocation);\n \n if (Objects.nonNull(imgFileLocation)) {\n myUndo.setIcon(new ImageIcon(imgFileLocation)); \n } \n final JButton redo = new JButton();\n myToolBar.add(redo);\n imageLocation = \"images/redoicon.png\";\n imgFileLocation = PowerPaintGUI.class.getResource(imageLocation);\n \n if (Objects.nonNull(imgFileLocation)) {\n redo.setIcon(new ImageIcon(imgFileLocation)); \n } \n myUndo.setEnabled(false);\n myUndo.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n thePanel.getCollection().undo();\n redo.setEnabled(true);\n thePanel.repaint();\n if (thePanel.getCollection().isEmpty()) {\n myUndo.setEnabled(false); \n myPcs.firePropertyChange(\"undo\", false, true);\n }\n }\n });\n \n \n myToolBar.add(redo);\n redo.setEnabled(false);\n redo.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(final ActionEvent theEvt) {\n \n thePanel.getCollection().redo();\n thePanel.repaint();\n if (thePanel.getCollection().isRedoEmpty()) {\n redo.setEnabled(false);\n }\n myUndo.setEnabled(true);\n }\n });\n }", "@Override\r\n\tpublic void redo(Transaction tx) {\r\n\t\t// do nothing\r\n\t}", "public boolean undo(){\n\t\tif(!(undoStack.isEmpty())){\n\t\t\tSystem.out.println(\"Undoing one move...\");\n\t\t\tredoStack.push(undoStack.pop());\n\t\t\tthis.setState(undoStack.pop());\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Undo is not available\");\n\t\t\treturn false;\n\t\t}\n\t}", "public void undoAction(){}", "private void cmdUndo() throws NoSystemException {\n \ttry {\n\t\t\tsystem().undoLastStatement();\n\t\t} catch (MSystemException e) {\n\t\t\tLog.error(e.getMessage());\n\t\t}\n }", "private void addUndoStep(IHexEditorCommand comm) {\n\t\tif (!comm.execute())\n\t\t\treturn;\n\t\tint maxundo = Activator.getDefault().getPreferenceStore().getInt(HexEditorConstants.PROPERTY_MAX_UNDO_STEPS);\n\n\t\tundolist.push(comm);\n\t\tredolist.clear();\n\n\t\tif (maxundo > 0 && undolist.size() > maxundo) {\n\t\t\tundolist.remove(0);\n\t\t}\n\n\t\thexEditor.setDirty(true);\n\t\tupdateActions();\n\t}", "public void initRedo(){\n redoEffects = (EditStack<Integer>) history.clone();\n redoParams = (EditStack<Float>) historyValues.clone();\n }", "@Override\n T undo();", "@Override\n\t/**\n\t * redo is irrelevant in this case\n\t */\n\tpublic Task[] redo() {\n\t\treturn null;\n\t}", "public void undo() {\n setExecuted(false);\n }", "boolean undoMove();", "public void moveThroughList() {\n\t\tint choice = 0;\n\t\tint i = 0;\n\t\tint j = 0;\n\n\t\tSystem.out.println(\"1. \" + \"\\t\" + \"undo ( Move backwards through list)\");\n\t\tSystem.out.println(\"2. \" + \"\\t\" + \"redo ( Move forwards through list\");\n\t\tSystem.out.println(\"3. \" + \"\\t\" + \"Exit Method\");\n\t\t\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner input = new Scanner(System.in);\n\t\tMove test;\n\t\t\n\t\t\n\t\t\n\tdo {\n\t\ttry {\n\t\tchoice = input.nextInt();\n\t\t//Undo Move\n\t\tif (choice == 1) {\n\t\t\t\n\t\t\ti = (model.moves.size() - 1); \n\t\t//\tSystem.out.println(\"i is: \" + i);\n\t\t\tif(i == 0) {\n\t\t\t\tSystem.out.println(\"There are no more moves to undo\");\n\t\t\t}\n\t\t\t\n\t\t\ttest = model.moves.get(i);\n\t\t\tundoBoard(test);\n\t\t\tmodel.copy.add(test);\n\t\t\tmodel.moves.remove(test);\n\t\t\t System.out.println(\"Move has been removed \");\n\t\t//\tmodel.printList();\n\t\t\t\n\t\t\t//Redo Move\n\t\t} else if (choice == 2) {\n\n\t\t\tj = (model.copy.size() - 1);\n\t\t\t//System.out.println(\"J is: \" + j );\n\t\t\tif(j == -1) {\n\t\t\t\tSystem.out.println(\"There are no moves to copy\");\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\n\t\t\tMove copy = model.copy.get(j);\n\t\t\tmodel.moves.add(copy);\n\t\t\tmodel.copy.remove(copy);\n\t\t\ti = (model.moves.size() - 1);\n\t\t\t//System.out.println(\"i is: \" + i);\n\t\t\ttest = model.moves.get(i);\n\t\t\tredoBoard(test);\n\t\t\tSystem.out.println(\"move added\");\n\t\t//\tmodel.printList();\n\t\t\t}\n\t\t} \n\t\t}catch(InputMismatchException e) {\n\t\t\tSystem.out.println(\"Error in input. Please try again\");\n\t\t}\n\t\t//Exit method\n\t} while(choice != 3);\n\t\t\n\t\t\n\t}", "public static BufferedImage redo (BufferedImage bi)\n {\n BufferedImage oldImage = bi;\n if (undo)\n {\n imageList.add(bi);\n JOptionPane messageBox = new JOptionPane();\n try\n {\n oldImage = redoList.get(redoList.size()-1); // the last in the list\n redoList.remove(redoList.size()-1); \n undoCount --;\n }\n catch (ArrayIndexOutOfBoundsException e)\n {\n // if no more images to redo \n }\n }\n if (undoCount <=0)\n undo = false;\n return oldImage;\n }", "private void initRedo(){\n view.getUndo().setOnAction(event -> {\n String title = \"Confirm\";\n String message = (isWhiteTurn ? whiteName : blackName) + \", do you really wish to redo?\";\n ConfirmBox.display(title, message);\n if (ConfirmBox.isConfirmed){\n model.undo();\n view.getUndo().setDisable(true);\n isWhiteTurn = !isWhiteTurn;\n view.refreshPieces();\n initListener();\n updateInformation();\n }\n });\n }", "@Override\n public boolean redo() {\n // nothing required to be done\n return false;\n }", "public final void undo() {\n\t\tthis.historyManager.undo();\n\t}", "public String getNextRedoAction() {\n/* 899 */ String result = \"\";\n/* 900 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled() || this.mPdfViewCtrl.getDoc() == null) {\n/* 901 */ return result;\n/* */ }\n/* */ \n/* 904 */ removeUnsafeUndoRedoInfo(false);\n/* 905 */ String info = null;\n/* */ try {\n/* 907 */ info = this.mPdfViewCtrl.getNextRedoInfo();\n/* 908 */ if (sDebug)\n/* 909 */ Log.d(TAG, \"next redo: \" + info); \n/* 910 */ JSONObject jsonObj = new JSONObject(info);\n/* 911 */ if (jsonObj.has(\"Action\")) {\n/* 912 */ String action = jsonObj.getString(\"Action\");\n/* 913 */ if (this.mContext != null && isValidAction(this.mContext, action)) {\n/* 914 */ String strRedo = this.mContext.getResources().getString(R.string.redo);\n/* 915 */ result = strRedo + \": \" + action;\n/* */ } \n/* */ } \n/* 918 */ } catch (Exception e) {\n/* 919 */ if (info == null || !info.equals(\"state not found\")) {\n/* 920 */ AnalyticsHandlerAdapter.getInstance().sendException(e, \"next redo info: \" + ((info == null) ? \"null\" : info));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 925 */ return result;\n/* */ }", "public void undo() {\n\t\t\r\n\t}", "public void executeNewCommand(Command cmd)\n {\n if (mHistoryIdx < mCommandList.size()) {\n if (clobber) {\n /* Overwrite (well, remove) history past this point */\n while (mHistoryIdx < mCommandList.size()) {\n mCommandList.remove(mCommandList.size() - 1);\n this.setChanged();\n this.notifyObservers(HISTORY_CLOBBERED);\n }\n } else {\n throw new RuntimeException(\n \"Cannot execute new command while not and the end of the \" +\n \"command list\");\n }\n }\n\n mCommandList.add(cmd);\n cmd.redo();\n mHistoryIdx++;\n this.setChanged();\n this.notifyObservers(cmd);\n }", "void undoPreviousAction() throws NothingToUndoException;", "public static boolean isUndoOrRedo(String command) {\r\n\t\tassert command != null;\r\n\t\tcommandType = Logic.determineCommandType(command);\r\n\t\tswitch (commandType) {\r\n\t\tcase UNDO:\r\n\t\t\treturn true;\r\n\t\tcase REDO:\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n\tprotected CommandResult doUndoWithResult(IProgressMonitor progressMonitor,\n\t\t\tIAdaptable info) throws ExecutionException {\n\t\tpasteCommand.doUndoWithResult(progressMonitor, info);\n\t\treturn null;\n\t}", "public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }" ]
[ "0.8401968", "0.7899706", "0.7818349", "0.7701521", "0.75523967", "0.75420064", "0.7432765", "0.7409849", "0.7377212", "0.7265256", "0.72435355", "0.720554", "0.7145608", "0.7142424", "0.71291924", "0.7124875", "0.71094817", "0.7074701", "0.70701075", "0.70535696", "0.7025582", "0.7021801", "0.70113015", "0.70105004", "0.6939961", "0.6930742", "0.6869269", "0.68591607", "0.683607", "0.68104565", "0.6794326", "0.6776431", "0.6771818", "0.6731292", "0.67299056", "0.67242134", "0.6706114", "0.67016387", "0.6697941", "0.6681746", "0.65861833", "0.6577389", "0.65508616", "0.64882684", "0.64882296", "0.6485934", "0.6484792", "0.64823276", "0.6474793", "0.64331007", "0.64196247", "0.6405522", "0.6394195", "0.63776386", "0.63611865", "0.6360641", "0.6347749", "0.63453484", "0.6300834", "0.62823445", "0.6275868", "0.6273454", "0.626168", "0.6253383", "0.6253383", "0.6246961", "0.62454754", "0.62377757", "0.62284863", "0.6196005", "0.61904985", "0.6162331", "0.61547124", "0.6132833", "0.6132184", "0.60945964", "0.6089993", "0.6086077", "0.6078205", "0.6077158", "0.6076266", "0.60655266", "0.6058851", "0.605544", "0.6051737", "0.60378194", "0.60307664", "0.60195524", "0.6018981", "0.6018973", "0.60105294", "0.6000647", "0.5985354", "0.59763455", "0.59662336", "0.59585816", "0.5939256", "0.5929652", "0.591091", "0.5908688" ]
0.83322006
1
Executes the command and adds a command to undolist, then redolist is cleared. undolist.size() will always be less than PROPERTY_MAX_UNDO_STEPS
private void addUndoStep(IHexEditorCommand comm) { if (!comm.execute()) return; int maxundo = Activator.getDefault().getPreferenceStore().getInt(HexEditorConstants.PROPERTY_MAX_UNDO_STEPS); undolist.push(comm); redolist.clear(); if (maxundo > 0 && undolist.size() > maxundo) { undolist.remove(0); } hexEditor.setDirty(true); updateActions(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void undo () {\r\n\t\tCommand cmd = undoCommands.pop();\r\n\t\tcmd.undo();\r\n\t\tredoCommands.push(cmd);\r\n\t}", "public void redo() {\n\t\tif (redolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = redolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.execute();\n\t\tundolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tupdateActions();\n\t\tcursor.update();\n\t}", "public void executeUndoCommand(){\n for (Command command: undoStack) {\n command.execute();\n }\n }", "public void process() {\n \n//System.out.println(\"UndoCommand.undo()\");\n//System.out.println(\" command: \" + command.getDescription());\n//System.out.println(\" isTransient: \" + command.isTransient());\n//System.out.println(\" isUndoable: \" + command.isUndoable());\n\n try {\n \n command.undo();\n\n // Move the command to the top of the redo stack\n redoCommands.push(command);\n\n // Trim the redo stack\n if (redoCommands.size() > maxSize) {\n redoCommands.setSize(maxSize);\n } \n \n // finally, notify listeners of the change\n for (int i = 0; i < commandListeners.size(); i++) {\n CommandListener l = commandListeners.get(i);\n l.commandExecuted(command);\n }\n\n } catch (Exception e) {\n errorReporter.errorReport(\"Undo of \" + command.getDescription() + \" command failed.\", e);\n }\n\n }", "public void undo() {\n\t\tif (undolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = undolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.revoke();\n\t\tredolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tcursor.update();\n\t\tupdateActions();\n\t}", "@Override\r\n\tpublic void undo() {\n\t\tfor (int i = 0; i < command.length; i++) {\r\n\t\t\tcommand[i].undo();\r\n\t\t}\r\n\t}", "public void undo() {\n if (!undos.isEmpty()) {\n Command toUndo = undos.removeLast();\n redos.addLast(toUndo);\n toUndo.undo();\n } \n }", "public void undo() {\n if (!history.isEmpty()) {\n Command c = history.get(0);\n c.undo();\n history.remove(0);\n future.add(0, c);\n }\n }", "protected final void redo() {\n requireNonNull(model);\n try {\n executeUndoableCommand();\n } catch (CommandException ce) {\n throw new AssertionError(\"The command has been successfully executed previously; \"\n + \"it should not fail now\");\n }\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "public void undoLast() {\t\t\n\t\tCommand command = undoStack.pop();\n\t\tcommand.undo();\n\t}", "public static void redo () {\r\n\t\tCommand cmd = redoCommands.pop();\r\n\t\tcmd.redo();\r\n\t\tundoCommands.push(cmd);\r\n\t}", "public void undo() {\n\t\tif (lastCommand != null) {\n\t\t\tlastCommand.undo();\n\t\t\tlastCommand = null;\n\t\t}\n\t}", "public void redo() {\n if (!redos.isEmpty()) {\n Command toRedo = redos.removeLast();\n undos.addLast(toRedo);\n toRedo.execute();\n }\n }", "public synchronized void undo(){\n int index_of_last_operation = instructions.size() - 1;\n if (index_of_last_operation >= 0){\n instructions.remove(index_of_last_operation);\n }\n }", "boolean undoLastCommand() throws Exception;", "public void undoComamnd(Command command){\n undoStack.add(command);\n }", "@Override\n\tpublic void undo() {\n\t\tfor(SetValueCommand command : setCommands){\n\t\t\tcommand.undo();\n\t\t}\n\t\tif (layoutCommand != null){\n\t\t\tlayoutCommand.undo();\n\t\t}\n\t}", "public void redoUndoneCommand() {\r\n // TODO: Fix me!!!\r\n try {\r\n char c=redo.pop();\r\n //redo.push(c);\r\n if(c=='c'){\r\n super.rotateClockwise();\r\n }\r\n if(c=='r'){\r\n super.rotateCounterClockwise();\r\n }\r\n if(c=='m'){\r\n super.moveForward();\r\n }\r\n } catch (Exception e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public void undo() {\n setExecuted(false);\n }", "public void doUndo()\n {\n // Get the last thing we did and reverse it, then remove it from the undoable stuff\n // This process is similar to 'Both Tool' being clicked on a hex with old values\n LinkedList\t\t\tlastChange = (LinkedList) undoableChanges.getLast();\n \n if (lastChange != null)\n {\n ListIterator\t\tit = lastChange.listIterator(0);\n ChangedMUXHex\t\tchangedHex;\n \n while (it.hasNext())\n {\n changedHex = (ChangedMUXHex) it.next();\n // We'll assume the hex is valid since it's in this list\n map.setHex(changedHex.getLocation(), changedHex.getPrevTerrain(), changedHex.getPrevElevation());\n mapComponent.repaint(mapComponent.rectForHex(changedHex.getLocation()));\n }\n \n // Repaint the hexes\n //mapComponent.repaint();\n \n // Remove what we just undid from our undoable list\n undoableChanges.removeLast();\n }\n }", "public void redo() {\n if (!future.isEmpty()) {\n Command c = future.get(0);\n c.redo();\n future.remove(0);\n history.add(0, c);\n }\n }", "protected abstract void internalUndo();", "public void undo() {\n\t\tif (doily.lines.size() > 0) {\n\t\t\tLine line = getLastLine();\n\t\t\tdoily.lines.remove(line);\n\t\t\tredoStack.push(line);\n\t\t\tredraw();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Undo Failed - Nothing to undo\", \n\t\t\t\t\t\"Undo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "public void redo() {\n firePropertyChange(ARRAY_STRING, null, NOT_EMPTY_STRING);\n myDrawingArray.add(myUndoStack.pop());\n if (myUndoStack.isEmpty()) {\n firePropertyChange(\"emptystack\", null, EMPTY_STRING);\n }\n repaint();\n }", "private void cmdUndo() throws NoSystemException {\n \ttry {\n\t\t\tsystem().undoLastStatement();\n\t\t} catch (MSystemException e) {\n\t\t\tLog.error(e.getMessage());\n\t\t}\n }", "public void redo() throws CannotRedoException;", "public static void clearUndoCommands() {\r\n\t\tundoCommands.clear();\r\n\t}", "@Override\r\n\tpublic void undo() throws InstructionExecutionException {\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.robotContainer.pickItem(id);\r\n\t\t\tthis.robotContainer.addItem(lastItem);\r\n\t\t\tthis.engine.addFuel(lastFuel-this.engine.getFuel());\r\n\t\t\tthis.engine.addRecycledMaterial(lastRecycledMaterial-this.engine.getRecycledMaterial());\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow new InstructionExecutionException();\r\n\t\t}\r\n\t}", "public void undo() throws CannotUndoException;", "public void undoAll() {\r\n\t\tListIterator<Command> it = stack.listIterator(stack.size());\r\n\r\n\t\twhile (it.hasPrevious())\r\n\t\t\ttry {\r\n\t\t\t\tit.previous().undo();\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t}", "public void undoAction(){}", "void processUndo() {\r\n boardManager.undo();\r\n }", "private void cmdRedo() throws NoSystemException {\n \ttry {\n\t\t\tsystem().redoStatement();\n\t\t} catch (MSystemException e) {\n\t\t\tLog.error(e.getMessage());\n\t\t}\n }", "public void executeRedoCommand(){\n for (Command command: redoStack) {\n command.execute();\n }\n }", "public void redo() {\n\t\tif (redoStack.size() > 0) {\n\t\t\tdoily.lines.add(redoStack.pop());\n\t\t\trepaint();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Redo Failed - Nothing to redo\", \n\t\t\t\t\t\"Redo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "public void undo() {\n\t\tcmd = new UndoCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void undo () {\n // The restores must be run in the reverse order they are added.\n for (int i = restores.size() - 1; i >= 0; --i) {\n restores.get(i).run();\n }\n restores.clear();\n }", "void redo();", "void undo();", "public void undo() {\n }", "public abstract void undo();", "@Override\n\tpublic void redo() {\n\t\tfor(SetValueCommand command : setCommands){\n\t\t\tcommand.redo();\n\t\t}\n\t\tif (layoutCommand != null){\n\t\t\tlayoutCommand.redo();\n\t\t}\n\t}", "@Test\n public void execute() {\n expectedModel.undoActiveCardFolder();\n assertCommandSuccess(new UndoCommand(), model, commandHistory, UndoCommand.MESSAGE_SUCCESS, expectedModel);\n\n // single undoable state in model\n expectedModel.undoActiveCardFolder();\n assertCommandSuccess(new UndoCommand(), model, commandHistory, UndoCommand.MESSAGE_SUCCESS, expectedModel);\n\n // no undoable states in model\n assertCommandFailure(new UndoCommand(), model, commandHistory, UndoCommand.MESSAGE_FAILURE);\n }", "public void redo() {\n\t\t\n\t}", "public abstract void redo();", "boolean redoLastCommand() throws Exception;", "public void executeNewCommand(Command cmd)\n {\n if (mHistoryIdx < mCommandList.size()) {\n if (clobber) {\n /* Overwrite (well, remove) history past this point */\n while (mHistoryIdx < mCommandList.size()) {\n mCommandList.remove(mCommandList.size() - 1);\n this.setChanged();\n this.notifyObservers(HISTORY_CLOBBERED);\n }\n } else {\n throw new RuntimeException(\n \"Cannot execute new command while not and the end of the \" +\n \"command list\");\n }\n }\n\n mCommandList.add(cmd);\n cmd.redo();\n mHistoryIdx++;\n this.setChanged();\n this.notifyObservers(cmd);\n }", "void undoPreviousAction() throws NothingToUndoException;", "public UndoableCommand redo() {\n logger.info(String.format(\"----------------[REDOING][%s]\", this));\n return new AddActivityCommand(activityAdded, true);\n }", "@Override\n\tpublic void redo() {\n\t\t\n\t}", "@Override\n public void undo(int numToUndo) {\n }", "@Override\n public void redo() {\n\n }", "public final void redo() {\n\t\tthis.historyManager.redo();\n\t}", "public void redo() {\n\t\tcmd = new RedoCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void undoCommands(int n) {\r\n \t// TODO: Three lines of code, if you use undoCommand\r\n for(int i=0;i<n;i++){\r\n undoCommand();\r\n }\r\n }", "public void undo() {\n\t\t\r\n\t}", "void redoPreviousAction() throws NothingToRedoException;", "protected void executionSuccess() {\n this.isUndoable = true;\n }", "public void undoMove();", "public void redoAction() {\n executeAction();\n }", "@Override\n\tpublic void onUndoNotPossible() {\n\n\t}", "@Override\n\tpublic void undo()\n\t{\n\t}", "@Override\n T undo();", "@Override\n public boolean canUndo() {\n return false;\n }", "public boolean canUndo();", "public boolean canUndo();", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n\tpublic void undo() {\n\t\t\n\t}", "@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }", "void undo() {\r\n if (_moveCount > 0) {\r\n undoPosition();\r\n }\r\n }", "public void undo() {\n firePropertyChange(\"undo\", null, \"enable\");\n final Drawing removeMe = myDrawingArray.get(myDrawingArray.size() - 1);\n myDrawingArray.remove(removeMe);\n myUndoStack.push(removeMe);\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(\"stack\", null, EMPTY_STRING);\n }\n repaint();\n }", "@Override\n\tprotected CommandResult doUndoWithResult(IProgressMonitor progressMonitor,\n\t\t\tIAdaptable info) throws ExecutionException {\n\t\tpasteCommand.doUndoWithResult(progressMonitor, info);\n\t\treturn null;\n\t}", "@Override\n public void undo() {\n\n }", "@Override\n public void undo() {\n\n }", "@Override\n public void redo(int numToRedo) {\n }", "public abstract void undoMove();", "void undo() {\n Move rec = _history.get(_history.size() - 1);\n int to = rec.fromIndex();\n _directions.get(to).remove(_directions.get(to).size() - 1);\n if (rec.isJump()) {\n Move middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), null);\n rec = rec.jumpTail();\n while (rec != null) {\n middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), middle);\n rec = rec.jumpTail();\n }\n while (middle != null) {\n set(middle.fromIndex(), EMPTY);\n set(middle.toIndex(), _whoseMove.opposite());\n set(middle.jumpedCol(), middle.jumpedRow(), _whoseMove);\n middle = middle.jumpTail();\n }\n\n } else {\n int from = rec.toIndex();\n set(to, _whoseMove.opposite());\n set(from, EMPTY);\n\n _directions.get(from).remove(_directions.get(from).size() - 1);\n }\n\n _whoseMove = _whoseMove.opposite();\n _history.remove(_history.size() - 1);\n setChanged();\n notifyObservers();\n }", "private void createUndoAndRedo(final DrawingPanel thePanel) {\n myUndo = new JButton();\n myToolBar.add(myUndo);\n \n String imageLocation = \"images/undoicon.png\";\n URL imgFileLocation = PowerPaintGUI.class.getResource(imageLocation);\n \n if (Objects.nonNull(imgFileLocation)) {\n myUndo.setIcon(new ImageIcon(imgFileLocation)); \n } \n final JButton redo = new JButton();\n myToolBar.add(redo);\n imageLocation = \"images/redoicon.png\";\n imgFileLocation = PowerPaintGUI.class.getResource(imageLocation);\n \n if (Objects.nonNull(imgFileLocation)) {\n redo.setIcon(new ImageIcon(imgFileLocation)); \n } \n myUndo.setEnabled(false);\n myUndo.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n thePanel.getCollection().undo();\n redo.setEnabled(true);\n thePanel.repaint();\n if (thePanel.getCollection().isEmpty()) {\n myUndo.setEnabled(false); \n myPcs.firePropertyChange(\"undo\", false, true);\n }\n }\n });\n \n \n myToolBar.add(redo);\n redo.setEnabled(false);\n redo.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(final ActionEvent theEvt) {\n \n thePanel.getCollection().redo();\n thePanel.repaint();\n if (thePanel.getCollection().isRedoEmpty()) {\n redo.setEnabled(false);\n }\n myUndo.setEnabled(true);\n }\n });\n }", "public interface Command {\n\n void execute();\n void undo();\n}", "public interface Command\n{\n public void execute();\n public void undo();\n}", "@Override\r\n public void undo() {\n\r\n }", "public CommandResult undo(UniqueTaskList tasks) {\n if (!previousTask.isEmpty()) {\n Task userTask = previousTask.pop();\n String userAction = previousActionType.pop();\n int taskIndex = previousActionIndex.pop();\n\n switch (userAction) {\n // previous action was an add; delete the added task\n case \"add\":\n try {\n tasks.remove(userTask);\n if (userTask.toString().equals(userTask.getUndoFormatString())) {\n previousActionUndoString = userAction + \" \" + userTask.getUndoFormatString();\n } else {\n previousActionUndoString = userAction + \" \" + userTask.getName() + \" \"\n + userTask.getUndoFormatString();\n }\n } catch (TaskNotFoundException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_TASK_NOT_FOUND, userTask.getUndoFormatString()));\n }\n break;\n // previous action was a delete; add back the deleted task\n case \"delete\":\n try {\n tasks.add(taskIndex, userTask);\n previousActionUndoString = userAction + \" \" + (taskIndex + 1);\n } catch (DuplicateTaskException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_DUPLICATE_TASK_FOUND, userTask.getUndoFormatString()));\n }\n break;\n // previous action was an edit; set back the old task\n case \"edit\":\n try {\n Task temp = tasks.getTaskFromIndex(taskIndex);\n tasks.edit(taskIndex, userTask);\n previousActionUndoString = \"edit\" + \" \" + (taskIndex + 1) + \" \" + temp.getUndoFormatString();\n } catch (TaskNotFoundException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_TASK_NOT_FOUND, userTask.getUndoFormatString()));\n }\n break;\n // previous action was a complete; set the task back to pending\n case \"complete\":\n previousActionUndoString = userAction + \" \" + (taskIndex + 1);\n userTask = tasks.getTaskFromIndex(taskIndex);\n userTask.setPending();\n break;\n // previous action was a clear for completed tasks; add back the\n // tasks that were completed\n case \"clear\":\n previousActionUndoString = userAction;\n List<Task> lastCleared = previousClearedTasks.pop();\n List<Integer> lastClearedIndices = previousClearedIndices.pop();\n\n for (int i = 0; i < lastCleared.size(); i++) {\n int indexToUnclear = lastClearedIndices.get(i);\n Task taskToUnclear = lastCleared.get(i);\n taskToUnclear.setComplete();\n try {\n tasks.add(indexToUnclear, taskToUnclear);\n } catch (DuplicateTaskException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_DUPLICATE_TASK_FOUND, userTask.getUndoFormatString()));\n }\n }\n break;\n // previous action was a clear all regardless of status; add back\n // the tasks that were cleared\n case \"clear all\":\n previousActionUndoString = \"clear /a\";\n List<Task> lastClearedAll = previousClearedTasks.pop();\n List<Integer> lastClearedAllIndices = previousClearedIndices.pop();\n List<String> lastClearedStatuses = previousClearedStatus.pop();\n\n for (int i = 0; i < lastClearedAll.size(); i++) {\n int indexToUnclear = lastClearedAllIndices.get(i);\n Task taskToUnclear = lastClearedAll.get(i);\n String taskStatus = lastClearedStatuses.get(i);\n if (taskStatus.equals(\"Complete\")) {\n taskToUnclear.setComplete();\n } else {\n taskToUnclear.setPending();\n }\n\n try {\n tasks.add(indexToUnclear, taskToUnclear);\n } catch (DuplicateTaskException e) {\n return new CommandResult(\n String.format(Messages.MESSAGE_DUPLICATE_TASK_FOUND, userTask.getUndoFormatString()));\n }\n }\n break;\n default:\n System.out.println(\"Error occurred in undo stack\");\n }\n } else {\n throw new EmptyStackException();\n }\n return new CommandResult(MESSAGE_NOTHING_TO_UNDO);\n }", "public void undo() {\n\t\tif (currentPlayer.getUndos() > 0) {\n\t\t\tcurrentPlayer.updateUndos();\n\t\t\t//System.out.println(\"Current Player's Undos!\" + currentPlayer.getUndos());\n\t\t\tturnEnd = false;\n\t\t\tmadeMove = false;\n\t\t\tboard = cloneForUndo;\n\t\t\t//printBoard();\n\t\t}\n\t}", "@Test\n public void parseCommand_undo() throws Exception {\n assertTrue(parser.parseCommand(UndoCommand.COMMAND_WORD) instanceof UndoCommand);\n assertTrue(parser.parseCommand(UndoCommand.COMMAND_WORD + \" \" + PREFIX_UNDO_REDO + \"all\")\n instanceof UndoCommand);\n assertTrue(parser.parseCommand(UndoCommand.COMMAND_WORD + \" \" + PREFIX_UNDO_REDO + \"5\")\n instanceof UndoCommand);\n assertTrue(parser.parseCommand(UndoCommand.COMMAND_WORD + \" \" + PREFIX_UNDO_REDO + \"0\")\n instanceof UndoCommand);\n assertTrue(parser.parseCommand(UndoCommand.COMMAND_WORD + \" \" + PREFIX_UNDO_REDO + \"-5\")\n instanceof UndoCommand);\n }", "private void addUndoButton() {\n\t\tundoButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.UNDO);\n undoButton.setEnabled(false);\n\t\ttoolPanel.add(undoButton);\n\t\tredoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcontroller.getCommandManager().undoCommand();\n\t\t\t}\n\n\t\t});\n\t}", "private String undo() {\n if (!undos.isEmpty()) {\n History history = undos.pop();\n this.redos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }", "public void redoUndoneCommands(int n) {\r\n \t// TODO: Also three lines of code\r\n for(int i=0;i<n;i++)\r\n redoUndoneCommand();\r\n }", "@Override\n public void undo(History history) throws CommandExecutionException {\n try {\n transactionManager.deleteTransaction((Integer) history.getData(\"transactionId\"));\n history.setUndone(true);\n String oldMessage = history.getDisplayString();\n String newMessage = oldMessage + \" has been undone\";\n history.setDisplayString(newMessage);\n gateway.update(history, History.class);\n } catch (Exception e) {\n throw new CommandExecutionException(e);\n }\n }", "public void executeViaUndoManager(String label, Command command) {\n\t\tif (command.canExecute()) {\n\t\t\tif (undoManager != null) {\n\t\t\t\tundoManager.beginRecording(this, label);\n\t\t\t\tcommand.execute();\n\t\t\t\tundoManager.endRecording(this);\n\t\t\t} else\n\t\t\t\texecuteViaStack(command);\n\t\t}\n\t}", "private void undoDelete() {\n if (!mReversDeleteItemPositionsList.isEmpty()) {\n\n mAllItems.add(mReversDeleteItemPositionsList.get(mReversDeleteItemPositionsList.size() - 1),\n mReverseDeleteItemsList.get(mReverseDeleteItemsList.size() - 1));\n //subtract from pallet total\n mPickHandlerInterface.subtractFromTOtal(Integer.parseInt(mReverseDeleteItemsList.get(mReversDeleteItemPositionsList.size() - 1).getCaseQuantity()));\n notifyItemInserted(mReversDeleteItemPositionsList.get(mReversDeleteItemPositionsList.size() - 1));\n mReverseDeleteItemsList.remove(mReverseDeleteItemsList.size() - 1);\n mReversDeleteItemPositionsList.remove(mReversDeleteItemPositionsList.size() - 1);\n showUndoSnackbar();\n SendInformationToActivity();\n\n }\n\n }", "public boolean undo(){\n\t\tif(!(undoStack.isEmpty())){\n\t\t\tSystem.out.println(\"Undoing one move...\");\n\t\t\tredoStack.push(undoStack.pop());\n\t\t\tthis.setState(undoStack.pop());\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Undo is not available\");\n\t\t\treturn false;\n\t\t}\n\t}", "public final void undo() {\n\t\tthis.historyManager.undo();\n\t}", "public static void record (Command cmd) {\r\n\t\t// Since there is just one instance of each command instantiated\r\n\t\t// when we create the GUI, we would have only one undo state \r\n\t\t// available without the clone. We need to clone the command\r\n\t\t// to support multi-level undo.\r\n\t\tundoCommands.push((Command) cmd.clone());\r\n\t}", "public static void clearRedoCommands() {\r\n\t\tredoCommands.clear();\r\n\t}", "void Undo() {\n if (shapes.size() > 0) {\n shapes.remove(shapes.size() - 1);\n lineColours.remove(lineColours.size() - 1);\n currentPenColour = lineColours.get(lineColours.size() - 1);\n fillColours.remove(fillColours.size() - 1);\n currentFillColour = fillColours.get(fillColours.size() - 1);\n writeFile.undoWrite();\n repaint();\n }\n }", "public void undoCommands(ChessBoard board){\n\t\tfor(LiftPlaceCommand command : placeCommandSequence)\n\t\t\tcommand.undoPlace( board);\n\t\tfor(LiftPlaceCommand command : liftCommandSequence)\n\t\t\tcommand.undoLift( board);\n\t\tperformingPiece.decrementMovesMade();\n\t}", "public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }", "public String redo() {\n/* 173 */ return redo(0, false);\n/* */ }", "protected void undoSuccess() {\n this.isRedoable = true;\n this.isUndoable = false;\n }" ]
[ "0.71729827", "0.71594435", "0.71259564", "0.7115354", "0.70574695", "0.7022363", "0.6979502", "0.6967178", "0.68735886", "0.6871291", "0.68682474", "0.685393", "0.68058383", "0.6712866", "0.6626028", "0.66202664", "0.65401894", "0.65318346", "0.6525287", "0.65156627", "0.6502378", "0.64829975", "0.6474933", "0.64730173", "0.6444276", "0.6440084", "0.642321", "0.6412242", "0.6410068", "0.640639", "0.6392033", "0.63895583", "0.6380084", "0.63730264", "0.63499856", "0.63247925", "0.6319287", "0.63035184", "0.6290246", "0.62862015", "0.62811106", "0.62776476", "0.62670565", "0.62317365", "0.62038237", "0.61987627", "0.61539954", "0.61474156", "0.6143294", "0.61371934", "0.61314934", "0.6116617", "0.61158144", "0.6115035", "0.6113179", "0.61069816", "0.60933477", "0.6087135", "0.6083945", "0.6059178", "0.6058314", "0.605817", "0.60546845", "0.6047377", "0.60306627", "0.60306627", "0.60300577", "0.60300577", "0.60300577", "0.5988156", "0.59840095", "0.59740025", "0.5960838", "0.59608173", "0.59608173", "0.5953569", "0.59438336", "0.59404266", "0.59285724", "0.59276396", "0.5903317", "0.5901156", "0.5893561", "0.58898133", "0.58704305", "0.5868097", "0.58472514", "0.58452773", "0.58451885", "0.5844796", "0.584319", "0.58396685", "0.5833109", "0.5830037", "0.5820926", "0.581681", "0.58074266", "0.58033955", "0.57871425", "0.5778574" ]
0.7104562
4
Just the same as execute()
@Override public void revoke() { core(HexEditorConstants.CELL_STATUS_UNDO); if (singleCommand) { table.select(row); cursor.setSelection(row, col + 1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CommandResult execute();", "public int execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "T execute() throws Exception;", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "R execute();", "boolean execute();", "protected abstract void execute();", "abstract protected void execute();", "public abstract T execute() throws Exception;", "protected void execute() {}", "public abstract int execute();", "public abstract void execute();", "public abstract void execute();", "public abstract void execute();", "@Override\n public void execute() {}", "@SuppressWarnings(\"unchecked\")\n public void execute() {\n execute(null, null);\n }", "@Override\r\n\tpublic void execute() {\n }", "void execute() throws Exception;", "public boolean execute();", "public void execute(){\n\t\t\n\t}", "@Override\n\tpublic void execute() {\n\t\t\n\t}", "public void execute() {\n\t\t\n\t}", "protected abstract void execute() throws Exception;", "int executeSafely();", "public abstract ExecuteResult<T> execute() throws SQLException;", "DBCursor execute();", "abstract public void execute(Parameters p);", "@Override\r\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n\t}", "protected void execute() {\n\t\t\n\t}", "public void execute() {\r\n\t\r\n\t}", "public void execute() {\n }", "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "@Override\n\tpublic void execute() {\n\t}", "private void executeQuery() {\n }", "@Override\n public void execute() {\n }", "public void execute() {\n\n\t}", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "Row<K, C> execute();", "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}", "protected void execute()\n {\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<T> T execute() throws DatabaseException;", "public void execute(){\n\n }", "protected void execute()\n\t{\n\t}", "@Override\n\tpublic String execute() throws Exception {\n\t\t\n\t\treturn super.execute();\n\t}", "String execute(String... parameters);", "abstract void execute() throws Exception;", "protected void execute() {\n\n\t}", "@Override\r\n\tprotected void execute() {\r\n\t}", "@Override\n\tpublic void execute(String[] params) {\n\n\t}", "protected void execute() {\r\n }", "protected void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n\r\n\t}", "public void execute() {\n // empty\n }", "@Override\r\n\tpublic void execute() throws Exception {\n\t\t\r\n\t}", "@Override\n\tpublic Object execute() {\n\n\t\treturn null;\n\t}", "public native int execute(String name);", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "CommandResult execute(String commandText) throws Exception;", "public void execute() {\n execute0();\n }", "@Override\n protected void execute() {\n\n }", "protected void execute() {\n\n\n \n }", "ResponseEntity execute();", "public int execute() throws LuaException\n {\n ResultSet rs = (ResultSet) L.getObjectFromUserdata(2);\n \n L.pushJavaObject(new LuaSQLCursor(L, rs));\n \n return 1;\n }", "private void executeRequest(String sql) {\n\t}", "public int execute(String sql) throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\n protected void execute() {\n \n }", "@Override\r\n\tpublic String execute() throws Exception {\n\t\treturn null;\r\n\t}", "ExecutionResult<Void> execute();", "protected abstract void executeHelper();", "public abstract void execute(Serializable obj);", "boolean execute() throws SQLException;" ]
[ "0.8032654", "0.7924881", "0.7816614", "0.7816614", "0.7816614", "0.7816614", "0.7816614", "0.7816614", "0.7816614", "0.781467", "0.77994955", "0.77994955", "0.77994955", "0.77994955", "0.7670687", "0.7663899", "0.7630236", "0.76041096", "0.7586469", "0.75674653", "0.7554924", "0.75131315", "0.75131315", "0.75131315", "0.7496629", "0.7430266", "0.7385531", "0.7355523", "0.73514575", "0.73452944", "0.7345026", "0.731008", "0.72457397", "0.72451425", "0.72417444", "0.7222617", "0.7208301", "0.7178734", "0.7178734", "0.71733695", "0.71391034", "0.7133971", "0.713047", "0.713047", "0.713047", "0.7129308", "0.71223295", "0.71206975", "0.7115028", "0.7110901", "0.7110901", "0.709265", "0.70752096", "0.70752096", "0.70752096", "0.7051404", "0.7039674", "0.7039674", "0.7039674", "0.7039674", "0.7039674", "0.7039674", "0.7039674", "0.7039674", "0.7039674", "0.7039674", "0.7039674", "0.7039674", "0.7034449", "0.7031576", "0.7025646", "0.7023988", "0.70130366", "0.7012516", "0.69886315", "0.6984882", "0.695686", "0.6955701", "0.69490737", "0.69466317", "0.6914788", "0.69069374", "0.68917364", "0.68614376", "0.68614084", "0.68614084", "0.68614084", "0.6851828", "0.683728", "0.67803276", "0.67752165", "0.67488796", "0.6746106", "0.6736824", "0.67362744", "0.6698474", "0.669145", "0.66800016", "0.66613203", "0.6650026", "0.6565595" ]
0.0
-1
in monitor.done() the status line message is deleted, that's why we defer setting the message here
@Override public void run() { table.getDisplay().timerExec(100, new Runnable() { @Override public void run() { // findText.setBackground(PropertyChangeListener.getColor(found == null && matchCount == 0 ? new RGB(255, 0, 0) : new RGB(255, 255, 255))); if (!wrapped) hexEditor.getEditorSite().getActionBars().getStatusLineManager().setMessage(found == null && matchCount == 0 ? Messages.HexEditorControl_7 : matchCount > 0 ? Messages.HexEditorControl_8 + matchCount + Messages.HexEditorControl_9 : null); updateStatusPanel(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void inProcessing(String statusMsg);", "@Override\n\tprotected void done() {\n\t\t//close the monitor \n\t\tprogressMonitorReporter.closeMonitor();\n\t\t\n\t\t//Inform application that operation isn't being in progress. \n\t\tapplicationInteractor.setOperationInProgress(false);\n\t}", "public void setStatusMessage(IStatus status);", "public void messageArrived(StatusMessage statusMessage);", "public void setDone(){\n this.status = \"Done\";\n }", "public synchronized void setStatus(Status stat) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n\n if (stat == null) {\n throw new IllegalArgumentException(\n \"TestResult status cannot be set to null!\");\n }\n\n // close out message section\n sections[0].setStatus(null);\n\n execStatus = stat;\n\n if (execStatus == inProgress) {\n execStatus = interrupted;\n }\n\n // verify integrity of status in all sections\n for (Section section : sections) {\n if (section.isMutable()) {\n section.setStatus(incomplete);\n }\n }\n\n props = PropertyArray.put(props, SECTIONS,\n StringArray.join(getSectionTitles()));\n props = PropertyArray.put(props, EXEC_STATUS,\n execStatus.toString());\n\n // end time now required\n // mainly for writing in the TRC for the Last Run Filter\n if (PropertyArray.get(props, END) == null) {\n props = PropertyArray.put(props, END, formatDate(new Date()));\n }\n\n // this object is now immutable\n notifyCompleted();\n }", "private void internalSetStatus(String status) {\n jStatusLine.setText(\"Status: \" + status);\n }", "@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }", "@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }", "@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }", "@Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n publishProgress(message);\n }", "private void monitor() {\n monitoringActor.tell(new Monitor(), ActorRef.noSender());\n }", "@Override\r\n public void handleMessage(Message msg) {\n switch (msg.what) {\r\n case 0:\r\n // update progress bar\r\n CloseJob.this.myprogress.setMessage(\"\" + (String) msg.obj);\r\n break;\r\n case 1:\r\n CloseJob.this.myprogress.cancel();\r\n finish();\r\n break;\r\n }\r\n super.handleMessage(msg);\r\n }", "private void showFinishMsg() {}", "public void handleSimStatusCompleted() {\n }", "@Override public void run() {\n waitUntil(\"message\", new Condition() {\n @Override public boolean isMet() {\n return false;\n }\n }, 0);\n }", "@Override\n protected void onProgressUpdate(String... values) {\n super.onProgressUpdate(values);\n String message = values[0];\n dialog.setMessage(waitMsg + message);\n displayProgress(message);\n }", "private void handleStatusReport(AsyncResult ar) {\n String pduString = (String) ar.result;\n SmsMessage sms = SmsMessage.newFromCDS(pduString);\n\n if (sms != null) {\n int messageRef = sms.messageRef;\n for (int i = 0, count = deliveryPendingList.size(); i < count; i++) {\n SmsTracker tracker = deliveryPendingList.get(i);\n if (tracker.mMessageRef == messageRef) {\n // Found it. Remove from list and broadcast.\n deliveryPendingList.remove(i);\n PendingIntent intent = tracker.mDeliveryIntent;\n Intent fillIn = new Intent();\n fillIn.putExtra(\"pdu\", SimUtils.hexStringToBytes(pduString));\n try {\n intent.send(mContext, Activity.RESULT_OK, fillIn);\n } catch (CanceledException ex) {}\n\n // Only expect to see one tracker matching this messageref\n break;\n }\n }\n }\n\n if (mCm != null) {\n mCm.acknowledgeLastIncomingSMS(true, null);\n }\n }", "public void run() {\n\t\t\t\t\tif (_uiContainer.isDisposed()) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tsetStatusMessage(UI.EMPTY_STRING);\r\n\t\t\t\t}", "@Override\n public void run() {\n reprocessPendingMessage();\n }", "private void updateStatus(String message) {\n setErrorMessage(message);\n setPageComplete(message == null);\n }", "@Override\n \tpublic void updateProgress(int messageId) {\n \t}", "@Override\n\tpublic boolean handleMessage(Message arg0) {\n\t\tlong currentWidth = arg0.getData().getLong(\"status\");\n\t\tprogress.getLayoutParams().width = (int) (currentWidth * width / (duration / 40));\n\t\tprogress.requestLayout();\n\n\t\treturn true;\n\t}", "private void postMessages() {\n List<models.MessageProbe> probes = new Model.Finder(String.class, models.MessageProbe.class).where().ne(\"curr_status\", 1).findList();\n for (models.MessageProbe currProbe : probes) {\n if ((currProbe.curr_status == models.MessageProbe.STATUS.WITH_ERROR) || (currProbe.curr_status == models.MessageProbe.STATUS.NEW)) {\n String contextErr = MiniGate.gate.sendCommandWithCheck(\"RIBBON_NCTL_ACCESS_CONTEXT:{\" + currProbe.author + \"}\");\n if (contextErr != null) {\n synchronized (dataLock) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = contextErr;\n currProbe.update();\n errCounter++;\n }\n } else {\n String postErr = MiniGate.gate.sendCommandWithCheck(currProbe.getCsvToPost());\n synchronized (dataLock) {\n if (postErr != null) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = postErr;\n errCounter++;\n } else {\n currProbe.curr_status = models.MessageProbe.STATUS.POSTED;\n currProbe.curr_error = null;\n postCounter++;\n }\n currProbe.update();\n }\n }\n } else if (currProbe.curr_status == models.MessageProbe.STATUS.DELETED) {\n currProbe.delete();\n } else if (currProbe.curr_status == models.MessageProbe.STATUS.EDITED) {\n String contextErr = MiniGate.gate.sendCommandWithCheck(\"RIBBON_NCTL_ACCESS_CONTEXT:{\" + currProbe.author + \"}\");\n if (contextErr != null) {\n synchronized (dataLock) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = contextErr;\n currProbe.update();\n errCounter++;\n }\n } else {\n String postErr = MiniGate.gate.sendCommandWithCheck(currProbe.getCsvToModify());\n synchronized (dataLock) {\n if (postErr != null) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = postErr;\n errCounter++;\n } else {\n currProbe.curr_status = models.MessageProbe.STATUS.WAIT_CONFIRM;\n currProbe.curr_error = null;\n editCounter++;\n }\n currProbe.update();\n }\n }\n }\n }\n }", "private void handleNow(RemoteMessage remoteMessage) {\n Log.d(TAG, \"Short lived task is done.\");\n }", "private void processMessageQueue(){\n\t\tKIDSGUIAlert m = null;\n\t\tStringBuilder newText = new StringBuilder(logLines.getText());\n\t\twhile ((m = this.logMessages.poll()) != null){\n\t\t\tnewText.append(String.format(\"%s\\n\", m.toString()));\n\t\t}\n\t\tlogLines.setText(newText.toString());\n\t}", "public void run() {\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = Msg_SetProgress;\n\t\t\t\tmHandler.sendMessage(msg);\n\t\t\t}", "protected void synchronizationDone() {\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisTaken = true;\n\t\t}", "void synchronizationDone();", "private void changeStatus(String message) {\n\t\tstatus.setText(message);\n\t}", "void setStatusMessage(String message);", "private void remplissage() throws Exception\r\n\t\t{\r\n\t\tlistRequest.removeAll();\r\n\t\tfor(int i=0; i<itemList.size(); i++)\r\n\t\t\t{\r\n\t\t\tMainStatusLine msl = new MainStatusLine(itemList.get(i));\r\n\t\t\tmsl.setFond((i%2==0)?Color.WHITE:Color.LIGHT_GRAY);\r\n\t\t\tlineList.add(msl);\r\n\t\t\tlistRequest.add(msl);\r\n\t\t\t}\r\n\t\tthis.repaint();\r\n\t\tthis.validate();\r\n\t\t}", "@Override\n public void run() {\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}", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\tthis.abiServerMain.setStatusMessage(request.toString());\n\t\t}\n\n\t}", "public synchronized final void setStatus(int sts) {\n\t\tm_status = sts;\n\t\tnotifyAll();\n\t}", "private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }", "@Override\n public void run() {\n Message uiMSG;\n //Create message with only SHOW_ORIGINAL_COLOR argument\n uiMSG = BackgroundThread.this.uiHandler.obtainMessage(BidirectionalMessageActivity.SHOW_ORIGINAL_COLOR, 0, 0, null);\n BackgroundThread.this.uiHandler.sendMessage(uiMSG); //Send start message to UI thread\n\n fillProgressbar(progressBar); //Fill progress bar as a long time operation\n //Message with information SHOW_NEW_COLOR as a end of long time operation\n uiMSG = BackgroundThread.this.uiHandler.obtainMessage(BidirectionalMessageActivity.SHOW_NEW_COLOR, 0, 0, null);\n BackgroundThread.this.uiHandler.sendMessage(uiMSG); //Message with end result is sent\n }", "protected void statusMessage(String message) {\n \n m_Log.statusMessage(message);\n }", "public void onStatus(Status status) {\n \t\t\t\t_receivedStatus++;\n \t\t\t\tif(!_statusQueue.offer(status)){\n \t\t\t\t\t_lostStatus++; \n \t\t\t\t}\t\t\t\n \t\t\t}", "@Override\n\tpublic void statusVomMenschen() {\n\t\tSystem.out.println(\"Sie wurden getroffen nun können Sie nicht mehr so schnell laufen!\");\n\t}", "private GeobatchRunInfo updateRunInfoStatus(GeobatchRunInfo runInfo) {\n RESTConsumerStatus status = null;\n try {\n status = getFlowService().getConsumerStatus(\n runInfo.getFlowUid());\n } catch (Exception e) {\n // status it's FAIL\n }\n runInfo.setFlowStatus(status != null ? status.getStatus().name()\n : \"FAIL\");\n runInfo = updateRunInfo(runInfo);\n return runInfo;\n }", "private void sendReceiveRes(){\n\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tisExit = false;\n\t\t}", "private void sendDeviceStatus() {\n if (hasRecover && zWaveSubDevice != null) {\n ZWaveDeviceEvent zde = new ZWaveDeviceEvent();\n try {\n PropertyUtils.copyProperties(zde, zWaveSubDevice.getZwavedevice());\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n zde.setReport(zrb.getReport());\n zde.setEventtime(new Date());\n\n JMSUtil.sendmessage(IRemoteConstantDefine.WARNING_TYPE_DEVICE_STATUS, zde);\n }\n }", "public void displayProgress(String message) {\n }", "public void saveDeleteDoneMessage(){\n GUIMethods.Thread2 msg = guiM.new Thread2(tGUI.saveDeleteDone);\n msg.start();\n tGUI.setTimeDefaultValues();\n System.out.println(\"print\");\n\n }", "public void setStatusMessage(String message) {\n\t\tstatusMessage.setText(message);\n\t\tstatusMessage.paintImmediately(statusMessage.getBounds());\n\t}", "public void completed(final Status status);", "protected void logStatusMessage(int status) {\n switch (status) {\n case EXIT_OK:\n logger.info(\"SCHEMA CHANGE: OK\");\n break;\n case EXIT_BAD_ARGS:\n logger.severe(\"SCHEMA CHANGE: BAD ARGS\");\n break;\n case EXIT_RUNTIME_ERROR:\n logger.severe(\"SCHEMA CHANGE: RUNTIME ERROR\");\n break;\n case EXIT_VALIDATION_FAILED:\n logger.warning(\"SCHEMA CHANGE: FAILED\");\n break;\n default:\n logger.severe(\"SCHEMA CHANGE: RUNTIME ERROR\");\n break;\n }\n }", "public void updateMessage(Messenger handler, int stage){\n try {\n messageContent.put(\"stage\", stage);\n messageContent.put(\"totalSongs\", songsToTransfer);\n messageContent.put(\"songsMatched\", songsFound);\n messageContent.put(\"songsNotMatched\", songsNotFound);\n messageContent.put(\"playlistsCreated\", playlistsFinished);\n\n msg = new Message();\n msg.obj = messageContent;\n msg.what = STATUS_RUNNING;\n handler.send(msg);\n } catch (JSONException | RemoteException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void completed() {\n\t\tSystem.out.println(\"Message Completed: \" + toString());\n\t\tscheduler.putResourceIdle();\n\t\ttry {\n\t\t\tscheduler.applyScheduling();\n\t\t} catch (Exception e) {\n\t\t\t// this should be logged or on a GUI show a dialog of the error\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void displayStatus(LinphoneCore lc, String message) {\n\t\t\n\t}", "@Override\n protected void process(List<String> chunks) {\n for (String message : chunks) {\n LOG.info(message);\n StatusDisplayer.getDefault().setStatusText(message);\n }\n\n }", "public void changeAndNotify(String newStatus){\r\n\t\tstatus = newStatus;\r\n\t\tSystem.out.println(\"new status is: \"+ status);\r\n\t\tthis.notifyAllObservers(status);\r\n\t}", "void showSyncFailMessage();", "public final void sendSetStatusMessageRequest() {\r\n\r\n // format the status messageColumnTitle\r\n String message = String.format(LogViewMessages.defaultStatusBarMessage, this._logEventStore.getLogEventCount(),\r\n this._logEventStore.getFilteredLogEvents().size(), this._selectedLogEvents.length, this._logEventStore\r\n .getLogEventFilters().size());\r\n\r\n // set the status messageColumnTitle\r\n StatusMessage statusMessage = new StatusMessage(message, StatusMessage.INFORMATION);\r\n\r\n // handle the request\r\n handleRequest(new SetStatusMessageRequest(this, statusMessage));\r\n }", "public abstract void setStatus(String message);", "public void setStatus(Status result) {\n synchronized (TestResult.this) {\n synchronized (this) {\n checkMutable();\n for (OutputBuffer b : buffers) {\n if (b instanceof WritableOutputBuffer) {\n WritableOutputBuffer wb = (WritableOutputBuffer) b;\n wb.getPrintWriter().close();\n }\n }\n if (env == null) {\n env = emptyStringArray;\n }\n this.result = result;\n if (env == null) {\n env = emptyStringArray;\n }\n notifyCompletedSection(this);\n }\n }\n }", "@Override\n\t\t\tpublic void onProgress(ProgressMessage msg) {\n\n\t\t\t}", "public void setStatus(Long messageUid, String status);", "@DSSafe(DSCat.IPC_CALLBACK)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.580 -0500\", hash_original_method = \"2469457C965E8FC7C139A1D414384428\", hash_generated_method = \"42C86E9B0B120923F19E3F5FDF13C046\")\n \n@Override\n public void handleMessage(Message msg) {\n mResultMsg = Message.obtain();\n mResultMsg.copyFrom(msg);\n synchronized(mLockObject) {\n mLockObject.notify();\n }\n }", "private void updatePlanboardMessageStatus(PlanboardMessage planboardMessage, DocumentStatus status) {\n if (DocumentStatus.SENT == planboardMessage.getDocumentStatus()\n || DocumentStatus.PENDING_FLEX_TRADING == planboardMessage.getDocumentStatus()) {\n planboardMessage.setDocumentStatus(status);\n }\n }", "private void onOK() {\n OKDisposalProcess();\n }", "public void doIt() {\n status = true;\n }", "public void returningToTheBar(){\n Waiter w = (Waiter) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = w.getWaiterID();\n \tstate_fields[1] = w.getWaiterState();\n\n Message m_toServer = new Message(2, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n w.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }", "public void testComplete(String msg);", "@Override\n public void displayMessage(String message)\n {\n Platform.runLater(() -> {\n gui.getStatusText().scheduleMessage(message, 2000.0);\n });\n }", "void sendFinishMessage();", "private void handleGoLauncherFinish() {\n if (curState == 1) {\n curReclaimFailCount = 0;\n lastReclaimFailTime = -1;\n Trace.traceBegin(8, \"goLauncherFinish:openZswapd:\" + defaultSize);\n setBuffer(defaultSize, lowSize, highSize, swapReserve);\n targetBuffer = defaultSize;\n handler.removeMessages(5);\n curState = 0;\n Slog.i(TAG, \"handle launcher finish, reset failCount, targetBuffer:\" + defaultSize);\n Trace.traceEnd(8);\n return;\n }\n Slog.e(TAG, \"invalid go launcher finish msg\");\n }", "void notifyUnexpected();", "void showTarProgressMessage(String msg);", "Message sendAndWait();", "public void handleDone( CommandDone done )\n {\n TTL_CIL_Message msg = null;\n //\tTTL_CIL_Message msg = translator.translate( done );\n\n try\n {\n cil.sendMessage( msg );\n }\n catch( IOException ioe )\n {\n\n }\n // remove msg from Hashtable(?) after dealt with\n return;\n }", "private void setStatusBar(String statusMsg)\r\n {\r\n\r\n debug(\"setStatusBar() - get a handle to the main application\");\r\n StockMarketApp mainApp = getMainApp();\r\n\r\n if (mainApp != null)\r\n {\r\n debug(\"setStatusBar() - Sending message to change applications\");\r\n mainApp.setStatus(statusMsg);\r\n }\r\n debug(\"setStatusBar() - Processing completed\");\r\n }", "void notifyProgress(MessageSnapshot snapshot);", "protected void clearStatus() throws LRException\n\t{\n\t\tgetBackground();\n\t\tbackground.clearStatus();\n\t}", "@Override\n\tprotected void doAction(Object message) {\n\t\tlogger.info(\"File Scanner Fetch message Name -->:\"+message.toString());\n\t\ttry {\n\t\t\tFileParser.queue.put(message);\n\t\t} catch (InterruptedException e) {\n\t\t\tlogger.error(\"Error on add message to Parser\");\n\t\t}\n\t}", "@Override\n public void run() {\n \tstatusTextView.setText(statusText(s));\n }", "void setMessage(char msg[], char attribs[]) {\n copyString(msg, statusLine, 1, MESSAGE_LENGTH);\n notifyDisplay();\n }", "private void viewMessage()\n {\n System.out.println( inbox );\n inbox = \"\";\n }", "public void receiveMyStatus(int status) {\n \t\n \tfinal int s = status;\n// \tLog.d(\"handler\", \"receiveMyStatus\");\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n // This gets executed on the UI thread so it can safely modify Views\n \tstatusTextView.setText(statusText(s));\n }\n });\n }", "@Override\n public void setVoiceMessageWaiting(int line, int countWaiting) {\n }", "public synchronized void bufferMessage() throws Exception\r\n {\r\n\r\n System.out.println(\"BUFFER: Message from future round received. Buffering message.\");\r\n // Wait until node moves to next round.\r\n wait();\r\n\r\n }", "@Override protected void succeeded(Description description) {\n try {\n assertThat(spans.poll(100, TimeUnit.MILLISECONDS))\n .withFailMessage(\"Span remaining in queue. Check for redundant reporting\")\n .isNull();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "String progressMessage();", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tString reslutInfo = (String) msg.obj;\n\t\t\tLog.d(App.LOG_TAG, reslutInfo);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 200:\n\t\t\t\tpb.setProgress(7);\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tclearSign();\n\t\t\t\tsaveRecodes();\n\t\t\t\tbreak;\n\t\t\tcase 201:\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tbreak;\n\t\t\tcase 501:\n\t\t\t\tpb.setProgress(7);\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\ttextState.append(\"\\n\");\n\t\t\t\ttextState.append(reslutInfo);\n\t\t\t\tpb.setProgress(msg.what);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "void onComplete(String status);", "synchronized public void jobDone(){ // l'action a été réalisée\n\t\tdone = true; // changement d'état\n\t\tthis.notifyAll(); // on notifie tout le monde\n\t}", "@Override\n private void a(Status status) {\n Object object;\n Object object2 = object = this.e;\n synchronized (object2) {\n this.f = status;\n super.b(this.f);\n return;\n }\n }", "void onStatusUpdate(int status);", "@Override\n public void newState(final GlassFishServer server,\n final GlassFishStatus status, final GlassFishStatusTask task) {\n wakeUp();\n }", "void statusUpdate(boolean invalid);", "protected void onAsyncProgress(String message, int progress){\n \tString end = ((progress > 0) ? \" \" + progress + \"% \" : \"\");\n \tsendMessage(currentClient, MSG_PROGRESS, currentRequest, message + end);\n }", "void finish(Channel channel, Object msg);", "public interface LongProcessOperations \n{\n ServoConRemote.LongProcessPackage.Status Completed ();\n\n //message is empty on success\n String Message ();\n double Progress ();\n void Detach ();\n}", "public void setStatus(String status) {\n SwingUtilities.invokeLater(() -> {\n this.internalSetStatus(status);\n });\n }", "void notifyCompleted(MessageSnapshot snapshot);", "private void updateUI(String msg){\n if(msg != null) {\n textViewStatus.setText(msg);\n }\n }", "@Override\n\tpublic void completed(Void arg0, Void arg1) {\n\t\tif(this.count < max){\n\t\t\tthis.count += 1;\n\t\t\tString msg = \"[\"+client.name+\"] hello this my \"+count+\"rd mssage\";\n\t\t\tclient.writeMessage(msg,this);\n\t\t}\n\t}", "@Override\n \t public void run() {\n \t \tGetMessageUnreadFunc();\n \t }" ]
[ "0.630706", "0.60074246", "0.57904255", "0.5728468", "0.5703898", "0.5678136", "0.5673421", "0.56607103", "0.56607103", "0.56607103", "0.56607103", "0.5612538", "0.5610153", "0.55903876", "0.5577994", "0.55658156", "0.5562644", "0.5551609", "0.5549009", "0.55377436", "0.55161893", "0.5497866", "0.54974115", "0.5495381", "0.5486876", "0.5482798", "0.54767483", "0.5469301", "0.54395103", "0.5425414", "0.54200673", "0.5401964", "0.5397971", "0.53912646", "0.5383471", "0.53798026", "0.5359765", "0.5333993", "0.53297436", "0.5329087", "0.5324908", "0.53181654", "0.53159875", "0.5305327", "0.53021795", "0.52996427", "0.52974135", "0.52944344", "0.52849275", "0.5273908", "0.52684146", "0.5251493", "0.5247863", "0.5245465", "0.5243969", "0.5238777", "0.52244604", "0.5221135", "0.52208793", "0.52135944", "0.5206594", "0.5203455", "0.51959234", "0.51955414", "0.51772755", "0.5174339", "0.5171897", "0.51620185", "0.51606905", "0.51551616", "0.5154629", "0.5150764", "0.5147719", "0.51473916", "0.5140628", "0.51317644", "0.51193833", "0.5117876", "0.511264", "0.51095015", "0.51091236", "0.50984156", "0.5095191", "0.5086515", "0.50856674", "0.50793695", "0.5075409", "0.50742286", "0.5071763", "0.5071706", "0.5068383", "0.5056564", "0.5051926", "0.50511694", "0.50423956", "0.5038288", "0.5034783", "0.5034777", "0.5030479", "0.5027582", "0.5027528" ]
0.0
-1
findText.setBackground(PropertyChangeListener.getColor(found == null && matchCount == 0 ? new RGB(255, 0, 0) : new RGB(255, 255, 255)));
@Override public void run() { if (!wrapped) hexEditor.getEditorSite().getActionBars().getStatusLineManager().setMessage(found == null && matchCount == 0 ? Messages.HexEditorControl_7 : matchCount > 0 ? Messages.HexEditorControl_8 + matchCount + Messages.HexEditorControl_9 : null); updateStatusPanel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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}", "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 colorText() {\r\n String theColor = textShape.getText();\r\n if (theColor.contains(\"blue\")) {\r\n textShape.setForegroundColor(Color.BLUE);\r\n }\r\n else if (theColor.contains(\"red\")) {\r\n textShape.setForegroundColor(Color.RED);\r\n }\r\n else {\r\n textShape.setForegroundColor(Color.BLACK);\r\n }\r\n }", "private PrinterLabel highlightMatch(PrinterLabel label, Printer printer) {\n\t\t/* Matches array Index Reference:\n\t\t * \n\t\t * 0 = Tension\n\t\t * 1 = Compression\n\t\t * 2 = Impact\n\t\t * 3 = vendor\n\t\t * 4 = Range of Mats.\n\t\t * 5 = Tolerance\n\t\t * 6 = Finish\n\t\t */\n\t\tif(printer.getMatches()[0] > 0)\n\t\t{\n\t\t\tlabel.getTension().setForeground(highlight);\n\t\t}\n\t\tif(printer.getMatches()[1] > 0)\n\t\t{\n\t\t\tlabel.getCompression().setForeground(highlight);\n\t\t}\n\t\tif(printer.getMatches()[2] > 0)\n\t\t{\n\t\t\tlabel.getImpact().setForeground(highlight);\n\t\t}\n\t\tif(printer.getMatches()[3] > 0)\n\t\t{\n\t\t\tlabel.getVendor().setForeground(highlight);\n\t\t}\n\t\tif(printer.getMatches()[4] > 0)\n\t\t{\n\t\t\tlabel.getMaterials().setForeground(highlight);\n\t\t}\n\t\tif(printer.getMatches()[5] > 0)\n\t\t{\n\t\t\tlabel.getTolerance().setForeground(highlight);\n\t\t}\n\t\tif(printer.getMatches()[6] > 0)\n\t\t{\n\t\t\tlabel.getFinish().setForeground(highlight);\n\t\t}\n\t\treturn label;\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}", "public Color getHighlight();", "public void highlight(){\n myRectangle.setFill(HIGHLIGHT);\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n String turnToString2 = txt_search.getText();\n\n try {\n\n if(begSearch != -1){\n txt_area.setCaretPosition(begSearch);\n begSearch = txt_area.getText().indexOf(turnToString2,begSearch);\n lbl_search_res.setText(\"\");\n }\n if(begSearch != -1){\n txt_area.getHighlighter().addHighlight(begSearch,begSearch + turnToString2.length(),new DefaultHighlighter.DefaultHighlightPainter(Color.yellow));\n }\n else if (begSearch <= txt_area.getText().length() && begSearch >= 0){\n txt_area.getHighlighter().addHighlight(begSearch,begSearch + turnToString2.length(),new DefaultHighlighter.DefaultHighlightPainter(Color.yellow));\n }\n if(begSearch == -1){\n lbl_search_res.setText(\"Can not found.\");\n }\n begSearch = begSearch + 1;\n\n //System.out.print(\" \"+begSearch);\n\n }\n catch (BadLocationException ex) {\n begSearch = -1;\n }\n\n }", "Integer getTxtColor();", "private void searchAndSelect() {\n currIndex = 0;\n Highlighter h = jta.getHighlighter();\n h.removeAllHighlights();\n String text = jtfFind.getText();\n \n String jText = jta.getText();\n if (text.equals(\"\")) {\n jtfFind.setBackground(Color.WHITE);\n }\n else {\n //TestInfo.testWriteLn(\"Plain Text: \" + text);\n text = processEscapeChars(text);\n //TestInfo.testWriteLn(\"Escape Text: \" + text);\n int index = jText.toLowerCase().indexOf(text.toLowerCase());\n if (index == -1) {\n jtfFind.setBackground(Color.RED);\n }\n else {\n try {\n currIndex = index + 1;\n // An instance of the private subclass of the default highlight painter\n Highlighter.HighlightPainter myHighlightPainter = new MyHighlightPainter(Color.YELLOW);\n oldHighlightPainter = myHighlightPainter;\n h.addHighlight(index,index+text.length(),myHighlightPainter);\n jtfFind.setBackground(Color.WHITE);\n jta.setSelectionColor(Color.CYAN);\n //jta.selectAll();\n jta.select(index,index+text.length());\n lastHighlight[0] = index;\n lastHighlight[1] = index + text.length();\n //jta.setSelectionEnd(index + text.length());\n }\n catch (BadLocationException e) {\n //Do nothing\n }\n }\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 }", "@FXML\n public void highlightMultiplayer()\n {\n multiplayerButton.setOnMouseEntered(mouseEvent -> multiplayerButton.setTextFill(Color.valueOf(\"#FFD700\")));\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 }", "@FXML\n public void highlightSinglePlayer()\n {\n singlePlayerButton.setOnMouseEntered(mouseEvent -> singlePlayerButton.setTextFill(Color.valueOf(\"#FFD700\")));\n }", "public Color getTextColor();", "public void _TextColor() {\n testProperty(\"TextColor\", new PropertyTester() {\n protected Object getNewValue(String prop, Object old) {\n return utils.isVoid(old) ? new Integer(123) : null ;\n }\n }) ;\n }", "@Override\n public void onColorChange(int color) {\n int r = Color.red(color);\n int g = Color.green(color);\n int b = Color.blue(color);\n Log.w(\"CameraEngineActivity\", \"R:\" + r + \" G:\" + g + \" B:\" + b);\n colorText.setBackgroundColor(color);\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (s.toString().equalsIgnoreCase(\"\")) {\n mTextTarget.setTextColor(getResources().getColor(R.color.black));\n mTextTarget.setEnabled(false);\n } else {\n //Not sure what this color is exactly doing\n //mTextTarget.setTextColor(getResources().getColorStateList(R.color.text_field_back_color));\n mTextTarget.setEnabled(true);\n }\n\n }", "public void PonerColor(JTextPane modif, String str){\n ChangeColor=new CuadroTexto();\n ChangeColor.setPrueva(modif);\n String an =\"\"; \n int d = 0;\n while(d < str.length()){\n if(str.charAt(d) == ';'){\n for(int i = d; i < str.length();i++){\n if(str.charAt(d+1) != '('){\n an += str.charAt(d);\n d++;\n }\n }\n ChangeColor.append(new Color(153,102,0), an);\n an = \"\";\n }\n if(str.charAt(d) == '('){\n ChangeColor.append(new Color(205, 92, 92), Character.toString(str.charAt(d)));\n d++;\n for(int i = d; i < str.length();i++){ \n if(d < str.length()){\n if(str.charAt(d) == '('){\n ChangeColor.append(new Color(205, 92, 92), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n }\n /*if(d < str.length()){\n if(str.charAt(d) == '\"'){\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n for(int q = d; (str.charAt(d) != '\"') && (str.charAt(d+1) != ' '); q++){\n \n System.out.println(\"si estoy mucho\");\n an += str.charAt(d);\n i++;\n d++;\n\n }\n ChangeColor.append(new Color(0,0,0), an);\n an = \"\";\n }\n }*/\n /*if(d < str.length()){\n for(int z = d; z < str.length(); z++)\n if(((str.charAt(d) == '0') && (str.charAt(d) == ' ')) || ((str.charAt(d) == '1') && (str.charAt(d) == ' '))){\n ChangeColor.append(new Color(0,102,0), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n if(((str.charAt(d) == '2') && (str.charAt(d-1) == ' ')) || ((str.charAt(d) == '3') && (str.charAt(d-1) == ' '))){\n ChangeColor.append(new Color(0,102,0), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n if(((str.charAt(d) == '4') && (str.charAt(d-1) == ' ')) || ((str.charAt(d) == '5') && (str.charAt(d-1) == ' '))){\n ChangeColor.append(new Color(0,102,0), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n if(((str.charAt(d) == '6') && (str.charAt(d-1) == ' ')) || ((str.charAt(d) == '7') && (str.charAt(d-1) == ' '))){\n ChangeColor.append(new Color(0,102,0), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n if(((str.charAt(d) == '8') && (str.charAt(d-1) == ' ')) || ((str.charAt(d) == '9') && (str.charAt(d-1) == ' '))){\n ChangeColor.append(new Color(0,102,0), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n \n }*/\n if(d < str.length()){\n for(int b = d; b < str.length();b++){\n if(str.charAt(d) == ')'){\n ChangeColor.append(new Color(205, 92, 92), Character.toString(str.charAt(d)));\n d = (d++ < str.length())? d++ : d;\n i = (i++ < str.length())? i++ : i;\n }\n }\n\n }\n \n if(d < str.length()){\n ChangeColor.append(new Color(25, 25, 112), Character.toString(str.charAt(d)));\n }\n \n d++;\n }\n an = \"\";\n }\n d++;\n } \n }", "abstract void nameHighlight(Spannable name, String matchStr, int color,\r\n int text_color);", "void onCheck(Chess.Color inCheckColor);", "private void unhighlightText(Text text){\r\n\t text.changeColor(AnimalScript.COLORCHANGE_COLOR, Color.BLACK, new TicksTiming(0), new TicksTiming(0));\r\n\r\n\t }", "public void setSearchNameTextFieldBackgroundColor(String color) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_searchNameTextField_propertyBackgroundColor\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_searchNameTextField_propertyBackgroundColor\", color == null ? \"\" : \"background: \" + color);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setSearchNameTextFieldBackgroundColor(\" + escapeString(color) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public Color getForeground();", "public RMColor getTextColor() { return RMColor.black; }", "private void addTextChangeListener(final EditText et) {\n\n final Drawable orgDrawable = et.getBackground();\n\n et.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n if (charSequence.length() != 0) {\n et.setBackgroundDrawable(orgDrawable);\n }\n }\n\n @Override\n public void afterTextChanged(Editable editable) {\n\n }\n });\n\n }", "private void colorFoundNode(String s, double x, double y, double delay) {\n Text nn = new Text(x + 18 - s.length(), y + 30, s);\n nn.setFill(Color.WHITE);\n nn.setFont(Font.font(\"Verdana\", FontWeight.EXTRA_BOLD, 14));\n\n Rectangle rect = new Rectangle(x, y, 50, 50); // Draw a node\n rect.setFill(Color.rgb(140, 211, 255));\n rect.setStroke(Color.rgb( 245, 245, 245));\n rect.setArcHeight(15); rect.setArcWidth(20);\n\n //adding the created box to tree's node\n this.getChildren().addAll(rect, nn);\n\n // make fill transition ...this makes node change its colors when it is traversed on\n FillTransition fill = new FillTransition();\n\n\n //Setting auto reverse value to false //The transition will set to be auto reserved by setting this to true\n //Simply it is done so that colour does not turn back to blue.\n fill.setAutoReverse(true);\n\n //setting cycle count for the fill transition\n //making it 1 cause we don't want it ot change again back to blue\n fill.setCycleCount(1);\n //setting the time to be taken for transition\n fill.setDelay(Duration.seconds(delay));\n fill.setDuration(Duration.seconds(.5));\n\n //setting the first colour\n fill.setFromValue(Color.rgb(140, 211, 255));\n //setting the final colour\n fill.setToValue(Color.rgb(255, 206, 10));\n\n //adding the fill \"characteristic\" to rectangular box created before\n fill.setShape(rect);\n\n //starting the transition\n fill.play();\n }", "private void checkBackgroundColor() {\n\n String color = \"\";\n Connection conn = null;\n try {\n conn = (new Sqlite().connect());\n\n String SQL = \"Select * from options WHERE user_id =\" + newUser.getId();\n try (ResultSet rs = conn.createStatement().executeQuery(SQL)) {\n while (rs.next()) {\n color = rs.getString(3);\n }\n conn.close();\n }\n\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(FirstPage.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n switch (color) {\n case \"Blue\":\n jPanel1.setBackground(new Color(90, 166, 190));\n break;\n case \"Grey\":\n jPanel1.setBackground(Color.gray);\n break;\n case \"Red\":\n jPanel1.setBackground(Color.red);\n break;\n default:\n jPanel1.setBackground(new Color(90, 166, 190));\n break;\n }\n }", "public Color getTextColor(){\r\n return textColor;\r\n }", "@Override\n public void changeColor(ColorEvent ce) {\n \n txtRed.setText(\"\"+ ce.getColor().getRed());\n txtGreen.setText(\"\"+ ce.getColor().getGreen());\n txtBlue.setText(\"\"+ ce.getColor().getBlue());\n \n \n }", "public void highlightStop() {\n actualFillColor = new Color(0, 0, 0, 150);\n repaint();\n revalidate();\n }", "private void searchBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_searchBtnMousePressed\n searchBtn.setBackground(Color.decode(\"#1e5837\"));\n }", "String getColor();", "public abstract void colorChecker(Color c);", "public boolean isRed()\n {\n // TODO: replace this line with your code\n }", "private void define_select_color(){\n\n TextView white_panel = (TextView) findViewById(R.id.palette_white);\n TextView black_panel = (TextView) findViewById(R.id.palette_black);\n TextView red_panel = (TextView) findViewById(R.id.palette_red);\n TextView blue_panel = (TextView) findViewById(R.id.palette_blue);\n\n white_panel.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n selected_color=WHITE;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n black_panel.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n selected_color=BLACK;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n red_panel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selected_color = RED;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n blue_panel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selected_color = BLUE;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n\n\n\n }", "private void searchBtnMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_searchBtnMouseEntered\n searchBtn.setBackground(Color.decode(\"#339966\"));\n }", "public void setTextColor(RMColor aColor) { }", "Color(String text) {\n this.text = text;\n }", "@Override\r\n public void focusLost(FocusEvent event) {\r\n if (event.getSource() instanceof TextField) {\r\n int value;\r\n int red = currentColor.getRed();\r\n int green = currentColor.getGreen();\r\n int blue = currentColor.getBlue();\r\n try {\r\n value = Integer.parseInt(((TextField) event.getSource()).getText());\r\n } catch (Exception e) {\r\n value = -1;\r\n }\r\n if (event.getSource() == redInput) {\r\n if (value >= 0 && value < 256)\r\n red = value;\r\n else\r\n redInput.setText(String.valueOf(red));\r\n } else if (event.getSource() == greenInput) {\r\n if (value >= 0 && value < 256)\r\n green = value;\r\n else\r\n greenInput.setText(String.valueOf(green));\r\n } else if (event.getSource() == blueInput) {\r\n if (value >= 0 && value < 256)\r\n blue = value;\r\n else\r\n blueInput.setText(String.valueOf(blue));\r\n }\r\n currentColor = new Color(red, green, blue);\r\n newSwatch.setForeground(currentColor);\r\n colorCanvas.setColor(currentColor);\r\n }\r\n }", "private void redFieldNumber(TextField phoneNumTextField, KeyEvent event) {\n\n char firstLetterCheck = 0;\n\n char plusSymbolASCII = 43;\n char backSlashASCII = 8;\n char deleteASCII = 127;\n\n boolean backSlash = (int) event.getCharacter().charAt(firstLetterCheck) != backSlashASCII;\n boolean deleteButton = (int) event.getCharacter().charAt(firstLetterCheck) != deleteASCII;\n\n if (phoneNumTextField.getLength()==0 && event.getCharacter().charAt(firstLetterCheck)!=plusSymbolASCII){\n event.consume();\n }\n\n if (phoneNumTextField.getLength() <= plusSymbolASCII) {\n if (backSlash && deleteButton && !Character.isDigit(event.getCharacter().charAt(firstLetterCheck)) && phoneNumTextField.getLength() > 0) {\n event.consume();\n phoneNumTextField.setStyle(\"-fx-text-box-border:#ff2000;-fx-control-inner-background:red;-fx-faint-focus-color:red;\");\n } else {\n phoneNumTextField.setStyle(\"-fx-text-box-border:#feefff;-fx-control-inner-background:white;-fx-faint-focus-color:white;\");\n }\n }\n }", "private void updateBackground() {\n \t\t\t\ttextRed.setText(\"\" + redBar.getProgress());\n \t\t\t\ttextGreen.setText(\"\" + greenBar.getProgress());\n \t\t\t\ttextBlue.setText(\"\" + blueBar.getProgress());\n \t\t\t\ttextAlpha.setText(\"\" + alphaBar.getProgress());\n \t\t\t\tcolorTest.setBackgroundColor(Color.argb(alphaBar.getProgress(), redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n \t\t\t}", "@Override\n public GralColor setForegroundColor(GralColor color)\n {\n return null;\n }", "public String getTextColor();", "private void colorPickerHander() {\n\t\tboolean validvalues = true;\n\t\tHBox n0000 = (HBox) uicontrols.getChildren().get(5);\n\t\tTextField t0000 = (TextField) n0000.getChildren().get(1);\n\t\tLabel l0000 = (Label) n0000.getChildren().get(3);\n\t\tString txt = t0000.getText();\n\t\tString[] nums = txt.split(\",\");\n\t\tif (nums.length != 4) {\n\t\t\tvalidvalues = false;\n\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\tGUIerrorout.showAndWait();\n\t\t}\n\t\tif (validvalues) {\n\t\t\tint[] colorvalues = new int[3];\n\t\t\tdouble alphavalue = 1.0;\n\t\t\ttry {\n\t\t\t\tfor(int x = 0; x < 3; x++) {\n\t\t\t\t\tcolorvalues[x] = Integer.parseInt(nums[x]);\n\t\t\t\t}\n\t\t\t\talphavalue = Double.parseDouble(nums[3]);\n\t\t\t} catch(Exception e) {\n\t\t\t\tvalidvalues = false;\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t\tif (alphavalue <= 1.0 && alphavalue >= 0.0 && colorvalues[0] >= 0 && colorvalues[0] < 256 && colorvalues[1] >= 0 && colorvalues[1] < 256 && colorvalues[2] >= 0 && colorvalues[2] < 256){\n\t\t\t\tif (validvalues) {\n\t\t\t\t\tl0000.setTextFill(Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue));\n\t\t\t\t\tusercolors[colorSetterId] = Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t}\n\t}", "abstract String getColor();", "@Override\n public void highlightPattern(Optional<Pattern> newPattern) {\n update();\n }", "public abstract void setCurForeground(Color colr);", "@Override\r\n\tpublic Color backgroundColor() {\n\t\tProperty<IntegerPropertyType> colorDiff = this.getProperty(PROPERTY_NAME_COLOR_DIFFERENCE);\r\n\t\tColor c = labs[colorDiff.getValue().intValue() % labs.length].getColor();\r\n\t\t\r\n\t\treturn c;\r\n\t}", "public static void highlight(Spannable name, String matchStr, boolean isNumber,\r\n int matchOffset,int color, int text_color) {\r\n if(isNumber) {\r\n numHighlight(name, matchStr, matchOffset, color, text_color);\r\n } else {\r\n getHighlighter(name).nameHighlight(name, matchStr, color, text_color);\r\n }\r\n }", "@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n fade = seeker.getProgress();\r\n if(!getLucky) {\r\n Log.i(\"Poop\", \"getLucky == false\");\r\n hold = ColorFinder.kindFinder(color, gotColor1);\r\n test = ColorFinder.kindFinder(color2, gotColor2);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n } else if(getLucky && gotColor2){\r\n Log.i(\"Poop\", \"getLuck == true and gotColor2 ==true\");\r\n hold = ColorFinder.randomColorFinder(ran, dom, ness);\r\n test = ColorFinder.kindFinder(color2, gotColor2);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n } else if(getLucky && gotColor1) {\r\n Log.i(\"Poop\", \"getLucky == true and gotColor1 == true\");\r\n hold = ColorFinder.kindFinder(color, gotColor1);\r\n test = ColorFinder.randomColorFinder(fus, ro, dah);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n } else {\r\n Log.i(\"Poop\", \"getLucky == true and nothing else\");\r\n hold = ColorFinder.randomColorFinder(ran, dom, ness);\r\n test = ColorFinder.randomColorFinder(fus, ro, dah);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n }\r\n if(gotColor1&& gotColor2) {\r\n getLucky = false;\r\n }\r\n }", "@Override \n\tpublic void focusLost(FocusEvent e){\n\t\tvalidExpresion();\n\n\t\tif(cont == 0 && cont2 == 0)\n\t\t\tthis.setBackground(Color.WHITE);\n\n\t\tif(this.getText().length() == 0){ \n\t\t this.setText(this.texto);\n\t\t this.setForeground(Color.GRAY);\n\t\t}\n\t}", "public String getColorString();", "@FXML\n public void highlightProfile()\n {\n profileButton.setOnMouseEntered(mouseEvent -> profileButton.setTextFill(Color.valueOf(\"#FFD700\")));\n }", "@FXML\n public void highlightAboutUs()\n {\n aboutUsButton.setOnMouseEntered(mouseEvent -> aboutUsButton.setTextFill(Color.valueOf(\"#FFD700\")));\n }", "private void jLabelSearchMouseEntered(java.awt.event.MouseEvent evt) {\n setColor(jPanel1);\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 interface CardColorListener {\n public void setColorCode(int textColor, int bgColor);\n}", "@Override\n public void onAnimationUpdate(ValueAnimator\n animator) {\n etiqueta.setBackgroundColor((Integer)animator.getAnimatedValue());\n }", "public int getColor();", "public int getColor();", "Color userColorChoose();", "private void searchBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_searchBtnMouseReleased\n searchBtn.setBackground(Color.decode(\"#4fc482\"));\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 void highlightEnable() {\n actualFillColor = new Color(0, 255, 0, 150);\n repaint();\n revalidate();\n }", "void highlightNextWord() {\n\t\tif(findIndex < finder.size()) {\n\t\t\ttextEditor.getHighlighter().removeAllHighlights();\n\t\t\ttry {\n\t\t\t\thighlighter.addHighlight(finder.get(findIndex).p1, \n\t\t\t\t\t\tfinder.get(findIndex).p2-1, painter);\n\t\t\t} catch (BadLocationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfindIndex++;\n\t\t}\n\t\telse {\n\t\t\tfindIndex = 0;\n\t\t}\n\t}", "public String seeColor(String str) {\r\n if (str.startsWith(\"red\")) {\r\n return \"red\";\r\n }\r\n if (str.startsWith(\"blue\")) {\r\n return \"blue\";\r\n }\r\n\r\n return \"\";\r\n }", "public void _BackgroundColor() {\n testProperty(\"BackgroundColor\", new PropertyTester() {\n protected Object getNewValue(String prop, Object old) {\n return utils.isVoid(old) ? new Integer(6543) : null ;\n }\n }) ;\n }", "public void setTextColor(String textColor);", "private void yellow(){\n\t\tthis.arretes_fY();\n\t\tthis.coins_fY();\n\t\tthis.coins_a1Y();\n\t\tthis.coins_a2Y();\n\t\tthis.aretes_aY();\n\t\tthis.cube[49] = \"Y\";\n\t}", "public void validateTextField ()\r\n\t{\r\n\t\tif (isEditValid ())\r\n\t\t{\r\n\t\t\tsuper.setBackground (UIConstants.GEOPOD_GREEN);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.setBackground (UIConstants.GEOPOD_RED);\r\n\t\t}\r\n\t}", "private void changeColors(){\n \n Color vaccanceColor = vaccance.getValue();\n String vaccRGB = getRGB(vaccanceColor);\n databaseHandler.setTermColor(\"vaccance\", vaccRGB);\n \n Color travailColor = travail.getValue();\n String travailRGB = getRGB(travailColor);\n databaseHandler.setTermColor(\"travail\", travailRGB);\n \n Color AnnivColor = anniverssaire.getValue();\n String summerSemRGB = getRGB(AnnivColor);\n databaseHandler.setTermColor(\"annivessaire\", summerSemRGB);\n \n Color formationColor = formation.getValue();\n String formationRGB = getRGB(formationColor);\n databaseHandler.setTermColor(\"formation\", formationRGB);\n \n Color workshopColor = workshop.getValue();\n String workshopRGB = getRGB(workshopColor);\n databaseHandler.setTermColor(\"workshop\", workshopRGB);\n \n Color certifColor = certif.getValue();\n String certifRGB = getRGB(certifColor);\n databaseHandler.setTermColor(\"certif\", certifRGB);\n \n Color importantColor = important.getValue();\n String importantRGB = getRGB(importantColor);\n databaseHandler.setTermColor(\"important\", importantRGB);\n \n Color urgentColor = urgent.getValue();\n String allHolidayRGB = getRGB(urgentColor);\n databaseHandler.setTermColor(\"urgent\", allHolidayRGB);\n \n \n \n }", "public boolean isGreen()\n {\n // TODO: replace this line with your code\n }", "public void Color() {\n\t\t\r\n\t}", "public void actionPerformed(ActionEvent e)\n {\n//this is called when an action event occurs\n\n\n String cmd = e.getActionCommand();\n if (cmd.equals(\"Red\"))\n c.setBackground(Color.red);\n if (cmd.equals(\"Blue\"))\n c.setBackground(Color.blue);\n }", "@Test\n public void testChangeColorOfRectanlge() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(500, 100),\n new Color(0, 0, 1), 6, 100, 60.0, 30.0));\n model1.addAction(new ChangeColorAction(\"R\", 10, 50, new Color(0, 0,\n 1), new Color(10, 10, 11)));\n textView1.animate(model1, 1, out);\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Lower-left corner: (500.0,100.0), Width: 60.0, Height: 30.0, \"\n + \"Color: (0.0,0.0,1.0)\\n\"\n + \"Appears at t=6.0s\\n\"\n + \"Disappears at t=100.0s\\n\"\n + \"\\n\"\n + \"Shape R changes color from (0.0,0.0,1.0) to (10.0,10.0,11.0) from \"\n + \"t=10.0s to t=50.0s\\n\",\n out.toString());\n }", "@Override\r\n\tpublic void keyTyped(KeyEvent e) {\n\t\tif(!tfPolje.getText().trim().equals(\"\")){\r\n\t\t\ttfPolje.setBackground(Color.WHITE);\r\n\t\t}\r\n\t}", "private void onColorClick() {\n Integer colorFrom = getResources().getColor(R.color.animated_color_from);\r\n Integer colorTo = getResources().getColor(R.color.animated_color_to);\r\n ValueAnimator colorAnimator = ValueAnimator.ofObject(new ArgbEvaluator(), colorFrom, colorTo);\r\n colorAnimator.setDuration(animationDuration);\r\n colorAnimator.setRepeatCount(1);\r\n colorAnimator.setRepeatMode(ValueAnimator.REVERSE);\r\n colorAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\r\n\r\n @Override\r\n public void onAnimationUpdate(ValueAnimator animator) {\r\n animatedArea.setBackgroundColor((Integer)animator.getAnimatedValue());\r\n }\r\n\r\n });\r\n colorAnimator.start();\r\n }", "private void searchBtnMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_searchBtnMouseExited\n searchBtn.setBackground(Color.decode(\"#4fc482\"));\n }", "@Test\n public void testVictoryRed(){\n for (Cell c: modelTest.grid) {\n if (c.getX() == 6)\n c.setColor(Color.RED);\n }\n\n modelTest.researchVictory(1,0);\n Color winnerTest = modelTest.getWinner();\n\n Assert.assertEquals(winnerTest,Color.RED);\n }", "String getColour();", "public Color getColor() { return color.get(); }", "protected void attemptGridPaintSelection() {\n/* 314 */ Color c = JColorChooser.showDialog(this, localizationResources.getString(\"Grid_Color\"), Color.blue);\n/* */ \n/* 316 */ if (c != null) {\n/* 317 */ this.gridPaintSample.setPaint(c);\n/* */ }\n/* */ }", "public abstract void setForegroundPressed(final int rgba);", "public static Color getColor() { return lblColor.getBackground(); }", "@Override\n public Color getColor() {\n return color;\n }", "int getColour();", "public Component getTableCellRendererComponent\n (JTable table, Object value, boolean selected, boolean focused, int row, int column)\n {\n if(String.valueOf(jTable1.getValueAt(row,4)).equals(\"10\")) setForeground(Color.blue);\n // SI NO ES ACTIVO ENTONCES COLOR ROJO\n else setForeground(Color.red);\n \n super.getTableCellRendererComponent(table, value, selected, focused, row, column);\n return this;\n }", "@Override\r\n\tpublic String getColor() {\n\t\treturn \"white\";\r\n\t}", "public void chooseColor() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "public void setColor(String c);", "@Override\r\n\tpublic Color getHighlightColor(Object rel) {\n\t\treturn DARK_RED;\r\n\t}", "abstract public String getColor();", "abstract public String getColor();", "public String getColor() { \n return color; \n }", "@Override\n public void onEndOfSpeech() {\n //findViewById(R.id.mic).setBackgroundColor(getResources().getColor(R.color.colorPrimary));\n mMicView.setBackgroundResource(R.drawable.background_big_mic);\n if (!recognizer.getSearchName().equals(KEYPHRASE))\n switchSearch(KEYPHRASE);\n }", "public native final EditorBaseEvent backgroundColor(String val) /*-{\n\t\tthis.backgroundColor = val;\n\t\treturn this;\n\t}-*/;", "@Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean bo) {\n int r = sbrRed.getProgress();\n int g = sbrGreen.getProgress();\n int b = sbrBlue.getProgress();\n int a = sbrAlpha.getProgress();\n\n int color = Color.argb(a,r,g,b);\n vieColors.setBackgroundColor(color);\n\n //Toast.makeText(this, \"The new color is: \"+a, Toast.LENGTH_SHORT).show();\n }", "public static Color getTextHighlightColor() {\n return TEXT_HIGHLIGHT;\n }", "public static String purple(String text){\n return ANSI_PURPLE + text + ANSI_PURPLE;\n }", "@Override\r\n\tpublic Color getBorderHighlightColor(Object entity) {\n\t\treturn null;\r\n\t}" ]
[ "0.68376744", "0.677968", "0.6200607", "0.6193218", "0.6111591", "0.60404754", "0.60194373", "0.59576565", "0.5944519", "0.5926814", "0.59057176", "0.5898708", "0.5897244", "0.5830059", "0.5719298", "0.5714972", "0.56987166", "0.56516045", "0.56243813", "0.56173587", "0.56139994", "0.561017", "0.56011087", "0.5592164", "0.55829465", "0.55434173", "0.5537747", "0.55311406", "0.5522109", "0.5512817", "0.55092335", "0.5500674", "0.54883903", "0.5481476", "0.54419994", "0.5440814", "0.5438224", "0.54163045", "0.5413856", "0.54106426", "0.54005337", "0.53968847", "0.53861433", "0.5383562", "0.5381413", "0.5380494", "0.53781545", "0.53677595", "0.53605354", "0.5344168", "0.53424394", "0.53370875", "0.5327998", "0.532793", "0.531175", "0.5305251", "0.5305208", "0.52977324", "0.528913", "0.52795017", "0.52795017", "0.5272397", "0.5268735", "0.52676713", "0.52646285", "0.52548087", "0.5251271", "0.5247346", "0.5245987", "0.5234996", "0.5234783", "0.52283716", "0.5225624", "0.5219244", "0.5215364", "0.52086306", "0.52077013", "0.51926184", "0.51879406", "0.5186683", "0.5186459", "0.5175217", "0.5167221", "0.5166999", "0.51656765", "0.5164201", "0.5161406", "0.51594234", "0.5157269", "0.515419", "0.5153795", "0.5150047", "0.5148655", "0.5148655", "0.51373416", "0.51367366", "0.5136503", "0.5129446", "0.512936", "0.5112479", "0.5110226" ]
0.0
-1
Creates a combo box with all supported encoding types
private static Combo getEncodingCombo(Composite parent, Vector<String> encodingTypes) { Combo encodingCombo = new Combo(parent, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY); for (int i = 0; i < encodingTypes.size(); i++) { encodingCombo.add(encodingTypes.get(i)); } // for encodingCombo.select(0); return encodingCombo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EditorPanel() {\n encodingModel = new DefaultComboBoxModel(); \n for (String charSet : Charset.availableCharsets().keySet()) {\n encodingModel.addElement(charSet);\n }\n initComponents();\n }", "private void initCombobox() {\n comboConstructeur = new ComboBox<>();\n comboConstructeur.setLayoutX(100);\n comboConstructeur.setLayoutY(250);\n\n\n BDDManager2 bddManager2 = new BDDManager2();\n bddManager2.start(\"jdbc:mysql://localhost:3306/concession?characterEncoding=utf8\", \"root\", \"\");\n listeConstructeur = bddManager2.select(\"SELECT * FROM constructeur;\");\n bddManager2.stop();\n for (int i = 0; i < listeConstructeur.size(); i++) {\n comboConstructeur.getItems().addAll(listeConstructeur.get(i).get(1));\n\n\n }\n\n\n\n\n\n\n }", "private JComboBox getJComboBoxDbType() {\r\n\t\tif (jComboBoxDbType == null) {\r\n\t\t\tString [] dbType = new String[]{\"Mysql\",\"Oracle\",\"Access\"}; \r\n\t\t\tjComboBoxDbType = new JComboBox(dbType);\r\n\t\t\tjComboBoxDbType.setBounds(new Rectangle(537, 36, 120, 23));\r\n\t\t}\r\n\t\treturn jComboBoxDbType;\r\n\t}", "private void createEncodingPanel(final Composite fpcomp, final Vector<String> encodeType) {\n\t\t//\n\t\t// Create panel\n\t\t//\n\t\tComposite encodingPanel = new Composite(fpcomp, SWT.NONE);\n\t\tencodingPanel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 2;\n\t\tlayout.horizontalSpacing = 5;\n\t\tlayout.verticalSpacing = 0;\n\t\tlayout.marginWidth = 0;\n\t\tlayout.marginHeight = 0;\n\t\tencodingPanel.setLayout(layout);\n\n\t\t//\n\t\t// Create label\n\t\t//\n\t\tnew Label(encodingPanel, SWT.NONE).setText(Messages.HexEditorControl_30);\n\n\t\t//\n\t\t// Create combo\n\t\t//\n\t\tencodingCombo = getEncodingCombo(encodingPanel, encodeType);\n\n\t\t//\n\t\t// Add selection listener to the combo box\n\t\t//\n\t\tencodingCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n public void widgetSelected(SelectionEvent e) {\n\t\t\t\tencodingChanged();\n\t\t\t} // widgetSelected()\n\t\t});\n\t}", "@Override\r\n\tprotected void InitComboBox() {\n\t\t\r\n\t}", "private void setupComboBox(){\n\n //enhanced for loop populates book comboBox with books\n for(Book currentBook : books){ //iterates through books array\n bookCB.addItem(currentBook.getTitle()); //adds book titles to comboBox\n }\n\n //enhanced for loop populates audio comboBox with audio materials\n for(AudioVisualMaterial currentAudio : audio){ //iterates through audio array\n audioCB.addItem(currentAudio.getAuthor()); //adds audio authors to comboBox\n }\n\n //enhanced for loop populates video comboBox with video materials\n for(AudioVisualMaterial currentVideo : video){ //iterates through video array\n videoCB.addItem(currentVideo.getTitle()); //adds video titles to comboBox\n }\n }", "private JPanel setup_font_family_combo_box() {\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setLayout( new FlowLayout( FlowLayout.LEFT, 5, 5));\r\n\r\n\t\t_comboBox = CommonTool.get_font_family_combo_box();\r\n\r\n\t\tif ( !_family_name.equals( \"\"))\r\n\t\t\t_comboBox.setSelectedItem( _family_name);\r\n\r\n\t\tlink_to_cancel( _comboBox);\r\n\r\n\t\tpanel.add( _comboBox);\r\n\t\treturn panel;\r\n\t}", "public static JComboBox createComboBox() {\n JComboBox comboBox = new JComboBox();\n initFormWidget(comboBox);\n comboBox.setBackground(Color.WHITE);\n return comboBox;\n }", "private void buildCountryComboBox() {\n ResultSet rs = DatabaseConnection.performQuery(\n session.getConn(),\n Path.of(Constants.QUERY_SCRIPT_PATH_BASE + \"SelectCountryByID.sql\"),\n Collections.singletonList(Constants.WILDCARD)\n );\n\n ObservableList<Country> countries = FXCollections.observableArrayList();\n try {\n if (rs != null) {\n while (rs.next()) {\n int id = rs.getInt(\"Country_ID\");\n String name = rs.getString(\"Country\");\n countries.add(new Country(id, name));\n }\n }\n } catch (Exception e) {\n Common.handleException(e);\n }\n\n countryComboBox.setItems(countries);\n\n countryComboBox.setConverter(new StringConverter<>() {\n @Override\n public String toString(Country item) {\n return item.getCountryName();\n }\n\n @Override\n public Country fromString(String string) {\n return null;\n }\n });\n }", "public void populateQualityCombo() {\n\n // Making a list of poster qualities\n List<KeyValuePair> qualityList = new ArrayList<KeyValuePair>() {{\n\n add(new KeyValuePair(Constants.MEDIA_QUALITY_w92, \"Thumbnail\\t[ 92x138 ]\"));\n add(new KeyValuePair(Constants.MEDIA_QUALITY_w154, \"Tiny\\t\\t\\t[ 154x231 ]\"));\n add(new KeyValuePair(Constants.MEDIA_QUALITY_w185, \"Small\\t\\t[ 185x278 ]\"));\n add(new KeyValuePair(Constants.MEDIA_QUALITY_w342, \"Medium\\t\\t[ 342x513 ]\"));\n add(new KeyValuePair(Constants.MEDIA_QUALITY_w500, \"Large\\t\\t[ 500x750 ]\"));\n add(new KeyValuePair(Constants.MEDIA_QUALITY_w780, \"xLarge\\t\\t[ 780x1170 ]\"));\n add(new KeyValuePair(Constants.MEDIA_QUALITY_original, \"xxLarge\\t\\t[ HD ]\"));\n }};\n\n // Converting the list to an observable list\n ObservableList<KeyValuePair> obList = FXCollections.observableList(qualityList);\n\n // Filling the ComboBox\n cbPosterQuality.setItems(obList);\n\n // Setting the default value for the ComboBox\n cbPosterQuality.getSelectionModel().select(preferences.getInt(\"mediaQuality\", 3));\n }", "private void buildComboBoxes() {\n buildCountryComboBox();\n buildDivisionComboBox();\n }", "public ComboBox<String> getTypVlaku() {\r\n\t\treturn typVlaku;\r\n\t}", "private JComboBox<String> makeRaceCombo()\n {\n // Build the box with label\n _raceCombo = new JComboBox<String>(Race.RACE_LIST);\n _raceCombo.setEditable(false);\n _raceCombo.setBackground(Color.WHITE);\n return _raceCombo;\n }", "private JComboBox getCBoxSourceLanguage() {\n if( CBoxSourceLanguage == null ) {\n CBoxSourceLanguage = new JComboBox();\n // SELECT default (en)!!!\n List lst_external = language.getExternalLocales();\n TreeMap tm_external = new TreeMap();\n for( Iterator i=lst_external.iterator(); i.hasNext(); ) {\n Locale locale = (Locale)i.next();\n String localeDesc = locale.getDisplayName() + \" (external) (\" + locale.getLanguage() + \")\";\n ComboBoxEntry cbe = new ComboBoxEntry(locale, true, false, localeDesc);\n tm_external.put(cbe, cbe);\n }\n // get sorted\n for( Iterator i=tm_external.keySet().iterator(); i.hasNext(); ) {\n CBoxSourceLanguage.addItem(i.next());\n }\n \n List lst_buildin = language.getBuildInLocales();\n TreeMap tm_buildin = new TreeMap();\n for( Iterator i=lst_buildin.iterator(); i.hasNext(); ) {\n Locale locale = (Locale)i.next();\n String localeDesc = locale.getDisplayName() + \" (\" + locale.getLanguage() + \")\";\n ComboBoxEntry cbe = new ComboBoxEntry(locale, false, false, localeDesc);\n tm_buildin.put(cbe, cbe);\n }\n // get sorted\n for( Iterator i=tm_buildin.keySet().iterator(); i.hasNext(); ) {\n CBoxSourceLanguage.addItem(i.next());\n }\n }\n return CBoxSourceLanguage;\n }", "private void initComboBox() {\n jComboBox1.removeAllItems();\n listaDeInstrutores = instrutorDao.recuperarInstrutor();\n listaDeInstrutores.forEach((ex) -> {\n jComboBox1.addItem(ex.getNome());\n });\n }", "@SuppressWarnings(\"unchecked\")\n private void addComboBox() throws Exception{\n\n Connection con = Coagent.getConnection();\n PreparedStatement query = con.prepareStatement(\"SELECT Publisher_Name FROM publishers;\");\n ResultSet result = query.executeQuery();\n\n while(result.next()){\n jComboBoxAdd.addItem(result.getString(1));\n }\n }", "private RComboBox getComboBox() {\n\tif (ComboBox == null) {\n\t\tComboBox = new RComboBox();\n\t\tComboBox.setName(\"ComboBox\");\n\t\tComboBox.setModelConfiguration(\"{/result \\\"\\\"/version \\\"3.0\\\"/icon \\\"\\\"/tooltip \\\"\\\"}\");\n\t}\n\treturn ComboBox;\n}", "private JComboBox getTypeBufferComboBox() {\n\t\tif (typeBufferComboBox == null) {\n\t\t\ttypeBufferComboBox = new JComboBox();\n\t\t\ttypeBufferComboBox\n\t\t\t\t\t.setBounds(new java.awt.Rectangle(167, 4, 270, 18));\n\t\t\ttypeBufferComboBox.addItem(BUFFER_INSIDE);\n\t\t\ttypeBufferComboBox.addItem(BUFFER_OUTSIDE);\n\t\t\ttypeBufferComboBox.addItem(BUFFER_INSIDE_OUTSIDE);\n\t\t\ttypeBufferComboBox.setSelectedItem(BUFFER_OUTSIDE);\n\t\t}\n\t\treturn typeBufferComboBox;\n\t}", "private void initComboBoxes()\n\t{\n\t\tsampling_combobox.getItems().clear();\n\t\tsampling_combobox.getItems().add(\"Random\");\n\t\tsampling_combobox.getItems().add(\"Cartesian\");\n\t\tsampling_combobox.getItems().add(\"Latin Hypercube\");\n\n\t\t// Set default value.\n\t\tsampling_combobox.setValue(\"Random\");\n\t}", "private ComboBox<String> languageChoices(EventHandler<ActionEvent> splashScreenComboBoxEvent) {\n\t\tComboBox<String> comboBox = new ComboBox<String>();\n\t\tList<String> languages = loadLanguages();\n\t\tcomboBox.setPrefWidth(200);\n\t\tcomboBox.getItems().addAll(languages);\n\t\tcomboBox.setOnAction(splashScreenComboBoxEvent);\n\t\tcomboBox.setId(\"languageBox\");\n\t\t\n\t\tcomboBox.valueProperty().addListener(e -> {\n\t\t\tif(comboBox.getValue() == \"\") {\n\t\t\t\tcontinueButton.setDisable(true);\n\t\t\t} else {\n\t\t\t\tcontinueButton.setDisable(false);\n\t\t\t}\n\t\t});\n\t\treturn comboBox;\n\t}", "private void cargaComboTipoDocumento() {\n\t\tcomboTipoDoc = new JComboBox();\n\t\tfor (TipoDocumentoDTO tipoDocumentoDTO : tip) {\n\t\t\tcomboTipoDoc.addItem(tipoDocumentoDTO.getAbreviacion());\n\t\t}\n\n\t}", "public static void fillComboBox() {\r\n\t\ttry {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tresults = statement.executeQuery(\"Select PeopleName from people \");\r\n\t\t\twhile (results.next()) {\r\n\t\t\t\tString peopleName = results.getString(\"PeopleName\");\r\n\t\t\t\tcomboBox.addItem(peopleName);\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}", "private JTextField getJTextFieldCharset() {\r\n\t\tif (jTextFieldCharset == null) {\r\n\t\t\tjTextFieldCharset = new JTextField();\r\n\t\t\tjTextFieldCharset.setBounds(new Rectangle(78, 86, 81, 23));\r\n\t\t\tjTextFieldCharset.setText(\"GB2312\");\r\n\t\t}\r\n\t\treturn jTextFieldCharset;\r\n\t}", "Builder addEncodings(String value);", "public void iniciar_combo() {\n try {\n Connection cn = DriverManager.getConnection(mdi_Principal.BD, mdi_Principal.Usuario, mdi_Principal.Contraseña);\n PreparedStatement psttt = cn.prepareStatement(\"select nombre from proveedor \");\n ResultSet rss = psttt.executeQuery();\n\n cbox_proveedor.addItem(\"Seleccione una opción\");\n while (rss.next()) {\n cbox_proveedor.addItem(rss.getString(\"nombre\"));\n }\n \n PreparedStatement pstt = cn.prepareStatement(\"select nombre from sucursal \");\n ResultSet rs = pstt.executeQuery();\n\n \n cbox_sucursal.addItem(\"Seleccione una opción\");\n while (rs.next()) {\n cbox_sucursal.addItem(rs.getString(\"nombre\"));\n }\n \n PreparedStatement pstttt = cn.prepareStatement(\"select id_compraE from compra_encabezado \");\n ResultSet rsss = pstttt.executeQuery();\n\n \n cbox_compra.addItem(\"Seleccione una opción\");\n while (rsss.next()) {\n cbox_compra.addItem(rsss.getString(\"id_compraE\"));\n }\n \n PreparedStatement ps = cn.prepareStatement(\"select nombre_moneda from moneda \");\n ResultSet r = ps.executeQuery();\n\n \n cbox_moneda.addItem(\"Seleccione una opción\");\n while (r.next()) {\n cbox_moneda.addItem(r.getString(\"nombre_moneda\"));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }", "private void fillComboBox() {\n jComboBoxFilterChains.setModel(new DefaultComboBoxModel(ImageFilterManager.getObject().getListOfFilters().toArray()));\n }", "private void carregaComboUfs() {\n\t\tlistaDeMunicipios.add(new Municipio(\"GO\", \"Inhumas\"));\n\t\tlistaDeMunicipios.add(new Municipio(\"GO\", \"Goianira\"));\n\t\tlistaDeMunicipios.add(new Municipio(\"GO\", \"Goiânia\"));\n\t\tlistaDeMunicipios.add(new Municipio(\"SP\", \"Campinas\"));\n\t\tlistaDeMunicipios.add(new Municipio(\"SP\", \"São José dos Campos\"));\n\t\t\n\t\t\n\t\tfor (Municipio municipio : listaDeMunicipios) {\n\t\t\tif(!listaDeUfs.contains(municipio.getUf())) {\n\t\t\t\tlistaDeUfs.add(municipio.getUf());\n\t\t\t}\n\t\t}\n\t\t\n\t\tcmbUfs.addItem(\"--\");\n\t\tfor (String uf : listaDeUfs) {\n\t\t\tcmbUfs.addItem(uf);\n\t\t}\n\t}", "public ComboBox1() {\n initComponents();\n agregarItems();\n\n }", "public String getComboType() {\r\n return comboType;\r\n }", "private JComboBox getCardType() {\n\t\tif (cardType == null) {\n\t\t\tcardType = new JComboBox();\n\t\t\tcardType.setModel(new TypeModel(TypeModel.type_cards));\n\t\t\tcardType.setSelectedIndex(0);\n\t\t}\n\t\treturn cardType;\n\t}", "public static ComboBox<String> createComboBox(final String ... options) {\n final ObservableList<String> list = FXCollections.observableArrayList();\n\n for (final String option : options) {\n if (option != null) {\n list.add(option);\n }\n }\n\n return new ComboBox<>(list);\n }", "public OSDarkLAFComboBoxEditor()\r\n {\r\n super();\r\n editor.setBorder(OSDarkLAFBorders.getComboEditorBorder());\r\n }", "private void buildComboBox() {\r\n\r\n comboBoxKernelOpen = new JComboBox();\r\n comboBoxKernelOpen.setFont(serif12);\r\n comboBoxKernelOpen.setBackground(Color.white);\r\n\r\n if (image.getNDims() == 2) {\r\n comboBoxKernelOpen.addItem(\"3x3 - 4 connected\");\r\n comboBoxKernelOpen.addItem(\"5x5 - 12 connected\");\r\n comboBoxKernelOpen.addItem(\"User sized circle.\");\r\n comboBoxKernelOpen.setSelectedIndex(2);\r\n } else if (image.getNDims() == 3) {\r\n comboBoxKernelOpen.addItem(\"3x3x3 - 6 connected (2.5D: 4)\");\r\n comboBoxKernelOpen.addItem(\"5x5x5 - 24 connected (2.5D: 12)\");\r\n comboBoxKernelOpen.addItem(\"User sized sphere.\");\r\n }\r\n }", "public static ComponentUI createUI(JComponent pComponent)\r\n {\r\n return new OSDarkLAFComboBoxUI();\r\n }", "private ObservableList<String> fillComboBox() {\n\t\tObservableList<String> list = FXCollections.observableArrayList();\n\t\t\n\t\t/* Test Cases */\n\t\t\tlist.addAll(\"Item Code\", \"Description\");\n\t\t\n\t\treturn list;\n\t}", "private JComboBox getCBoxTargetLanguage() {\n if( CBoxTargetLanguage == null ) {\n CBoxTargetLanguage = new JComboBox();\n Locale availableLocales[] = Locale.getAvailableLocales();\n List buildIns = language.getBuildInLocales();\n List externals = language.getExternalLocales();\n TreeMap tm = new TreeMap();\n for (int i = 0; i < availableLocales.length; i++) {\n if( availableLocales[i].getCountry().length() > 0 ) {\n // for now we concentrate on the main languages ;)\n continue;\n }\n String langCode = availableLocales[i].getLanguage();\n // if( availableLocales[i].getCountry().length() > 0 ) {\n // langCode += \"_\" + availableLocales[i].getCountry();\n // }\n String newOrChangeStr;\n boolean isExternal = false;\n boolean isNew = false;\n if( externals.contains(availableLocales[i]) ) {\n newOrChangeStr = \"external\";\n isExternal = true;\n } else if( buildIns.contains(availableLocales[i]) ) {\n newOrChangeStr = \"build-in\";\n } else {\n newOrChangeStr = \"create\";\n isNew = true;\n }\n String localeDesc = availableLocales[i].getDisplayName() + \" (\" + newOrChangeStr+ \") (\"+ langCode + \")\";\n ComboBoxEntry cbe = new ComboBoxEntry(availableLocales[i], isExternal, isNew, localeDesc);\n tm.put(cbe, cbe);\n }\n // get sorted\n for( Iterator i=tm.keySet().iterator(); i.hasNext(); ) {\n CBoxTargetLanguage.addItem(i.next());\n }\n }\n return CBoxTargetLanguage;\n }", "public EncodingOptions getEncodingOptions();", "private void createComboMemBank() {\r\n\t\tcomboMemBank = new Combo(sShell, SWT.READ_ONLY);\r\n\t\t\r\n\t\tcomboMemBank.setBounds(new Rectangle(54, 55, 92, 21));\r\n\t\tString items[] = new String[]{ \"Reserved\", \"EPC\", \"TID\", \"User\" };\r\n\t\tcomboMemBank.setItems(items);\r\n\t\tcomboMemBank.select(1);\r\n\r\n\t\t\r\n\t}", "public ComboBox<InputType> getComboBox() {\n\t\treturn combobox;\n\t}", "ImmutableList<SchemaOrgType> getEncodingList();", "public JComboBox<?> getFileTypesCombo() {\n return getCombo(1);\n }", "String getSupportedEncoding(String acceptableEncodings);", "public void testEncodingAndType() throws Exception {\n \t// check default\n \tSampleResult res = new SampleResult();\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncoding());\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncodingWithDefault());\n \tassertEquals(\"DataType should be blank\",\"\",res.getDataType());\n \tassertNull(res.getDataEncodingNoDefault());\n \t\n \t// check null changes nothing\n \tres.setEncodingAndType(null);\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncoding());\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncodingWithDefault());\n \tassertEquals(\"DataType should be blank\",\"\",res.getDataType());\n \tassertNull(res.getDataEncodingNoDefault());\n\n \t// check no charset\n \tres.setEncodingAndType(\"text/html\");\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncoding());\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncodingWithDefault());\n \tassertEquals(\"text\",res.getDataType());\n \tassertNull(res.getDataEncodingNoDefault());\n\n \t// Check unquoted charset\n \tres.setEncodingAndType(\"text/html; charset=aBcd\");\n \tassertEquals(\"aBcd\",res.getDataEncodingWithDefault());\n \tassertEquals(\"aBcd\",res.getDataEncodingNoDefault());\n \tassertEquals(\"aBcd\",res.getDataEncoding());\n \tassertEquals(\"text\",res.getDataType());\n\n \t// Check quoted charset\n \tres.setEncodingAndType(\"text/html; charset=\\\"aBCd\\\"\");\n \tassertEquals(\"aBCd\",res.getDataEncodingWithDefault());\n \tassertEquals(\"aBCd\",res.getDataEncodingNoDefault());\n \tassertEquals(\"aBCd\",res.getDataEncoding());\n \tassertEquals(\"text\",res.getDataType()); \t\n }", "ImmutableList<SchemaOrgType> getEncodingsList();", "private JComboBox<ValueLabelItem> buildImplicitDestTypes() {\r\n ValueLabelItem[] destTypes = new ValueLabelItem[]{\r\n new ValueLabelItem(Destination.TYPE_XYZ,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.xyz.label\")),\r\n new ValueLabelItem(Destination.TYPE_FITH,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fith.label\")),\r\n new ValueLabelItem(Destination.TYPE_FITR,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fitr.label\")),\r\n new ValueLabelItem(Destination.TYPE_FIT,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fit.label\")),\r\n new ValueLabelItem(Destination.TYPE_FITB,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fitb.label\")),\r\n new ValueLabelItem(Destination.TYPE_FITBH,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fitbh.label\")),\r\n new ValueLabelItem(Destination.TYPE_FITBV,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fitbv.label\")),\r\n new ValueLabelItem(Destination.TYPE_FITBV,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fitbv.label\")),\r\n };\r\n return new JComboBox<>(destTypes);\r\n }", "public CustomComboBoxModel() {\n\t\t// TODO Auto-generated constructor stub\n\t\tZipcodeDAO dao = new ZipcodeDAO();\n\t\tdatas = dao.allSido();\n\t}", "public TableComboBox() {}", "private void renderCombobox(){\r\n\r\n\t\tCollection<String> sitesName= new ArrayList<String>();\r\n\t\t\tfor(SiteDto site : siteDto){\r\n\t\t\t\tsitesName.add(site.getSiteName());\r\n\t\t\t}\r\n\t\t\r\n\t\tComboBox siteComboBox = new ComboBox(\"Select Site\",sitesName);\r\n\t\tsiteName = sitesName.iterator().next();\r\n\t\tsiteComboBox.setValue(siteName);\r\n\t\tsiteComboBox.setImmediate(true);\r\n\t\tsiteComboBox.addValueChangeListener(this);\r\n\t\tverticalLayout.addComponent(siteComboBox);\r\n\t}", "EncodingEnum getEncoding();", "private JTextField getJComboBoxConStr() {\r\n\t\tif (jTextFieldConStr == null) {\r\n\t\t\tjTextFieldConStr = new JTextField();\r\n\t\t\tjTextFieldConStr.setBounds(new Rectangle(90, 18, 240, 23));\r\n\t\t}\r\n\t\treturn jTextFieldConStr;\r\n\t}", "private void initializeComboboxes() {\n ObservableList<Integer> options = FXCollections.observableArrayList(vertexesCurrentlyOnScreen);\n startingVertex = new ComboBox<>(options);\n finalVertex = new ComboBox<>(options);\n startingVertex.setBorder((new Border(new BorderStroke(Color.LIGHTGRAY, BorderStrokeStyle.SOLID, new CornerRadii(2), new BorderWidths(1.5)))));\n finalVertex.setBorder(new Border(new BorderStroke(Color.LIGHTGRAY, BorderStrokeStyle.SOLID, new CornerRadii(2), new BorderWidths(1.5))));\n }", "public javax.swing.JComboBox<String> getjComboBoxTipo() {\n return jComboBoxTipo;\n }", "private JComboBox<String> getIdmapSpeciesComboBox() {\n\t\tif (idmapSpeciesComboBox == null) {\n\t\t\tidmapSpeciesComboBox = new JComboBox<>();\n\t\t\tidmapSpeciesComboBox.putClientProperty(\n\t\t\t\t\t\"JComponent.sizeVariant\", \"small\");\n\t\t\tidmapSpeciesComboBox\n\t\t\t\t\t.setModel(new DefaultComboBoxModel<String>(new String[] {\n\t\t\t\t\t\t\tKOIdMapper.HUMAN, KOIdMapper.MOUSE, KOIdMapper.FLY,\n\t\t\t\t\t\t\tKOIdMapper.YEAST }));\n\n\t\t\tfinal ListCellRenderer<? super String> renderer = idmapSpeciesComboBox\n\t\t\t\t\t.getRenderer();\n\n\t\t\tidmapSpeciesComboBox\n\t\t\t\t\t.setRenderer(new ListCellRenderer<String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic Component getListCellRendererComponent(\n\t\t\t\t\t\t\t\tJList<? extends String> list, String value,\n\t\t\t\t\t\t\t\tint index, boolean isSelected,\n\t\t\t\t\t\t\t\tboolean cellHasFocus) {\n\t\t\t\t\t\t\tfinal Component c = renderer\n\t\t\t\t\t\t\t\t\t.getListCellRendererComponent(list, value,\n\t\t\t\t\t\t\t\t\t\t\tindex, isSelected, cellHasFocus);\n\n\t\t\t\t\t\t\tif (OTHER.equals(value) && c instanceof JComponent)\n\t\t\t\t\t\t\t\t((JComponent) c).setFont(((JComponent) c)\n\t\t\t\t\t\t\t\t\t\t.getFont().deriveFont(Font.ITALIC));\n\n\t\t\t\t\t\t\treturn c;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tidmapSpeciesComboBox.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t\tfirePropertyChange(\"IdmapLabelSpecies\", listDelimiter,\n\t\t\t\t\t\t\tlistDelimiter = getListDelimiter());\n\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * Calling the mapping function \n\t\t\t\t\t */\n\t\t\t\t\tmapID(colIdx, id_mapper);\n\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\treturn idmapSpeciesComboBox;\n\t}", "Builder addEncoding(String value);", "private JComboBox getJComboBoxNucleo()\r\n {\r\n if (jComboBoxNucleo == null)\r\n {\r\n \tjComboBoxNucleo = new JComboBox();\r\n \tjComboBoxNucleo.setRenderer(new UbicacionListCellRenderer());\r\n }\r\n return jComboBoxNucleo;\r\n }", "public VehicleDlg(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n\n for (Vehicle.VehicleType value : Vehicle.VehicleType.values()) {\n cmbType.addItem(value);\n }\n }", "protected void createCombobox(CompContainer cc, String name, String [] values, int defaultValue)\r\n\t{\r\n\t\t// create label\r\n\t\tcc.label = new JLabel(localer.getBundleText(name));\r\n\t\tcc.label.setName(\"Label-\" + name);\r\n\t\tcc.label.setFont(cc.label.getFont().deriveFont(Font.PLAIN));\r\n\t\t\r\n\t\t// create component\r\n\t\tcc.comp = new JComboBox(values);\r\n\t\tcc.comp.setName(name);\r\n\r\n\t\t// set value in combobox\r\n\t\t((JComboBox)cc.comp).setSelectedIndex(defaultValue);\r\n\t\tString pref = prefMap.get(name);\r\n\t\tif(pref != null && pref.length() > 0)\r\n\t\t{\r\n\t\t\tfor(int i = 0; i < values.length; i++)\r\n\t\t\t\tif(values[i].equals(prefMap.get(name)))\r\n\t\t\t\t{\r\n\t\t\t\t\t((JComboBox)cc.comp).setSelectedIndex(i);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "void populateLittlesComboBox(JComboBox box) {\n box.addItem(\"Clear\");\n TreeMap<String, ArrayList<String>> sortedlittles = new TreeMap<>();\n sortedlittles.putAll(matching.littlesPreferences);\n for (Map.Entry lilprefs : sortedlittles.entrySet()) {\n String littleName = lilprefs.getKey().toString();\n box.addItem(littleName);\n }\n }", "private JComboBox<Cliente> crearComboClientes() {\n\n JComboBox<Cliente> combo = new JComboBox<>(new Vector<>(almacen.getClientes()));\n combo.setMaximumSize(new Dimension(500, 40));\n\n combo.setRenderer(new DefaultListCellRenderer() {\n @Override\n public Component getListCellRendererComponent(JList<? extends Object> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n\n Component resultado = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\n Cliente cliente = (Cliente) value;\n this.setText(cliente != null ? cliente.getNombre() : \"No existen clientes\");\n\n return resultado;\n }\n });\n\n return combo;\n }", "private void fillComboBox(ServiceManager serviceManager){\n for (String vendingMachineName : serviceManager.getVmManager().getVendingMachineNames()) {\n getItems().add(vendingMachineName); \n }\n }", "private void setUpComboBox2() {\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>());\n jComboBox1.addItem(\"Unit Test\");\n jComboBox1.addItem(\"Quiz\");\n jComboBox1.addItem(\"Assignment\");\n jComboBox1.addItem(\"Other\");\n }", "protected Control createControl(Composite parent) {\n combo = new Combo(parent, SWT.DROP_DOWN);\n combo.addSelectionListener(new SelectionListener() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n handleWidgetSelected(e);\n }\n\n @Override\n public void widgetDefaultSelected(SelectionEvent e) {\n handleWidgetDefaultSelected(e);\n }\n });\n combo.addFocusListener(new FocusListener() {\n @Override\n public void focusGained(FocusEvent e) {\n // do nothing\n }\n\n @Override\n public void focusLost(FocusEvent e) {\n refresh(false);\n }\n });\n\n // Initialize width of combo\n combo.setItems(initStrings);\n toolitem.setWidth(computeWidth(combo));\n refresh(true);\n return combo;\n }", "public void combo(){\r\n // Define rendering of the list of values in ComboBox drop down. \r\n cbbMedicos.setCellFactory((comboBox) -> {\r\n return new ListCell<Usuario>() {\r\n @Override\r\n protected void updateItem(Usuario item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (item == null || empty) {\r\n setText(null);\r\n } else {\r\n setText(item.getNombre_medico()+ \" \" + item.getApellido_medico()+\" \"+item.getApMaterno_medico());\r\n }\r\n }\r\n };\r\n });\r\n\r\n // Define rendering of selected value shown in ComboBox.\r\n cbbMedicos.setConverter(new StringConverter<Usuario>() {\r\n @Override\r\n public String toString(Usuario item) {\r\n if (item == null) {\r\n return null;\r\n } else {\r\n return item.getNombre_medico()+ \" \" + item.getApellido_medico()+\" \"+item.getApMaterno_medico();\r\n }\r\n }\r\n\r\n @Override\r\n public Usuario fromString(String string) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }\r\n });\r\n }", "protected ListCellRenderer createRenderer()\n {\n return new BEComboBoxRenderer.UIResource(this);\n }", "public void llenarComboBox(){\n TipoMiembroComboBox.removeAllItems();\n TipoMiembroComboBox.addItem(\"Administrador\");\n TipoMiembroComboBox.addItem(\"Editor\");\n TipoMiembroComboBox.addItem(\"Invitado\");\n }", "private void cargaComboBoxTipoGrano() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoGranoEntity p\");\n java.util.List<TipoGranoEntity> listaTipoGranoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoGranoEntity tipoGrano : listaTipoGranoEntity) {\n miVectorTipoLaboreo.add(tipoGrano.getTgrNombre());\n cbxSemillas.addItem(tipoGrano);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }", "public void initialize() {\n fillCombobox();\n }", "private JTextField getJTextFieldDbCharset() {\r\n\t\tif (jTextFieldDbCharset == null) {\r\n\t\t\tjTextFieldDbCharset = new JTextField();\r\n\t\t\tjTextFieldDbCharset.setBounds(new Rectangle(251, 50, 79, 22));\r\n\t\t}\r\n\t\treturn jTextFieldDbCharset;\r\n\t}", "public JComboBoxTesterTest(String name) {\n super(name);\n }", "public JComponent getAdditionalBankSysexOptionsComponents(byte[] data, String[] names)\n {\n return null; \n }", "public void listarIgrejaComboBox() {\n\n IgrejasDAO dao = new IgrejasDAO();\n List<Igrejas> lista = dao.listarIgrejas();\n cbIgrejas.removeAllItems();\n\n for (Igrejas c : lista) {\n cbIgrejas.addItem(c);\n }\n }", "private void llenarCombo(HTMLSelectElement combo, String tabla, String codigo, String descripcion, String condicion, String defecto, boolean dejarBlanco) {\n/* 436 */ if (dejarBlanco) {\n/* 437 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 438 */ op.setValue(\"\");\n/* 439 */ op.appendChild(this.pagHTML.createTextNode(\"\"));\n/* 440 */ combo.appendChild(op);\n/* */ } \n/* 442 */ TGeneralDAO rsTGen = new TGeneralDAO();\n/* 443 */ Collection<TGeneralDTO> arr = rsTGen.cargarTabla(tabla, codigo, descripcion, condicion);\n/* 444 */ rsTGen.close();\n/* 445 */ Iterator<TGeneralDTO> iterator = arr.iterator();\n/* 446 */ while (iterator.hasNext()) {\n/* 447 */ TGeneralDTO regGeneral = (TGeneralDTO)iterator.next();\n/* 448 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 449 */ op.setValue(\"\" + regGeneral.getCodigoS());\n/* 450 */ op.appendChild(this.pagHTML.createTextNode(regGeneral.getDescripcion()));\n/* 451 */ if (defecto != null && defecto.equals(regGeneral.getCodigoS())) {\n/* 452 */ Attr escogida = this.pagHTML.createAttribute(\"selected\");\n/* 453 */ escogida.setValue(\"on\");\n/* 454 */ op.setAttributeNode(escogida);\n/* */ } \n/* 456 */ combo.appendChild(op);\n/* */ } \n/* */ }", "JComboBox gtkGetComboBox() {\n return comboBox;\n }", "String getEncoding();", "public String getEncoding() {\r\n return \"B\";\r\n }", "private void initComponents() {\n\n displayLineNumbersOption = new javax.swing.JCheckBox();\n chooseFontButton = new javax.swing.JButton();\n fontValueLabel = new javax.swing.JLabel();\n tabSizeLabel = new javax.swing.JLabel();\n tabSizeTF = new javax.swing.JFormattedTextField();\n cursorBlinkRateLabel = new javax.swing.JLabel();\n cursorBlinkRateValues = new javax.swing.JSpinner();\n encodingLabel = new javax.swing.JLabel();\n encodingList = new javax.swing.JComboBox();\n\n displayLineNumbersOption.setSelected(true);\n displayLineNumbersOption.setText(\"Display line numbers\");\n\n chooseFontButton.setText(\"Font...\");\n chooseFontButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseFontButtonActionPerformed(evt);\n }\n });\n\n fontValueLabel.setFont((Font)XPontusConfig.getValue(\"EditorPane.Font\"));\n fontValueLabel.setText(getStringFont((Font)XPontusConfig.getValue(\"EditorPane.Font\")));\n\n tabSizeLabel.setText(\"Tab size\");\n\n tabSizeTF.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#\"))));\n tabSizeTF.setValue(new Integer(4));\n\n cursorBlinkRateLabel.setText(\"Cursor blink rate\");\n\n cursorBlinkRateValues.setModel(model);\n\n encodingLabel.setText(\"Default XML encoding\");\n\n encodingList.setModel(encodingModel);\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(22, 22, 22)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(chooseFontButton)\n .add(tabSizeLabel)\n .add(cursorBlinkRateLabel)\n .add(encodingLabel))\n .add(88, 88, 88)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(encodingList, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 98, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(fontValueLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\n .add(org.jdesktop.layout.GroupLayout.LEADING, tabSizeTF)\n .add(org.jdesktop.layout.GroupLayout.LEADING, cursorBlinkRateValues, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)))))\n .add(layout.createSequentialGroup()\n .add(14, 14, 14)\n .add(displayLineNumbersOption, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 316, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .add(15, 15, 15))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(displayLineNumbersOption)\n .add(28, 28, 28)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(layout.createSequentialGroup()\n .add(cursorBlinkRateLabel)\n .add(20, 20, 20))\n .add(layout.createSequentialGroup()\n .add(cursorBlinkRateValues, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(18, 18, 18)))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(tabSizeLabel)\n .add(tabSizeTF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(27, 27, 27)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(chooseFontButton)\n .add(fontValueLabel))\n .add(25, 25, 25)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(encodingLabel)\n .add(encodingList, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(28, Short.MAX_VALUE))\n );\n }", "@FXML\n\tprivate void initialize() {\n\t\tlistNomType = FXCollections.observableArrayList();\n\t\tlistIdType=new ArrayList<Integer>();\n\t\ttry {\n\t\t\tfor (Type type : typeDAO.recupererAllType()) {\n listNomType.add(type.getNomTypeString());\n listIdType.add(type.getIdType());\n }\n\t\t} catch (ConnexionBDException e) {\n\t\t\tnew Popup(e.getMessage());\n\t\t}\n\t\tcomboboxtype.setItems(listNomType);\n\n\t}", "protected void displayComboBox() {\n openingLine = new JLabel(\"Select \" + type + \":\");\n window = new JFrame(frameTitle);\n chooseBox = new JComboBox(range);\n chooseBox.addActionListener(this);\n window.setVisible(true);\n window.setLayout(new BoxLayout(window.getContentPane(), BoxLayout.PAGE_AXIS));\n window.setMinimumSize(new Dimension(300, 100));\n window.setLocationRelativeTo(null);\n confirm = new JButton(\"Confirm\");\n confirm.addActionListener(this);\n confirm.setActionCommand(\"confirm\");\n openingLine = new JLabel(\"Select \" + type + \":\");\n JPanel chooseBoxPane = new JPanel();\n chooseBoxPane.add(openingLine);\n chooseBoxPane.add(chooseBox);\n window.add(chooseBoxPane);\n window.add(confirm);\n\n }", "protected TextSelectGuiSubitemTestObject comboBoxcomboBox() \n\t{\n\t\treturn new TextSelectGuiSubitemTestObject(\n getMappedTestObject(\"comboBoxcomboBox\"));\n\t}", "public Carta() {\n initComponents();\n \n \n \n items[0] = \"Entradas\";\n items[1] = \"Fuertes\";\n items[2] = \"Postres\";\n comboCategorias.setModel(new javax.swing.DefaultComboBoxModel(items));\n comboCategoriasM.setModel(new javax.swing.DefaultComboBoxModel(items));\n\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 455, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel label = new JLabel(\"\\u6635\\u79F0\\uFF1A\");\n\t\tlabel.setBounds(31, 36, 41, 22);\n\t\tframe.getContentPane().add(label);\n\t\t\n\t\tJLabel label_1 = new JLabel(\"\\u5BC6\\u7801\\uFF1A\");\n\t\tlabel_1.setBounds(31, 83, 41, 15);\n\t\tframe.getContentPane().add(label_1);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"\\u5E74\\u9F84\\uFF1A\");\n\t\tlabel_2.setBounds(31, 125, 41, 15);\n\t\tframe.getContentPane().add(label_2);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"\\u90AE\\u7BB1\\uFF1A\");\n\t\tlabel_3.setBounds(31, 166, 41, 15);\n\t\tframe.getContentPane().add(label_3);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(82, 37, 163, 21);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tpasswordField.setBounds(82, 79, 163, 22);\n\t\tframe.getContentPane().add(passwordField);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(82, 122, 163, 21);\n\t\tframe.getContentPane().add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setBounds(82, 163, 163, 21);\n\t\tframe.getContentPane().add(textField_2);\n\t\ttextField_2.setColumns(10);\n\t\t\n\t\tJLabel label_4 = new JLabel(\"\\u5934\\u50CF\\uFF1A\");\n\t\tlabel_4.setBounds(292, 40, 54, 15);\n\t\tframe.getContentPane().add(label_4);\n\t\t\n\t\tcomboBox = new JComboBox();\n\t\tcomboBox.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tchangeHeadPicture(e);\n\t\t\t}\n\t\t});\n\t\tcomboBox.setModel(new DefaultComboBoxModel(new String[] {\"\\u7B11\\u8138\", \"\\u82B1\\u6735\", \"\\u7B14\\u58A8\", \"\\u8138\\u8C31\"}));\n\t\tcomboBox.setSelectedIndex(0);\n\t\tcomboBox.setToolTipText(\"\");\n\t\tcomboBox.setBounds(343, 37, 64, 21);\n\t\tframe.getContentPane().add(comboBox);\n\t\t\n\t\tlabel_5 = new JLabel(\"\");\n\t\tlabel_5.setIcon(new ImageIcon(RegisterFrame.class.getResource(\"/img/icon/1.png\")));\n\t\tlabel_5.setBounds(343, 79, 50, 50);\n\t\tframe.getContentPane().add(label_5);\n\t\t\n\t\tJButton button = new JButton(\"\\u6CE8\\u518C\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tregister(e);\n\t\t\t}\n\t\t});\n\t\tbutton.setBounds(82, 214, 69, 23);\n\t\tframe.getContentPane().add(button);\n\t\t\n\t\tJButton button_1 = new JButton(\"\\u5173\\u95ED\");\n\t\tbutton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcloseRegisterPanel(e);\n\t\t\t}\n\t\t});\n\t\tbutton_1.setBounds(176, 214, 69, 23);\n\t\tframe.getContentPane().add(button_1);\n\n\t}", "public static ComboBox<String> createComboBox(final List<String> options) {\n options.removeIf(Objects::isNull);\n return new ComboBox<>(FXCollections.observableArrayList(options));\n }", "private JComboBox<String> getIdmapSourceComboBox() {\n\n\t\tif (idmapSourceComboBox == null) {\n\t\t\tidmapSourceComboBox = new JComboBox<>();\n\t\t\tidmapSourceComboBox.putClientProperty(\n\t\t\t\t\t\"JComponent.sizeVariant\", \"small\");\n\t\t\tidmapSourceComboBox.setModel(new DefaultComboBoxModel<String>(\n\t\t\t\t\tnew String[] { KOIdMapper.SYMBOL, KOIdMapper.GENE_ID,\n\t\t\t\t\t\t\tKOIdMapper.ENSEMBL, KOIdMapper.UniProtKB_AC,\n\t\t\t\t\t\t\tKOIdMapper.UniProtKB_ID }));\n\n\t\t\tfinal ListCellRenderer<? super String> renderer = idmapSourceComboBox\n\t\t\t\t\t.getRenderer();\n\n\t\t\tidmapSourceComboBox\n\t\t\t\t\t.setRenderer(new ListCellRenderer<String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic Component getListCellRendererComponent(\n\t\t\t\t\t\t\t\tJList<? extends String> list, String value,\n\t\t\t\t\t\t\t\tint index, boolean isSelected,\n\t\t\t\t\t\t\t\tboolean cellHasFocus) {\n\t\t\t\t\t\t\tfinal Component c = renderer\n\t\t\t\t\t\t\t\t\t.getListCellRendererComponent(list, value,\n\t\t\t\t\t\t\t\t\t\t\tindex, isSelected, cellHasFocus);\n\n\t\t\t\t\t\t\tif (OTHER.equals(value) && c instanceof JComponent)\n\t\t\t\t\t\t\t\t((JComponent) c).setFont(((JComponent) c)\n\t\t\t\t\t\t\t\t\t\t.getFont().deriveFont(Font.ITALIC));\n\n\t\t\t\t\t\t\treturn c;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tidmapSourceComboBox.addActionListener(new ActionListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tfirePropertyChange(\"IdmapLabelSource\", listDelimiter,\n\t\t\t\t\t\t\tlistDelimiter = getListDelimiter());\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * Calling the mapping function \n\t\t\t\t\t */\n\t\t\t\t\tmapID(colIdx, id_mapper);\n\n\t\t\t\t}\n\n\t\t\t});\n\t\t}\n\n\t\treturn idmapSourceComboBox;\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // T\n cb_periodo.setItems(FXCollections.observableArrayList(Arrays.asList(\"Manhã\" , \"Tarde\")));\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n nameLabel = new javax.swing.JLabel();\n performButton = new javax.swing.JButton();\n availableNames = new javax.swing.JComboBox<>();\n\n setMaximumSize(new java.awt.Dimension(435, 600));\n setMinimumSize(new java.awt.Dimension(435, 600));\n setPreferredSize(new java.awt.Dimension(435, 600));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"Знайти за назвою\");\n jLabel2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n nameLabel.setText(\"Назва:\");\n\n performButton.setText(\"Виконати\");\n performButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n performButtonActionPerformed(evt);\n }\n });\n\n availableNames.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(140, 140, 140)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(nameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(availableNames, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(150, 150, 150)\n .addComponent(performButton, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(availableNames, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addComponent(performButton))\n );\n\n nameLabel.getAccessibleContext().setAccessibleName(\"id\");\n\n getAccessibleContext().setAccessibleParent(this);\n }", "private void cargaComboBoxTipoLaboreo() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoLaboreoEntity p\");\n java.util.List<TipoLaboreoEntity> listaTipoLaboreoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoLaboreoEntity tipoLaboreo : listaTipoLaboreoEntity) {\n miVectorTipoLaboreo.add(tipoLaboreo.getTpoNombre());\n cboMomentos.addItem(tipoLaboreo);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }", "GtkComboBoxUI gtkGetUI() {\n return this;\n }", "public void datosCombobox() {\n listaColegios = new ColegioDaoImp().listar();\n for (Colegio colegio : listaColegios) {\n cbColegio.addItem(colegio.getNombre());\n }\n }", "public StringConverter<Company> LabelCombo (){\n return new StringConverter<Company>() {\n @Override\n public String toString(Company object){\n return object.getCompanyname();\n }\n\n @Override\n public Company fromString(String string) {\n return null;\n }\n };\n }", "private JPanel createComboBoxes() {\n JPanel container = new JPanel();\n JPanel comboContainer = new JPanel();\n JLabel preferenceLabel = new JLabel();\n String[] names = getCandidateNames();\n \n // Sets the text of the preference (new vote) label.\n String preferenceLabelText = \"<html><div style='text-align: center; width: \" + PANEL_SIZE.width + \";'><h3>New Vote</h3>\";\n if (names.length < 2) {\n preferenceLabelText += \"There are no candidates to vote for right now.<br><br>\";\n }\n preferenceLabelText += \"</div></html>\";\n preferenceLabel.setText(preferenceLabelText);\n \n // Lays out the containers.\n container.setLayout(new BorderLayout());\n container.add(preferenceLabel, BorderLayout.PAGE_START);\n container.add(comboContainer, BorderLayout.PAGE_END);\n \n comboContainer.setLayout(new BoxLayout(comboContainer, BoxLayout.Y_AXIS));\n \n // Allows the user to select each of their preferences for a new vote.\n for (int index = 1; index < names.length; index++) {\n JPanel comboPanel = new JPanel();\n JLabel comboLabel = new JLabel(\"Preference \" + index);\n JComboBox<String> comboBox = new JComboBox<>(names);\n comboPanel.setLayout(new BoxLayout(comboPanel, BoxLayout.X_AXIS));\n comboPanel.add(comboLabel);\n comboPanel.add(comboBox);\n comboContainer.add(comboPanel);\n comboBoxes.add(comboBox);\n }\n \n // Returns the container so that it can be added to a panel.\n return container;\n }", "private JComboBox getDfwjComboBox() {\r\n\t\tif (dfwjComboBox == null) {\r\n\t\t\tdfwjComboBox = new JComboBox();\r\n\t\t\tdfwjComboBox.setBackground(Color.GRAY);\r\n\t\t\tdfwjComboBox.setBounds(new Rectangle(250, 54, 60, 18));\r\n\t\t\tdfwjComboBox.addItemListener(new java.awt.event.ItemListener() {\r\n\t\t\t\tpublic void itemStateChanged(java.awt.event.ItemEvent e) {\r\n\t\t\t\t\t// JComboBox状态的变化有两种,一是从selected到unselected还有从unselected到selected\r\n\t\t\t\t\t// 这里处理的是从unselected到selected\r\n\t\t\t\t\tif (e.getStateChange() == ItemEvent.SELECTED) {\r\n\t\t\t\t\t\t// 取消启动就打开输入用户名和密码的界面\r\n\t\t\t\t\t\tcurrentPage = 1;\r\n\t\t\t\t\t\tpageSize = 0;\r\n\t\t\t\t\t\tgetQx();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tdfwjComboBox.addItem(\"全部\");\r\n\t\t\tdfwjComboBox.addItem(\"定位\");\r\n\t\t\tdfwjComboBox.addItem(\"反位\");\r\n\t\t\tdfwjComboBox.setSelectedIndex(0);\r\n\t\t}\r\n\t\treturn dfwjComboBox;\r\n\t}", "@PostConstruct\r\n private void init() {\n this.ccTypes = new ArrayList<SelectItem>();\r\n this.ccTypes.add(new SelectItem(CreditCardType.CARD_A, getCCTypeLabel(CreditCardType.CARD_A)));\r\n this.ccTypes.add(new SelectItem(CreditCardType.CARD_B, getCCTypeLabel(CreditCardType.CARD_B)));\r\n\r\n // Initialize categories select items\r\n this.categories = new ArrayList<SelectItem>();\r\n this.categories.add(new SelectItem(\"cat_it\", getCategoryLabel(\"cat_it\")));\r\n this.categories.add(new SelectItem(\"cat_gr\", getCategoryLabel(\"cat_gr\")));\r\n this.categories.add(new SelectItem(\"cat_at\", getCategoryLabel(\"cat_at\")));\r\n this.categories.add(new SelectItem(\"cat_mx\", getCategoryLabel(\"cat_mx\")));\r\n }", "@Override\r\n\tpublic void init(Map<String, Object> values) {\n\t\tsetValue(values);\r\n\t\tthis.setType(\"available\", FieldType.COMBOBOX);\r\n\t\tLinkedList<KV> avails = new LinkedList<>();\r\n\t\tKV avail=new KV().setField(\"available_avail\").setTitle(\"可用\").setValue(\"1\");\r\n\t\tKV not_avail=new KV().setField(\"available_not_avail\").setTitle(\"不可用\").setValue(\"0\");\r\n\t\tavail.setAttr(\"_default_\", values.get(\"available\").equals(\"0\")?not_avail:avail);\r\n\t\tavails.add(avail);\r\n\t\tavails.add(not_avail);\r\n\t\tSystem.out.println(values);\r\n\t\tsetValue(\"available\", avails.toArray(new KV[0]));\r\n\t}", "private void inicializarCombos() {\n\t\tlistaGrupoUsuario = GrupoUsuarioDAO.readTodos(this.mainApp.getConnection());\n\t\tfor (GrupoUsuario grupo : listaGrupoUsuario) {\n\t\t\tthis.observableListaGrupoUsuario.add(grupo.getNombre());\n\t\t}\n\t\tthis.comboGrupoUsuario.setItems(this.observableListaGrupoUsuario);\n\t\tnew AutoCompleteComboBoxListener(comboGrupoUsuario);\n\n\t\tObservableList<String> status = FXCollections.observableArrayList(\"Bloqueado\",\"Activo\",\"Baja\");\n\t\tthis.comboStatus.setItems(status);\n\t\tthis.comboEmpleados.setItems(FXCollections.observableArrayList(this.listaEmpleados));\n\t}", "public void setComboBoxValues() {\n String sql = \"select iName from item where iActive=? order by iName asc\";\n \n cbo_iniName.removeAllItems();\n try {\n pst = conn.prepareStatement(sql);\n pst.setString(1,\"Yes\");\n rs = pst.executeQuery();\n \n while (rs.next()) {\n cbo_iniName.addItem(rs.getString(1));\n }\n \n }catch(Exception e) {\n JOptionPane.showMessageDialog(null,\"Item list cannot be loaded\");\n }finally {\n try{\n rs.close();\n pst.close();\n \n }catch(Exception e) {}\n }\n }", "@Override\r\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tpKindChoiceBox.setValue(\"전체\");\r\n\t\tpKindChoiceBox.setItems(productKindList);\r\n\t\tsearchKindComboBox.setItems(searchKindList);\r\n\t\t\r\n\t\tTableColumn<ProductDataModel, Integer> tcP_id = (TableColumn<ProductDataModel, Integer>) rsvListTable.getColumns().get(0);\r\n\t\tTableColumn<ProductDataModel, String> tcKind = (TableColumn<ProductDataModel, String>) rsvListTable.getColumns().get(1);\r\n\t\tTableColumn<ProductDataModel, String> tcTitle = (TableColumn<ProductDataModel, String>) rsvListTable.getColumns().get(2);\r\n\t\tTableColumn<ProductDataModel, String> tcGenre = (TableColumn<ProductDataModel, String>) rsvListTable.getColumns().get(3);\n\t\tTableColumn<ProductDataModel, Integer> tcAgeG = (TableColumn<ProductDataModel, Integer>) rsvListTable.getColumns().get(4);\r\n\t\tTableColumn<ProductDataModel, String> tcRdate = (TableColumn<ProductDataModel, String>) rsvListTable.getColumns().get(5);\r\n\t\tTableColumn<ProductDataModel, String> tcIsrental = (TableColumn<ProductDataModel, String>) rsvListTable.getColumns().get(6);\r\n\t\tTableColumn<ProductDataModel, Integer> tcRentalCnt = (TableColumn<ProductDataModel, Integer>) rsvListTable.getColumns().get(7);\r\n\t\ttcP_id.setCellValueFactory(new PropertyValueFactory<ProductDataModel, Integer>(\"p_id\"));\r\n\t\ttcKind.setCellValueFactory(new PropertyValueFactory<ProductDataModel, String>(\"kind\"));\r\n\t\ttcTitle.setCellValueFactory(new PropertyValueFactory<ProductDataModel, String>(\"title\"));\r\n\t\ttcGenre.setCellValueFactory(new PropertyValueFactory<ProductDataModel, String>(\"genre\"));\n\t\ttcAgeG.setCellValueFactory(new PropertyValueFactory<ProductDataModel, Integer>(\"age_grade\"));\r\n\t\ttcRdate.setCellValueFactory(new PropertyValueFactory<ProductDataModel, String>(\"release\"));\r\n\t\ttcIsrental.setCellValueFactory(new PropertyValueFactory<ProductDataModel, String>(\"isRental\"));\r\n\t\ttcRentalCnt.setCellValueFactory(new PropertyValueFactory<ProductDataModel, Integer>(\"rentalCnt\"));\r\n\t\t\r\n\t\tpds = db.selectProductDatas();\r\n\t\tfor(ProductDatas pd : pds){\r\n\t\t\tproductList.add(new ProductDataModel(pd));\r\n\t\t}\r\n\t\trsvListTable.setItems(productList);\r\n\t\t\r\n\t}", "private void fillCombos() {\n String sql1=\"SELECT deger from birim\";\n String sql2=\"SELECT deger from unvan\";\n String sql3=\"SELECT deger from gorev\";\n String sql4=\"SELECT deger from gorevsekli\";\n String sql5=\"SELECT deger from atamasekli\";\n String sql6=\"SELECT deger from hizmetsinifi\";\ntry{ps=conn.prepareStatement(sql1);\nrs=ps.executeQuery();\nwhile (rs.next()){\n String deger=rs.getString(\"deger\");\n jComboBox1.addItem(deger);\n}\n \n} catch(Exception e){\n \n} try{ps=conn.prepareStatement(sql2);\nrs=ps.executeQuery();\nwhile (rs.next()){\n String deger=rs.getString(\"deger\");\n jComboBox2.addItem(deger);\n}\n \n} catch(Exception e){\n \n} try{ps=conn.prepareStatement(sql3);\nrs=ps.executeQuery();\nwhile (rs.next()){\n String deger=rs.getString(\"deger\");\n jComboBox3.addItem(deger);\n}\n \n} catch(Exception e){\n \n} try{ps=conn.prepareStatement(sql4);\nrs=ps.executeQuery();\nwhile (rs.next()){\n String deger=rs.getString(\"deger\");\n jComboBox4.addItem(deger);\n}\n \n} catch(Exception e){\n \n} try{ps=conn.prepareStatement(sql5);\nrs=ps.executeQuery();\nwhile (rs.next()){\n String deger=rs.getString(\"deger\");\n jComboBox13.addItem(deger);\n}\n \n} catch(Exception e){\n \n} \n try{ps=conn.prepareStatement(sql6);\nrs=ps.executeQuery();\nwhile (rs.next()){\n String deger=rs.getString(\"deger\");\n jComboBox5.addItem(deger);\n}\n \n} catch(Exception e){\n \n} \n \n }", "public ComboBoxChooser(int maxNumber, int minNumber, String type, String keyword, PetAdoptionApp parent) {\n this.keyword = keyword;\n this.maxNumber = maxNumber;\n this.minNumber = minNumber;\n this.type = type;\n this.frameTitle = \"Enter Birthday\";\n safeBox.add(parent);\n int[] intRange = java.util.stream.IntStream.rangeClosed(minNumber, maxNumber).toArray();\n range = new String[intRange.length];\n for (int i = 0; i < intRange.length; i++) {\n range[i] = String.valueOf(intRange[i]);\n }\n confirm = new JButton(\"Confirm\");\n confirm.addActionListener(this);\n }", "private Encodings()\n {\n // nothing to do\n }", "public void inicializarComboMoneda(String cod){\n\t\tBeanItemContainer<MonedaVO> monedasObj = new BeanItemContainer<MonedaVO>(MonedaVO.class);\r\n\t\tMonedaVO moneda = new MonedaVO();\r\n\t\tArrayList<MonedaVO> lstMonedas = new ArrayList<MonedaVO>();\r\n\t\tUsuarioPermisosVO permisosAux;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tpermisosAux = \r\n\t\t\t\t\tnew UsuarioPermisosVO(this.permisos.getCodEmp(),\r\n\t\t\t\t\t\t\tthis.permisos.getUsuario(),\r\n\t\t\t\t\t\t\tVariablesPermisos.FORMULARIO_CONCILIACION,\r\n\t\t\t\t\t\t\tVariablesPermisos.OPERACION_LEER);\r\n\t\t\t\r\n\t\t\tlstMonedas = this.controlador.getMonedas(permisosAux);\r\n\t\t\t\r\n\t\t} catch (ObteniendoMonedaException | InicializandoException | ConexionException | ObteniendoPermisosException | NoTienePermisosException e) {\r\n\r\n\t\t\tMensajes.mostrarMensajeError(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\tfor (MonedaVO monedaVO : lstMonedas) {\r\n\t\t\t\r\n\t\t\tmonedasObj.addBean(monedaVO);\r\n\t\t\t\r\n\t\t\tif(cod != null){\r\n\t\t\t\tif(cod.equals(monedaVO.getCodMoneda())){\r\n\t\t\t\t\tmoneda = monedaVO;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tthis.comboMoneda.setContainerDataSource(monedasObj);\r\n\t\tthis.comboMoneda.setItemCaptionPropertyId(\"descripcion\");\r\n\t\t\r\n\t\t\r\n\t\tif(cod!=null)\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tthis.comboMoneda.setReadOnly(false);\r\n\t\t\t\tthis.comboMoneda.setValue(moneda);\r\n\t\t\t\tthis.comboMoneda.setReadOnly(true);\r\n\t\t\t}catch(Exception e)\r\n\t\t\t{}\r\n\t\t}\r\n\t\t\r\n\t}" ]
[ "0.71860445", "0.6344548", "0.63442284", "0.6251934", "0.61428946", "0.59419274", "0.5933624", "0.5869738", "0.5822644", "0.5810973", "0.57907593", "0.5788747", "0.5778916", "0.5720059", "0.5719992", "0.571998", "0.5693528", "0.5689496", "0.5681809", "0.5678462", "0.5665096", "0.5614912", "0.56106305", "0.5591063", "0.5586243", "0.5579985", "0.55715656", "0.55683404", "0.55615413", "0.55327654", "0.55246747", "0.5522801", "0.55156016", "0.5514056", "0.55111223", "0.5503242", "0.54970634", "0.5483287", "0.5448981", "0.5445253", "0.5444765", "0.54297626", "0.54235256", "0.5417066", "0.54117715", "0.5403307", "0.5373331", "0.5355631", "0.5353173", "0.5348259", "0.53459054", "0.5340703", "0.5329271", "0.53244007", "0.53036815", "0.5302692", "0.5299528", "0.52974504", "0.52898705", "0.5255197", "0.52449375", "0.5228379", "0.5225229", "0.5218524", "0.5215412", "0.5213246", "0.5212251", "0.5204449", "0.51885045", "0.51845074", "0.5182292", "0.5173934", "0.5173199", "0.51680386", "0.5153688", "0.5146806", "0.5143347", "0.51384413", "0.51373523", "0.5137168", "0.51299906", "0.51136625", "0.5108846", "0.5107793", "0.510073", "0.510073", "0.5100351", "0.5096197", "0.50938624", "0.509303", "0.50871336", "0.5076891", "0.5075977", "0.5075519", "0.50668913", "0.50662374", "0.50621873", "0.50583124", "0.50448096", "0.5044001" ]
0.76526946
0
Disposes of all resources associated with a particular instance of the HexEditorControl.
public void dispose() { if (table != null) { table.dispose(); table = null; } if (cursor != null) { cursor.dispose(); cursor = null; } if (clipboard != null) { clipboard.dispose(); } disposeCommands(undolist); disposeCommands(redolist); encodingTypes = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disposeResources() {\n Arrays.fill(icons, null);\n iconComponent.removeAncestorListener(this);\n }", "public void dispose() {\n\t\tResourcesPlugin.getWorkspace().removeResourceChangeListener(this);\n\t\tsuper.dispose();\n\t}", "public void cleanup() {\n mParentLayout.removeView(mContainer);\n mControlsVisible.clear();\n }", "public void dispose()\n {\n PerlEditorPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(this);\n \n uninstallAnnotationListener();\n \n try\n {\n if (sourceViewer instanceof ITextViewerExtension &&\n bracketInserter != null)\n {\n ((ITextViewerExtension) sourceViewer).removeVerifyKeyListener(\n bracketInserter);\n }\n if (validationThread != null) validationThread.dispose();\n if (idleTimer != null) idleTimer.dispose();\n \n String[] actionIds = PerlEditorActionIds.getEditorActions();\n for (int i = 0; i < actionIds.length; i++)\n {\n IAction action = getAction(actionIds[i]);\n if (action instanceof PerlEditorAction)\n ((PerlEditorAction) action).dispose();\n }\n \n super.dispose();\n }\n catch (InterruptedException e)\n {\n e.printStackTrace(); // TODO log it\n }\n }", "@Override\n\tpublic void dispose() {\n\t\tdestroy();\n\t}", "@Override\n public void cleanup() {\n // dispose GUI:\n if (this.mainPanel != null) {\n this.mainPanel.dispose();\n }\n }", "public void dispose() {\n // System.out.println(\"NctextuiPaletteWindow dispose me, isEditorVisible=\"+\n // isEditorVisible);\n if (!isEditorVisible) {\n\t \tNctextuiResource.unregisterMouseHandler();\n\t \treturn;\n } else {\n\t \tsuper.dispose();\n\n\t \tNatlCntrsEditor editor = NctextuiResource.getMapEditor();\n\t \t\n if (editor != null) {\n for (IRenderableDisplay display : UiUtil\n .getDisplaysFromContainer(editor)) {\n // System.out.println(\"display \" + display.toString());\n for (ResourcePair rp : display.getDescriptor()\n .getResourceList()) {\n if (rp.getResource() instanceof NctextuiResource) {\n NctextuiResource rsc = (NctextuiResource) rp\n .getResource();\n\t \t\t\t\t\trsc.unload();\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\t \tnctextuiPaletteWindow = null;\n\n\t \t/*\n\t \t * remove the workbench part listener\n\t \t */\n\t \tpage.removePartListener(this);\n\t }\n\n \t}", "public void freeResources() {\n borderPane = null;\n }", "public void dispose() {\r\n // Remove from existing Customer render groups.\r\n leaveRenderGroups();\r\n }", "@Override\n public void dispose() {\n font.dispose();\n background.dispose();\n if (triggered) {\n stage.dispose();\n }\n }", "protected void dispose()\n {\n TextureLoader.disposeTextures();\n TileRender.dispose();\n EntityRender.dispose();\n ItemRender.dispose();\n fontRender.dispose();\n background_render.dispose();\n target_render.dispose();\n box_render.dispose();\n Shader.disposeAll();\n }", "@Override\n public void dispose() {\n background.dispose();\n logo.dispose();\n game.dispose();\n batch.dispose();\n mySkin.dispose();\n stage.dispose();\n }", "public void dispose() {\n processDispose(false);\n }", "public void dispose() {\n equipment.dispose();\n inventory.dispose();\n }", "public void dispose() {\n _interpreterControl.killInterpreter(false);\n }", "public void dispose() {\n synchronized (getTreeLock()) {\n if (inputContext != null) {\n InputContext toDispose = inputContext;\n inputContext = null;\n toDispose.dispose();\n }\n synchronized (ownedWindows) {\n for (int i = 0; i < ownedWindows.size(); i++) {\n Window child = (Window) (ownedWindows.elementAt(i));\n if (child != null) {\n child.dispose();\n }\n }\n } \n hide();\n // 6182409: Window.pack does not work correctly.\n beforeFirstShow = true;\n removeNotify();\n if (parent != null) {\n Window parent = (Window) this.parent;\n parent.removeOwnedWindow(this);\n } \n postWindowEvent(WindowEvent.WINDOW_CLOSED);\n }\n }", "@Override\n\tpublic void dispose() {\n\t\tdropImage.dispose();\n\t\tbaddroplet.dispose();\n\t\tdeathraindropImage.dispose();\n\t\tbucketImage.dispose();\n\t\tdropSound.dispose();\n\t\tskinButton.dispose();\n\t\tfont.dispose();\n\t\tbuttonAtlas.dispose();\n\t\trainMusic.dispose();\n\t\tbatch.dispose();\n\t\tstage.dispose();\n\t}", "@Override\n\tpublic void dispose() {\n\t\tsuper.dispose();\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\tpe.setPage(null);\n\t\t\t\tpe.setPropertyChangeListener(null);\n\t\t\t\tpe.setPreferenceStore(null);\n\t\t\t}\n\t\t}\n\t}", "public static void dispose() {\n\t\ttexture.dispose();\n\t\tcoin.dispose();\n\t\tflap.dispose();\n\t\tdead.dispose();\n\t\tfont.dispose();\n\t\tshadow.dispose();\n\t}", "private void presentationDisposed() {\r\n\t\tapiPreferences.dispose();\r\n\t\tthemePreferences.dispose();\r\n\r\n\t\tIterator iter = prefs.values().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tPropertyMapAdapter next = (PropertyMapAdapter) iter.next();\r\n\t\t\tnext.dispose();\r\n\t\t}\r\n\r\n\t\tif (systemMenu != null) {\r\n\t\t\tsystemMenu.dispose();\r\n\t\t}\r\n\r\n\t\tif (partList != null) {\r\n\t\t\tpartList.dispose();\r\n\t\t}\r\n\r\n\t\tsystemMenu = null;\r\n\t\tpartList = null;\r\n\r\n\t}", "@Override\n\tpublic void dispose() {\n\t\tbackground.dispose();\n\t\ttexture.dispose();\n\t\ttexture2.dispose();\n\t\tspriteBatch.dispose();\n\t\tclient.removeListener(listener);\n\t\tui.dispose();\n\t}", "@Override\n\tpublic void dispose() {\n\t\tplat.dispose();\n\t\tbar1.dispose();\n\t\tbar2.dispose();\n\t}", "private void dispose() {\n dialog.dispose();\n editManager.removeCharChangeListener(compCharChangeListener);\n selectionModel.removeListSelectionListener(compCharSelectListener);\n }", "public void dispose() {\n\t\tthis.shape_renderer.dispose();\n\t\tthis.sprite_renderer.dispose();\n\t}", "@Override\n public void dispose() {\n stage.dispose();\n skin.dispose();\n }", "@Override\n public void dispose()\n {\n // Call super dispose first so that window is closed, before\n // disposing of the frame. This prevents a crash because of\n // trying to dry a disposed image.\n // Should really be at the end of this function. TODO:\n super.dispose();\n\n CogTool.selectionPhase.removeDelayedWork(delayedWidgetSelection);\n CogTool.repaintPhase.removeDelayedWork(delayedRepainting);\n\n uiModel.dispose();\n\n frameUI.removeAllHandlers(this);\n frame.removeAllHandlers(this);\n design.removeAllHandlers(this);\n\n undoManager.removeAllHandlers(this);\n selection.removeAllHandlers(this);\n }", "@Override\n\tpublic void dispose() {\n\t\tstage.dispose();\t\t\n\t\tsuper.dispose();\n\t}", "public void dispose() {\n\t\tBusinessObject owner = getOwner();\n\t\tif (owner != null) {\n\t\t\t// remove potential owner's pointer to this\n\t\t\towner.removeChild(this);\n\t\t\t// remove pointer to owner\n\t\t\t_ownerProperty().setValue(null);\n\t\t}\n\t\t\n\t\t// free all children {\n\t\tif (children != null) {\n\t\t\tBusinessObject[] array = new BusinessObject[children.size()];\n\t\t\tchildren.values().toArray(array);\n\t\t\tfor (BusinessObject bo : array) {\n\t\t\t\tbo.dispose();\n\t\t\t}\n\t\n\t\t\tchildren.clear();\n\t\t\tchildren = null;\t// not needed anymore\n\t\t}\n\t\t\n\t\t// remove all link records\n\t\tif (childLinks != null) {\n\t\t\tchildLinks.clear();\n\t\t\tchildLinks = null;\t// not needed anymore\n\t\t}\n\t\tif (childLinkedAttributes != null) {\n\t\t\tchildLinkedAttributes.clear();\n\t\t\tchildLinkedAttributes = null;\n\t\t}\n\t\t\n\t\t// stop anyone from listening to this object\n\t\tlisteners.clear();\n\t}", "public void dispose() {\n parent.removePropertyChangeListener(PNode.PROPERTY_FULL_BOUNDS, this);\n child.removePropertyChangeListener(PNode.PROPERTY_FULL_BOUNDS, this);\n parent.removeEdge(this);\n child.removeEdge(this);\n child.setParentEdge(null);\n }", "public void dispose()\r\n\t{\r\n\t\t_current.dispose();\r\n\t}", "@Override\n public void dispose() {\n Assets.instance.dispose();\n batch.dispose();\n grayScaleView.dispose();\n }", "public void dispose() {\n for (Color color : this.colorTable.values()) {\n color.dispose();\n }\n }", "public void dispose(){\n\t\tcurrentSections.clear();\n\t}", "public void disposeResources()\n {\n for (Disposable disposable : this.disposableObjects) {\n disposable.dispose();\n }\n }", "public void dispose() {\n cachedModelMap.clear();\n ResourcesPlugin.getWorkspace()\n .removeResourceChangeListener(this);\n }", "public void dispose() {\n\t\t\r\n\t\tthis.actionSet = null;\r\n\t\tsuper.dispose();\r\n\r\n\t}", "public void destroy(){\n\t\tcimg.destroy();\n\t}", "@Override\r\n\tpublic void dispose() {\n\t\tmodelBatch.dispose();\r\n\t\tinstances.clear();\r\n\t\tassets.dispose();\r\n\t}", "public void dispose () {\n\t\twhile(!stack.isEmpty()) {\n\t\t\tstack.pop().dispose();\n\t\t}\n\t}", "public void dispose() {\n\t\tif (_slideCacheEntry != null) {\r\n\t\t\t_slideCacheEntry.dispose();\r\n\t\t}\r\n\r\n\t\tif (_precacheCacheEntry != null) {\r\n\t\t\t_precacheCacheEntry.dispose();\r\n\t\t}\r\n\t\t\r\n\t\t// The slide might remain in usage, this graphicsListener not:\r\n\t\t_slide.removeListener(_graphicsListener);\r\n\t}", "public void dispose() {\n if (!disposable.isDisposed()) {\n disposable.dispose();\n }\n }", "public void dispose() {\n\t\tsuper.dispose();\n\t}", "public void dispose() {\r\n\t\tif (view != null)\r\n\t\t\tview.stopThread = true;\r\n\t\tview = null;\r\n\t\tcontroller = null;\r\n\t\tsuper.dispose();\r\n\t}", "public void dispose()\n {\n if (this.filterEngine != null)\n {\n this.filterEngine.dispose();\n this.filterEngine = null;\n }\n\n if (this.jsEngine != null)\n {\n this.jsEngine.dispose();\n this.jsEngine = null;\n }\n\n if (this.logSystem != null)\n {\n this.logSystem.dispose();\n this.logSystem = null;\n }\n\n if (this.webRequest != null)\n {\n this.webRequest.dispose();\n this.webRequest = null;\n }\n\n if (this.updateAvailableCallback != null)\n {\n this.updateAvailableCallback.dispose();\n this.updateAvailableCallback = null;\n }\n\n if (this.updateCheckDoneCallback != null)\n {\n this.updateCheckDoneCallback.dispose();\n this.updateCheckDoneCallback = null;\n }\n\n if (this.filterChangeCallback != null)\n {\n this.filterChangeCallback.dispose();\n this.filterChangeCallback = null;\n }\n\n if (this.showNotificationCallback != null)\n {\n this.showNotificationCallback.dispose();\n this.showNotificationCallback = null;\n }\n }", "protected void dispose() {\r\n\t\titems.removeAllElements();\r\n\t\tlist.deleteAll();\r\n\t\tthis.list.removeCommand(add2CartCommand);\r\n\t\tthis.list.removeCommand(previewCommand);\r\n\t}", "public void destroy() {\n for (ComponentBean component : this.componentMap.values()) {\n component.getObject().destroy();\n }\n\n flushRegistry();\n\n }", "void dispose() {\n for (int i = 0; i < days.size(); i++) {\n days.get(i).dispose();\n }\n days.clear();\n days = null;\n }", "@Override\n public void dispose() {\n stage.dispose();\n }", "@Override\n public void dispose() {\n stage.dispose();\n }", "public void dispose() {\r\n\t\tclose();\r\n\t}", "private void dispose() {\n theCar = null;\n win.dispose();\n }", "protected void implClose() {\n/* 170 */ long l = this.id;\n/* 171 */ this.id = 0L;\n/* 172 */ nClose(l);\n/* 173 */ if (this.ports != null) {\n/* 174 */ for (byte b = 0; b < this.ports.length; b++) {\n/* 175 */ if (this.ports[b] != null) {\n/* 176 */ this.ports[b].disposeControls();\n/* */ }\n/* */ } \n/* */ }\n/* */ }", "public void dispose()\n {\n if(mapaActual!=null)\n this.mapaActual.dispose();\n \n //Descarga de los recursos gráficos en animaciones\n for( Animation<TextureRegion>[] animaciones: this.mapaAnimaciones.values())\n {\n for(Animation<TextureRegion> an :animaciones)\n {\n for (TextureRegion tx : an.getKeyFrames())\n tx.getTexture().dispose();\n }\n }\n \n //Descarga de los efectos de sonido\n for(Map.Entry<String, Sound>efecto:this.mapaEfectosSonido.entrySet())\n efecto.getValue().dispose();\n \n //Descarga de la musica de fondo\n if(musicaFondo!=null)\n musicaFondo.dispose();\n \n //Descarga de los Skins\n SKIN_PROPIO.dispose();\n }", "@Override\n\tpublic void dispose() {\n\t\tisActive = false;\n\t\tfont.dispose();\n\t}", "public void dispose() {\n\t\tif (diagramItemProvider != null) diagramItemProvider.dispose();\n\t\tif (squareItemProvider != null) squareItemProvider.dispose();\n\t\tif (triangleItemProvider != null) triangleItemProvider.dispose();\n\t\tif (unknownItemProvider != null) unknownItemProvider.dispose();\n\t\tif (connectionItemProvider != null) connectionItemProvider.dispose();\n\t\tif (dashedConnectionItemProvider != null) dashedConnectionItemProvider.dispose();\n\t}", "@Override\n public void dispose()\n {\n super.dispose();\n if (_statusEditor!=null)\n {\n _statusEditor=null;\n }\n }", "public void dispose() {\n\t\tinterruptWait(AceSignalMessage.SIGNAL_TERM, \"disposed\");\n\t}", "@Override\n\tpublic void dispose() {\n\t\tstage.dispose();\n\t\t\n\t}", "public void dispose() {\n parent.removeListener(listener);\n PlatformUI.getWorkbench().getDisplay().asyncExec(displayRunnable);\n }", "private void destroyDisplayEditOverlay() {\n\t}", "@Override\n public void dispose() {\n spriteBatchLayer.dispose();\n imageAnimationActor.dispose();\n translateAnimationActor.dispose();\n assetManager.dispose();\n }", "public void dispose() {\n this.img.dispose();\n }", "public void dispose()\n\t{\n\t\tthis.mDText=null;\n\t\tvisitorFacets.dispose();\n\t\tvisitorMicroSpecies.dispose();\n\t\tvisitorAttributes.dispose();\n\t\tvisitorActions.dispose();\n\t\tvisitorReflexes.dispose();\n\t\tvisitorAspects.dispose();\n\t\tthis.visitorFacets=null;\n\t\tthis.visitorMicroSpecies=null;\n\t\tthis.visitorAttributes=null;\n\t\tthis.visitorActions=null;\n\t\tthis.visitorReflexes=null;\n\t\tthis.visitorAspects=null;\n\t\tthis.experimentsLink=null;\n\t\tthis.speciesLink=null;\n\t}", "public void dispose() {\n if (exporterContainer != null) {\n exporterContainer.close();\n exporterContainer = null;\n }\n\n if (applicationContainer != null) {\n applicationContainer.close();\n applicationContainer = null;\n }\n\n if (network != null) {\n network.close();\n network = null;\n }\n\n httpClient = null;\n }", "public void dispose()\n {\n synchronized (this)\n {\n if (iHandle == 0)\n {\n return;\n }\n disposeProxy();\n iHandle = 0;\n iActionSubscribe.destroy();\n iActionUnsubscribe.destroy();\n iActionRenew.destroy();\n iActionGetPropertyUpdates.destroy();\n }\n }", "public void dispose() {\r\n\t\tquit();\r\n\t}", "public void dispose() {\n story = null;\n backlog = null;\n parent = null;\n }", "@Override\n public void dispose() {\n shapeRenderer.dispose();\n super.dispose();\n }", "public void dispose(){\n tex.dispose();\n }", "public void destroy() {\n/* 157 */ this.mDisposable.clear();\n/* */ }", "@Override\n\tpublic void dispose() {\n\t\tstage.dispose();\n\t\tvoltarImg.dispose();\n\t}", "public void destroy() {\n renderer.destroy();\n }", "public void dispose()\n\t{\n\t\tsuper.dispose();\n\t}", "private void close(){\n this.dispose();\n }", "public void destroy() {\n Iterator it = components.iterator();\n while (it.hasNext()) {\n PortletComponent comp = (PortletComponent) it.next();\n comp.destroy();\n }\n }", "public void dispose() {\r\n\t\t// Nothing to dispose\r\n\t}", "private static void destroyControl( Object controlInstance )\n {\n assert controlInstance instanceof ControlBean : controlInstance.getClass().getName();\n BeanContext beanContext = ( ( ControlBean ) controlInstance ).getBeanContext();\n if ( beanContext != null ) {\n if(LOG.isTraceEnabled())\n LOG.trace(\"Removing control \" + controlInstance + \" from ControlBeanContext \" + beanContext);\n beanContext.remove( controlInstance );\n }\n }", "@Override\r\n\tpublic void destroy() {\n\t\tif(guard!=null)\r\n\t\t\tguard.dispose();\r\n\t\tif(validator!=null)\r\n\t\t\tvalidator.dispose();\r\n\t\tif(handler!=null)\r\n\t\t\thandler.dispose();\r\n\t\tif(errHandler!=null)\r\n\t\t\terrHandler.dispose();\r\n\t}", "@Override\n\tpublic void dispose() {\n\t\tsuper.dispose();\n\t}", "public void dispose()\n {\n Iterator<Color> e = colorMap.values().iterator();\n while ( e.hasNext() )\n {\n e.next().dispose();\n }\n }", "@Override\r\n\tpublic void dispose() {\n\t\t_stage.dispose();\r\n\t}", "public void dispose() {\n\t\t// Nothing to dispose\n\t}", "public void dispose()\n {\n getLogger().debug( \"dispose\" );\n }", "public void destroy() {\n this.bfc.cleanUp();\n }", "@Override\r\n\tpublic void dispose() {\n\t\tsuper.dispose();\r\n\t}", "@Override\n\tpublic void dispose()\n\t{\n\t\tsuper.dispose();\n\t\tm_pokemon = null;\n\t\tm_boxes = null;\n\t\tm_friends = null;\n\t\tm_bag = null;\n\t\tm_currentShop = null;\n\t\tm_battleField = null;\n\t}", "public void dispose( );", "@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}", "void dispose() {}", "public void dispose() {\r\n if (graphComponent != null) {\r\n // to cleanly dispose a GraphComponent, uninstall the main InputMode so that\r\n // modes that deal with the component hierarchy can reset the application state.\r\n graphComponent.setInputMode(null);\r\n }\r\n }", "private void dispose() {\n\n\t}", "@Destroy\r\n\tpublic void destroy() {\r\n\t\t// Component disposal code.\r\n\t\t// All properties are disposed.\r\n\t\temailConfiguration=null;\r\n\t}", "public void dispose()\n\t{\n\t\tthis.accessor.dispose();\n\t\tthis.env.close();\n\t}", "@Override\n public void disposeComponent() {\n }", "@Override\n public void disposeComponent() {\n }", "@Override\n public void disposeComponent() {\n }", "@Override\n public void disposeComponent() {\n }", "public void dispose() {\n\t\t}" ]
[ "0.6681638", "0.66124016", "0.6594685", "0.6582435", "0.65708846", "0.65699697", "0.65651953", "0.64879495", "0.6455497", "0.644031", "0.64350754", "0.6416069", "0.6406352", "0.63898206", "0.6379624", "0.63736635", "0.6372201", "0.6338884", "0.63329613", "0.63301146", "0.63194495", "0.6314601", "0.63130105", "0.6310929", "0.63087606", "0.63065034", "0.63020855", "0.62923354", "0.6284304", "0.6276962", "0.6274161", "0.6265855", "0.6265535", "0.6265318", "0.62631667", "0.6258831", "0.6247779", "0.62364", "0.62312615", "0.6229949", "0.62188166", "0.6202708", "0.6195826", "0.6195554", "0.6187808", "0.6177026", "0.6172408", "0.61630833", "0.61630833", "0.6161539", "0.61595666", "0.6148942", "0.6145476", "0.6142085", "0.6140627", "0.61315596", "0.6128877", "0.61263806", "0.61261094", "0.61165", "0.6115965", "0.6114286", "0.6113663", "0.6104673", "0.6102701", "0.6095998", "0.6082951", "0.60793966", "0.6073076", "0.607128", "0.6068888", "0.6067962", "0.60616106", "0.60560256", "0.60519695", "0.60441387", "0.60404897", "0.60327804", "0.60289234", "0.6024496", "0.60239935", "0.60197985", "0.60182005", "0.60153687", "0.6015322", "0.6011793", "0.59960365", "0.59958744", "0.59958744", "0.59958744", "0.59836227", "0.59781694", "0.5976502", "0.59727484", "0.5970392", "0.59675217", "0.59675217", "0.59675217", "0.59675217", "0.596626" ]
0.6625418
1
Creates the search panel.
private void createSearchPanel(Composite comp) { Composite searchPanel = new Composite(comp, SWT.NONE); GridLayout layout = new GridLayout(6, false); layout.verticalSpacing = layout.horizontalSpacing = 0; layout.marginHeight = 0; searchPanel.setLayout(layout); searchPanel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Label label = new Label(searchPanel, SWT.LEFT); label.setText(Messages.HexEditorControl_17); findText = new Text(searchPanel, SWT.LEFT | SWT.BORDER); findText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); ToolBar bar1 = new ToolBar(searchPanel, SWT.HORIZONTAL | SWT.FLAT); final ToolItem findHex = new ToolItem(bar1, SWT.CHECK); findHex.setText("0x"); //$NON-NLS-1$ findHex.setToolTipText(Messages.HexEditorControl_19); final ToolItem next = new ToolItem(bar1, SWT.PUSH); next.setText(Messages.HexEditorControl_20); final ToolItem prev = new ToolItem(bar1, SWT.PUSH | SWT.FLAT); prev.setText(Messages.HexEditorControl_21); final ToolItem matchCase = new ToolItem(bar1, SWT.CHECK); matchCase.setText(Messages.HexEditorControl_22); final ToolItem wrap = new ToolItem(bar1, SWT.CHECK); wrap.setText(Messages.HexEditorControl_23); replaceText = new Text(searchPanel, SWT.LEFT | SWT.BORDER); replaceText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); ToolBar bar2 = new ToolBar(searchPanel, SWT.HORIZONTAL | SWT.FLAT); final ToolItem replaceHex = new ToolItem(bar2, SWT.CHECK); replaceHex.setText("0x"); //$NON-NLS-1$ replaceHex.setToolTipText(Messages.HexEditorControl_25); final ToolItem replace = new ToolItem(bar2, SWT.PUSH | SWT.FLAT); replace.setText(Messages.HexEditorControl_26); final ToolItem replaceFind = new ToolItem(bar2, SWT.PUSH | SWT.FLAT); replaceFind.setText(Messages.HexEditorControl_27); final ToolItem replaceAll = new ToolItem(bar2, SWT.PUSH); replaceAll.setText(Messages.HexEditorControl_28); Listener replaceListener = new Listener() { @Override public void handleEvent(Event event) { replace(findText.getText(), findHex.getSelection(), replaceText.getText(), replaceHex.getSelection(), true, matchCase.getSelection(), wrap.getSelection(), event.widget == replaceFind, event.widget == replaceAll); } }; replace.addListener(SWT.Selection, replaceListener); replaceFind.addListener(SWT.Selection, replaceListener); replaceAll.addListener(SWT.Selection, replaceListener); class UpdateActions { boolean validateAndUpdate() { boolean findValid = validate(findHex, findText); boolean replaceValid = validate(replaceHex, replaceText); hexEditor.getEditorSite().getActionBars() .getStatusLineManager().setMessage(findValid && replaceValid ? null : Messages.HexEditorControl_29); boolean hasText = findText.getText().length() > 0; next.setEnabled(hasText && findValid); prev.setEnabled(hasText && findValid); replace.setEnabled(hasText && findValid && replaceValid); replaceFind.setEnabled(hasText && findValid && replaceValid); replaceAll.setEnabled(hasText && findValid && replaceValid); return findValid && replaceValid; } private boolean validate(ToolItem item, Text text) { boolean valid = item.getSelection() && HexUtils.isValidHexString(text.getText(), true) || !item.getSelection(); // text.setBackground(PropertyChangeListener.getColor(valid ? new RGB(255, 255, 255) : new RGB(255, 0, 0))); return valid; } } final UpdateActions updateActions = new UpdateActions(); Listener findListener = new Listener() { @Override public void handleEvent(Event event) { if (!updateActions.validateAndUpdate()) return; boolean forward = event.widget != prev; HexTablePointer position = getCursorPosition(); if (event.type == SWT.DefaultSelection || event.widget == next) position.move(1); else if (event.widget == prev) position.move(-1); search(position, findText.getText(), findHex.getSelection(), forward, matchCase.getSelection(), wrap.getSelection()); } }; findText.addListener(SWT.Modify, findListener); findText.addListener(SWT.DefaultSelection, findListener); next.addListener(SWT.Selection, findListener); prev.addListener(SWT.Selection, findListener); Listener validateListener = new Listener() { @Override public void handleEvent(Event event) { updateActions.validateAndUpdate(); } }; findHex.addListener(SWT.Selection, validateListener); replaceHex.addListener(SWT.Selection, validateListener); replaceText.addListener(SWT.Modify, validateListener); KeyAdapter keyListener = new KeyAdapter() { @Override public void keyReleased(KeyEvent e) { if (e.keyCode == SWT.ESC) { setRulerVisible(false); selectFindResult(true); table.updateVisibleTable(false, true, false); } } }; findText.addKeyListener(keyListener); replaceText.addKeyListener(keyListener); Listener savePropertiesListener = new Listener() { @Override public void handleEvent(Event event) { Activator.getDefault().getPreferenceStore().setValue(HexEditorConstants.PROPERTY_FIND_HEX, findHex.getSelection()); Activator.getDefault().getPreferenceStore().setValue(HexEditorConstants.PROPERTY_REPLACE_HEX, replaceHex.getSelection()); Activator.getDefault().getPreferenceStore().setValue(HexEditorConstants.PROPERTY_MATCH_CASE, matchCase.getSelection()); Activator.getDefault().getPreferenceStore().setValue(HexEditorConstants.PROPERTY_WRAP, wrap.getSelection()); } }; findHex.addListener(SWT.Selection, savePropertiesListener); replaceHex.addListener(SWT.Selection, savePropertiesListener); matchCase.addListener(SWT.Selection, savePropertiesListener); wrap.addListener(SWT.Selection, savePropertiesListener); findHex.setSelection(Activator.getDefault().getPreferenceStore().getBoolean(HexEditorConstants.PROPERTY_FIND_HEX)); replaceHex.setSelection(Activator.getDefault().getPreferenceStore().getBoolean(HexEditorConstants.PROPERTY_REPLACE_HEX)); matchCase.setSelection(Activator.getDefault().getPreferenceStore().getBoolean(HexEditorConstants.PROPERTY_MATCH_CASE)); wrap.setSelection(Activator.getDefault().getPreferenceStore().getBoolean(HexEditorConstants.PROPERTY_WRAP)); updateActions.validateAndUpdate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SearchResultPanel()\n\t{\n\t\tcreateComponents();\n\t\tdesignComponents();\n\t\taddComponents();\n\t}", "private SearchBar() {\n controller = FilterController.getInstance();\n initComponents();\n createNewQueryPanel();\n }", "public DisputeSearchPanel() {\n initComponents();\n }", "public void createSearchForPatientPanel() {\n\n\t\tsearchPatientPanel = new JPanel();\n\t\tsearchPatientPanel.setSize(700, 430);\n\t\tsearchPatientPanel.setLocation(0, 70);\n\t\tsearchPatientPanel.setLayout(null);\n\n\t\tJPanel topSearchPanel = new JPanel(new FlowLayout());\n\t\ttopSearchPanel.setSize(500, 30);\n\t\ttopSearchPanel.setLocation(100, 0);\n\t\ttopSearchPanel.add(new JLabel(\"Enter Patiets Name/ID:\"));\n\t\tsearchPatientTF = new JTextField(20);\n\t\ttopSearchPanel.add(searchPatientTF);\n\t\tsearchButton = new JButton(\"Find Patient\");\n\n\t\tsearchButton.addActionListener(this);\n\n\t\ttopSearchPanel.add(searchButton);\n\t\tsearchPatientPanel.add(topSearchPanel);\n\n\t\t// searched patients details labels\n\t\tJPanel searchedPatientDetailsPanel = new JPanel(new GridLayout(4, 2));\n\t\tsearchedPatientDetailsPanel.setLocation(40, 60);\n\t\tsearchedPatientDetailsPanel.setSize(250, 200);\n\t\tsearchedPatientDetailsPanel.setBackground(Color.WHITE);\n\n\t\tl1 = new JLabel(\"Name:\");\n\t\tsearchLabel1 = new JLabel(\"\");\n\t\tl2 = new JLabel(\"Address:\");\n\t\tsearchLabel2 = new JLabel(\"\");\n\t\tl3 = new JLabel(\"Phone Number:\");\n\t\tsearchLabel3 = new JLabel(\"\");\n\t\tl4 = new JLabel(\"DOB:\");\n\t\tsearchLabel4 = new JLabel(\"\");\n\n\t\tsearchedPatientDetailsPanel.add(l1);\n\t\tsearchedPatientDetailsPanel.add(searchLabel1);\n\t\tsearchedPatientDetailsPanel.add(l2);\n\t\tsearchedPatientDetailsPanel.add(searchLabel2);\n\t\tsearchedPatientDetailsPanel.add(l3);\n\t\tsearchedPatientDetailsPanel.add(searchLabel3);\n\t\tsearchedPatientDetailsPanel.add(l4);\n\t\tsearchedPatientDetailsPanel.add(searchLabel4);\n\n\t\tsearchPatientPanel.add(searchedPatientDetailsPanel);\n\n\t\t// update button\n\t\tJPanel updateButtonPanel = new JPanel();\n\t\tupdateButtonPanel.setSize(200, 40);\n\t\tupdateButtonPanel.setLocation(40, 300);\n\n\t\tupdatePatientPanel = new JPanel();\n\t\tupdatePatientButton = new JButton(\"Upadate Current Patient\");\n\t\tupdatePatientButton.setVisible(false);\n\n\t\tupdatePatientButton.addActionListener(this);\n\t\tupdateButtonPanel.add(updatePatientButton);\n\t\tsearchPatientPanel.add(updateButtonPanel);\n\n\t\tJPanel updateAddNewHistoryButtonPanel = new JPanel();\n\t\tupdateAddNewHistoryButtonPanel.setSize(200, 40);\n\t\tupdateAddNewHistoryButtonPanel.setLocation(40, 350);\n\n\t\taddNewHistoryButton = new JButton(\"Add New History\");\n\t\taddNewHistoryButton.addActionListener(this);\n\t\taddNewHistoryButton.setVisible(false);\n\n\t\tupdateAddNewHistoryButtonPanel.add(addNewHistoryButton);\n\t\tsearchPatientPanel.add(updateAddNewHistoryButtonPanel);\n\n\t\t// searched patients history text area\n\t\tJPanel patientsHistoryPanel = new JPanel();\n\t\tpatientsHistoryPanel.setSize(350, 300);\n\t\tpatientsHistoryPanel.setLocation(330, 50);\n\n\t\tpatientsHistoryReport = new JTextArea(17, 30);\n\t\tJScrollPane sp2 = new JScrollPane(patientsHistoryReport);\n\t\tpatientsHistoryPanel.add(sp2);\n\t\tpatientsHistoryReport.setEditable(false);\n\t\tpatientsHistoryReport.setLineWrap(true);\n\t\tpatientsHistoryReport.setWrapStyleWord(true);\n\t\tpatientsHistoryReport.setWrapStyleWord(true);\n\n\t\tsearchPatientPanel.add(patientsHistoryPanel);\n\n\t\ttotalGUIPanel.add(searchPatientPanel);\n\t}", "private DynamicForm createSearchBox() {\r\n\t\tfinal DynamicForm filterForm = new DynamicForm();\r\n\t\tfilterForm.setNumCols(4);\r\n\t\tfilterForm.setAlign(Alignment.LEFT);\r\n\t\tfilterForm.setAutoFocus(false);\r\n\t\tfilterForm.setWidth(\"59%\"); //make it line up with sort box\r\n\t\t\r\n\t\tfilterForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tfilterForm.setOperator(OperatorId.OR);\r\n\t\t\r\n\t\t//Visible search box\r\n\t\tTextItem nameItem = new TextItem(\"name\", \"Search\");\r\n\t\tnameItem.setAlign(Alignment.LEFT);\r\n\t\tnameItem.setOperator(OperatorId.ICONTAINS); // case insensitive\r\n\t\t\r\n\t\t//The rest are hidden and populated with the contents of nameItem\r\n\t\tfinal HiddenItem companyItem = new HiddenItem(\"company\");\r\n\t\tcompanyItem.setOperator(OperatorId.ICONTAINS);\r\n\t\tfinal HiddenItem ownerItem = new HiddenItem(\"ownerNickName\");\r\n\t\townerItem.setOperator(OperatorId.ICONTAINS);\r\n\r\n\t\tfilterForm.setFields(nameItem,companyItem,ownerItem);\r\n\t\t\r\n\t\tfilterForm.addItemChangedHandler(new ItemChangedHandler() {\r\n\t\t\tpublic void onItemChanged(ItemChangedEvent event) {\r\n\t\t\t\tString searchTerm = filterForm.getValueAsString(\"name\");\r\n\t\t\t\tcompanyItem.setValue(searchTerm);\r\n\t\t\t\townerItem.setValue(searchTerm);\r\n\t\t\t\tif (searchTerm==null) {\r\n\t\t\t\t\titemsTileGrid.fetchData();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tCriteria criteria = filterForm.getValuesAsCriteria();\r\n\t\t\t\t\titemsTileGrid.fetchData(criteria);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn filterForm;\r\n\t}", "public FlightSearchPanel() {\n initComponents();\n \n setLayout(new BorderLayout());\n \n textPane = new JTextPane();\n textPane.setFont(new Font(\"Tahoma\", Font.ITALIC, 18));\n textPane.setText(\"No search results to display\");\n textPane.setFocusable(false);\n textPane.setEditable(false);\n textPane.setOpaque(false);\n \n \n add(textPane);\n \n searchResultsPanel = new SearchResultsPanel();\n //add(searchResultsPanel);\n \n expandedFlightPanel = new ExpandedFlightPanel();\n //this.add(searchResultsPanel);\n \n }", "private void initSearchComponents()\n {\n searchPaneWrapper = new JPanel(new CardLayout());\n logoLabel = new JLabel(new ImageIcon(searchBackgroundImage));\n searchBar = new JTextField();\n webSearchButton = new JButton(\"Search web\");\n imageSearchButton = new JButton(\"Search images\");\n \n logoLabel.setBorder(BorderFactory.createEmptyBorder(70, 0, 0, 0));\n PromptSupport.setPrompt(\" Search...\", searchBar);\n searchBar.setPreferredSize(new Dimension(400, 35));\n searchBar.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, Color.LIGHT_GRAY));\n \n webSearchButton.addActionListener(this);\n imageSearchButton.addActionListener(this);\n \n searchPane.add(logoLabel);\n searchPane.add(Box.createRigidArea(new Dimension(searchPane.getPreferredSize().width, 20)));\n searchPane.add(searchBar);\n searchPane.add(Box.createRigidArea(new Dimension(searchPane.getPreferredSize().width, 10)));\n searchPane.add(webSearchButton);\n searchPane.add(imageSearchButton);\n searchPane.setBackground(Color.WHITE);\n searchPaneWrapper.add(searchPane, SEARCH_PANE_VIEW);\n \n viewPane.add(crawlPane);\n viewPane.add(searchPaneWrapper);\n \n viewPaneWrapper.add(viewPane, VIEW_PANE);\n viewPaneWrapper.add(transitionPane, TRANS_PANE_VIEW);\n \n JLabel crawlerTab = new JLabel(\"Crawler\", JLabel.CENTER);\n JLabel searchTab = new JLabel(\"Search\", JLabel.CENTER);\n crawlerTab.setIcon(new ImageIcon(spiderImage));\n searchTab.setIcon(new ImageIcon(searchIconDark));\n viewPane.setTabComponentAt(0, crawlerTab);\n viewPane.setTabComponentAt(1, searchTab); \n }", "public GUISearch() {\n initComponents();\n }", "public JPanel getSearchJPanel(){\n\t\treturn searchResults;//Return the search results\n\t}", "public insearch() {\n initComponents();\n }", "public SearchPanel(\r\n\t\t\tSearchHandler handlerRef, \r\n\t\t\tRecordListView li, \r\n\t\t\tCategoryHandler<IncomeRecord> inCatHandRef, \r\n\t\t\tCategoryHandler<ExpenseRecord> exCatHandRef) {\r\n\t\tsuper(new BorderLayout());\r\n\t\tthis.handler = handlerRef;\r\n\t\t\r\n\t\tpanCtrls = new JPanel();\r\n\t\tpanCtrls.setLayout(new BorderLayout());\r\n\t\t\r\n\t\tpanForm = new SearchFormPanel(this, this, inCatHandRef, exCatHandRef);\r\n\t\tpanCtrls.add(panForm, BorderLayout.CENTER);\r\n\t\tpanCtrls.setPreferredSize(new Dimension(DEFAULT_WIDTH, SIMPLE_HEIGHT)); // SIMPLE SEARCH EXPERIMENTATION\r\n\t\t\r\n\t\tpanBtns = new JPanel();\r\n\t\t\r\n\t\tpanForm.addListenerToTextFields(new ActionListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tperformSearch();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnAdvance = new JButton(\"More Options\");\r\n\t\tbtnAdvance.addActionListener(new ActionListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tswitchMode();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tpanBtns.setLayout(new BoxLayout(panBtns, BoxLayout.X_AXIS));\r\n\t\t\r\n\t\tJButton btnSearch = new JButton(\"Find\");\r\n\t\tpanBtns.add(btnSearch);\r\n\t\tpanBtns.add(Box.createVerticalGlue());\r\n\t\t\r\n\t\tpanBtns.add(btnAdvance);\r\n\t\t\r\n\t\tbtnSearch.addActionListener(new ActionListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tperformSearch();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tpanCtrls.add(panBtns, BorderLayout.EAST);\r\n\t\t\r\n\t\tthis.add(panCtrls, BorderLayout.NORTH);\r\n\t\t\r\n\r\n\t\tlist = li;\r\n\t\tthis.panResult = new JScrollPane(list);\r\n\t\tthis.add(this.panResult, BorderLayout.CENTER);\r\n\r\n\t\t// InfoPanel\r\n\t\tpanInfo = new InfoPanel();\r\n\t\tthis.add(panInfo, BorderLayout.SOUTH);\r\n\t}", "private void addSearchFieldAndButton() {\n\t\tsearchButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.SEARCH);\n\t\tsearchButton.setEnabled(false);\n searchField = new JTextField(20);\n searchField.setEnabled(false);\n\t\tsearchField.setToolTipText(\"Search...\");\n\t\ttoolPanel.add(searchField);\n\t\ttoolPanel.add(searchButton);\n\n ActionListener queryListener = new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString query = searchField.getText();\n controller.getViewController().addView(\"query\", \"q\"+query, false);\n\t\t\t}\n\t\t};\n\n searchField.addActionListener(queryListener);\n\t\tsearchButton.addActionListener(queryListener);\n }", "public SearchByName() {\n initComponents();\n }", "abstract GridPane createSearchDashBoard();", "public SearchableTreePanel() {\n super();\n initialize();\n }", "public SearchPanel() {\n\t\t\t fs = new Font [3];\n\t\t\t fs[0] = new Font(\"Lato\", Font.BOLD, 36);\n\t\t\t fs[1] = new Font(\"Open Sans\", 0 , 20);\n\t\t\t fs[2] = new Font(\"Open Sans\", 0 , 12);\n\t\t\t enterSB = new JButton(\"Search\");\n\t\t\t backB = new JButton(\"Return\");\n\t\t\t menuL = new JLabel (\"Search Feature\");\n\t\t\t tF = new JTextField ();\n\t\t\t tA = new JTextArea ();\n\t\t\t enterSB.setFont(fs[1]);\n\t\t\t backB.setFont(fs[2]);\n\t\t\t menuL.setFont(fs[0]);\n\t\t\t tF.setPreferredSize(new Dimension( 200, 24 ));\n\t\t\t //tA.setPreferredSize(new Dimension( 200, 24 ));\n\t\t\t tA.setEditable(false);\n\t\t\t tA.setLineWrap(true);\n\t\t\t \n\t\t\t // loads UI elements in view\n\t\t\t add(menuL, BorderLayout.PAGE_START);\n\t\t\t add(tF, BorderLayout.LINE_START);\n\t\t\t add(enterSB, BorderLayout.CENTER);\t \n\t\t\t add(tA, BorderLayout.LINE_END);\n\t\t\t add(backB, BorderLayout.PAGE_END);\n\t\t\t enterSB.addActionListener( new ActionListener()\n\t\t\t {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent e) // if search is clicked\n\t\t\t {\n\t\t\t \t tA.setText(\"Loading...\");\n\t\t\t \t City city = Search.search(Main.cities, tF.getText()); // search the city by name\n\t\t\t \t \n\t\t\t \t if (city == null){\n\t\t\t \t\t tA.setText(\"Couldn't find city!\");\n\t\t\t \t }\n\t\t\t \t else{\n\t\t\t \t\t tA.setText(mainGui.toString(city.getCond()));\n\t\t\t \t }\n\t\t\t }\n\t\t\t });\n\t\t\t backB.addActionListener( new ActionListener() // if back is clicked\n\t\t\t {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent e)\n\t\t\t {\n\t\t\t mainGui.paneSwitch(0); // go back to main menu\n\t\t\t }\n\t\t\t });\n\t\t }", "public SearchResultPanel(String name)\n\t{\n\t\tthis.setName(name);\n\t\tcreateComponents();\n\t\tdesignComponents();\n\t\taddComponents();\n\t}", "public SearchPanel(PonyUi ponyUi) {\n initComponents();\n ListManager.AbstractToDefaultListModelConverter(sp_RelatedQueriesList);\n this.ponyUi = ponyUi;\n }", "private void makeComponents() {\n Font font = new Font(\"Open Sans\", Font.PLAIN, 14);\n\n //Create The buttons and configure their visual design.\n searchArea.setFont(font);\n searchArea.setBorder(new CompoundBorder(BorderFactory.createMatteBorder(4, 7, 4, 7, DrawAttribute.lightblue), BorderFactory.createRaisedBevelBorder()));\n searchArea.setBounds(20, 20, 300, 37);\n searchArea.setActionCommand(\"searchAreaInput\");\n\n makeFrontGUIButtons();\n }", "void searchUI();", "protected abstract ITitleAndSearchPanelFilter instantiateHeaderAndSearchFilter ( ) ;", "public JPanel getSearchResultPanel(){return searchResultPanel;}", "public SearchGUI(){\n\t\t\n\t\tsuper(\"Search GUI\");\n\t\tsetSize(600,500);\n\t\tsetResizable(false);\n\t\tsetLocationRelativeTo(null);\n\t\tsetLayout(new BorderLayout());\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\n\t\tpanelPro = new JPanel(new GridBagLayout());\n\t\tadd(panelPro, BorderLayout.NORTH);\t\n\t\tgrid = new GridBagConstraints();\n\t\tgrid.fill=GridBagConstraints.HORIZONTAL;\n\t\tgrid.insets = new Insets(2,2,2,2);\n\t\t\n\t}", "private void addSearchInventory() { \t\r\n \tsearchButton = new JButton (\"Search\");\r\n \tsearchText = new JTextField (5);\r\n \t\r\n \tidRadio = new JRadioButton (\"id\");\r\n \tnameRadio = new JRadioButton (\"name\");\r\n \tButtonGroup group = new ButtonGroup();\r\n group.add(idRadio);\r\n group.add(nameRadio);\r\n \r\n listModel = new DefaultListModel<String>();\r\n inventoryField = new JList<String> (listModel);\r\n inventoryField.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n \r\n scrollPane = new JScrollPane(inventoryField);\r\n scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n \r\n \r\n \tadd (searchButton);\r\n \tadd (searchText);\r\n add (idRadio);\r\n add (nameRadio);\r\n add (scrollPane);\r\n \r\n \tsearchButton.setBounds (275, 200, 100, 25);\r\n\t\tsearchText.setBounds (95, 200, 160, 25);\r\n\t idRadio.setBounds (100, 160, 50, 25);\r\n\t nameRadio.setBounds (150, 160, 100, 25);\r\n\t scrollPane.setBounds (90, 245, 415, 415);\r\n }", "public SearchPage() {\n\t\tdoRender();\n\t}", "private void initComponents(int number) {\n\t\tSearchPage = new JPanel();\n\t\tTitle = new JLabel();\n\t\tPeopleLB = new JLabel();\n\t\tRecipeLB = new JLabel();\n\t\tPeopleSeach = new JTextField();\n\t\tRecipeSearch = new JTextField();\n\t\tSearchPP = new JButton();\n\t\tSearchRP = new JButton();\n\t\t//SearchScroll = new JScrollPane();\n\t\t//SeachPanel = new JPanel();\n\n\n\n\t\t//======== SearchPage ========\n\t\t{\n\n\t\t\t//======== SearchScroll ========\n\n\t\t\t//---- Title ----\n\t\t\tTitle.setText(\"Search Page\");\n\t\t\tTitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\tTitle.setFont(Title.getFont().deriveFont(Title.getFont().getStyle() | Font.BOLD, Title.getFont().getSize() + 13f));\n\t\t\tTitle.setForeground(Color.red);\n\n\t\t\t//---- PeopleLB ----\n\t\t\tPeopleLB.setText(\"People\");\n\t\t\tPeopleLB.setFont(PeopleLB.getFont().deriveFont(PeopleLB.getFont().getStyle() | Font.BOLD));\n\n\t\t\t//---- RecipeLB ----\n\t\t\tRecipeLB.setText(\"Recipe\");\n\t\t\tRecipeLB.setFont(RecipeLB.getFont().deriveFont(RecipeLB.getFont().getStyle() | Font.BOLD));\n\n\t\t\t//---- SearchPP ----\n\t\t\tSearchPP.setText(\"Search\");\n\t\t\tSearchPP.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSearchPPActionPerformed(e);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t//---- SearchRP ----\n\t\t\tSearchRP.setText(\"Seach\");\n\t\t\tSearchRP.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSearchRPActionPerformed(e);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tGroupLayout SearchPageLayout = new GroupLayout(SearchPage);\n\t\t\tSearchPage.setLayout(SearchPageLayout);\n\t\t\tSearchPageLayout.setHorizontalGroup(\n\t\t\t\t\tSearchPageLayout.createParallelGroup()\n\t\t\t\t\t.addGroup(SearchPageLayout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(106, 106, 106)\n\t\t\t\t\t\t\t.addComponent(Title, GroupLayout.PREFERRED_SIZE, 251, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t\t\t.addGroup(GroupLayout.Alignment.TRAILING, SearchPageLayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addContainerGap(80, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t.addGroup(SearchPageLayout.createParallelGroup()\n\t\t\t\t\t\t\t\t\t\t\t.addGroup(SearchPageLayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(PeopleLB, GroupLayout.PREFERRED_SIZE, 49, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(PeopleSeach, GroupLayout.PREFERRED_SIZE, 196, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(SearchPP, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(SearchPageLayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(RecipeLB, GroupLayout.PREFERRED_SIZE, 49, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(RecipeSearch, GroupLayout.PREFERRED_SIZE, 196, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(SearchRP, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(62, 62, 62))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(SearchPageLayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(SearchScroll, GroupLayout.DEFAULT_SIZE, 450, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t);\n\t\t\tSearchPageLayout.setVerticalGroup(\n\t\t\t\t\tSearchPageLayout.createParallelGroup()\n\t\t\t\t\t.addGroup(GroupLayout.Alignment.TRAILING, SearchPageLayout.createSequentialGroup()\n\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t.addComponent(Title)\n\t\t\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addGroup(SearchPageLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t.addComponent(PeopleLB, GroupLayout.PREFERRED_SIZE, 23, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t.addComponent(PeopleSeach, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t.addComponent(SearchPP))\n\t\t\t\t\t\t\t\t\t.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t.addGroup(SearchPageLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t.addComponent(RecipeLB, GroupLayout.PREFERRED_SIZE, 23, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t.addComponent(RecipeSearch, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t.addComponent(SearchRP))\n\t\t\t\t\t\t\t\t\t\t\t.addGap(18, 18, 18)\n\t\t\t\t\t\t\t\t\t\t\t.addComponent(SearchScroll, GroupLayout.PREFERRED_SIZE, 413, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t);\n\t\t}\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t}", "private JPanel createPanelStoredServices() {\n\t\t// Fabriken holen\n\t\tGridBagConstraintsFactory gbcf = GridBagConstraintsFactory.getInstance();\n\t\tWidgetFactory wf = WidgetFactory.getInstance();\n\t\t// Widgets erzeugen\n\t\tJPanel panel = wf.getPanel(\"PanelStoredServices\");\n\t\tserviceAbbreviationFilter = wf.getTextField(\"FieldServiceAbbreviation\");\n\t\tserviceAbbreviationFilter.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tupdateSearch();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t}\n\n\t\t});\n\t\tserviceAbbreviationFilterCaseSensitive = wf\n\t\t\t\t.getCheckBox(\"CheckBoxServiceAbbreviationFilterCaseSensitive\");\n\t\tserviceAbbreviationFilterCaseSensitive.addItemListener(new ItemListener() {\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent event) {\n\t\t\t\tupdateSearch();\n\t\t\t}\n\t\t});\n\t\tserviceAbbreviationFilterAsRegex = wf.getCheckBox(\"CheckBoxServiceAbbreviationFilterAsRegex\");\n\t\tserviceAbbreviationFilterAsRegex.addItemListener(new ItemListener() {\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent event) {\n\t\t\t\tupdateSearch();\n\t\t\t}\n\t\t});\n\t\tregexContainsErrors = wf.getLabel(\"LabelRegexContainsErrors\");\n\t\tregexContainsErrors.setForeground(Color.RED);\n\t\ttableModelStoredServices = new StoredServicesTableModel(((PswGenCtl) ctl).getServices().getServices(),\n\t\t\t\tnew String[] { ctl.getGuiText(\"LabelServiceAbbreviation\"),\n\t\t\t\t\t\tctl.getGuiText(\"LabelAdditionalInfo\"), ctl.getGuiText(\"LabelUseOldPassphrase\"),\n\t\t\t\t\t\tctl.getGuiText(\"LabelLoginUrl\") });\n\t\ttableStoredServices = wf.getTable(\"TableStoredServices\", tableModelStoredServices);\n\t\ttableStoredServices.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\ttableRowSorter = new TableRowSorter<StoredServicesTableModel>(tableModelStoredServices);\n\t\ttableRowSorter.setComparator(StoredServicesTableModel.COL_ADDITIONAL_INFO, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String leftString, String rightString) {\n\t\t\t\ttry {\n\t\t\t\t\tDate leftDate = CoreConstants.DATE_FORMAT_de_DE.parse(leftString);\n\t\t\t\t\tDate rightDate = CoreConstants.DATE_FORMAT_de_DE.parse(rightString);\n\t\t\t\t\treturn leftDate.compareTo(rightDate);\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\treturn leftString.compareTo(rightString);\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\ttableStoredServices.setRowSorter(tableRowSorter);\n\t\t// Ask to be notified of selection changes.\n\t\tListSelectionModel rowSM = tableStoredServices.getSelectionModel();\n\t\trowSM.addListSelectionListener(new ListSelectionListener() {\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent event) {\n\t\t\t\tif (event.getValueIsAdjusting()) {// Ignore extra messages.\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tListSelectionModel lsm = (ListSelectionModel) event.getSource();\n\t\t\t\tif (!lsm.isSelectionEmpty()) { // Ist überhaupt eine Zeile ausgewählt?\n\t\t\t\t\tint selectedRow = lsm.getMinSelectionIndex();\n\t\t\t\t\tint modelRow = tableStoredServices.convertRowIndexToModel(selectedRow);\n\t\t\t\t\tString serviceAbbreviation = tableModelStoredServices.getServiceInfoAt(modelRow)\n\t\t\t\t\t\t\t.getServiceAbbreviation();\n\t\t\t\t\t((PswGenCtl) ctl).valueChangedLoadServiceFromList(me, serviceAbbreviation);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tscrollableTableStoredServices = new JScrollPane(tableStoredServices);\n\t\t// tableStoredServices.setFillsViewportHeight(true);\n\t\t// Widgets zufügen, erste Zeile\n\t\tint row = 0;\n\t\tpanel.add(serviceAbbreviationFilter, gbcf.getFieldConstraints(0, row, 4, 1));\n\t\t// Nächste Zeile zum einfügen von Groß-/Kleinschreibung\n\t\trow++;\n\t\tpanel.add(serviceAbbreviationFilterCaseSensitive, gbcf.getFieldConstraints(0, row, 2, 1));\n\t\t// Nächste Zeile zum einfügen der Regex-Suche\n\t\trow++;\n\t\tpanel.add(serviceAbbreviationFilterAsRegex, gbcf.getFieldConstraints(0, row, 2, 1));\n\t\tpanel.add(regexContainsErrors, gbcf.getFieldConstraints(GridBagConstraints.RELATIVE, row, 2, 1));\n\t\t// Widgets zufügen, nächste Zeile\n\t\trow++;\n\t\tpanel.add(scrollableTableStoredServices, gbcf.getTableConstraints(0, row, 4, 1));\n\n\t\t// Anzeige des regex-errors deaktivieren\n\t\tshowRegexErrorMessage(false);\n\n\t\t// Panel zurückgeben\n\t\treturn panel;\n\t}", "public SearchPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "private void initializeSearchTab() {\r\n\r\n searchTab = new JPanel(new GridBagLayout());\r\n searchTab.setBackground(MainGUI.backgroundColor);\r\n searchTab.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));\r\n searchTabConstraints = new GridBagConstraints();\r\n\r\n // search\r\n search_searchDirectionLabel = new JLabel(\"Search for Patient using Last Name & First Name\");\r\n search_lNameLabel = new JLabel(\"Last Name:\");\r\n search_fNameLabel = new JLabel(\"First Name:\");\r\n\r\n search_searchDirectionLabel.setFont(new java.awt.Font(search_searchDirectionLabel.getFont().getFontName(), Font.PLAIN, 30));\r\n search_searchDirectionLabel.setForeground(MainGUI.fontColor);\r\n search_lNameLabel.setForeground(MainGUI.fontColor);\r\n search_fNameLabel.setForeground(MainGUI.fontColor);\r\n\r\n\r\n search_fNameField = new JTextField(12);\r\n search_lNameField = new JTextField(12);\r\n\r\n search_searchButton = new JButton(\"Search\");\r\n search_searchButton.setForeground(MainGUI.fontColor);\r\n\r\n // add components to Search tab\r\n\r\n // add search directions label\r\n searchTabConstraints.gridx = 10;\r\n searchTabConstraints.gridy = 10;\r\n searchTabConstraints.weighty = 0.2;\r\n searchTabConstraints.anchor = GridBagConstraints.NORTH;\r\n searchTabConstraints.insets = new Insets(30, 0, 0, 0);\r\n searchTab.add(search_searchDirectionLabel, searchTabConstraints);\r\n\r\n // add last name search label\r\n searchTabConstraints.gridx = 10;\r\n searchTabConstraints.gridy = 20;\r\n searchTabConstraints.anchor = GridBagConstraints.CENTER;\r\n searchTabConstraints.insets = new Insets(0, 0, 0, 120);\r\n searchTab.add(search_lNameLabel, searchTabConstraints);\r\n\r\n // add last name search textfield\r\n searchTabConstraints.insets = new Insets(0, 110, 0, 0);\r\n searchTab.add(search_lNameField, searchTabConstraints);\r\n\r\n // add first name search label\r\n searchTabConstraints.anchor = GridBagConstraints.NORTH;\r\n searchTabConstraints.gridy = 30;\r\n searchTabConstraints.insets = new Insets(0, 0, 0, 120);\r\n searchTab.add(search_fNameLabel, searchTabConstraints);\r\n\r\n // add first name search textfield\r\n searchTabConstraints.insets = new Insets(0, 110, 0, 0);\r\n searchTab.add(search_fNameField, searchTabConstraints);\r\n\r\n // add search button\r\n searchTabConstraints.gridy = 40;\r\n searchTabConstraints.ipadx = 30;\r\n searchTabConstraints.weighty = 1;\r\n searchTabConstraints.ipady = 10;\r\n searchTabConstraints.insets = new Insets(0, 0, 0, 0);\r\n searchTab.add(search_searchButton, searchTabConstraints);\r\n\r\n }", "public SearchDataView() {\n initComponents();\n }", "public SearchUI() {\n initComponents();\n initComponents2();\n }", "private void makeSearchButton() {\n searchButton = new JButton();\n searchButton.setBorder(new CompoundBorder(\n BorderFactory.createMatteBorder(4, 0, 4, 7, DrawAttribute.lightblue),\n BorderFactory.createRaisedBevelBorder()));\n searchButton.setBackground(new Color(36, 45, 50));\n searchButton.setIcon(new ImageIcon(MapIcon.iconURLs.get(\"searchIcon\")));\n searchButton.setFocusable(false);\n searchButton.setBounds(320, 20, 43, 37);\n searchButton.setActionCommand(\"search\");\n }", "public Controller(FrameSearch frameSearch) {\n this.frameSearch = frameSearch;\n this.criteria = new Criteria();\n search = new Search();\n getCriteriaSaved();\n frameSearch.getTpDataBase().getBtLoad().addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent evt) {\n buttonEventClicked(evt);\n }\n });\n }", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "private void createAndShowGUI() {\n frame = new JFrame(\"WorkspaceDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setBounds(100, 100, 800, 600);\n final SearchBar sb = new SearchBar(\"Search blocks\",\n \"Search for blocks in the drawers and workspace\", workspace);\n for (final SearchableContainer con : getAllSearchableContainers()) {\n sb.addSearchableContainer(con);\n }\n final JPanel topPane = new JPanel();\n sb.getComponent().setPreferredSize(new Dimension(130, 23));\n topPane.add(sb.getComponent());\n frame.add(topPane, BorderLayout.PAGE_START);\n frame.add(getWorkspacePanel(), BorderLayout.CENTER);\n frame.add(getButtonPanel(), BorderLayout.SOUTH);\n frame.setVisible(true);\n }", "public search_package() {\n initComponents();\n }", "private JComponent buildUserFilter() {\n JPanel panel = new JPanel(new BorderLayout(5, 0));\n panel.add(Labels.create(IconFactory.get().create(\"fa:search\")), BorderLayout.WEST);\n panel.add(Inputs.text()\n .preferredSize(new Dimension(100, 25))\n .subscribeValue((val) -> updateList(val)));\n panel.setBorder(BorderFactory.createEmptyBorder(2, 3, 2, 3));\n return panel;\n }", "public SearchWindow()\n {\n // call parent and set layout\n super();\n this.setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));\n TextFieldListener tfl = new TextFieldListener();\n model = new DefaultListModel<String>();\n lsl = new SelectionListener();\n\n radioText = new JLabel(\"Combine Terms Using:\");\n\n // create and add the radio buttons and the clear button\n topButtons = new JPanel();\n topButtons.setLayout(new BoxLayout(topButtons, BoxLayout.LINE_AXIS));\n topButtons.add(Box.createRigidArea(new Dimension(20, 0)));\n\n // can be accessed by pressing A plus Alt (or whatever the users look-and-feel is)\n andRadio = new JRadioButton(\"And\");\n andRadio.setMnemonic(KeyEvent.VK_A);\n\n // can be accessed by pressing O plus Alt\n orRadio = new JRadioButton(\"Or\");\n orRadio.setMnemonic(KeyEvent.VK_O);\n\n // associate the buttons\n radioButtons = new ButtonGroup();\n radioButtons.add(andRadio);\n radioButtons.add(orRadio);\n orRadio.setSelected(true); // default setting\n\n // Listener to perform search if radio buttons are changed (UID req. 2.1)\n ChangeRadioListener crl = new ChangeRadioListener();\n orRadio.addActionListener(crl);\n andRadio.addActionListener(crl);\n\n // create Clear All Terms button with action listener\n clear = new JButton(\"Clear All Terms\");\n clear.setEnabled(false);\n ClearButtonListener cbl = new ClearButtonListener();\n clear.addActionListener(cbl);\n\n // add everything to our top panel\n topButtons.add(radioText);\n topButtons.add(Box.createRigidArea(new Dimension(20, 0)));\n topButtons.add(orRadio);\n topButtons.add(andRadio);\n topButtons.add(Box.createHorizontalGlue());\n topButtons.add(clear);\n topButtons.add(Box.createRigidArea(new Dimension(20, 0)));\n topButtons\n .setMaximumSize(new Dimension(Integer.MAX_VALUE, topButtons.getPreferredSize().height));\n topButtons\n .setMaximumSize(new Dimension(Integer.MAX_VALUE, topButtons.getPreferredSize().height));\n\n // add text fields for search terms\n highSearchPane = new JPanel();\n highSearchPane.setLayout(new BoxLayout(highSearchPane, BoxLayout.LINE_AXIS));\n highWeight = new JLabel(\"High Weight Search Terms:\");\n highTerms = new JTextField();\n highTerms.addKeyListener(tfl);\n highSearchPane.add(Box.createRigidArea(new Dimension(20, 0)));\n highSearchPane.add(highWeight);\n highSearchPane.add(Box.createRigidArea(new Dimension(20, 0)));\n highSearchPane.add(highTerms);\n highSearchPane.add(Box.createRigidArea(new Dimension(20, 0)));\n highSearchPane\n .setMaximumSize(new Dimension(Integer.MAX_VALUE, highSearchPane.getPreferredSize().height));\n lowSearchPan = new JPanel();\n lowSearchPan.setLayout(new BoxLayout(lowSearchPan, BoxLayout.LINE_AXIS));\n lowWeight = new JLabel(\"Low Weight Search Terms:\");\n lowTerms = new JTextField();\n lowTerms.addKeyListener(tfl);\n lowTerms.setMaximumSize(new Dimension(Integer.MAX_VALUE, lowTerms.getPreferredSize().height));\n lowSearchPan.add(Box.createRigidArea(new Dimension(20, 0)));\n lowSearchPan.add(lowWeight);\n lowSearchPan.add(Box.createRigidArea(new Dimension(20, 0)));\n lowSearchPan.add(lowTerms);\n lowSearchPan.add(Box.createRigidArea(new Dimension(20, 0)));\n\n // Create short form panel\n\n shortFormList = new JList<String>(model);\n shortFormList.addListSelectionListener(lsl);\n shortFormList.setFont(new Font(\"LabelStyle\", Font.BOLD, 15));\n shortFormList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n shortFormList.setModel(model);\n shortFormList.setLayoutOrientation(JList.VERTICAL);\n\n shortPane = new JPanel();\n shortPane.setLayout(new BoxLayout(shortPane, BoxLayout.LINE_AXIS));\n shortScroll = new JScrollPane(shortFormList);\n shortPane.add(Box.createRigidArea(new Dimension(20, 0)));\n shortPane.add(shortScroll);\n shortPane.setPreferredSize(new Dimension(Integer.MAX_VALUE, 3000));\n shortPane.add(Box.createRigidArea(new Dimension(20, 0)));\n\n // create books retrieved JTextField\n reviewedField = new JTextField();\n reviewedField.setOpaque(false);\n reviewedField\n .setMaximumSize(new Dimension(Integer.MAX_VALUE, reviewedField.getPreferredSize().height));\n reviewedField.setBorder(BorderFactory.createEmptyBorder());\n reviewedField.setFont(new Font(\"LabelStyle\", Font.BOLD, 12));\n\n // create long form panel\n\n longPane = new JPanel();\n longPane.setLayout(new BoxLayout(longPane, BoxLayout.LINE_AXIS));\n longForm = new JTextPane();\n longScroll = new JScrollPane(longForm);\n longForm.setEditable(false);\n longForm.setFont(new Font(\"LabelStyle\", Font.BOLD, 15));\n longPane.add(Box.createRigidArea(new Dimension(20, 0)));\n longPane.add(longScroll);\n longPane.setPreferredSize(new Dimension(Integer.MAX_VALUE, 3000));\n longPane.add(Box.createRigidArea(new Dimension(20, 0)));\n\n this.add(Box.createRigidArea(new Dimension(0, 10)));\n this.add(topButtons);\n this.add(Box.createRigidArea(new Dimension(0, 10)));\n this.add(highSearchPane);\n this.add(Box.createRigidArea(new Dimension(0, 10)));\n this.add(lowSearchPan);\n this.add(Box.createRigidArea(new Dimension(0, 20)));\n this.add(shortPane);\n this.add(Box.createRigidArea(new Dimension(0, 5)));\n this.add(reviewedField);\n this.add(Box.createRigidArea(new Dimension(0, 5)));\n this.add(longPane);\n this.add(Box.createRigidArea(new Dimension(0, 10)));\n }", "public static void SearchBox() {\r\n\tJFrame Search = new JFrame(\"Search\");\r\n\tSearch.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\tSearch.setSize(700,500);\r\n\tSearch.getContentPane();\r\n\tSearch.setVisible(true);\r\n\r\n\te7.setFont(f);\r\n\r\n\t\r\n\r\n\tSearch.getContentPane().add(GUI2Panel);\r\n\tGUI2Panel.add(e7);\r\n\tGUI2Panel.add(SearchField);\r\n\r\n\tGUI2Panel.add(SearchButton2);\r\n}", "public SearchFrame(){//The main search frame which calls other methods\n\t\t/*Calling the methods intitialiseGUI and buildGUI*/\n\t\tintitialiseGUI();\n\t\tbuildGUI();\n\t}", "public SearchEntry() {\n initComponents();\n }", "private JPanel renderFilterPanel()\n\t{\n\t\t//filterPanel will hold all of the filtering options\n\t\tJPanel\t\tfilterPanel = new JPanel(new GridLayout(1, 4));\n\t\tfilterPanel.setBorder(new EmptyBorder(5, 50, 5, 50));\n\t\t//filter by fav option\n\t\tJCheckBox\tfavoritesBox = new JCheckBox();\n\t\tfavoritesBox.setHorizontalAlignment(JCheckBox.RIGHT);\n\t\tJLabel\t\tfavoritesLabel = new JLabel(\"Favorites\");\n\t\t//filters by what is in stock\n\t\tJCheckBox\tinStockBox = new JCheckBox();\n\t\tinStockBox.setHorizontalAlignment(JCheckBox.RIGHT);\n\t\tJLabel\t\tinStockLabel = new JLabel(\"In Stock\");\n\t\t//add all options to the main filter panel\n\t\tfilterPanel.add(favoritesBox);\n\t\tfilterPanel.add(favoritesLabel);\n\t\tfilterPanel.add(inStockBox);\n\t\tfilterPanel.add(inStockLabel);\n\t\t//mid is then used to center the filterPanel\n\t\tJPanel\tmid = new JPanel(new BorderLayout());\n\t\tmid.add(filterPanel, BorderLayout.CENTER);\n\t\treturn mid;\n\t}", "public CSearchUserPanel() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "public SearchPanel(ie.gmit.java2.parser.LinesMap lines) {\n //initialize components\n initComponents();\n //Create a new processor\n this.processor = new Processor();\n //Add the lines to the processor\n this.processor.setLines(lines);\n \n //Bind the event listeners to the check boxes(Too lazy to add one by one. Plus i can change it here rather then many different places)\n for(Component component:this.jLayeredPaneResultsChooser.getComponents()){\n //Check if it is a check box\n if(component instanceof javax.swing.JCheckBox){\n //If it is a check box then bind the event listener\n ((javax.swing.JCheckBox)component).addActionListener((java.awt.event.ActionEvent evt) -> {\n //Check if the button can be enabled or not\n searchButtonEnabler();\n });\n }\n }\n }", "private void initGUI() {\r\n this.setLayout(new RiverLayout());\r\n\r\n /**\r\n * Add the following selectively\r\n */\r\n titledSearchResultsPanel = new Cab2bTitledPanel(\"Search Results :- \" + \"Total results ( \"\r\n + allElements.size() + \" )\");\r\n GradientPaint gp = new GradientPaint(new Point2D.Double(.05d, 0), new Color(185, 211, 238),\r\n new Point2D.Double(.95d, 0), Color.WHITE);\r\n titledSearchResultsPanel.setTitlePainter(new BasicGradientPainter(gp));\r\n titledSearchResultsPanel.setBorder(new EmptyBorder(0, 0, 0, 0));\r\n titledSearchResultsPanel.setTitleFont(new Font(\"SansSerif\", Font.BOLD, 11));\r\n titledSearchResultsPanel.setTitleForeground(Color.BLACK);\r\n\r\n pagination = initPagination(allElements);\r\n\r\n searchResultsPanel = new Cab2bPanel(new BorderLayout(0, 5));\r\n\r\n Cab2bComboBox serviceURLCombo = new Cab2bComboBox(serviceURLComboContents);\r\n serviceURLCombo.setPreferredSize(new Dimension(250, 20));\r\n serviceURLCombo.addActionListener(new ServiceURLSelectionListener());\r\n Cab2bPanel comboContainer = new Cab2bPanel(new RiverLayout(5, 5));\r\n \r\n JLabel jLabel = new JLabel(\"Results From\");\r\n jLabel.setForeground(new Cab2bHyperlink().getUnclickedColor());\r\n \r\n \r\n comboContainer.add(\"left\", jLabel);\r\n comboContainer.add(\"tab\", serviceURLCombo);\r\n\r\n searchResultsPanel.add(BorderLayout.NORTH, comboContainer);\r\n\r\n searchResultsPanel.add(BorderLayout.CENTER, pagination);\r\n initDataListSummaryPanel();\r\n initDataListButtons();\r\n\r\n Cab2bPanel buttonPanel = new Cab2bPanel(new RiverLayout(8, 0));\r\n buttonPanel.add(addToDataListButton);\r\n buttonPanel.add(m_applyAllButton);\r\n searchResultsPanel.add(BorderLayout.SOUTH, buttonPanel);\r\n\r\n m_addSummaryParentPanel = new Cab2bPanel(new BorderLayout());\r\n m_addSummaryParentPanel.add(searchResultsPanel, BorderLayout.CENTER);\r\n m_addSummaryParentPanel.add(myDataListParentPanel, BorderLayout.EAST);\r\n titledSearchResultsPanel.setContentContainer(m_addSummaryParentPanel);\r\n this.add(\"p vfill hfill\", titledSearchResultsPanel);\r\n }", "private void setUpSearchButton()\n {\n searchButton.setCaption(\"Go\");\n searchButton.addClickListener(new Button.ClickListener() {\n public void buttonClick(Button.ClickEvent event)\n {\n //Grab the data from the database base on the search text\n //Assume all search is author name for now\n String searchValue = searchText.getValue();\n \n //Remove all values in the table\n bookTable.removeAllItems();\n \n //Grab Data from database\n List<Book> books = collectDataFromDatabase(searchValue);\n \n //Put the data into the table\n allBooksBean.addAll(books);\n //putDataIntoTable(books);\n }\n });\n }", "public void buildGUI(){\n\n\t\tsetLayout(new BorderLayout());//Setting a borderlayout for the frame\n\t\toptionsPane.setBorder(BorderFactory.createLineBorder(Color.black));//This sets a border around the options panel\n\t\tadd(disclaimer, BorderLayout.SOUTH);//Adds the disclaimer panel to the frame\n\t\tadd(optionsPane, BorderLayout.LINE_START);//Adds the options panel to the frame\n\t\tadd(scrollbar);//Adds the scrollbar to the frame (contains the search frame)\n\t\toptionsPane.add(jpCmbBoxes, BorderLayout.NORTH);//Adds the combo boxes to the options pane\n\t\toptionsPane.add(pic, BorderLayout.SOUTH);//Adds the picture to the options pane\n\t\tdisclaimer.add(disclaim, BorderLayout.LINE_START);//Adds the disclaimer text to the disclaimer panel\n\t\t\n\t\t/*Sets borders around each of the combo boxes, buttons and the disclaimer text */\n\t\ttrackingRange.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tgenderBox.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tstageofLifeBox.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\ttagLocationBox.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tsearchButton.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tdisclaimer.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tsearchByName.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\t\n\t\tsearchResults.setLayout((new BoxLayout(searchResults, BoxLayout.PAGE_AXIS)));//Setting the layout for search results panel\n\t\tsearchResults.setBorder(BorderFactory.createLineBorder(Color.black));//Sets a border around the panel\n\t\t/*Adding components to the combo boxes panel */\n\t\tjpCmbBoxes.setLayout(new BoxLayout(jpCmbBoxes, BoxLayout.Y_AXIS));//Sets the layout for this panel\n\t\tjpCmbBoxes.add(subTitle);\n\t\tjpCmbBoxes.add(trackingRangeLabel);\n\t\tjpCmbBoxes.add(trackingRange);\n\t\tjpCmbBoxes.add(genderLabel);\n\t\tjpCmbBoxes.add(genderBox);\n\t\tjpCmbBoxes.add(stageOfLifeLabel);\n\t\tjpCmbBoxes.add(stageofLifeBox);\n\t\tjpCmbBoxes.add(tagLocationLabel);\n\t\tjpCmbBoxes.add(tagLocationBox);\n\t\tjpCmbBoxes.add(searchButton);\n\t\tjpCmbBoxes.add(searchByName);\n\t\t\n\t\ttry {//Importing the image for this panel\n\t\t\tsharkImage = ImageIO.read(new File(\"source/images/shark2.png\"));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tJLabel image = new JLabel(new ImageIcon(sharkImage));//Creating a label and adding the image to the label\n\t\tpic.add(image);//adding the label to the panel\n\t}", "private void buildIngrePanel(){\n\n ingreToolBar = new JToolBar();\n ingreToolBar.setFloatable(false);\n\n ingreSearchTF = new SelfClearingTextField(\"Search\", 60);\n\n ingreSearchTF.addKeyListener(new KeyListener() {\n @Override\n public void keyTyped(KeyEvent e) {\n\n }\n\n @Override\n public void keyPressed(KeyEvent e) {\n\n }\n\n @Override\n public void keyReleased(KeyEvent e) {\n String search = ingreSearchTF.getText().toUpperCase();\n filter(search);\n }\n });\n\n ingreAddB =new JButton(\"Add\");\n\n ingrePurchaseB =new JButton(\"Purchase\");\n\n ingreRemoveB = new JButton(\"Remove\");\n ingreUseB = new JButton(\"Use\"); //TODO think of better name!!\n\n\n ingreSearchTF.setColumns(12);\n\n //The following code builds toolbar;\n {\n\n\n\n ingreToolBar.add(ingreSearchTF);\n ingreToolBar.add(ingreUseB);\n\n if(IM.getAccount().isManPriv() || IM.getAccount().isAdminPriv()) {\n ingreToolBar.add(ingreAddB);\n ingreToolBar.add(ingrePurchaseB);\n\n ingreToolBar.add(ingreRemoveB);\n }\n\n }\n\n // The following code adds the listener to the Buttons.\n {\n\n\n ingreAddB.addActionListener(this);\n ingrePurchaseB.addActionListener(this);\n ingreRemoveB.addActionListener(this);\n ingreUseB.addActionListener(this);\n\n }\n\n\n\n\n\n\n\n}", "public InterpolationSearchFrame()\n {\n super(\"Simulasi Interpolation Search\");\n statusInput=true;\n statusSearch=true;\n statusKeyword=true;\n node[0]=new Node();\n node[1]=new Node();\n node[2]=new Node();\n node[3]=new Node();\n node[4]=new Node();\n node[5]=new Node();\n input.setToolTipText(\"Input data\");\n search.setToolTipText(\"Search data\");\n reset.setToolTipText(\"Hapus semua data\");\n keyword.setToolTipText(\"Keyword data\");\n help.setToolTipText(\"Petunjuk penggunaan\");\n setLayout(tampilan);\n \n add(panel,BorderLayout.NORTH);\n \n input.addActionListener(new h());\n search.addActionListener(new h());\n reset.addActionListener(new h());\n keyword.addActionListener(new h());\n help.addActionListener(new h());\n buttonPanel.setLayout(new FlowLayout());\n buttonPanel.add(input);\n buttonPanel.add(keyword);\n buttonPanel.add(search);\n buttonPanel.add(reset);\n buttonPanel.add(help);\n add(buttonPanel,BorderLayout.SOUTH);\n }", "private SearchUI()\n\t{\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 283, 353);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setTitle(\"Search\");\n\t\t\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedLookAndFeelException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel, BorderLayout.CENTER);\n\t\tpanel.setLayout(new MigLayout(\"\", \"[421.00,grow,center]\", \"[][][][][][][][][]\"));\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title\");\n\t\tlblTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 22));\n\t\tpanel.add(lblTitle, \"cell 0 0\");\n\t\t\n\t\ttitleField = new JTextField();\n\t\ttitleField.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\ttitleField.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tpanel.add(titleField, \"cell 0 1,growx\");\n\t\ttitleField.setColumns(10);\n\t\t\n\t\tJLabel lblMediaType = new JLabel(\"Media Type\");\n\t\tlblMediaType.setFont(new Font(\"Tahoma\", Font.BOLD, 22));\n\t\tpanel.add(lblMediaType, \"flowx,cell 0 2\");\n\t\t\n\t\tJLabel label = new JLabel(\"\");\n\t\tpanel.add(label, \"cell 0 2\");\n\t\t\n\t\tJButton btnSearch = new JButton(\"Search\");\n\t\t\n\t\tbtnSearch.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString title = titleField.getText();\n\t\t\t\tString prod = productionField.getText();\n\t\t\t\t\n\t\t\t\tif(productionField.getText().equals(\"\"))\n\t\t\t\t\tprod = \"*\";\n\t\t\t\t\n\t\t\t\tHashMap<String, String> infoMap = Database.search(title, \"movie\", prod);\n\t\t\t\t\n\t\t\t\tnew InformationGUI(infoMap);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tJComboBox<String> comboBox = new JComboBox<String>();\n\t\tcomboBox.setModel(new DefaultComboBoxModel<String>(new String[] {\"movie\", \"tv series\", \"tv movie\", \"video movie\", \"tv miniseries\", \"video game\"}));\n\t\t((JLabel)comboBox.getRenderer()).setHorizontalAlignment(SwingConstants.CENTER);\n\t\tpanel.add(comboBox, \"cell 0 3,growx\");\n\t\t\n\t\tJLabel lblProductionYear = new JLabel(\"Production Year\");\n\t\tlblProductionYear.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\tpanel.add(lblProductionYear, \"cell 0 5\");\n\t\t\n\t\tproductionField = new JTextField();\n\t\tproductionField.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tproductionField.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tpanel.add(productionField, \"cell 0 6,growx\");\n\t\tproductionField.setColumns(10);\n\t\tpanel.add(btnSearch, \"cell 0 8\");\n\t}", "public MainWindow()\r\n {\r\n setLayout(new BorderLayout());\r\n \r\n //North Panel\r\n JPanel northPanel = new JPanel();\r\n northPanel.setLayout(new FlowLayout());\r\n add(northPanel, BorderLayout.NORTH);\r\n northPanel.add(btnCountA);\r\n \r\n //West Panel\r\n JPanel westPanel = new JPanel();\r\n westPanel.setLayout(new GridLayout(2, 1));\r\n add(westPanel, BorderLayout.WEST);\r\n westPanel.add(tfSearchString);\r\n westPanel.add(btnFindL);\r\n \r\n //East Panel\r\n JPanel eastPanel = new JPanel();\r\n eastPanel.setLayout(new BorderLayout());\r\n add(eastPanel, BorderLayout.EAST);\r\n eastPanel.add(btnSearch);\r\n \r\n //South Panel\r\n JPanel southPanel = new JPanel();\r\n southPanel.setLayout(new FlowLayout());\r\n add(southPanel, BorderLayout.SOUTH);\r\n southPanel.add(tfStatus);\r\n tfStatus.setEditable(false);\r\n \r\n \r\n addListeners();\r\n }", "private void showSearch() {\n\t\tonSearchRequested();\n\t}", "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void createListPatientsPanel() {\n\n\t\tlistPatientsPanel = new JPanel();\n\t\tlistPatientsPanel.setSize(700, 430);\n\t\tlistPatientsPanel.setLocation(0, 70);\n\t\tlistPatientsPanel.setLayout(new GridLayout(1, 1));\n\t\t// textArea\n\t\tpatientList = new JList(getDoctor(tempDoctorId).getPList().toArray());\n\t\tpatientList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tpatientList.addMouseListener(new MouseListener() {\n\t\t\t@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (e.getClickCount() == 2) {\n\t\t\t\t\tPatient p = (Patient) patientList.getSelectedValue();\n\t\t\t\t\ttempPatientId = p.getPId();\n\t\t\t\t\tupdateSearchPatientPanel();\n\t\t\t\t\tsearchPatientPanel.setVisible(true);\n\t\t\t\t\tlistPatientsPanel.setVisible(false);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane sp1 = new JScrollPane(patientList);\n\t\tlistPatientsPanel.add(sp1);\n\t\ttotalGUIPanel.add(listPatientsPanel);\n\t\tlistPatientsPanel.setVisible(false);\n\t}", "public search_user() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n panelAddSearch = new javax.swing.JPanel();\n labelNameSearch = new javax.swing.JLabel();\n nameSearch = new javax.swing.JTextField();\n buttonAddSearch = new javax.swing.JButton();\n tabbedPaneSearch = new javax.swing.JTabbedPane();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"FlexibleFileFinder\");\n setName(\"FlexibleFileFinder\"); // NOI18N\n\n panelAddSearch.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));\n\n labelNameSearch.setFont(new java.awt.Font(\"Monospaced\", 0, 12)); // NOI18N\n labelNameSearch.setText(\"Name Search:\");\n\n nameSearch.setFont(new java.awt.Font(\"Monospaced\", 0, 12)); // NOI18N\n\n buttonAddSearch.setFont(new java.awt.Font(\"Monospaced\", 0, 12)); // NOI18N\n buttonAddSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/bz/filefinder/usedPictures/AddSearch.png\"))); // NOI18N\n buttonAddSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buttonAddSearchActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout panelAddSearchLayout = new javax.swing.GroupLayout(panelAddSearch);\n panelAddSearch.setLayout(panelAddSearchLayout);\n panelAddSearchLayout.setHorizontalGroup(\n panelAddSearchLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelAddSearchLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(labelNameSearch)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(nameSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 256, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(buttonAddSearch)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n panelAddSearchLayout.setVerticalGroup(\n panelAddSearchLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelAddSearchLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(labelNameSearch)\n .addComponent(nameSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(buttonAddSearch))\n );\n\n tabbedPaneSearch.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));\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.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tabbedPaneSearch)\n .addGroup(layout.createSequentialGroup()\n .addComponent(panelAddSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 772, 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 .addComponent(panelAddSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tabbedPaneSearch, javax.swing.GroupLayout.DEFAULT_SIZE, 563, Short.MAX_VALUE))\n );\n\n pack();\n }", "public LookUpPanel() {\n initComponents(); \n }", "private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n buttonGroupSearch = new javax.swing.ButtonGroup();\n buttonGroup2 = new javax.swing.ButtonGroup();\n buttonGroupReplace = new javax.swing.ButtonGroup();\n buttonGroupSearchState = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n m_searchLabel = new javax.swing.JLabel();\n m_searchField = new javax.swing.JComboBox<String>();\n m_replaceLabel = new javax.swing.JLabel();\n m_replaceField = new javax.swing.JComboBox<String>();\n m_searchButton = new javax.swing.JButton();\n m_panelSearch = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n m_searchExactSearchRB = new javax.swing.JRadioButton();\n filler3 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767));\n m_searchKeywordSearchRB = new javax.swing.JRadioButton();\n filler4 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767));\n m_searchRegexpSearchRB = new javax.swing.JRadioButton();\n filler14 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767));\n m_resultsLabel = new javax.swing.JLabel();\n filler2 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));\n jPanel3 = new javax.swing.JPanel();\n m_searchCase = new javax.swing.JCheckBox();\n filler29 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_searchSpaceMatchNbsp = new javax.swing.JCheckBox();\n filler5 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_searchSource = new javax.swing.JCheckBox();\n filler17 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_searchTranslation = new javax.swing.JCheckBox();\n filler6 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_searchNotesCB = new javax.swing.JCheckBox();\n filler24 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_searchCommentsCB = new javax.swing.JCheckBox();\n filler23 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));\n jPanel12 = new javax.swing.JPanel();\n m_searchTranslatedUntranslated = new javax.swing.JRadioButton();\n filler27 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_searchTranslated = new javax.swing.JRadioButton();\n filler28 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_searchUntranslated = new javax.swing.JRadioButton();\n filler8 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_displayLabel = new javax.swing.JLabel();\n m_allResultsCB = new javax.swing.JCheckBox();\n m_fileNamesCB = new javax.swing.JCheckBox();\n filler26 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));\n m_panelReplace = new javax.swing.JPanel();\n jPanel5 = new javax.swing.JPanel();\n m_replaceExactSearchRB = new javax.swing.JRadioButton();\n filler19 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767));\n m_replaceRegexpSearchRB = new javax.swing.JRadioButton();\n filler20 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767));\n m_resultsLabel1 = new javax.swing.JLabel();\n filler21 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));\n jPanel11 = new javax.swing.JPanel();\n m_replaceCase = new javax.swing.JCheckBox();\n filler22 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_replaceSpaceMatchNbsp = new javax.swing.JCheckBox();\n filler30 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_replaceUntranslated = new javax.swing.JCheckBox();\n filler11 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));\n m_SearchInPane = new javax.swing.JPanel();\n jPanel13 = new javax.swing.JPanel();\n m_SearchInProjectPane = new javax.swing.JPanel();\n m_rbProject = new javax.swing.JRadioButton();\n m_cbSearchInMemory = new javax.swing.JCheckBox();\n m_cbSearchInTMs = new javax.swing.JCheckBox();\n m_cbSearchInGlossaries = new javax.swing.JCheckBox();\n jPanel9 = new javax.swing.JPanel();\n filler25 = new javax.swing.Box.Filler(new java.awt.Dimension(15, 0), new java.awt.Dimension(15, 0), new java.awt.Dimension(15, 32767));\n jSeparator1 = new javax.swing.JSeparator();\n filler9 = new javax.swing.Box.Filler(new java.awt.Dimension(15, 0), new java.awt.Dimension(15, 0), new java.awt.Dimension(15, 32767));\n m_SearchInDirPane = new javax.swing.JPanel();\n jPanel10 = new javax.swing.JPanel();\n m_rbDir = new javax.swing.JRadioButton();\n filler15 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));\n m_recursiveCB = new javax.swing.JCheckBox();\n m_dirLabel = new javax.swing.JLabel();\n m_dirField = new javax.swing.JTextField();\n m_dirButton = new javax.swing.JButton();\n m_advancedVisiblePane = new javax.swing.JPanel();\n m_authorCB = new javax.swing.JCheckBox();\n m_authorField = new org.omegat.gui.search.MFindField();\n m_authorField.setDefaultText(OStrings.getString(\"TF_CUR_SEGMENT_UNKNOWN_AUTHOR\"));\n m_dateFromCB = new javax.swing.JCheckBox();\n m_dateFromButton = new javax.swing.JButton();\n m_dateToCB = new javax.swing.JCheckBox();\n m_dateToButton = new javax.swing.JButton();\n m_numberLabel = new javax.swing.JLabel();\n m_numberOfResults = new javax.swing.JSpinner();\n m_dateFromSpinner = new javax.swing.JSpinner();\n m_dateToSpinner = new javax.swing.JSpinner();\n filler7 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));\n m_excludeOrphans = new javax.swing.JCheckBox();\n m_fullHalfWidthInsensitive = new javax.swing.JCheckBox();\n jPanel4 = new javax.swing.JPanel();\n m_advancedButton = new javax.swing.JButton();\n filler10 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));\n jScrollPane1 = new javax.swing.JScrollPane();\n m_viewer = new EntryListPane();\n jPanel8 = new javax.swing.JPanel();\n filler13 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767));\n jPanel7 = new javax.swing.JPanel();\n m_autoSyncWithEditor = new javax.swing.JCheckBox();\n m_backToInitialSegment = new javax.swing.JCheckBox();\n filler12 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));\n m_replaceAllButton = new javax.swing.JButton();\n filler18 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_replaceButton = new javax.swing.JButton();\n filler16 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_filterButton = new javax.swing.JButton();\n filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 32767));\n m_dismissButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n getContentPane().setLayout(new java.awt.GridBagLayout());\n\n jPanel1.setLayout(new java.awt.GridBagLayout());\n\n org.openide.awt.Mnemonics.setLocalizedText(m_searchLabel, OStrings.getString(\"SW_SEARCH_TEXT\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n jPanel1.add(m_searchLabel, gridBagConstraints);\n\n m_searchField.setEditable(true);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 10);\n jPanel1.add(m_searchField, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_replaceLabel, OStrings.getString(\"SW_REPLACE_TEXT\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n jPanel1.add(m_replaceLabel, gridBagConstraints);\n\n m_replaceField.setEditable(true);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 10);\n jPanel1.add(m_replaceField, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_searchButton, OStrings.getString(\"BUTTON_SEARCH\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 0;\n jPanel1.add(m_searchButton, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n getContentPane().add(jPanel1, gridBagConstraints);\n\n m_panelSearch.setLayout(new java.awt.GridLayout(3, 0));\n\n jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.LINE_AXIS));\n\n buttonGroupSearch.add(m_searchExactSearchRB);\n m_searchExactSearchRB.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_searchExactSearchRB, OStrings.getString(\"SW_EXACT_SEARCH\")); // NOI18N\n jPanel2.add(m_searchExactSearchRB);\n jPanel2.add(filler3);\n\n buttonGroupSearch.add(m_searchKeywordSearchRB);\n org.openide.awt.Mnemonics.setLocalizedText(m_searchKeywordSearchRB, OStrings.getString(\"SW_WORD_SEARCH\")); // NOI18N\n jPanel2.add(m_searchKeywordSearchRB);\n jPanel2.add(filler4);\n\n buttonGroupSearch.add(m_searchRegexpSearchRB);\n org.openide.awt.Mnemonics.setLocalizedText(m_searchRegexpSearchRB, OStrings.getString(\"SW_REGEXP_SEARCH\")); // NOI18N\n jPanel2.add(m_searchRegexpSearchRB);\n jPanel2.add(filler14);\n jPanel2.add(m_resultsLabel);\n jPanel2.add(filler2);\n\n m_panelSearch.add(jPanel2);\n\n jPanel3.setLayout(new javax.swing.BoxLayout(jPanel3, javax.swing.BoxLayout.LINE_AXIS));\n\n m_searchCase.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_searchCase, OStrings.getString(\"SW_CASE_SENSITIVE\")); // NOI18N\n jPanel3.add(m_searchCase);\n jPanel3.add(filler29);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_searchSpaceMatchNbsp, OStrings.getString(\"SW_SEARCH_SPACE_MATCH_NBSP\")); // NOI18N\n jPanel3.add(m_searchSpaceMatchNbsp);\n jPanel3.add(filler5);\n\n m_searchSource.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_searchSource, OStrings.getString(\"SW_SEARCH_SOURCE\")); // NOI18N\n jPanel3.add(m_searchSource);\n jPanel3.add(filler17);\n\n m_searchTranslation.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_searchTranslation, OStrings.getString(\"SW_SEARCH_TRANSLATION\")); // NOI18N\n jPanel3.add(m_searchTranslation);\n jPanel3.add(filler6);\n\n m_searchNotesCB.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_searchNotesCB, OStrings.getString(\"SW_SEARCH_NOTES\")); // NOI18N\n jPanel3.add(m_searchNotesCB);\n jPanel3.add(filler24);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_searchCommentsCB, OStrings.getString(\"SW_SEARCH_COMMENTS\")); // NOI18N\n jPanel3.add(m_searchCommentsCB);\n jPanel3.add(filler23);\n\n m_panelSearch.add(jPanel3);\n\n jPanel12.setLayout(new javax.swing.BoxLayout(jPanel12, javax.swing.BoxLayout.LINE_AXIS));\n\n buttonGroupSearchState.add(m_searchTranslatedUntranslated);\n m_searchTranslatedUntranslated.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_searchTranslatedUntranslated, OStrings.getString(\"SW_SEARCH_TRANSLATEDUNTRANSLATED\")); // NOI18N\n jPanel12.add(m_searchTranslatedUntranslated);\n jPanel12.add(filler27);\n\n buttonGroupSearchState.add(m_searchTranslated);\n org.openide.awt.Mnemonics.setLocalizedText(m_searchTranslated, OStrings.getString(\"SW_SEARCH_TRANSLATED\")); // NOI18N\n jPanel12.add(m_searchTranslated);\n jPanel12.add(filler28);\n\n buttonGroupSearchState.add(m_searchUntranslated);\n org.openide.awt.Mnemonics.setLocalizedText(m_searchUntranslated, OStrings.getString(\"SW_SEARCH_UNTRANSLATED\")); // NOI18N\n jPanel12.add(m_searchUntranslated);\n jPanel12.add(filler8);\n\n m_displayLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n org.openide.awt.Mnemonics.setLocalizedText(m_displayLabel, OStrings.getString(\"SW_DISPLAY_LABEL\")); // NOI18N\n jPanel12.add(m_displayLabel);\n\n m_allResultsCB.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_allResultsCB, OStrings.getString(\"SW_ALL_RESULTS\")); // NOI18N\n jPanel12.add(m_allResultsCB);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_fileNamesCB, OStrings.getString(\"SW_FILE_NAMES\")); // NOI18N\n jPanel12.add(m_fileNamesCB);\n jPanel12.add(filler26);\n\n m_panelSearch.add(jPanel12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n getContentPane().add(m_panelSearch, gridBagConstraints);\n\n m_panelReplace.setLayout(new java.awt.GridLayout(2, 0));\n\n jPanel5.setLayout(new javax.swing.BoxLayout(jPanel5, javax.swing.BoxLayout.LINE_AXIS));\n\n buttonGroupReplace.add(m_replaceExactSearchRB);\n m_replaceExactSearchRB.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_replaceExactSearchRB, OStrings.getString(\"SW_EXACT_SEARCH\")); // NOI18N\n jPanel5.add(m_replaceExactSearchRB);\n jPanel5.add(filler19);\n\n buttonGroupReplace.add(m_replaceRegexpSearchRB);\n org.openide.awt.Mnemonics.setLocalizedText(m_replaceRegexpSearchRB, OStrings.getString(\"SW_REGEXP_SEARCH\")); // NOI18N\n jPanel5.add(m_replaceRegexpSearchRB);\n jPanel5.add(filler20);\n jPanel5.add(m_resultsLabel1);\n jPanel5.add(filler21);\n\n m_panelReplace.add(jPanel5);\n\n jPanel11.setLayout(new javax.swing.BoxLayout(jPanel11, javax.swing.BoxLayout.LINE_AXIS));\n\n m_replaceCase.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_replaceCase, OStrings.getString(\"SW_CASE_SENSITIVE\")); // NOI18N\n jPanel11.add(m_replaceCase);\n jPanel11.add(filler22);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_replaceSpaceMatchNbsp, OStrings.getString(\"SW_SEARCH_SPACE_MATCH_NBSP\")); // NOI18N\n jPanel11.add(m_replaceSpaceMatchNbsp);\n jPanel11.add(filler30);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_replaceUntranslated, OStrings.getString(\"SW_REPLACE_UNTRANSLATED\")); // NOI18N\n jPanel11.add(m_replaceUntranslated);\n jPanel11.add(filler11);\n\n m_panelReplace.add(jPanel11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n getContentPane().add(m_panelReplace, gridBagConstraints);\n\n m_SearchInPane.setBorder(javax.swing.BorderFactory.createTitledBorder(OStrings.getString(\"SW_SEARCH_IN_BOX\"))); // NOI18N\n m_SearchInPane.setLayout(new java.awt.BorderLayout());\n\n jPanel13.setLayout(new java.awt.BorderLayout());\n\n m_SearchInProjectPane.setLayout(new java.awt.GridBagLayout());\n\n buttonGroup2.add(m_rbProject);\n org.openide.awt.Mnemonics.setLocalizedText(m_rbProject, OStrings.getString(\"SW_PROJECT_SEARCH\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.gridwidth = 3;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n m_SearchInProjectPane.add(m_rbProject, gridBagConstraints);\n\n m_cbSearchInMemory.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_cbSearchInMemory, OStrings.getString(\"SW_SEARCH_IN_MEMORY\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n m_SearchInProjectPane.add(m_cbSearchInMemory, gridBagConstraints);\n\n m_cbSearchInTMs.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_cbSearchInTMs, OStrings.getString(\"SW_SEARCH_IN_TMS\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n m_SearchInProjectPane.add(m_cbSearchInTMs, gridBagConstraints);\n\n m_cbSearchInGlossaries.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_cbSearchInGlossaries, OStrings.getString(\"SW_SEARCH_IN_GLOSSARIES\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n m_SearchInProjectPane.add(m_cbSearchInGlossaries, gridBagConstraints);\n\n jPanel13.add(m_SearchInProjectPane, java.awt.BorderLayout.WEST);\n\n jPanel9.setLayout(new java.awt.BorderLayout());\n jPanel9.add(filler25, java.awt.BorderLayout.WEST);\n\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n jPanel9.add(jSeparator1, java.awt.BorderLayout.CENTER);\n jPanel9.add(filler9, java.awt.BorderLayout.EAST);\n\n jPanel13.add(jPanel9, java.awt.BorderLayout.EAST);\n\n m_SearchInPane.add(jPanel13, java.awt.BorderLayout.WEST);\n\n m_SearchInDirPane.setLayout(new java.awt.GridBagLayout());\n\n jPanel10.setOpaque(false);\n jPanel10.setLayout(new javax.swing.BoxLayout(jPanel10, javax.swing.BoxLayout.LINE_AXIS));\n\n buttonGroup2.add(m_rbDir);\n org.openide.awt.Mnemonics.setLocalizedText(m_rbDir, OStrings.getString(\"SW_DIR_SEARCH\")); // NOI18N\n jPanel10.add(m_rbDir);\n jPanel10.add(filler15);\n\n m_recursiveCB.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(m_recursiveCB, OStrings.getString(\"SW_DIR_RECURSIVE\")); // NOI18N\n m_recursiveCB.setEnabled(false);\n jPanel10.add(m_recursiveCB);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.gridwidth = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n m_SearchInDirPane.add(jPanel10, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_dirLabel, OStrings.getString(\"SW_LOCATION\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n m_SearchInDirPane.add(m_dirLabel, gridBagConstraints);\n\n m_dirField.setEditable(false);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n m_SearchInDirPane.add(m_dirField, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_dirButton, OStrings.getString(\"SW_BROWSE\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n m_SearchInDirPane.add(m_dirButton, gridBagConstraints);\n\n m_SearchInPane.add(m_SearchInDirPane, java.awt.BorderLayout.CENTER);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n getContentPane().add(m_SearchInPane, gridBagConstraints);\n\n m_advancedVisiblePane.setLayout(new java.awt.GridBagLayout());\n\n org.openide.awt.Mnemonics.setLocalizedText(m_authorCB, OStrings.getString(\"SW_AUTHOR\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n m_advancedVisiblePane.add(m_authorCB, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n m_advancedVisiblePane.add(m_authorField, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_dateFromCB, OStrings.getString(\"SW_CHANGED_AFTER\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n m_advancedVisiblePane.add(m_dateFromCB, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_dateFromButton, OStrings.getString(\"SW_NOW\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 1;\n m_advancedVisiblePane.add(m_dateFromButton, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_dateToCB, OStrings.getString(\"SW_CHANGED_BEFORE\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n m_advancedVisiblePane.add(m_dateToCB, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_dateToButton, OStrings.getString(\"SW_NOW\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 2;\n m_advancedVisiblePane.add(m_dateToButton, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_numberLabel, OStrings.getString(\"SW_NUMBER\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n m_advancedVisiblePane.add(m_numberLabel, gridBagConstraints);\n\n m_numberOfResults.setModel(new javax.swing.SpinnerNumberModel());\n m_numberOfResults.setMinimumSize(new java.awt.Dimension(100, 28));\n m_numberOfResults.setPreferredSize(new java.awt.Dimension(100, 28));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n m_advancedVisiblePane.add(m_numberOfResults, gridBagConstraints);\n\n m_dateFromSpinner.setModel(new javax.swing.SpinnerDateModel());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n m_advancedVisiblePane.add(m_dateFromSpinner, gridBagConstraints);\n\n m_dateToSpinner.setModel(new javax.swing.SpinnerDateModel());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n m_advancedVisiblePane.add(m_dateToSpinner, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n m_advancedVisiblePane.add(filler7, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_excludeOrphans, OStrings.getString(\"SW_EXCLUDE_ORPHANS\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n m_advancedVisiblePane.add(m_excludeOrphans, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_fullHalfWidthInsensitive, OStrings.getString(\"SW_FULLHALFWIDTH_INSENSITIVE\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n m_advancedVisiblePane.add(m_fullHalfWidthInsensitive, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n getContentPane().add(m_advancedVisiblePane, gridBagConstraints);\n\n jPanel4.setLayout(new javax.swing.BoxLayout(jPanel4, javax.swing.BoxLayout.LINE_AXIS));\n\n org.openide.awt.Mnemonics.setLocalizedText(m_advancedButton, OStrings.getString(\"SW_SHOW_ADVANCED_OPTIONS\")); // NOI18N\n jPanel4.add(m_advancedButton);\n jPanel4.add(filler10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n getContentPane().add(jPanel4, gridBagConstraints);\n\n m_viewer.setText(OStrings.getString(\"SW_VIEWER_TEXT\")); // NOI18N\n jScrollPane1.setViewportView(m_viewer);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n getContentPane().add(jScrollPane1, gridBagConstraints);\n\n jPanel8.setLayout(new javax.swing.BoxLayout(jPanel8, javax.swing.BoxLayout.LINE_AXIS));\n jPanel8.add(filler13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n getContentPane().add(jPanel8, gridBagConstraints);\n\n jPanel7.setLayout(new javax.swing.BoxLayout(jPanel7, javax.swing.BoxLayout.LINE_AXIS));\n\n org.openide.awt.Mnemonics.setLocalizedText(m_autoSyncWithEditor, OStrings.getString(\"SW_AUTO_SYNC\")); // NOI18N\n m_autoSyncWithEditor.setFocusable(false);\n m_autoSyncWithEditor.setMinimumSize(new java.awt.Dimension(105, 21));\n jPanel7.add(m_autoSyncWithEditor);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_backToInitialSegment, OStrings.getString(\"SW_BACK_TO_INITIAL_SEGMENT\")); // NOI18N\n m_backToInitialSegment.setFocusable(false);\n m_backToInitialSegment.setMinimumSize(new java.awt.Dimension(105, 21));\n jPanel7.add(m_backToInitialSegment);\n jPanel7.add(filler12);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_replaceAllButton, OStrings.getString(\"BUTTON_REPLACE_ALL\")); // NOI18N\n m_replaceAllButton.setEnabled(false);\n jPanel7.add(m_replaceAllButton);\n jPanel7.add(filler18);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_replaceButton, OStrings.getString(\"BUTTON_REPLACE\")); // NOI18N\n m_replaceButton.setEnabled(false);\n jPanel7.add(m_replaceButton);\n jPanel7.add(filler16);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_filterButton, OStrings.getString(\"BUTTON_FILTER\")); // NOI18N\n m_filterButton.setEnabled(false);\n jPanel7.add(m_filterButton);\n jPanel7.add(filler1);\n\n org.openide.awt.Mnemonics.setLocalizedText(m_dismissButton, OStrings.getString(\"BUTTON_CLOSE\")); // NOI18N\n jPanel7.add(m_dismissButton);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);\n getContentPane().add(jPanel7, gridBagConstraints);\n\n pack();\n }", "private void initSearchView() {\n SearchManager searchManager = (SearchManager) getActivity().getSystemService(Context.SEARCH_SERVICE);\n\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getActivity().getComponentName()));\n searchView.setMaxWidth(Integer.MAX_VALUE);\n\n //listening to search query text change\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n // filter recycler view when query submitted\n machineAdapter.getFilter().filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n machineAdapter.getFilter().filter(newText);\n return false;\n }\n });\n\n }", "private void setUpSearchBar()\n {\n searchBar.addComponent(searchText);\n searchBar.addComponent(searchButton);\n \n setUpSearchButton();\n setUpSearchText();\n }", "private JScrollPane createInferenceHistoryOptionsPanel() {\n\n\t\tJPanel filterpanel = new JPanel();\n\t\t// filterpanel.setBackground(Color.BLUE);\n\t\tfilterpanel.setLayout(new BoxLayout(filterpanel, BoxLayout.Y_AXIS));\n\t\tfilterpanel.setBorder(new EmptyBorder(3, 10, 3, 10));\n\n\t\tJPanel panel_axiomtypecheckboxes_plus_label = createLabelledGridLayoutPanel(\"Filter Axiomtypes\",\n\t\t\t\ttypecheckboxpanel);\n\t\t// JPanel panel_group_plus_label =\n\t\t// getLabelledGridLayoutPanel(\"Grouping\", combo_group);\n\t\t// JPanel panel_renderer_plus_label =\n\t\t// getLabelledGridLayoutPanel(\"Renderer\", combo_renderer);\n\n\t\taxiomtypelist.addListSelectionListener(e -> {\n //updateConsequenceTables();\n //updateView();\n EventLogging.saveEvent(System.currentTimeMillis(), getOWLWorkspace().getSelectedTab().getId(),\n \"list_axiomtypes_selection\", \"NA\", \"wii\");\n });\n\n\t\tJPanel panel_axiomprio_plus_label = createLabelledGridLayoutPanel(\"Priority Table\",\n\t\t\t\ttable_axiom_pattern_priority);\n\n\t\ttable_axiom_pattern_priority.addMouseListener(new LoggingMouseListener(table_axiom_pattern_priority,\n\t\t\t\t\"table_axiom_pattern_priority_click\", getOWLWorkspace()));\n\n\t\tJPanel gl = new JPanel(new GridLayout(1, 2));\n\t\tgl.add(bt_entity_filter);\n\t\tgl.add(bt_entity_filter_reset);\n\t\tgl.setPreferredSize(new Dimension(0, 25));\n\t\tJPanel panel_entityfilter_plus_label = createLabelledGridLayoutPanel(\"Entity Filter\", gl);\n\n\t\t// JPanel panel_tautology_select_plus_label =\n\t\t// createTautologyCheckboxPanel(cl);\n\n\t\t// panel_axiomtypecheckboxes_plus_label.setMaximumSize(new\n\t\t// Dimension(0,10));\n\t\t// filterpanel.add(getMainLabel(\"Options\"));\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 20)));\n\t\t// filterpanel.add(fontsize_panel);\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\t// filterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\n\t\tJPanel tautologypanel = createTautologyCheckboxPanel();\n\n\t\tfilterpanel.add(panel_axiomtypecheckboxes_plus_label);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(bt_axtypes_advanced);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\tfilterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(tautologypanel);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\t// filterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\t// filterpanel.add(panel_at_advanced_plus_label);\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\t// filterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\t// filterpanel.add(panel_renderer_plus_label);\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\tfilterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(panel_entityfilter_plus_label);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(entity_select_label);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\tfilterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(panel_axiomprio_plus_label);\n\t\t// filterpanel.add(panel_tautology_select_plus_label);\n\n\t\treturn new JScrollPane(filterpanel);\n\t}", "public PanelRegisteredProjects() {\n\t\tthis.controller = new ControllerProject(this);\n\t\tthis.setLayout(new BorderLayout());\n\n\t\tthis.scrollProjects = new JScrollPane(this.list);\n\n\t\tupdate();\n\n\t\tlist.addListSelectionListener(x -> selected(x));\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tlist.setCellRenderer(new ProjectCellRenderer());\n\n\t\tinfo = new JTextArea(2, 20);\n\t\tinfo.setText(\"Description: \");\n\t\tinfo.setWrapStyleWord(true);\n\t\tinfo.setLineWrap(true);\n\t\tinfo.setEditable(false);\n\t\tinfo.setBackground(this.getBackground());\n\n\t\tJPanel buttons = new JPanel(new FlowLayout());\n\t\tbuttons.add(bCreate);\n\t\tbuttons.add(bVote);\n\t\tbuttons.add(bInfo);\n\n\t\tJPanel pn2 = new JPanel();\n\t\tpn2.setLayout(new GridLayout(2, 0));\n\t\tpn2.add(info);\n\t\tpn2.add(buttons);\n\n\t\tcombobox.addActionListener(x -> comboselection(x));\n\t\tbCreate.addActionListener(x -> newProject(x));\n\t\tbVote.addActionListener(x -> vote(x));\n\t\tbInfo.addActionListener(x -> info(x));\n\t\tbSearch.addActionListener(x -> search(x));\n\n\t\tJPanel psearch = new JPanel();\n\t\tpsearch.setLayout(new GridLayout(1, 2));\n\t\tpsearch.add(searchText);\n\t\tpsearch.add(bSearch);\n\n\t\tthis.field1 = new JPanel();\n\t\tthis.field1.setLayout(new BoxLayout(this.field1, BoxLayout.Y_AXIS));\n\n\t\tthis.field1.add(psearch);\n\t\tthis.field1.add(scrollProjects);\n\t\tthis.field1.add(pn2);\n\n\t\tthis.add(combobox, BorderLayout.NORTH);\n\t\tthis.add(field1, BorderLayout.CENTER);\n\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n MainPanel = new javax.swing.JPanel();\n SearchPanel = new javax.swing.JPanel();\n lblSearchName = new javax.swing.JLabel();\n txtSearch = new javax.swing.JTextField();\n RecordPanel = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblHistory = new javax.swing.JTable();\n btnReset = new javax.swing.JButton();\n btnDone = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"History - Diaz Dental Clinic System\");\n setUndecorated(true);\n\n MainPanel.setBackground(new java.awt.Color(17, 24, 42));\n MainPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));\n\n SearchPanel.setBackground(new java.awt.Color(17, 24, 42));\n SearchPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Search for User\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 14), new java.awt.Color(255, 255, 255))); // NOI18N\n SearchPanel.setForeground(new java.awt.Color(255, 255, 255));\n\n lblSearchName.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n lblSearchName.setForeground(new java.awt.Color(255, 255, 255));\n lblSearchName.setText(\"Search for Record : \");\n\n txtSearch.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtSearchKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtSearchKeyTyped(evt);\n }\n });\n\n javax.swing.GroupLayout SearchPanelLayout = new javax.swing.GroupLayout(SearchPanel);\n SearchPanel.setLayout(SearchPanelLayout);\n SearchPanelLayout.setHorizontalGroup(\n SearchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(SearchPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblSearchName)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n SearchPanelLayout.setVerticalGroup(\n SearchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(SearchPanelLayout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(SearchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblSearchName)\n .addComponent(txtSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(31, Short.MAX_VALUE))\n );\n\n RecordPanel.setBackground(new java.awt.Color(17, 24, 42));\n RecordPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Users Record\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 14), new java.awt.Color(255, 255, 255))); // NOI18N\n\n tblHistory.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(tblHistory);\n\n javax.swing.GroupLayout RecordPanelLayout = new javax.swing.GroupLayout(RecordPanel);\n RecordPanel.setLayout(RecordPanelLayout);\n RecordPanelLayout.setHorizontalGroup(\n RecordPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(RecordPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 695, Short.MAX_VALUE)\n .addContainerGap())\n );\n RecordPanelLayout.setVerticalGroup(\n RecordPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(RecordPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n btnReset.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnReset.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/recordmanagement/assets/Delete.png\"))); // NOI18N\n btnReset.setText(\"Reset\");\n btnReset.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnResetActionPerformed(evt);\n }\n });\n\n btnDone.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnDone.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/recordmanagement/assets/check.png\"))); // NOI18N\n btnDone.setText(\"Done\");\n btnDone.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDoneActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout MainPanelLayout = new javax.swing.GroupLayout(MainPanel);\n MainPanel.setLayout(MainPanelLayout);\n MainPanelLayout.setHorizontalGroup(\n MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(MainPanelLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(MainPanelLayout.createSequentialGroup()\n .addComponent(RecordPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(22, Short.MAX_VALUE))\n .addGroup(MainPanelLayout.createSequentialGroup()\n .addComponent(SearchPanel, 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(MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnReset, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnDone, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(41, 41, 41))))\n );\n MainPanelLayout.setVerticalGroup(\n MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(MainPanelLayout.createSequentialGroup()\n .addGroup(MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(MainPanelLayout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(SearchPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MainPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnReset)\n .addGap(18, 18, 18)\n .addComponent(btnDone)\n .addGap(32, 32, 32)))\n .addComponent(RecordPanel, 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 .addComponent(MainPanel, 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(MainPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "public SearchBookUI()\n { \n \n addComponent(searchBar);\n addComponent(bookTable);\n addComponent(addBookButton);\n addComponent(errorLabel);\n //Set button on listening mode\n setUpSearchBar();\n\n //Textfield\n searchText.setInputPrompt(\"Search\");\n \n //Set all the table attributes\n setUpTable();\n \n //Set up add button\n setUpAddBookButton();\n \n }", "private void buildAnalyzePanel(){\n //Create the buttonPanel\n analyzePanel = new JPanel();\n\n //Create the button\n analyzeButton = new JButton(\"Analyze\");\n\n // Add an action listener to the button\n analyzeButton.addActionListener(new ButtonListener());\n\n //Add the button to the panel\n analyzePanel.add(analyzeButton);\n }", "public void init()\r\n {\r\n // SecurityManager security=System.getSecurityManager();\r\n Panel p;\r\n\tgetParameters(); // Read the Applet Parameters.\r\n\tsetLayout(new BorderLayout());\r\n\r\n\t// If Applet size<600 pixels then reduce the length of TextFields , labels etc.\r\n\t// So that the display will OK. \r\n if(size().width<=600)\r\n\t packComponents=true;\r\n else packComponents=false;\r\n\r\n\t// This Panel consists of input Text Field Where the user enters the text to search for.\r\n\t// The buttons allow the search to be started, aborted and clear the applets output fields.\r\n\t\r\n\tp=new Panel();\r\n\tp.setLayout(new FlowLayout());\r\n\tLabel lab=new Label(\"Search for: \");\r\n\tlab.setFont(new Font(\"TimesNewRoman\",Font.BOLD,14));\r\n\tlab.setForeground(Color.blue);\r\n\tp.add(lab);\r\n\t\r\n\tif(packComponents)\r\n\t inputArea=new TextField(\"\",15);\r\n else\r\n\t inputArea=new TextField(\"\",20);\r\n\tp.add(inputArea);\r\n\t\r\n\tif(packComponents)\r\n\t{\r\n\t search=new Button(\"Search\");\r\n\t search.setFont(new Font(\"TimesNewRoman\",Font.BOLD,12));\r\n\t search.setForeground(Color.green);\r\n\t}\r\n\telse\r\n\t{\r\n\t search=new Button(\"Search\");\r\n\t search.setFont(new Font(\"TimesNewRoman\",Font.BOLD,14));\r\n\t search.setForeground(Color.green);\r\n\t}\r\n\tp.add(search);\r\n\r\n\tif (packComponents)\r\n\t{\r\n\t clear = new Button (\"clear\");\r\n\t clear.setFont (new Font (\"TimesNewRoman\", Font.BOLD, 12));\r\n\t clear.setForeground(Color.white);\r\n\t} \r\n\telse\r\n\t{\r\n\t clear = new Button (\" clear \");\r\n\t clear.setFont (new Font (\"Helvetica\", Font.BOLD, 14));\r\n\t clear.setForeground(Color.white);\r\n\t} \r\n\tp.add (clear);\r\n\r\n\tif (packComponents)\r\n\t{\r\n\t abort = new Button (\"stop\");\r\n\t abort.setFont (new Font (\"Helvetica\", Font.BOLD, 12));\r\n\t abort.setForeground(Color.red);\r\n\t}\r\n\telse\r\n\t{\r\n\t abort = new Button (\" stop \");\r\n\t abort.setFont (new Font (\"Helvetica\", Font.BOLD, 14));\r\n\t abort.setForeground(Color.red);\r\n\t}\r\n\tabort.disable();\r\n\tp.add (abort);\r\n \r\n\tif (packComponents)\r\n\t\tlab = new Label (\"Pages\");\r\n\telse\r\n\t\tlab = new Label (\" Max. Pages:\");\r\n\tlab.setFont (new Font (\"Helvetica\", Font.PLAIN, 12));\r\n\tp.add (lab);\r\n\tnumPagesChoice = new Choice();\r\n\t//p.add (numPagesChoice);\r\n\tp.setForeground (fgColour);\r\n\tp.setBackground (bgColour);\r\n\tadd (\"North\",p);\r\n\r\n\t// This Panel Lists the results. When an item from the list box is double clicked the URL is opened.\r\n p=new Panel();\r\n p.setLayout(new GridLayout(0,1));\r\n\tresultsArea=new java.awt.List(10,false);\r\n p.add(resultsArea);\r\n\tp.setForeground(fgColour);\r\n\tp.setBackground(bgColour);\r\n\tadd(\"Center\",p);\r\n\r\n\tp=new Panel();\r\n\tLabel labVersion=new Label(versionNumber);\r\n\tlabVersion.setFont(new Font(\"TimesNewRoman\",Font.BOLD,12));\r\n\tp.add(labVersion);\r\n\r\n\tCheckboxGroup caseSense=new CheckboxGroup();\r\n\t\r\n\t// This TextField shows the status of the search to provide some feed back to the user. \r\n\t// The Page Count is displayed. \r\n\r\n\tif(packComponents)\r\n\t statusArea=new TextField(\"\",14);\r\n else \r\n\t statusArea=new TextField(\"\",20);\r\n\t\r\n\tstatusArea.setEditable(false);\r\n\tp.add(statusArea);\r\n\r\n\tif (packComponents)\r\n\t\tcaseInsensitive = new Checkbox (\"in-sensitive\");\r\n\telse\r\n\t\tcaseInsensitive = new Checkbox (\"case in-sensitive\");\r\n\r\n\tp.add (caseInsensitive);\r\n\tcaseInsensitive.setCheckboxGroup (caseSense);\r\n\r\n\tif (packComponents)\r\n\t\tcaseSensitive = new Checkbox (\"sensitive\" );\r\n\telse\r\n\t\tcaseSensitive = new Checkbox (\"case sensitive\" );\r\n\r\n\tp.add (caseSensitive);\r\n\tcaseSensitive.setCheckboxGroup (caseSense);\r\n\tcaseSense.setCurrent (caseInsensitive);\r\n\r\n\tif (packComponents)\r\n\t\tmatchWholeWord = new Checkbox (\"whole word\");\r\n\telse\r\n\t\tmatchWholeWord = new Checkbox (\"match whole word\");\r\n\r\n\tp.add (matchWholeWord);\r\n\tp.setForeground (fgColour);\r\n\tp.setBackground (bgColour);\r\n\tadd (\"South\",p);\r\n\r\n\tdisableButtons(); // Disable Button until text entered.\r\n\r\n\t// Create Vector to hold pages that have been found and pages that contain the search text.\r\n\tpageNames=new Vector();\r\n\tpageMatch=new Vector();\r\n\r\n\t// Now that we know what the maxSearch parameter is fill in sensible page Numbers.\r\n for(int i=maxSearch/5;i<=maxSearch;i+=maxSearch/5)\r\n\t{\r\n\t numPagesChoice.addItem(Integer.toString(i));\r\n\t}\r\n\tnumPagesChoice.setFont(new Font(\"Helvetica\",Font.BOLD,12));\r\n\t//Set the default Number of pages to be searched.\r\n\tnumPagesChoice.select(0);\r\n\tmaxSearch=maxSearch/5;\r\n\tinputArea.setBackground(Color.white);\r\n }", "private Search() {}", "public void intitialiseGUI(){\n\t\tsetTitle(\"Search\");//Setting the title for this frame\n\t\tsetSize(1100, 650);//Setting the size for this frame\n\t setLocationRelativeTo(null);//Putting the frame in the centre of the screen\n\n\t optionsPane = new JPanel(new BorderLayout());//Creating a panel for the left hand size of the frame which will hold the options\n\t\tjpCmbBoxes = new JPanel();//Creating a panels to hold the combo boxes\n\t\tpic = new JPanel();//Creating a panel to hold the picture\n\t\tdisclaimer = new JPanel(new BorderLayout());//Creating a panel to contain the disclaimer at the bottom of the frame\n\t\tsearchResults = new JPanel();//Creating a panel to hold the search results on the right hand side of the screen\n\t\tscrollbar = new JScrollPane(searchResults, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);//Creating a new scroll pane and disabling the horizontal scroll bar\n\t\t\n\t\tdisclaim = new JLabel(j.getAcknowledgement());//Creating a label for the disclaimer\n\t\tsubTitle = new JLabel(\"Shark Tracker\");//Creating a label for the subtitle\n\t\ttrackingRangeLabel = new JLabel(\"Tracking Range\");//Creating a label for the tracking range\n\t\tgenderLabel = new JLabel(\"Gender\");//Creating a label for the gender\n\t\tstageOfLifeLabel = new JLabel(\"Stage of Life\");//Creating a label for the stage of life\n\t\ttagLocationLabel = new JLabel(\"Tag Location\");//Creating a label for the tag location\n\t\tsearchButton = new JButton(\"Search\");//Creating a label for the search button\n\t\tsearchByName = new JButton(\"Search by Name\");//Creating a label for the searchByName button\n\t\t\n\t\t/*Setting the alignment of each of the components*/\n\t\tsubTitle.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\ttrackingRangeLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tgenderLabel.setAlignmentX(Component.CENTER_ALIGNMENT);;\n\t\tstageOfLifeLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\ttagLocationLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tsearchButton.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tsearchByName.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tsubTitle.setFont(new Font(\"Serif\", Font.PLAIN, 40));//Setting the font for the subtitle\n\t\t\n\t\ttrackingRange = new JComboBox<String>(ranges);//Creating a combo box for the tracking range options\n\t\tgenderBox = new JComboBox<String>(gender);//Creating a combo box for the gender options\n\t\tstageofLifeBox = new JComboBox<String>(stages);//Creating a combo box for the stage of life options\n\t\ttagLocationBox = new JComboBox<String>();//Creating a combo box for the tag location options\n\t\ttagLocationBox.addItem(\"All\");//Adding an extra field for tag location \"all\"\n\t\t\n\t\tfor(String s : locations){//This for loop gets the tag locations and then adds them to the combo box\n\t\t\ttagLocationBox.addItem(s);//Adding the location to the combo box\n\t\t}\n\t\tscrollbar = new JScrollPane(searchResults);//Adding a scroll pane for the search results\n\t}", "private JPanel createPanelKeywordt() {\n\n JPanel panel2 = new JPanel(new BorderLayout());\n panel2.setBorder(PADDING_BORDER);\n\n JPanel panelButton = new JPanel(new FlowLayout(FlowLayout.CENTER));\n panelButton.add(createButtonAddKeyword());\n\n panel2.add(createScrollPaneKeyWords(), BorderLayout.NORTH);\n panel2.add(panelButton, BorderLayout.CENTER);\n panel2.add(createConfirmButtonsPanel(), BorderLayout.SOUTH);\n return panel2;\n }", "public DirectSearchPanel(OntologyClass myOntologyClass) {\n this.myOntologyClass = myOntologyClass;\n initComponents();\n\n buildList();\n\n //Add key listener to the textfield\n searchField.addKeyListener(new KeyAdapter() {\n public void keyReleased(KeyEvent e) {\n //If the user delete by pressing backspace\n if (searchFieldLength > searchField.getText().length()) {\n componentsList.setModel(ingredientsListModel);\n filterList();\n } else {\n filterList();\n }\n }\n\n public void keyPressed(KeyEvent e) {\n searchFieldLength = searchField.getText().length();\n }\n });\n }", "private void visitToSearch() {\n if (search_Attendance==null) {\n search_Attendance=new Search_Attendance();\n search_Attendance.setVisible(true);\n } else {\n search_Attendance.setVisible(true);\n }\n }", "public search() {\n }", "private void fillSearchFields() {\n view.setMinPrice(1);\n view.setMaxPrice(10000);\n view.setMinSQM(1);\n view.setMaxSQM(10000);\n view.setBedrooms(1);\n view.setBathrooms(1);\n view.setFloor(1);\n view.setHeating(false);\n view.setLocation(\"Athens\");\n }", "private void initComponents() {\n jSplitPane1 = new javax.swing.JSplitPane();\n jPanel1 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n xActionTextField1 = new com.rameses.rcp.control.XActionTextField();\n xDataTable1 = new com.rameses.rcp.control.XDataTable();\n jPanel2 = new javax.swing.JPanel();\n xActionBar1 = new com.rameses.rcp.control.XActionBar();\n jPanel4 = new javax.swing.JPanel();\n formPanel1 = new com.rameses.rcp.util.FormPanel();\n xTextField1 = new com.rameses.rcp.control.XTextField();\n xTextField2 = new com.rameses.rcp.control.XTextField();\n xCheckBox1 = new com.rameses.rcp.control.XCheckBox();\n xNumberField1 = new com.rameses.rcp.control.XNumberField();\n\n setLayout(new java.awt.BorderLayout());\n\n setPreferredSize(new java.awt.Dimension(748, 396));\n jSplitPane1.setDividerLocation(400);\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder1 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder1.setTitle(\"Listing\");\n jPanel1.setBorder(xTitledBorder1);\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n jPanel3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 1, 3, 5));\n xActionTextField1.setActionName(\"search\");\n xActionTextField1.setCaptionMnemonic('h');\n xActionTextField1.setHint(\"Search\");\n xActionTextField1.setIndex(-1);\n xActionTextField1.setName(\"searchText\");\n xActionTextField1.setPreferredSize(new java.awt.Dimension(200, 19));\n jPanel3.add(xActionTextField1, java.awt.BorderLayout.WEST);\n\n jPanel1.add(jPanel3, java.awt.BorderLayout.NORTH);\n\n xDataTable1.setHandler(\"listHandler\");\n xDataTable1.setImmediate(true);\n xDataTable1.setName(\"selectedItem\");\n jPanel1.add(xDataTable1, java.awt.BorderLayout.CENTER);\n\n jSplitPane1.setLeftComponent(jPanel1);\n\n jPanel2.setLayout(new java.awt.BorderLayout());\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder2 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder2.setTitle(\"Document\");\n jPanel2.setBorder(xTitledBorder2);\n xActionBar1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 0));\n xActionBar1.setDepends(new String[] {\"selectedItem\"});\n xActionBar1.setName(\"formActions\");\n jPanel2.add(xActionBar1, java.awt.BorderLayout.NORTH);\n\n jPanel4.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 5, 5));\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder3 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder3.setTitle(\"Property Classification Information\");\n formPanel1.setBorder(xTitledBorder3);\n xTextField1.setCaption(\"Code\");\n xTextField1.setDepends(new String[] {\"selectedItem\"});\n xTextField1.setName(\"entity.propertycode\");\n xTextField1.setPreferredSize(new java.awt.Dimension(80, 18));\n xTextField1.setRequired(true);\n formPanel1.add(xTextField1);\n\n xTextField2.setCaption(\"Description\");\n xTextField2.setDepends(new String[] {\"selectedItem\"});\n xTextField2.setName(\"entity.propertydesc\");\n xTextField2.setPreferredSize(new java.awt.Dimension(0, 18));\n xTextField2.setRequired(true);\n formPanel1.add(xTextField2);\n\n xCheckBox1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n xCheckBox1.setText(\" Is Special?\");\n xCheckBox1.setCaption(\"\");\n xCheckBox1.setCheckValue(1);\n xCheckBox1.setDepends(new String[] {\"selectedItem\"});\n xCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0));\n xCheckBox1.setName(\"entity.special\");\n formPanel1.add(xCheckBox1);\n\n xNumberField1.setCaption(\"Order No\");\n xNumberField1.setDepends(new String[] {\"selectedItem\"});\n xNumberField1.setFieldType(int.class);\n xNumberField1.setName(\"entity.orderno\");\n xNumberField1.setPreferredSize(new java.awt.Dimension(75, 18));\n xNumberField1.setRequired(true);\n formPanel1.add(xNumberField1);\n\n org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 328, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(29, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 177, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(166, Short.MAX_VALUE))\n );\n jPanel2.add(jPanel4, java.awt.BorderLayout.CENTER);\n\n jSplitPane1.setRightComponent(jPanel2);\n\n add(jSplitPane1, java.awt.BorderLayout.CENTER);\n\n }", "protected void qPanel_init()\r\n\t{\r\n \tqueryPanel.removeAll();\r\n \t\r\n\t\tGroupLayout layout = new GroupLayout(queryPanel);\r\n\t\tqueryPanel.setLayout(layout);\r\n\t\tlayout.setAutoCreateGaps(true);\r\n\t\tlayout.setAutoCreateContainerGaps(true);\r\n\t\t\r\n\t\tqueryLabel = new JLabel(\"Query Tab\");\r\n\t\t\r\n\t\tDimension size = new Dimension(220,25);\r\n \tbasicTextField = new JTextField(30);\r\n \tbasicTextField.setActionCommand(basicLabelText);\r\n \tbasicTextField.addActionListener(this);\r\n \tbasicTextField.setText(\"*.*\");\r\n \tbasicTextField.setPreferredSize(size);\r\n \tbasicTextField.setMaximumSize(size);\r\n \tbasicTextField.setMinimumSize(size);\r\n\t\t\r\n\t\t\r\n\t\tsize = new Dimension(220,25);\r\n \tqueryTextField = new JTextField(30);\r\n queryTextField.setActionCommand(queryLabelText);\r\n queryTextField.addActionListener(this);\r\n queryTextField.setText(\"*:*\");\r\n queryTextField.setPreferredSize(size);\r\n queryTextField.setMaximumSize(size);\r\n queryTextField.setMinimumSize(size);\r\n \r\n size = new Dimension(100,25);\r\n rowsTextField = new JTextField(10);\r\n rowsTextField.setActionCommand(rowsLabelText);\r\n rowsTextField.addActionListener(this);\r\n rowsTextField.setText(\"10\");\r\n rowsTextField.setPreferredSize(size);\r\n rowsTextField.setMaximumSize(size);\r\n rowsTextField.setMinimumSize(size);\r\n \r\n size = new Dimension(250,150);\r\n interestedUsers=featureMap.getInstance().interestedUsers();\r\n list = new JList<String>(interestedUsers);\r\n list.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\r\n listSelectionModel = list.getSelectionModel();\r\n listSelectionModel.addListSelectionListener(this);\r\n JScrollPane listPane = new JScrollPane(list);\r\n// list.addListSelectionListener(this);\r\n queryPanel.add(listPane);\r\n \r\n JLabel basicTextFieldLabel = new JLabel(basicLabelText + \":\\n\");\r\n basicTextFieldLabel.setLabelFor(basicTextField);\r\n queryPanel.add(basicTextFieldLabel);\r\n queryPanel.add(basicTextField); \r\n \r\n JLabel queryTextFieldLabel = new JLabel(queryLabelText + \":\\n\");\r\n queryTextFieldLabel.setLabelFor(queryTextField);\r\n queryPanel.add(queryTextFieldLabel);\r\n queryPanel.add(queryTextField);\r\n \r\n JLabel rowsTextFieldLabel = new JLabel(rowsLabelText + \":\\n\");\r\n rowsTextFieldLabel.setLabelFor(rowsTextField);\r\n queryPanel.add(rowsTextFieldLabel);\r\n queryPanel.add(rowsTextField);\r\n \r\n startDate = new JXDatePicker();\r\n endDate = new JXDatePicker();\r\n startDate.setDate(featureMap.getInstance().startDate());\r\n startDate.setFormats(new SimpleDateFormat(\"dd.MM.yyyy\"));\r\n startDate.addActionListener(this);\r\n queryStartDate = startDate.getDate();\r\n \r\n endDate.setDate(Calendar.getInstance().getTime());\r\n endDate.setFormats(new SimpleDateFormat(\"dd.MM.yyyy\"));\r\n endDate.addActionListener(this);\r\n queryEndDate = endDate.getDate();\r\n \r\n JLabel startDateLabel = new JLabel(\"startDate: \\n\");\r\n queryPanel.add(startDateLabel);\r\n queryPanel.add(startDate);\r\n JLabel endDateLabel = new JLabel(\"endDate: \\n\");\r\n queryPanel.add(endDateLabel);\r\n queryPanel.add(endDate);\t\t\r\n \r\n generalButton = new JButton();\r\n generalButton.setVerticalTextPosition(AbstractButton.CENTER);\r\n generalButton.setHorizontalTextPosition(AbstractButton.LEADING); //aka LEFT, for left-to-right locales\r\n generalButton.addActionListener(this);\r\n queryPanel.add(generalButton); \t \r\n \r\n \r\n opt1Button = new JRadioButton();\r\n opt1Button.setSelected(true);\r\n opt1Button.addActionListener(this);\r\n \t\r\n opt2Button = new JRadioButton();\r\n opt2Button.setMnemonic(KeyEvent.VK_F);\r\n opt2Button.setSelected(false);\r\n opt2Button.setActionCommand(\"Frequency\");\r\n opt2Button.addActionListener(this);\r\n \r\n ButtonGroup group = new ButtonGroup();\r\n group.add(opt1Button);\r\n group.add(opt2Button);\r\n \r\n queryPanel.add(opt1Button);\r\n queryPanel.add(opt2Button);\r\n \r\n layout.setHorizontalGroup(\r\n \t\t layout.createSequentialGroup()\r\n \t\t .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\r\n \t\t \t\t.addComponent(queryLabel)\r\n \t\t \t\t.addGroup(layout.createSequentialGroup()\r\n \t\t \t\t\t.addGroup(layout.createParallelGroup()\r\n \t\t \t\t\t\t\t.addComponent(basicTextFieldLabel)\r\n \t\t \t\t\t\t\t.addComponent(queryTextFieldLabel)\r\n \t\t \t\t\t\t\t.addComponent(rowsTextFieldLabel)\r\n \t\t \t\t\t\t\t)\r\n \t\t \t\t\t.addGroup(layout.createParallelGroup()\t\r\n \t\t \t\t\t\t\t.addComponent(basicTextField)\r\n \t\t \t\t\t\t\t.addComponent(queryTextField)\r\n \t\t \t\t\t\t\t.addComponent(rowsTextField)\r\n \t\t \t\t\t\t\t.addComponent(opt1Button)\r\n \t\t \t\t\t\t\t.addComponent(opt2Button)\r\n \t\t \t\t\t\t\t.addComponent(generalButton) \t\t \t\t\t\t\t\r\n \t\t \t\t\t\t\t)\r\n \t\t \t\t\t.addGroup(layout.createParallelGroup()\r\n \t\t \t\t\t\t\t.addComponent(startDateLabel)\r\n \t\t \t\t\t\t\t.addComponent(endDateLabel)\r\n \t\t \t\t\t\t\t)\t\t\t\r\n \t\t \t\t\t.addGroup(layout.createParallelGroup()\r\n \t\t \t\t\t\t\t.addComponent(startDate)\r\n \t\t \t\t\t\t\t.addComponent(endDate)\r\n \t\t \t\t\t\t\t)\r\n \t\t \t\t\t.addComponent(listPane)\r\n \t\t \t\t\t)\r\n \t\t \t\t)\r\n \t\t);\r\n \r\n layout.setVerticalGroup(\r\n \t\tlayout.createSequentialGroup()\r\n \t\t\t.addComponent(queryLabel)\r\n \t\t\t.addGroup(layout.createParallelGroup()\r\n \t\t\t\t.addGroup(layout.createSequentialGroup()\r\n \t\t\t\t\t\t.addComponent(basicTextFieldLabel)\r\n \t\t\t\t\t\t.addComponent(queryTextFieldLabel)\r\n \t\t\t\t\t\t.addComponent(rowsTextFieldLabel)\r\n \t\t\t\t\t\t)\r\n \t\t\t\t.addGroup(layout.createSequentialGroup()\r\n \t\t\t\t\t\t.addComponent(basicTextField)\r\n \t\t\t\t\t\t.addComponent(queryTextField)\r\n \t\t\t\t\t\t.addComponent(rowsTextField)\r\n \t\t\t\t\t\t.addComponent(opt1Button)\r\n \t\t\t\t\t\t.addComponent(opt2Button)\r\n \t\t\t\t\t\t.addComponent(generalButton) \t\t\t\t\t\t\r\n \t\t\t\t\t\t)\r\n \t\t\t\t.addGroup(layout.createSequentialGroup()\r\n \t\t\t\t\t\t.addComponent(startDateLabel)\r\n \t\t\t\t\t\t.addComponent(endDateLabel)\r\n \t\t\t\t\t\t)\r\n \t\t\t\t.addGroup(layout.createSequentialGroup()\r\n \t\t\t\t\t\t.addComponent(startDate)\r\n \t\t\t\t\t\t.addComponent(endDate)\r\n \t\t\t\t\t\t)\r\n \t\t\t\t.addComponent(listPane)\r\n \t\t )\r\n \t\t \t//.addComponent(listPane))\r\n \t\t);\r\n \r\n queryPanel_initialized = true;\r\n\t}", "private PanelCollapse createDefineCollapsablePanel() {\n\t\tPanelCollapse defineCollapsePanel = new PanelCollapse();\n\t\tdefineCollapsePanel.setId(\"collapseDefine\");\n\t\t\n\t\tPanelBody defineCollapseBody = new PanelBody();\n\t\t\n\t\tHorizontalPanel defineFP = new HorizontalPanel();\n\t\t\n\t\tVerticalPanel rightVerticalPanel = new VerticalPanel();\n\t\trightVerticalPanel.setSpacing(10);\n\t\t\n\t\trightVerticalPanel.getElement().setId(\"rhsVerticalPanel_VerticalPanelParam\");\n\t\trightVerticalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\n\t\tLabel defineLibraryLabel = new Label(\"Definition Library\");\n\t\tsearchSuggestDefineTextBox = new SuggestBox(getSuggestOracle(defineNameMap.values()));\n\t\t//updateNewSuggestDefineOracle();\n\t\tsearchSuggestDefineTextBox.setWidth(\"180px\");\n\t\tsearchSuggestDefineTextBox.setText(\"Search\");\n\t\tsearchSuggestDefineTextBox.getElement().setId(\"searchTextBox_TextBoxParameterLib\");\n\t\t\n\t\tsearchSuggestDefineTextBox.getValueBox().addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tif (\"Search\".equals(searchSuggestDefineTextBox.getText())) {\n\t\t\t\t\tsearchSuggestDefineTextBox.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tdefineNameListBox = new ListBox();\n\t\tdefineNameListBox.setWidth(\"180px\");\n\t\tdefineNameListBox.setVisibleItemCount(10);\n\t\tdefineNameListBox.getElement().setAttribute(\"id\", \"defineListBox\");\n\t\t\n\t\tclearAndAddDefinitionNamesToListBox();\n\t\t\n\t\taddSuggestHandler(searchSuggestDefineTextBox, defineNameListBox);\n\t\taddListBoxHandler(defineNameListBox, searchSuggestDefineTextBox);\n\t\t\n\t\tsearchSuggestDefineTextBox.getElement().setAttribute(\"id\", \"searchSuggestTextBox\");\n\t\trightVerticalPanel.add(searchSuggestDefineTextBox);\n\t\tsearchSuggestDefineTextBox.getElement().setId(\"searchSuggestTextBox_SuggestBox\");\n\t\trightVerticalPanel.add(defineNameListBox);\n\t\tsearchSuggestDefineTextBox.getElement().setId(\"DefineListBox_ListBox\");\n\t\trightVerticalPanel.setCellHorizontalAlignment(defineLibraryLabel, HasHorizontalAlignment.ALIGN_LEFT);\n\t\tdefineFP.add(rightVerticalPanel);\n\t\tdefineCollapseBody.add(defineFP);\n\t\tdefineCollapsePanel.add(defineCollapseBody);\n\t\treturn defineCollapsePanel;\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n panel = new javax.swing.JPanel();\n pnlTblHdr = new javax.swing.JPanel();\n tblTotal = new javax.swing.JLabel();\n tblItemCode = new javax.swing.JLabel();\n tblItemName = new javax.swing.JLabel();\n txtSearchAttribute = new javax.swing.JTextField();\n btnSelect = new javax.swing.JButton();\n lblItemName = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblItems = new javax.swing.JTable();\n btnSearch = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Item Search\");\n setAlwaysOnTop(true);\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setResizable(false);\n\n panel.setMaximumSize(new java.awt.Dimension(1024, 720));\n panel.setMinimumSize(new java.awt.Dimension(1024, 720));\n panel.setPreferredSize(new java.awt.Dimension(1024, 720));\n panel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n pnlTblHdr.setBackground(new java.awt.Color(0, 0, 102));\n\n tblTotal.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n tblTotal.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cloudrevel/language/src/mainmenu/item-barcode-sinhala.png\"))); // NOI18N\n\n tblItemCode.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cloudrevel/language/src/mainmenu/tbl-hdr-item-code-sinhala.png\"))); // NOI18N\n\n tblItemName.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cloudrevel/language/src/mainmenu/tbl-hdr-item-name-sinhala.png\"))); // NOI18N\n\n javax.swing.GroupLayout pnlTblHdrLayout = new javax.swing.GroupLayout(pnlTblHdr);\n pnlTblHdr.setLayout(pnlTblHdrLayout);\n pnlTblHdrLayout.setHorizontalGroup(\n pnlTblHdrLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pnlTblHdrLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(tblItemCode, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tblItemName, javax.swing.GroupLayout.PREFERRED_SIZE, 444, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)\n .addComponent(tblTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n pnlTblHdrLayout.setVerticalGroup(\n pnlTblHdrLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tblTotal, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)\n .addComponent(tblItemCode, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tblItemName, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n panel.add(pnlTblHdr, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 120, 840, 35));\n\n txtSearchAttribute.setFont(new java.awt.Font(\"Ubuntu\", 0, 18)); // NOI18N\n txtSearchAttribute.setToolTipText(\"Search by Item Code, Item Name or Item Barcode\");\n txtSearchAttribute.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtSearchAttributeKeyReleased(evt);\n }\n });\n panel.add(txtSearchAttribute, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 60, 450, 40));\n\n btnSelect.setBackground(new java.awt.Color(255, 255, 255));\n btnSelect.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cazzendra/pos/newtheme/icons/facebook-like-32.png\"))); // NOI18N\n btnSelect.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnSelect.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSelectActionPerformed(evt);\n }\n });\n panel.add(btnSelect, new org.netbeans.lib.awtextra.AbsoluteConstraints(790, 490, 80, 40));\n\n lblItemName.setFont(new java.awt.Font(\"Ubuntu Medium\", 0, 18)); // NOI18N\n lblItemName.setForeground(new java.awt.Color(0, 0, 102));\n lblItemName.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cloudrevel/language/src/mainmenu/item-search-by-name-item-code-barcode-sinhala.png\"))); // NOI18N\n panel.add(lblItemName, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 30, -1, -1));\n\n tblItems.setFont(new java.awt.Font(\"Ubuntu\", 0, 18)); // NOI18N\n tblItems.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Item Id \", \"Item Code\", \"Item Name\", \"Item Barcode\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tblItems.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n tblItems.getTableHeader().setFont(new Font(\"Ubuntu\", Font.BOLD, 18));\n tblItems.getTableHeader().setOpaque(false);\n tblItems.getTableHeader().setBackground(new Color(0, 0, 102));\n tblItems.getTableHeader().setForeground(new Color(255, 255, 255));\n tblItems.setRowHeight(22);\n tblItems.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n tblItemsFocusLost(evt);\n }\n });\n tblItems.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tblItemsKeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(tblItems);\n if (tblItems.getColumnModel().getColumnCount() > 0) {\n tblItems.getColumnModel().getColumn(0).setMinWidth(0);\n tblItems.getColumnModel().getColumn(0).setPreferredWidth(0);\n tblItems.getColumnModel().getColumn(0).setMaxWidth(0);\n tblItems.getColumnModel().getColumn(1).setMinWidth(150);\n tblItems.getColumnModel().getColumn(1).setPreferredWidth(150);\n tblItems.getColumnModel().getColumn(1).setMaxWidth(150);\n tblItems.getColumnModel().getColumn(3).setMinWidth(200);\n tblItems.getColumnModel().getColumn(3).setPreferredWidth(200);\n tblItems.getColumnModel().getColumn(3).setMaxWidth(200);\n }\n\n panel.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(36, 126, 840, 350));\n\n btnSearch.setBackground(new java.awt.Color(255, 255, 255));\n btnSearch.setFont(new java.awt.Font(\"Ubuntu\", 0, 18)); // NOI18N\n btnSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cazzendra/pos/ui/icons/search_32x32.png\"))); // NOI18N\n panel.add(btnSearch, new org.netbeans.lib.awtextra.AbsoluteConstraints(1000, 390, 40, 40));\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(panel, javax.swing.GroupLayout.PREFERRED_SIZE, 908, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panel, javax.swing.GroupLayout.PREFERRED_SIZE, 558, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "private void searchMenu(){\n\t\t\n\t}", "public void createControl(Composite parent) {\n Composite main = new Composite(parent, SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.numColumns = 1;\n main.setLayout(layout);\n if (parent.getLayout() instanceof GridLayout) {\n // This is necessary otherwise Eclipse does not properly layout\n // the main control. Really the parent Composite should be doing\n // this but this seems to be how Eclipse expects search dialogs\n // to be layed out see\n // org.eclipse.search.internal.ui.text.TextSearchPage.\n main.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n }\n\n Label label = new Label(main, SWT.LEFT);\n label.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"searchStringCombo.text\"));\n\n Composite innerComposite = new Composite(main, SWT.NONE);\n innerComposite.setLayoutData(new GridData(GridData.FILL_BOTH));\n layout = new GridLayout();\n layout.numColumns = 2;\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n innerComposite.setLayout(layout);\n\n Composite comboComposite = new Composite(innerComposite, SWT.NONE);\n comboComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n layout = new GridLayout();\n layout.numColumns = 1;\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n comboComposite.setLayout(layout);\n\n searchStringCombo = new Combo(comboComposite, SWT.DROP_DOWN);\n searchStringCombo.setItems(historyManager.getHistory());\n GridData data = new GridData(GridData.FILL_BOTH);\n searchStringCombo.setLayoutData(data);\n\n searchStringCombo.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent event) {\n getContainer().setPerformActionEnabled(!searchStringCombo.\n getText().equals(\"\"));\n }\n });\n Composite checkBoxComposite = new Composite(innerComposite, SWT.NONE);\n layout = new GridLayout();\n layout.numColumns = 1;\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n\n checkBoxComposite.setLayout(layout);\n\n caseButton = new Button(checkBoxComposite, SWT.CHECK);\n caseButton.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"caseSensitive.text\"));\n caseButton.setSelection(dialogSettings.\n getBoolean(caseButton.getText()));\n\n regExpButton = new Button(checkBoxComposite, SWT.CHECK);\n regExpButton.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"regularExpression.text\"));\n regExpButton.setSelection(dialogSettings.\n getBoolean(regExpButton.getText()));\n\n final Label hint = new Label(comboComposite, SWT.LEFT);\n hint.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"nonRegExp.hint.label\"));\n hint.setVisible(!regExpButton.getSelection());\n\n\t\tregExpButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\thint.setVisible(!regExpButton.getSelection());\n\t\t\t}\n\t\t});\n\n Group searchGroup = new Group(main, SWT.SHADOW_ETCHED_IN);\n data = new GridData(GridData.FILL_HORIZONTAL);\n searchGroup.setLayoutData(data);\n searchGroup.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"searchGroup.text\"));\n searchGroup.setLayout(new FillLayout());\n\n deviceNameSearch = new Button(searchGroup, SWT.RADIO);\n deviceNameSearch.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"deviceNameSearch.text\"));\n deviceNameSearch.setSelection(dialogSettings.\n getBoolean(deviceNameSearch.getText()));\n\n devicePatternsSearch = new Button(searchGroup, SWT.RADIO);\n devicePatternsSearch.setText(SearchMessages.getString(RESOURCE_PREFIX +\n \"devicePatternsSearch.text\"));\n devicePatternsSearch.setSelection(dialogSettings.\n getBoolean(devicePatternsSearch.getText()));\n\n if(!devicePatternsSearch.getSelection() &&\n !deviceNameSearch.getSelection()) {\n deviceNameSearch.setSelection(true); // default\n }\n setControl(main);\n getContainer().setPerformActionEnabled(false);\n }", "public QueryInvoiceForm() {\n\t\tTimeZone.setDefault(TimeZone.getTimeZone(\"UTC\"));\n\t\tgetQuery();\n\t\tJLabel topicLabel = new JLabel(\"Query Invoice Table \");\n\t\tJButton addButton = new JButton(\"Create\");\n\t\tJButton updateButton = new JButton(\"Update\");\n\t\tJButton deleteButton = new JButton(\"Delete\");\n\n\t\taddButtonHandler addHandler = new addButtonHandler();\n\t\taddButton.addActionListener(addHandler);\n\t\tupdateButtonHandler updateHandler = new updateButtonHandler();\n\t\tupdateButton.addActionListener(updateHandler);\n\t\tdeleteButtonHandler deleteHandler = new deleteButtonHandler();\n\t\tdeleteButton.addActionListener(deleteHandler);\n\n\t\t// set up table search bar and sorter\n\t\tfinal TableRowSorter<TableModel> sorter = new TableRowSorter<TableModel>(model);\n\t\tjtable.setRowSorter(sorter);\n\n\t\tsearchBarField = new JTextField(\n\t\t\t\t\"Enter query here (Click on the field to clear it, then press Enter to clear query)\");\n\t\tsearchBarField.setHorizontalAlignment(JTextField.CENTER);\n\t\tsearchBarField.setPreferredSize(new Dimension(500, 40));\n\n\t\tsearchBarField.addKeyListener(new KeyListener() {\n\t\t\tString query;\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent event) {\n\t\t\t\tif (event.getKeyCode() == KeyEvent.VK_ENTER) {\n\t\t\t\t\tquery = searchBarField.getText();\n\t\t\t\t\tif (query.length() == 0) {\n\t\t\t\t\t\tsorter.setRowFilter(null);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsorter.setRowFilter(RowFilter.regexFilter(query));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}\n\t\t});\n\n\t\tClearFieldHandler clickClear = new ClearFieldHandler();\n\t\tsearchBarField.addMouseListener(clickClear);\n\n\t\ttopPadding = BorderFactory.createEmptyBorder(-15, 0, 0, 0);\n\t\ttopPanel.setLayout(new BorderLayout());\n\t\ttopPanel.setBorder(topPadding);\n\t\t\n\t\t/* add components */\n\t\ttopPanel.add(topicLabel);\n\t\ttopPanel.add(searchBarField);\n\t\tpanel.add(jtablePanel);\n\t\tbottomPanel.add(addButton);\n\t\tbottomPanel.add(new JLabel(\" \"));\n\t\tbottomPanel.add(updateButton);\n\t\tbottomPanel.add(new JLabel(\" \"));\n\t\tbottomPanel.add(deleteButton);\n\t\tqueryInvoiceFormPanel.add(topPanel);\n\t\tqueryInvoiceFormPanel.add(panel);\n\t\tqueryInvoiceFormPanel.add(bottomPanel);\n\n\t\t/* set Style */\n\t\tFont topicFont = new Font(\"Calibri\", Font.BOLD, 25);\n\t\tFont buttonFont = new Font(\"Calibri\", Font.BOLD, 15);\n\t\tBorder formBorder = BorderFactory.createLineBorder(Color.LIGHT_GRAY, 3);\n\t\tDimension buttonSize = new Dimension(200, 50);\n\n\t\ttopicLabel.setFont(topicFont);\n\t\t\n\t\taddButton.setFont(buttonFont);\n\t\tupdateButton.setFont(buttonFont);\n\t\tdeleteButton.setFont(buttonFont);\n\t\t\n\t\taddButton.setBackground(Color.lightGray);\n\t\tupdateButton.setBackground(Color.lightGray);\n\t\tdeleteButton.setBackground(Color.lightGray);\n\t\t\n\t\taddButton.setPreferredSize(buttonSize);\n\t\tupdateButton.setPreferredSize(buttonSize);\n\t\tdeleteButton.setPreferredSize(buttonSize);\n\t\t\n\t\tjtablePanel.setPreferredSize(new Dimension(1260, 500));\n\t\tjtablePanel.setBorder(formBorder);\n\t\ttopPanel.setLayout(new FlowLayout(1, 0, 30));\n\t\ttopPanel.setPreferredSize(new Dimension(1260, 100));\n\t\ttopPanel.setOpaque(false);\n\t\tpanel.setPreferredSize(new Dimension(1280, 520));\n\t\tpanel.setOpaque(false);\n\t\tbottomPanel.setLayout(new FlowLayout(1, 0, 10));\n\t\tbottomPanel.setPreferredSize(new Dimension(1260, 80));\n\t\tbottomPanel.setOpaque(false);\n\t\tqueryInvoiceFormPanel.setBackground(Color.WHITE);\n\t}", "public void initSearchWidget(){\n\n searchview.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n\n //Closes the keyboard once query is submitted\n searchview.clearFocus();\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n\n //New arraylist for filtered products\n List<product> filteredList = new ArrayList<>();\n\n //Iterating over the array with products and adding every product that matches\n //the query to the new filtered list\n for (product product : listOfProducts){\n if (product.getProductName().toLowerCase().contains(newText.toLowerCase())){\n filteredList.add(product);\n }\n }\n\n //Hides the product list and display \"not found\" message when can't find match\n if (filteredList.size()<1){\n recyclerView.setVisibility(View.GONE);\n noResults.setVisibility(View.VISIBLE);\n }else {\n recyclerView.setVisibility(View.VISIBLE);\n noResults.setVisibility(View.GONE);\n }\n\n //Sets new adapter with filtered products to the recycler view\n productAdapter = new Adapter(MainActivity.this,filteredList);\n recyclerView.setAdapter(productAdapter);\n\n return true;\n }\n });\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n searchLabel = new javax.swing.JLabel();\n searchButton = new javax.swing.JButton();\n\n setLayout(new java.awt.GridBagLayout());\n\n searchLabel.setText(\"This is the Test Panel\");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;\n add(searchLabel, gridBagConstraints);\n\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"nyagua/Bundle\"); // NOI18N\n searchButton.setText(bundle.getString(\"Search\")); // NOI18N\n searchButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n searchButtonMouseClicked(evt);\n }\n });\n searchButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n searchButtonActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;\n gridBagConstraints.insets = new java.awt.Insets(6, 18, 5, 20);\n add(searchButton, gridBagConstraints);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextFieldSearchWord = new javax.swing.JTextField();\n TextPrompt tsearch7 = new TextPrompt(\"Word tor search for\", this.jTextFieldSearchWord);\n jButtonSearch = new javax.swing.JButton();\n jLayeredPaneResultsChooser = new javax.swing.JLayeredPane();\n jCheckBoxLastIndex = new javax.swing.JCheckBox();\n jCheckBoxContains = new javax.swing.JCheckBox();\n jCheckBoxAllIndeces = new javax.swing.JCheckBox();\n jCheckBoxFirstIndex = new javax.swing.JCheckBox();\n jCheckBoxOccurrences = new javax.swing.JCheckBox();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextAreaResult = new javax.swing.JTextArea();\n\n setMaximumSize(new java.awt.Dimension(491, 267));\n setMinimumSize(new java.awt.Dimension(491, 267));\n setPreferredSize(new java.awt.Dimension(491, 267));\n\n jTextFieldSearchWord.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jTextFieldSearchWordMouseReleased(evt);\n }\n });\n jTextFieldSearchWord.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n jTextFieldSearchWordKeyReleased(evt);\n }\n });\n\n jButtonSearch.setMnemonic('r');\n jButtonSearch.setText(\"Search\");\n jButtonSearch.setToolTipText(\"\");\n jButtonSearch.setEnabled(false);\n jButtonSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSearchActionPerformed(evt);\n }\n });\n\n jLayeredPaneResultsChooser.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Results to show\"));\n\n jCheckBoxLastIndex.setMnemonic('L');\n jCheckBoxLastIndex.setText(\"Last Index\");\n jCheckBoxLastIndex.setName(\"getLastIndex\"); // NOI18N\n\n jCheckBoxContains.setMnemonic('C');\n jCheckBoxContains.setSelected(true);\n jCheckBoxContains.setText(\"Contains\");\n jCheckBoxContains.setName(\"contains\"); // NOI18N\n\n jCheckBoxAllIndeces.setMnemonic('A');\n jCheckBoxAllIndeces.setText(\"All Indeces\");\n jCheckBoxAllIndeces.setName(\"getAllIndices\"); // NOI18N\n\n jCheckBoxFirstIndex.setMnemonic('F');\n jCheckBoxFirstIndex.setText(\"First Index\");\n jCheckBoxFirstIndex.setName(\"getFirstIndex\"); // NOI18N\n\n jCheckBoxOccurrences.setMnemonic('O');\n jCheckBoxOccurrences.setText(\"Occurrences\");\n jCheckBoxOccurrences.setName(\"countOccurrences\"); // NOI18N\n\n jLayeredPaneResultsChooser.setLayer(jCheckBoxLastIndex, javax.swing.JLayeredPane.DEFAULT_LAYER);\n jLayeredPaneResultsChooser.setLayer(jCheckBoxContains, javax.swing.JLayeredPane.DEFAULT_LAYER);\n jLayeredPaneResultsChooser.setLayer(jCheckBoxAllIndeces, javax.swing.JLayeredPane.DEFAULT_LAYER);\n jLayeredPaneResultsChooser.setLayer(jCheckBoxFirstIndex, javax.swing.JLayeredPane.DEFAULT_LAYER);\n jLayeredPaneResultsChooser.setLayer(jCheckBoxOccurrences, javax.swing.JLayeredPane.DEFAULT_LAYER);\n\n javax.swing.GroupLayout jLayeredPaneResultsChooserLayout = new javax.swing.GroupLayout(jLayeredPaneResultsChooser);\n jLayeredPaneResultsChooser.setLayout(jLayeredPaneResultsChooserLayout);\n jLayeredPaneResultsChooserLayout.setHorizontalGroup(\n jLayeredPaneResultsChooserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jLayeredPaneResultsChooserLayout.createSequentialGroup()\n .addComponent(jCheckBoxContains)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBoxOccurrences)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBoxFirstIndex)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jCheckBoxLastIndex)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jCheckBoxAllIndeces)\n .addContainerGap(72, Short.MAX_VALUE))\n );\n jLayeredPaneResultsChooserLayout.setVerticalGroup(\n jLayeredPaneResultsChooserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jLayeredPaneResultsChooserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCheckBoxOccurrences)\n .addComponent(jCheckBoxFirstIndex)\n .addComponent(jCheckBoxContains))\n .addGroup(jLayeredPaneResultsChooserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCheckBoxLastIndex)\n .addComponent(jCheckBoxAllIndeces))\n );\n\n jTextAreaResult.setColumns(20);\n jTextAreaResult.setRows(5);\n jTextAreaResult.setDisabledTextColor(new java.awt.Color(0, 0, 0));\n jTextAreaResult.setEnabled(false);\n jScrollPane1.setViewportView(jTextAreaResult);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLayeredPaneResultsChooser)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTextFieldSearchWord)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButtonSearch))\n .addComponent(jScrollPane1))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButtonSearch, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jTextFieldSearchWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLayeredPaneResultsChooser, 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, 197, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "public void initialiseSearchView() {\n text.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n // do nothing\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (count > 0) {\n clearButton.setVisibility(View.VISIBLE);\n } else {\n clearButton.setVisibility(View.GONE);\n }\n searchHandler.apply(s.toString());\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n // do nothing\n }\n });\n text.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if (actionId == EditorInfo.IME_ACTION_SEARCH) {\n //Still perform a search operation, then hide keyboard & search bar\n searchHandler.apply(v.getText().toString());\n hideSearchBar();\n return true;\n }\n return false;\n }\n });\n\n clearButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n text.setText(\"\");\n }\n });\n\n closeButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n hideSearchBar();\n }\n });\n\n clearButton.setVisibility(View.GONE);\n hideSearchBar();\n }", "public void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == searchbtn) {\n\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\t\t\tswitch (state) {\n\t\t\tcase 0:\n\t\t\t\tremove(resultlistScroll);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tremove(moviedisplay);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tremove(persondisplay);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tremove(companydisplay);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tremove(randompanel);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmodel.clear();\n\t\t\tresultlist = new JList(model);\n\t\t\tresultlistScroll = new JScrollPane(resultlist);\n\t\t\tresultlistScroll.setPreferredSize(new Dimension(560, 370));\n\t\t\td = resultlistScroll.getPreferredSize();\n\t\t\tresultlistScroll.setBounds(insets.left + 50, insets.top + 75,\n\t\t\t\t\td.width, d.height);\n\t\t\tadd(resultlistScroll);\n\t\t\tsetPreferredSize(new Dimension(650, 490));\n\t\t\trepaint();\n\t\t\trevalidate();\n\t\t\tswitch (getState()) {\n\t\t\tcase 1: {\n\t\t\t\tmovielist = databasemanager\n\t\t\t\t\t\t.SimpleMovieSearch(getSearchCommand());\n\t\t\t\tpersonlist = new LinkedList();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 2: {\n\t\t\t\tpersonlist = databasemanager\n\t\t\t\t\t\t.SimplePersonSearch(getSearchCommand());\n\t\t\t\tmovielist = new LinkedList();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 3: {\n\t\t\t\tmovielist = databasemanager\n\t\t\t\t\t\t.SimpleMovieSearch(getSearchCommand());\n\t\t\t\tpersonlist = databasemanager\n\t\t\t\t\t\t.SimplePersonSearch(getSearchCommand());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < movielist.size(); i++) {\n\t\t\t\tMovie movie = (Movie) movielist.get(i);\n\t\t\t\tmodel.add(i, movie.getName());\n\t\t\t}\n\t\t\tfor (int i = 0; i < personlist.size(); i++) {\n\t\t\t\tPerson person = (Person) personlist.get(i);\n\t\t\t\tmodel.add(movielist.size() + i, person.getName());\n\t\t\t}\n\t\t\t// add result scrollpane to panel\n\t\t\tstate = 0;\n\t\t\tupdateListener();\n\t\t\tsetCursor(null);\n\t\t}\n\t}", "public SearchBar(JTextField textFieldSearch, JButton buttonSearch) {\n getPanel().setLayout(new MigLayout(\"insets 5 0 5 0\")); // top left bottom right\n\n /* logo */\n String logoImageName = \"logo.png\";\n\n JLabel labelLogo = new JLabel();\n ImageIcon logo = new ImageIcon(InPath.getResourceDirectory(logoImageName));\n labelLogo.setIcon(new ImageIcon(logo.getImage().getScaledInstance(250, 125, Image.SCALE_DEFAULT)));\n labelLogo.setAlignmentX(Component.CENTER_ALIGNMENT);\n getPanel().add(labelLogo, \"span, align 50%\");\n\n /* search bar */\n textFieldSearch.setForeground(Color.GRAY);\n textFieldSearch.setHorizontalAlignment(JTextField.CENTER);\n inFont.setBaseFont(textFieldSearch);\n getPanel().add(textFieldSearch, \"push, grow\");\n\n /* search button */\n String searchImageName = \"search.png\";\n try {\n File file = new File(InPath.getResourceDirectory(searchImageName));\n BufferedImage searchIcon = ImageIO.read(file);\n buttonSearch.setIcon(new ImageIcon(searchIcon));\n buttonSearch.setMargin(new Insets(5,12,5,12));\n buttonSearch.setBackground(new Color(29, 116, 117));\n buttonSearch.setBorderPainted(false);\n getPanel().add(buttonSearch);\n } catch (IOException e) {\n System.out.println(\"failed to find \" + searchImageName);\n }\n }", "private void initComponents() {\n jScrollPane1 = new javax.swing.JScrollPane();\n xList1 = new com.rameses.rcp.control.XList();\n xActionBar1 = new com.rameses.rcp.control.XActionBar();\n formPanel1 = new com.rameses.rcp.util.FormPanel();\n xTextField1 = new com.rameses.rcp.control.XTextField();\n xComboBox4 = new com.rameses.rcp.control.XComboBox();\n xComboBox1 = new com.rameses.rcp.control.XComboBox();\n xComboBox2 = new com.rameses.rcp.control.XComboBox();\n xComboBox3 = new com.rameses.rcp.control.XComboBox();\n xLookupField1 = new com.rameses.rcp.control.XLookupField();\n\n setLayout(new java.awt.BorderLayout());\n\n setPreferredSize(new java.awt.Dimension(548, 368));\n xList1.setDynamic(true);\n xList1.setExpression(\"#{name}\");\n xList1.setItems(\"filterlist\");\n xList1.setName(\"selectedFilter\");\n jScrollPane1.setViewportView(xList1);\n\n add(jScrollPane1, java.awt.BorderLayout.NORTH);\n\n xActionBar1.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 0, 5, 0));\n xActionBar1.setDepends(new String[] {\"selectedFilter\"});\n xActionBar1.setName(\"formActions\");\n xActionBar1.setUseToolBar(false);\n add(xActionBar1, java.awt.BorderLayout.SOUTH);\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder1 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder1.setTitle(\"Filter Information\");\n formPanel1.setBorder(xTitledBorder1);\n xTextField1.setCaption(\"Name\");\n xTextField1.setCaptionWidth(100);\n xTextField1.setName(\"filter.name\");\n xTextField1.setPreferredSize(new java.awt.Dimension(0, 19));\n xTextField1.setRequired(true);\n xTextField1.setTextCase(com.rameses.rcp.constant.TextCase.NONE);\n formPanel1.add(xTextField1);\n\n xComboBox4.setCaption(\"State\");\n xComboBox4.setCaptionWidth(100);\n xComboBox4.setDynamic(true);\n xComboBox4.setItems(\"statelist\");\n xComboBox4.setName(\"filter.info.docstate\");\n xComboBox4.setPreferredSize(new java.awt.Dimension(0, 22));\n formPanel1.add(xComboBox4);\n\n xComboBox1.setCaption(\"Barangay\");\n xComboBox1.setCaptionWidth(100);\n xComboBox1.setDynamic(true);\n xComboBox1.setExpression(\"#{name}\");\n xComboBox1.setItems(\"barangaylist\");\n xComboBox1.setName(\"filter.info.barangay\");\n xComboBox1.setPreferredSize(new java.awt.Dimension(0, 22));\n formPanel1.add(xComboBox1);\n\n xComboBox2.setCaption(\"Classification\");\n xComboBox2.setCaptionWidth(100);\n xComboBox2.setDynamic(true);\n xComboBox2.setExpression(\"#{classname}\");\n xComboBox2.setItems(\"classificationlist\");\n xComboBox2.setName(\"filter.info.classification\");\n xComboBox2.setPreferredSize(new java.awt.Dimension(0, 22));\n formPanel1.add(xComboBox2);\n\n xComboBox3.setCaption(\"Property Type\");\n xComboBox3.setCaptionWidth(100);\n xComboBox3.setDynamic(true);\n xComboBox3.setItems(\"rputypelist\");\n xComboBox3.setName(\"filter.info.rputype\");\n xComboBox3.setPreferredSize(new java.awt.Dimension(0, 22));\n formPanel1.add(xComboBox3);\n\n xLookupField1.setCaption(\"Owner\");\n xLookupField1.setCaptionWidth(100);\n xLookupField1.setExpression(\"#{entityname}\");\n xLookupField1.setHandler(\"lookupOwner\");\n xLookupField1.setName(\"filter.info.owner\");\n xLookupField1.setPreferredSize(new java.awt.Dimension(0, 19));\n formPanel1.add(xLookupField1);\n\n add(formPanel1, java.awt.BorderLayout.CENTER);\n\n }", "protected void createParameterPanel() {\n \n Collection_Button = new KButtonPanel(0, 0, 0, 0, 1, \n KButtonPanel.HORIZONTAL_RIGHT);\n Collection_Button.addSingleButton(\"...\", \n KeyEvent.VK_C, true, true, \"CollectionButton\", this,\n \"Click this button to select the collection file.\"); \n \n SourceDirectory_Button = new KButtonPanel(0, 0, 0, 0, 1,\n KButtonPanel.HORIZONTAL_RIGHT);\n SourceDirectory_Button.addSingleButton(\"...\",\n KeyEvent.VK_R, true, true, \"SourceDirectoryButton\", this,\n \"Click this button to select the Reuters-21578 file directory.\");\n \n IncludeSubdirectories_CheckBox = new KCheckBox(\n \"Include Subdirectories\", false, true, \n \"IncludeSubdirectories\", this, KeyEvent.VK_I, \n \"If this box is checked, files will be search in subdirectories \"\n + \"of Reuters-21578 directory.\");\n\n if (CastParameter != null) {\n Collection_Text = new KTextField(CastParameter\n .getCollectionFileName(), 30);\n SourceDirectory_Text = new KTextField(CastParameter\n .getSourceDirectory(), 30);\n FileNameFilter_Text = new KTextField(CastParameter\n .getFileNameFilter(), 30);\n TopicOfCollection_Text = new KTextField(CastParameter\n .getTopicOfCollection(), 30);\n if (CastParameter.includeSubdirectories()) {\n IncludeSubdirectories_CheckBox.setSelected(true);\n }\n else {\n IncludeSubdirectories_CheckBox.setSelected(false);\n }\n }\n else {\n Collection_Text = new KTextField(DiasdemProject.getProperty(\n \"DEFAULT_COLLECTION_FILE\"), 30);\n SourceDirectory_Text = new KTextField(DiasdemProject.getProperty(\n \"DEFAULT_REUTERS_21578_FILE_DIRECTORY\"), 30);\n FileNameFilter_Text = new KTextField(\".sgm\", 30);\n TopicOfCollection_Text = new KTextField(DiasdemProject.getProperty(\n \"DEFAULT_REUTERS_21578_COLLECTION_TOPIC\"), 30);\n }\n Collection_Text.setCaretAtEnding();\n SourceDirectory_Text.setCaretAtEnding();\n FileNameFilter_Text.setCaretAtEnding();\n TopicOfCollection_Text.setCaretAtEnding();\n \n Parameter_Panel = new KGridBagPanel(0, 0, 0, 0);\n Parameter_Panel.startFocusForwarding(Collection_Text);\n \n Parameter_Panel.addLabel(\"Collection File:\", 0, 0, KeyEvent.VK_C,\n Collection_Button.getDefaultButton(), true,\n \"Task input: This collection file contains references \" +\n \"to all DIAsDEM documents.\");\n Parameter_Panel.addBlankColumn(1, 0, 12);\n Parameter_Panel.addComponent(Collection_Text, 2, 0);\n Parameter_Panel.addBlankColumn(3, 0, 12);\n Parameter_Panel.addKButtonPanel(Collection_Button, 4, 0);\n Parameter_Panel.addBlankRow(0, 1, 11, this.getPreferredSizeX());\n Parameter_Panel.addLabel(\"Reuters-21578 Directory:\", 0, 2, KeyEvent.VK_R,\n SourceDirectory_Button.getDefaultButton(), true,\n \"Task input: This directory must contain \" +\n \"original Reuters-21578 SGML files to be imported.\");\n Parameter_Panel.addComponent(SourceDirectory_Text, 2, 2);\n Parameter_Panel.addKButtonPanel(SourceDirectory_Button, 4, 2);\n Parameter_Panel.addBlankRow(0, 3, 11);\n Parameter_Panel.addComponent( IncludeSubdirectories_CheckBox, 2, 4,\n new Insets(0, 0, 0, 0), 3, 1);\n Parameter_Panel.addBlankRow(0, 5, 11);\n Parameter_Panel.addLabel(\"File Name Extension:\", 0, 6, KeyEvent.VK_N,\n FileNameFilter_Text, true,\n \"Task input: Reuters-21578 files to be imported \" +\n \"must have this file name extension.\");\n Parameter_Panel.addComponent( FileNameFilter_Text, 2, 6,\n new Insets(0, 0, 0, 0), 3, 1);\n Parameter_Panel.addBlankRow(0, 7, 11);\n Parameter_Panel.addLabel(\"Topic of Collection:\", 0, 8, KeyEvent.VK_T,\n TopicOfCollection_Text, true,\n \"Task input: Reuters-21578 news to be imported \" +\n \"must have this topic (e.g., earn).\");\n Parameter_Panel.addComponent( TopicOfCollection_Text, 2, 8,\n new Insets(0, 0, 0, 0), 3, 1);\n \n this.removeAll();\n this.validate();\n this.addNorth(Parameter_Panel);\n this.validate();\n this.setComponentStatus();\n \n }", "public SearchDataView(JFrame parent) {\n \tthis.parentObject = parent;\n \taction = new SearchDataAction(this);\n initComponents();\n prepareComponents();\n }", "public SOASearchPage() {\r\n\t\tsuper();\r\n\t}", "public void createPartControl(Composite parent) {\n\t\t//Sets the layout\n\t\tGridLayout layout = new GridLayout(2, false);\n\t\tparent.setLayout(layout);\n\t\t\n\t\t//Creates the search field\n\t\tLabel search_label = new Label(parent, SWT.NONE);\n\t\tsearch_label.setText(\"Search: \");\n\t\tfinal Text search_text = new Text(parent, SWT.BORDER | SWT.SEARCH);\n\t\tsearch_text.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));\n\t\t\n\t\tcreateViewer(parent);\n\n\t\t//Sets the viewer sorter\n\t\tcomparator= new ConcernReCSViewerComparator();\n\t\tviewer.setComparator(comparator);\n\t\t\n\t\t//Supports the case-sensitive search\n\t\tsearch_text.addKeyListener(new KeyAdapter() \n\t\t{\n\t\t\tpublic void keyReleased(KeyEvent event) \n\t\t\t{\n\t\t\t\tfilter.setSearchText(search_text.getText());\n\t\t\t\tviewer.refresh();\n\t\t\t}\n\t\t});\n\n\t\t// Create the help context id for the viewer's control\n\t\tPlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), \"ufmg.crcs.viewer\");\n\t\tmakeActions();\n\t\thookContextMenu();\n\t\thookDoubleClickAction();\n\t\tcontributeToActionBars();\n\t}", "private void createActionListener() {\n this.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n SearchBox source = (SearchBox) e.getSource();\n searchLinker.doSearch(source.getText());\n }\n });\n }", "private void createSearchViewModel() {\n SearchChampionViewModelFactory searchChampionViewModelFactory =\n new SearchChampionViewModelFactory(Injection.provideChampionsRepository(this));\n\n // Create ViewModel\n searchChampionViewModel = ViewModelProviders\n .of(this, searchChampionViewModelFactory)\n .get(SearchChampionViewModel.class);\n }", "public RepositoryPanel() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n sp_searchPolicies = new javax.swing.ButtonGroup();\n sp_relatedQueriesPanel = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n sp_RelatedQueriesList = new javax.swing.JList();\n jPanel1 = new javax.swing.JPanel();\n sp_searchInput = new javax.swing.JTextField();\n sp_opaki = new javax.swing.JRadioButton();\n sp_vector = new javax.swing.JRadioButton();\n sp_searchButton = new javax.swing.JButton();\n sp_searchEntriesWrapper = new javax.swing.JScrollPane();\n sp_searchEntries = new javax.swing.JPanel();\n sp_searchPolicyLabel = new javax.swing.JLabel();\n\n setMaximumSize(new java.awt.Dimension(895, 32767));\n\n sp_relatedQueriesPanel.setMinimumSize(new java.awt.Dimension(383, 226));\n\n jLabel1.setFont(new java.awt.Font(\"SansSerif\", 0, 16)); // NOI18N\n jLabel1.setText(\"Related Queries\");\n\n sp_RelatedQueriesList.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n sp_RelatedQueriesList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n sp_RelatedQueriesList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n onRelatedQueryClicked(evt);\n }\n });\n jScrollPane1.setViewportView(sp_RelatedQueriesList);\n\n javax.swing.GroupLayout sp_relatedQueriesPanelLayout = new javax.swing.GroupLayout(sp_relatedQueriesPanel);\n sp_relatedQueriesPanel.setLayout(sp_relatedQueriesPanelLayout);\n sp_relatedQueriesPanelLayout.setHorizontalGroup(\n sp_relatedQueriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(sp_relatedQueriesPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(sp_relatedQueriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 363, Short.MAX_VALUE)\n .addGroup(sp_relatedQueriesPanelLayout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 352, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n sp_relatedQueriesPanelLayout.setVerticalGroup(\n sp_relatedQueriesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(sp_relatedQueriesPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n sp_searchInput.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sp_sp_searchInputActionPerformed(evt);\n }\n });\n\n sp_searchPolicies.add(sp_opaki);\n sp_opaki.setFont(new java.awt.Font(\"SansSerif\", 0, 11)); // NOI18N\n sp_opaki.setText(\"Okapi BM25\");\n sp_opaki.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n onopakiPolicySelected(evt);\n }\n });\n\n sp_searchPolicies.add(sp_vector);\n sp_vector.setFont(new java.awt.Font(\"SansSerif\", 0, 11)); // NOI18N\n sp_vector.setSelected(true);\n sp_vector.setText(\"Vector Space Model\");\n sp_vector.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n onVectorSpacePolicySelected(evt);\n }\n });\n\n sp_searchButton.setFont(new java.awt.Font(\"SansSerif\", 0, 14)); // NOI18N\n sp_searchButton.setText(\"Search\");\n sp_searchButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n onSearchButtonClicked(evt);\n }\n });\n\n sp_searchEntriesWrapper.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\n sp_searchEntries.setLayout(new javax.swing.BoxLayout(sp_searchEntries, javax.swing.BoxLayout.Y_AXIS));\n sp_searchEntriesWrapper.setViewportView(sp_searchEntries);\n\n sp_searchPolicyLabel.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n sp_searchPolicyLabel.setText(\"Search policy\");\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(sp_searchEntriesWrapper)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(sp_searchInput)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(sp_searchButton, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(sp_searchPolicyLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(sp_vector)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(sp_opaki)\n .addGap(0, 214, 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(sp_searchInput, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(sp_searchButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(sp_searchEntriesWrapper, javax.swing.GroupLayout.PREFERRED_SIZE, 533, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(sp_searchPolicyLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(sp_vector)\n .addComponent(sp_opaki))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(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 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(sp_relatedQueriesPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(12, 12, 12))\n );\n layout.setVerticalGroup(\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 .addGroup(layout.createSequentialGroup()\n .addGap(55, 55, 55)\n .addComponent(sp_relatedQueriesPanel, 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 }", "public SearchOptionSplitPane()\n\t{\n\t\tsuper(JSplitPane.HORIZONTAL_SPLIT, new SearchPanel(), null);\n\t\tthis.setBounds(0, 20, 1264, 662);\n\t\tthis.setDividerLocation(600);\n\t\t\n\t\tfinal SearchTable table;\n\t\tif(this.getLeftComponent() instanceof SearchPanel)\n\t\t{\n\t\t\ttable = ((SearchPanel) this.getLeftComponent()).getSearchTable();\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttable = new SearchTable(new SearchModel(new ArrayList<SearchEntry>()));\n\t\t}\n\t\t\n\t\ttable.getSelectionModel().addListSelectionListener(new ListSelectionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent e)\n\t\t\t{\n\t\t\t\tint selectedRow = table.getSelectedRow();\n\t\t\t\tif(selectedRow < 0 || table.getSelectedRowCount() > 1)\n\t\t\t\t{\n\t\t\t\t\tsetLoadedOptionPanel(null);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsetLoadedOptionPanel(table.getModel().getTableEntries().get(selectedRow).getOptionPanel());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void $$$setupUI$$$() {\n SalonReservationForm = new JPanel();\n SalonReservationForm.setLayout(new GridLayoutManager(3, 4, new Insets(10, 10, 10, 10), -1, -1));\n SearchField = new JTextField();\n SalonReservationForm.add(SearchField, new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n SalonReservationForm.add(scrollPane1, new GridConstraints(1, 0, 1, 4, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n SalonsTable = new JTable();\n scrollPane1.setViewportView(SalonsTable);\n editReservationButton = new JButton();\n editReservationButton.setText(\"Edit Reservation\");\n SalonReservationForm.add(editReservationButton, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n newReservationButton = new JButton();\n newReservationButton.setText(\"New Reservation\");\n SalonReservationForm.add(newReservationButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n searchButton = new JButton();\n searchButton.setText(\"Search\");\n SalonReservationForm.add(searchButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n deleteReservationButton = new JButton();\n deleteReservationButton.setText(\"Delete Reservation\");\n SalonReservationForm.add(deleteReservationButton, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n exitButton = new JButton();\n exitButton.setText(\"Exit\");\n SalonReservationForm.add(exitButton, new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void findPopMenuItemActionPerformed(java.awt.event.ActionEvent evt) {\n if (sdd == null) {\n sdd = new SearchDialog(this);\n }\n sdd.setVisible(true);\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }" ]
[ "0.7886193", "0.7565485", "0.74780667", "0.73310477", "0.7189956", "0.7180336", "0.7105846", "0.70466346", "0.69570756", "0.69367564", "0.6929401", "0.69114083", "0.6905108", "0.6831499", "0.6822327", "0.6756293", "0.67464715", "0.6708115", "0.6678307", "0.6656286", "0.6638924", "0.658733", "0.65642685", "0.6550743", "0.6548229", "0.65160656", "0.651225", "0.6463502", "0.6451689", "0.6439405", "0.64263535", "0.63636297", "0.63274336", "0.632536", "0.6315525", "0.6313845", "0.6296707", "0.6278469", "0.6245978", "0.624416", "0.62426937", "0.6236035", "0.623574", "0.622665", "0.62174696", "0.62120795", "0.620971", "0.62021285", "0.62020755", "0.6199534", "0.61963195", "0.6196259", "0.61930734", "0.6188958", "0.6181825", "0.6175428", "0.6134147", "0.6126864", "0.61056674", "0.6105111", "0.6099492", "0.608522", "0.60699964", "0.60394365", "0.60235083", "0.6012241", "0.59786296", "0.5967982", "0.59658283", "0.595649", "0.5955679", "0.59514534", "0.59509695", "0.59389216", "0.59379804", "0.59363526", "0.59342754", "0.592523", "0.5920752", "0.5915022", "0.5910124", "0.5895987", "0.58909285", "0.58815366", "0.586773", "0.58643466", "0.5864245", "0.58488774", "0.58415794", "0.5837447", "0.58373904", "0.58370626", "0.5829908", "0.5827997", "0.58228225", "0.58170074", "0.5807186", "0.5806093", "0.58021826", "0.5800606" ]
0.69609153
8
Creates a panel with encoding selector
private void createEncodingPanel(final Composite fpcomp, final Vector<String> encodeType) { // // Create panel // Composite encodingPanel = new Composite(fpcomp, SWT.NONE); encodingPanel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.horizontalSpacing = 5; layout.verticalSpacing = 0; layout.marginWidth = 0; layout.marginHeight = 0; encodingPanel.setLayout(layout); // // Create label // new Label(encodingPanel, SWT.NONE).setText(Messages.HexEditorControl_30); // // Create combo // encodingCombo = getEncodingCombo(encodingPanel, encodeType); // // Add selection listener to the combo box // encodingCombo.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { encodingChanged(); } // widgetSelected() }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Panel createButtonPanel() {\n Panel panel = new Panel();\n panel.setLayout(new PaletteLayout(2, new Point(2,2), false));\n return panel;\n }", "public SelectionPanel(){\n\t\tthis.setHbarPolicy(ScrollBarPolicy.ALWAYS);\n\t\tthis.setVbarPolicy(ScrollBarPolicy.NEVER);\n\t\tsetButton();\n\t\tthis.setContent(container);\n\t\tthis.setPrefHeight(65);\n\t\tthis.setPrefWidth(700);\n\t\tcontainer.setVisible(false);\n\t}", "private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }", "private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }", "private void buildColorSelector(JPanel panel) {\n colorChooserButton = new JLabel();\n colorChooserButton.setPreferredSize(new Dimension(16, 16));\n colorChooserButton.setVerticalAlignment(JLabel.CENTER);\n colorChooserButton.setBackground(Color.WHITE);\n colorChooserButton.setOpaque(true);\n colorChooserButton.setBorder(BorderFactory.createLineBorder(Color.black));\n colorChooserButton.addMouseListener(ApplicationFactory.INSTANCE\n .getNewColorChooserListener(this));\n panel.add(colorChooserButton, \"wrap\");\n }", "private JPanel createTradeInPanel(Player p){\n\t\t\n\t\tJPanel tradeInPanel = new JPanel();\t\t\t\t// panel for trading in cards\n\t\tthis.add(tradeInPanel);\t\t\t\t\t\t\n\t\ttradeInPanel.add( labels[ 8 ] );\n\t\t\t\n\t\tJCheckBox cardBoxes;\n\t\tfinal JCheckBox[] boxes = new JCheckBox[MainPlayScreen.this.game.getCurrentPlayer().cards.size()];\n\t\t\n\t\tfinal ArrayList<Card> playerCard = MainPlayScreen.this.game.getCurrentPlayer().cards;\n\t\tthis.cardBoxes = new JCheckBox[playerCard.size()];\n\t\t\n\t\tfor (int i = 0; i < playerCard.size(); i++){\n\t\t\tboxes[i] = new JCheckBox(MainPlayScreen.this.game.getCurrentPlayer().cards.get(i).getCountry() + \"--\" + MainPlayScreen.this.game.getCurrentPlayer().cards.get(i).getDesign().toString());\t\t//Sets up the check boxes to select cards\n\t\t\ttradeInPanel.add(boxes[i]);\n\t\t} // end of for loops\t\t\n\t\ttradeInPanel.add(button);\n\t\t\n\t\ttradeInPanel.setVisible(false);\t\t\n\t\treturn tradeInPanel;\n\t\n\t}", "public SelectPanel() {\n initComponents();\n \n buttonSelection.add(jRadioButtonEverything);\n buttonSelection.add(jRadioButtonLinesCurves);\n buttonSelection.add(jRadioButtonControlPoints);\n buttonSelection.add(jRadioButtonAllItem);\n jRadioButtonControlPoints.setSelected(true);\n \n buttonLayer.add(jRadioButtonCurrentLayer);\n buttonLayer.add(jRadioButtonAllVisibleLayers);\n jRadioButtonCurrentLayer.setSelected(true);\n }", "private FactoryViewPanel buildBasicPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n JComponent pathComponent = addField(panel, myDataSourceModel.getPath());\r\n if (pathComponent instanceof JTextComponent)\r\n {\r\n ((JTextComponent)pathComponent).setEditable(false);\r\n }\r\n addField(panel, myDataSourceModel.getSourceName());\r\n return panel;\r\n }", "private void addButtonsToPanel() {\n\t\tselectionPanel.add(rock, BorderLayout.WEST);\n\t\tselectionPanel.add(paper, BorderLayout.CENTER);\n\t\tselectionPanel.add(scissors, BorderLayout.EAST);\n\n\t\t// Adds a border with given text\n\t\tselectionPanel.setBorder(BorderFactory\n\t\t\t\t.createTitledBorder(\"Choose wisely. . .\"));\n\t}", "private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}", "public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }", "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "public Component getPanelControl() {\n\t\tTableSorter sorterOperaciones = new TableSorter(modeloOperaciones);\n\t\tJTable tablaOperaciones = new JTable(sorterOperaciones);\n\t\tsorterOperaciones.setTableHeader(tablaOperaciones.getTableHeader());\n\t\tJScrollPane panelScrollDerecha = new JScrollPane(tablaOperaciones);\n\t\tpanelScrollDerecha.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelDerecha = new FakeInternalFrame(\"Log de Operaciones\", panelScrollDerecha);\n\n\t\tTableSorter sorterPrecios = new TableSorter(modeloPrecios);\n\t\tJTable tablaPrecios = new JTable(sorterPrecios);\n\t\tsorterPrecios.setTableHeader(tablaPrecios.getTableHeader());\n\t\ttablaPrecios.getColumn(tablaPrecios.getColumnName(1)).setCellRenderer(modeloPrecios.getRenderer());\n\n\t\tJScrollPane panelScrollIzqAbajo = new JScrollPane(tablaPrecios);\n\t\tpanelScrollIzqAbajo.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelIzqAbajo = new FakeInternalFrame(\"Precios en bolsa\", panelScrollIzqAbajo);\n\n\t\t//panelSecundario = new JSplitPane(JSplitPane.VERTICAL_SPLIT, panelIzqAbajo, panelIzqArriba);\n\t\tpanelPrincipal = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelIzqAbajo, panelDerecha);\n\n\t\tpanelPrincipal.setDividerLocation(300);\n\t\t//panelSecundario.setDividerLocation(300);\n\n\t\tpanelIzqAbajo.setPreferredSize(new Dimension(250, 300));\n\t\tpanelDerecha.setPreferredSize(new Dimension(550, 600));\n\n\t\treturn panelPrincipal;\n\t}", "private void buildComboPanel(){\n //Create the combo panel\n comboPanel = new JPanel();\n \n //Combo box\n laneType = new JComboBox(lanes);\n \n //Allow the user to type input into combo field\n laneType.setEditable(true);\n \n comboLabel = new JLabel(\"Lane: \");\n \n //Add the components to the panel\n comboPanel.add(comboLabel);\n comboPanel.add(laneType);\n }", "private void setUpPanel() {\n\n this.add(nameLabel);\n this.add(showMetadataButton);\n this.add(compressFilesButton);\n this.add(decompressFilesButton);\n this.add(compressionResultLabel);\n this.add(messageShorteningButton);\n this.add(messageShorteningResultLabel);\n }", "private void buildAnalyzePanel(){\n //Create the buttonPanel\n analyzePanel = new JPanel();\n\n //Create the button\n analyzeButton = new JButton(\"Analyze\");\n\n // Add an action listener to the button\n analyzeButton.addActionListener(new ButtonListener());\n\n //Add the button to the panel\n analyzePanel.add(analyzeButton);\n }", "final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }", "@Override\n public void setupPanel()\n {\n\n }", "private JPanel createPanelKeywordt() {\n\n JPanel panel2 = new JPanel(new BorderLayout());\n panel2.setBorder(PADDING_BORDER);\n\n JPanel panelButton = new JPanel(new FlowLayout(FlowLayout.CENTER));\n panelButton.add(createButtonAddKeyword());\n\n panel2.add(createScrollPaneKeyWords(), BorderLayout.NORTH);\n panel2.add(panelButton, BorderLayout.CENTER);\n panel2.add(createConfirmButtonsPanel(), BorderLayout.SOUTH);\n return panel2;\n }", "private static void assembleAddPanel(){\n addPanel.add(addPlayerNameLabel);\n addPanel.add(newPlayerNameTextBox);\n addPlayerButton.addStyleName(\"add-button\");\n newPlayerNameTextBox.addStyleName(\"player-name-textbox\");\n addPlayerButton.addStyleName(\"btn btn-default\");\n resetRosterButton.addStyleName(\"btn btn-default\");\n addPlayerButton.setHTML(\"<span class=\\\"glyphicon glyphicon-plus\\\" aria-hidden=\\\"true\\\"></span>Add Player\");\n resetRosterButton.setHTML(\"<span class=\\\"glyphicon glyphicon-repeat\\\" aria-hidden=\\\"true\\\"></span>Reset All\");\n }", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}", "private org.gwtbootstrap3.client.ui.Panel get_f_Panel16() {\n return build_f_Panel16();\n }", "public EditorPanel() {\n encodingModel = new DefaultComboBoxModel(); \n for (String charSet : Charset.availableCharsets().keySet()) {\n encodingModel.addElement(charSet);\n }\n initComponents();\n }", "private JPanel addPannelName(){\n\t\tJPanel panNom = new JPanel();\n\t\tpanNom.setPreferredSize(new Dimension(175, 75));\n\t\tnameT = new JTextField();\n\t\tnameT.setPreferredSize(new Dimension(100, 25));\n\t\tpanNom.setBorder(BorderFactory.createTitledBorder(\"Channel name\"));\n\t\tname = new JLabel(\"Put a name :\");\n\t\tpanNom.add(name);\n\t\tpanNom.add(nameT);\n\t\treturn panNom;\n\t}", "private JPanel createMusicPanel() {\n\t\tJPanel musicPanel = new JPanel();\n\t\tmusicPanel.setLayout(new BorderLayout());\n\t\tmusicPanel.setBorder(new EmptyBorder(10, 10, 10, 10));\n\n\t\tJPanel musicTitlePanel = new JPanel();\n\t\tmusicTitlePanel.setLayout(new BorderLayout());\n\t\tJLabel music = new JLabel(\"Music\");\n\t\tmusicTitlePanel.add(music, BorderLayout.WEST);\n\t\tmusicComboBox = new JComboBox(musicCBContent);\n\t\tmusicComboBox.setName(\"musicComboBox\");\n\t\tmusicTitlePanel.add(musicComboBox, BorderLayout.EAST);\n\t\tmusicPanel.add(musicTitlePanel, BorderLayout.NORTH);\n\n\t\tmusicContents = new JPanel();\n\t\tmusicContents.setLayout(new FlowLayout());\n\t\tmusicPanel.add(createJScrollPane(musicContents), BorderLayout.CENTER);\n\n\t\treturn musicPanel;\n\t}", "private void buildPanel()\n\t{\n\t\tvoterIDMessage = new JLabel(\"Please Enter Your Voter ID.\");\n\t\tbutton1 = new JButton(\"Cancel\");\n\t\tbutton1.addActionListener(new ButtonListener());\n\t\tbutton2 = new JButton(\"OK\");\n\t\tbutton2.addActionListener(new ButtonListener());\n\t\tidText = new JTextField(10);\n\t\tpanel1 = new JPanel();\n\t\tpanel2 = new JPanel();\n\t\tpanel3 = new JPanel();\n\t\tpanel1.add(voterIDMessage);\n\t\tpanel2.add(idText);\n\t\tpanel3.add(button1);\n\t\tpanel3.add(button2);\n\t}", "private JPanel getResultSelectionPanel() {\n\t\tif (resultSelectionPanel == null) {\n\t\t\tjLabel1 = new JLabel();\n\t\t\tjLabel1.setBounds(new java.awt.Rectangle(5, 9, 132, 24));\n\t\t\tjLabel1.setText(PluginServices.getText(this, \"Cobertura_de_salida\")\n\t\t\t\t\t+ \":\");\n\t\t\tresultSelectionPanel = new JPanel();\n\t\t\tresultSelectionPanel.setLayout(null);\n\t\t\tresultSelectionPanel.setBounds(new java.awt.Rectangle(0, 291, 468,\n\t\t\t\t\t41));\n\t\t\tresultSelectionPanel\n\t\t\t\t\t.setBorder(javax.swing.BorderFactory\n\t\t\t\t\t\t\t.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));\n\t\t\tresultSelectionPanel.add(getFileNameResultTextField(), null);\n\t\t\tresultSelectionPanel.add(getOpenFileButton(), null);\n\t\t\tresultSelectionPanel.add(jLabel1, null);\n\t\t}\n\t\treturn resultSelectionPanel;\n\t}", "public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}", "private JPanel getMethodSelectionPanel() {\n\t\tif (methodSelectionPanel == null) {\n\t\t\tmethodSelectionPanel = new JPanel();\n\t\t\tmethodSelectionPanel.setLayout(null);\n\t\t\tmethodSelectionPanel.setBounds(new java.awt.Rectangle(2, 127, 467,\n\t\t\t\t\t94));\n\t\t\tmethodSelectionPanel\n\t\t\t\t\t.setBorder(javax.swing.BorderFactory\n\t\t\t\t\t\t\t.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));\n\t\t\tmethodSelectionPanel.add(getDistanceBufferRadioButton(), null);\n\t\t\tmethodSelectionPanel.add(getBufferDistanceTextField(), null);\n\t\t\tmethodSelectionPanel.add(getAttributeBufferRadioButton(), null);\n\t\t\tmethodSelectionPanel.add(getLayerFieldsComboBox(), null);\n\t\t\tmethodSelectionPanel.add(getDissolveEntitiesJCheckBox(), null);\n\t\t\tmethodSelectionPanel.add(getEndCapCheckBox(), null);\n\t\t}\n\t\treturn methodSelectionPanel;\n\t}", "void addPanel() {\n \tPanel panel = new Panel();\r\n\r\n panel.setLayout(new GridLayout(4, 1));\r\n jSliderBrightness = makeTitledSilder(\"Helligkeit\", 0, 256, 128); // werte veraendert\r\n jSliderContrast = makeTitledSilder(\"Kontrast\", 0, 10, 5);\r\n jSliderSaturation = makeTitledSilder(\"Sättigung\", 0, 9, 4);\r\n jSliderHue = makeTitledSilder(\"Hue\", 0, 360, 0);\r\n //jSliderContrast = makeTitledSilder(\"Slider2-Wert\", 0, 100, 50);\r\n panel.add(jSliderBrightness);\r\n panel.add(jSliderContrast);\r\n panel.add(jSliderSaturation);\r\n panel.add(jSliderHue);\r\n \r\n add(panel);\r\n \r\n pack();\r\n }", "public void createComponents(JComponent panel) {\r\n\t\t// Array display\r\n\t\tpanel.setLayout(new FlowLayout());\r\n\t\tpanel1.setLayout(new BorderLayout());\r\n\t\tcanvas.addMouseListener(aml);\r\n\t\tcanvas.addMouseMotionListener(aml);\r\n\t\tpanel1.add(canvas);\r\n\t\tpanel1.add(instr, BorderLayout.NORTH);\r\n\t\t\r\n\t\tpanel.add(panel1);\r\n\r\n\t\t// Controls\r\n\t\tpanel2.setLayout(new GridLayout(5, 2));\t\r\n\t\t\r\n\t\tJButton createArrayButton = new JButton(\"Create Customized Array\");\r\n\t\tpanel2.add(createArrayButton);\r\n\t\tcreateArrayButton.addActionListener(new createArrayListener());\r\n\r\n\t\tJButton changeValueButton = new JButton(\"Change Element Value\");\r\n\t\tpanel2.add(changeValueButton);\r\n\t\tchangeValueButton.addActionListener(new changeValueListener());\r\n\r\n\t\tJButton accessButton = new JButton(\"Access Element\");\r\n\t\tpanel2.add(accessButton);\r\n\t\taccessButton.addActionListener(new accessListener());\r\n\t\t\r\n\t\tJButton findButton = new JButton(\"Search Element\");\r\n\t\tpanel2.add(findButton);\r\n\t\tfindButton.addActionListener(new findListener());\r\n\t\t\r\n\t\tJButton clearButton = new JButton(\"Clear Previous Content\");\r\n\t\tpanel2.add(clearButton);\r\n\t\tclearButton.addActionListener(new ClearListener());\t\r\n\t\t\r\n\t\tpanel.add(panel2);\t\r\n\t}", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}", "private JPanel createSelectDocTypePanel(){\n\t\tJPanel toReturn = new JPanel(new GridBagLayout());\n\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n\t\t\n\t\t//add document type JLabel\n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = 0;\n\t\ttoReturn.add(new JLabel(translator.getTranslation(Tags.SELECT_DOCUMENT_TYPE)) , gbc);\n\t\t\t\n\t\t//add comboBox\n\t\tgbc.gridx++;\n\t\tgbc.weightx = 1;\n\t\tgbc.anchor = GridBagConstraints.WEST;\n\t\tgbc.insets.left = 2;\n\t\tgbc.fill = GridBagConstraints.HORIZONTAL;\n\t\ttoReturn.add(combBoxDocumentTypes, gbc);\n\t\t\n\t\t//action for add button\n\t\tAction addDocTypeAction = new AbstractAction() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString docType = JOptionPane.showInputDialog(null, (Object)new JLabel(translator.getTranslation(Tags.INSERT_DOC_TYPE_LABEL)), \"\", \n\t\t\t\t\t\t JOptionPane.PLAIN_MESSAGE);\n\t\t\t\tif(docType !=null && !docType.isEmpty()){\n\t\t\t\t\tcombBoxDocumentTypes.addItem(docType);\n\t\t\t\t\tcombBoxDocumentTypes.setSelectedItem(docType);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t\n\t\taddDocumentTypeButton = new ToolbarButton(addDocTypeAction, false);\n\t\t\n\t\t// Get the image for toolbar button\n\t\tURL imageToLoad = getClass().getClassLoader().getResource(Images.ADD_ICON);\n\t\tif (imageToLoad != null) {\n\t\t\taddDocumentTypeButton.setText(\"\");\n\t\t\taddDocumentTypeButton.setIcon(ro.sync.ui.Icons.getIcon(imageToLoad.toString()));\n\t\t}\n\t\t\n\t\t//add the addButton\n\t\tgbc.gridx++;\n\t\tgbc.weightx = 0;\n\t\tgbc.insets.left = 0;\n\t\ttoReturn.add(addDocumentTypeButton,gbc);\n\t\t\n\t\t\n\t\t\n\t\t//action for remove button\n\t\t\tAction removeAction = new AbstractAction() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tcombBoxDocumentTypes.removeItem(combBoxDocumentTypes.getSelectedItem());\n\t\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tremoveDocumentTypeButton = new ToolbarButton(removeAction, false);\n\t\t\t\n\t\t\t// Get the image for toolbar button\n\t\t\timageToLoad = getClass().getClassLoader().getResource(Images.REMOVE_ICON);\n\t\t\tif (imageToLoad != null) {\n\t\t\t\tremoveDocumentTypeButton.setText(\"\");\n\t\t\t\tremoveDocumentTypeButton.setIcon(ro.sync.ui.Icons.getIcon(imageToLoad.toString()));\n\t\t\t}\n\t\t\t\n\t\t\t//add the addButton\n\t\t\tgbc.gridx++;\n\t\t\ttoReturn.add(removeDocumentTypeButton,gbc);\n\t\t\n\t\t\n\t\treturn toReturn;\n\t\t\n\t}", "private JPanel createButtonPanel(){\n JPanel buttonPanel = new JPanel();\n buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));\n buttonPanel.setBorder(BorderFactory.createEmptyBorder(VERTICAL_BUFFER,HORIZONTAL_BUFFER,0,HORIZONTAL_BUFFER));\n\n export = new JButton(\"Export\");\n cancel = new JButton(\"Cancel\");\n\n buttonPanel.add(Box.createHorizontalGlue());\n buttonPanel.add(export);\n buttonPanel.add(Box.createHorizontalStrut(HORIZONTAL_BUFFER));\n buttonPanel.add(cancel);\n buttonPanel.add(Box.createHorizontalGlue());\n\n return buttonPanel;\n }", "private JPanel createAttackPanel(Player p){\n\t\tJPanel attackPanel = new JPanel();\n\t\tthis.add(attackPanel);\n\t\tattackPanel.setSize(500,250);\n\t\tfor(Country country : game.getCurrentPlayer().getOwnedCountries() ){\t\t// get current players countries\n\t\t\tattackFromComboBox.addItem( country.toString() );\t\n\t\t\n\t\t}\n\t\t\n\t\tattackPanel.add( labels[ 0 ] );\t\t\t\n\t\tattackPanel.add( attackFromComboBox );\n\t\tattackPanel.add(labels[ 1 ]);\t\t\t\t\t// panel for attack Command\n\t\tattackPanel.add( attackToComboBox );\t\n\t\tattackPanel.add( labels[ 2 ] );\n\t\tattackPanel.add( numberOfArmies[4] );\t\t//attack dice\n\t\tattackPanel.add(defenderDice);\n\t\tattackPanel.add( numberOfArmies[5]);\t\t// defend dice\n\t\tattackPanel.add( execute[2] );\t//Populate with attacker's Countries.\n\t\tattackFromComboBox.removeAllItems();\n\t\tfor (Country c : this.game.getCurrentPlayer().getOwnedCountries()){\n\t\t\tattackFromComboBox.addItem(c.getName());\n\t\t}\n\t\tattackPanel.setVisible(false);\n\t\treturn attackPanel;\n\t}", "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "public MetadataPanel(DAOSearchableElementsList sel, String rootElement, JPanel panel)\n {\n fieldMap = new HashMap<String, Component>();\n initialiseUI();\n }", "@AutoGenerated\n\tprivate Panel buildPnToolbar() {\n\t\tpnToolbar = new Panel();\n\t\tpnToolbar.setImmediate(false);\n\t\tpnToolbar.setWidth(\"100.0%\");\n\t\tpnToolbar.setHeight(\"100.0%\");\n\t\t\n\t\t// hlToolbar\n\t\thlToolbar = buildHlToolbar();\n\t\tpnToolbar.setContent(hlToolbar);\n\t\t\n\t\treturn pnToolbar;\n\t}", "private void createInnerNodePanel() {\n\t\tcreateLabel(getHierarchy().getName(), null, null);\n\t\taddGeneralInnerImages();\n\t}", "public Panel() {\n }", "private JComponent getButtonPanel() {\n JPanel buttonPanel = new JPanel();\n // Open\n OpenAction openAction = new OpenAction();\n buttonPanel.add(new JButton(openAction));\n // Save\n SaveAction saveAction = new SaveAction();\n buttonPanel.add(new JButton(saveAction));\n // Save as\n SaveAsAction saveAsAction = new SaveAsAction(saveAction);\n buttonPanel.add(new JButton(saveAsAction));\n return buttonPanel;\n }", "private void generateButtonPanel() {\n buttonsPanel = new JPanel();\n playPauseButton = addButton(\"Play/Pause\");\n restartButton = addButton(\"Restart\");\n speedUpButton = addButton(\"Speed Up\");\n slowDownButton = addButton(\"Slow Down\");\n loopbackButton = addButton(\"Loopback\");\n keyCommandsButton = addButton(\"Key Commands\");\n textViewButton = addButton(\"Animation Text\");\n\n addShapeButton = addButton(\"Add Shape\");\n removeShapeButton = addButton(\"Remove Shape\");\n addKeyframeButton = addButton(\"Add Keyframe\");\n removeKeyframeButton = addButton(\"Remove Keyframe\");\n editKeyframeButton = addButton(\"Edit Keyframe\");\n clearAnimationButton = addButton(\"Clear Animation\");\n clearShapeButton = addButton(\"Clear Shape\");\n buttonsPanel.setLayout(new FlowLayout());\n\n mainPanel.add(buttonsPanel);\n }", "private void setButtonPanelComponents(){\n\t\tJPanel buttonPane = new JPanel();\n\t\tbuttonPane.setPreferredSize(new Dimension(-1,32));\n\t\tbuttonPane.setBackground(Constant.DIALOG_BOX_COLOR_BG);\n\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tgetContentPane().add(buttonPane, BorderLayout.SOUTH);\n\t\t\n\t\tsaveButton = Utilities.getInstance().initializeNewButton(\n\t\t\t-1, -1, -1, -1,\n\t\t\tImages.getInstance().saveBtnDialogImg,\n\t\t\tImages.getInstance().saveBtnDialogImgHover\n\t\t);\n\t\tbuttonPane.add(saveButton);\n\t\n\n\t\n\t}", "public void addPanelControls() {\n\t\tlist_sort = new JComboBox<>(new String[] { \"MSSV\", \"HoTen\", \"NTNS\" });\r\n\t\tbtn_sapxep = new JButton(\"Sap xep\");\r\n\t\tbtn_them = new JButton(\"Them\");\r\n\t\tbtn_xoa = new JButton(\"Xoa\");\r\n\t\tbtn_save = new JButton(\"Save\");\r\n\t\tbtn_load = new JButton(\"Load\");\r\n\r\n\t\tJPanel mControlPanel = new JPanel(new GridLayout(5, 1));\r\n\t\tmControlPanel.add(btn_them);\r\n\t\tmControlPanel.add(btn_xoa);\r\n\t\tJPanel sapxepPanel = new JPanel();\r\n\t\tsapxepPanel.add(list_sort);\r\n\t\tsapxepPanel.add(btn_sapxep);\r\n\t\tmControlPanel.add(sapxepPanel);\r\n\t\tmControlPanel.add(btn_save);\r\n\t\tmControlPanel.add(btn_load);\r\n\r\n\t\tmControlPanel.setPreferredSize(new Dimension(380, 200));\r\n\t\tmControlPanel.setBorder(new TitledBorder(\"Controls\"));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.weightx = 0.5;\r\n\t\tc.gridx = 1;\r\n\t\tc.gridy = 0;\r\n\t\tpanel.add(mControlPanel,c);\r\n\t}", "private void initRawPanel() {\n rawPanel.setLayout(new BorderLayout());\n\n // Textarea\n textPane.setEditable(false);\n\n document = textPane.getStyledDocument();\n addStylesToDocument();\n\n try {\n document.insertString(0, \"\", document.getStyle(\"regular\"));\n } catch (BadLocationException ex) {\n LOGGER.warn(\"Problem setting style\", ex);\n\n }\n\n OverlayPanel testPanel = new OverlayPanel(textPane, Localization.lang(\"paste text here\"));\n\n testPanel.setPreferredSize(new Dimension(450, 255));\n testPanel.setMaximumSize(new Dimension(450, Integer.MAX_VALUE));\n\n // Setup fields (required to be done before setting up popup menu)\n fieldList = new JList<>(getAllFields());\n fieldList.setCellRenderer(new SimpleCellRenderer(fieldList.getFont()));\n ListSelectionModel listSelectionModel = fieldList.getSelectionModel();\n listSelectionModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n listSelectionModel.addListSelectionListener(new FieldListSelectionHandler());\n fieldList.addMouseListener(new FieldListMouseListener());\n\n // After the call to getAllFields\n initPopupMenuAndToolbar();\n\n //Add listener to components that can bring up popup menus.\n MouseListener popupListener = new PopupListener(inputMenu);\n textPane.addMouseListener(popupListener);\n testPanel.addMouseListener(popupListener);\n\n JPanel leftPanel = new JPanel(new BorderLayout());\n\n leftPanel.add(toolBar, BorderLayout.NORTH);\n leftPanel.add(testPanel, BorderLayout.CENTER);\n\n JPanel inputPanel = setUpFieldListPanel();\n\n // parse with FreeCite button\n parseWithFreeCiteButton.addActionListener(event -> {\n if (parseWithFreeCiteAndAddEntries()) {\n okPressed = false; // we do not want to have the super method to handle our entries, we do it on our own\n dispose();\n }\n });\n\n rawPanel.add(leftPanel, BorderLayout.CENTER);\n rawPanel.add(inputPanel, BorderLayout.EAST);\n\n JLabel desc = new JLabel(\"<html><h3>\" + Localization.lang(\"Plain text import\") + \"</h3><p>\"\n + Localization.lang(\"This is a simple copy and paste dialog. First load or paste some text into \"\n + \"the text input area.<br>After that, you can mark text and assign it to a BibTeX field.\")\n + \"</p></html>\");\n desc.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n\n rawPanel.add(desc, BorderLayout.SOUTH);\n }", "private JPanel createFilmPanel() {\n\t\tJPanel filmPanel = new JPanel();\n\t\tfilmPanel.setLayout(new BorderLayout());\n\t\tfilmPanel.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\t\n\t\tJPanel filmTitlePanel = new JPanel();\n\t\tfilmTitlePanel.setLayout(new BorderLayout());\n\t\tJLabel films = new JLabel(\"Films\");\n\t\tfilmTitlePanel.add(films, BorderLayout.WEST);\n\t\tfilmComboBox = new JComboBox(filmCBContent);\n\t\tfilmComboBox.setName(\"filmComboBox\");\n\t\tfilmTitlePanel.add(filmComboBox, BorderLayout.EAST);\n\t\tfilmPanel.add(filmTitlePanel, BorderLayout.NORTH);\n\n\t\tfilmContents = new JPanel();\n\t\tfilmContents.setLayout(new FlowLayout());\n\t\tfilmPanel.add(filmContents, BorderLayout.CENTER);\n\t\tfilmPanel.add(createJScrollPane(filmContents), BorderLayout.CENTER);\n\n\t\treturn filmPanel;\n\t}", "public JComponent createContentPanel() {\n\t\tFormLayout layout = new FormLayout(\"p,3dlu,p,3dlu\", // cols //$NON-NLS-1$\n\t\t\t\t\"p,10dlu,p,10dlu\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\n\t\tCellConstraints cc = new CellConstraints();\n\t\tJEditorPane l=new JEditorPane(\"text/html\",Messages.getString(\"LicenseDialog.Email\"));\n\t\tl.setEditable(false);\n\t\tl.setOpaque(false);\n\t\tl.setFont(l.getFont().deriveFont(Font.PLAIN));\n\t\tJLabel emailLabel=new JLabel(Messages.getString(\"LicenseDialog.EmailLabel\")+\":\");\n\t\t//emailLabel.setFont(emailLabel.getFont().deriveFont(Font.PLAIN));\n\t\tbuilder.add(l,cc.xyw(1,1, 4));\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(emailLabel,email);\n\t\tbuilder.nextLine(2);\n\n\t\tJComponent result = builder.getPanel();\n\t\treturn result;\n\t}", "private JPanel makePanel(JFrame frame, String layout, String panelLabel,\r\n int x, int y, int width, int height) {\r\n //Create a panel\r\n JPanel panel = new JPanel();\r\n panel.setSize(width, height);\r\n frame.add(panel, layout);\r\n panel.setLayout(null);\r\n JLabel label = new JLabel(panelLabel);\r\n label.setBounds(x, y, width, height);\r\n label.setFont(new Font(\"Monaco\", Font.BOLD, 20));\r\n panel.add(label);\r\n return panel;\r\n }", "private ch.softenvironment.view.DataSelectorPanel getPnlDataSelector() {\n\tif (ivjPnlDataSelector == null) {\n\t\ttry {\n\t\t\tivjPnlDataSelector = new ch.softenvironment.view.DataSelectorPanel();\n\t\t\tivjPnlDataSelector.setName(\"PnlDataSelector\");\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjPnlDataSelector;\n}", "private void addClassification(JPanel innerPanel, Integer kv, final String sequence, final String panelname) throws Exception {\r\n try {\r\n ResourceBundle bundle = ResourceBundle.getBundle(Globals.RESOURCES, Globals.CURRENT_LOCALE, Globals.loader);\r\n\r\n DefaultMutableTreeNode hierarchy = new DefaultMutableTreeNode(\"root\");\r\n selected = null;\r\n String selectedPath = \"\";\r\n \r\n String link = selectedClassificationList.get(panelname+\"---\"+sequence);\r\n \r\n recursiveOefosTreeviewBuild(hierarchy, oefos.get(link), sequence, panelname);\r\n DefaultTreeModel model = new DefaultTreeModel(hierarchy);\r\n\r\n final JTree tree = new JTree(model);\r\n tree.setRootVisible(false);\r\n\r\n if (selected != null) {\r\n TreePath selpath = new TreePath(selected.getPath());\r\n tree.setSelectionPath(selpath);\r\n\r\n Object[] nodes = selpath.getPath();\r\n\r\n for (int i = 1; i < nodes.length; i++) {\r\n selectedPath += nodes[i].toString();\r\n selectedPath += (i != nodes.length - 1) ? \"/\" : \"\";\r\n }\r\n }\r\n\r\n tree.setName(\"MID_\" + Integer.toString(kv)+\"---\"+sequence);\r\n tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\r\n\r\n tree.addTreeSelectionListener(new TreeSelectionListener() {\r\n\r\n public void valueChanged(TreeSelectionEvent e) {\r\n try {\r\n setOEFOS(tree, sequence, panelname);\r\n } catch (Exception ex) {\r\n logger.error(ex.getMessage());\r\n }\r\n }\r\n });\r\n\r\n javax.swing.JScrollPane tree_scroller = new javax.swing.JScrollPane();\r\n tree_scroller.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n tree_scroller.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\r\n tree_scroller.setViewportView(tree);\r\n tree_scroller.setBorder(null);\r\n\r\n innerPanel.add(tree_scroller, \"wrap, width 100:800:800\");\r\n\r\n JPanel iPanel = new JPanel(new MigLayout());\r\n iPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), Utility.getBundleString(\"choose2\",bundle), TitledBorder.LEFT, TitledBorder.TOP));\r\n JLabel label = new JLabel();\r\n label.setName(\"classification_path\"+\"---\"+sequence);\r\n label.setText(selectedPath);\r\n iPanel.add(label, \"wrap, growx, height 30:30:30\");\r\n\r\n innerPanel.add(iPanel, \"wrap, width 100:800:800\");\r\n \r\n findLastClassification(panelname);\r\n \r\n } catch (Exception ex) {\r\n logger.error(ex.getMessage());\r\n throw new Exception(\"Exception in addClassification: \" + ex.getStackTrace() + \"\\n\");\r\n }\r\n }", "private JScrollPane createInferenceHistoryOptionsPanel() {\n\n\t\tJPanel filterpanel = new JPanel();\n\t\t// filterpanel.setBackground(Color.BLUE);\n\t\tfilterpanel.setLayout(new BoxLayout(filterpanel, BoxLayout.Y_AXIS));\n\t\tfilterpanel.setBorder(new EmptyBorder(3, 10, 3, 10));\n\n\t\tJPanel panel_axiomtypecheckboxes_plus_label = createLabelledGridLayoutPanel(\"Filter Axiomtypes\",\n\t\t\t\ttypecheckboxpanel);\n\t\t// JPanel panel_group_plus_label =\n\t\t// getLabelledGridLayoutPanel(\"Grouping\", combo_group);\n\t\t// JPanel panel_renderer_plus_label =\n\t\t// getLabelledGridLayoutPanel(\"Renderer\", combo_renderer);\n\n\t\taxiomtypelist.addListSelectionListener(e -> {\n //updateConsequenceTables();\n //updateView();\n EventLogging.saveEvent(System.currentTimeMillis(), getOWLWorkspace().getSelectedTab().getId(),\n \"list_axiomtypes_selection\", \"NA\", \"wii\");\n });\n\n\t\tJPanel panel_axiomprio_plus_label = createLabelledGridLayoutPanel(\"Priority Table\",\n\t\t\t\ttable_axiom_pattern_priority);\n\n\t\ttable_axiom_pattern_priority.addMouseListener(new LoggingMouseListener(table_axiom_pattern_priority,\n\t\t\t\t\"table_axiom_pattern_priority_click\", getOWLWorkspace()));\n\n\t\tJPanel gl = new JPanel(new GridLayout(1, 2));\n\t\tgl.add(bt_entity_filter);\n\t\tgl.add(bt_entity_filter_reset);\n\t\tgl.setPreferredSize(new Dimension(0, 25));\n\t\tJPanel panel_entityfilter_plus_label = createLabelledGridLayoutPanel(\"Entity Filter\", gl);\n\n\t\t// JPanel panel_tautology_select_plus_label =\n\t\t// createTautologyCheckboxPanel(cl);\n\n\t\t// panel_axiomtypecheckboxes_plus_label.setMaximumSize(new\n\t\t// Dimension(0,10));\n\t\t// filterpanel.add(getMainLabel(\"Options\"));\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 20)));\n\t\t// filterpanel.add(fontsize_panel);\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\t// filterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\n\t\tJPanel tautologypanel = createTautologyCheckboxPanel();\n\n\t\tfilterpanel.add(panel_axiomtypecheckboxes_plus_label);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(bt_axtypes_advanced);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\tfilterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(tautologypanel);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\t// filterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\t// filterpanel.add(panel_at_advanced_plus_label);\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\t// filterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\t// filterpanel.add(panel_renderer_plus_label);\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\tfilterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(panel_entityfilter_plus_label);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(entity_select_label);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\tfilterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(panel_axiomprio_plus_label);\n\t\t// filterpanel.add(panel_tautology_select_plus_label);\n\n\t\treturn new JScrollPane(filterpanel);\n\t}", "public void setupPanel() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new ModifiedFlowLayout(FlowLayout.LEFT));\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setOpaque(true);\n\t}", "private JPanel getPanel() {\n\t\tint width = resources.getSize().width / 5;\n\t\tint height = resources.getSize().height / 14;\n\n\t\tJLabel limit = createJLabelImg(\"textfield.png\", width - width / 15,\n\t\t\t\theight, 1f);\n\t\tint limitWidth = limit.getIcon().getIconWidth();\n\t\tint limitHeight = limit.getIcon().getIconHeight();\n\n\t\ton = createJLabelImg(\"toggle_on.png\", limitWidth, limitHeight, 1f)\n\t\t\t\t.getIcon();\n\t\toff = createJLabelImg(\"toggle_off.png\", limitWidth, limitHeight, 1f)\n\t\t\t\t.getIcon();\n\n\t\ttoggle = new JCheckBox();\n\t\ttoggle.setSelectedIcon(on);\n\t\ttoggle.setIcon(off);\n\t\ttoggle.setEnabled(true);\n\t\ttoggle.setSelected(value);\n\t\ttoggle.setCursor(new Cursor(Cursor.HAND_CURSOR));\n\t\ttoggle.setFocusable(false);\n\t\ttoggle.setBorder(null);\n\t\ttoggle.setOpaque(false);\n\n\t\tint indent = limitWidth / 25;\n\t\tint textWidthLimit = limitWidth - indent * 2 - on.getIconWidth();\n\t\tString fieldStr = Util.clipText(fieldName + \" \",\n\t\t\t\tresources.getFont(\"italic\", 15f), textWidthLimit);\n\t\tJLabel label = new JLabel(fieldStr);\n\t\tlabel.setFont(resources.getFont(\"italic\", 15f));\n\t\tlabel.setForeground(resources.getTextColor());\n\n\t\tJPanel toggleWrapper = new JPanel(new FlowLayout(FlowLayout.LEFT,\n\t\t\t\tindent, 0));\n\t\ttoggleWrapper.setOpaque(false);\n\t\ttoggleWrapper.setPreferredSize(new Dimension(limitWidth, limitHeight));\n\t\ttoggleWrapper.setMaximumSize(toggleWrapper.getPreferredSize());\n\t\ttoggleWrapper.add(toggle);\n\t\ttoggleWrapper.add(label);\n\n\t\tJPanel container = new JPanel(new FlowLayout(FlowLayout.LEFT, 0,\n\t\t\t\theight / 7));\n\t\tcontainer.setOpaque(false);\n\t\tcontainer.add(toggleWrapper);\n\t\tcontainer.setPreferredSize(new Dimension(width, container\n\t\t\t\t.getPreferredSize().height));\n\t\tcontainer.setMaximumSize(container.getPreferredSize());\n\n\t\treturn container;\n\t}", "public abstract void createContents(Panel mainPanel);", "private FactoryViewPanel buildAdvancedPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n if (myIsImport)\r\n {\r\n addField(panel, myDataSourceModel.getIncludeInTimeline());\r\n }\r\n JPanel refreshPanel = buildRefreshPanel();\r\n panel.addLabelComponent(ControllerFactory.createLabel(myDataSourceModel.getAutoRefresh(), refreshPanel.getComponent(0)),\r\n refreshPanel);\r\n addField(panel, myDataSourceModel.getPointType());\r\n addField(panel, myDataSourceModel.getFeatureAltitude());\r\n addField(panel, myDataSourceModel.getPolygonFill());\r\n addField(panel, myDataSourceModel.getScalingMethod());\r\n addField(panel, myDataSourceModel.getShowLabels());\r\n return panel;\r\n }", "public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\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 }", "private void createComponents(String label) {\n itsCombo = createComboBox();\n JScrollPane scroll = new JScrollPane(itsCombo);\n scroll.setPreferredSize(new Dimension(WIDTH, HEIGHT));\n\n LabeledComponent c = new LabeledComponent(\"Symbol\", itsCombo);\n itsComp = c;\n }", "private JPanel createFortifyPanel(Player p){\n\t\tthis.add( panels[2] );\n\t\tfortifyFrom.removeAllItems();\n\t\tfor (Country country : this.game.getCurrentPlayer().getOwnedCountries()){\n\t\t\t\n\t\t\tfortifyFrom.addItem(country.getName());\n\t\t}\n\t\tfortifyTo.removeAllItems();\n\t\tfor (Country country1 : this.game.getCurrentPlayer().getOwnedCountries()){\n\t\t\tfortifyTo.addItem(country1.getName());\n\t\t}\n\t\tthis.panels[2].add( labels[ 5 ]);\n\t\tthis.panels[2].add( fortifyFrom );\n\t\tthis.panels[2].add( labels[ 6 ]);\n\t\tthis.panels[2].add( numberOfArmies[2] );\t\t\t// panel for fortify command \n\t\tthis.panels[2].add( labels[ 7 ]);\n\t\tthis.panels[2].add( fortifyTo );\n\t\tthis.panels[2].add( execute[0] );\n\t\tpanels[2].setVisible( false );\n\t\treturn panels[2];\n\t}", "private JPanel getJPanel() {\n\tif (certInfoPane == null) {\n\t certInfoPane = new TemplateButtonPanel();\n\t certInfoPane.setPreferredSize(new Dimension(500, 300));\n\t certInfoPane.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\n\t \n\t // use SwingUtilities.invokeLater() to update the gui because\n\t // these may be originating from a different worker thread\n\t selection.addListSelectionListener(new ListSelectionListener() {\n\t\t public void valueChanged(ListSelectionEvent ev) {\n\t\t\tif (ev.getValueIsAdjusting()) return;\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t public void run() {\n\t\t\t\tupdateSelection();\n\t\t\t }\n\t\t\t});\t\t\t\n\t\t }\n\t });\n\t store.addListDataListener(new ListDataListener() {\n\t\tpublic void intervalAdded(ListDataEvent e) { }\n\t\tpublic void intervalRemoved(ListDataEvent e) { }\n\t\tpublic void contentsChanged(ListDataEvent e) {\n\t\t SwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t updateSelection(); // for buttons\n\t\t\t certInfoPane.refresh();\n\t\t\t}\n\t\t });\t\t\t\n\t\t}\n\t });\n\t}\n\treturn certInfoPane;\n }", "private JPanel buildNorthPanel() {\n\t\t\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel panel;\n\t\tint row, col;\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tpanel = new JPanel(layout);\n\t\trow = 0;\n\t\tcol = 0;\n\t\tJLabel headerLabel = new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_SAVE_NEW_CONFIGURATION));\n\t\theaderLabel.setFont(new Font(\"arial\", Font.PLAIN, 18));\n\t\tGUIUtils.add(panel, headerLabel, layout, constraints, row++, col, \n\t\t\t1, 1, 1, 1, GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH,\n\t\t\tGUIUtils.MED_LARGE_INSETS);\n\t\treturn panel;\n\t}", "public JavaPanel() {\n\t\tsuper();\n\t}", "private org.gwtbootstrap3.client.ui.Panel get_f_Panel48() {\n return build_f_Panel48();\n }", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "public JPanel menuPanel() {\n\t\tJPanel mpanel = new JPanel(null);\n\t\tmpanel.setBounds(0, 100, 700, 300);\n\t\tmpanel.setBackground(Color.PINK);\n\t\tFont lblfont = new Font(\"SansSerif\", Font.BOLD, 30);\n\t\t\n\t\tworkerBtn = new JButton(workerpic);\n\t\tvisitorBtn = new JButton(visitorpic);\n\t\tworkerBtn.addActionListener(this);\n\t\tvisitorBtn.addActionListener(this);\n\t\tvisitorBtn.setBounds(100, 50, 150, 200);\n\t\tworkerBtn.setBounds(450, 50, 150, 200);\n\t\t\n\t\tlblworker.setBounds(450, 0, 150, 50);\n\t\tlblvisitor.setBounds(100, 0, 150, 50);\n\t\tlblworker.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblvisitor.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblworker.setFont(lblfont);\n\t\tlblvisitor.setFont(lblfont);\n\t\tmpanel.add(lblworker);\n\t\tmpanel.add(lblvisitor);\n\t\tmpanel.add(visitorBtn);\n\t\tmpanel.add(workerBtn);\n\t\treturn mpanel;\n\t}", "private void makeButtonPanel()\n {\n \n this.buttonPanel.setLayout(new GridLayout(10, 2, 30, 10));\n \n \n this.buttonPanel.add(this.fLabel);\n this.fName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.fName);\n\n this.buttonPanel.add(this.lLabel);\n this.lName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.lName);\n\n this.buttonPanel.add(this.idLabel);\n this.iD.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.iD);\n\n this.buttonPanel.add(this.courseLabel);\n this.course.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.course);\n\n this.buttonPanel.add(this.instructorLabel);\n this.instructor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.instructor);\n\n this.buttonPanel.add(this.tutorLabel);\n this.tutor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.tutor);\n \n this.buttonPanel.add(this.commentsLable);\n this.comments.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.comments);\n //Removed for appointment tabel\n //this.buttonPanel.add(this.appointmentLable);\n //this.buttonPanel.add(this.appointment);\n this.buttonPanel.add(this.sessionLenLabel);\n this.sessionLength.setColumns(COL_WIDTH);\n this.sessionLength.setText(\"30\");\n this.buttonPanel.add(this.sessionLength);\n\n this.ADD_BUTTON.addActionListener(new AddButtonListener());\n //buttonPanel.add(ADD_BUTTON);\n \n \n this.addSessionPlaceHolder.add(this.buttonPanel);\n }", "public static JPanel createDemoPanel() {\r\n JFreeChart chart = createChart(createDataset());\r\n ChartPanel panel = new ChartPanel(chart);\r\n panel.setMouseWheelEnabled(true);\r\n return panel;\r\n }", "public ControlPanel() {\n\t\tpanelName = null;\n\t}", "private void createHeaderPanel()\n\t{\n\t\theaderPanel.setLayout (new GridLayout(2,1));\n\t\theaderPanel.add(textPanel);\n\t\theaderPanel.add(functionPanel);\n\t\t\t\t\t\n\t}", "private JPanel createContentPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 300));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"AttributesTitle\")));\n\n roomNameField = LabeledComponent\n .textField(localization.get(\"RoomNameLabel\"),\n new InfoPanelDocListener(this, new SetName()));\n roomNameField.addToPanel(panel);\n\n includeField = LabeledComponent\n .textField(localization.get(\"IncludeLabel\"),\n new InfoPanelDocListener(this, new SetInclude()));\n includeField.addToPanel(panel);\n\n inheritField = LabeledComponent\n .textField(localization.get(\"InheritLabel\"),\n new InfoPanelDocListener(this, new SetInherit()));\n inheritField.addToPanel(panel);\n\n buildStreetNameField(panel);\n\n buildAddEditStreetsButton(panel);\n\n buildColorSelector(panel);\n\n shortDescriptionField = LabeledComponent\n .textField(localization.get(\"ShortDescLabel\"),\n new InfoPanelDocListener(this, new SetShort()));\n panel.add(shortDescriptionField.getLabel());\n panel.add(shortDescriptionField.getComponent(), \"span, grow, wrap\");\n\n determinateField = LabeledComponent\n .textField(localization.get(\"DeterminateLabel\"),\n new InfoPanelDocListener(this, new SetDeterminate()));\n determinateField.addToPanel(panel);\n\n lightField = LabeledComponent\n .textField(localization.get(\"LightLabel\"),\n new InfoPanelDocListener(this, new SetLight()));\n lightField.addToPanel(panel);\n\n longDescriptionField = LabeledComponent\n .textArea(localization.get(\"LongDescLabel\"),\n new InfoPanelDocListener(this, new SetLong()));\n panel.add(longDescriptionField.getLabel(), \"wrap\");\n panel.add(longDescriptionField.getComponent(), \"span, grow\");\n\n return panel;\n }", "private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }", "PanelOptionsVisual(PanelConfigureProject panel) {\n this.panel = panel;\n\n preInitComponents();\n initComponents();\n postInitComponents();\n }", "private org.gwtbootstrap3.client.ui.Panel get_f_Panel28() {\n return build_f_Panel28();\n }", "private Component getPanelOpcionesInferior() {\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tlistaUsuarios = new JList(new DefaultListModel());\n//\t\tlistaUsuarios.setCellRenderer(modeloUsuarios.getListCellRenderer());\n\t\tJScrollPane panelScrollIzqArriba = new JScrollPane(listaUsuarios);\n\n\t\tpanelScrollIzqArriba.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tFakeInternalFrame panelIzqArriba = new FakeInternalFrame(\"Usuarios\", panelScrollIzqArriba);\n\n\t\tpanel.add(panelIzqArriba);\n\n\t\tpanelIzqArriba.setPreferredSize(new Dimension(250, 300));\n\t\tJButton botonIniciarParar = new JButton(\"Iniciar Simulacion\");\n\t\tbotonIniciarParar.addActionListener(\n\t\t\t\t\tnew ActionListener() {\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tJButton src = (JButton) e.getSource();\n\t\t\t\t\t\t\tiniciarPausar_actionPerformed(src);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\tbotonFinalizarSimulacion = new JButton(\"Finalizar Simulacion\");\n\t\tbotonFinalizarSimulacion.addActionListener(\n\t\t\t\t\tnew ActionListener() {\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\tbotonFinalizar_actionPerformed();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\tJPanel panelBotones = new JPanel();\n\t\tpanelBotones.add(botonIniciarParar);\n\t\tpanelBotones.add(botonFinalizarSimulacion);\n\t\tpanel.add(panelBotones, BorderLayout.SOUTH);\n\n\t\treturn panel;\n\t}", "public ColorPanel() {\r\n setLayout(null);\r\n\r\n chooser = new ColorChooserComboBox[8];\r\n chooserLabel = new JLabel[8];\r\n String[][] text = new String[][] {\r\n {\"Hintergrund\", \"Background\"},\r\n {\"Kante I\", \"Edge I\"},\r\n {\"Kante II\", \"Edge II\"},\r\n {\"Gewicht\", \"Weight\"},\r\n {\"Kantenspitze\", \"Edge Arrow\"},\r\n {\"Rand der Knoten\", \"Node Borders\"},\r\n {\"Knoten\", \"Node Background\"},\r\n {\"Knoten Kennzeichnung\", \"Node Tag\"}};\r\n\r\n for (int i = 0; i < 8; i++) {\r\n createChooser(i, text[i], 10 + 30 * i);\r\n }\r\n\r\n add(createResetButton());\r\n add(createApplyButton());\r\n add(createReturnButton());\r\n\r\n setColorSelection();\r\n this.changeLanguageSettings(mainclass.getLanguageSettings());\r\n }", "protected abstract BaseDualControlDataEditor<PK, DATA> instantiateEditorPanel () ;", "private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.add(insertionL);\r\n\t\tpanel.add(insertionPB);\r\n\t\t\r\n\t\tpanel.add(mergeL);\r\n\t\tpanel.add(mergePB);\r\n\t\t\r\n\t\tpanel.add(quickL);\r\n\t\tpanel.add(quickPB);\r\n\t\t\r\n\t\tpanel.add(radixL);\r\n\t\tpanel.add(radixPB);\r\n\t}", "public void createControl(Composite parent) {\r\n\t\tComposite container = new Composite(parent, SWT.NONE);\r\n\t\tsetControl(container);\r\n\t\tGroup group = new Group(container, SWT.NONE);\r\n\t\tgroup.setBounds(0, 281, 533, 60);\r\n\t\t\r\n\t\tLabel lblSelectWhetherYou = new Label(group, SWT.NONE);\r\n\t\tlblSelectWhetherYou.setBounds(10, 22, 374, 26);\r\n\t\tlblSelectWhetherYou.setText(\"\\u9009\\u62E9\\u662F\\u5426\\u8981\\u53D1\\u5E03\\u3001\\u68C0\\u7D22\\u6216\\u5220\\u9664\\u670D\\u52A1\\u5668\\u4E0A\\u7684\\u62A5\\u544A\\u3002\");\r\n\t\t\r\n\t\tlb_pr = new Label(container, SWT.NONE);\r\n\t\tlb_pr.setBounds(69, 79, 48, 48);\r\n\t\tlb_pr.setImage(SwtImageConverter.ConvertToSwtImage(ImageResolver.get_Resolver().ResolveImage(\"[IMAGE]Core#Images.Icons.ReportPublish.png\"),48,48));\r\n\t\t\r\n\t\trbtn_pr = new Button(container, SWT.RADIO);\r\n\t\trbtn_pr.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tgetNextPage();\r\n\t\t\t}\r\n\t\t});\r\n\t\trbtn_pr.setBounds(59, 133, 69, 16);\r\n\t\trbtn_pr.setText(\"\\u53D1\\u5E03\\u62A5\\u544A\");\r\n\t\trbtn_pr.setData(\"PublishedReportW2_Pub\");\r\n\t\t\r\n\t\tlb_rr = new Label(container, SWT.NONE);\r\n\t\tlb_rr.setBounds(185, 79, 48, 48);\r\n\t\tlb_rr.setImage(SwtImageConverter.ConvertToSwtImage(ImageResolver.get_Resolver().ResolveImage(\"[IMAGE]Core#Images.Icons.ReportRetrieve.png\"),48,48));\r\n\t\t\r\n\t\t\r\n\t\trbtn_rr = new Button(container, SWT.RADIO);\r\n\t\trbtn_rr.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tgetNextPage();\r\n\t\t\t}\r\n\t\t});\r\n\t\trbtn_rr.setBounds(175, 133, 69, 16);\r\n\t\trbtn_rr.setText(\"\\u68C0\\u7D22\\u62A5\\u544A\");//»ρΘ‘\\u68C0\\u7D22\\\r\n\t\trbtn_rr.setData(\"PublishedReportW2_Ret\");\r\n\t\t\r\n\t\tlb_dr = new Label(container, SWT.NONE);\r\n\t\tlb_dr.setBounds(297, 79, 48, 48);\r\n\t\tlb_dr.setImage(SwtImageConverter.ConvertToSwtImage(ImageResolver.get_Resolver().ResolveImage(\"[IMAGE]Core#Images.Icons.ReportDelete.png\"),48,48));\r\n\t\t\r\n\t\t\r\n\t\trbtn_dr = new Button(container, SWT.RADIO);\r\n\t\trbtn_dr.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tgetNextPage();\r\n\t\t\t}\r\n\t\t});\r\n\t\trbtn_dr.setBounds(287, 133, 69, 16);\r\n\t\trbtn_dr.setText(\"\\u5220\\u9664\\u62A5\\u544A\");\r\n\t\trbtn_dr.setData(\"PublishedReportW2_Del\");\r\n\t\t\r\n\t}", "private JPanel initBtnPanel() {\n\t\tconvBtn = new JButton();\n\t\tconvBtn.addActionListener(new ConversionBtnListener());\n\t\tconvBtn.setFont(new AppFont());\n\n\t\t// A button to switch the input and output scales\n\t\tswitchBtn = new JButton();\n\t\tswitchBtn.addActionListener(new SwitchListener());\n\t\tswitchBtn.setFont(new AppFont());\n\n\t\t// The panel that displays the buttons\n\t\tJPanel btnPanel = new JPanel();\n\t\tbtnPanel.setLayout(new FlowLayout());\n\t\tbtnPanel.add(convBtn);\n\t\tbtnPanel.add(switchBtn);\n\n\t\treturn btnPanel;\n\t}", "protected JComponent makeTextPanel(String text)\n\t{\n\t\tJPanel panel = new JPanel(false);\n\t\tpanel.setBackground(new Color(55, 55, 55));\n\t\tpanel.setLayout(null);\n\t\treturn panel;\n\t}", "public JPanel getJPanelDatosIdentificacion()\r\n {\r\n if (jPanelIdentificacion == null)\r\n { \r\n \tjPanelIdentificacion = new JPanel(new GridBagLayout());\r\n jPanelIdentificacion.setBorder(BorderFactory.createTitledBorder\r\n (null, I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.identity\"), TitledBorder.LEADING, TitledBorder.TOP, new Font(null, Font.BOLD, 12))); \r\n \t\r\n jLabelClave = new JLabel(\"\", JLabel.CENTER); \r\n jLabelClave.setText(UtilRegistroExp.getLabelConAsterisco(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.clave\"))); \r\n \r\n jLabelCodProv = new JLabel(\"\", JLabel.CENTER); \r\n jLabelCodProv.setText(UtilRegistroExp.getLabelConAsterisco(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.codprov\"))); \r\n \r\n jLabelCodMunic = new JLabel(\"\", JLabel.CENTER); \r\n jLabelCodMunic.setText(UtilRegistroExp.getLabelConAsterisco(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.codmunic\"))); \r\n\r\n jLabelEntSing = new JLabel(\"\", JLabel.CENTER);\r\n jLabelEntSing.setText(UtilRegistroExp.getLabelConAsterisco(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.entsing\")));\r\n \r\n jLabelNucleo = new JLabel(\"\", JLabel.CENTER);\r\n jLabelNucleo.setText(UtilRegistroExp.getLabelConAsterisco(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.nucleo\")));\r\n \r\n jLabelOrden = new JLabel(\"\", JLabel.CENTER);\r\n jLabelOrden.setText(UtilRegistroExp.getLabelConAsterisco(I18N.get(\"LocalGISEIEL\", \"localgiseiel.panels.label.orden\")));\r\n \r\n \r\n jPanelIdentificacion.add(jLabelCodProv, \r\n new GridBagConstraints(0, 0, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0)); \r\n \r\n jPanelIdentificacion.add(getJComboBoxProvincia(), \r\n new GridBagConstraints(1, 0, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(jLabelCodMunic, \r\n new GridBagConstraints(2, 0, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0)); \r\n \r\n jPanelIdentificacion.add(getJComboBoxMunicipio(), \r\n new GridBagConstraints(3, 0, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(jLabelEntSing, \r\n new GridBagConstraints(0, 1, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n \r\n jPanelIdentificacion.add(getJComboBoxEntidad(), \r\n new GridBagConstraints(1, 1, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(jLabelNucleo, \r\n new GridBagConstraints(2, 1, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n \r\n jPanelIdentificacion.add(getJComboBoxNucleo(), \r\n new GridBagConstraints(3, 1, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(jLabelClave,\r\n new GridBagConstraints(0, 2, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(getjTextFieldClave(), \r\n new GridBagConstraints(1, 2, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(jLabelOrden,\r\n new GridBagConstraints(2, 2, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n jPanelIdentificacion.add(getJTextFieldOrden(), \r\n new GridBagConstraints(3, 2, 1, 1, 0.1, 0.1,\r\n GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,\r\n new Insets(5, 5, 5, 5), 0, 0));\r\n \r\n for (int i=0; i < jPanelIdentificacion.getComponentCount(); i++){\r\n \tjPanelIdentificacion.getComponent(i).setEnabled(false);\r\n }\r\n \r\n \r\n }\r\n return jPanelIdentificacion;\r\n }", "private JPanel addPannelTopic(){\n\t\tJPanel panTopic = new JPanel();\n\t\tpanTopic.setPreferredSize(new Dimension(175, 75));\n\t\ttopicT = new JTextField();\n\t\ttopicT.setPreferredSize(new Dimension(100, 25));\n\t\tpanTopic.setBorder(BorderFactory.createTitledBorder(\"Topic\"));\n\t\ttopic = new JLabel(\"Put a topic :\");\n\t\tpanTopic.add(topic);\n\t\tpanTopic.add(topicT);\n\t\treturn panTopic;\n\t}", "public PreviewPanel() {\r\n\t\t\tsuper(new FlowLayout(FlowLayout.LEFT, 0, 0));\r\n\t\t\t\r\n\t\t\tJPanel p = new JPanel(new GridBagLayout());\t\t\t\r\n\t\t\tthis.add(p);\r\n\t\t\tp.setBorder(new EmptyBorder(10, 0, 0, 0));\r\n\t\t\tcolPanel.setPreferredSize(new Dimension(50, 10));\r\n\t\t\tcolPanel.setBorder(new EtchedBorder());\r\n\t\t\thexLabel.setBorder(new EmptyBorder(8, 0, 0, 0));\r\n\r\n\t\t\tGridBagConstraints gc = new GridBagConstraints();\r\n\t\t\tgc.insets = new Insets(0, 0, 0, 10);\r\n\t\t\tgc.fill = GridBagConstraints.BOTH;\r\n\t\t\tgc.anchor = GridBagConstraints.WEST;\r\n\t\t\tgc.gridx = 0;\r\n\t\t\tgc.gridy = 0;\r\n\r\n\t\t\tgc.gridheight = 2;\r\n\t\t\tp.add(colPanel, gc);\r\n\t\t\tgc.gridx++;\r\n\t\t\tgc.gridheight = 1;\r\n\t\t\tp.add(decLabel, gc);\r\n\t\t\tgc.gridx = 1;\r\n\t\t\tgc.gridy++;\r\n\t\t\tp.add(hexLabel, gc);\r\n\t\t\tgc.gridx++;\r\n\t\t}", "private JPanel addControl() {\n\n\t\t// uses grid layout\n\t\tcontrolPanel.setLayout(new GridLayout(2, 1));\n\n\t\t// use box layout\n\t\tbuttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));\n\t\t// add the answer buttons to the panel\n\t\tbuttonPanel.add(answer());\n\t\t// add the question text to the control panel\n\t\tcontrolPanel.add(question);\n\t\t// set alignment, color, font, opaque, border\n\t\tquestion.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tquestion.setForeground(new Color(86, 10, 0));\n\t\tquestion.setBackground(new Color(206, 213, 224));\n\t\tquestion.setFont(new Font(\"Serif\", Font.BOLD, 24));\n\t\tquestion.setOpaque(true);\n\t\tquestion.setBorder(question.getBorder());\n\t\t// add the button panel to the control panel\n\t\tcontrolPanel.add(buttonPanel);\n\t\t// return control panel\n\t\treturn controlPanel;\n\t}", "public static JPanel createLabelPanel(String text) {\n JPanel lbl_pnl = new JPanel();\n lbl_pnl.setOpaque(false);\n JLabel id_lbl = new JLabel(text);\n id_lbl.setFont(Constants.LINK_FONT_BOLD);\n lbl_pnl.add(id_lbl);\n return lbl_pnl;\n }", "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}", "private void constructAnimationPanel() {\n animationPanel = new EAPanel(model);\n animationPanel.setLayout(new FlowLayout());\n animationPanel.setPreferredSize(new Dimension(model.getWidth(), model.getHeight()));\n mainPanel.add(animationPanel);\n }", "private Widget buildElementWithVSACExpansionIdentifier() {\r\n VerticalPanel mainPanel = new VerticalPanel();\r\n mainPanel.getElement().setId(\"mainPanel_VerticalPanel\");\r\n mainPanel.setWidth(\"95%\");\r\n//\t\tmainPanel.add(buildDefaultExpIdentifierPanel());\r\n mainPanel.add(new SpacerWidget());\r\n mainPanel.add(new SpacerWidget());\r\n return mainPanel;\r\n }", "private void constructChartPanel() {\n chartPanel = new JPanel();\n chartPanel.setBorder(BorderFactory.createTitledBorder(\"Price Chart\"));\n chartPanel.setPreferredSize(relativeSize(0.4f, 0.35f));\n \n displayChartButton = new JButton(\"Click to Display Price Chart\");\n displayChartButton.setEnabled(false);\n displayChartButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JPanel cPanel = chart.getChartPanel();\n chartPanel.removeAll();\n chartPanel.add(cPanel);\n cPanel.setPreferredSize(relativeSize(0.4f, 0.35f));\n \n pack();\n repaint();\n }\n });\n \n chartPanel.add(displayChartButton);\n }", "public CreateNewEventJPanel() {\n }", "private void createOperationsPanel() {\n\t\toperationsPanel = new JPanel(new GridLayout(5, 1));\n\n\t\tspanningTreeButton = new JButton(\"Árvore de cobertura\");\n\t\tspanningTreeButton.addActionListener(new SpanningTreeHandler());\n\n\t\tblockingStatesButton = new JButton(\"Estados bloqueantes\");\n\t\tblockingStatesButton.addActionListener(new BlockingStatesHandler());\n\n\t\tnonLimitedStatesButton = new JButton(\"Estados não-limitados\");\n\t\tnonLimitedStatesButton.addActionListener(new NonLimitedStatesHandler());\n\n\t\tnetworkConservationButton = new JButton(\"Conservação da rede\");\n\t\tnetworkConservationButton.addActionListener(new NetworkConservationHandler());\n\n\t\treachabelStateButton = new JButton(\"Estado alcançável\");\n\t\treachabelStateButton.addActionListener(new ReachableStateHandler());\n\n\t\toperationsPanel.add(spanningTreeButton);\n\t\toperationsPanel.add(blockingStatesButton);\n\t\toperationsPanel.add(nonLimitedStatesButton);\n\t\toperationsPanel.add(networkConservationButton);\n\t\toperationsPanel.add(reachabelStateButton);\n\n\t\tthis.add(operationsPanel, BorderLayout.WEST);\n\t}", "private Component getPanelOpcionesSuperior() {\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tArrayList<String> ops = new ArrayList<String>();\n\t\tops.add(\" Numero de empresas\");\n\t\tops.add(\"Tiempo de fluctuacion\");\n\t\tops.add(\"Fichero de empresas\");\n\t\tops.add(\"Fichero de usuarios\");\n\t\tops.add(\"Tick\");\n\t\t//ops.add(\"Sesión continua\");\n\n\t\tArrayList<String> chooser = new ArrayList<String>();\n\t\tchooser.add(\"Fichero de empresas\");\n\t\tchooser.add(\"Fichero de usuarios\");\n\n\t\topciones = new PanelOpciones(ops, null, chooser);\n\t\t//opciones.setCheckBox(\"Sesión continua\");\n\n\t\tpanel.add(opciones, BorderLayout.NORTH);\n\t\tJPanel panelBlanco = new JPanel();\n\t\tpanelBlanco.setPreferredSize(new Dimension(350, 300));\n\t\tpanel.add(panelBlanco);\n\n\t\treturn panel;\n\t}", "@Override\r\n public void setup(Panel panel) {\n }", "public void selectPanel() {\n\t\tthis.displayNumberBlock.setBackground(dispSelected);\n\t}", "public SelectSheetLayerPrintPanel() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n \r\n\r\n\t}", "private void buildContentPane() {\n\t\t// The JPanel that will become the content pane\n\t\tJPanel cp = new JPanel();\n\t\tcp.setLayout(new BoxLayout(cp, BoxLayout.PAGE_AXIS));\n\n\t\tlanguagePanel = initLanguagePanel();\n\t\tcp.add(languagePanel);\n\n\t\tinputPanel = initInputPanel();\n\t\tcp.add(inputPanel);\n\n\t\tJPanel btnPanel = initBtnPanel();\n\t\tcp.add(btnPanel);\n\n\t\toutputPanel = initOutputPanel();\n\t\tcp.add(outputPanel);\n\n\t\tJPanel picturePanel = initPicturePanel();\n\t\tif(picturePanel == null) {\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_SMALL_HEIGHT);\n\t\t}\n\t\telse {\n\t\t\tcp.add(picturePanel);\n\t\t}\n\n\t\tLanguage selectedLang = languagePanel.getSelectedLanguage();\n\t\tsetLanguage(selectedLang);\n\n\t\tframe.setContentPane(cp);\n\t}", "private JPanel addPannelPassword(){\n\t\tJPanel panPass = new JPanel();\n\t\tpanPass.setPreferredSize(new Dimension(175, 75));\n\t\tpasswordT = new JTextField();\n\t\tpasswordT.setPreferredSize(new Dimension(100, 25));\n\t\tpanPass.setBorder(BorderFactory.createTitledBorder(\"Password\"));\n\t\tpassword = new JLabel(\"Put a password :\");\n\t\tpanPass.add(password);\n\t\tpanPass.add(passwordT);\n\t\treturn panPass;\n\t}", "private Panel createMessagePanel()\n {\n Panel messagePanel;\n Label product;\n Label version;\n Label copyright;\n\n product = new Label(\"File System Archiver\");\n version = new Label(\"Version \" + Constants.CLIENT_VERSION);\n copyright = new Label(\"Copyright (c) 2001\");\n\n messagePanel = new Panel();\n messagePanel.setLayout(new GridLayout(3, 0));\n\n messagePanel.add(product);\n messagePanel.add(version);\n messagePanel.add(copyright);\n\n messagePanel.setVisible(true);\n\n return messagePanel;\n }", "private void initPanels() {\r\n\t\r\n\tpanel = new JPanel();\r\n\tpanel.setBounds(0, 0, ScreenSize.WIDTH + 25, ScreenSize.HEIGHT + 50);\r\n\tpanel.setLayout(new BorderLayout());\r\n\tpanel.addComponentListener(this);\r\n\r\n\tbord = new BordPanel();\r\n\tbord.setBounds(0 ,0 ,ScreenSize.WIDTH, ScreenSize.HEIGHT);\r\n\tbord.setOpaque(true);\r\n\r\n\tlabel = new JLabel();\r\n\tlabel.setText(\"Text\");\r\n\r\n\tpanel.add(label, BorderLayout.SOUTH);\r\n\tpanel.add(bord, BorderLayout.CENTER);\r\n\t\r\n\tframe.add(panel);\r\n }" ]
[ "0.64959997", "0.64006597", "0.63945687", "0.6293423", "0.62253904", "0.6132283", "0.60576385", "0.59943616", "0.5953564", "0.59486914", "0.5945116", "0.59400004", "0.59126914", "0.5909682", "0.5909198", "0.59071535", "0.59024155", "0.58712006", "0.5862497", "0.5843783", "0.5841071", "0.5813549", "0.57935065", "0.57810444", "0.57521516", "0.5747266", "0.57428414", "0.5738984", "0.57344425", "0.57152575", "0.5713527", "0.57051736", "0.56747955", "0.5667454", "0.566541", "0.56636745", "0.5660379", "0.56591624", "0.56509674", "0.56507707", "0.56377107", "0.56326234", "0.5614658", "0.56133926", "0.56068826", "0.5606266", "0.55996066", "0.55918694", "0.5580765", "0.55783856", "0.55710894", "0.5570636", "0.55602276", "0.55461377", "0.55456895", "0.5540948", "0.5540079", "0.5535751", "0.55332315", "0.55330324", "0.553074", "0.553055", "0.5528662", "0.5518184", "0.55147195", "0.5493237", "0.5492613", "0.54898345", "0.54866034", "0.5486451", "0.5482527", "0.54804945", "0.5474937", "0.5474873", "0.5469271", "0.5467846", "0.54659486", "0.5458762", "0.54580194", "0.5456783", "0.5452198", "0.54479825", "0.5443933", "0.5436644", "0.5430174", "0.54251117", "0.54162693", "0.5415564", "0.54149085", "0.54136276", "0.5412581", "0.5410557", "0.5409437", "0.5409109", "0.5407029", "0.5406569", "0.5403965", "0.5403431", "0.5398434", "0.53980714" ]
0.71174437
0
Creates a data panel
private void createDataPanel(final Composite composite) { // // Create context (popup) menu // Menu menu = createPopupMenu(); // // Create data panel // Composite dataPanel = new Composite(composite, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.horizontalSpacing = 0; layout.verticalSpacing = 0; layout.marginWidth = 0; layout.marginHeight = 2; dataPanel.setLayout(layout); dataPanel.setLayoutData("data"); //$NON-NLS-1$ // // Create table // table = new HexTable(dataPanel, this, SWT.VIRTUAL | SWT.V_SCROLL | SWT.BORDER | SWT.SINGLE); table.getTable().setHeaderVisible(true); table.getTable().setLinesVisible(true); table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); table.setData(encodingTypes); table.setMenu(menu); // // Create table cursor // cursor = new TableCursor(table.getTable(), SWT.NONE); cursor.setMenu(menu); // // Create an editor to edit the cell when the user hits 0..9 or A..F key // while over a cell in the table // final ControlEditor editor = new ControlEditor(cursor); editor.grabHorizontal = true; editor.grabVertical = true; // // Add some cursor listeners // addCursorListeners(cursor, editor); // // Create table header // createTableHeader(table); table.initListeners(); table.updateColors(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JPanel createChartPanel(XYSeriesCollection li) {\n\n String chartTitle = \" Movement Chart\";\n String xAxisLabel = \"Matrix Size\";\n String yAxisLabel = \"time in ms\";\n\n XYSeriesCollection dataset = li;\n // System.out.println(\"tesst count \" + dataset.getSeriesCount());\n\n //XYDataset dataset = createDataset(li);\n JFreeChart chart = ChartFactory.createXYLineChart(chartTitle, xAxisLabel, yAxisLabel, dataset);\n XYPlot plot = chart.getXYPlot();\n XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer();\n plot.setRenderer(renderer);\n\n return new ChartPanel(chart);\n }", "private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }", "public static JPanel createDemoPanel() {\r\n JFreeChart chart = createChart(createDataset());\r\n ChartPanel panel = new ChartPanel(chart);\r\n panel.setMouseWheelEnabled(true);\r\n return panel;\r\n }", "private PieDataset createDataset() {\n JOptionPane.showMessageDialog(null, \"teste\"+dados.getEntrada());\r\n \r\n DefaultPieDataset result = new DefaultPieDataset();\r\n result.setValue(\"Entrada\", dados.getEntrada());\r\n result.setValue(\"Saida\", dados.getSaida());\r\n result.setValue(\"Saldo do Periodo\", dados.getSaldo());\r\n return result;\r\n\r\n }", "public DataSetPanel() {\n initComponents();\n }", "private JPanel createExportDataPanel(){\n JPanel exportDataPanel = new JPanel();\n exportDataPanel.setLayout(new BoxLayout(exportDataPanel, BoxLayout.X_AXIS));\n\n JLabel exportData = new JLabel(\"Export Data (.csv)\");\n exportData.setToolTipText(\"csv files are opened in excel by default\");\n\n exportDataPanel.add(exportData);\n exportDataPanel.add(Box.createHorizontalGlue());\n\n return exportDataPanel;\n }", "public AlumniDataPanel()\n {\n initComponents();\n }", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public static JPanel createDemoPanel(String total, String avild, String title) {\n double dtotal;\n double davild;\n dtotal = Double.parseDouble(total);\n davild = Double.parseDouble(avild);\n JFreeChart chart = createChart(createDataset(dtotal, davild), title);\n return new ChartPanel(chart);\n }", "public JPanel createSetDataPanel() {\n\n JLabel selectedExhibitionLbl = new JLabel(\"Selected Exhibition: \", JLabel.RIGHT);\n JLabel titleLbl = new JLabel(\"Title:\", JLabel.RIGHT);\n JLabel descriptionLbl = new JLabel(\"Description:\", JLabel.RIGHT);\n JLabel placeLbl = new JLabel(\"Location:\", JLabel.RIGHT);\n\n JLabel exhibitionLbl = new JLabel(controller.getSelectedExhibition().getTitle(), JLabel.RIGHT);\n Font font = exhibitionLbl.getFont();\n exhibitionLbl.setFont(font.deriveFont(font.getStyle() | Font.BOLD));\n txtFieldTitle = new JTextField(FIELD_WIDTH);\n txtFieldDescription = new JTextField(FIELD_WIDTH);\n txtFieldPlace = new JTextField(FIELD_WIDTH);\n\n // Set main panel\n JPanel panel = new JPanel();\n GroupLayout layout = new GroupLayout(panel);\n panel.setLayout(layout);\n layout.setAutoCreateContainerGaps(true);\n\n // Align horizontally\n layout.setHorizontalGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addComponent(selectedExhibitionLbl)\n .addComponent(titleLbl)\n .addComponent(descriptionLbl)\n .addComponent(placeLbl)\n )\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addComponent(exhibitionLbl)\n .addComponent(txtFieldTitle)\n .addComponent(txtFieldDescription)\n .addComponent(txtFieldPlace)\n )\n );\n\n // Align vertically\n layout.setVerticalGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(selectedExhibitionLbl)\n .addComponent(exhibitionLbl))\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(titleLbl)\n .addComponent(txtFieldTitle))\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(descriptionLbl)\n .addComponent(txtFieldDescription)\n )\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(placeLbl)\n .addComponent(txtFieldPlace))\n );\n\n return panel;\n }", "private void setupExportValuesWithDataPanel(){\n exportValuesWithDataPanel = new JPanel();\n exportValuesWithDataPanel.setLayout(new BoxLayout(exportValuesWithDataPanel, BoxLayout.X_AXIS));\n\n exportValuesCheckBox = new JCheckBox(\"Include associated input values\");\n exportValuesCheckBox.setSelected(true);\n exportValuesCheckBox.setToolTipText(\"Includes unit system, width and depth, diameter, and gauge length\");\n\n exportValuesWithDataPanel.add(Box.createHorizontalStrut(HORIZONTAL_BUFFER));\n exportValuesWithDataPanel.add(exportValuesCheckBox);\n exportValuesWithDataPanel.add(Box.createHorizontalGlue());\n }", "private FactoryViewPanel buildAdvancedPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n if (myIsImport)\r\n {\r\n addField(panel, myDataSourceModel.getIncludeInTimeline());\r\n }\r\n JPanel refreshPanel = buildRefreshPanel();\r\n panel.addLabelComponent(ControllerFactory.createLabel(myDataSourceModel.getAutoRefresh(), refreshPanel.getComponent(0)),\r\n refreshPanel);\r\n addField(panel, myDataSourceModel.getPointType());\r\n addField(panel, myDataSourceModel.getFeatureAltitude());\r\n addField(panel, myDataSourceModel.getPolygonFill());\r\n addField(panel, myDataSourceModel.getScalingMethod());\r\n addField(panel, myDataSourceModel.getShowLabels());\r\n return panel;\r\n }", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\t\tresult.setValue(\"Linux\", 29);\n\t\tresult.setValue(\"Mac\", 20);\n\t\tresult.setValue(\"Windows\", 51);\n\t\treturn result;\n\n\t}", "private void constructChartPanel() {\n chartPanel = new JPanel();\n chartPanel.setBorder(BorderFactory.createTitledBorder(\"Price Chart\"));\n chartPanel.setPreferredSize(relativeSize(0.4f, 0.35f));\n \n displayChartButton = new JButton(\"Click to Display Price Chart\");\n displayChartButton.setEnabled(false);\n displayChartButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JPanel cPanel = chart.getChartPanel();\n chartPanel.removeAll();\n chartPanel.add(cPanel);\n cPanel.setPreferredSize(relativeSize(0.4f, 0.35f));\n \n pack();\n repaint();\n }\n });\n \n chartPanel.add(displayChartButton);\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "private JPanel createScrollPaneDemonstrations() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Select the desired demonstrations:\", TitledBorder.LEFT, TitledBorder.TOP));\n modelDemonstration = new ModelTableDemonstrationsList(demonstrationsList);\n demonstrationsListJTable = new JTable(modelDemonstration);\n demonstrationsListJTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n demonstrationsListJTable.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n //demonstrationApplicationController.newDemonstrationApplication(((Demonstration)modelDemonstration.getValueAt(demonstrationsListJTable.getSelectedRow(), demonstrationsListJTable.getSelectedColumn())));\n }\n });\n\n JScrollPane scrollPane = new JScrollPane(demonstrationsListJTable);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.setMinimumSize(scrollPane.getMinimumSize());\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }", "public ChartPanel createChartPanel(QueryResult myResult) throws Exception {\n\n myChart = makeChart(myResult);\n\n // create the chart frame and display it \n ChartPanel myChartPanel = new ChartPanel(myChart);\n\n return myChartPanel;\n }", "private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}", "public PDSData() {\n initComponents();\n }", "private void createHeaderPanel()\n\t{\n\t\theaderPanel.setLayout (new GridLayout(2,1));\n\t\theaderPanel.add(textPanel);\n\t\theaderPanel.add(functionPanel);\n\t\t\t\t\t\n\t}", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\n\t\tif (_controler != null) {\n\t\t\tfor (Object cat : _controler.getCategorieData()) {\n\n\t\t\t\tresult.setValue((String) cat, _controler.getTotal((String) cat));\n\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "GridPanel create(GridDataModel model);", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}", "private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }", "DataTable createDataTable();", "private void addGraphPanel() {\n // Starting\n String S = C + \": addGraphPanel(): \";\n graphPanel.drawGraphPanel(xAxisName,yAxisName,functionList,xLog,yLog,customAxis,TITLE,buttonControlPanel);\n togglePlot();\n }", "public JComponent buildPanel(PatientModelSet dataModel) {\n\t\tdModel = dataModel;\n\n\t\tpatientSetPresenter = new PatientModelSetPresentationModel(dataModel);\n\n\t\t// Create a FormLayout instance on the given column and row specs.\n\t\t// For almost all forms you specify the columns; sometimes rows are\n\t\t// created dynamically. In this case the labels are right aligned.\n\t\tFormLayout layout = new FormLayout(\"max(40dlu;pref), 1dlu, max(40dlu;pref)\"\n\t\t// 1st major column\n\t\t\t\t+ \",2dlu , max(40dlu;pref), 1dlu, max(40dlu;pref)\"\n\t\t// 2nd major column\n\t\t\t\t, \"\"); // add rows dynamically\n\n\t\t// Specify that columns 1 & 5 as well as 3 & 7 have equal widths.\n\t\t// layout.setColumnGroups(new int[][]{{1, 5}, {3, 7}});\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\n\t\t// Fill the grid with components; the builder offers to create\n\t\t// frequently used components, e.g. separators and labels.\n\n\t\t// Add a titled separator.\n\t\t// The builder holds the layout container that we now return.\n\t\t// Add a titled separator.\n\t\tbuilder.appendSeparator(\"Graph Options\");\n\n\t\t// Then add fields.\n\t\tValueModel graphTitleModel = patientSetPresenter\n\t\t\t\t.getModel(\"graphTitleString\");\n\t\tgraphTitleField = ComponentFactory.createTextField(graphTitleModel);\n\t\tValidationComponentUtils.setMessageKey(graphTitleField,\n\t\t\t\t\"PatientModelSet.Graph Title\");\n\t\tbuilder.append(\"Graph Title:\", graphTitleField, 5);\n\n\t\t// Choose a curve set.\n\t\tValueModel curveModelModel = patientSetPresenter\n\t\t\t\t.getModel(PatientModelSet.PROPERTYNAME_CURVEMODEL);\n\t\tpossibleValues = new ArrayList<String>();\n\t\tpossibleValues.add(\"Survival\");\n\t\tpossibleValues.add(\"Hazard\");\n\t\tcurveModelList = new JComboBox(new ComboBoxAdapter<String>(possibleValues,\n\t\t\t\tcurveModelModel));\n\t\tbuilder.append(\"Graph Model: \", curveModelList);\n//\t\t// post a legend.\n//\t\tValueModel legendLocationModel = patientSetPresenter\n//\t\t\t\t.getModel(PatientModelSet.PROPERTYNAME_LEGENDLOCATION);\n//\t\tpossibleValues = new ArrayList<String>();\n//\t\tpossibleValues.add(\"None\");\n//\t\tpossibleValues.add(\"Lower Left\");\n//\t\tpossibleValues.add(\"Upper Right\");\n//\t\tpossibleValues.add(\"Lower Right\");\n//\n//\t\t// TODO Fix legending.\n//\t\tlegendLocationList = new JComboBox(new ComboBoxAdapter(possibleValues,\n//\t\t\t\tlegendLocationModel));\n//\n//\t\tbuilder.append(\"Legend Location: \", legendLocationList);\n\n\t\tValueModel graphTimeModel = patientSetPresenter.getModel(\"graphTime\");\n\t\tJTextField graphTimeField = ComponentFactory.createFormattedTextField(\n\t\t\t\tgraphTimeModel, NumberFormat.getNumberInstance());\n\n\t\tgraphTimeField.setToolTipText(\"How long do you want the graph?\");\n\t\tValidationComponentUtils.setMessageKey(graphTimeField,\n\t\t\t\t\"PatientModelSet.Graph Time\");\n\t\tbuilder.append(\"Graph Time [years]:\", graphTimeField);\n\n\t\tbuilder.nextLine();\n\n\t\tJButton refreshButton = new JButton(\"Refresh Graph\");\n\t\trefreshButton.addActionListener(dModel.getRunAction());\n\n\t\tbuilder.append(refreshButton, 4);\n\n\t\tpatientSetPanel = builder.getPanel();\n\t\tJPanel graphPanel = new JPanel();\n\t\tgraphPanel.setLayout(new BorderLayout());\n\t\t// The entry pane is the view of the current patient, the patients control\n\t\t// panel Sand the menu.\n\t\tgraphPanel.add(dModel.getUIPanel(), BorderLayout.CENTER);\n\t\tgraphPanel.add(new IconFeedbackPanel(patientSetPresenter\n\t\t\t\t.getValidationResultModel(), patientSetPanel), BorderLayout.SOUTH);\n\n\t\tinitEventHandling();\n\n\t\treturn (graphPanel);\n\n\t}", "private PieData generateDataPie() {\n\n ArrayList<PieEntry> entries = new ArrayList<>();\n String year = year_txt.getText().toString();\n String month1 =Utilities.getMonth(months,month_txt.getText().toString());\n TransactionBeans transactionBeans = transactionDB.getTransactionRecordsYear(month1,year);\n if(transactionBeans!=null) {\n float income = 0;\n float expense = 0;\n try{\n income = (float) (Double.parseDouble(transactionBeans.getIncome()));\n }catch(Exception e){\n income = 0;\n }\n try{\n expense = (float) (Double.parseDouble(transactionBeans.getExpense()));\n }catch(Exception e){\n expense = 0;\n }\n entries.add(new PieEntry(income, \"Income \"));\n entries.add(new PieEntry(expense, \"Expense \"));\n }\n PieDataSet d = new PieDataSet(entries, \"\");\n\n // space between slices\n d.setSliceSpace(2f);\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n\n return new PieData(d);\n }", "private FactoryViewPanel buildBasicPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n JComponent pathComponent = addField(panel, myDataSourceModel.getPath());\r\n if (pathComponent instanceof JTextComponent)\r\n {\r\n ((JTextComponent)pathComponent).setEditable(false);\r\n }\r\n addField(panel, myDataSourceModel.getSourceName());\r\n return panel;\r\n }", "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "public GraphPanel()\n\t{\n\t\t// instantiates graphArray to hold list of names to graph \n\t\tgraphArray = new ArrayList<NameRecord>();\n\t\t\n\t\t// sets the size of the panel\n\t\tsetPreferredSize(new Dimension(600,600));\n\t}", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "@DataProvider\n public Object[][] Data() \n {\n return new Object[][]\n {\n {\"a\" ,\"aaaa\" },\n { \"b\" ,\"bbb\"},\n {\"c\" ,\"ccc\"}\n \n };\n }", "public void initDataPanel(Game game) {\n\t\t\tJPanel pane = this.rightPanel;\n\t\t\tpane.setLayout(new GridLayout(game.getHunters().size(),1));\n\t\t\tthis.playersData.clear();\n\t\t\tpane.removeAll();\n\t\t\t\n\t\t\tfor(Hunter h : game.getHunters()) {\n\t\t\t\t\n\t\t\t\tJLabel data = new JLabel();\n\t\t\t\tdata.setFont(new java.awt.Font(Font.DIALOG,Font.BOLD,30));\n\t\t\t\tdata.setText(\" \"+h.toString()+\" : \"+h.getPosition()+\" - \"+Hunter.dirToArrow(h.getDirection()));\n\t\t\t\tpane.add(data);\n\t\t\t\tthis.playersData.add(data);\n\t\t\t}\n\t\t\tpane.revalidate();\n\t\t\tpane.repaint();\n\t\t}", "@Override\r\n\tpublic void initAditionalPanelElements() {\n\t\tchartDataset = new TimeSeriesCollection();\r\n\t\tfor(int i = 0; i < categoryVariableBuffers.size(); i++) \r\n\t\t\tchartDataset.addSeries(categoryVariableBuffers.get(i).getDataSerie());\r\n\t}", "DataList createDataList();", "public void addDataSummaryPanel() {\r\n if (myDataListPanel != null && myDataListPanel.getComponentCount() > 1) {\r\n m_applyAllButton.setEnabled(true);\r\n }\r\n m_addSummaryParentPanel.add(myDataListParentPanel, BorderLayout.EAST);\r\n }", "pcols createpcols();", "private void createPanelContent() {\n FragmentActivity activity = getActivity();\n if (this.mLayoutView == null) {\n activity.finish();\n }\n ViewGroup.LayoutParams layoutParams = this.mLayoutView.getLayoutParams();\n layoutParams.height = -2;\n this.mLayoutView.setLayoutParams(layoutParams);\n this.mPanelSlices = (RecyclerView) this.mLayoutView.findViewById(C0010R$id.panel_parent_layout);\n this.mSeeMoreButton = (TextView) this.mLayoutView.findViewById(C0010R$id.see_more);\n this.mDoneButton = (TextView) this.mLayoutView.findViewById(C0010R$id.done);\n this.mTitleView = (TextView) this.mLayoutView.findViewById(C0010R$id.panel_title);\n this.mPanelHeader = (LinearLayout) this.mLayoutView.findViewById(C0010R$id.panel_header);\n this.mTitleIcon = (ImageView) this.mLayoutView.findViewById(C0010R$id.title_icon);\n this.mHeaderTitle = (TextView) this.mLayoutView.findViewById(C0010R$id.header_title);\n this.mHeaderSubtitle = (TextView) this.mLayoutView.findViewById(C0010R$id.header_subtitle);\n this.mFooterDivider = this.mLayoutView.findViewById(C0010R$id.footer_divider);\n this.mPanelSlices.setVisibility(8);\n Bundle arguments = getArguments();\n String string = arguments.getString(\"PANEL_CALLING_PACKAGE_NAME\");\n PanelContent panel = FeatureFactory.getFactory(activity).getPanelFeatureProvider().getPanel(activity, arguments);\n this.mPanel = panel;\n if (panel == null) {\n activity.finish();\n }\n this.mPanel.registerCallback(new LocalPanelCallback());\n if (this.mPanel instanceof LifecycleObserver) {\n getLifecycle().addObserver((LifecycleObserver) this.mPanel);\n }\n this.mMetricsProvider = FeatureFactory.getFactory(activity).getMetricsFeatureProvider();\n this.mPanelSlices.setLayoutManager(new LinearLayoutManager(activity));\n this.mLayoutView.getViewTreeObserver().addOnPreDrawListener(this.mOnPreDrawListener);\n loadAllSlices();\n IconCompat icon = this.mPanel.getIcon();\n CharSequence title = this.mPanel.getTitle();\n if (icon == null) {\n this.mTitleView.setVisibility(0);\n this.mPanelHeader.setVisibility(8);\n this.mTitleView.setText(title);\n } else {\n this.mTitleView.setVisibility(8);\n this.mPanelHeader.setVisibility(0);\n this.mPanelHeader.setAccessibilityPaneTitle(title);\n this.mTitleIcon.setImageIcon(icon.toIcon(getContext()));\n this.mHeaderTitle.setText(title);\n this.mHeaderSubtitle.setText(this.mPanel.getSubTitle());\n if (this.mPanel.getHeaderIconIntent() != null) {\n this.mTitleIcon.setOnClickListener(getHeaderIconListener());\n this.mTitleIcon.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));\n } else {\n int dimensionPixelSize = getResources().getDimensionPixelSize(C0007R$dimen.output_switcher_panel_icon_size);\n this.mTitleIcon.setLayoutParams(new LinearLayout.LayoutParams(dimensionPixelSize, dimensionPixelSize));\n }\n }\n if (this.mPanel.getViewType() == 2) {\n this.mFooterDivider.setVisibility(0);\n } else {\n this.mFooterDivider.setVisibility(8);\n }\n this.mSeeMoreButton.setOnClickListener(getSeeMoreListener());\n this.mDoneButton.setOnClickListener(getCloseListener());\n if (this.mPanel.isCustomizedButtonUsed()) {\n CharSequence customizedButtonTitle = this.mPanel.getCustomizedButtonTitle();\n if (TextUtils.isEmpty(customizedButtonTitle)) {\n this.mSeeMoreButton.setVisibility(8);\n } else {\n this.mSeeMoreButton.setVisibility(0);\n this.mSeeMoreButton.setText(customizedButtonTitle);\n }\n } else if (this.mPanel.getSeeMoreIntent() == null) {\n this.mSeeMoreButton.setVisibility(8);\n }\n this.mMetricsProvider.action(0, 1, this.mPanel.getMetricsCategory(), string, 0);\n }", "protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "public Container getInterfacePanel(){\n datasetTable.setSize(128,128);\n return datasetTable;\n }", "private PanelTester()\n {\n /**/\n //f.add(new CardSelector(0, 0, width, height, \"TEST\"));\n\n // 73 Total\n// Slice[] slices2 = { new Slice(5, Color.BLACK,\"BLACK\"),\n// new Slice(33, Color.GREEN,\"GREEN\"),\n// new Slice(20, Color.YELLOW,\"YELLOW\"), new Slice(15, Color.RED,\"RED\") };\n//\n// Slice[] slices = { new Slice(0.64, Color.GREEN, \"Organic\"),\n// new Slice(52.6590008, Color.BLUE, \"Conventional\" ),\n// new Slice(46.7009992, Color.RED, \"GMO\" ) };\n//\n// ArrayList<Slice> sliceArray = new ArrayList<>();\n// for( int i = 0; i < slices.length ; i++)\n// {\n// sliceArray.add( slices[i] );\n// }\n// f.add(new PieChart( f.getBounds(), sliceArray ) );\n// Rectangle temp = new Rectangle(0,0,100,100);\n //f.add(new ChartKey(temp, sliceArray ));\n /**/\n\n\n\n f.add(new AvailableCropsBar(\"test\", new Color(134,255, 109,255),100,60,20,300,50));\n\n\n\n\n\n //f.pack();\n }", "private JScrollPane getScrollPaneDataOrganizer(){\n if (this.scrollPaneDataOrganizer == null){\n scrollPaneDataOrganizer = new JScrollPane(getDataTable());\n scrollPaneDataOrganizer.setBounds(0, panelMenuData.getHeight(), panelDataset.getWidth(), panelDataset.getHeight());\n }\n return this.scrollPaneDataOrganizer ;\n }", "public final QueryPanel createNewQueryPanel() {\n\n QueryPanel cp = new QueryPanel(nextQueryID++);\n queryPanelContainer.add(cp);\n queryPanels.add(cp);\n\n refreshSubPanels();\n\n return cp;\n }", "public DataPanel(CurvesPropertiesComponent curvesPropertiesComponent) {\n\n\t\tthis.componentsHandler=curvesPropertiesComponent.getComponentsHandler();\n\t\tbuild();\n\t}", "public void createScrollPanel(JPanel panel) {\n scrollPanel = new JScrollPane(panel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n scrollPanel.setPreferredSize(new Dimension(710, 600));\n }", "public DatasetTab(int index) {\n tab = new VerticalLayout();\n replicatesSheet = new TabSheet();\n for (int replicateIndex = 0;\n replicateIndex < presenter.getNumberOfReplicates();\n replicateIndex++) {\n ReplicateTab replicateTab = new ReplicateTab(index, replicateIndex);\n replicatesSheet.addTab(replicateTab, \"Replicate \" + createAlphabeticalIndex(replicateIndex));\n }\n setCompositionRoot(tab);\n }", "public CategoryDataset createDataset() {\n\t\tfinal DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\t\tProjectManagement projectManagement = new ProjectManagement();\n\t\tif (this.chartName == \"Earned Value\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getEarnedValue(date), \"Earned Value\", date);\n\t\t\t}\n\t\t} else if (this.chartName == \"Schedule Variance\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getScheduleVariance(date), \"Schedule Variance\", date);\n\t\t\t}\n\n\t\t} else {// Cost Variance\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getCostVariance(date), \"Cost Variance\", date);\n\t\t\t}\n\t\t}\n\t\treturn dataset;\n\t}", "public ChartPanel getChartPanel();", "private JPanel getJPanel_table() {\n\t\tif (jPanel_table == null) {\n\t\t\tjPanel_table = new JPanel();\n\t\t\tjPanel_table.setLayout(c);\n\t\t\tjPanel_table.add(getJPanel_table_spect(), getJPanel_table_spect().getName());\n\t\t\tjPanel_table.add(getJPanel_table_member(), getJPanel_table_member().getName());\n\t\t\tjPanel_table.add(getJPanel_table_room(), getJPanel_table_room().getName());\n\t\t}\n\t\treturn jPanel_table;\n\t}", "public JComponent createTopPanel() {\n\n\t//\tcontent();\n\t\tfields = new JTextField[NBR_FIELDS];\n\t\tmyTable = new PalletTable(db);\n\t\ttable = new JTable(myTable);\n\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(750, 100));\n table.setFillsViewportHeight(true);\n\t\tscroll = new JScrollPane(table);\n\t//\tcontent();\n\t\tmainPanel= new JPanel();\n\t\tmainPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.gridy=0;\n\t\tmainPanel.add(scroll,c);\n\t\tc.gridy=1;\n\t\tmainPanel.add(content(),c);\n\t\t//scroll.setPreferredSize(new Dimension(300,250));\n\t\treturn mainPanel;\n\t}", "public Component getPanelControl() {\n\t\tTableSorter sorterOperaciones = new TableSorter(modeloOperaciones);\n\t\tJTable tablaOperaciones = new JTable(sorterOperaciones);\n\t\tsorterOperaciones.setTableHeader(tablaOperaciones.getTableHeader());\n\t\tJScrollPane panelScrollDerecha = new JScrollPane(tablaOperaciones);\n\t\tpanelScrollDerecha.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelDerecha = new FakeInternalFrame(\"Log de Operaciones\", panelScrollDerecha);\n\n\t\tTableSorter sorterPrecios = new TableSorter(modeloPrecios);\n\t\tJTable tablaPrecios = new JTable(sorterPrecios);\n\t\tsorterPrecios.setTableHeader(tablaPrecios.getTableHeader());\n\t\ttablaPrecios.getColumn(tablaPrecios.getColumnName(1)).setCellRenderer(modeloPrecios.getRenderer());\n\n\t\tJScrollPane panelScrollIzqAbajo = new JScrollPane(tablaPrecios);\n\t\tpanelScrollIzqAbajo.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelIzqAbajo = new FakeInternalFrame(\"Precios en bolsa\", panelScrollIzqAbajo);\n\n\t\t//panelSecundario = new JSplitPane(JSplitPane.VERTICAL_SPLIT, panelIzqAbajo, panelIzqArriba);\n\t\tpanelPrincipal = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelIzqAbajo, panelDerecha);\n\n\t\tpanelPrincipal.setDividerLocation(300);\n\t\t//panelSecundario.setDividerLocation(300);\n\n\t\tpanelIzqAbajo.setPreferredSize(new Dimension(250, 300));\n\t\tpanelDerecha.setPreferredSize(new Dimension(550, 600));\n\n\t\treturn panelPrincipal;\n\t}", "public JPanel getPanelContenedorTable(){\n\t\tif(panelContenedorTabla == null){\n\t\t\tpanelContenedorTabla = new JPanel();\n\t\t\tpanelContenedorTabla.setLayout(new BorderLayout(0, 0));\n\t\t\tgetTablaPorDefecto().setDataVector(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew String[] {\"id\",\"Usuario\",\"Cotraseña\", \"Nombre\", \"Apellido\" , \"Teléfono\",\n\t\t\t\t\t\t\t\"Celular\",\"Dirección\", \"Cédula\",\"Perfil\",\"IdPersona\"});\n\t\t\tocultaColumnas(getTabla(), new int[] {0,1,2,10});\n\t\t\tpanelContenedorTabla.add(getPanelTabla(), BorderLayout.CENTER);\n\t\t}\n\t\treturn panelContenedorTabla;\n\t}", "final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }", "public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void addCharts() {\n piechartPanel.removeAll();\n piechartPanel.validate();\n piechartPanel.repaint();\n\n barschartPanel.removeAll();\n barschartPanel.validate();\n barschartPanel.repaint();\n if (cpanel != null) {\n cpanel = null;\n }\n pieChart = new PieChart(collection, 0, type, cb_sort.isSelected()).chart;\n barsChart = new BarsChart(collection, 0, type, cb_sort.isSelected()).chart;\n cpanel = new ChartPanel(pieChart);\n cpanel.setSize(piechartPanel.getSize());\n piechartPanel.add(cpanel);\n piechartPanel.getParent().validate();\n cpanel = new ChartPanel(barsChart);\n cpanel.setSize(barschartPanel.getSize());\n barschartPanel.add(cpanel);\n barschartPanel.getParent().validate();\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void createListPatientsPanel() {\n\n\t\tlistPatientsPanel = new JPanel();\n\t\tlistPatientsPanel.setSize(700, 430);\n\t\tlistPatientsPanel.setLocation(0, 70);\n\t\tlistPatientsPanel.setLayout(new GridLayout(1, 1));\n\t\t// textArea\n\t\tpatientList = new JList(getDoctor(tempDoctorId).getPList().toArray());\n\t\tpatientList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tpatientList.addMouseListener(new MouseListener() {\n\t\t\t@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (e.getClickCount() == 2) {\n\t\t\t\t\tPatient p = (Patient) patientList.getSelectedValue();\n\t\t\t\t\ttempPatientId = p.getPId();\n\t\t\t\t\tupdateSearchPatientPanel();\n\t\t\t\t\tsearchPatientPanel.setVisible(true);\n\t\t\t\t\tlistPatientsPanel.setVisible(false);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane sp1 = new JScrollPane(patientList);\n\t\tlistPatientsPanel.add(sp1);\n\t\ttotalGUIPanel.add(listPatientsPanel);\n\t\tlistPatientsPanel.setVisible(false);\n\t}", "private Panel buildPanelImg() {\n\t\tpanelImg = new Panel();\r\n\t\tpanelImg.setImmediate(false);\r\n\t\tpanelImg.setWidth(\"-1px\");\r\n\t\tpanelImg.setHeight(\"-1px\");\r\n\t\t\r\n\t\t// gridImg\r\n\t\tgridImg = new HorizontalLayout();\r\n\t\tgridImg.setImmediate(false);\r\n\t\tgridImg.setWidth(\"128px\");\r\n\t\tgridImg.setHeight(\"128px\");\r\n\t\tgridImg.setMargin(false);\r\n\t\tpanelImg.setContent(gridImg);\r\n\t\t\r\n\t\treturn panelImg;\r\n\t}", "@AutoGenerated\r\n\tprivate Panel buildPnlFondos() {\n\t\tpnlFondos = new Panel();\r\n\t\tpnlFondos.setImmediate(false);\r\n\t\tpnlFondos.setWidth(\"-1px\");\r\n\t\tpnlFondos.setHeight(\"-1px\");\r\n\t\t\r\n\t\t// layoutFondo\r\n\t\tlayoutFondo = buildLayoutFondo();\r\n\t\tpnlFondos.setContent(layoutFondo);\r\n\t\t\r\n\t\treturn pnlFondos;\r\n\t}", "public Patients_Data_Frame() {\n initComponents();\n Show_Products_in_jTable();\n }", "private JPanel getSeePatientFoundamentalDataPanel() {\n if (seePatientFoundamentalDataPanel == null) {\n seePatientFoundamentalDataPanel = new SeePatientFoundamentalDataPanel();\n }\n return seePatientFoundamentalDataPanel;\n }", "private void createUIComponents() {\n String[] columns = {\"ID\", \"Name\", \"Longitude\", \"Latitude\"};\n List<City> cities = DataManager.getDataManager().getAllCities();\n\n // Create table\n DefaultTableModel tableModel = new DefaultTableModel(columns, 0);\n dataTable = new JTable(tableModel);\n\n // Fill table\n tableModel.addRow(new Object[] {\"ID\", \"Name\", \"Long\", \"Lat\"});\n for (int i = 0; i < cities.size(); i++) {\n City curCity = cities.get(i);\n tableModel.addRow(new Object[] {\n i,\n curCity.getName(),\n curCity.getLongitude(),\n curCity.getLatitude()\n });\n }\n dataTable.setVisible(false);\n }", "DT createDT();", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "public JPanel getPanelConsulta(){\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(5, 1, 50, 10));\n\n\t\tpanel.add(new JLabel(\"Fecha inicio:\"));\n\t\tcampoInicio = new JTextField(\"yyyy-mm-dd\");\n\t\tcampoInicio.setForeground(new Color(111,111,111));\n\t\tcampoInicio.addFocusListener(control);\n\t\tcampoInicio.setActionCommand(\"fecahaInicio\");\n\n\t\tpanel.add(campoInicio);\n\n\t\tpanel.add(new JLabel(\"Fecha final:\"));\n\t\tcampoFinal = new JTextField(\"yyyy-mm-dd\");\n\t\tcampoFinal.setForeground(new Color(111,111,111));\n\t\tcampoFinal.addFocusListener(control);\n\t\tcampoFinal.setActionCommand(\"fecahaFinal\");\n\t\n\t\tpanel.add(campoFinal);\n\n\t\tpanel.setBorder(BorderFactory.createTitledBorder(\"Datos Reporte\"));\n\n\t\tJButton consulta = new JButton(\"Consultar\");\n\t\tconsulta.addActionListener(control);\n\t\tconsulta.setActionCommand(\"consulta\");\n\t\tpanel.add(consulta);\n\t\tpanel.setPreferredSize(new Dimension(190, 250));\n\n\t\treturn panel;\n\n\t}", "public Records_Panel() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initDataset(){\n dataSet.add(\"Karin\");\n dataSet.add(\"Ingrid\");\n dataSet.add(\"Helga\");\n dataSet.add(\"Renate\");\n dataSet.add(\"Elke\");\n dataSet.add(\"Ursula\");\n dataSet.add(\"Erika\");\n dataSet.add(\"Christa\");\n dataSet.add(\"Gisela\");\n dataSet.add(\"Monika\");\n\n addDataSet.add(\"Anna\");\n addDataSet.add(\"Sofia\");\n addDataSet.add(\"Emilia\");\n addDataSet.add(\"Emma\");\n addDataSet.add(\"Neele\");\n addDataSet.add(\"Franziska\");\n addDataSet.add(\"Heike\");\n addDataSet.add(\"Katrin\");\n addDataSet.add(\"Katharina\");\n addDataSet.add(\"Liselotte\");\n }", "private JPanel createPanel(String title) {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(0, 1));\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), title));\n\t\treturn panel;\n\t}", "public JPanel createPanel(Hospital_Management_System hms)\n\t{\n\t\t//set table settings\n\t\ttable.setColumnSelectionAllowed(false);\n\t\ttable.setRowSelectionAllowed(true);\n\t\ttable.getTableHeader().setEnabled(false);\n\t\ttable.setRowHeight(50);\n\t\ttable.setEnabled(true);\n\t\ttable.getTableHeader().setReorderingAllowed(false);\n\t\tJScrollPane tableContainer = new JScrollPane(table);\n\t\ttableContainer.setLocation(86, 244);\n\t\ttableContainer.setSize(1746, 700);\n\t\t//initialize the panel layout and size\n\t\tJPanel patientListPanel = new JPanel();\n\t\tpatientListPanel.setLayout(null);\n\t\tpatientListPanel.setBounds(0, 0, 1920, 1080);\n\t\t//set background\n\t\tJLabel lblBackground = new JLabel();\n\t\tlblBackground.setIcon(new ImageIcon(PatientListPanel.class.getResource(\"/graphics/list_background.png\")));\n\t\tlblBackground.setBounds(0, 0, 1920, 1080);\n\t\t/*\n\t\t * HEADER MESSAGE\n\t\t */\n\t\tJLabel lblWelcomeBackAdministrator = new JLabel(\"Welcome Back!\");\n\t\tlblWelcomeBackAdministrator.setFont(bArial);\n\t\tlblWelcomeBackAdministrator.setBounds(166, 29, 510, 26);\n\t\t/*\n\t\t * DATE DISPLAYED BELOW HEADER\n\t\t */\n\t\tDateFormat df = new SimpleDateFormat(\"EEE MMM dd, yyyy\");\n\t\tDate today = new Date();\n\t\tJLabel date = new JLabel(\"Today is: \"+df.format(today));\n\t\tdate.setFont(new Font(\"Calibri Light\", Font.PLAIN, 26));\n\t\tdate.setBounds(166, 87, 560, 26);\n\t\t/*\n\t\t * RETURN BUTTON\n\t\t */\n\t\tJButton btnReturn = new JButton(\"Return\");\n\t\tbtnReturn.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tif(hms.getAccessFrom() == \"Admin\")\n\t\t\t\t{\n\t\t\t\t\thms.displayPatientManagementPage();\n\t\t\t\t}\n\t\t\t\telse if(hms.getAccessFrom() == \"Employee\")\n\t\t\t\t{\n\t\t\t\t\thms.displayEmployeeMainPage();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnReturn.setFont(new Font(\"Arial\", Font.BOLD, 16));\n\t\tbtnReturn.setBounds(725, 955, 500, 59);\n\t\t/*\n\t\t * FILTER TEXTBOX\n\t\t */\n\t\tJTextField filterField = RowFilterUtil.createRowFilter(table);\n\t\tfilterField.setFont(new Font(\"Arial\", Font.BOLD, 24));\n\t\tfilterField.setColumns(10);\n\t\tfilterField.setBounds(265, 955, 300, 59);\n\t\t/*\n\t\t * SEARCH LABEL\t\t\n\t\t */\n\t\tJLabel lbSearch = new JLabel(\"Search:\");\n\t\tlbSearch.setFont(new Font(\"Arial\", Font.BOLD, 28));\n\t\tlbSearch.setBounds(125, 955, 300, 59);\n\t\t//add all the components to panel\n\t\tpatientListPanel.add(btnReturn);\n\t\tpatientListPanel.add(tableContainer, BorderLayout.CENTER);\n\t\tpatientListPanel.add(lblWelcomeBackAdministrator);\n\t\tpatientListPanel.add(date);\n\t\tpatientListPanel.add(filterField);\n\t\tpatientListPanel.add(lbSearch);\n\t\tpatientListPanel.add(lblBackground);\n\t\t\n\t\treturn patientListPanel;\n\t}", "public Panel(LayoutManager paramLayoutManager)\n/* */ {\n/* 65 */ setLayout(paramLayoutManager);\n/* */ }", "public void generateChart(){\n String[][] contents = retrieveFields();\n\n// String msg = \"test - \";\n// printCells(contents);\n\n String[] houseDisplay = new String[12];\n houseDisplay = new String[]{\"6\",\"4\",\"2\",\"1\",\"4\",\"6\",\"3\",\"5\",\"7/8\",\"\",\"5\",\"3\"};\n display(houseDisplay);\n }", "void addPanel() {\n \tPanel panel = new Panel();\r\n\r\n panel.setLayout(new GridLayout(4, 1));\r\n jSliderBrightness = makeTitledSilder(\"Helligkeit\", 0, 256, 128); // werte veraendert\r\n jSliderContrast = makeTitledSilder(\"Kontrast\", 0, 10, 5);\r\n jSliderSaturation = makeTitledSilder(\"Sättigung\", 0, 9, 4);\r\n jSliderHue = makeTitledSilder(\"Hue\", 0, 360, 0);\r\n //jSliderContrast = makeTitledSilder(\"Slider2-Wert\", 0, 100, 50);\r\n panel.add(jSliderBrightness);\r\n panel.add(jSliderContrast);\r\n panel.add(jSliderSaturation);\r\n panel.add(jSliderHue);\r\n \r\n add(panel);\r\n \r\n pack();\r\n }", "private JPanel createColPanel(JButton btn1, JButton btn2) {\r\n\t\tJPanel colPanel = new JPanel();\r\n\t\tcolPanel.setLayout(new GridLayout(10,1));\r\n\t\tfor (int i=0; i<3; i++) colPanel.add(new JLabel(\"\"));\r\n\t\tcolPanel.add(btn1);\r\n\t\tcolPanel.add(btn2);\r\n\t\tfor (int i=0; i<5; i++) colPanel.add(new JLabel(\"\"));\r\n\t\treturn colPanel;\r\n\t}", "private SeeRegisteredPatientFoundamentalDataPanel getSeeRegisteredPatientFoundamentalDataPanel() {\n if (seeRegisteredPatientFoundamentalDataPanel == null) {\n seeRegisteredPatientFoundamentalDataPanel = new SeeRegisteredPatientFoundamentalDataPanel();\n //seeRegisteredPatientFoundamentalDataPanel.setLayout(new GridBagLayout());\n }\n return seeRegisteredPatientFoundamentalDataPanel;\n }", "private JPanel addPannelName(){\n\t\tJPanel panNom = new JPanel();\n\t\tpanNom.setPreferredSize(new Dimension(175, 75));\n\t\tnameT = new JTextField();\n\t\tnameT.setPreferredSize(new Dimension(100, 25));\n\t\tpanNom.setBorder(BorderFactory.createTitledBorder(\"Channel name\"));\n\t\tname = new JLabel(\"Put a name :\");\n\t\tpanNom.add(name);\n\t\tpanNom.add(nameT);\n\t\treturn panNom;\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public CurricularCourseDataComponent() {\n\t\tsuper();\n\n\t\t// Header\n\t\t// None yet\n\n\t\t// Body\n\t\tVerticalPanel verticalPanelIdentification = new VerticalPanel();\n\t\tcontentPanel.add(verticalPanelIdentification);\n\t\taddComponents(verticalPanelIdentification);\n\n\t\t// Footer\n\t\t// None yet\n\t}", "private JPanel createFilmPanel() {\n\t\tJPanel filmPanel = new JPanel();\n\t\tfilmPanel.setLayout(new BorderLayout());\n\t\tfilmPanel.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\t\n\t\tJPanel filmTitlePanel = new JPanel();\n\t\tfilmTitlePanel.setLayout(new BorderLayout());\n\t\tJLabel films = new JLabel(\"Films\");\n\t\tfilmTitlePanel.add(films, BorderLayout.WEST);\n\t\tfilmComboBox = new JComboBox(filmCBContent);\n\t\tfilmComboBox.setName(\"filmComboBox\");\n\t\tfilmTitlePanel.add(filmComboBox, BorderLayout.EAST);\n\t\tfilmPanel.add(filmTitlePanel, BorderLayout.NORTH);\n\n\t\tfilmContents = new JPanel();\n\t\tfilmContents.setLayout(new FlowLayout());\n\t\tfilmPanel.add(filmContents, BorderLayout.CENTER);\n\t\tfilmPanel.add(createJScrollPane(filmContents), BorderLayout.CENTER);\n\n\t\treturn filmPanel;\n\t}", "private XYDataset createDataset() {\n\t \tXYSeriesCollection dataset = new XYSeriesCollection();\n\t \t\n\t \t//Definir cada Estacao\n\t\t XYSeries aes1 = new XYSeries(\"Estação1\");\n\t\t XYSeries aes2 = new XYSeries(\"Estação2\");\n\t\t XYSeries aes3 = new XYSeries(\"Estação3\");\n\t\t XYSeries aes4 = new XYSeries(\"Estação4\");\n\t\t XYSeries aes5 = new XYSeries(\"Estação5\");\n\t\t XYSeries aes6 = new XYSeries(\"Estação6\");\n\t\t XYSeries aes7 = new XYSeries(\"Estação7\");\n\t\t XYSeries aes8 = new XYSeries(\"Estação8\");\n\t\t XYSeries aes9 = new XYSeries(\"Estação9\");\n\t\t XYSeries aes10 = new XYSeries(\"Estação10\");\n\t\t XYSeries aes11 = new XYSeries(\"Estação11\");\n\t\t XYSeries aes12 = new XYSeries(\"Estação12\");\n\t\t XYSeries aes13 = new XYSeries(\"Estação13\");\n\t\t XYSeries aes14 = new XYSeries(\"Estação14\");\n\t\t XYSeries aes15 = new XYSeries(\"Estação15\");\n\t\t XYSeries aes16 = new XYSeries(\"Estação16\");\n\t\t \n\t\t //Definir numero de utilizadores em simultaneo para aparece na Interface\n\t\t XYSeries au1 = new XYSeries(\"AU1\");\n\t\t XYSeries au2 = new XYSeries(\"AU2\");\n\t\t XYSeries au3 = new XYSeries(\"AU3\");\n\t\t XYSeries au4 = new XYSeries(\"AU4\");\n\t\t XYSeries au5 = new XYSeries(\"AU5\");\n\t\t XYSeries au6 = new XYSeries(\"AU6\");\n\t\t XYSeries au7 = new XYSeries(\"AU7\");\n\t\t XYSeries au8 = new XYSeries(\"AU8\");\n\t\t XYSeries au9 = new XYSeries(\"AU9\");\n\t\t XYSeries au10 = new XYSeries(\"AU10\");\n\t\t \n\t\t //Colocar estacoes no gráfico\n\t\t aes1.add(12,12);\n\t\t aes2.add(12,37);\n\t\t aes3.add(12,62);\n\t\t aes4.add(12,87);\n\t\t \n\t\t aes5.add(37,12);\n\t\t aes6.add(37,37);\n\t\t aes7.add(37,62);\n\t\t aes8.add(37,87);\n\t\t \n\t\t aes9.add(62,12); \n\t\t aes10.add(62,37);\n\t\t aes11.add(62,62);\n\t\t aes12.add(62,87);\n\t\t \n\t\t aes13.add(87,12);\n\t\t aes14.add(87,37);\n\t\t aes15.add(87,62);\n\t\t aes16.add(87,87);\n\t\t \n\t\t//Para a bicicleta 1\n\t\t \t\n\t\t\t for(Entry<String, String> entry : position1.entrySet()) {\n\t\t\t\t String key = entry.getKey();\n\t\t\t\t \n\t\t\t\t String[] part= key.split(\",\");\n\t\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t\t \n\t\t\t\t au1.add(keyX,keyY);\n\t\t\t }\n\t\t \n\t\t\t //Para a bicicleta 2\n\t\t for(Entry<String, String> entry : position2.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au2.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Para a bicicleta 3\n\t\t for(Entry<String, String> entry : position3.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au3.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position4.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au4.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position5.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au5.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position6.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au6.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position7.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au7.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position8.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au8.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position9.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au9.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position10.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au10.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Add series to dataset\n\t\t dataset.addSeries(au1);\n\t\t dataset.addSeries(au2);\n\t\t dataset.addSeries(au3);\n\t\t dataset.addSeries(au4);\n\t\t dataset.addSeries(au5);\n\t\t dataset.addSeries(au6);\n\t\t dataset.addSeries(au7);\n\t\t dataset.addSeries(au8);\n\t\t dataset.addSeries(au9);\n\t\t dataset.addSeries(au10);\n\t\t \n\t\t \n\t\t dataset.addSeries(aes1);\n\t\t dataset.addSeries(aes2);\n\t\t dataset.addSeries(aes3);\n\t\t dataset.addSeries(aes4);\n\t\t dataset.addSeries(aes5);\n\t\t dataset.addSeries(aes6);\n\t\t dataset.addSeries(aes7);\n\t\t dataset.addSeries(aes8);\n\t\t dataset.addSeries(aes9);\n\t\t dataset.addSeries(aes10);\n\t\t dataset.addSeries(aes11);\n\t\t dataset.addSeries(aes12);\n\t\t dataset.addSeries(aes13);\n\t\t dataset.addSeries(aes14);\n\t\t dataset.addSeries(aes15);\n\t\t dataset.addSeries(aes16);\n\t\t \n\t\t return dataset;\n\t }", "private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSettings();\n\t\tprintSettings.addNewHeaderFooter();\n\n\t\tCTPageMargins pageMargins = printSettings.addNewPageMargins();\n\t\tpageMargins.setB(0.75);\n\t\tpageMargins.setL(0.70);\n\t\tpageMargins.setR(0.70);\n\t\tpageMargins.setT(0.75);\n\t\tpageMargins.setHeader(0.30);\n\t\tpageMargins.setFooter(0.30);\n\t\tprintSettings.addNewPageSetup();\n\t}", "public JPanel getPanelTabla(){\n\n\t\tJPanel panel = new JPanel();\n\n\t\tpanel.setBorder(BorderFactory.createTitledBorder(\"Reporte\"));\n\t\tpanel.setLayout(new FlowLayout());\n\n\t\treporte = new JLabel();\n\t\treporte.setPreferredSize(new Dimension(500,35));\n\t\treporte.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\treporte.setHorizontalAlignment(JLabel.CENTER);\n\n\t\tpanel.add(reporte);\n\t\t//creacion de la tabla\n\t\tmodelo = new DefaultTableModel();\n\t\tmodelo.setColumnIdentifiers(new Object[]{\"Codigo\", \"Nombre\", \"Descripcion\", \"Existencias\"});\n\t\ttabla = new JTable(modelo);\n \n\t\tJScrollPane jScroll = new JScrollPane(tabla);\n\t\tjScroll.setPreferredSize(new Dimension(500, 370));\n\n\t\tpanel.add(jScroll);\n\n\t\tJLabel venta = new JLabel(\" Total Venta:\");\n\t\tventa.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tpanel.add(venta);\n\t\tcampoTotal = new JTextField(formato.format(0));\n\t\tcampoTotal.setPreferredSize(new Dimension(200,40));\n\t\tcampoTotal.setHorizontalAlignment(JTextField.RIGHT);\n\t\tcampoTotal.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\n\t\tpanel.add(campoTotal);\n\n\t\tJButton btImprimir = new JButton(new ImageIcon(getClass().getResource(\"/iconos/impresora (2).png\")));\n\t\tbtImprimir.addActionListener(control);\n\t\tbtImprimir.setActionCommand(\"imprimir\");\n\t\tpanel.add(btImprimir);\n\n\t\treturn panel;\n\n\t}", "public DRInitialPlotPanel() {\n initComponents();\n }", "public void createGraphPanel(List<String> states){\n\t\tgraph = new GraphPanel(states);\n\t\tgraph.update(updatePopulations(), 0);\n\t}", "private ch.softenvironment.view.DataSelectorPanel getPnlDataSelector() {\n\tif (ivjPnlDataSelector == null) {\n\t\ttry {\n\t\t\tivjPnlDataSelector = new ch.softenvironment.view.DataSelectorPanel();\n\t\t\tivjPnlDataSelector.setName(\"PnlDataSelector\");\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjPnlDataSelector;\n}", "@AutoGenerated\r\n\tprivate GridLayout buildPnlDatos() {\n\t\tpnlDatos = new GridLayout();\r\n\t\tpnlDatos.setImmediate(false);\r\n\t\tpnlDatos.setWidth(\"350px\");\r\n\t\tpnlDatos.setHeight(\"-1px\");\r\n\t\tpnlDatos.setMargin(false);\r\n\t\tpnlDatos.setSpacing(true);\r\n\t\tpnlDatos.setColumns(2);\r\n\t\tpnlDatos.setRows(3);\r\n\t\t\r\n\t\t// lblUsuario\r\n\t\tlblUsuario = new Label();\r\n\t\tlblUsuario.setImmediate(false);\r\n\t\tlblUsuario.setWidth(\"-1px\");\r\n\t\tlblUsuario.setHeight(\"-1px\");\r\n\t\tlblUsuario.setValue(\"Usuario\");\r\n\t\tpnlDatos.addComponent(lblUsuario, 0, 0);\r\n\t\tpnlDatos.setComponentAlignment(lblUsuario, new Alignment(34));\r\n\t\t\r\n\t\t// txtUsuario\r\n\t\ttxtUsuario = new TextField();\r\n\t\ttxtUsuario.setImmediate(false);\r\n\t\ttxtUsuario.setWidth(\"-1px\");\r\n\t\ttxtUsuario.setHeight(\"-1px\");\r\n\t\tpnlDatos.addComponent(txtUsuario, 1, 0);\r\n\t\tpnlDatos.setComponentAlignment(txtUsuario, new Alignment(33));\r\n\t\t\r\n\t\t// lblClave\r\n\t\tlblClave = new Label();\r\n\t\tlblClave.setImmediate(false);\r\n\t\tlblClave.setWidth(\"-1px\");\r\n\t\tlblClave.setHeight(\"-1px\");\r\n\t\tlblClave.setValue(\"Contraseña\");\r\n\t\tpnlDatos.addComponent(lblClave, 0, 1);\r\n\t\tpnlDatos.setComponentAlignment(lblClave, new Alignment(34));\r\n\t\t\r\n\t\t// txtClave\r\n\t\ttxtClave = new PasswordField();\r\n\t\ttxtClave.setImmediate(false);\r\n\t\ttxtClave.setWidth(\"-1px\");\r\n\t\ttxtClave.setHeight(\"-1px\");\r\n\t\tpnlDatos.addComponent(txtClave, 1, 1);\r\n\t\tpnlDatos.setComponentAlignment(txtClave, new Alignment(33));\r\n\t\t\r\n\t\treturn pnlDatos;\r\n\t}", "public JPanel createPeoplePanel() {\n\t\t//setup\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(3, 2));\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), \"People\"));\n\t\tpanel.add(new JCheckBox(\"Miss Scarlet\"));\n\t\tpanel.add(new JCheckBox(\"Colonel Mustard\"));\n\t\tpanel.add(new JCheckBox(\"Mr. Green\"));\n\t\tpanel.add(new JCheckBox(\"Mrs. White\"));\n\t\tpanel.add(new JCheckBox(\"Mrs. Peacock\"));\n\t\tpanel.add(new JCheckBox(\"Professor Plum\"));\n\t\treturn panel;\t\t\n\t}", "ParametersView(){\r\n\t\ttable.setWidget(0, 0,new Label(OpenXDataFacade.getOpenXDataConstants().label_name()));\r\n\t\ttable.setWidget(0, 1,new Label(OpenXDataFacade.getOpenXDataConstants().label_value()));\r\n\t\ttable.setWidget(0, 2,new Label(OpenXDataFacade.getOpenXDataConstants().label_action()));\r\n\r\n\t\tFlexCellFormatter cellFormatter = table.getFlexCellFormatter();\r\n\t\tcellFormatter.setWidth(0, 2, \"10%\");\r\n\t\ttable.setStyleName(\"cw-FlexTable\");\r\n\r\n\t\tpanel.add(table);\r\n\t\tpanel.add(btnAdd);\r\n\r\n\t\tbtnAdd.addClickHandler(this);\r\n\t\tbtnAdd.setEnabled(false);\r\n\t\t\r\n\t\tinitWidget(panel);\r\n\t}", "public Component getPanelEventos() {\n\t\tTableSorter sorterVariables = new TableSorter(modeloVariables);\n\t\tJTable tablaVariables = new JTable(sorterVariables);\n\t\tsorterVariables.setTableHeader(tablaVariables.getTableHeader());\n\n\t\ttablaVariables.getColumn(tablaVariables.getColumnName(1)).setPreferredWidth(100);\n\t\tJScrollPane panelIzq = new JScrollPane(tablaVariables);\n\n\t\tJPanel panelDer = new JPanel(new BorderLayout());\n\t\tJPanel panelDerAbajo = new JPanel();\n\t\tJButton botonInsertar = new JButton(ModeloTablaEventos.INSERTAR_EVENTO);\n\t\tbotonInsertar.addActionListener(modeloEventos);\n\t\tpanelDerAbajo.add(botonInsertar);\n\t\tJButton botonCancelar = new JButton(ModeloTablaEventos.CANCELAR_EVENTO);\n\t\tbotonCancelar.addActionListener(modeloEventos);\n\t\tpanelDerAbajo.add(botonCancelar);\n\n\t\tJTable tablaEventos = new JTable(modeloEventos);\n\t\tmodeloEventos.setLista(tablaEventos);\n\t\ttablaEventos.getColumn(tablaEventos.getColumnName(2)).setMaxWidth(40);\n\n\t\tJScrollPane panelDerArriba = new JScrollPane(tablaEventos);\n\t\tpanelDer.add(panelDerAbajo, BorderLayout.SOUTH);\n\t\tpanelDer.add(panelDerArriba, BorderLayout.CENTER);\n\n\t\tJSplitPane panelPrincipal = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,\n\t\t\t\tnew FakeInternalFrame(\"Variables del sistema\", panelIzq),\n\t\t\t\tnew FakeInternalFrame(\"Control de Eventos\", panelDer));\n\t\tpanelPrincipal.setDividerLocation(350);\n\t\tpanelIzq.setPreferredSize(new Dimension(200, 600));\n\t\tpanelDer.setPreferredSize(new Dimension(600, 600));\n\t\treturn panelPrincipal;\n\t}", "private PieData generateDataPie(int cnt) {\n\n ArrayList<PieEntry> entries = new ArrayList<PieEntry>();\n\n for (int i = 0; i < 4; i++) {\n entries.add(new PieEntry((float) ((Math.random() * 70) + 30), \"Quarter \" + (i+1)));\n }\n\n PieDataSet d = new PieDataSet(entries, \"\");\n\n // space between slices\n d.setSliceSpace(2f);\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n\n PieData cd = new PieData(d);\n return cd;\n }", "private JPanel createScrollPaneProducts() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Products List: \", TitledBorder.LEFT, TitledBorder.TOP));\n\n this.productsList = this.demonstrationApplicationController.getProductsList();\n this.jListProduct = new JList(new ModelListSelectable(this.productsList));\n JScrollPane scrollPane = new JScrollPane(jListProduct);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }", "protected JPanel getPoolAsPanel() {\n\n String job = this.getSkill().substring(0, 1).toUpperCase() + this.getSkill().substring(1);\n\n // Definitions\n this.rowPanel = new JPanel(new GridLayout(1, 3));\n this.skillLabel = new JLabel(job, JLabel.CENTER);\n this.portLabel = new JLabel(this.getParentPort(), JLabel.CENTER);\n this.countLabel = new JLabel(\"Available: \"\n + String.valueOf(this.getAvailablePersons()), JLabel.CENTER);\n this.totalLabel = new JLabel(\"Total: \"\n + String.valueOf(this.getTotalPersons()), JLabel.CENTER);\n\n // Allow for colorization of JLabel backgrounds\n this.skillLabel.setOpaque(true);\n this.portLabel.setOpaque(true);\n this.countLabel.setOpaque(true);\n this.totalLabel.setOpaque(true);\n\n // Add background colorization\n this.skillLabel.setBackground(Color.WHITE);\n this.portLabel.setBackground(Color.WHITE);\n this.countLabel.setBackground(Color.WHITE);\n this.totalLabel.setBackground(Color.WHITE);\n\n // Add JTable-esque borders\n this.skillLabel.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n this.portLabel.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n this.countLabel.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n this.totalLabel.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n\n // Add elements to the pseudo-row\n this.rowPanel.add(this.skillLabel);\n this.rowPanel.add(this.portLabel);\n this.rowPanel.add(this.countLabel);\n this.rowPanel.add(this.totalLabel);\n\n return this.rowPanel;\n }", "protected Panel createButtonPanel() {\n Panel panel = new Panel();\n panel.setLayout(new PaletteLayout(2, new Point(2,2), false));\n return panel;\n }", "private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}", "public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "public PanelMethodSEDN(){}", "public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }", "public DataControl(int _maxRows, int _maxColumns, String _rowName, String _columnName, final boolean fractionD) {\r\n\t\tthis.maxRows = _maxRows;\r\n\t\tthis.maxColumns = _maxColumns;\r\n\t\tthis.rowName = _rowName;\r\n\t\tthis.columnName = _columnName;\r\n\t\tthis.firstRow = 1;\r\n\t\tthis.lastRow = Math.min(10, maxRows);\r\n\t\tthis.firstColumn = 1;\r\n\t\tthis.lastColumn = Math.min(10, maxColumns);\r\n\r\n\t\t// data control\r\n\t\tGridBagLayout gridBag = new GridBagLayout();\r\n\t\tGridBagConstraints c = new GridBagConstraints();\r\n\t\tc.fill = GridBagConstraints.BOTH;\r\n\t\tc.gridwidth = GridBagConstraints.REMAINDER;\r\n\t\tc.insets = new Insets(2, 2, 2, 2);\r\n\t\tsetLayout(gridBag);\r\n\r\n\t\t// example range\r\n\t\trowCounter = new JLabel(\"Number of \" + rowName + \"s: \" + maxRows);\r\n\t\tgridBag.setConstraints(rowCounter, c);\r\n\t\tadd(rowCounter);\r\n\r\n\t\tcolumnCounter = new JLabel(\"Number of \" + columnName + \"s: \" + maxColumns);\r\n\t\tgridBag.setConstraints(columnCounter, c);\r\n\t\tadd(columnCounter);\r\n\r\n\t\tJLabel label = new JLabel(rowName + \" range:\");\r\n\t\tgridBag.setConstraints(label, c);\r\n\t\tadd(label);\r\n\r\n\t\tc.gridwidth = GridBagConstraints.RELATIVE;\r\n\t\tlabel = new JLabel(\"from:\");\r\n\t\tgridBag.setConstraints(label, c);\r\n\t\tadd(label);\r\n\r\n\t\tfromRowField = new JTextField(firstRow + \"\");\r\n\t\tfromRowField.setToolTipText(\"The first \" + rowName + \" which is shown.\");\r\n\t\tc.weightx = 1.0;\r\n\t\tc.gridwidth = GridBagConstraints.REMAINDER;\r\n\t\tgridBag.setConstraints(fromRowField, c);\r\n\t\tadd(fromRowField);\r\n\r\n\t\tc.gridwidth = GridBagConstraints.RELATIVE;\r\n\t\tc.weightx = 0.0;\r\n\t\tlabel = new JLabel(\"to:\");\r\n\t\tgridBag.setConstraints(label, c);\r\n\t\tadd(label);\r\n\r\n\t\ttoRowField = new JTextField(lastRow + \"\");\r\n\t\ttoRowField.setToolTipText(\"The last \" + rowName + \" which is shown.\");\r\n\t\tc.weightx = 1.0;\r\n\t\tc.gridwidth = GridBagConstraints.REMAINDER;\r\n\t\tgridBag.setConstraints(toRowField, c);\r\n\t\tadd(toRowField);\r\n\r\n\t\tJLabel fillLabel = new JLabel(\"\");\r\n\t\tgridBag.setConstraints(fillLabel, c);\r\n\t\tadd(fillLabel);\r\n\r\n\t\t// attribute range\r\n\t\tlabel = new JLabel(columnName + \" range:\");\r\n\t\tgridBag.setConstraints(label, c);\r\n\t\tadd(label);\r\n\r\n\t\tc.gridwidth = GridBagConstraints.RELATIVE;\r\n\t\tlabel = new JLabel(\"from:\");\r\n\t\tgridBag.setConstraints(label, c);\r\n\t\tadd(label);\r\n\r\n\t\tfromColumnField = new JTextField(firstColumn + \"\");\r\n\t\tfromColumnField.setToolTipText(\"The first \" + columnName + \" which is shown.\");\r\n\t\tc.weightx = 1.0;\r\n\t\tc.gridwidth = GridBagConstraints.REMAINDER;\r\n\t\tgridBag.setConstraints(fromColumnField, c);\r\n\t\tadd(fromColumnField);\r\n\r\n\t\tc.gridwidth = GridBagConstraints.RELATIVE;\r\n\t\tc.weightx = 0.0;\r\n\t\tlabel = new JLabel(\"to:\");\r\n\t\tgridBag.setConstraints(label, c);\r\n\t\tadd(label);\r\n\r\n\t\ttoColumnField = new JTextField(lastColumn + \"\");\r\n\t\ttoColumnField.setToolTipText(\"The last \" + columnName + \" which is shown.\");\r\n\t\tc.weightx = 1.0;\r\n\t\tc.gridwidth = GridBagConstraints.REMAINDER;\r\n\t\tgridBag.setConstraints(toColumnField, c);\r\n\t\tadd(toColumnField);\r\n\r\n\t\t// fraction digits\r\n\t\tif (fractionD) {\r\n\t\t\tlabel = new JLabel(\"Fraction digits:\");\r\n\t\t\tc.weightx = 0.0;\r\n\t\t\tgridBag.setConstraints(label, c);\r\n\t\t\tadd(label);\r\n\r\n\t\t\tc.weightx = 1.0;\r\n\t\t\tfractionDigits = 3;\r\n\t\t\ttry {\r\n\t\t\t\tString numberDigitsString = System.getProperty(RapidMiner.PROPERTY_RAPIDMINER_GENERAL_FRACTIONDIGITS_NUMBERS);\r\n\t\t\t\tif (numberDigitsString != null)\r\n\t\t\t\t\tfractionDigits = Integer.parseInt(numberDigitsString);\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\tLogService.getGlobal().log(\"Bad integer format in property 'rapidminer.gui.fractiondigits.numbers', using default number of fraction digits (3).\", LogService.WARNING);\r\n\t\t\t}\r\n\t\t\tfractionDigitsField = new JTextField(fractionDigits + \"\");\r\n\t\t\tfractionDigitsField.setToolTipText(\"The number of fraction digits which is used for numerical values.\");\r\n\t\t\tgridBag.setConstraints(fractionDigitsField, c);\r\n\t\t\tadd(fractionDigitsField);\r\n\t\t}\r\n\r\n\t\t// update button\r\n\t\tc.weightx = 1.0;\r\n\t\tJButton updateButton = new JButton(\"Update\");\r\n\t\tupdateButton.setToolTipText(\"Update the view.\");\r\n\t\tupdateButton.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// generic range checks\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint newFirstRow = Integer.parseInt(fromRowField.getText());\r\n\t\t\t\t\tif ((newFirstRow >= 1) && (newFirstRow < maxRows))\r\n\t\t\t\t\t\tfirstRow = newFirstRow;\r\n\t\t\t\t} catch (NumberFormatException ex) {} finally {\r\n\t\t\t\t\tfromRowField.setText(firstRow + \"\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint newLastRow = Integer.parseInt(toRowField.getText());\r\n\t\t\t\t\tif ((newLastRow >= 1) && (newLastRow <= maxRows))\r\n\t\t\t\t\t\tlastRow = newLastRow;\r\n\t\t\t\t} catch (NumberFormatException ex) {} finally {\r\n\t\t\t\t\ttoRowField.setText(lastRow + \"\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint newFirstColumn = Integer.parseInt(fromColumnField.getText());\r\n\t\t\t\t\tif ((newFirstColumn >= 1) && (newFirstColumn < maxColumns))\r\n\t\t\t\t\t\tfirstColumn = newFirstColumn;\r\n\t\t\t\t} catch (NumberFormatException ex) {} finally {\r\n\t\t\t\t\tfromColumnField.setText(firstColumn + \"\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint newLastColumn = Integer.parseInt(toColumnField.getText());\r\n\t\t\t\t\tif ((newLastColumn >= 1) && (newLastColumn <= maxColumns))\r\n\t\t\t\t\t\tlastColumn = newLastColumn;\r\n\t\t\t\t} catch (NumberFormatException ex) {} finally {\r\n\t\t\t\t\ttoColumnField.setText(lastColumn + \"\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (fractionD) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tint newFractionDigits = Integer.parseInt(fractionDigitsField.getText());\r\n\t\t\t\t\t\tif (newFractionDigits >= 0)\r\n\t\t\t\t\t\t\tfractionDigits = newFractionDigits;\r\n\t\t\t\t\t} catch (NumberFormatException ex) {} finally {\r\n\t\t\t\t\t\tfractionDigitsField.setText(fractionDigits + \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// sanity checks\r\n\t\t\t\tif (firstRow > lastRow) {\r\n\t\t\t\t\tfirstRow = lastRow;\r\n\t\t\t\t\tfromRowField.setText(firstRow + \"\");\r\n\t\t\t\t}\r\n\t\t\t\tif (firstColumn > lastColumn) {\r\n\t\t\t\t\tfirstColumn = lastColumn;\r\n\t\t\t\t\tfromColumnField.setText(firstColumn + \"\");\r\n\t\t\t\t}\r\n\t\t\t\tupdate();\r\n\t\t\t}\r\n\t\t});\r\n\t\tgridBag.setConstraints(updateButton, c);\r\n\t\tadd(updateButton);\r\n\r\n\t\tc.weighty = 1.0;\r\n\t\tfillLabel = new JLabel(\"\");\r\n\t\tgridBag.setConstraints(fillLabel, c);\r\n\t\tadd(fillLabel);\r\n\t}", "private void buildTablePanel() {\n \t\tJPanel panel = new JPanel();\n \t\t\n \t\t// settings:\n \t\theader.setReorderingAllowed(false); // no moving.\n \t\ttable.setColumnSelectionAllowed(true);\n \t\ttable.setRowSelectionAllowed(true);\n \t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n \t\t\n \t\theader.addMouseListener(tableModel.new SortColumnAdapter());\n \t\t\t\n \t\tTableCellRenderer renderer = new TableCellRenderer() {\n \n \t\t\tJLabel label = new JLabel();\n \t\t\t\n \t\t\t@Override\n \t public JComponent getTableCellRendererComponent(JTable table,\n \t Object value, boolean isSelected, boolean hasFocus,\n \t int row, int column) {\n \t \n \t\t\t\tif (table.isRowSelected(row)) {\n \t\t\t\t\tlabel.setBackground(Color.RED);\n \t\t\t\t} else {\n \t\t\t\t\tlabel.setBackground(UIManager.getColor(\"Table.background\"));\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tlabel.setOpaque(true);\n \t\t\t\tlabel.setText(\"\" + value);\n \t\t\t\t\n \t return label;\n \t }\n \n \t };\n \t table.setDefaultRenderer(Object.class, renderer);\n \t \n \t JScrollPane scroll = new JScrollPane(table);\n \t\t\n \t\tpanel.setLayout(new BorderLayout(5, 5));\n \t\tpanel.add(scroll, BorderLayout.CENTER);\n \t \n \t add(panel, BorderLayout.CENTER);\n \t}" ]
[ "0.67202187", "0.6715861", "0.6635463", "0.6515697", "0.6437531", "0.63711596", "0.62620384", "0.61747783", "0.6151843", "0.60135347", "0.59881604", "0.5983102", "0.59761", "0.5965878", "0.59628797", "0.5925524", "0.59146535", "0.5899575", "0.58871114", "0.58370405", "0.58255094", "0.58128715", "0.5804859", "0.5804603", "0.5760182", "0.5759433", "0.5748987", "0.5747072", "0.5734779", "0.5731514", "0.57237643", "0.57149464", "0.5703218", "0.5693367", "0.569106", "0.56905454", "0.56902385", "0.5686414", "0.56812805", "0.56500936", "0.56255877", "0.5615265", "0.56102103", "0.5593222", "0.5587154", "0.55772334", "0.5577006", "0.5575528", "0.5567314", "0.5554499", "0.5554105", "0.5553454", "0.55271316", "0.5520598", "0.5520042", "0.5503971", "0.549423", "0.54902405", "0.54871696", "0.5480517", "0.5479358", "0.5469609", "0.546376", "0.54478604", "0.5444818", "0.54419094", "0.54309714", "0.5424755", "0.5424199", "0.5417555", "0.54157823", "0.5414916", "0.54147184", "0.54141575", "0.5413099", "0.5408746", "0.54078543", "0.5405757", "0.54054624", "0.53896135", "0.53854114", "0.538061", "0.53702134", "0.53694636", "0.53662413", "0.5361877", "0.53582937", "0.5357151", "0.53502375", "0.5344394", "0.53415614", "0.5334128", "0.53337246", "0.53331053", "0.53330094", "0.53031725", "0.5302243", "0.53000814", "0.5298342", "0.52967143" ]
0.6096942
9
Creates a status panel
private void createStatusPanel(final Composite pp) { // // Create status panel // statusPanel = new Composite(pp, SWT.NONE); statusPanel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); GridLayout layout = new GridLayout(); layout.numColumns = 3; layout.horizontalSpacing = 5; layout.verticalSpacing = 0; layout.marginWidth = 0; layout.marginHeight = 0; statusPanel.setLayout(layout); // // Create status sub-panels // createOffsetPanel(statusPanel); createValuePanel(statusPanel); createFileSizePanel(statusPanel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createStatusPanel(JobStatusPanel jobStatusPanel) {\n\t\tthis.jobStatusPanel = jobStatusPanel;\n\t\tthis.jobStatusPanel.setWidth(710);\n\t\tthis.jobStatusPanel.setVisible(false);\n\n\t\tthis.jobStatusFieldSet.add(this.jobStatusPanel);\n\t}", "private void createStatusBar() {\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(1, 4));\r\n\t\t\r\n\t\tlengthLab = new JLabel(\"Length: 0\");\r\n\t\tlengthLab.setForeground(Color.GRAY);\r\n\t\tlengthLab.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tpanel.add(lengthLab);\r\n\t\t\r\n\t\tlnLab = new JLabel(\"Ln: 0\");\r\n\t\tlnLab.setForeground(Color.GRAY);\r\n\t\tlnLab.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tpanel.add(lnLab);\r\n\t\t\r\n\t\tcolLab = new JLabel(\"Col: 1\");\r\n\t\tcolLab.setForeground(Color.GRAY);\r\n\t\tcolLab.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tpanel.add(colLab);\r\n\t\t\r\n\t selLab = new JLabel(\"Sel: 0\");\r\n\t\tselLab.setForeground(Color.GRAY);\r\n\t\tselLab.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tpanel.add(selLab);\r\n\t\t\r\n\t\tJLabel clock = new JLabel(new Date().toString());\r\n\t\tclock.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tpanel.add(clock, BorderLayout.PAGE_END);\r\n\t\ttimer = new Timer(100, (e) -> { \r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\tclock.setText(sdf.format(new Date()));\r\n\t\t});\r\n\t\ttimer.start();\r\n\t\t\r\n\t\tgetContentPane().add(panel, BorderLayout.PAGE_END);\r\n\t}", "private void $$$setupUI$$$() {\n statusPanel = new JPanel();\n statusPanel.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status Label\");\n statusPanel.add(statusLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JSeparator separator1 = new JSeparator();\n statusPanel.add(separator1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }", "private void prepareStatus() {\n clock = new JLabel(new Date().toString());\n statusPanel = new JPanel();\n statusPanel.setBorder(new BevelBorder(BevelBorder.LOWERED));\n this.add(statusPanel, BorderLayout.SOUTH);\n statusPanel.setPreferredSize(new Dimension(this.getWidth(), 16));\n statusPanel.setLayout(new BoxLayout(statusPanel, BoxLayout.X_AXIS));\n statusLabel = new JLabel(\"status\");\n statusLabel.setHorizontalAlignment(SwingConstants.LEFT);\n statusPanel.add(statusLabel);\n statusPanel.add(new JLabel(\" \"));\n clock.setHorizontalAlignment(SwingConstants.RIGHT);\n statusPanel.add(clock);\n \n ActionListener updateClockAction = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n clock.setText(new Date().toString()); \n }\n };\n Timer t = new Timer(1000, updateClockAction);\n t.start();\n }", "private Component getStatusBar() {\n\t\tJPanel statusBar = new JPanel();\n\t\tstatusBar.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\n\t\tstatusLabel = new JLabel(\"Status: \");\n\t\tstatusLabel.setFont(new Font(\"SansSerif\", Font.ITALIC, 11));\n\t\tstatusBar.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\tstatusBar.add(statusLabel);\n\t\tstatusBar.setBorder(BorderFactory.createEmptyBorder(2, 4, 2, 4));\n\t\treturn statusBar;\n\t}", "public RSPStatusPanel() \n {\n initComponents();\n }", "public void createStatusBar(JPanel bar) {\n bar.setPreferredSize(new Dimension(getWidth(), 25));\n bar.setBackground(Color.LIGHT_GRAY);\n\n // add into container\n bar.add(paintModule.sizeLabel);\n bar.add(paintModule.coordinate);\n\n }", "public void constructInfoPeriodPanel() {\n Runnable doUpdate = new Runnable() {\n public void run() {\n infoPanel.removeAll();\n infoPanel.setLayout(new GridLayout(1, 2));\n \n JPanel timePanel = new JPanel();\n timeLabel = new JLabel();\n timeLabel.setForeground(new Color(0, 51, 102));\n timeLabel.setText(\"<html>Period Time Remaining: <font color=#993333>N/A</font></html>\");\n timePanel.add(timeLabel);\n \n \n infoPanel.add(timePanel);\n \n JPanel backlogPanel = new JPanel();\n backlogLabel = new JLabel();\n backlogLabel.setForeground(new Color(0, 51, 102));\n backlogLabel.setText(\"<html>Offer Backlog: <font color=#993333>0</font></html>\");\n backlogPanel.add(backlogLabel);\n \n infoPanel.add(backlogPanel);\n }\n };\n SwingUtilities.invokeLater(doUpdate);\n }", "private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}", "private void displayStatusPanel(String message, String title, int status) {\n JOptionPane.showMessageDialog(mainPanel, message, title, status);\n }", "public StatusBar() {\r\n setLayout(new BorderLayout());\r\n setPreferredSize(new Dimension(100, 20));\r\n panel = new WebPanel();\r\n BoxLayout boxLayout = new BoxLayout(panel, BoxLayout.LINE_AXIS);\r\n panel.setLayout(boxLayout);\r\n panel.add(Box.createHorizontalGlue());\r\n add(panel, BorderLayout.CENTER);\r\n setVisible(false);\r\n }", "public JStatusbarFrame(String title) {\r\n super(title);\r\n Container cp = super.getContentPane();\r\n cp.setLayout(new BorderLayout());\r\n cp.add(pClient = new JPanel(), BorderLayout.CENTER);\r\n cp.add(lbStatusbar = new JLabel(), BorderLayout.SOUTH);\r\n }", "private void createUpdatePanel()\n\t{\n\t\tsettingPane=new JPanel();\n\t\tsettingPane.setLayout(new BoxLayout(settingPane, BoxLayout.Y_AXIS));\n\t\t\n\t\t//************************update pane*****************************//\n\t\tJPanel updatePane=new JPanel();\n\t\tupdatePane.setLayout(new FlowLayout(FlowLayout.CENTER,30,5));\n\t\tBorder setBorder=BorderFactory.createTitledBorder(\"Settings\");\n\t\tupdatePane.setBorder(setBorder);\n\t\t\n\t\tlblStatus=new JLabel();\n\t\t\n\t\t//chkOff=new JCheckBox(\"OFF\");\n\t\t//chkOn=new JCheckBox(\"ON\");\n\t\tbtnOn=new JButton(\"ON\");\n\t\tbtnOff=new JButton(\"OFF\");\n\t\t\n\t\t//On button click\n\t\tbtnOn.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString message;\n\t\t\t\tif(isSprinklerSelected)//Sprinkler\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn on this sprinkler now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t//update status=on to db\n\t\t\t\t\t\tsprinklerService.updateSprinklerStatus(selectedId, SprinklerStatus.ON.toString());\n\t\t\t\t\t\t\n\t\t\t\t\t\tint sprinklerId=sprinklerService.getSprinklerByName(selectedId).getSprinklerId();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//add sprinklerRunTime - start time.\n\t\t\t\t\t\tint runTimeId=sprinklerService.addSprinklerRunTime(sprinklerId);\n\t\t\t\t\t\t//set timer to turn off this sprinkler after a fixed time\n\t\t\t\t\t\tturnOffDelayTimer(runTimeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//refresh update pane for sprinkler\n\t\t\t\t\t\tpopulateSprinklerStatus();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse//group\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn on this sprinkler group now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t//update status=on to db\n\t\t\t\t\t\tsprinklerGroup.updateSprinklerGroupStatus(selectedId, SprinklerStatus.ON.toString());\n\t\t\t\t\t\t//set timer to turn off this group after a fixed time\n\t\t\t\t\t\t\n\t\t\t\t\t\tSprinklerGroup gService=new SprinklerGroup();\n\t\t\t\t\t\tint groupId=gService.getSprinklerGroupByName(selectedId).getGroupId();\n\t\t\t\t\t\t//add groupRunTime - start time\n\t\t\t\t\t\tint gRunTimeId=sprinklerService.addGroupRunTime(groupId);\n\t\t\t\t\t\tturnOffDelayTimer(gRunTimeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//refresh update pane for group\n\t\t\t\t\t\tpopulateGroupStatus();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Off button click\n\t\tbtnOff.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// turn off the sprinkler/group\n\t\t\t\t\n\t\t\t\tString message;\n\t\t\t\tif(isSprinklerSelected)//Sprinkler\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn off this sprinkler now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t//update status=off to db\n\t\t\t\t\t\tsprinklerService.updateSprinklerStatus(selectedId, SprinklerStatus.OFF.toString());\n\t\t\t\t\t\t//update sprinkler run time - end_time\n\t\t\t\t\t\tint sprinklerId=sprinklerService.getSprinklerByName(selectedId).getSprinklerId();\n\t\t\t\t\t\tint runTimeId=sprinklerService.getSprinklerRunTimeToUpdate(sprinklerId).getId();\n\t\t\t\t\t\tsprinklerService.updateSprinklerRunTime(runTimeId);\n\t\t\t\t\t\t//refresh update pane for sprinkler\n\t\t\t\t\t\tpopulateSprinklerStatus();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse//group\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn off this sprinkler group now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t//update status=off to db\n\t\t\t\t\t\tsprinklerGroup.updateSprinklerGroupStatus(selectedId, SprinklerStatus.OFF.toString());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//update group run time - end_time\n\t\t\t\t\t\tint groupId=sprinklerGroup.getSprinklerGroupByName(selectedId).getGroupId();\n\t\t\t\t\t\tint gRunTimeId=sprinklerService.getGroupRunTimeToUpdate(groupId).getGroupId();\n\t\t\t\t\t\tsprinklerService.updateGroupRunTime(gRunTimeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//refresh update pane for group\n\t\t\t\t\t\tpopulateGroupStatus();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tchkFunctional=new JCheckBox(\"Functional\");\n\t\tbtnSave=new JButton(\"Save\");\n\t\t//save button click - only for sprinklers\n\t\tbtnSave.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(isSprinklerSelected)//sprinkler functional data save\n\t\t\t\t{\n\t\t\t\t\tint response;\n\t\t\t\t\tint fn=(chkFunctional.isSelected())?1:0;//functional=1, not-functional=0\n\t\t\t\t\t//handle condition for chkFunctional \n\t\t\t\t\tif(chkFunctional.isSelected())//made it functional\n\t\t\t\t\t{\n\t\t\t\t\t\tresponse = JOptionPane.showConfirmDialog(null, \"Are you sure you want to set this sprinkler as Functional?\", \"Confirm\",\n\t\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//save functional to db\n\t\t\t\t\t\t\tsprinklerService.updateSprinklerFunctional(selectedId, fn);\n\t\t\t\t\t\t\t//show addSetting and schedule panes\n\t\t\t\t\t\t\taddSetting.setVisible(true);\n\t\t\t\t\t\t\t//newWeek.setVisible(true);\n\t\t\t\t\t\t\tschedule.setVisible(true);\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\telse//made it not-functional\n\t\t\t\t\t{\n\t\t\t\t\t\tresponse = JOptionPane.showConfirmDialog(null, \"Are you sure you want to set this sprinkler as Not Functional?\", \"Confirm\",\n\t\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//save not functional and status=off to db\n\t\t\t\t\t\t\tsprinklerService.updateSprinklerFunctional(selectedId, fn);\n\t\t\t\t\t\t\t//disable addSetting and schedule panes\n\t\t\t\t\t\t\taddSetting.setVisible(false);\n\t\t\t\t\t\t\t//newWeek.setVisible(false);\n\t\t\t\t\t\t\tschedule.setVisible(false);\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\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t});\n\t\t\n\t\t/*btnCancel=new JButton(\"Cancel\");\n\t\t//cancel button click\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// Do not update any details. Close the window.\n\t\t\t\tframe.dispose();\t\t\t\n\t\t\t}\n\t\t});*/\n\t\t\n\t\t\n\t\t//group controls in panels\n\t\tJPanel textPane=new JPanel();\n\t\ttextPane.add(lblStatus);\n\t\tJPanel statusPane=new JPanel();\n\t\tstatusPane.add(btnOff);//statusPane.add(chkOff);\n\t\tstatusPane.add(btnOn);//statusPane.add(chkOn);\n\t\tJPanel functionalPane=new JPanel();\n\t\tfunctionalPane.add(chkFunctional);\n\t\t\n\t\t\n\t\t/*updatePane.add(lblStatus);\n\t\tupdatePane.add(chkOff);\n\t\tupdatePane.add(chkOn);\n\t\tupdatePane.add(chkFunctional);*/\n\t\t\n\t\t//add controls to updatepanel\n\t\tupdatePane.add(textPane);\n\t\tupdatePane.add(statusPane);\n\t\tupdatePane.add(functionalPane);\n\t\t//updatePane.add(btnCancel);\n\t\tupdatePane.add(btnSave);\n\t\t//**************************************************************//\n\t\t\n\t\t//*********************addSetting pane**************************//\n\t\taddSetting=new AddSetting(selectedId,isSprinklerSelected);\n\t\t\n\t\taddSetting.setScheduleListener(new ScheduleListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void scheduleAdded() {\n\t\t\t\t// refresh Schedule panel\n\t\t\t\tSystem.out.println(\"3.\"+selectedId);\n\t\t\t\tschedulePane.removeAll();\n\t\t\t\tschedulePane.add(new Schedule(selectedId, isSprinklerSelected));\n\t\t\t\tschedulePane.validate();\n\t\t\t\tschedulePane.repaint();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t//**************************************************************//\n\t\t\n\t\t//add components to setting pane\n\t\tsettingPane.add(updatePane);\n\t\t\n\t\t\n\t\tsettingPane.add(addSetting);\n\t\t\n\t\t\n\t\t\n\t\t//add setting pane to content pane\n\t\tcontentPane.add(settingPane,BorderLayout.SOUTH);\n\t\t\n\t\t\n\t}", "private void buildInfoPanel() {\r\n infoPanel = new JPanel( new GridLayout( 1, 1 ) );\r\n infoBox = Box.createHorizontalBox();\r\n\r\n // setBackground() does NOT work with a Box\r\n infoPanel.setBackground( COLOR_INFO_BKGRND );\r\n\r\n soundBtn = new JButton( Msgs.str( \"Snd.go\" ) );\r\n soundBtn.addActionListener( listener );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( soundBtn );\r\n\r\n resetBtn = new JButton( Msgs.str( \"Reset\" ) );\r\n resetBtn.addActionListener( listener );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( resetBtn );\r\n\r\n infoMesg = new JLabel( Msgs.str( \"Ready\" ), SwingConstants.CENTER );\r\n infoMesg.setFont( fontLARGE );\r\n infoMesg.setForeground( COLOR_INFO_FRGRND );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( infoMesg );\r\n infoBox.add( Box.createGlue() );\r\n\r\n infoPanel.add( infoBox );\r\n }", "@Override\n\tpublic StatusBar createStatusBar() {\n\t\tLightVisualThemeStatusBar lightVisualThemeStatusBar = new LightVisualThemeStatusBar();\n\t\treturn lightVisualThemeStatusBar;\n\t}", "private Panel buildTimeOutWarningPanel(){\n\t\ttimeOutPanel = new HorizontalPanel();\n\t\ttimeOutPanel.getElement().setAttribute(\"id\", \"timeOutContainer\");\n\t\ttimeOutPanel.getElement().setAttribute(\"aria-role\", \"warningBannerWidget\");\n\t\ttimeOutPanel.getElement().setAttribute(\"aria-labelledby\", \"LiveRegion\");\n\t\ttimeOutPanel.getElement().setAttribute(\"aria-live\", \"assertive\");\n\t\ttimeOutPanel.getElement().setAttribute(\"aria-atomic\", \"true\");\n\t\ttimeOutPanel.getElement().setAttribute(\"aria-relevant\", \"all\");\n\t\ttimeOutPanel.setStylePrimaryName(\"mainContentPanel\");\n\t\tsetId(timeOutPanel, \"timeOutContainer\");\n\t\twarningBannerWidget.setStyleName(\"padLeft5px\");\n\t\talertIcon.setTitle(\"Information\");\n\t\ttimeOutPanel.add(alertIcon);\n\t\ttimeOutPanel.add(warningBannerWidget);\n\t\ttimeOutPanel.setStyleName(\"alertMessage\");\n\t\treturn timeOutPanel;\n\t}", "public static JPanel getChangeRequestStatusPanel(){\n JPanel additionalRequests = new JPanel();\n additionalRequests.setLayout(null);\n\n\n String[] viewTypes = {\"Change Dietary Restrictions Status\", \"Change Accessibility Requirements Status\"};\n JComboBox<String> changeUserRequestsComboBox = new JComboBox<>(viewTypes);\n changeUserRequestsComboBox.setBounds(10, 20, 260, 25);\n changeUserRequestsComboBox.setSelectedIndex(0);\n additionalRequests.add(changeUserRequestsComboBox);\n\n JLabel userID = new JLabel(\"User ID\");\n userID.setBounds(10,80, 100, 25);\n additionalRequests.add(userID);\n\n NumberFormat userIDFormat = NumberFormat.getInstance();\n NumberFormatter userIDFormatter = new NumberFormatter(userIDFormat);\n userIDFormatter.setValueClass(Integer.class);\n userIDFormatter.setMinimum(0);\n userIDFormatter.setMaximum(Integer.MAX_VALUE);\n userIDFormatter.setAllowsInvalid(false);\n userIDFormatter.setCommitsOnValidEdit(true);\n JFormattedTextField userIDDField = new JFormattedTextField(userIDFormatter);\n userIDDField.setBounds(290, 80, 165, 25);\n additionalRequests.add(userIDDField);\n\n JLabel newStatus = new JLabel(\"New Status\");\n newStatus.setBounds(10, 120, 100, 25);\n additionalRequests.add(newStatus);\n\n JTextField newStatusTextField = new JTextField();\n newStatusTextField.setBounds(290, 120, 165, 25);\n additionalRequests.add(newStatusTextField);\n\n JButton confirmButton = new JButton(\"Confirm\");\n confirmButton.setBounds(10, 200, 100, 25);\n additionalRequests.add(confirmButton);\n confirmButton.addActionListener(e -> {\n changeRequestStatusPresenter.changeRequestStatus(\n Integer.parseInt(userIDDField.getText()),\n (String)changeUserRequestsComboBox.getSelectedItem(),\n newStatusTextField.getText());\n changeRequestStatusPresenter.createMessagePopUp(\"Status Changed\");\n });\n\n JButton backButton = new JButton(\"Back\");\n backButton.setBounds(10, 230, 100, 25);\n additionalRequests.add(backButton);\n backButton.addActionListener(e -> mainView.toPanel(\"Menu\"));\n\n JButton signoutButton = new JButton(\"Sign Out\");\n signoutButton.setBounds(10, 260, 100, 25);\n additionalRequests.add(signoutButton);\n signoutButton.addActionListener(e -> SignoutPresenter.signOut());\n\n return additionalRequests;\n }", "private void constructInfoPanel() {\n try {\n Runnable doUpdate = new Runnable() {\n public void run() {\n infoPanel = new JPanel();\n infoPanel.setPreferredSize(relativeSize(0.8f, 0.04f));\n \n infoLabel = new JLabel(\"Waiting for Clients\");\n infoLabel.setForeground(new Color(0, 51, 102));\n infoLabel.setFont(new Font(\"Garamond\", Font.BOLD, 17));\n \n infoPanel.add(infoLabel);\n }\n };\n if (SwingUtilities.isEventDispatchThread())\n doUpdate.run();\n else\n SwingUtilities.invokeAndWait(doUpdate);\n }catch(Exception e) {\n e.printStackTrace();\n }\n }", "private JPanel createPanel(String prompt) {\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n\n\t\tlabel = new GDLabel(prompt);\n\t\tnumberInputField = new IntegerTextField(12);\n\t\tnumberInputField.addChangeListener(e -> updateOKButtonEnablement());\n\n\t\t// Actually assemble the parts into a status panel.\n\t\tpanel.add(label, BorderLayout.WEST);\n\t\tpanel.add(numberInputField.getComponent(), BorderLayout.CENTER);\n\n\t\treturn panel;\n\t}", "public StatsPanel() {\n\t\t\n\t\t//initialize and format components\n\t\tmainPanel.setLayout(null);\n\t\ttopTenTitle = new JLabel(\"Top Ten Records\");\n\t\ttopTenTitle.setForeground(Color.WHITE);\n\t\ttopTenTitle.setBackground(Color.DARK_GRAY);\n\t\tversusTitle = new JLabel(\"Versus Records\");\n\t\tversusTitle.setForeground(Color.WHITE);\n\t\tversusTitle.setBackground(Color.DARK_GRAY);\n\t\tback = new JButton(\"Return to Main Menu\");\n\t\tback.setForeground(Color.WHITE);\n\t\tback.setBackground(Color.DARK_GRAY);\n\t\tback.setOpaque(true);\n\t\tback.setBorderPainted(false);\n\t\ttitle.setForeground(Color.WHITE);\n\t\t\n\t\t//add components to panel\n\t\tmainPanel.add(title);\n\t\tmainPanel.add(topTenTitle);\n\t\tmainPanel.add(versusTitle);\n\t\tmainPanel.add(back);\n\t mainPanel.setOpaque(true);\n\t mainPanel.setBackground(Color.BLACK);\n\t\t\n\t //set the location in layout for all components\n\t\tDimension size = new Dimension(100,25);\n\t\ttopTenTitle.setBounds(150, 140, 200,25);\n\t\tversusTitle.setBounds(600, 140, 200, 25);\n\t\tback.setBounds(350, 450, 200, size.height);\n\t\ttitle.setBounds(385, 25, 200, 100);\n\t}", "private JPanel buildMainPanel() {\n FormLayout layout = new FormLayout(\"pref:grow\",\n \"pref, 3dlu, pref, 3dlu, pref, 12dlu, pref, 3dlu, pref, pref, \"\n + \"pref, pref, 9dlu, pref, 3dlu, pref, \"\n + \"pref, pref, pref, 0:grow, pref\");\n\n PanelBuilder builder = new PanelBuilder(layout);\n // Bottom border\n builder.setBorder(Borders.createEmptyBorder(\"1dlu, 3dlu, 2dlu, 3dlu\"));\n CellConstraints cc = new CellConstraints();\n\n int row = 1;\n\n builder.addSeparator(Translation.getTranslation(\"status_tab.status\"),\n cc.xy(1, row));\n row += 2;\n builder.add(synchronizationStatusLabel, cc.xy(1, row));\n row += 2;\n builder.add(synchronizationDateLabel, cc.xy(1, row));\n row += 2;\n\n builder.addSeparator(Translation.getTranslation(\"status_tab.you_have\"),\n cc.xy(1, row));\n row += 2;\n builder.add(newNoticesLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(filesAvailableLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(downloadsLine.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(uploadsLine.getUIComponent(), cc.xy(1, row));\n row += 2;\n\n builder.addSeparator(\n Translation.getTranslation(\"status_tab.online_storage.title\"),\n cc.xy(1, row));\n row += 2;\n builder.add(onlineStorageAccountLabel.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(onlineStorageSection.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(licenseInfoSection.getUIComponent(), cc.xy(1, row));\n row++;\n builder.add(buyNowLabel.getUIComponent(), cc.xy(1, row));\n if (PreferencesEntry.SHOW_TELL_A_FRIEND\n .getValueBoolean(getController()))\n {\n row += 2;\n builder.add(tellFriendLabel.getUIComponent(), cc.xy(1, row));\n }\n\n return builder.getPanel();\n }", "private void initGUI() {\n statusLabel = new JLabel();\n add(statusLabel);\n updateStatus();\n }", "private javax.swing.JLabel getTxtStatus() {\r\n\t\tif (txtStatus == null) {\r\n\t\t\ttxtStatus = new javax.swing.JLabel();\r\n\t\t\ttxtStatus.setName(\"txtStatus\");\r\n\t\t\ttxtStatus.setText(\"Initializing...\");\r\n\t\t\ttxtStatus.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n\t\t\ttxtStatus.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\r\n\t\t\ttxtStatus.setPreferredSize(new java.awt.Dimension(800,18));\r\n\t\t}\r\n\t\treturn txtStatus;\r\n\t}", "private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n labStatus = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n progressbar = new javax.swing.JProgressBar();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setUndecorated(true);\n\n jPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jPanel1.setLayout(null);\n\n labStatus.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n labStatus.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n labStatus.setText(\"...\");\n jPanel1.add(labStatus);\n labStatus.setBounds(10, 45, 300, 20);\n\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/tnx/commons/agg/view-refresh.png\"))); // NOI18N\n jPanel1.add(jLabel2);\n jLabel2.setBounds(10, 15, 300, 22);\n\n progressbar.setIndeterminate(true);\n jPanel1.add(progressbar);\n progressbar.setBounds(10, 70, 300, 16);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n pack();\n }", "private void makePanelTask() {\r\n if (panelTask == null) {\r\n panelTask = makePanel(jframe, BorderLayout.CENTER,\r\n \"Task Details\", 180, 50, 200, 25);\r\n\r\n JLabel createLabelName = makeJLabel(\"Name: \", 10, 100, 80, 25);\r\n JLabel createLabelDescription = makeJLabel(\"Description: \", 10, 130, 80, 25);\r\n JLabel createLabelDueDate = makeJLabel(\"Due Date: \", 10, 160, 80, 25);\r\n JLabel createLabelPriority = makeJLabel(\"Priority Level: \", 10, 190, 80, 25);\r\n\r\n addToTodoTaskGui(createLabelName, createLabelDescription, createLabelDueDate, createLabelPriority);\r\n\r\n JButton clickSave = makeButton(\"saveTask\", \"Save\", 80, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickSave);\r\n\r\n JButton clickCancel = makeButton(\"cancelTask\", \"Cancel\", 280, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickCancel);\r\n }\r\n }", "protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}", "private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }", "final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }", "private Panel createMessagePanel()\n {\n Panel messagePanel;\n Label product;\n Label version;\n Label copyright;\n\n product = new Label(\"File System Archiver\");\n version = new Label(\"Version \" + Constants.CLIENT_VERSION);\n copyright = new Label(\"Copyright (c) 2001\");\n\n messagePanel = new Panel();\n messagePanel.setLayout(new GridLayout(3, 0));\n\n messagePanel.add(product);\n messagePanel.add(version);\n messagePanel.add(copyright);\n\n messagePanel.setVisible(true);\n\n return messagePanel;\n }", "private JPanel getStatsPanel() {\r\n if (statsPanel == null) {\r\n statsPanel = new JPanel(new BorderLayout());\r\n statsPanel.setBorder(BorderFactory.createTitledBorder(bundle\r\n .getString(\"pnl.stat\")));\r\n statsPanel.add(this.jzvStat);\r\n }\r\n return statsPanel;\r\n }", "private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\n }", "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "private JPanel initButtonPanel() {\n JPanel buttonPanel = new JPanel();\n buttonPanel.setLayout(new FlowLayout(SwingUtilities.HORIZONTAL));\n\n completeButton = new JButton(new AbstractAction(\"Complete\") {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n task.setStatus(TaskStatus.COMPLETED);\n dialog.setVisible(false);\n }\n });\n buttonPanel.add(completeButton);\n\n closeButton = new JButton(new AbstractAction(\"Close\") {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n dialog.setVisible(false);\n }\n });\n buttonPanel.add(closeButton);\n\n return buttonPanel;\n }", "public StatusBar() {\n super();\n super.setPreferredSize(new Dimension(100, 16));\n setMessage(\"Ready\");\n }", "private void createStatusIndicator(GridBagConstraints gridBagConstraint) {\r\n statusIndicator.setBorder(BorderFactory.createEmptyBorder(30, 10, 10, 10));\r\n statusIndicator.setBounds(100, 200, 50, 80);\r\n statusIndicator.setBackground(Color.decode(ServerConstants.COLOR_CODE));\r\n gridBagConstraint.fill = GridBagConstraints.HORIZONTAL;\r\n gridBagConstraint.weightx = 1;\r\n gridBagConstraint.gridx = 1;\r\n gridBagConstraint.gridy = 1;\r\n gridBagConstraint.ipady = 0;\r\n gridBagConstraint.insets = new Insets(0, 0, 0, 0);\r\n add(statusIndicator, gridBagConstraint);\r\n }", "public JPanel createPanel(Hospital_Management_System hms)\n\t{\n\t\t//set table settings\n\t\ttable.setColumnSelectionAllowed(false);\n\t\ttable.setRowSelectionAllowed(true);\n\t\ttable.getTableHeader().setEnabled(false);\n\t\ttable.setRowHeight(50);\n\t\ttable.setEnabled(true);\n\t\ttable.getTableHeader().setReorderingAllowed(false);\n\t\tJScrollPane tableContainer = new JScrollPane(table);\n\t\ttableContainer.setLocation(86, 244);\n\t\ttableContainer.setSize(1746, 700);\n\t\t//initialize the panel layout and size\n\t\tJPanel patientListPanel = new JPanel();\n\t\tpatientListPanel.setLayout(null);\n\t\tpatientListPanel.setBounds(0, 0, 1920, 1080);\n\t\t//set background\n\t\tJLabel lblBackground = new JLabel();\n\t\tlblBackground.setIcon(new ImageIcon(PatientListPanel.class.getResource(\"/graphics/list_background.png\")));\n\t\tlblBackground.setBounds(0, 0, 1920, 1080);\n\t\t/*\n\t\t * HEADER MESSAGE\n\t\t */\n\t\tJLabel lblWelcomeBackAdministrator = new JLabel(\"Welcome Back!\");\n\t\tlblWelcomeBackAdministrator.setFont(bArial);\n\t\tlblWelcomeBackAdministrator.setBounds(166, 29, 510, 26);\n\t\t/*\n\t\t * DATE DISPLAYED BELOW HEADER\n\t\t */\n\t\tDateFormat df = new SimpleDateFormat(\"EEE MMM dd, yyyy\");\n\t\tDate today = new Date();\n\t\tJLabel date = new JLabel(\"Today is: \"+df.format(today));\n\t\tdate.setFont(new Font(\"Calibri Light\", Font.PLAIN, 26));\n\t\tdate.setBounds(166, 87, 560, 26);\n\t\t/*\n\t\t * RETURN BUTTON\n\t\t */\n\t\tJButton btnReturn = new JButton(\"Return\");\n\t\tbtnReturn.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tif(hms.getAccessFrom() == \"Admin\")\n\t\t\t\t{\n\t\t\t\t\thms.displayPatientManagementPage();\n\t\t\t\t}\n\t\t\t\telse if(hms.getAccessFrom() == \"Employee\")\n\t\t\t\t{\n\t\t\t\t\thms.displayEmployeeMainPage();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnReturn.setFont(new Font(\"Arial\", Font.BOLD, 16));\n\t\tbtnReturn.setBounds(725, 955, 500, 59);\n\t\t/*\n\t\t * FILTER TEXTBOX\n\t\t */\n\t\tJTextField filterField = RowFilterUtil.createRowFilter(table);\n\t\tfilterField.setFont(new Font(\"Arial\", Font.BOLD, 24));\n\t\tfilterField.setColumns(10);\n\t\tfilterField.setBounds(265, 955, 300, 59);\n\t\t/*\n\t\t * SEARCH LABEL\t\t\n\t\t */\n\t\tJLabel lbSearch = new JLabel(\"Search:\");\n\t\tlbSearch.setFont(new Font(\"Arial\", Font.BOLD, 28));\n\t\tlbSearch.setBounds(125, 955, 300, 59);\n\t\t//add all the components to panel\n\t\tpatientListPanel.add(btnReturn);\n\t\tpatientListPanel.add(tableContainer, BorderLayout.CENTER);\n\t\tpatientListPanel.add(lblWelcomeBackAdministrator);\n\t\tpatientListPanel.add(date);\n\t\tpatientListPanel.add(filterField);\n\t\tpatientListPanel.add(lbSearch);\n\t\tpatientListPanel.add(lblBackground);\n\t\t\n\t\treturn patientListPanel;\n\t}", "private void makePanelList() {\r\n if (panelList == null) {\r\n panelList = makePanel(jframe, BorderLayout.CENTER,\r\n \"List of Tasks\", 180, 50, 200, 25);\r\n list = makeList(10, 10, 100, 470, 500);\r\n\r\n JButton clickUpdate = makeButton(\"updateTask\", \"Update\",\r\n 20, 620, 100, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton clickDelete = makeButton(\"deleteTask\", \"Delete\",\r\n 125, 620, 100, 25, JComponent.CENTER_ALIGNMENT, null);\r\n\r\n JButton clickComplete = makeButton(\"completeTask\", \"Complete\",\r\n 230, 620, 100, 25, JComponent.CENTER_ALIGNMENT, null);\r\n\r\n JButton clickIncomplete = makeButton(\"IncompleteTask\", \"UndoComplete\",\r\n 335, 620, 130, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton clickCreate = makeButton(\"newTask\", \"Create A Task\",\r\n 175, 670, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton showComplete = makeButton(\"showComplete\", \"Show Completed\",\r\n 175, 700, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n showComplete.getModel().setPressed(showCompleted);\r\n\r\n JButton clickSave = makeButton(\"saveTodo\", \"Save List\",\r\n 175, 730, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n addElementsToPanelList(list, clickUpdate, clickDelete, clickComplete, clickIncomplete, clickCreate,\r\n showComplete, clickSave);\r\n }\r\n }", "public PanelControl() {\r\n initComponents();\r\n VersionEImageIcon versionEImageIcon = new VersionEImageIcon();\r\n versionEImageIcon.newColorFromPanel(panelColor);\r\n jLabel1.setText(INFO_LABEL);\r\n Usuario usuarioTipo = Login.getUsuario();\r\n this.administrador = usuarioTipo.isAdmin();\r\n if (!administrador)\r\n {\r\n rangos.setEnabled(false);\r\n controles.setEnabled(false);\r\n alta_usuarios.setEnabled(false);\r\n verificacion.setEnabled(false);\r\n }\r\n }", "protected void setupStatusBar() {\r\n\t\tStatusBar statusBar = new StatusBar() {\r\n\t\t\tprivate static final long serialVersionUID = -8334549384792867496L;\r\n\r\n\t\t\t@Override\r\n\t\t\tprotected String makeAngleDescription(String label, Angle angle) {\r\n\t\t\t\tString s;\r\n\t\t\t\tif (Angle.ANGLE_FORMAT_DMS.equals(getAngleFormat()))\r\n\t\t\t\t\ts = String.format(\"%s %s\", label, angle.toDMSString());\r\n\t\t\t\telse\r\n\t\t\t\t\ts = String.format(\"%s %,.6f\\u00B0\", label, angle.degrees);\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * Overridden to capture the current altitude.\r\n\t\t\t */\r\n\t\t\t@Override\r\n\t\t\tprotected String makeEyeAltitudeDescription(double metersAltitude){\r\n\t\t\t\t//System.out.println(\"metersAltitude: \"+ metersAltitude);\r\n\t\t\t\tsetCurrentAltitude(metersAltitude);\r\n\t\t\t\treturn super.makeEyeAltitudeDescription(metersAltitude);\r\n\t\t\t}\r\n\t\t};\r\n\t\tadd(statusBar, BorderLayout.PAGE_END);\r\n\t\tstatusBar.setEventSource(getWWD());\r\n\t}", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "private void createUI(Container pane) {\n try {\n setupTrayIcon();\n } catch (Exception e) { }\n\n EmptyBorder emptyBorder = new EmptyBorder(5, 5, 5, 5);\n GridBagConstraints gbc = new GridBagConstraints();\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weightx = 1; gbc.ipadx = 2; gbc.gridx = 0;\n gbc.weighty = 0; gbc.ipady = 2; gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.PAGE_START;\n\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {\n LOGGER.error(\"[!] Exception setting system theme:\", e);\n }\n\n ripTextfield = new JTextField(\"\", 20);\n ripTextfield.addMouseListener(new ContextMenuMouseListener());\n ImageIcon ripIcon = new ImageIcon(mainIcon);\n ripButton = new JButton(\"<html><font size=\\\"5\\\"><b>Rip</b></font></html>\", ripIcon);\n stopButton = new JButton(\"<html><font size=\\\"5\\\"><b>Stop</b></font></html>\");\n stopButton.setEnabled(false);\n try {\n Image stopIcon = ImageIO.read(getClass().getClassLoader().getResource(\"stop.png\"));\n stopButton.setIcon(new ImageIcon(stopIcon));\n } catch (Exception ignored) { }\n JPanel ripPanel = new JPanel(new GridBagLayout());\n ripPanel.setBorder(emptyBorder);\n\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weightx = 0;\n gbc.gridx = 0; ripPanel.add(new JLabel(\"URL:\", JLabel.RIGHT), gbc);\n gbc.weightx = 1;\n gbc.weighty = 1;\n gbc.gridx = 1; ripPanel.add(ripTextfield, gbc);\n gbc.weighty = 0;\n gbc.weightx = 0;\n gbc.gridx = 2; ripPanel.add(ripButton, gbc);\n gbc.gridx = 3; ripPanel.add(stopButton, gbc);\n gbc.weightx = 1;\n\n statusLabel = new JLabel(rb.getString(\"inactive\"));\n statusLabel.setHorizontalAlignment(JLabel.CENTER);\n openButton = new JButton();\n openButton.setVisible(false);\n JPanel statusPanel = new JPanel(new GridBagLayout());\n statusPanel.setBorder(emptyBorder);\n\n gbc.gridx = 0; statusPanel.add(statusLabel, gbc);\n gbc.gridy = 1; statusPanel.add(openButton, gbc);\n gbc.gridy = 0;\n\n JPanel progressPanel = new JPanel(new GridBagLayout());\n progressPanel.setBorder(emptyBorder);\n statusProgress = new JProgressBar(0, 100);\n progressPanel.add(statusProgress, gbc);\n\n JPanel optionsPanel = new JPanel(new GridBagLayout());\n optionsPanel.setBorder(emptyBorder);\n optionLog = new JButton(rb.getString(\"Log\"));\n optionHistory = new JButton(rb.getString(\"History\"));\n optionQueue = new JButton(rb.getString(\"Queue\"));\n optionConfiguration = new JButton(rb.getString(\"Configuration\"));\n optionLog.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionHistory.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionQueue.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionConfiguration.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n try {\n Image icon;\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"comment.png\"));\n optionLog.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"time.png\"));\n optionHistory.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"list.png\"));\n optionQueue.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"gear.png\"));\n optionConfiguration.setIcon(new ImageIcon(icon));\n } catch (Exception e) { }\n gbc.gridx = 0; optionsPanel.add(optionLog, gbc);\n gbc.gridx = 1; optionsPanel.add(optionHistory, gbc);\n gbc.gridx = 2; optionsPanel.add(optionQueue, gbc);\n gbc.gridx = 3; optionsPanel.add(optionConfiguration, gbc);\n\n logPanel = new JPanel(new GridBagLayout());\n logPanel.setBorder(emptyBorder);\n logText = new JTextPane();\n logText.setEditable(false);\n JScrollPane logTextScroll = new JScrollPane(logText);\n logTextScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n logPanel.setVisible(false);\n logPanel.setPreferredSize(new Dimension(300, 250));\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n logPanel.add(logTextScroll, gbc);\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weighty = 0;\n\n historyPanel = new JPanel(new GridBagLayout());\n historyPanel.setBorder(emptyBorder);\n historyPanel.setVisible(false);\n historyPanel.setPreferredSize(new Dimension(300, 250));\n historyTableModel = new AbstractTableModel() {\n private static final long serialVersionUID = 1L;\n @Override\n public String getColumnName(int col) {\n return HISTORY.getColumnName(col);\n }\n @Override\n public Class<?> getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }\n @Override\n public Object getValueAt(int row, int col) {\n return HISTORY.getValueAt(row, col);\n }\n @Override\n public int getRowCount() {\n return HISTORY.toList().size();\n }\n @Override\n public int getColumnCount() {\n return HISTORY.getColumnCount();\n }\n @Override\n public boolean isCellEditable(int row, int col) {\n return (col == 0 || col == 4);\n }\n @Override\n public void setValueAt(Object value, int row, int col) {\n if (col == 4) {\n HISTORY.get(row).selected = (Boolean) value;\n historyTableModel.fireTableDataChanged();\n }\n }\n };\n historyTable = new JTable(historyTableModel);\n historyTable.addMouseListener(new HistoryMenuMouseListener());\n historyTable.setAutoCreateRowSorter(true);\n for (int i = 0; i < historyTable.getColumnModel().getColumnCount(); i++) {\n int width = 130; // Default\n switch (i) {\n case 0: // URL\n width = 270;\n break;\n case 3:\n width = 40;\n break;\n case 4:\n width = 15;\n break;\n }\n historyTable.getColumnModel().getColumn(i).setPreferredWidth(width);\n }\n JScrollPane historyTableScrollPane = new JScrollPane(historyTable);\n historyButtonRemove = new JButton(rb.getString(\"remove\"));\n historyButtonClear = new JButton(rb.getString(\"clear\"));\n historyButtonRerip = new JButton(rb.getString(\"re-rip.checked\"));\n gbc.gridx = 0;\n // History List Panel\n JPanel historyTablePanel = new JPanel(new GridBagLayout());\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n historyTablePanel.add(historyTableScrollPane, gbc);\n gbc.ipady = 180;\n gbc.gridy = 0;\n historyPanel.add(historyTablePanel, gbc);\n gbc.ipady = 0;\n JPanel historyButtonPanel = new JPanel(new GridBagLayout());\n historyButtonPanel.setPreferredSize(new Dimension(300, 10));\n historyButtonPanel.setBorder(emptyBorder);\n gbc.gridx = 0; historyButtonPanel.add(historyButtonRemove, gbc);\n gbc.gridx = 1; historyButtonPanel.add(historyButtonClear, gbc);\n gbc.gridx = 2; historyButtonPanel.add(historyButtonRerip, gbc);\n gbc.gridy = 1; gbc.gridx = 0;\n gbc.weighty = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n historyPanel.add(historyButtonPanel, gbc);\n\n queuePanel = new JPanel(new GridBagLayout());\n queuePanel.setBorder(emptyBorder);\n queuePanel.setVisible(false);\n queuePanel.setPreferredSize(new Dimension(300, 250));\n queueListModel = new DefaultListModel();\n JList queueList = new JList(queueListModel);\n queueList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n queueList.addMouseListener(new QueueMenuMouseListener());\n JScrollPane queueListScroll = new JScrollPane(queueList,\n JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n for (String item : Utils.getConfigList(\"queue\")) {\n queueListModel.addElement(item);\n }\n updateQueueLabel();\n gbc.gridx = 0;\n JPanel queueListPanel = new JPanel(new GridBagLayout());\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n queueListPanel.add(queueListScroll, gbc);\n queuePanel.add(queueListPanel, gbc);\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weighty = 0;\n gbc.ipady = 0;\n\n configurationPanel = new JPanel(new GridBagLayout());\n configurationPanel.setBorder(emptyBorder);\n configurationPanel.setVisible(false);\n // TODO Configuration components\n configUpdateButton = new JButton(rb.getString(\"check.for.updates\"));\n configUpdateLabel = new JLabel( rb.getString(\"current.version\") + \": \" + UpdateUtils.getThisJarVersion(), JLabel.RIGHT);\n configThreadsLabel = new JLabel(rb.getString(\"max.download.threads\") + \":\", JLabel.RIGHT);\n configTimeoutLabel = new JLabel(rb.getString(\"timeout.mill\"), JLabel.RIGHT);\n configRetriesLabel = new JLabel(rb.getString(\"retry.download.count\"), JLabel.RIGHT);\n configThreadsText = new JTextField(Integer.toString(Utils.getConfigInteger(\"threads.size\", 3)));\n configTimeoutText = new JTextField(Integer.toString(Utils.getConfigInteger(\"download.timeout\", 60000)));\n configRetriesText = new JTextField(Integer.toString(Utils.getConfigInteger(\"download.retries\", 3)));\n configOverwriteCheckbox = addNewCheckbox(rb.getString(\"overwrite.existing.files\"), \"file.overwrite\", false);\n configAutoupdateCheckbox = addNewCheckbox(rb.getString(\"auto.update\"), \"auto.update\", true);\n configPlaySound = addNewCheckbox(rb.getString(\"sound.when.rip.completes\"), \"play.sound\", false);\n configShowPopup = addNewCheckbox(rb.getString(\"notification.when.rip.starts\"), \"download.show_popup\", false);\n configSaveOrderCheckbox = addNewCheckbox(rb.getString(\"preserve.order\"), \"download.save_order\", true);\n configSaveLogs = addNewCheckbox(rb.getString(\"save.logs\"), \"log.save\", false);\n configSaveURLsOnly = addNewCheckbox(rb.getString(\"save.urls.only\"), \"urls_only.save\", false);\n configSaveAlbumTitles = addNewCheckbox(rb.getString(\"save.album.titles\"), \"album_titles.save\", true);\n configClipboardAutorip = addNewCheckbox(rb.getString(\"autorip.from.clipboard\"), \"clipboard.autorip\", false);\n configSaveDescriptions = addNewCheckbox(rb.getString(\"save.descriptions\"), \"descriptions.save\", true);\n configPreferMp4 = addNewCheckbox(rb.getString(\"prefer.mp4.over.gif\"),\"prefer.mp4\", false);\n configWindowPosition = addNewCheckbox(rb.getString(\"restore.window.position\"), \"window.position\", true);\n configURLHistoryCheckbox = addNewCheckbox(rb.getString(\"remember.url.history\"), \"remember.url_history\", true);\n configUrlFileChooserButton = new JButton(rb.getString(\"download.url.list\"));\n\n configLogLevelCombobox = new JComboBox<>(new String[] {\"Log level: Error\", \"Log level: Warn\", \"Log level: Info\", \"Log level: Debug\"});\n configSelectLangComboBox = new JComboBox<>(supportedLanges);\n configLogLevelCombobox.setSelectedItem(Utils.getConfigString(\"log.level\", \"Log level: Debug\"));\n setLogLevel(configLogLevelCombobox.getSelectedItem().toString());\n configSaveDirLabel = new JLabel();\n try {\n String workingDir = (Utils.shortenPath(Utils.getWorkingDirectory()));\n configSaveDirLabel.setText(workingDir);\n configSaveDirLabel.setForeground(Color.BLUE);\n configSaveDirLabel.setCursor(new Cursor(Cursor.HAND_CURSOR));\n } catch (Exception e) { }\n configSaveDirLabel.setToolTipText(configSaveDirLabel.getText());\n configSaveDirLabel.setHorizontalAlignment(JLabel.RIGHT);\n configSaveDirButton = new JButton(rb.getString(\"select.save.dir\") + \"...\");\n\n addItemToConfigGridBagConstraints(gbc, 0, configUpdateLabel, configUpdateButton);\n addItemToConfigGridBagConstraints(gbc, 1, configAutoupdateCheckbox, configLogLevelCombobox);\n addItemToConfigGridBagConstraints(gbc, 2, configThreadsLabel, configThreadsText);\n addItemToConfigGridBagConstraints(gbc, 3, configTimeoutLabel, configTimeoutText);\n addItemToConfigGridBagConstraints(gbc, 4, configRetriesLabel, configRetriesText);\n addItemToConfigGridBagConstraints(gbc, 5, configOverwriteCheckbox, configSaveOrderCheckbox);\n addItemToConfigGridBagConstraints(gbc, 6, configPlaySound, configSaveLogs);\n addItemToConfigGridBagConstraints(gbc, 7, configShowPopup, configSaveURLsOnly);\n addItemToConfigGridBagConstraints(gbc, 8, configClipboardAutorip, configSaveAlbumTitles);\n addItemToConfigGridBagConstraints(gbc, 9, configSaveDescriptions, configPreferMp4);\n addItemToConfigGridBagConstraints(gbc, 10, configWindowPosition, configURLHistoryCheckbox);\n addItemToConfigGridBagConstraints(gbc, 11, configSelectLangComboBox, configUrlFileChooserButton);\n addItemToConfigGridBagConstraints(gbc, 12, configSaveDirLabel, configSaveDirButton);\n\n\n\n\n emptyPanel = new JPanel();\n emptyPanel.setPreferredSize(new Dimension(0, 0));\n emptyPanel.setSize(0, 0);\n\n gbc.anchor = GridBagConstraints.PAGE_START;\n gbc.gridy = 0; pane.add(ripPanel, gbc);\n gbc.gridy = 1; pane.add(statusPanel, gbc);\n gbc.gridy = 2; pane.add(progressPanel, gbc);\n gbc.gridy = 3; pane.add(optionsPanel, gbc);\n gbc.weighty = 1;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.gridy = 4; pane.add(logPanel, gbc);\n gbc.gridy = 5; pane.add(historyPanel, gbc);\n gbc.gridy = 5; pane.add(queuePanel, gbc);\n gbc.gridy = 5; pane.add(configurationPanel, gbc);\n gbc.gridy = 5; pane.add(emptyPanel, gbc);\n gbc.weighty = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n }", "public SwingStatusBar() {\n super();\n \n setBorder(BorderFactory.createEmptyBorder(0, SMALL_BORDER, SMALL_BORDER,\n SMALL_BORDER));\n \n messageLabel = new JLabel(DEFAULT_MESSAGE);\n iconLabel = new JLabel(DEFAULT_ICON);\n \n messageLabel.setBorder(BorderFactory.createEtchedBorder());\n iconLabel.setBorder(BorderFactory.createEtchedBorder());\n \n messageLabel.addMouseListener(this);\n iconLabel.addMouseListener(this);\n ErrorManager.getErrorManager().addErrorListener(this);\n clearError();\n \n setLayout(new SpringLayout());\n \n add(messageLabel);\n add(iconLabel);\n \n setPreferredSize(new Dimension(Short.MAX_VALUE, 25));\n setMaximumSize(new Dimension(Short.MAX_VALUE, 25));\n \n layoutBar();\n }", "public StatusPanel() {\n super(new BorderLayout());\n setOpaque(true);\n setBackground(Color.WHITE);\n setBorder(BorderFactory.createEmptyBorder(15, 15, 15, 15));\n JPanel tablePane = new JPanel();\n tablePane.setLayout(new BoxLayout(tablePane, BoxLayout.Y_AXIS));\n tablePane.setBackground(Color.WHITE);\n TableMouseListener mouseListener = new TableMouseListener();\n //\n // Create the connection table\n //\n connectionTablePopup = new PopupMenu(this, new String[] {\"Copy Address\", \"copy address\"},\n new String[] {\"Blacklist Peer\", \"blacklist peer\"});\n connectionTableModel = new ConnectionTableModel(connectionColumnNames, connectionColumnClasses);\n connectionTable = new SizedTable(connectionTableModel, connectionColumnTypes);\n connectionTable.setRowSorter(new TableRowSorter<>(connectionTableModel));\n connectionTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n connectionTable.addMouseListener(mouseListener);\n connectionScrollPane = new JScrollPane(connectionTable);\n tablePane.add(Box.createGlue());\n tablePane.add(new JLabel(\"<html><h3>Peer Connections</h3></html>\"));\n tablePane.add(connectionScrollPane);\n //\n // Create the block status table\n //\n blockTablePopup = new PopupMenu(this, new String[] {\"Copy Block ID\", \"copy block id\"},\n new String[] {\"Copy Generator ID\", \"copy generator id\"},\n new String[] {\"Show Transactions\", \"show transactions\"});\n blockTableModel = new BlockTableModel(blockColumnNames, blockColumnClasses);\n blockTable = new SizedTable(blockTableModel, blockColumnTypes);\n blockTable.setRowSorter(new TableRowSorter<>(blockTableModel));\n blockTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n blockTable.addMouseListener(mouseListener);\n blockScrollPane = new JScrollPane(blockTable);\n tablePane.add(Box.createGlue());\n tablePane.add(new JLabel(\"<html><h3>Recent Blocks</h3></html>\"));\n tablePane.add(blockScrollPane);\n tablePane.add(Box.createGlue());\n //\n // Create the status pane containing the NRS node, chain height\n // and number of peer connections\n //\n nodeField = new JLabel(\"\", JLabel.CENTER);\n chainHeightField = new JLabel(\"\", JLabel.CENTER);\n connectionsField = new JLabel(\"\", JLabel.CENTER);\n\n JPanel statusPane = new JPanel();\n statusPane.setLayout(new BoxLayout(statusPane, BoxLayout.Y_AXIS));\n statusPane.setOpaque(true);\n statusPane.setBackground(Color.WHITE);\n statusPane.add(nodeField);\n statusPane.add(chainHeightField);\n statusPane.add(connectionsField);\n statusPane.add(Box.createVerticalStrut(20));\n //\n // Set up the content pane\n //\n add(statusPane, BorderLayout.NORTH);\n add(tablePane, BorderLayout.CENTER);\n }", "public void CreateScorePanel()\r\n {\r\n\r\n //time = new Timer(10000, null);\r\n scorePanel = new JPanel();\r\n scorePanel.setBackground(new Color(151, 108, 74));\r\n labelPanel = new JPanel(new GridLayout(1,2));\r\n buttonPanel = new JPanel(new GridLayout(1,3));\r\n dropButton = new JButton(\"Fetch\");\r\n dropButton.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 16));\r\n dropButton.addActionListener(listener);\r\n helpButton = new JButton(\"Help\");\r\n helpButton.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 16));\r\n helpButton.addActionListener(listener);\r\n scoreLabel = new JLabel(\"Score: \" + score + \" \");\r\n scoreLabel.setFont( new Font(Font.SANS_SERIF, Font.BOLD, 16));\r\n goalLabel = new JLabel(\"Goal: \"+ GOAL + \" \");\r\n goalLabel.setFont( new Font(Font.SANS_SERIF, Font.BOLD, 16));\r\n timeLabel = new JLabel(\"Time: 0 \" );\r\n timeLabel.setFont( new Font(Font.SANS_SERIF, Font.BOLD, 16));\r\n goalLabel.setForeground(Color.WHITE);\r\n timeLabel.setForeground(Color.WHITE);\r\n scoreLabel.setForeground(Color.WHITE);\r\n\r\n buttonPanel.add(dropButton);\r\n buttonPanel.add(helpButton);\r\n buttonPanel.setFocusable(true);\r\n labelPanel.add(scoreLabel);\r\n labelPanel.add(goalLabel);\r\n labelPanel.add(timeLabel);\r\n labelPanel.setBackground(new Color(151, 108, 74));\r\n scorePanel.add(labelPanel, BorderLayout.WEST);\r\n scorePanel.add(buttonPanel, BorderLayout.EAST);\r\n }", "private void displayStatus(String status) {\n\t\tif (!status.equals(\"\")) {\n\t\t\tdouble x = LEFT_MARGIN;\n\t\t\tdouble y = nameY + IMAGE_MARGIN + IMAGE_HEIGHT + STATUS_MARGIN;\n\t\t\tGLabel pstatus = new GLabel(status);\n\t\t\tpstatus.setFont(PROFILE_STATUS_FONT);\n\t\t\tif (getElementAt(x, y) != null) {\n\t\t\t\tremove(getElementAt(x, y));\n\t\t\t}\n\t\t\tadd(pstatus, x, y);\n\t\t}\n\t}", "private void createOperationsPanel() {\n\t\toperationsPanel = new JPanel(new GridLayout(5, 1));\n\n\t\tspanningTreeButton = new JButton(\"Árvore de cobertura\");\n\t\tspanningTreeButton.addActionListener(new SpanningTreeHandler());\n\n\t\tblockingStatesButton = new JButton(\"Estados bloqueantes\");\n\t\tblockingStatesButton.addActionListener(new BlockingStatesHandler());\n\n\t\tnonLimitedStatesButton = new JButton(\"Estados não-limitados\");\n\t\tnonLimitedStatesButton.addActionListener(new NonLimitedStatesHandler());\n\n\t\tnetworkConservationButton = new JButton(\"Conservação da rede\");\n\t\tnetworkConservationButton.addActionListener(new NetworkConservationHandler());\n\n\t\treachabelStateButton = new JButton(\"Estado alcançável\");\n\t\treachabelStateButton.addActionListener(new ReachableStateHandler());\n\n\t\toperationsPanel.add(spanningTreeButton);\n\t\toperationsPanel.add(blockingStatesButton);\n\t\toperationsPanel.add(nonLimitedStatesButton);\n\t\toperationsPanel.add(networkConservationButton);\n\t\toperationsPanel.add(reachabelStateButton);\n\n\t\tthis.add(operationsPanel, BorderLayout.WEST);\n\t}", "private Component doInit() {\n\t\tJXPanel panel = new JXPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\t// create a label\n\t\tfinal JXLabel label = new JXLabel();\n\t\tlabel.setFont(new Font(\"Segoe UI\", Font.BOLD, 14));\n\t\tlabel.setText(\"task pane item 1 : a label\");\n\t\tlabel.setIcon(Images.NetworkDisconnected.getIcon(32, 32));\n\t\tlabel.setHorizontalAlignment(JXLabel.LEFT);\n\t\tlabel.setBackgroundPainter(getPainter());\n\n\t\t// tweak with the UI defaults for the taskpane and taskpanecontainer\n\t\tchangeUIdefaults();\n\n\t\t// create a taskpanecontainer\n\t\tJXTaskPaneContainer taskpanecontainer = new JXTaskPaneContainer();\n\n\t\t// create a taskpane, and set it's title and icon\n\t\tJXTaskPane taskpane = new JXTaskPane();\n\t\ttaskpane.setTitle(\"My Tasks\");\n\t\ttaskpane.setIcon(Images.Quit.getIcon(24, 24));\n\n\t\t// add various actions and components to the taskpane\n\t\ttaskpane.add(label);\n\t\ttaskpane.add(new AbstractAction() {\n\t\t\tprivate static final long serialVersionUID = -7314920635669764914L;\n\t\t\t{\n\t\t\t\tputValue(Action.NAME, \"task pane item 2 : an action\");\n\t\t\t\tputValue(Action.SHORT_DESCRIPTION, \"perform an action\");\n\t\t\t\tputValue(Action.SMALL_ICON,\n\t\t\t\t\t\tImages.NetworkConnected.getIcon(32, 32));\n\t\t\t}\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlabel.setText(\"an action performed\");\n\t\t\t}\n\t\t});\n\n\t\t// add the task pane to the taskpanecontainer\n\t\ttaskpanecontainer.add(taskpane);\n\n\t\t// set the transparency of the JXPanel to 50% transparent\n\t\tpanel.setAlpha(0.7f);\n\n\t\tpanel.add(taskpanecontainer, BorderLayout.CENTER);\n\t\tpanel.setPreferredSize(new Dimension(250, 200));\n\n\t\treturn panel;\n\t}", "public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }", "private JPanel getService1JPanel() {\n\n\t\tJPanel panel = new JPanel();\n\t\tBoxLayout boxlayout = new BoxLayout(panel, BoxLayout.X_AXIS);\n\t\tJButton button = new JButton(\"Send Emergency Heart Rate\");\n\t\tbutton.addActionListener(this);\n\t\tpanel.add(button);\n\t\tpanel.add(Box.createRigidArea(new Dimension(10, 0)));\n\t\tpanel.setLayout(boxlayout);\n\n\t\treturn panel;\n\t}", "private void initGUI() {\n\t\teditor = new JTextArea();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\tthis.getContentPane().add(new JScrollPane(editor), BorderLayout.CENTER);\n\n\t\tscPane = new JScrollPane(editor);\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.add(scPane, BorderLayout.CENTER);\n\n\t\tadd(pane);\n\n\t\tJPanel statusBar = new JPanel();\n\t\tJLabel welcomedate;\n\t\twelcomedate = new JLabel();\n\n\t\tstatusBar.setBorder(new BevelBorder(BevelBorder.LOWERED));\n\t\tadd(statusBar, BorderLayout.SOUTH);\n\t\tstatusBar.setPreferredSize(new Dimension(getWidth(), 16));\n\t\tstatusBar.setLayout(new GridLayout(1, 4));\n\n\t\tstatusLabel = new JLabel();\n\t\tlineLabel = new JLabel();\n\t\tcolumnLabel = new JLabel();\n\t\tselectedLabel = new JLabel();\n\n\t\tstatusLabel.setHorizontalAlignment(SwingConstants.LEFT);\n\n\t\tstatusBar.add(statusLabel);\n\n\t\tstatusBar.add(lineLabel);\n\t\tstatusBar.add(columnLabel);\n\t\tstatusBar.add(selectedLabel);\n\n\t\tstatusBar.add(welcomedate, BorderLayout.EAST);\n\n\t\tjavax.swing.Timer time = new javax.swing.Timer(1000, new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjava.util.Date now = new java.util.Date();\n\t\t\t\tString ss = SimpleDateFormat.getDateTimeInstance().format(now);\n\t\t\t\twelcomedate.setText(ss);\n\t\t\t}\n\t\t});\n\t\ttime.start();\n\n\t\tadd(statusBar, BorderLayout.SOUTH);\n\n\t\tsetVisible(true);\n\n\t\tcreateMenus();\n\t\tcreateToolbars();\n\n\t\tcreateLanguageMenu();\n\n\t}", "private void progressMode() {\n\t\t// lazily build the layout\n\t\tif (progressLayout == null) {\n\t\t\tprogressLayout = new DefaultVerticalLayout(true, true);\n\n\t\t\tprogressBar = new ProgressBar();\n\t\t\tprogressBar.setHeight(\"20px\");\n\t\t\tprogressLayout.add(progressBar);\n\n\t\t\tstatusLabel = new Text(\"\");\n\t\t\tprogressLayout.add(statusLabel);\n\t\t}\n\t\tprogressBar.setValue(0.0f);\n\t\tstatusLabel.setText(\"\");\n\n\t\tremoveAll();\n\t\tadd(progressLayout);\n\t}", "public void status(leapstream.scoreboard.core.model.Status status) {\n Stati stati = status.is();\n foreground(stati);\n background(stati);\n label.text(\"\" + stati);\n }", "private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}", "private void initializePanels() {\n queueInfoPanel.setBackground(new Color(236, 125, 51));\n queueButtonsPanel.setBackground(new Color(93, 118, 161));\n createLabelForPanel(queueInfoPanel);\n createButtonsForPanel(queueButtonsPanel);\n }", "public void createComponents()\n {\n VBox col = new VBox(SPACING);\n\n Label lblStatus = new Label(\"Machine Status\");\n lblStatus.getStyleClass().add(\"bordered-titled-title\");\n\n lblCurrFile = new Label(\"No File Currently Loaded\");\n lblConnection = new Label(\"Not Connected\");\n\n btnConnect = new Button(\"Connect to Machine\");\n btnConnect.setOnAction(new ConnectEventHandler());\n //btnConnect.getStyleClass().add(\"glass-grey\");\n\n ivConnection = new ImageView(\n new Image(getClass().getResourceAsStream(\"/Resources/Not Connected.png\")));\n\n lblMachineStatus = new Label(\"Status: Good\");\n HBox r1 = new HBox(SPACING);\n r1.getChildren().addAll(lblConnection, ivConnection);\n\n col.getChildren().addAll(btnConnect, r1, lblCurrFile, lblMachineStatus);\n getChildren().addAll(lblStatus, col);\n\n }", "private HorizontalPanel createCommands() {\n\t\tfinal HorizontalPanel bar = new HorizontalPanel();\n\t\tbar.addStyleName(AbstractField.CSS.cbtAbstractCommand());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Save button\n\t\t//-----------------------------------------------\n\t\tfinal CommandButton saveButton = new CommandButton(this, AbstractField.CONSTANTS.allSave(), actorUpdate, tab++);\n\t\tsaveButton.addStyleName(AbstractField.CSS.cbtCommandButtonTwo());\n\t\tsaveButton.addStyleName(AbstractField.CSS.cbtGradientBlue());\n\t\tsaveButton.setTitle(AbstractField.CONSTANTS.helpSave());\n\t\tbar.add(saveButton);\n\n\t\t//-----------------------------------------------\n\t\t// Delete button\n\t\t//-----------------------------------------------\n\t\tfinal CommandButton deleteButton = new CommandButton(this, AccessControl.DELETE_PERMISSION, AbstractField.CONSTANTS.allDelete(), actorDelete, tab++);\n\t\tdeleteButton.addStyleName(AbstractField.CSS.cbtCommandButtonTwo());\n\t\tdeleteButton.addStyleName(AbstractField.CSS.cbtGradientRed());\n\t\tdeleteButton.setTitle(AbstractField.CONSTANTS.helpDelete());\n\t\tbar.add(deleteButton);\n\n\t\t//-----------------------------------------------\n\t\t// Transition array that defines the finite state machine\n\t\t//-----------------------------------------------\n\t\tfsm = new ArrayList<Transition>();\n\t\tfsm.add(new Transition(Party.CREATED, saveButton, Party.CREATED));\n\t\tfsm.add(new Transition(Party.CREATED, deleteButton, Party.FINAL));\n\n\t\treturn bar;\n\t}", "public StatusBar() {\n\t\tthis(DEFAULT_STATUS_MESSAGE, true, 1, 1, true);\n\t}", "private void initStatusBar() {\n ModelerSession.getStatusBarService().addStatusBarItem(\n getIdentifier(), selectedToolStatusBarItem, JideBoxLayout.FIX\n );\n }", "SummaryPanel() {\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tsetBackground(Color.white);\r\n\t\twriteButton.addActionListener(this);\r\n\t\tsetupGui();\r\n\t}", "private JPanel createAvailableConditionsSetPanel() {\n\t\tJPanel toReturn = new JPanel(new GridBagLayout());\n\n\t\t\n\t\t// Action for show profiling preferences.\n\t\t AbstractAction showProfilingPageAction = new AbstractAction(\"Profiling Preferences\") {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tPluginWorkspaceProvider.getPluginWorkspace().showPreferencesPages(new String[] { \"profiling.conditions\" },\n\t\t\t\t\t\t\"profiling.conditions\", true);\n\t\t\t\n\t\t\t\t//update the panel \n\t\t\t\tcomboBoxUpdate();\n\t\t\t}\n\t\t};\n\n\t\t\n\t\t // Button for display profiling preferences\n\t\t ToolbarButton buttonToProfiling = new ToolbarButton(showProfilingPageAction, true);\n\t\t\n\t\t\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n\t\t\n\t\t//add the checkBox\n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = 0;\n\t\tgbc.weightx = 1;\n\t\ttoReturn.add(useAllCondSetsRBtn, gbc);\n\t\t\n\t\t//add the button\n\t\tgbc.gridx = 1;\n\t\tgbc.weightx = 0;\n\n\t\tURL imageToLoad = getClass().getClassLoader().getResource(Images.PREFERENCES_ICON);\n\t\tif (imageToLoad != null) {\n\t\t\tbuttonToProfiling.setIcon(ro.sync.ui.Icons.getIcon(imageToLoad.toString()));\n\t\t\tbuttonToProfiling.setText(\"\");\n\t\t} else {\n\t\t\tbuttonToProfiling.setText(\"PC\");\n\t\t}\n\t\ttoReturn.add(buttonToProfiling, gbc);\n\n\t\treturn toReturn;\n\t}", "public PrintsPanel() {\n initComponents();\n createPanels();\n\n }", "private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}", "private void setUpPanel() {\n\n this.add(nameLabel);\n this.add(showMetadataButton);\n this.add(compressFilesButton);\n this.add(decompressFilesButton);\n this.add(compressionResultLabel);\n this.add(messageShorteningButton);\n this.add(messageShorteningResultLabel);\n }", "private void constructTitlePanel() {\n titlePanel = new JPanel();\n titlePanel.setPreferredSize(relativeSize(0.8f, 0.03f));\n \n JLabel titleLabel = new JLabel(\"JMarkets Server Interface\");\n titleLabel.setFont(new Font(\"Arial\", Font.BOLD, 18));\n titleLabel.setForeground(new Color(102, 51, 0));\n \n titlePanel.add(titleLabel);\n }", "public JPanel menuPanel() {\n\t\tJPanel mpanel = new JPanel(null);\n\t\tmpanel.setBounds(0, 100, 700, 300);\n\t\tmpanel.setBackground(Color.PINK);\n\t\tFont lblfont = new Font(\"SansSerif\", Font.BOLD, 30);\n\t\t\n\t\tworkerBtn = new JButton(workerpic);\n\t\tvisitorBtn = new JButton(visitorpic);\n\t\tworkerBtn.addActionListener(this);\n\t\tvisitorBtn.addActionListener(this);\n\t\tvisitorBtn.setBounds(100, 50, 150, 200);\n\t\tworkerBtn.setBounds(450, 50, 150, 200);\n\t\t\n\t\tlblworker.setBounds(450, 0, 150, 50);\n\t\tlblvisitor.setBounds(100, 0, 150, 50);\n\t\tlblworker.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblvisitor.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblworker.setFont(lblfont);\n\t\tlblvisitor.setFont(lblfont);\n\t\tmpanel.add(lblworker);\n\t\tmpanel.add(lblvisitor);\n\t\tmpanel.add(visitorBtn);\n\t\tmpanel.add(workerBtn);\n\t\treturn mpanel;\n\t}", "public JPanel titlePanel() {\n\t\tJPanel tpanel = new JPanel(null);\n\t\ttpanel.setBounds(0, 0, 700, 100);\n\t\ttpanel.setBackground(Color.PINK);\n\t\ttitle.setFont(new Font(\"SansSerif\", Font.BOLD, 50));\n\t\ttitle.setBounds(150, 0, 400, 100);\n\t\ttitle.setHorizontalAlignment(JLabel.CENTER);\n\t\ttpanel.add(title);\n\t\treturn tpanel;\n\t}", "private void showNotification(LBSBundle lbs,int status){\n\t\tScenario scenario = (Scenario) EntityPool.instance(\r\n\t\t\t\t).forId(lbs.getParentId(), lbs.getParentTag());\r\n\t\t\r\n\t\t\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.compass25,\r\n\t\t\t\tscenario.getName(), System.currentTimeMillis());\r\n\t\tnotification.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\t\tnotification.sound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n\t\t// The PendingIntent to launch our activity if the user selects this\r\n\t\t// notification\r\n\t\tIntent intent = new Intent(this, TaskOverViewActivity.class);\r\n\t\tintent.setAction(TaskOverViewActivity.TASK_OVERVIEWBY_SCENARIO);\r\n\t\tintent.putExtra(TaskOverViewActivity.IN_SCENAIRO_ID, scenario.getId());\r\n\t\t//intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\tPendingIntent contentIntent = PendingIntent.getActivity(this, 0,\r\n\t\t\t\tintent, PendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n\t\tCharSequence text = getText(status);\r\n\t\t// Set the info for the views that show in the notification panel.\r\n\t\tnotification.setLatestEventInfo(this, scenario.getName(),\r\n\t\t\t\ttext, contentIntent);\r\n\r\n\t\t// Send the notification.\r\n\t\t// We use a layout id because it is a unique number. We use it later to\r\n\t\t// cancel.\r\n\t\tmNM.notify(\tstatus, notification);\r\n\t}", "private void createContent(final Container container) {\n this.mainPanel = new MainPanel();\n this.mainPanel.setName(\"mainPanel\"); // Fest\n\n if (container != null) {\n // adds the main panel\n container.add(this.mainPanel, BorderLayout.CENTER);\n\n // Handle status bar\n container.add(StatusBar.getInstance(), BorderLayout.SOUTH);\n }\n }", "private void makeCloseDirectionListPanel(){\n closeDirectionList = new JPanel();\n closeDirectionList.setVisible(false);\n closeDirectionList.setBounds(25, 280, 400, 20);\n closeDirectionList.setBackground(DrawAttribute.fadeblack);\n closeDirectionList.setLayout(new BoxLayout(closeDirectionList, BoxLayout.LINE_AXIS));\n closeDirectionList.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\n\n closeDirectionListButton = new JButton(new ImageIcon(this.getClass().getResource(\"/data/resetButtonWhiteIcon.png\")));\n closeDirectionListButton.setOpaque(false);\n closeDirectionListButton.setBackground(DrawAttribute.fadeblack);\n closeDirectionListButton.setActionCommand(\"closeDirectionList\");\n closeDirectionList.add(closeDirectionListButton);\n\n travelTimePanel = new JPanel();\n travelTimePanel.setOpaque(false);\n travelTimePanel.setBounds(25, 280, 275, 20);\n travelTimePanel.setVisible(false);\n travelTimeLabel = new JLabel();\n travelTimeLabel.setHorizontalAlignment(SwingConstants.RIGHT);\n travelTimeLabel.setForeground(Color.WHITE);\n travelTimePanel.add(travelTimeLabel);\n }", "public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "public StatusComponent()\n {\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n mainPanel = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n menuBar = new javax.swing.JMenuBar();\n jMenu3 = new javax.swing.JMenu();\n javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n jMenuItem9 = new javax.swing.JMenuItem();\n jMenuItem14 = new javax.swing.JMenuItem();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem8 = new javax.swing.JMenuItem();\n jMenuItem3 = new javax.swing.JMenuItem();\n jMenuItem4 = new javax.swing.JMenuItem();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenu4 = new javax.swing.JMenu();\n jMenuItem6 = new javax.swing.JMenuItem();\n jMenuItem2 = new javax.swing.JMenuItem();\n jMenuItem10 = new javax.swing.JMenuItem();\n javax.swing.JMenu helpMenu = new javax.swing.JMenu();\n javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();\n statusPanel = new javax.swing.JPanel();\n javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();\n statusMessageLabel = new javax.swing.JLabel();\n statusAnimationLabel = new javax.swing.JLabel();\n progressBar = new javax.swing.JProgressBar();\n\n mainPanel.setName(\"mainPanel\"); // NOI18N\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(registrocontrol.RegistroControlApp.class).getContext().getResourceMap(RegistroControlView.class);\n jLabel1.setIcon(resourceMap.getIcon(\"jLabel1.icon\")); // NOI18N\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setMinimumSize(new java.awt.Dimension(600, 600));\n jLabel1.setName(\"jLabel1\"); // NOI18N\n mainPanel.add(jLabel1);\n\n menuBar.setName(\"menuBar\"); // NOI18N\n\n jMenu3.setText(resourceMap.getString(\"jMenu3.text\")); // NOI18N\n jMenu3.setName(\"jMenu3\"); // NOI18N\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(registrocontrol.RegistroControlApp.class).getContext().getActionMap(RegistroControlView.class, this);\n exitMenuItem.setAction(actionMap.get(\"quit\")); // NOI18N\n exitMenuItem.setIcon(resourceMap.getIcon(\"exitMenuItem.icon\")); // NOI18N\n exitMenuItem.setName(\"exitMenuItem\"); // NOI18N\n jMenu3.add(exitMenuItem);\n\n menuBar.add(jMenu3);\n\n jMenu2.setText(resourceMap.getString(\"jMenu2.text\")); // NOI18N\n\n jMenuItem9.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem9.setIcon(resourceMap.getIcon(\"jMenuItem9.icon\")); // NOI18N\n jMenuItem9.setText(resourceMap.getString(\"jMenuItem9.text\")); // NOI18N\n jMenuItem9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem9ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem9);\n\n jMenuItem14.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem14.setIcon(resourceMap.getIcon(\"jMenuItem14.icon\")); // NOI18N\n jMenuItem14.setText(resourceMap.getString(\"jMenuItem14.text\")); // NOI18N\n jMenuItem14.setName(\"jMenuItem14\"); // NOI18N\n jMenuItem14.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem14ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem14);\n\n menuBar.add(jMenu2);\n\n jMenu1.setText(resourceMap.getString(\"jMenu1.text\")); // NOI18N\n\n jMenuItem8.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem8.setIcon(resourceMap.getIcon(\"jMenuItem8.icon\")); // NOI18N\n jMenuItem8.setText(resourceMap.getString(\"jMenuItem8.text\")); // NOI18N\n jMenu1.add(jMenuItem8);\n\n jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem3.setIcon(resourceMap.getIcon(\"jMenuItem3.icon\")); // NOI18N\n jMenuItem3.setText(resourceMap.getString(\"jMenuItem3.text\")); // NOI18N\n jMenuItem3.setName(\"jMenuItem3\"); // NOI18N\n jMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem3);\n\n jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem4.setIcon(resourceMap.getIcon(\"jMenuItem4.icon\")); // NOI18N\n jMenuItem4.setText(resourceMap.getString(\"jMenuItem4.text\")); // NOI18N\n jMenuItem4.setName(\"jMenuItem4\"); // NOI18N\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem4ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem4);\n\n jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem1.setIcon(resourceMap.getIcon(\"jMenuItem1.icon\")); // NOI18N\n jMenuItem1.setText(resourceMap.getString(\"jMenuItem1.text\")); // NOI18N\n jMenuItem1.setName(\"jMenuItem1\"); // NOI18N\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem1);\n\n menuBar.add(jMenu1);\n\n jMenu4.setText(resourceMap.getString(\"jMenu4.text\")); // NOI18N\n\n jMenuItem6.setIcon(resourceMap.getIcon(\"jMenuItem6.icon\")); // NOI18N\n jMenuItem6.setText(resourceMap.getString(\"jMenuItem6.text\")); // NOI18N\n jMenuItem6.setName(\"jMenuItem6\"); // NOI18N\n jMenu4.add(jMenuItem6);\n\n jMenuItem2.setIcon(resourceMap.getIcon(\"jMenuItem2.icon\")); // NOI18N\n jMenuItem2.setText(resourceMap.getString(\"jMenuItem2.text\")); // NOI18N\n jMenuItem2.setName(\"jMenuItem2\"); // NOI18N\n jMenu4.add(jMenuItem2);\n\n jMenuItem10.setIcon(resourceMap.getIcon(\"jMenuItem10.icon\")); // NOI18N\n jMenuItem10.setText(resourceMap.getString(\"jMenuItem10.text\")); // NOI18N\n jMenuItem10.setName(\"jMenuItem10\"); // NOI18N\n jMenu4.add(jMenuItem10);\n\n menuBar.add(jMenu4);\n\n helpMenu.setText(resourceMap.getString(\"helpMenu.text\")); // NOI18N\n\n aboutMenuItem.setAction(actionMap.get(\"showAboutBox\")); // NOI18N\n aboutMenuItem.setIcon(resourceMap.getIcon(\"aboutMenuItem.icon\")); // NOI18N\n aboutMenuItem.setText(resourceMap.getString(\"aboutMenuItem.text\")); // NOI18N\n aboutMenuItem.setName(\"aboutMenuItem\"); // NOI18N\n helpMenu.add(aboutMenuItem);\n\n menuBar.add(helpMenu);\n\n statusPanel.setName(\"statusPanel\"); // NOI18N\n\n statusPanelSeparator.setName(\"statusPanelSeparator\"); // NOI18N\n\n statusMessageLabel.setName(\"statusMessageLabel\"); // NOI18N\n\n statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n statusAnimationLabel.setName(\"statusAnimationLabel\"); // NOI18N\n\n progressBar.setName(\"progressBar\"); // NOI18N\n\n javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);\n statusPanel.setLayout(statusPanelLayout);\n statusPanelLayout.setHorizontalGroup(\n statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 725, Short.MAX_VALUE)\n .addGroup(statusPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(statusMessageLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 555, Short.MAX_VALUE)\n .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(statusAnimationLabel)\n .addContainerGap())\n );\n statusPanelLayout.setVerticalGroup(\n statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(statusPanelLayout.createSequentialGroup()\n .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(statusMessageLabel)\n .addComponent(statusAnimationLabel)\n .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(3, 3, 3))\n );\n\n setComponent(mainPanel);\n setMenuBar(menuBar);\n setStatusBar(statusPanel);\n }", "private void createComponents() {\r\n // create a title\r\n indexTitle = new JLabel(\"Indexing\");\r\n indexTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\r\n dirUrl = new JTextField();\r\n dirUrl.setColumns(70);\r\n dirUrl.setEditable(false);\r\n\r\n openDir = new JButton(\"Open Dir\");\r\n fileChooser = new JFileChooser();\r\n\r\n startIndexing = new JButton(\"Start\");\r\n startIndexing.setPreferredSize(new Dimension(95, 22));\r\n\r\n indexProgress = new JProgressBar();\r\n //progressBar.setStringPainted(true);\r\n // progressBar.setString(\"Indexing State..\");\r\n\r\n addExistingCheck = new JCheckBox();\r\n }", "private void makeButtonPanel()\n {\n \n this.buttonPanel.setLayout(new GridLayout(10, 2, 30, 10));\n \n \n this.buttonPanel.add(this.fLabel);\n this.fName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.fName);\n\n this.buttonPanel.add(this.lLabel);\n this.lName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.lName);\n\n this.buttonPanel.add(this.idLabel);\n this.iD.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.iD);\n\n this.buttonPanel.add(this.courseLabel);\n this.course.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.course);\n\n this.buttonPanel.add(this.instructorLabel);\n this.instructor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.instructor);\n\n this.buttonPanel.add(this.tutorLabel);\n this.tutor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.tutor);\n \n this.buttonPanel.add(this.commentsLable);\n this.comments.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.comments);\n //Removed for appointment tabel\n //this.buttonPanel.add(this.appointmentLable);\n //this.buttonPanel.add(this.appointment);\n this.buttonPanel.add(this.sessionLenLabel);\n this.sessionLength.setColumns(COL_WIDTH);\n this.sessionLength.setText(\"30\");\n this.buttonPanel.add(this.sessionLength);\n\n this.ADD_BUTTON.addActionListener(new AddButtonListener());\n //buttonPanel.add(ADD_BUTTON);\n \n \n this.addSessionPlaceHolder.add(this.buttonPanel);\n }", "public void createSShell() {\r\n\t\tGridData gridData = new GridData();\r\n\t\tgridData.widthHint = 500;\r\n\t\tgridData.horizontalAlignment = org.eclipse.swt.layout.GridData.CENTER;\r\n\t\tgridData.grabExcessHorizontalSpace = true;\r\n\t\tgridData.heightHint = 80;\r\n\t\tsShell = new Shell();\r\n\t\tsShell.setText(\"系统管理\");\r\n\t\tsShell.setSize(new Point(703, 656));\r\n\t\tsShell.setLayout(new GridLayout());\r\n\t\tcLabel = new CLabel(sShell, SWT.CENTER);\r\n\t\tcLabel.setImage(new Image(Display.getCurrent(), getClass().getResourceAsStream(\"/images/news.png\")));\r\n\t\tcLabel.setFont(new Font(Display.getDefault(), \"微软雅黑\", 18, SWT.NORMAL));\r\n\t\tcLabel.setLayoutData(gridData);\r\n\t\tcLabel.setText(\"系统管理\");\r\n\t\tcreateTabFolder();\r\n\t\tif(SystemMainShell.userType.equals(\"管理员\")){\r\n\t\t\tbuttonAddRoom.setEnabled(true);\r\n\t\t\tbuttonDeleteRoom.setEnabled(true);\r\n\t\t//\tbuttonAddGoods.setEnabled(true);\r\n\t\t//\tbuttonDeleteGoods.setEnabled(true);\r\n\t\t\tbuttonAddStaff.setEnabled(true);\r\n\t\t\tbuttonDeleteStaff.setEnabled(true);\r\n\t\t\tbuttonAddUser.setEnabled(true);\r\n\t\t\tbuttonDeleteUser.setEnabled(true);\r\n\t\t}else if(SystemMainShell.userType.equals(\"操作员\")){\r\n\t\t\tbuttonAddRoom.setEnabled(false);\r\n\t\t\tbuttonDeleteRoom.setEnabled(false);\r\n\t\t//\tbuttonAddGoods.setEnabled(false);\r\n\t\t//\tbuttonDeleteGoods.setEnabled(false);\r\n\t\t\tbuttonAddStaff.setEnabled(false);\r\n\t\t\tbuttonDeleteStaff.setEnabled(false);\r\n\t\t\tbuttonAddUser.setEnabled(false);\r\n\t\t\tbuttonDeleteUser.setEnabled(false);\r\n\t\t}\r\n\t}", "public StatusFrame(LinkedList<Client> clients){\n super();\n panel = new JPanel();\n Collections.sort(clients);\n this.clients = clients;\n createLabels();\n for(Client c : clients){\n c.addObserver(this);\n }\n panel.setPreferredSize(new Dimension(200,200));\n\n WindowAdapter closeListener = new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent windowEvent) {\n for(Client c : clients) {\n c.removeObserver(StatusFrame.this);\n }\n }\n };\n getFrame().addWindowListener(closeListener);\n\n getFrame().setContentPane(panel);\n getFrame().setTitle(\"Statuses\");\n getFrame().setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS));\n getFrame().pack();\n getFrame().setVisible(true);\n getFrame().setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n }", "private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}", "public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public DeviceProgressPanel() {\n super();\n\n this.mdlCtrlr = new ProgTableController();\n this.tblDacqStatus = new JTable( this.mdlCtrlr );\n this.paneTblScrollr = new JScrollPane( this.tblDacqStatus );\n \n this.txtDaqStatus = new JTextField();\n\n// this.setViewportView( this.tblDacqStatus );\n this.buildViewPane();\n }", "private void setupMessagePanel() {\n\t\tJPanel messagePanel = new JPanel();\n\t\tthis.message = new JTextArea();\n\t\tthis.message.setText(\"Registration Phase Completed. \\n\\nClick on the Log Off button below to \\nreturn to the main menu\");\n\t\tthis.message.setEditable(false);\n\t\tthis.message.setColumns(20);\n\t\tthis.message.setLineWrap(true);\n\t\tmessagePanel.add(message);\n\t\tthis.add(messagePanel, BorderLayout.CENTER);\n\t}", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "private JPanel createNorthPanel() \r\n\t{\r\n\t\tJPanel panel = new JPanel();\r\n\t\t\r\n\t\tJLabel title = new JLabel(\"Reservations\", SwingConstants.CENTER);\r\n\t\ttitle.setFont(new Font(\"serif\", Font.PLAIN, 29));\r\n\t\tpanel.add(title);\r\n\t\t\r\n\t\treturn panel;\r\n\t}", "private void createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }", "private JPanel getService2JPanel() {\n\n\t\tJPanel panel = new JPanel();\n\t\tBoxLayout boxlayout = new BoxLayout(panel, BoxLayout.X_AXIS);\n\t\tJButton button = new JButton(\"Send Daily Heart Rates\");\n\t\tbutton.addActionListener(this);\n\t\tpanel.add(button);\n\t\tpanel.add(Box.createRigidArea(new Dimension(10, 0)));\n\t\tpanel.setLayout(boxlayout);\n\t\t\n\t\treturn panel;\n\t}", "private void createActionsPanel() {\n DefaultActionGroup group = new DefaultActionGroup();\n group.add(new CloseAction());\n ActionManager actionManager = ActionManager.getInstance();\n JComponent actionsToolbar = actionManager\n .createActionToolbar(ActionPlaces.CODE_INSPECTION, group, false)\n .getComponent();\n JPanel actionsPanel = new JPanel(new BorderLayout());\n actionsPanel.add(actionsToolbar, BorderLayout.WEST);\n add(actionsPanel, BorderLayout.WEST);\n }", "private JPanel createExitPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 50));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"ExitsTitle\")));\n return panel;\n }", "private void buildPanel()\n\t{\n\t\tvoterIDMessage = new JLabel(\"Please Enter Your Voter ID.\");\n\t\tbutton1 = new JButton(\"Cancel\");\n\t\tbutton1.addActionListener(new ButtonListener());\n\t\tbutton2 = new JButton(\"OK\");\n\t\tbutton2.addActionListener(new ButtonListener());\n\t\tidText = new JTextField(10);\n\t\tpanel1 = new JPanel();\n\t\tpanel2 = new JPanel();\n\t\tpanel3 = new JPanel();\n\t\tpanel1.add(voterIDMessage);\n\t\tpanel2.add(idText);\n\t\tpanel3.add(button1);\n\t\tpanel3.add(button2);\n\t}", "private void initialize() {\n\t\twindow = new JFrame();\n\t\twindow.setBounds(100, 100, 650, 300);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\twindow.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel chooseMemberLabel = new JLabel(\"Which crew member would you like to view the status of?\");\n\t\tchooseMemberLabel.setBounds(10, 11, 414, 14);\n\t\twindow.getContentPane().add(chooseMemberLabel);\n\t\t\n\t\tJLabel statusLabel = new JLabel(\"\");\n\t\tstatusLabel.setVerticalAlignment(SwingConstants.TOP);\n\t\tstatusLabel.setBounds(342, 36, 282, 184);\n\t\twindow.getContentPane().add(statusLabel);\n\t\t\n\t\tJButton member1Button = new JButton(environment.getCurrentCrew().getCrew().get(0).getName());\n\t\tmember1Button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatusLabel.setText(\"<html>\" + environment.getCurrentCrew().getCrew().get(0).status().replaceAll(\"<\",\"&lt;\").replaceAll(\">\", \"&gt;\").replaceAll(\"\\n\", \"<br/>\") + \"</html>\");\n\t\t\t}\n\t\t});\n\t\tmember1Button.setBounds(10, 33, 150, 23);\n\t\twindow.getContentPane().add(member1Button);\n\t\t\n\t\tif (environment.getCurrentCrew().getCrew().size() > 1) {\n\t\t\tJButton member2Button = new JButton(environment.getCurrentCrew().getCrew().get(1).getName());\n\t\t\tmember2Button.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tstatusLabel.setText(\"<html>\" + environment.getCurrentCrew().getCrew().get(1).status().replaceAll(\"<\",\"&lt;\").replaceAll(\">\", \"&gt;\").replaceAll(\"\\n\", \"<br/>\") + \"</html>\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tmember2Button.setBounds(10, 67, 150, 23);\n\t\t\twindow.getContentPane().add(member2Button);\n\t\t}\n\t\t\n\t\tif (environment.getCurrentCrew().getCrew().size() > 2) {\n\t\t\tJButton member3Button = new JButton(environment.getCurrentCrew().getCrew().get(2).getName());\n\t\t\tmember3Button.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tstatusLabel.setText(\"<html>\" + environment.getCurrentCrew().getCrew().get(2).status().replaceAll(\"<\",\"&lt;\").replaceAll(\">\", \"&gt;\").replaceAll(\"\\n\", \"<br/>\") + \"</html>\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tmember3Button.setBounds(10, 101, 150, 23);\n\t\t\twindow.getContentPane().add(member3Button);\n\t\t}\n\t\t\n\t\tif (environment.getCurrentCrew().getCrew().size() > 3) {\n\t\t\tJButton member4Button = new JButton(environment.getCurrentCrew().getCrew().get(3).getName());\n\t\t\tmember4Button.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tstatusLabel.setText(\"<html>\" + environment.getCurrentCrew().getCrew().get(3).status().replaceAll(\"<\",\"&lt;\").replaceAll(\">\", \"&gt;\").replaceAll(\"\\n\", \"<br/>\") + \"</html>\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tmember4Button.setBounds(10, 135, 150, 23);\n\t\t\twindow.getContentPane().add(member4Button);\n\t\t}\n\t\t\n\t\tJButton finishedButton = new JButton(\"Done\");\n\t\tfinishedButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfinishedWindow();\n\t\t\t}\n\t\t});\n\t\tfinishedButton.setBounds(535, 227, 89, 23);\n\t\twindow.getContentPane().add(finishedButton);\n\t}", "private void initComponents() {\n tabbedPane = new javax.swing.JTabbedPane();\n statusLabel = new javax.swing.JLabel();\n\n statusLabel.setText(\" \");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(statusLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 376, 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()\n .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 267, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(statusLabel))\n );\n }", "private void setUpList(JPanel panel){\n panel.setLayout(new BorderLayout());\n JPanel holder = new JPanel();\n holder.setLayout(new BoxLayout(holder,BoxLayout.Y_AXIS));\n for(Object t: agenda.getConnector().getTasks(currentList)) {\n Tasks task = (Tasks)t;\n add = false;\n this.addTask(holder,task);\n add = true;\n }\n JScrollPane scrollPane = new JScrollPane(holder,ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n JButton showCompleted = new JButton(\"Show completed\");\n showCompleted.addActionListener(e -> {\n JPanel completedPanels = new JPanel();\n this.setUpSize(completedPanels,400,400,AgendaConstants.ALL);\n completedPanels.setLayout(new BoxLayout(completedPanels,BoxLayout.Y_AXIS));\n for(Object o: agenda.getConnector().getCTasks(currentList)){\n CompletedTodo t = (CompletedTodo) o;\n Task task = new Task(t);\n this.setUpSize(task,390,50,AgendaConstants.MAXIMUM);\n completedPanels.add(task);\n }\n JOptionPane.showMessageDialog(null,completedPanels);\n });\n panel.add(showCompleted,BorderLayout.NORTH);\n panel.add(scrollPane,BorderLayout.CENTER);\n this.updateComponent(panel);\n }", "void addPanel() {\n \tPanel panel = new Panel();\r\n\r\n panel.setLayout(new GridLayout(4, 1));\r\n jSliderBrightness = makeTitledSilder(\"Helligkeit\", 0, 256, 128); // werte veraendert\r\n jSliderContrast = makeTitledSilder(\"Kontrast\", 0, 10, 5);\r\n jSliderSaturation = makeTitledSilder(\"Sättigung\", 0, 9, 4);\r\n jSliderHue = makeTitledSilder(\"Hue\", 0, 360, 0);\r\n //jSliderContrast = makeTitledSilder(\"Slider2-Wert\", 0, 100, 50);\r\n panel.add(jSliderBrightness);\r\n panel.add(jSliderContrast);\r\n panel.add(jSliderSaturation);\r\n panel.add(jSliderHue);\r\n \r\n add(panel);\r\n \r\n pack();\r\n }", "private void initializeControls() {\n\t\tlabel = new Label(status.toString());\n\t}", "private void createHeaderPanel()\n\t{\n\t\theaderPanel.setLayout (new GridLayout(2,1));\n\t\theaderPanel.add(textPanel);\n\t\theaderPanel.add(functionPanel);\n\t\t\t\t\t\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}", "private static void assembleAddPanel(){\n addPanel.add(addPlayerNameLabel);\n addPanel.add(newPlayerNameTextBox);\n addPlayerButton.addStyleName(\"add-button\");\n newPlayerNameTextBox.addStyleName(\"player-name-textbox\");\n addPlayerButton.addStyleName(\"btn btn-default\");\n resetRosterButton.addStyleName(\"btn btn-default\");\n addPlayerButton.setHTML(\"<span class=\\\"glyphicon glyphicon-plus\\\" aria-hidden=\\\"true\\\"></span>Add Player\");\n resetRosterButton.setHTML(\"<span class=\\\"glyphicon glyphicon-repeat\\\" aria-hidden=\\\"true\\\"></span>Reset All\");\n }", "public StatusBar() {\n\t\tsuper();\n\t}", "@ThreadConfined(type = ThreadConfined.ThreadType.AWT)\n DomainDetailsPanel() {\n initComponents();\n MiniTimelinePanel timelinePanel = new MiniTimelinePanel();\n DiscoveryEventUtils.getDiscoveryEventBus().register(timelinePanel);\n jTabbedPane1.add(Bundle.DomainDetailsPanel_miniTimelineTitle_text(), timelinePanel);\n for (BlackboardArtifact.ARTIFACT_TYPE type : SearchData.Type.DOMAIN.getArtifactTypes()) {\n jTabbedPane1.add(type.getDisplayName(), new DomainArtifactsTabPanel(type));\n }\n }", "private JPanel buildNorthPanel() {\n\t\t\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel panel;\n\t\tint row, col;\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tpanel = new JPanel(layout);\n\t\trow = 0;\n\t\tcol = 0;\n\t\tJLabel headerLabel = new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_SAVE_NEW_CONFIGURATION));\n\t\theaderLabel.setFont(new Font(\"arial\", Font.PLAIN, 18));\n\t\tGUIUtils.add(panel, headerLabel, layout, constraints, row++, col, \n\t\t\t1, 1, 1, 1, GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH,\n\t\t\tGUIUtils.MED_LARGE_INSETS);\n\t\treturn panel;\n\t}", "void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\n }", "public CreateNewEventJPanel() {\n }" ]
[ "0.7652924", "0.761684", "0.727803", "0.72539157", "0.70152426", "0.6985573", "0.6896514", "0.6668015", "0.6624765", "0.65908086", "0.6586284", "0.64460266", "0.64405173", "0.6422427", "0.6352987", "0.6273861", "0.6213734", "0.6207175", "0.6192671", "0.6186423", "0.6174964", "0.61598974", "0.61578536", "0.6155159", "0.61357975", "0.61144567", "0.6101111", "0.6099094", "0.60606515", "0.60435486", "0.6038521", "0.60377795", "0.60344857", "0.60257787", "0.6017765", "0.6005683", "0.59990805", "0.5991024", "0.59739923", "0.59629744", "0.5946595", "0.5923884", "0.5911568", "0.59101206", "0.59088284", "0.5906651", "0.58946276", "0.5886563", "0.58641624", "0.58575225", "0.5857019", "0.585533", "0.5850298", "0.58397967", "0.5835166", "0.58270425", "0.5824497", "0.5811859", "0.5803076", "0.58016753", "0.58014625", "0.57819635", "0.5770273", "0.5752509", "0.5744558", "0.5732113", "0.5731969", "0.5722209", "0.5713491", "0.5709501", "0.5709029", "0.5695186", "0.56891876", "0.56824446", "0.56821984", "0.56780404", "0.56771964", "0.5674549", "0.56664413", "0.56640905", "0.56549174", "0.56513745", "0.5648772", "0.56465554", "0.56423914", "0.56387156", "0.56361157", "0.56171393", "0.5614899", "0.56072056", "0.5600586", "0.5597639", "0.5593754", "0.5593091", "0.5590646", "0.5572595", "0.5565273", "0.5563258", "0.55607516", "0.5552695" ]
0.7948247
0
Adds some cursor listeners
private void addCursorListeners(final TableCursor tcursor, final ControlEditor editor) { // // Add key listener // cursorKeyListener = new CursorKeyListener(this, hexEditor, tcursor, editor); tcursor.addKeyListener(cursorKeyListener); // // Add selection listener // tcursor.addSelectionListener(new SelectionAdapter() { // // When the TableEditor is over a cell, select the corresponding row in the table // @Override public void widgetSelected(SelectionEvent e) { // // First check if there is an active cell editor and if it contains a valid value // if (cursorKeyListener.getText() != null) { String str = cursorKeyListener.getText().getText().toUpperCase(); if (HexUtils.isValidHexNumber(str)) { cursorKeyListener.getCellEditorKeyListener().closeCellEditor(cursorKeyListener.getEventRow(), cursorKeyListener.getEventColumn(), str); } else { cursorKeyListener.setSelection(); return; } } table.setSelection(new TableItem[] {tcursor.getRow()}); HexTablePointer p = getCursorPosition(); table.setCellSelection(p.getRowIndex(), p.getColumnIndex(), cursorKeyListener.isShiftHold()); updateStatusPanel(); } // // When the user hits "ENTER" in the TableCursor, pop up a text editor so that // they can change the text of the cell // @Override public void widgetDefaultSelected(SelectionEvent e) { table.setSelection(new TableItem[] {tcursor.getRow()}); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cursorOn();", "private void addListeners() {\n \t\tfHistoryListener= new HistoryListener();\n \t\tfHistory.addOperationHistoryListener(fHistoryListener);\n \t\tlistenToTextChanges(true);\n \t}", "protected void addEventListeners()\n {\n // Add them to the contents.\n InteractionFigure interactionLayer =\n view.getEditor().getInteractionFigure();\n\n // let mouseState handle delete key events\n interactionLayer.addKeyListener(mouseState);\n getShell().addShellListener(new ShellAdapter() {\n @Override\n public void shellDeactivated(ShellEvent e)\n {\n mouseState.cancelDynamicOperation();\n }\n });\n }", "private void installListeners() {\r\n\t\tcboText.addActionListener(this);\r\n\r\n\t\tComponent c = cboText.getEditor().getEditorComponent();\r\n\t\tif (c instanceof JTextComponent) {\r\n\t\t\t((JTextComponent) c).getDocument().addDocumentListener(this);\r\n\t\t}\r\n\r\n\t\tbtnFind.addActionListener(this);\r\n\t\tbtnReplace.addActionListener(this);\r\n\t\tbtnReplaceAll.addActionListener(this);\r\n\t\tbtnReplaceFind.addActionListener(this);\r\n\r\n\t\trbAll.addActionListener(this);\r\n\t\trbSelectedLines.addActionListener(this);\r\n\r\n\t\tcbUseRegex.addItemListener(this);\r\n\t}", "public void addListeners()\n {\n view.addListeners(new FileButtonClick(view, this), new ViewButtonClick(view, this), new ClassClick(view, this), new RelationshipClick(view, this), new RightClickListenerFactory(view, this));\n\t}", "private void registerListeners() {\n\n\t\tline.addActionListener(new LineButtonListener());\n\t\trect.addActionListener(new RectButtonListener());\n\t\toval.addActionListener(new OvalButtonListener());\n\t\timage.addActionListener(new ImageButtonListener());\n\n\t\tMouseListener listener = new ListenToMouse();\n\t\tMouseMotionListener motionListener = new ListenToMouse();\n\n\t\tcanvas.addMouseMotionListener(motionListener);\n\t\tcanvas.addMouseListener(listener);\n\n\t}", "private void adicionaListeners() {\r\n\t\t\taddFocusListener(this);\r\n\t\t\taddKeyListener(this);\r\n\t\t\taddMouseListener(this);\r\n\t\t}", "private void setListeners() {\n\n }", "private void addActionListeners() {\r\n\t\tbuttonImport.addActionListener(this);\r\n\t\tbuttonCancel.addActionListener(this);\r\n\t\tcbContainsHeader.addActionListener(this);\r\n\t\tcbEnableLenCorrect.addActionListener(this);\r\n\t\ttextfieldDelimSymbol.addKeyListener(this);\r\n\t\ttextfieldLenCorrection.addKeyListener(this);\r\n\t\ttableSelectionPD.registerSelectedProfilesListener(this);\r\n\t}", "@Override\n\tpublic synchronized void registerEventListeners() {\n\t\tif (eventListeners != null) // already called\n\t\t\treturn;\n\t\teventListeners = EventListenerManagers.wrap(this);\n\t\tSelectionUpdateListener selectionUpdateListener = new SelectionUpdateListener();\n\t\tselectionUpdateListener.setHandler(this);\n\t\teventListeners.register(SelectionUpdateEvent.class, selectionUpdateListener);\n\n\t\tSelectionCommandListener selectionCommandListener = new SelectionCommandListener();\n\t\tselectionCommandListener.setHandler(this);\n\t\t// selectionCommandListener.setDataDomainID(dataDomain.getDataDomainID());\n\t\teventListeners.register(SelectionCommandEvent.class, selectionCommandListener);\n\n\t\tsuper.registerEventListeners();\n\n\n\t}", "private void addListeners()\r\n {\r\n Actions act = new Actions();\r\n btnCountA.addActionListener(act);\r\n btnSearch.addActionListener(act);\r\n btnFindL.addActionListener(act);\r\n }", "private void setupListeners() {\n\t\tfor (int i = 0; i < _controlPoints.length; i++) {\n\t\t\taddControlPointListener(_controlPoints[i][0], i);\n\t\t\taddControlPointListener(_controlPoints[i][1], i);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < _selectionButtons.length; i++) {\n\t\t\taddPointSelectionButtonListener(i);\n\t\t}\n\t}", "void registerListeners();", "private void cursorPosChanged( double x, double y )\n {\n }", "void installListeners() {\n\t\t\t// Listeners on this popup's table and scroll bar\n\t\t\tproposalTable.addListener(SWT.FocusOut, this);\n\t\t\tScrollBar scrollbar = proposalTable.getVerticalBar();\n\t\t\tif (scrollbar != null) {\n\t\t\t\tscrollbar.addListener(SWT.Selection, this);\n\t\t\t}\n\n\t\t\t// Listeners on this popup's shell\n\t\t\tgetShell().addListener(SWT.Deactivate, this);\n\t\t\tgetShell().addListener(SWT.Close, this);\n\n\t\t\t// Listeners on the target control\n\t\t\tcontrol.addListener(SWT.MouseDoubleClick, this);\n\t\t\tcontrol.addListener(SWT.MouseDown, this);\n\t\t\tcontrol.addListener(SWT.Dispose, this);\n\t\t\tcontrol.addListener(SWT.FocusOut, this);\n\t\t\t// Listeners on the target control's shell\n\t\t\tShell controlShell = control.getShell();\n\t\t\tcontrolShell.addListener(SWT.Move, this);\n\t\t\tcontrolShell.addListener(SWT.Resize, this);\n\t\t}", "public void addListeners() {\r\n\t\tbtnLogin.addActionListener(listener);\r\n\t\tbtnChooseFile.addActionListener(listener);\r\n\t\tbtnSendMessage.addActionListener(listener);\r\n\t\tbtnRemoveImage.addActionListener(listener);\r\n\t\tbtnUpdateMessages.addActionListener(listener);\r\n\t\tbtnUpdateUsers.addActionListener(listener);\r\n\t}", "private void addAllActiveXListeners()\n throws ActiveXException\n {\n Enumeration e;\n Guid iid;\n \n e = listeners.keys();\n\n while(e.hasMoreElements())\n {\n iid = (Guid) e.nextElement();\n addActiveXListener1(getDispatchPointer(), iid); \n }\n }", "void addCursor(final Cursor c)\n {\n cursors.add(c);\n }", "private void setupListeners()\n\t{\n\t\tfinal String query = \"INSERT INTO\" + \"`\" + table + \"` \" + getFields() + \"VALUES\" + getValues();\n\t\t\n\t\tqueryButton.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent click)\n\t\t\t{\n\t\t\t\tbaseController.getDataController().submitUpdateQuery(query);\n\t\t\t}\n\t\t});\n\t}", "public void createListeners() {\n\n addRow.addActionListener(e -> gui.addRow());\n deleteRow.addActionListener(e -> gui.deleteRow());\n }", "public void draw_cursor(){\n }", "protected void attachListeners() {\n\t\t\n\t}", "private void initInputListeners() {\n focusGrabber = new FocusGrabber();\r\n mouseClickScroller = new MouseClickScroller();\r\n cursorChanger = new CursorChanger();\r\n wheelScroller = new MouseWheelScroller();\r\n keyScroller = new KeyScroller();\r\n }", "public void addActionListeners() {\n\t\tbtnReadRow.addActionListener(this);\n\t\tbtnPrintRow.addActionListener(this);\n\t\tbtnReadCol.addActionListener(this);\n\t\tbtnPrintCol.addActionListener(this);\n\t}", "private void paintCursor() {\r\n }", "private void listen() {\n doneSignal.reset();\n mouseListener.startListening();\n\n try { doneSignal.await(); }\n catch (InterruptedException ex) { }\n catch (BrokenBarrierException ex) { }\n\n execute(mouseListener.getLastX(), mouseListener.getLastY());\n }", "@Override\n\tpublic void addListener() {\n\t\t\n\t}", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "public void addListeners() {\n\t\timages[TOP].setOnClickListener(top);\t\n\t\timages[BOTTOM].setOnClickListener(bottom);\n\t\timages[TOP].setOnLongClickListener(topsave);\t\n\t\timages[BOTTOM].setOnLongClickListener(bottomsave);\n }", "private void setListeners() {\n\t\trefreshButton.addActionListener(new refreshButtonListener());\n\n\t\tthis.list.addMouseListener(new MouseAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent event) {\n\t\t\t\tif (event.getClickCount() == 2 && list.getSelectedValue() != null && !list.getSelectedValue().equals(\"\") && tabs.getSelectedIndex() != -1) {\n\t\t\t\t\tlaunchDocument(tabs.getTitleAt(tabs.getSelectedIndex()), list.getSelectedValue());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttabs.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\t\tif (!tabs.getTitleAt(tabs.getSelectedIndex()).equals(\"Chat\")) {\n\t\t\t\t\tlistmodel.clear();\n\t\t\t\t\tmakeRequest();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t}", "public void addListeners()\n {\n super.addListeners();\n BookingLine recBookingLine = (BookingLine)this.getRecord(BookingLine.BOOKING_LINE_FILE);\n Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE);\n recBooking.addArDetail(null, recBookingLine, false);\n \n recBookingLine.getField(BookingLine.PRICE).addListener(new CopyDataHandler(recBookingLine.getField(BookingLine.PRICING_STATUS_ID), new Integer(PricingStatus.MANUAL), null));\n recBookingLine.addListener(new BookingLineStatusHandler(null));\n }", "private void addListeners(){\n Conservable[] listenerFromProductTypeRelation = this.productRelation.getListener();\n this.listener[0] = listenerFromProductTypeRelation[0];\n this.listener[1] = listenerFromProductTypeRelation[1];\n this.listener[2] = this.post;\n this.listener[3] = this.productRelation;\n this.listener[4] = this;\n }", "protected void installListeners() {\n\n\t}", "public void createMouseListeners() {\n\t\taddMouseListener(new MouseAdapter() {\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t\t// Change current focus\n\t\t\t\tLineConnectPanel.this.requestFocusInWindow();\n\t\t\t\t\n\t\t\t\t// Deselect all synths\n\t\t\t\tdeselectAll();\n\t\t\t\t\n\t\t\t\t// Start dragging \n\t\t\t\tif (pointHovering && !dragging) {\n\t\t\t\t\toriginPanel = currentPanel;\n\t\t\t\t\tconnectOrigin = originPanel.getConnectionLocation(); // new\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Point(e.getX(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// e.getY());\n\t\t\t\t\tconnectDestination = new Point(e.getPoint());\n\t\t\t\t\tdragging = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check if clicking a line\n\t\t\t\tif (!pointHovering) {\n\t\t\t\t\tclicked = getClickedConnection(e.getPoint(), 10);\n\t\t\t\t\tif (clicked != null) {\n\t\t\t\t\t\tclicked.setClicked(true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (Connection connection : getConnections()) {\n\t\t\t\t\t\t\tconnection.setClicked(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tLineConnectPanel.this.requestFocusInWindow();\n\t\t\t\t\t}\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t\tsuper.mouseReleased(e);\n\t\t\t\t\n\t\t\t\t// If the mouse was dragging, see if we landed on anything\n\t\t\t\tif (dragging) {\n\t\t\t\t\tdragging = false;\n\t\t\t\t\t\n\t\t\t\t\t// Found a destination panel, try and connect the points\n\t\t\t\t\tif (destinationPanel != null) {\n\t\t\t\t\t\tSystem.out.println(\"Destination box exists\");\n\t\t\t\t\t\tconnectPoints(originPanel.getConnector(), destinationPanel.getConnector());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Reset origin and destination\n\t\t\t\t\toriginPanel = null;\n\t\t\t\t\tdestinationPanel = null;\n\t\t\t\t\t\n\t\t\t\t\t// Check for hovering\n\t\t\t\t\tfor (ConnectablePanel connectableBox : boxes) {\n\t\t\t\t\t\tconnectableBox.checkPointHover(e);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\taddMouseMotionListener(new MouseAdapter() {\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\tconnectDestination = new Point(e.getPoint());\n\t\t\t\trepaint();\n\t\t\t\tcheckPoints(e);\n\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\tcheckPoints(e);\n\t\t\t\t//System.out.println(\"CHecking points\");\n\t\t\t};\n\n\t\t});\n\t}", "public void setCursor(Cursor c) {\n\n\t}", "public abstract void registerListeners();", "private void registerListeners() {\r\n View.OnClickListener clickListener = new ButtonListener();\r\n btnStart.setOnClickListener(clickListener);\r\n btnStop.setOnClickListener(clickListener);\r\n }", "protected void installListeners() {\n\t}", "private void agregarListeners() {\n this.vista.jbAceptar.addActionListener(this);\n this.vista.jbAgregar.addActionListener(this);\n this.vista.jbCancelar.addActionListener(this);\n this.vista.jbQuitar.addActionListener(this);\n this.vista.jtPermisosDisponibles.addMouseListener(this);\n this.vista.jtPermisosSeleccionados.addMouseListener(this);\n }", "protected void installListeners() {\n }", "protected void installListeners() {\n }", "private void registerEvents() {\n MouseEventHandler handler = new MouseEventHandler();\n setOnMousePressed(handler);\n setOnMouseReleased(handler);\n setOnMouseMoved(handler);\n setOnMouseEntered(handler);\n setOnMouseExited(handler);\n\n }", "public void setListeners() {\n backButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n\n settingButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showEditDialog();\n }\n });\n\n cameraButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showChoosePictureDialog();\n }\n });\n }", "@Override\r\n\tprotected void setListeners() {\n\t\t\r\n\t}", "private void registerEventListeners() {\n addDisposeListener(new DisposeListener() {\n @Override\n public void widgetDisposed(DisposeEvent de) {\n Display display = getDisplay();\n display.removeFilter(SWT.Move, moveFilter);\n OldFXCanvas.this.widgetDisposed(de);\n }\n });\n\n addPaintListener(pe -> {\n OldFXCanvas.this.paintControl(pe);\n });\n\n addMouseListener(new MouseListener() {\n @Override\n public void mouseDoubleClick(MouseEvent me) {\n // Clicks and double-clicks are handled in FX\n }\n @Override\n public void mouseDown(MouseEvent me) {\n // FX only supports 3 buttons so don't send the event for other buttons\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }\n @Override\n public void mouseUp(MouseEvent me) {\n // FX only supports 3 buttons so don't send the event for other buttons\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_RELEASED);\n }\n });\n\n addMouseMoveListener(me -> {\n if ((me.stateMask & SWT.BUTTON_MASK) != 0) {\n // FX only supports 3 buttons so don't send the event for other buttons\n if ((me.stateMask & (SWT.BUTTON1 | SWT.BUTTON2 | SWT.BUTTON3)) != 0) {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_DRAGGED);\n } else {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_MOVED);\n }\n } else {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_MOVED);\n }\n });\n\n addMouseWheelListener(me -> {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_WHEEL);\n });\n\n addMouseTrackListener(new MouseTrackListener() {\n @Override\n public void mouseEnter(MouseEvent me) {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_ENTERED);\n }\n @Override\n public void mouseExit(MouseEvent me) {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_EXITED);\n }\n @Override\n public void mouseHover(MouseEvent me) {\n // No mouse hovering in FX\n }\n });\n\n addControlListener(new ControlListener() {\n @Override\n public void controlMoved(ControlEvent ce) {\n OldFXCanvas.this.sendMoveEventToFX();\n }\n @Override\n public void controlResized(ControlEvent ce) {\n OldFXCanvas.this.sendResizeEventToFX();\n }\n });\n\n addFocusListener(new FocusListener() {\n @Override\n public void focusGained(FocusEvent fe) {\n OldFXCanvas.this.sendFocusEventToFX(fe, true);\n }\n @Override\n public void focusLost(FocusEvent fe) {\n OldFXCanvas.this.sendFocusEventToFX(fe, false);\n }\n });\n\n addKeyListener(new KeyListener() {\n @Override\n public void keyPressed(KeyEvent e) {\n OldFXCanvas.this.sendKeyEventToFX(e, SWT.KeyDown);\n \n }\n @Override\n public void keyReleased(KeyEvent e) {\n OldFXCanvas.this.sendKeyEventToFX(e, SWT.KeyUp);\n }\n });\n \n addMenuDetectListener(e -> {\n Runnable r = () -> {\n if (isDisposed()) {\n return;\n }\n OldFXCanvas.this.sendMenuEventToFX(e);\n };\n // In SWT, MenuDetect comes before the equivalent mouse event\n // On Mac, the order is MenuDetect, MouseDown, MouseUp. FX\n // does not expect this order and when it gets the MouseDown,\n // it closes the menu. The fix is to defer the MenuDetect\n // notification until after the MouseDown is sent to FX.\n if (\"cocoa\".equals(SWT.getPlatform())) {\n getDisplay().asyncExec(r);\n } else {\n r.run();\n }\n });\n }", "public void addListeners() {\n\n startButton.addActionListener(e -> {\n if (play) {\n gameFrame.startGame();\n } else {\n gameFrame.stopGame();\n }\n play = !play;\n setTextOfStartPause();\n });\n saveButton.addActionListener(e -> {\n gameFrame.saveGame();\n });\n loadButton.addActionListener(e -> {\n gameFrame.loadGame();\n });\n resetButton.addActionListener(e -> {\n gameFrame.clearBoard();\n play = true;\n setTextOfStartPause();\n });\n exitButton.addActionListener(e -> {\n gameFrame.exitGame();\n });\n }", "@Override\r\n\tprotected void attachListeners() {\n\t\t\r\n\t}", "protected void installListeners() {\n\t\tMappingMouseWheelListener mouseWheelHandler = \n\t\t\t\tnew MappingMouseWheelListener(this);\n\n\t\t// Handles mouse wheel events in the outline and graph component\n\t\tgraphOutline.addMouseWheelListener(mouseWheelHandler);\n\t\tgraphComponent.addMouseWheelListener(mouseWheelHandler);\n\n\t\tGraphOutlinePopupMouseAdapter outlinePoputListener = new \n\t\t\t\tGraphOutlinePopupMouseAdapter(this);\n\t\t\n\t\t// Installs the popup menu in the outline\n\t\tgraphOutline.addMouseListener(outlinePoputListener);\n\n\t\tGraphComponentPopupMouseAdapter componentPoputListener = new \n\t\t\t\tGraphComponentPopupMouseAdapter(this);\n\t\t\n\t\t// Installs the popup menu in the graph component\n\t\tgraphComponent.getGraphControl().addMouseListener(\n\t\t\t\tcomponentPoputListener);\n\t}", "public void setCursor(int l, int c);", "private void setInputListeners () {\r\n // initialize input state\r\n myLastKeyPressed = NO_KEY_PRESSED;\r\n myKeys = new TreeSet<Integer>();\r\n addKeyListener(new KeyAdapter() {\r\n @Override\r\n public void keyPressed (KeyEvent e) {\r\n // resets key after being used once. Does not affect getKeysPressed.\r\n if (myLastKeyPressed == e.getKeyCode()) {\r\n myLastKeyPressed = NO_KEY_PRESSED;\r\n }\r\n else {\r\n myLastKeyPressed = e.getKeyCode();\r\n }\r\n myKeys.add(e.getKeyCode());\r\n }\r\n\r\n @Override\r\n public void keyReleased (KeyEvent e) {\r\n myKeys.remove(e.getKeyCode());\r\n }\r\n });\r\n myLastMousePosition = NO_MOUSE_PRESSED;\r\n addMouseMotionListener(new MouseMotionAdapter() {\r\n @Override\r\n public void mouseDragged (MouseEvent e) {\r\n myLastMousePosition = e.getPoint();\r\n }\r\n });\r\n addMouseListener(new MouseAdapter() {\r\n @Override\r\n public void mousePressed (MouseEvent e) {\r\n myLastMousePosition = e.getPoint();\r\n myMouseClick = true;\r\n }\r\n\r\n @Override\r\n public void mouseReleased (MouseEvent e) {\r\n myLastMousePosition = NO_MOUSE_PRESSED;\r\n myMouseClick = false;\r\n }\r\n });\r\n }", "public void fireScreenCursorChanged(long id, float x, float y,\r\n\t\t\tfloat pressure) {\r\n\t\tfor (ScreenCursorListener l : screenCursorListeners) {\r\n\t\t\tl.screenCursorChanged(this, id, x, y, pressure);\r\n\t\t}\r\n\t}", "private void addListeners() {\n table.addValueChangeListener((Property.ValueChangeListener) this);\n// selectedCustomer.comboBoxSelectCustomer.addValueChangeListener((Property.ValueChangeListener) this);\n }", "private void addListeners() {\n\t\t\n\t\tresetButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \treset();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\ttoggleGroup.selectedToggleProperty().addListener(\n\t\t\t (ObservableValue<? extends Toggle> ov, Toggle old_toggle, \n\t\t\t Toggle new_toggle) -> {\n\t\t\t \t\n\t\t\t \tif(rbCourse.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, CourseSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbAuthor.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, AuthorSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbNone.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.setDisable(true);\n\t\t \t\t\n\t\t \t}\n\t\t\t \t\n\t\t\t});\n\t\t\n\t\tapplyButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tfilter();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\tsearchButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tResult.instance().search(quizIDField.getText());\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t}", "private void addListeners() {\n\n\t\tfinal ComponentsController serviceController = (ComponentsController) componentsService;\n\t\t/*\n\t\t * service controller listener:\n\t\t */\n\t\tfinal ChangeListener changeListener = new ChangeListener() {\n\t\t\tpublic void modelChanged(ChangeEvent ce) {\n\t\t\t\tPmsChangeEvent event = (PmsChangeEvent) ce;\n\t\t\t\tswitch (event.getType()) {\n\t\t\t\t\tcase PmsChangeEvent.UPDATE:\n\t\t\t\t\t\tonComponentUpdate((InheritedComponentInstanceSelDTO) event.getEventInfo());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PmsChangeEvent.IMPORT:\n\t\t\t\t\t\ttryGetComponents();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: // event not expected: nothing to do here.\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tserviceController.addChangeListener(changeListener);\n\t\t\n\t\t// remove listener from components controller when this panel is detached\n\t\taddListener(Events.Detach, new Listener<BaseEvent>() {\n\t\t\tpublic void handleEvent(BaseEvent be) {\n\t\t\t\tserviceController.removeChangeListener(changeListener);\n\t\t\t}\n\t\t});\n\n\t\t/*\n\t\t * Grid RowClick listener\n\t\t */\n\t\tgrid.addListener(Events.RowClick, new Listener<GridEvent<InheritedComponentInstanceSelModelData>>() {\n\t\t\tpublic void handleEvent(GridEvent<InheritedComponentInstanceSelModelData> ge) {\n\t\t\t\tInheritedComponentInstanceSelModelData model = grid.getSelectionModel().getSelectedItem();\n\t\t\t\tif (model != null) {\n\t\t\t\t\tenableDisableButtons(model);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void initListeners() {\n comboBox.comboBoxListener(this::showProgramData);\n view.refreshListener(actionEvent -> scheduledUpdate());\n\n }", "private void initListeners() {\n this.setOnMousePressed((event -> {\n this.setPressedStyle();\n }));\n\n this.setOnMouseReleased((event -> {\n this.setReleasedStyle();\n }));\n\n this.setOnMouseEntered((event -> {\n this.setEffect(new DropShadow());\n }));\n\n this.setOnMouseExited((event -> {\n this.setEffect(null);\n }));\n }", "public void setCursor(int row, int col);", "private void setListener() {\n\t}", "@Override\r\n\tpublic void initListeners() {\n\t\t\r\n\t}", "private void initCursor() {\n cursor = new Rectangle();\n root.getChildren().add(cursor);\n cursor.setWidth(1.5);\n\n Timeline timeline = new Timeline();\n timeline.setCycleCount(Animation.INDEFINITE);\n\n KeyFrame keyFrame = new KeyFrame(Duration.seconds(0.5), new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent actionEvent) {\n if (isVisiable) {\n cursor.setFill(Color.WHITE);\n isVisiable = !isVisiable;\n } else {\n cursor.setFill(Color.BLACK);\n isVisiable = !isVisiable;\n }\n actionEvent.consume();\n }\n });\n\n timeline.getKeyFrames().add(keyFrame);\n timeline.play();\n }", "void addListeners() {\n\t\t/* Get a handle to the views */\n\t\tmsgText = (TextView) findViewById(R.id.msgView); //TextView handle\n\t\tviewAgainButton = (Button) findViewById(R.id.button_viewAgain); //Button handle\n\t\t\n\t\t/* Add a click listener to the View Again button */\n\t\tviewAgainButton.setOnClickListener(this);\n\t\t\n\t\t/* Add a click listener to the Instructions button */\n\t\tButton buttonInstructions = (Button) findViewById(R.id.button_instructions2);\n\t\tbuttonInstructions.setOnClickListener(this);\n\t\t\n\t\t/* Add listeners to the ImageViews */\n\t\taddImageViewListeners();\n\t}", "@Override\n\tprotected void initListeners() {\n\t\t\n\t}", "private void setListeners() {\r\n \t/*----------------------------\r\n\t\t * 1. Buttons\r\n\t\t\t----------------------------*/\r\n\t\t//\r\n \tButton bt_create = (Button) findViewById(R.id.db_manager_btn_create_table);\r\n \tButton bt_drop = (Button) findViewById(R.id.db_manager_btn_drop_table);\r\n \tButton bt_register_patterns = \r\n \t\t\t\t\t\t(Button) findViewById(R.id.db_manager_btn_register_patterns);\r\n \t\r\n \t/*----------------------------\r\n\t\t * 2. Tags\r\n\t\t\t----------------------------*/\r\n \tbt_create.setTag(Methods.ButtonTags.db_manager_activity_create_table);\r\n \tbt_drop.setTag(Methods.ButtonTags.db_manager_activity_drop_table);\r\n \tbt_register_patterns.setTag(Methods.ButtonTags.db_manager_activity_register_patterns);\r\n \t\r\n \t/*----------------------------\r\n\t\t * 3. Listeners\r\n\t\t * \t\t1. OnClick\r\n\t\t * \t\t2. OnTouch\r\n\t\t\t----------------------------*/\r\n \t/*----------------------------\r\n\t\t * 3.1. OnClick\r\n\t\t\t----------------------------*/\r\n \t//\r\n \tbt_create.setOnClickListener(new ButtonOnClickListener(this));\r\n \tbt_drop.setOnClickListener(new ButtonOnClickListener(this));\r\n \tbt_register_patterns.setOnClickListener(new ButtonOnClickListener(this));\r\n \t\r\n \t/*----------------------------\r\n\t\t * 3.2. OnTouch\r\n\t\t\t----------------------------*/\r\n \t//\r\n \tbt_create.setOnTouchListener(new ButtonOnTouchListener(this));\r\n \tbt_drop.setOnTouchListener(new ButtonOnTouchListener(this));\r\n \tbt_register_patterns.setOnTouchListener(new ButtonOnTouchListener(this));\r\n \t\r\n \t/*----------------------------\r\n\t\t * 4. Disenable => \"Create table\"\r\n\t\t\t----------------------------*/\r\n// \tbt_create.setEnabled(false);\r\n \t\r\n\t}", "public void add(InputChangedListener listener)\r\n {\r\n\r\n }", "public void addActionListeners() {\n\t\tApp.sc.createListener(\"/\" + this.getID() + \"/action/sent\", new OSCListener() {\n\t\t\t@Override\n\t\t\tpublic void acceptMessage(Date time, OSCMessage message) {\n\t\t\t\tConnector actionOutConnector = getConnector(ConnectorType.ACTION_OUT);\n\t\t\t\tactionOutConnector.flashConnection();\n\t\t\t}\n\t\t});\n\t}", "private void addConsoleWindowListener() {\n this.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n ConnectWindow.exitConnectWindow();\n }\n });\n }", "private void addListeners() {\r\n updateMethod.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n enableFieldBasedOnUpdateMethod();\r\n }\r\n });\r\n cbUseLeakyLearning.addActionListener(this);\r\n cbUseLeakyLearning.setActionCommand(\"useLeakyLearning\");\r\n }", "public void fireScreenCursorClicked(long id, float x, float y,\r\n\t\t\tfloat pressure) {\r\n\t\tfor (ScreenCursorListener l : screenCursorListeners) {\r\n\t\t\tl.screenCursorClicked(this, id, x, y, pressure);\r\n\t\t}\r\n\t}", "public void add(InputChangedListener listener)\r\n\t{\r\n\r\n\t}", "public void addListeners()\n {\n nameEdit.addTextChangedListener(new TextWatcher()\n {\n @Override\n public void afterTextChanged(Editable arg0)\n {\n boolean isEmpty = nameEdit.getText().toString().isEmpty();\n acceptButton.setEnabled(!isEmpty);\n }\n\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {}\n });\n\n numStandsEdit.addTextChangedListener(new TextWatcher()\n {\n @Override\n public void afterTextChanged(Editable s)\n {\n acceptButton.setEnabled(checkNumber());\n }\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {}\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {}\n });\n }", "private void initializeListeners() {\n llBack.setOnClickListener(this);\n btnChange.setOnClickListener(this);\n btnNext.setOnClickListener(this);\n }", "public final void updateListener() {\n\t\tswitch (state) {\n\t\tcase 0:\n\t\t\taddMouseListenerToResultList();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\taddMouseListenerToMovieDisplay();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\taddMouseListenerToPersonDisplay();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\taddMouseListenerToCompanyDisplay();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\taddMouseListenerToRandomMoviePanel();\n\t\t\tbreak;\n\t\t}\n\t}", "private void addMenuListeners()\n\t{\n\t\texit.addActionListener (new menuListener());\n\t\treadme.addActionListener (new menuListener());\n\t\tabout.addActionListener (new menuListener());\n\t\tsettings.addActionListener (new menuListener());\n\t}", "public void enableMultiTouchElementListeners() {\r\n\t\tif (itemListeners == null) {\r\n\t\t\titemListeners = new ArrayList<ItemListener>();\r\n\t\t}\r\n\t\tif (screenCursorListeners == null) {\r\n\t\t\tscreenCursorListeners = new ArrayList<ScreenCursorListener>();\r\n\t\t}\r\n\t\tif (orthoControlPointRotateTranslateScaleListeners == null) {\r\n\t\t\torthoControlPointRotateTranslateScaleListeners = new ArrayList<OrthoControlPointRotateTranslateScaleListener>();\r\n\t\t}\r\n\t\tif (bringToTopListeners == null) {\r\n\t\t\tbringToTopListeners = new ArrayList<BringToTopListener>();\r\n\t\t}\r\n\t\tif (orthoSnapListeners == null) {\r\n\t\t\torthoSnapListeners = new ArrayList<OrthoSnapListener>();\r\n\t\t}\r\n\t\tif (flickListeners == null) {\r\n\t\t\tflickListeners = new ArrayList<OrthoFlickListener>();\r\n\t\t}\r\n\t\t\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addBringToTopListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addItemListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addOrthoControlPointRotateTranslateScaleListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addSnapListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addFlickListener(this);\r\n\t}", "public static void addListenersToSpatial( Spatial s, MouseListener... listeners ) {\n if( s == null ) {\n return;\n }\n MouseEventControl mec = s.getControl(MouseEventControl.class);\n if( mec == null ) {\n s.addControl(new MouseEventControl(listeners));\n } else {\n mec.listeners.addAll(Arrays.asList(listeners));\n }\n }", "private void setListener() {\n\t\tmSlidingLayer.setOnInteractListener(this);\r\n\t\tmMsgNotifySwitch.setOnCheckedChangeListener(this);\r\n\t\tmMsgSoundSwitch.setOnCheckedChangeListener(this);\r\n\t\tmShowHeadSwitch.setOnCheckedChangeListener(this);\r\n\t\tmAccountSetting.setOnClickListener(this);\r\n\t\tmMyProfile.setOnClickListener(this);\r\n\t\tmFaceJazzEffect.setOnClickListener(this);\r\n\t\tmAcountInfo.setOnClickListener(this);\r\n\t\tmFeedBack.setOnClickListener(this);\r\n\t\tmExitAppBtn.setOnClickListener(this);\r\n\r\n\t}", "private void addKeyListeners()\n\t{\n\t\tentry.addKeyListener (new keyListener());\n\t}", "private void addEvents() {\n\t mlv.getMapNotesOverlay().addEventListener(new NoteSelectedListener()\n {\n\t \t\n\t\t\t@Override\n\t\t\tpublic void handleNoteSelectedEvent(EventObject e, Group gr) {\n\t\t\t\t//We have to go to gallery because the user has select a (groups) note\n\t\t\t\tselectedGroup = gr;\n\t\t\t\tonClick(mlv);\n\t\t\t}\n \t\n });\t\t\t\t\n\t\t\n\t}", "public void setCursorColor ( Color cursorColor ) { _cursorColor = cursorColor; }", "private void cargaListeners() {\n\t\tbtnGuardar.addActionListener(this);\n\n\t}", "private void listenersInitiation() {\n ActionSelectors listener = new ActionSelectors();\n submit.addActionListener(listener);\n goBack.addActionListener(listener);\n }", "private void initEvents() {\n\t\tuser_head_img.setOnClickListener(this);\r\n\t\ttxt_zcgl.setOnClickListener(this);\r\n\t\ttxt_tzgl.setOnClickListener(this);\r\n\t\ttxt_jlcx.setOnClickListener(this);\r\n\t\ttxt_wdyhk.setOnClickListener(this);\r\n\t\ttxt_wdxx.setOnClickListener(this);\r\n\t\tlayout_zhaq.setOnClickListener(this);\r\n\t\tlayout_ssmm.setOnClickListener(this);\r\n\t\ttxt_myredpager.setOnClickListener(this);\r\n\t}", "private void setEventListener() {\n mCameraView.addCameraKitListener(this);\n mCameraButton.setOnClickListener(this);\n mCameraButtonCloud.setOnClickListener(this);\n }", "public void addListeners(){\n\n //listener for artists ComboBox\n artists.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n if(t1 != null){\n search.setDisable(false);\n genres.getSelectionModel().clearSelection();\n year.getSelectionModel().clearSelection();\n }\n }\n });\n\n //listener for genres ComboBox\n genres.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n if(t1 != null){\n search.setDisable(false);\n artists.getSelectionModel().clearSelection();\n year.getSelectionModel().clearSelection();\n }\n }\n });\n\n //listener for year ComboBox\n year.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Integer>() {\n @Override\n public void changed(ObservableValue<? extends Integer> observableValue, Integer integer, Integer t1) {\n if(t1 != null){\n search.setDisable(false);\n artists.getSelectionModel().clearSelection();\n genres.getSelectionModel().clearSelection();\n }\n }\n });\n\n }", "public void setListeners(){\n\t\t\n\t\tthis.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// chosen to add new patient\n\t\t\t\t\n\t\t\t\tArrayList<String> constructorInput = null;\n\t\t\t\tconstructorInput = NewPatientWindow.showInputdialog(true);\n\t\t\t\t\n\t\t\t\t// if cancel or close chosen on new patient window:\n\t\t\t\tif (constructorInput == null)\n\t\t\t\t\treturn; \n\t\t\t\t\n\t\t\t\t//else:\n\t\t\t\tBrainFreezeMain.patients.add(new Patient(\n\t\t\t\t\t\t(constructorInput.toArray( new String[constructorInput.size()]))));\n\t\t\t\tBrainFreezeMain.currentPatientIndex = BrainFreezeMain.patients.size()-1;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLeftPanel.refreshPatientLabel(); // change to patient list, update label\n\t\t\t\tLeftPanel.refreshPatientData(); // change to patient, update data\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t}", "void setCursor(int kind);", "@Override\n\tpublic void start() {\n\t\tMouseEvtHandler handler = new MouseEvtHandler();\n\t\ttable.addMouseListener(handler);\n\n\t}", "void addListeners() {\n final FilteredList<GenomePath> filteredList = new FilteredList<>(graphVisualizer.getGenomePathsProperty(),\n s -> s.getName().contains(searchField.textProperty().get()));\n\n pathTable.setItems(filteredList);\n\n // Updates the filtered list predicate on a search\n searchField.textProperty().addListener((observable, oldValue, newValue) ->\n filteredList.setPredicate(getPredicate(newValue)));\n\n matchCase.selectedProperty().addListener((observable, oldValue, newValue) ->\n filteredList.setPredicate(getPredicate(searchField.getText())));\n\n regex.selectedProperty().addListener((observable, oldValue, newValue) ->\n filteredList.setPredicate(getPredicate(searchField.getText())));\n\n // Updates the label with the number of paths that are displayed\n filteredList.getSource().addListener((ListChangeListener<GenomePath>) c ->\n pathsFound.textProperty().setValue(\"Paths found: \" + filteredList.size()));\n }", "private void addChangeListeners() {\r\n myTetrisPanel.addPropertyChangeListener(myInfoPanel);\r\n myTetrisMenuBar.addPropertyChangeListener(myInfoPanel);\r\n myTetrisMenuBar.addPropertyChangeListener(myKeyAdapter);\r\n myTetrisMenuBar.addPropertyChangeListener(myTetrisPanel);\r\n addPropertyChangeListener(myTetrisMenuBar);\r\n myInfoPanel.addPropertyChangeListener(myTetrisMenuBar);\r\n }", "private void InitListeners() {\n craftRobot.addActionListener(e -> settler.CraftRobot());\n craftTp.addActionListener(e -> settler.CraftTeleportGate());\n placeTp.addActionListener(e -> settler.PlaceTeleporter());\n fill.addActionListener(e -> {\n if(!inventory.isSelectionEmpty()) settler.PlaceResource(inventory.getSelectedValue());\n });\n inventory.addListSelectionListener(e -> fill.setEnabled(!(inventory.isSelectionEmpty())\n && settler.GetOnAsteroid().GetResource()==null\n && settler.GetOnAsteroid().GetLayerCount()==0)\n );\n }", "public void addMySelectionListener(EventListener l);", "public void addListener(EventListener listener);", "private void addEventsToTextBox() {\n \t\ttextBox.addFocusHandler(this);\n \t\ttextBox.addBlurHandler(this);\n \t\ttextBox.addKeyDownHandler(this);\n \t\ttextBox.addKeyUpHandler(this);\n \t\ttextBox.addKeyPressHandler(this);\t\t\n \t}", "public void setListeners() {\n mbt_no_realizar_comentario.setOnClickListener(this);\n mbt_realizar_comentario_propietario.setOnClickListener(this);\n }", "private void setListeners() {\n btnSearch.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n searchAddress();\n }\n });\n\n lvResult.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(MainActivity.this, MapActivity.class);\n intent.putExtra(RESULT_KEY, geocodingResult);\n intent.putExtra(SELECTED_POSITION_KEY, position);\n startActivity(intent);\n }\n });\n }", "private void setClickListeners() {\n buttonSomethingWentWrong.setOnClickListener(this);\n buttonSuggestion.setOnClickListener(this);\n buttonHighlightRequest.setOnClickListener(this);\n closeButton.setOnClickListener(this);\n }", "public void setupUIListeners() {\n\t\tsetupEditTextListeners();\n\t\tsetupSeekBarsListeners();\n\t}", "private void setupListeners()\n\t{\n\t\tequals.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.calculate();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tequals.setBackground(Color.RED.darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tequals.setBackground(Color.RED);\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tequals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tequals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t\tclear.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.clearText();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tclear.setBackground(new Color(0, 170, 100).darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tclear.setBackground(new Color(0, 170, 100));\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tclear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tclear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t\tbackspace.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.backspace();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tbackspace.setBackground(new Color(0, 170, 100).darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tbackspace.setBackground(new Color(0, 170, 100));\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tbackspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tbackspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t\tnegative.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.changeSign();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tnegative.setBackground(Color.GRAY.darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tnegative.setBackground(Color.GRAY);\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tnegative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tnegative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}" ]
[ "0.698051", "0.67655534", "0.6672212", "0.66586566", "0.6575908", "0.65345156", "0.6374527", "0.630641", "0.62407666", "0.6206432", "0.619011", "0.61676157", "0.61595803", "0.6152801", "0.61273766", "0.6097745", "0.60903066", "0.6080392", "0.6063961", "0.605741", "0.60364765", "0.60175806", "0.6014882", "0.6005771", "0.59862834", "0.5984873", "0.5983943", "0.59786594", "0.59753627", "0.5969495", "0.5931301", "0.5909291", "0.5893477", "0.5888986", "0.58885354", "0.5887786", "0.5873075", "0.5872059", "0.5866869", "0.5864086", "0.5864086", "0.5851016", "0.5841048", "0.58307976", "0.58262384", "0.5824983", "0.58223134", "0.5820925", "0.581953", "0.578663", "0.57852745", "0.5773435", "0.5750114", "0.5745169", "0.5737058", "0.5727754", "0.5727057", "0.57253104", "0.57176286", "0.57147205", "0.5709907", "0.57023823", "0.5679202", "0.56681687", "0.5641976", "0.56367385", "0.5635838", "0.56355387", "0.563513", "0.563258", "0.5631377", "0.5619382", "0.5612946", "0.5611428", "0.560788", "0.5607878", "0.5595815", "0.5594729", "0.5582078", "0.55749136", "0.55720407", "0.55715543", "0.55698085", "0.55637777", "0.5561622", "0.5557283", "0.55433375", "0.5539271", "0.5529146", "0.5528107", "0.5516441", "0.5510511", "0.55014974", "0.5501097", "0.5477303", "0.5470489", "0.54614705", "0.5460634", "0.5455977", "0.5455977" ]
0.6784261
1
When the TableEditor is over a cell, select the corresponding row in the table
@Override public void widgetSelected(SelectionEvent e) { // // First check if there is an active cell editor and if it contains a valid value // if (cursorKeyListener.getText() != null) { String str = cursorKeyListener.getText().getText().toUpperCase(); if (HexUtils.isValidHexNumber(str)) { cursorKeyListener.getCellEditorKeyListener().closeCellEditor(cursorKeyListener.getEventRow(), cursorKeyListener.getEventColumn(), str); } else { cursorKeyListener.setSelection(); return; } } table.setSelection(new TableItem[] {tcursor.getRow()}); HexTablePointer p = getCursorPosition(); table.setCellSelection(p.getRowIndex(), p.getColumnIndex(), cursorKeyListener.isShiftHold()); updateStatusPanel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }", "public void widgetSelected(SelectionEvent e) {\n table.setSelection(new TableItem[]{cursor.getRow()});\n }", "@Override\n public void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\ttable.setSelection(new TableItem[] {tcursor.getRow()});\n\t\t\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\r\n\t\tJTable table = (JTable) e.getSource();\r\n\t\tthis.selectedRow = table.getSelectedRow();\r\n\t}", "public void widgetSelected(SelectionEvent e) {\n Control oldEditor = editor.getEditor();\n \n TableItem item = (TableItem) e.item;\n if (item == null) {\n return;\n }\n \n if (oldEditor != null) {\n oldEditor.dispose(); // FIX the focus\n }\n // Identify the selected row\n \n // The control that will be the editor must be a child of the\n // Table\n final Text textNewEditor = new Text(table, SWT.NONE);\n \n textNewEditor.setText(item.getText(EDITABLECOLUMN));\n textNewEditor.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent me) {\n Text text = (Text) editor.getEditor();\n editor.getItem()\n .setText(EDITABLECOLUMN, text.getText());\n }\n });\n \n /*\n * TODO FIX the focus\n */\n textNewEditor.selectAll();\n // newEditor.setFocus();\n editor.setEditor(textNewEditor, item, EDITABLECOLUMN);\n }", "public void fireTableRowSelected(Object source, int iRowIndex, int iSelectionType);", "@Override\n public void focusGained(FocusEvent fe) {\n if (!table.getSelectionModel().isSelectionEmpty()) \n Order.selectedBookingIDRow = (int) table.getValueAt(table.getSelectedRow(), 0);\n }", "@Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n int rowUnderMouse = getTable().rowAtPoint(e.getPoint());\n// if (rowUnderMouse != -1 && !getTable().isRowSelected(rowUnderMouse)) {\n// selected = rowUnderMouse;\n// }\n selected = rowUnderMouse;\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void editFocusedCell() {\r\n\t\tfinal TablePosition<ArbeitspaketTableData, ?> focusedCell = tabelle.focusModelProperty().get()\r\n\t\t\t\t.focusedCellProperty().get();\r\n\t\ttabelle.edit(focusedCell.getRow(), focusedCell.getTableColumn());\r\n\t}", "private void selectedRowInvoice(){\r\n //numOrdenInv = tb_factura.getSelectionModel().getSelectedIndex();\r\n }", "public void mouseDoubleClick(MouseEvent e) {\n // Dispose the old editor control (if one is setup).\n Control oldEditorControl = cellEditor.getEditor();\n if (null != oldEditorControl)\n oldEditorControl.dispose();\n\n // Mouse location.\n Point mouseLocation = new Point(e.x, e.y);\n\n // Grab the selected row.\n TableItem item = (TableItem) table.getItem(mouseLocation);\n if (null == item)\n return;\n\n // Determine which column was selected.\n int selectedColumn = -1;\n for (int i = 0, n = table.getColumnCount(); i < n; i++) {\n if (item.getBounds(i).contains(mouseLocation)) {\n selectedColumn = i;\n break;\n }\n }\n\n // Setup a new editor control.\n if (-1 != selectedColumn) {\n Text editorControl = new Text(table, SWT.NONE);\n final int editorControlColumn = selectedColumn;\n editorControl.setText(item.getText(selectedColumn));\n editorControl.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n Text text = (Text) cellEditor.getEditor();\n cellEditor.getItem().setText(editorControlColumn, text.getText());\n }\n });\n editorControl.selectAll();\n editorControl.setFocus();\n cellEditor.setEditor(editorControl, item, selectedColumn);\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n int row = table.convertRowIndexToModel( table.getEditingRow() );\n }", "public int getSelectedLayer ()\n {\n return _table.getSelectedRow();\n }", "public native void selectCell(Record cell) /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.selectCell(cell.@com.smartgwt.client.data.Record::getJsObj()());\r\n }-*/;", "protected void select() {\n\t\tcleanValues();\n\t\tint row = m_table.getSelectedRow();\n\t\tboolean enabled = row != -1;\n\t\tif (enabled)\n\t\t{\n\t\t\tInteger ID = m_table.getSelectedRowKey();\n\t\t\tif (ID != null)\n\t\t\t{\n\t\t\t\tm_C_Order_ID = ID.intValue();\n\t\t\t}\n\t\t}\n\t\tlog.info(\"ID=\" + m_C_Order_ID); \n\t}", "public native void selectCell(String ID) /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.selectCell(cell);\r\n }-*/;", "@Override\r\n\t\t\t\t\tpublic boolean shouldSelectCell(EventObject arg0) {\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\tint index = table.getSelectedRow();\n\t\t\t\t\n\t\t\t\tif (index >= 0 && index < table.getRowCount()) {\n\t\t\t\t\t\n\t\t\t\t\t Server ServerConnection;\n\t\t String courseID = (String) table.getValueAt(index, 0);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tServerConnection = new Server();\n\t\t\t\t\t\t\tString query = \"select * from course_attend where StudentID ='\" + ClientID + \"' and courseID ='\"+courseID+\"'\";\n\t\t\t \t\tResultSet data = ServerConnection.ExecuteQuery(query);\n\t\t\t \t\tif (data.next()) {\n\t\t\t \t\t\tscoreTable.setValue((String)table.getValueAt(index, 1), data.getString(\"practice_point\"), data.getString(\"theory_point\"), data.getString(\"overall\"), data.getString(\"pass_status\"));\n\t\t\t \t\t}\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void onEvent(RowFocusEvent event) {\n\t\t\t\tgrid.select(event.getItemId());\n\n\t\t\t}", "public void enableTableCellSelection() {\n\t\tmyTable.setCellSelectionEnabled(true);\n\t}", "@Override\n public void tableChanged(final TableModelEvent e) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n int viewRow = jTableImportMonitor.convertRowIndexToView(e.getFirstRow());\n jTableImportMonitor.scrollRectToVisible(jTableImportMonitor.getCellRect(viewRow, 0, true)); \n }\n });\n }", "void startEditing(Object cell) {\n\n\t}", "@Override\n public void focusGained(FocusEvent e) {\n\n currentColumn = ((FormEntry.EntryField)e.getComponent()).getColumn();\n if (selectionAction == WAITING_ON_SELECTION) {\n selectionAction = SENDING_SELECTION;\n }\n if (selectionAction == SENDING_SELECTION) {\n selectionAction = FINISHED_SELECTION;\n cellNotifier.select(currentRow, currentColumn);\n }\n\n }", "private void teaTableMousePressedAction(MouseEvent evt) {\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n int row = teaTable.getSelectedRow();\n this.teaIDText.setText((String)teaTable.getValueAt(row, 0));\n this.teaNameText.setText((String)teaTable.getValueAt(row, 1));\n this.teaCollegeText.setText((String)teaTable.getValueAt(row, 3));\n this.teaDepartmentText.setText((String)teaTable.getValueAt(row, 4));\n this.teaTypeText.setText((String)teaTable.getValueAt(row, 5));\n this.teaPhoneText.setText((String)teaTable.getValueAt(row, 6));\n this.teaRemarkText.setText((String)teaTable.getValueAt(row, 7));\n }", "public void selectCellForEvent(Object cell, MouseEvent e) {\r\n \t\t((JmtGraphUI) graph.getUI()).selectCellForEvent(cell, e);\r\n \t}", "private void recordTableMouseClicked(MouseEvent e) {\n\n //fetching the index from jtable\n DefaultTableModel df=(DefaultTableModel) recordTable.getModel();\n int index=recordTable.getSelectedRow();\n txtCustNo.setText(df.getValueAt(index,0).toString());\n txtCustName.setText(df.getValueAt(index,1).toString());\n txtCustDeposit.setText(df.getValueAt(index,2).toString());\n txtYears.setText(df.getValueAt(index,3).toString());\n cboSavings.setSelectedItem(df.getValueAt(index,4).toString());\n }", "private void setTableSingleSelection() {\n stuffTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n employeeTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n sellerTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n salesmanTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n customerTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n commisionerTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n WarehouseTB.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n ContainerTB.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n ProducerTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n SaleTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n PurchaseTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n SalaryTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n IncomeTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n OutcomeTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n DebtTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n CreditTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n }", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tint rowSelected = table1.getSelectedRow();\n\n\t\ttxtMa.setText((String) table1.getValueAt(rowSelected, 0));\n\t\ttxtTen.setText((String) table1.getValueAt(rowSelected, 1));\n\t\ttxtTuoi.setText((String) table1.getValueAt(rowSelected, 2));\n\t\ttxtSdt.setText((String) table1.getValueAt(rowSelected, 3));\n\t\ttxtDiaChi.setText((String) table1.getValueAt(rowSelected, 4));\n\t\ttxtEmail.setText((String) table1.getValueAt(rowSelected, 5));\n\t}", "public void valueChanged(ListSelectionEvent e) {\n if (!e.getValueIsAdjusting()) {\n selRow = table.getSelectedRow();\n }\n }", "@Override public void mouseClicked( final MouseEvent e )\r\n {\n if( e.isPopupTrigger() == true || e.getButton() == MouseEvent.BUTTON3 )\r\n { // mouse listener only added if row class supports JPopupMenuProvidable\r\n final JTable table = getJTable();\r\n final int row = table.rowAtPoint( e.getPoint() ); // did test, view->model xlation not needed\r\n if( row > -1 ) table.setRowSelectionInterval( row, row );\r\n\r\n final R rowObject = getSingleSelection();\r\n if( rowObject != null )\r\n {\r\n final JPopupMenu jpm = ((JPopupMenuProvidable)rowObject).provideJPopupMenu();\r\n if( jpm != null )\r\n {\r\n jpm.show( table, e.getX(), e.getY() );\r\n }\r\n }\r\n // else in table but below rows, i.e. no-man's land\r\n }\r\n }", "public Cell getSelectedCell() {\n return selectedCell;\n }", "@Override\r\n public void widgetSelected(SelectionEvent e) {\n TableItem item = (TableItem) e.item;\r\n if (item == null) {\r\n return;\r\n }\r\n\r\n // The control that will be the editor must be a child of the Table\r\n IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM);\r\n if (editedParam != null) {\r\n // Clean up any previous editor control\r\n Control oldEditor = editor.getEditor();\r\n if (oldEditor != null) {\r\n oldEditor.dispose();\r\n }\r\n\r\n Control editControl = null;\r\n String cellText = item.getText(columnValueIndex);\r\n switch (editedParam.getType()) {\r\n case BOOLEAN:\r\n Combo cmb = new Combo(tableParams, SWT.READ_ONLY);\r\n String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)};\r\n cmb.setItems(booleanItems);\r\n cmb.select(1);\r\n if (Boolean.parseBoolean(cellText)) {\r\n cmb.select(0);\r\n }\r\n editControl = cmb;\r\n cmb.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n Combo text = (Combo) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n break;\r\n case DATE:\r\n IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam;\r\n LocalDateTime calToUse = calParam.getValue();\r\n Composite dateAndTime = new Composite(tableParams, SWT.NONE);\r\n RowLayout rl = new RowLayout();\r\n rl.wrap = false;\r\n dateAndTime.setLayout(rl);\r\n //Date cellDt;\r\n try {\r\n LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt);\r\n if (locDT != null) {\r\n calToUse = locDT;\r\n }\r\n /*cellDt = dateFmt.parse(cellText);\r\n if (cellDt != null) {\r\n calToUse.setTime(cellDt);\r\n }*/\r\n } catch (DateTimeParseException e1) {\r\n log.error(\"widgetSelected \", e1);\r\n }\r\n\r\n DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN);\r\n datePicker.setData(DATA_VALUE_PARAM, calParam);\r\n DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG);\r\n timePicker.setData(DATA_VALUE_PARAM, calParam);\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1,\r\n calToUse.getDayOfMonth());\r\n timePicker.setTime(calToUse.getHour(), calToUse.getMinute(),\r\n calToUse.getSecond());\r\n\r\n datePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n timePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n dateAndTime.layout();\r\n editControl = dateAndTime;\r\n break;\r\n case INTEGER:\r\n Text intEditor = new Text(tableParams, SWT.NONE);\r\n intEditor.setText(item.getText(columnValueIndex));\r\n intEditor.selectAll();\r\n intEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n Integer resultInt = null;\r\n try {\r\n resultInt = Integer.parseInt(text.getText());\r\n } catch (NumberFormatException nfe) {\r\n log.error(\"NFE \", nfe);\r\n }\r\n if (resultInt != null) {\r\n editor.getItem().setText(columnValueIndex, resultInt.toString());\r\n }\r\n }\r\n });\r\n editControl = intEditor;\r\n break;\r\n case STRING:\r\n default:\r\n Text newEditor = new Text(tableParams, SWT.NONE);\r\n newEditor.setText(item.getText(columnValueIndex));\r\n newEditor.setFont(tableParams.getFont());\r\n newEditor.selectAll();\r\n newEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n editControl = newEditor;\r\n break;\r\n }\r\n\r\n editControl.setFont(tableParams.getFont());\r\n editControl.setFocus();\r\n editor.setEditor(editControl, item, columnValueIndex);\r\n }\r\n }", "protected void selectCell( int row, int column )\n {\n validateCell( row, column );\n if ( row < 0 || column < 0 )\n {\n return;\n }\n\n final int r = row;\n final int c = column;\n SwingUtilities.invokeLater(\n new Runnable()\n {\n @Override\n public void run()\n {\n treeTable.changeSelection( r, c, false, false );\n }\n } );\n }", "@Override\n public void mouseReleased(MouseEvent event) {\n if (event.isPopupTrigger()) {\n JTable table = (JTable)event.getSource();\n int row = table.rowAtPoint(event.getPoint());\n if (row >= 0 && !table.isRowSelected(row))\n table.changeSelection(row, 0, false, false);\n if (table == connectionTable)\n connectionTablePopup.show(event.getComponent(), event.getX(), event.getY());\n else\n blockTablePopup.show(event.getComponent(), event.getX(), event.getY());\n }\n }", "protected abstract void rowSelectedCriterionTable(EvCriterion<Ev, CriterionShortIdentifier> item, Cell cell, ClickEvent event);", "public CellSelection getSelectCell() {\n return selection;\n }", "public void eventoAnterior(){\r\n\tvista.getMntmRegistroAnterior().addActionListener(r->{\r\n\t\t\r\n\t\tif (vista.getTable() != null) {\r\n\t\t\tif (vista.getTable().getSelectedRow()>= 1)\r\n\t\t\t\tvista.getTable().setRowSelectionInterval(vista.getTable().getSelectedRow() -1, vista.getTable().getSelectedRow() -1);\t\r\n\t}\r\n\t});\r\n}", "private void table1MouseClicked(MouseEvent e) {\n\t\tint selC = table1.getSelectedColumn();\n\t\tint selR = table1.getSelectedRow();\n\t\tSystem.out.println(\" selC \" + selC + \" selR \" + selR);\n\t\t// System.out.println(modelKnow.getValueAt(selR, selC));\n\t}", "@Kroll.method\n\tpublic void selectRow(int index)\n\t{\n\t\tscrollToIndex(index, null);\n\n\t\tfinal TableViewRowProxy row = getRowByIndex(index);\n\n\t\tif (row != null) {\n\t\t\tfinal TiTableView tableView = getTableView();\n\n\t\t\tif (tableView != null) {\n\t\t\t\tfinal Runnable action = () -> {\n\t\t\t\t\tfinal SelectionTracker tracker = tableView.getTracker();\n\t\t\t\t\tfinal TiUIView rowView = row.peekView();\n\t\t\t\t\tfinal boolean visible = rowView != null && rowView.getNativeView().isShown();\n\n\t\t\t\t\tif (!visible) {\n\t\t\t\t\t\tscrollToIndex(index, null);\n\t\t\t\t\t}\n\t\t\t\t\tif (tracker != null) {\n\t\t\t\t\t\ttracker.select(row);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\t// This is a workaround for when `EDITING` mode is set, as it recreates the TableView.\n\t\t\t\t// We need to listen for when it has updated before testing visibility/scrolling.\n\t\t\t\tif (!tableView.getHasLaidOutChildren()) {\n\t\t\t\t\ttableView.addOnLayoutChangeListener(new View.OnLayoutChangeListener()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onLayoutChange(View view, int i, int i1, int i2, int i3, int i4, int i5, int i6,\n\t\t\t\t\t\t\t\t\t\t\t\t int i7)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taction.run();\n\t\t\t\t\t\t\ttableView.removeOnLayoutChangeListener(this);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\taction.run();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int getSelectedRow()\n {\n \treturn this.getSelectedIndex();\n }", "@FXML\r\n void PlacementSelect(MouseEvent event) {\r\n \t p=TablePlacement.getSelectionModel().getSelectedItem();\r\n \t\tSelectedPlacement.setText(p.toString());\r\n \t\tNote.setText(p.getNote());\r\n \t\t\r\n }", "@Override\r\n public void mousePressed(MouseEvent e) {\n JTable target = (JTable) e.getSource();\r\n int row = target.getSelectedRow();\r\n int col = target.getSelectedColumn();\r\n\r\n //Update model\r\n model.updateGridAt(row, col);\r\n\r\n //Update view\r\n gameWindow.refreshBoard();\r\n }", "private void selectLastUsed() {\n // Set the initial selection of the table:\n if (initSelection != null) {\n boolean found = false;\n for (int i = 0; i < table.getRowCount(); i++) {\n if (tableModel.getElementAt(i).getFile().getPath().\n equals(initSelection)) {\n table.setRowSelectionInterval(i, i);\n found = true;\n break;\n }\n }\n if (!found && (table.getRowCount() > 0)) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n else {\n if (table.getRowCount() > 0) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n }", "public void getRow(MouseEvent e) {\n\t\tconn = MySqlConnection.ConnectDb();\n\t\tindex = tableTransactions.getSelectionModel().getSelectedIndex();\n\n\t\tif (index <= -1)\n\t\t\treturn;\n\n\t\ttxt_transactionID.setText(col_transactionID.getCellData(index).toString());\n\t\ttxt_date.setPromptText(col_date.getCellData(index).toString());\n\t\ttxt_description.setText(col_description.getCellData(index).toString());\n\t\ttxt_category.setPromptText(col_category.getCellData(index).toString());\n\t\ttxt_amount.setText(col_amount.getCellData(index).toString());\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tint selectedRow = table.getSelectedRow();//获得选中行的索引\n\t\t\t\tif(selectedRow!= -1) //是否存在选中行\n\t\t\t {\n\t\t\t Object oa = tableModel.getValueAt(selectedRow, 0);\n\t\t\t Object ob = tableModel.getValueAt(selectedRow, 1);\n\t\t\t comboBox_1.setSelectedItem(oa.toString());\n\t\t\t textField2.setText(ob.toString());\n\t\t\t }\n\t\t\t else{\n\t\t\t textField2.setText(\"\");\n\t\t\t }\n\t\t\t}", "private void selectSurfaceEntity(Tile tile) {\r\n\t\tint i = 0;\r\n\t\tfor (TileEntry te : surfaceTableModel.rows) {\r\n\t\t\tif (te.tile == tile) {\r\n\t\t\t\tint idx = surfaceTable.convertRowIndexToView(i);\r\n\t\t\t\tsurfaceTable.getSelectionModel().addSelectionInterval(idx, idx);\r\n\t\t\t\tsurfaceTable.scrollRectToVisible(surfaceTable.getCellRect(idx, 0, true));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\t\t\r\n\t}", "private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n int indexrow=jTable1.getSelectedRow();\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n id=model.getValueAt(indexrow,0).toString();\n txt_id.setText(model.getValueAt(indexrow,0).toString());\n txt_class.setText(model.getValueAt(indexrow,1).toString());\n txt_section.setText(model.getValueAt(indexrow, 2).toString());\n }", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\n\t\t\t\t\ttableTransactions.setSelectionForeground(Color.WHITE);\n\t\t\t\t}", "@FXML\n private void rowSelected() {\n if (coachesTable.getSelectionModel().getSelectedItem() != null) {\n removeButton.setDisable(false);\n }\n }", "private void linkCell() {\n taskListView.setCellFactory(listView -> {\n TaskListViewCell cell = new TaskListViewCell();\n cell.addEventFilter(MouseEvent.MOUSE_PRESSED, event -> {\n taskListView.requestFocus();\n if (!cell.isEmpty()) {\n int index = cell.getIndex();\n if (taskListView.getSelectionModel().getSelectedIndices().contains(index)) {\n logger.fine(\"Selection in task list panel with index '\" + index\n + \"' has been deselected\");\n raise(new DeselectListCellTask(taskListView, index));\n } else {\n taskListView.getSelectionModel().select(index);\n }\n event.consume();\n }\n });\n return cell;\n });\n }", "@Override\n\tpublic boolean shouldSelectCell(EventObject anEvent) {\n\t\tcomboBox.requestFocus();//获取焦点数据\n\t\tlog.info(\"|------表格单元格编辑模型------|\\t\"+\"shouldSelectCell\\t\"+\n\t\t\t\ttable.getEditingRow()+\",\"+table.getEditingColumn());\n\t\treturn false;\n\t}", "public native void selectRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.selectRow(row);\n }-*/;", "@FXML \n public void handleSelected() throws Exception{\n \n TablePosition pos = (TablePosition) table.getSelectionModel().getSelectedCells().get(0);\n int index = pos.getRow();\n String selected = table.getItems().get(index).toString();\n String sn = selected.substring(0, selected.indexOf(\",\"));\n String cc =selected.substring(selected.indexOf(\",\")+1, selected.length());\n \n StudentMarkClick.Activate(sn, cc, lastclicked);\n //switch to detail view\n content.getChildren().clear();\n content.getChildren().add(FXMLLoader.load(getClass().getResource(\"viewMarks.fxml\")));\n \n //selected = selected.substring(1, selected.indexOf(\",\")); //only get username\n System.out.println(sn+\"|\"+cc); \n \n }", "private void MenuBlockStartActionPerformed(java.awt.event.ActionEvent evt) {\n BlockStart = this.jTable1.getSelectedRow();\n }", "public void popupMenuGoto() {\n\t\tint rowIndex = table.getSelectionIndex();\n\t\tint columnIndex = cursor.getColumn();\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tGotoDialog gotoDialog = new GotoDialog(parent.getShell(), rowIndex, columnIndex);\n\t\tif (gotoDialog.open() != Window.OK)\n\t\t\treturn;\n\t\tHexTablePointer p = gotoDialog.getNewPosition();\n\n\t\tif (p == null) {\n\t\t\t//\n\t\t\t// Error calculating new position - do nothing\n\t\t\t//\n\t\t\treturn;\n\t\t} // if\n\n\t\tif (p.getRowIndex() < 0 || p.getColumnIndex() < 0) {\n\t\t\tMessageDialog.openError(parent.getShell(), HexEditorConstants.DIALOG_TITLE_ERROR, Messages.HexEditorControl_49);\n\t\t\tcursor.setSelection(0, 1);\n\t\t\tcursor.redraw();\n\t\t\ttable.setSelection(0);\n\t\t\t//\n\t\t\t// Update the status panel\n\t\t\t//\n\t\t\tupdateStatusPanel();\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tcursor.setSelection(p.getRowIndex(), p.getColumnIndex() + 1);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tint numRows = table.getItemCount();\n\t\t\tint lastRowIndex = (numRows > 0) ? (numRows - 1) : numRows;\n\t\t\tMessageDialog.openError(parent.getShell(), HexEditorConstants.DIALOG_TITLE_ERROR, \"Address is out of range!\");\n\t\t\tint lastColumnIndex = table.getBufferSize() % HexEditorConstants.TABLE_NUM_DATA_COLUMNS;\n\t\t\tcursor.setSelection(lastRowIndex, lastColumnIndex + 1);\n\t\t\tcursor.redraw();\n\t\t\ttable.setSelection(lastRowIndex);\n\t\t\t//\n\t\t\t// Update the status panel\n\t\t\t//\n\t\t\tupdateStatusPanel();\n\t\t\treturn;\n\t\t}\n\n\t\t//\n\t\t// Place the cursor where was calculated\n\t\t//\n\t\tcursor.setSelection(p.getRowIndex(), p.getColumnIndex() + 1);\n\t\tcursor.redraw();\n\t\ttable.setSelection(p.getRowIndex());\n\n\t\t//\n\t\t// Update the status panel\n\t\t//\n\t\tupdateStatusPanel();\n\t}", "@Override\n public void focusLost(FocusEvent fe) {\n table.clearSelection();\n System.out.println(Order.selectedBookingIDRow);\n }", "public void setSelectedLayer (int layer)\n {\n _table.setRowSelectionInterval(layer, layer);\n // and scroll the selected row to be visible\n int rowHeight = _table.getRowHeight();\n _table.scrollRectToVisible(new Rectangle(0, rowHeight * layer, 1, rowHeight));\n }", "private void initTable(){\n TableCellEditor nonSelEditor = new TableCellEditor() {\n @Override\n public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {\n return null;\n }\n @Override\n public Object getCellEditorValue() {return null; }\n\n @Override\n public boolean isCellEditable(EventObject anEvent) {return false;}\n\n @Override\n public boolean shouldSelectCell(EventObject anEvent) {return false;}\n\n @Override\n public boolean stopCellEditing() {return false;}\n\n @Override\n public void cancelCellEditing() {/*NOP*/}\n\n @Override\n public void addCellEditorListener(CellEditorListener l) {/*NOP*/}\n\n @Override\n public void removeCellEditorListener(CellEditorListener l) {/*NOP*/}\n };\n\n tableModelArrays = new DefaultTableModel();\n\n String[] columns = {\"N\", \"Data type\", \"Length\", \"State\",\"Kit\"};\n for(String s : columns){\n tableModelArrays.addColumn(s);\n }\n\n /*\n * Add information about have generated structures to the table model\n */\n if(dataList != null){\n for(int i = 0; i<dataList.getLength(); i++){\n tableModelArrays.addRow(new String[]{\n Integer.toString(i + 1),\n dataList.getData(i).getType(),\n Integer.toString(dataList.getData(i).getLength(0)),\n dataList.getData(i).getState()\n });\n }\n }\n\n /*\n * Create table from table model\n */\n final JTable tableArrays = new JTable(tableModelArrays);\n\n /*\n * Runs popup menu for edition notices which contain in table.\n */\n tableArrays.addMouseListener(new PopupMenu(popupMenu){\n @Override\n public void maybeShowPopup(MouseEvent e) {\n if (e.isPopupTrigger()) {\n popupMenu.show(e.getComponent(),\n e.getX(), e.getY());\n if (e.getButton() == MouseEvent.BUTTON3) {\n Point point = e.getPoint();\n int column = tableArrays.columnAtPoint(point);\n int row = tableArrays.rowAtPoint(point);\n tableArrays.setColumnSelectionInterval(column, column);\n tableArrays.setRowSelectionInterval(row, row);\n selectedRow = tableArrays.getSelectedRow();\n }\n }\n }\n });\n\n tableArrays.setRowHeight(20);\n tableArrays.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n /*\n * Changes width all the columns in the table\n */\n tableArrays.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n tableArrays.getColumnModel().getColumn(0).setPreferredWidth(23);\n tableArrays.getColumnModel().getColumn(1).setPreferredWidth(67);\n tableArrays.getColumnModel().getColumn(2).setPreferredWidth(70);\n tableArrays.getColumnModel().getColumn(3).setPreferredWidth(65);\n tableArrays.getColumnModel().getColumn(4).setPreferredWidth(27);\n\n /*\n * Each notice sets as manually no editable\n */\n for (int i = 0; i<tableArrays.getColumnCount(); i++ ){\n tableArrays.getColumnModel().getColumn(i).setCellEditor(nonSelEditor);\n }\n\n /*\n * Add scroll controls to table\n */\n JScrollPane scrollTable = new JScrollPane(tableArrays);\n scrollTable.setSize(TABLE_WIDTH,getHeight()-FIELD_HEIGHT-150);\n scrollTable.setLocation(getWidth()-scrollTable.getWidth()-15, FIELD_HEIGHT+60);\n\n /*\n * Add table to frame\n */\n add(scrollTable);\n\n }", "@Override\n public void valueChanged(ListSelectionEvent e) {\n currentRow = recordList.getSelectedIndex();\n setRowValues(currentRow, currentColumn);\n if (selectionAction == WAITING_ON_SELECTION) {\n selectionAction = SENDING_SELECTION;\n }\n if (selectionAction == SENDING_SELECTION) {\n selectionAction = FINISHED_SELECTION;\n cellNotifier.select(currentRow, currentColumn); // Notify GUI to select\n }\n \n \n }", "private void tblEmpMouseClicked(java.awt.event.MouseEvent evt) {\n int totalRows = tblEmp.getRowCount();\n int totalCols = tblEmp.getColumnCount();\n\n int row = tblEmp.getSelectedRow();\n TableModel tm = tblEmp.getModel();\n\n initialUsername = (String) tm.getValueAt(row, 0);\n\n txtUsername.setText((String) tm.getValueAt(row, 0));\n txtfname.setText((String) tm.getValueAt(row, 1));\n txtlname.setText((String) tm.getValueAt(row, 2));\n String gender = (String) tm.getValueAt(row, 3);\n txtage.setText((String) tm.getValueAt(row, 4));\n txtemail.setText((String) tm.getValueAt(row, 5));\n txtcontact.setText((String) tm.getValueAt(row, 6));\n txtaddress.setText((String) tm.getValueAt(row, 7));\n txtcity.setText((String) tm.getValueAt(row, 8));\n txtstate.setText((String) tm.getValueAt(row, 9));\n txtcountry.setText((String) tm.getValueAt(row, 10));\n txtpincode.setText((String) tm.getValueAt(row, 11));\n Timestamp hireDate = (Timestamp) tm.getValueAt(row, 12);\n txthiredate.setDate(hireDate);\n cbvalid.setSelected((boolean) tm.getValueAt(row, 13));\n Timestamp dob = (Timestamp) tm.getValueAt(row, 14);\n txtdob.setDate(dob);\n\n if (gender.equalsIgnoreCase(\"male\")) {\n rbmale.setSelected(true);\n } else {\n rbfemale.setSelected(true);\n }\n\n jtab.setSelectedIndex(1);\n\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tint row = table2.getSelectedRow();\n\t\t\t\tint col = table2.getSelectedColumn();\n\t\t\t\tString mamon = (String) table2.getValueAt(row, 0);\n\t\t\t\tString tenmon = (String) table2.getValueAt(row, 1);\n\t\t\t\tString magv2 = (String) table2.getValueAt(row, 2);\n\t\t\t\tString hocki = (String) table2.getValueAt(row, 3);\n\t\t\t\tString makhoa = (String) table2.getValueAt(row, 4);\n\n\t\t\t\ttxt_mamon.setText(mamon);\n\t\t\t\t// cb_tenmon.setSelectedItem(tenmon);\n\t\t\t\tsetSelectedValue(cb_tenmon, tenmon);\n\t\t\t\ttxt_magv2.setText(magv2);\n\t\t\t\ttxt_hocki.setText(hocki);\n\t\t\t\ttxt_makhoa.setText(makhoa);\n\n\t\t\t}", "public void mouseClicked(MouseEvent arg0){\n int r = table.getSelectedRow();\r\n if(r>=0){ \r\n// deletebtnButton.setEnabled(true);\r\n deletebtn.setEnabled(true); \r\n\r\n //Fetching records from Table on Fields\r\n idField.setText(\"\"+table.getModel().getValueAt(r,0));\r\n \t}\r\n }", "public void widgetDefaultSelected(SelectionEvent e) {\n final Text text = new Text(cursor, SWT.NONE);\n TableItem row = cursor.getRow();\n int column = cursor.getColumn();\n text.setText(row.getText(column));\n text.addKeyListener(new KeyAdapter() {\n public void keyPressed(KeyEvent e) {\n TableItem row = cursor.getRow();\n int column = cursor.getColumn();\n row.setText(column, text.getText());\n // close the text editor when the user hits \"ESC\"\n if (e.character == SWT.ESC) {\n text.dispose();\n }\n }\n });\n editor.setEditor(text);\n text.setFocus();\n }", "private IssuePost getSingleSelectedRow() {\n ListSelectionModel selectionModel = table.getSelectionModel();\n int selectedIndex = selectionModel.getLeadSelectionIndex();\n if (selectedIndex != NOT_SELECTED) {\n return table.getRowData(selectedIndex);\n }\n return null;\n }", "@Override\r\n\tpublic boolean shouldSelectCell(EventObject anEvent) {\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onClick(View arg0) {\n\t\tthis.flatCalendar.selectCell(this);\t\t\n\t}", "private void selectDetailWithMouse() {\n int selectedRowIndex=jt.convertRowIndexToModel(jt.getSelectedRow());\n String[] choices={\"Update Row\",\"Delete\",\"Cancel\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"Product ID: \"+jtModel.getValueAt(selectedRowIndex, 0).toString()+\"\\n\"+\"Product Name: \"+jtModel.getValueAt(selectedRowIndex,1), \"View Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n tfPaintId.setText(jtModel.getValueAt(selectedRowIndex,0).toString());\n tfName.setText(jtModel.getValueAt(selectedRowIndex, 1).toString());\n tfPrice.setText(jtModel.getValueAt(selectedRowIndex, 2).toString());\n tfColor.setText(jtModel.getValueAt(selectedRowIndex, 3).toString());\n tfQuantity.setText(jtModel.getValueAt(selectedRowIndex, 8).toString());\n rwCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 4));\n typeCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 6));\n bCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 5));\n switch(jtModel.getValueAt(selectedRowIndex, 7).toString()) {\n case \"High\":\n high.setSelected(true);\n break;\n case \"Mild\":\n mild.setSelected(true);\n break;\n case \"Medium\":\n medium.setSelected(true);\n break;\n }\n }\n else if(option==1)\n {\n jtModel.removeRow(selectedRowIndex);\n JOptionPane.showMessageDialog(rootPane,\" Detail successfully deleted\");\n }\n else \n {\n \n } \n }", "@Override \r\n public void setUI(TableUI ui) \r\n {\n super.setUI(new BasicTableUI(){ \r\n public void paint(Graphics g, JComponent c) { \r\n Rectangle r=g.getClipBounds(); \r\n int firstRow=table.rowAtPoint(new Point(0,r.y)); \r\n int lastRow=table.rowAtPoint(new Point(0,r.y+r.height)); \r\n // -1 is a flag that the ending point is outside the table \r\n if (lastRow<0) \r\n lastRow=table.getRowCount()-1; \r\n for (int i=firstRow; i<=lastRow; i++) \r\n paintRow(i,g); \r\n } \r\n private void paintRow(int row, Graphics g) \r\n { \r\n Rectangle r=g.getClipBounds(); \r\n for (int i=0; i<table.getColumnCount();i++) \r\n { \r\n Rectangle r1=table.getCellRect(row,i,true); \r\n if (r1.intersects(r)) // at least a part is visible \r\n { \r\n int sk=i;//((CTable)table).map.visibleCell(red,i); \r\n paintCell(row,sk,g,r1); \r\n // increment the column counter \r\n //i+=((CTable)table).map.span(row,sk)-1; \r\n //i++; \r\n } \r\n } \r\n } \r\n private void paintCell(int row, int column, Graphics g,Rectangle area) \r\n { \r\n int verticalMargin = table.getRowMargin(); \r\n int horizontalMargin = table.getColumnModel().getColumnMargin(); \r\n \r\n Color c = g.getColor(); \r\n g.setColor(table.getGridColor()); \r\n g.drawRect(area.x,area.y,area.width-1,area.height-1); \r\n g.setColor(c); \r\n \r\n area.setBounds(area.x + horizontalMargin/2, \r\n area.y + verticalMargin/2, \r\n area.width - horizontalMargin, \r\n area.height - verticalMargin); \r\n \r\n if (table.isEditing() && table.getEditingRow()==row && \r\n table.getEditingColumn()==column) \r\n { \r\n Component component = table.getEditorComponent(); \r\n component.setBounds(area); \r\n component.validate(); \r\n } \r\n else \r\n { \r\n TableCellRenderer renderer = table.getCellRenderer(row, column); \r\n Component component = table.prepareRenderer(renderer, row, column); \r\n if (component.getParent() == null) \r\n rendererPane.add(component); \r\n rendererPane.paintComponent(g, component, table, area.x, area.y, \r\n area.width, area.height, true); \r\n } \r\n } \r\n }); \r\n }", "@Override\n public boolean shouldSelectCell(EventObject anEvent){\n return false;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\teditRow();\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\teditRow();\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint row = table1.getSelectedRow();\n\t\t\t\tint col = table1.getSelectedColumn();\n\t\t\t\tString magv = (String) table1.getValueAt(row, 0);\n\t\t\t\tString tengv = (String) table1.getValueAt(row, 1);\n\t\t\t\tString gioitinh = (String) table1.getValueAt(row, 2);\n\t\t\t\tString phone = (String) table1.getValueAt(row, 3);\n\t\t\t\tString email = (String) table1.getValueAt(row, 4);\n\t\t\t\tString phanloaigv = (String) table1.getValueAt(row, 5);\n\t\t\t\ttxt_magv.setText(magv);\n\t\t\t\ttxt_tengv.setText(tengv);\n\t\t\t\ttxt_gioitinhgv.setText(gioitinh);\n\t\t\t\ttxt_phone.setText(phone);\n\t\t\t\ttxt_email.setText(email);\n\n\t\t\t\ttxt_phanloaigv.setText(phanloaigv);\n\n\t\t\t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n TableModel tm = jTable.getModel();\n // Bepaalt de geselecteerde rij en vult een array met alle waardes\n int[] selRows = jTable.getSelectedRows();\n // Dit vult selectedID\n this.result = tm.getValueAt(selRows[0],0);\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tint row = table.getSelectedRow();\n\t\t\t\tint col = table.getSelectedColumn();\n\t\t\t\tString masv = (String) table.getValueAt(row, 0);\n\t\t\t\tString hoten = (String) table.getValueAt(row, 1);\n\t\t\t\tString ngaysinh = (String) table.getValueAt(row, 2);\n\t\t\t\tString gioitinh = (String) table.getValueAt(row, 3);\n\t\t\t\tString diachi = (String) table.getValueAt(row, 4);\n\t\t\t\tString malop = (String) table.getValueAt(row, 5);\n\t\t\t\ttxt_masv.setText(masv);\n\t\t\t\ttxt_hoten.setText(hoten);\n\t\t\t\ttxt_ngaysinh.setText(ngaysinh);\n\t\t\t\ttxt_gioitinh.setText(gioitinh);\n\t\t\t\ttxt_diachi.setText(diachi);\n\t\t\t\ttxt_malop.setText(malop);\n\t\t\t}", "@Override\r\n\tpublic Component getTableCellEditorComponent(JTable table, Object value,\r\n\t\t\tboolean isSelected, int row, int column) {\n\t\tif(isSelected){\r\n\t\t\t System.out.println(\"MyTextEditor----单元格被选中\");\r\n setForeground(table.getForeground()); \r\n super.setBackground(table.getBackground());\r\n table.editCellAt(row, column);\r\n\t }else{\r\n setForeground(table.getForeground());\r\n setBackground(table.getBackground());\r\n\t }\r\n\t\t setText((value == null) ? \"\" : value.toString());\r\n\t\t setFocusable(true);\r\n\t\t setEditable(true);\r\n\t\t setEnabled(true);\r\n\t\t setVisible(true);\r\n\t\treturn this;\r\n\t}", "@Override\n\t\t\tpublic void widgetSelected(final SelectionEvent e) {\n\t\t\t\tControl oldEditor = editor.getEditor();\n\t\t\t\tif (oldEditor != null) {\n\t\t\t\t\toldEditor.dispose();\n\t\t\t\t}\n\n\t\t\t\t// Identify the selected row\n\t\t\t\tTableItem item = (TableItem) e.item;\n\t\t\t\tif (item == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// The control that will be the editor must be a child of the\n\t\t\t\t// Table\n\t\t\t\tText newEditor = new Text(tableAttachments, SWT.NONE);\n\t\t\t\tnewEditor.setText(item.getText(EDITABLECOLUMN));\n\t\t\t\tnewEditor.addModifyListener(new ModifyListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void modifyText(final ModifyEvent me) {\n\t\t\t\t\t\tText text = (Text) editor.getEditor();\n\t\t\t\t\t\teditor.getItem()\n\t\t\t\t\t\t\t\t.setText(EDITABLECOLUMN, text.getText());\n\t\t\t\t\t\tAttachment a = (Attachment) editor.getItem().getData();\n\t\t\t\t\t\ta.setDescription(text.getText());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tnewEditor.selectAll();\n\t\t\t\tnewEditor.setFocus();\n\t\t\t\teditor.setEditor(newEditor, item, EDITABLECOLUMN);\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n int rowSelected = tblPesanan.getSelectedRow();\n Pesanan pesanan = items.get(rowSelected);\n listener.onSelectedRow(pesanan, PesananGridFrame.class.getSimpleName());\n dispose();\n }", "@Action\n public void modifyAction() {\n E rowObject = (E) dataTable.getSelectedRowObject();\n if (rowObject != null) {\n rowObject = (E) rowObject.clone();\n\n if (viewRowState) {\n viewRow(rowObject);\n } else {\n E newRowObject = modifyRow(rowObject);\n if (newRowObject != null) {\n replaceTableObject(newRowObject);\n fireModify(newRowObject);\n }\n }\n }\n }", "public Ward getSelected() {\n\t\treturn table.getSelectionModel().getSelectedItem();\n\t}", "TableModel getSelected() {\r\n // get the list of selected index\r\n int[] selected = plots[0][0].fitnessTable.getSelectedRows();\r\n // get the population table\r\n Population p = IGAFitnessPlotView.this.currentPop;\r\n Table t = p.getTable();\r\n\r\n return new SelectedTableModel(t, selected);\r\n }", "private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n // get the selected row index\n int selectedRowIndex = jTable1.getSelectedRow();\n // set the selected row data into jtextfields\n ID_USER =Integer.parseInt(model.getValueAt(selectedRowIndex, 0).toString()) ; \n CL_USER =model.getValueAt(selectedRowIndex, 1).toString(); \n\n }", "@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tTable.table.clearSelection();\r\n\t\t\t\t\t\t\tTable.table.repaint();//ÎÍ ÌÅÍß ÍÀÏÐßÃÀÅÒ: ÒÎËÜÊÎ ÒÝÉÁË ÐÅÑÅÒÈÒ\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}", "@Override\n public void changed(ObservableValue observableValue, Object oldValue, Object newValue) {\n if(table_progressive.getSelectionModel().getSelectedItem() != null) \n { \n TableViewSelectionModel selectionModel = table_progressive.getSelectionModel();\n ObservableList selectedCells = selectionModel.getSelectedCells();\n TablePosition tablePosition = (TablePosition) selectedCells.get(0); \n String[] liste_value=newValue.toString().split(\",\");\n selected_row_table_progressive=tablePosition.getRow()+1; \n selected_row_table_progressive_nom=liste_value[1].trim();\n selected_row_table_progressive_prenom=liste_value[2].trim();\n // Object val = tablePosition.getTableColumn().getCellData(newValue); \n }\n }", "@Override\n public void changed(ObservableValue observableValue, Object oldValue, Object newValue) {\n if(table_progressive.getSelectionModel().getSelectedItem() != null) \n { \n TableViewSelectionModel selectionModel = table_progressive.getSelectionModel();\n ObservableList selectedCells = selectionModel.getSelectedCells();\n TablePosition tablePosition = (TablePosition) selectedCells.get(0); \n String[] liste_value=newValue.toString().split(\",\");\n selected_row_table_progressive=tablePosition.getRow()+1; \n selected_row_table_progressive_nom=liste_value[1].trim();\n selected_row_table_progressive_prenom=liste_value[2].trim();\n // Object val = tablePosition.getTableColumn().getCellData(newValue); \n }\n }", "private void jTablePesquisaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTablePesquisaMouseClicked\n // Salva a posição da linha selecionada na tabela de pesquisa\n int linhaSelecionada = jTablePesquisa.getSelectedRow();\n \n jT0Id.setText(jTablePesquisa.getValueAt(linhaSelecionada, 0).toString());\n jT1Exemplar.setText((String) jTablePesquisa.getValueAt(linhaSelecionada, 1));\n jT2Autor.setText((String) jTablePesquisa.getValueAt(linhaSelecionada, 2));\n jT3Edicao.setText(jTablePesquisa.getValueAt(linhaSelecionada, 3).toString());\n jT4Ano.setText(jTablePesquisa.getValueAt(linhaSelecionada, 4).toString());\n jT5Status.setText((String) jTablePesquisa.getValueAt(linhaSelecionada, 5)); \n Editar.setEnabled(true);\n Excluir.setEnabled(true);\n // Ao selecionar um registro, os campos são ativados possibilitando fazer alterações\n habilitaCampos();\n }", "public void actionPerformed(ActionEvent evt)\r\n {\n int index = tabPane.getSelectedIndex();\r\n HGTable table = (HGTable) tableVector.elementAt(index);\r\n StockDataTableModel dataModel = (StockDataTableModel) modelVector.elementAt(index);\r\n // NOTE: We do not know at this time if we were called via the\r\n // popup menu, or the Normal Top menu - And we do not know\r\n // if an action is desired on the displayed table.\r\n // However, We will grab the point and determine the row.\r\n // If the Row is less than zero attempt to get the row\r\n // from the table as possible being selected.\r\n int row = table.rowAtPoint(new java.awt.Point(popupListener.getX(), popupListener.getY()));\r\n row = (row < 0) ? ((table.getSelectedRow() >= 0) ? table.getSelectedRow() : 0) : row;\r\n\r\n /////////////////////////////////////////////////\r\n // Grab our command\r\n /////////////////////////////////////////////////\r\n String cmd = evt.getActionCommand();\r\n debug(\"Menu - Action Performed Called with command [\" + cmd + \"]\");\r\n\r\n /////////////////////////////////////////////////\r\n // Examine the options a user may have requested.\r\n // and act upon them accordingly.\r\n /////////////////////////////////////////////////\r\n if (tableProps.equals(cmd))\r\n { // Allowing for Table Control to be presented\r\n WatchListTableModule.this.showTableControl();\r\n }\r\n else if (fractionCmd.equals(cmd))\r\n { // Show Fractions\r\n com.hgutil.data.Fraction.setShowAsFraction(true);\r\n dataModel.fireTableDataChanged();\r\n }\r\n else if (decimalCmd.equals(cmd))\r\n { // Show Decimals\r\n com.hgutil.data.Fraction.setShowAsFraction(false);\r\n dataModel.fireTableDataChanged();\r\n }\r\n else if (insertBeforeCmd.equals(cmd))\r\n { // Insert a Row BEFORE selected\r\n debug(\"Insert Row Before row [\" + row + \"] The Row being inserted is \" + row);\r\n dataModel.insert(row);\r\n table.tableChanged(new TableModelEvent(dataModel, row, row, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));\r\n table.setRowSelectionInterval(row + 1, row + 1);\r\n table.repaint();\r\n StockData sd = (StockData) dataModel.getData().elementAt(row);\r\n WatchListTableModule.this.loadHistoricData(sd);\r\n }\r\n else if (insertAfterCmd.equals(cmd))\r\n { // Insert a Row AFTER selected\r\n debug(\"Insert Row After row [\" + row + \"] The Row being inserted is \" + (row + 1));\r\n dataModel.insert(row + 1);\r\n table.tableChanged(\r\n new TableModelEvent(dataModel, row + 1, row + 1, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));\r\n table.setRowSelectionInterval(row, row);\r\n table.repaint();\r\n StockData sd = (StockData) dataModel.getData().elementAt(row + 1);\r\n WatchListTableModule.this.loadHistoricData(sd);\r\n }\r\n else if (deleteRowCmd.equals(cmd))\r\n { // Delete the selected Row\r\n debug(\"Delete row [\" + row + \"] The Row being deleted is \" + row);\r\n if (dataModel.delete(row))\r\n {\r\n table.tableChanged(new TableModelEvent(dataModel, row, row, TableModelEvent.ALL_COLUMNS, TableModelEvent.DELETE));\r\n table.setRowSelectionInterval(row + 1, row + 1);\r\n table.repaint();\r\n }\r\n }\r\n else if (addNewWatchListCmd.equals(cmd))\r\n {\r\n debug(\"Add New WatchList Command...\");\r\n WatchListTableModule.this.addNewWatchList();\r\n }\r\n else if (deleteWatchListCmd.equals(cmd))\r\n {\r\n debug(\"Delete current WatchList Command, index = [\" + index + \"]\");\r\n WatchListTableModule.this.deleteWatchList(index);\r\n }\r\n else if (renameListCmd.equals(cmd))\r\n { // Rename the WatchList\r\n debug(\"Rename current WatchList Command, index = [\" + index + \"]\");\r\n WatchListTableModule.this.setNewTitle(index);\r\n }\r\n else if (printListCmd.equals(cmd))\r\n { // Print the WatchList\r\n debug(\"Printout current WatchList Command, index = [\" + index + \"]\");\r\n WatchListTableModule.this.printWatchList(index);\r\n }\r\n else if (viewOptionChainCmd.equals(cmd))\r\n {\r\n debug(\"View Option Chain Command, index = [\" + index + \"]\");\r\n StockData sd = (StockData) dataModel.getData().elementAt(row);\r\n WatchListTableModule.this.setDataObject(sd);\r\n WatchListTableModule.this.invokeStockMarketModule(getString(\"WatchListTableModule.view_option_chain.module_name\"));\r\n }\r\n else if (viewHistoricChartCmd.equals(cmd))\r\n {\r\n debug(\"View Option Chain Command, index = [\" + index + \"]\");\r\n StockData sd = (StockData) dataModel.getData().elementAt(row);\r\n WatchListTableModule.this.invokeHistoricChart(sd);\r\n }\r\n\r\n popupListener.resetPoints();\r\n }", "protected void doTableViewerSelectionChanged(SelectionChangedEvent event) {\n\t\tif (table.getSelectionCount() == 0) {\n\t\t\tselection = null;\n\t\t} else {\n\t\t\tassert table.getSelectionCount() > 0;\n\n\t\t\tselection = table.getSelection()[0].getText();\n\t\t}\n\n\t\tdoUpdateButtons();\n\t\tdoChangeToFloorImage(selection);\n\t}", "@Override\n public void keyPressed(KeyEvent e) {\n if (!table.isEnabled())\n return;\n \n // if the table doesn't own the focus, break early\n if (!table.isFocusOwner())\n return;\n \n // if the key pressed is not the space bar, break early\n if (e.getKeyCode() != KeyEvent.VK_SPACE || e.getModifiers() != 0)\n return;\n \n final int row = table.getSelectionModel().getLeadSelectionIndex();\n final int column = table.getColumnModel().getSelectionModel().getLeadSelectionIndex();\n \n // ensure a valid row has focus\n if (row == -1)\n return;\n \n // if a column is selected, ensure it is the hierarchy column\n if (column != -1 && table.convertColumnIndexToModel(column) != hierarchyColumnModelIndex)\n return;\n \n treeList.getReadWriteLock().writeLock().lock();\n try {\n // if the row is expandable, toggle its expanded state\n if (treeList.getAllowsChildren(row)) {\n final Runnable r = TreeTableUtilities.toggleExpansion(table, treeList, row);\n if (restoreStateRunnable == null)\n restoreStateRunnable = r;\n }\n } finally {\n treeList.getReadWriteLock().writeLock().unlock();\n }\n }", "public JP1Table( TableModel model )\n {\n super( model );\n setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n // getSelectionModel().addListSelectionListener( this );\n setCellSelectionEnabled( true );\n setSurrendersFocusOnKeystroke( true );\n setAutoResizeMode( JTable.AUTO_RESIZE_LAST_COLUMN );\n tableHeader.setReorderingAllowed( false );\n DefaultCellEditor e = ( DefaultCellEditor )getDefaultEditor( String.class );\n new TextPopupMenu( ( JTextComponent )e.getComponent() );\n }", "public void rowField()\n\t{ \n\t\tviewTable.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e)\n\t\t\t{\n\t\t\t\tint c;\n\t\t\t\tString id ,oldname,oladdress,oldcontact,oldemail,oldusername, oldpassword;\n\t\t\t\tDefaultTableModel viewTablemodel = (DefaultTableModel)viewTable.getModel();\n\t\t\t\tc=viewTable.getSelectedRow();\n\t\t\t\tid= viewTablemodel.getValueAt(c, 1).toString();\n\t\t\t\toldname= viewTablemodel.getValueAt(c,2).toString();\n\t\t\t\toldcontact= viewTablemodel.getValueAt(c,3).toString();\n\t\t\t\toladdress= viewTablemodel.getValueAt(c,4).toString();\n\t\t\t\toldemail= viewTablemodel.getValueAt(c,5).toString();\n\t\t\t\toldusername= viewTablemodel.getValueAt(c,6).toString();\n\t\t\t\toldpassword= viewTablemodel.getValueAt(c,7).toString();\n\t\t\t\tupdatePanel(id, oldname, oldcontact, oladdress, oldemail, oldusername, oldpassword);\n\t\t\t\tsetRowCount(viewTable.getSelectedRow());\n\t\t\t}\n\t\t});\n\t}", "int getRowIndex();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\ttable.setModel(new UneditableTableModel(db.searchCards(text.getText()), columnNames));\n\t\t\t\ttable.setCellSelectionEnabled(true);\n\t\t\t\ttable.changeSelection(0, 0, false,false);\n\t\t\t\ttable.requestFocus();\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tbtnEdit.setEnabled(true);\r\n\t\t\t\tbtnDelete.setEnabled(true);\r\n\t\t\t\trow = table.getSelectedRow();\r\n\t\t\t\tDefaultTableModel model = (DefaultTableModel) table.getModel();\r\n\t\t\t\tString SelectedName = model.getValueAt(row, 1).toString();\r\n\t\t\t\tString S = model.getValueAt(row, 2).toString() + \":00\";\r\n\t\t\t\tString E = model.getValueAt(row, 3).toString() + \":00\";\r\n\t\t\t\ttxtName.setText(SelectedName);\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\td1 = format.parse(S);\r\n\t\t\t\t} catch (java.text.ParseException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\td2 = format.parse(E);\r\n\t\t\t\t} catch (java.text.ParseException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tint rSHours = d1.getHours();\r\n\t\t\t\tcmbSHour.setSelectedItem(rSHours);\r\n\t\t\t\tint rSMin = d1.getMinutes();\r\n\t\t\t\tcmbSMin.setSelectedItem(rSMin);\r\n\t\t\t\tint rEHours = d2.getHours();\r\n\t\t\t\tcmbEHour.setSelectedItem(rEHours);\r\n\t\t\t\tint rEMin = d2.getMinutes();\r\n\t\t\t\tcmbEMin.setSelectedItem(rEMin);\r\n\t\t\t\tSelectedId = (model.getValueAt(row, 0)).toString();\r\n\t\t\t\tid_tag = (model.getValueAt(row, 5)).toString();\r\n\t\t\t\tSystem.out.println(id_tag);\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tPreparedStatement query = db.getConnection()\r\n\t\t\t\t\t\t\t.prepareStatement(\r\n\t\t\t\t\t\t\t\t\t\"select * from Tag where Id=\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ id_tag);\r\n\t\t\t\t\tResultSet rs = query.executeQuery();\r\n\t\t\t\t\tif (!rs.isBeforeFirst()) {\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\t\t\tcmb.setSelectedItem(rs.getString(\"Name\"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (Exception e2) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t}\r\n\t\t\t}", "private void tbLinhaSelecionada(JTable tb) {\n if (tb.getSelectedRow() != -1) {\n cidadeBean.setId(lista.get(tbCidades.getSelectedRow()).getId());\n tfCidade.setText(lista.get(tbCidades.getSelectedRow()).getCidade());\n cbUf.setSelectedItem(lista.get(tbCidades.getSelectedRow()).getUf());\n btEditar.setEnabled(true);\n btExcluir.setEnabled(true);\n operacao = 2;\n } else {\n limparCampos();\n editarCampos(false);\n reiniciaBotoes();\n }\n }", "public void setSelectedCell(Cell c) {\n //First event can be bogus (from system placing focus on first item)\n if (!selectionEnabled)c=null;\n menuBar.updateCellMenu(c);\n // deselect previous cell\n if (selectedCell != null) {\n selectedCell.setSelected(false);\n }\n // select new cell\n selectedCell = c;\n if (selectedCell != null) {\n selectedCell.setSelected(true);\n }\n // Return focus to the frame, just in case it gets set somewhere else\n // (like the buttons)\n requestFocus();\n }", "public void setSelectedCell(Coord c) {\n this.selected = c;\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tDefaultTableModel model=(DefaultTableModel)table.getModel();\n\t\t\t\tint i=table.getSelectedRow();\n\t\t\t\t\n\t\t\t\ttxtCustomerName.setText(model.getValueAt(i,0).toString());\n\t\t\t\ttxtAddress.setText(model.getValueAt(i,1).toString());\n\t\t\t\ttxtContact.setText(model.getValueAt(i,2).toString());\n\t\t\t\ttxtProduct.setText(model.getValueAt(i,3).toString());\n\t\t\t\ttxtSerialNo.setText(model.getValueAt(i,4).toString());\n\t\t\t\ttxtModuleNo.setText(model.getValueAt(i,5).toString());\n\t\t\t\ttxtComplaintNo.setText(model.getValueAt(i,6).toString());\n\t\t\t\tCategorycomboBox.setSelectedItem(model.getValueAt(i,7).toString());\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n int fila_point = jTable_clientes.rowAtPoint(e.getPoint());\n //punto exacto de la fila donde este precionando\n\n //evento para las columnas\n int columna_point = 0;//solo porqwue queremos obtener el id de cada cliente paara la consulta en la BD\n\n //indicaciones al programa de cuando ya se tengas los dos valores osea que si el usuario dio click en las columns que tiene datos entonces\n if (fila_point > -1) {\n IDcliente_update = (int) model.getValueAt(fila_point, columna_point);\n\n //conexion entre faces cuando se toque algun dato en la tabla\n InformacionCliente informacion_cliente = new InformacionCliente();\n informacion_cliente.setVisible(true);\n \n \n }\n }", "public void actionPerformed(ActionEvent e) {\n if(newTable.getRowCount() == 0){\n Toolkit.getDefaultToolkit().beep();\n return;\n }\n int index = table.getSelectedRow();\n int size = newTable.getRowCount();\n if(index > size || index < 0){\n table.setRowSelectionInterval(0,0);\n index = table.getSelectedRow();\n }\n newTable.removeRow(index);\n \n\n //Select an index.\n index--;\n if(index < 0){\n index++;\n }\n if(newTable.getRowCount() != 0){\n table.setRowSelectionInterval(index, index);\n }\n }", "@Override\r\n\t\tpublic void ancestorAdded(AncestorEvent arg0) {\n\t\t\trow = notesTable.getSelectedRow();\r\n\t\t\tif (row < 1 ) {\r\n\t\t\t\tsearch_notes_menu.disable();\r\n\t\t}\r\n\t\t\r\n\t\trow = notesTable.convertRowIndexToModel(row);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}" ]
[ "0.74383837", "0.740318", "0.71213967", "0.7118551", "0.7061189", "0.7055966", "0.6948263", "0.68744797", "0.6773611", "0.6731729", "0.66496986", "0.664902", "0.64867735", "0.64780635", "0.64334124", "0.64091396", "0.6396723", "0.63786787", "0.6365101", "0.63480604", "0.6319046", "0.6305246", "0.62728375", "0.6245107", "0.6244266", "0.6224472", "0.62217015", "0.6212883", "0.6203089", "0.6201043", "0.61975455", "0.6191003", "0.6190375", "0.6186416", "0.6181531", "0.6179499", "0.6167145", "0.61597085", "0.61315596", "0.61108625", "0.6092688", "0.6086554", "0.608642", "0.60860616", "0.6083998", "0.60708404", "0.60705477", "0.60655874", "0.6054152", "0.60503477", "0.60436344", "0.60429335", "0.6032965", "0.60291517", "0.6023236", "0.6022577", "0.6020784", "0.60106134", "0.60075885", "0.59519726", "0.59496385", "0.5944458", "0.5934636", "0.5881239", "0.5872647", "0.5870026", "0.5862708", "0.58619916", "0.5851095", "0.5848577", "0.5848577", "0.5836338", "0.58362657", "0.5835735", "0.5828299", "0.5825186", "0.58221906", "0.5821833", "0.5804182", "0.580034", "0.5791311", "0.579119", "0.57894117", "0.57894117", "0.578779", "0.57809144", "0.5769035", "0.5764088", "0.57638353", "0.57598084", "0.5759738", "0.5758344", "0.57579094", "0.5737701", "0.57371247", "0.5729194", "0.57289004", "0.5728059", "0.57239366", "0.5722277" ]
0.62857103
22
When the user hits "ENTER" in the TableCursor, pop up a text editor so that they can change the text of the cell
@Override public void widgetDefaultSelected(SelectionEvent e) { table.setSelection(new TableItem[] {tcursor.getRow()}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseDoubleClick(MouseEvent e) {\n // Dispose the old editor control (if one is setup).\n Control oldEditorControl = cellEditor.getEditor();\n if (null != oldEditorControl)\n oldEditorControl.dispose();\n\n // Mouse location.\n Point mouseLocation = new Point(e.x, e.y);\n\n // Grab the selected row.\n TableItem item = (TableItem) table.getItem(mouseLocation);\n if (null == item)\n return;\n\n // Determine which column was selected.\n int selectedColumn = -1;\n for (int i = 0, n = table.getColumnCount(); i < n; i++) {\n if (item.getBounds(i).contains(mouseLocation)) {\n selectedColumn = i;\n break;\n }\n }\n\n // Setup a new editor control.\n if (-1 != selectedColumn) {\n Text editorControl = new Text(table, SWT.NONE);\n final int editorControlColumn = selectedColumn;\n editorControl.setText(item.getText(selectedColumn));\n editorControl.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n Text text = (Text) cellEditor.getEditor();\n cellEditor.getItem().setText(editorControlColumn, text.getText());\n }\n });\n editorControl.selectAll();\n editorControl.setFocus();\n cellEditor.setEditor(editorControl, item, selectedColumn);\n }\n }", "void startEditing(Object cell) {\n\n\t}", "public void widgetDefaultSelected(SelectionEvent e) {\n final Text text = new Text(cursor, SWT.NONE);\n TableItem row = cursor.getRow();\n int column = cursor.getColumn();\n text.setText(row.getText(column));\n text.addKeyListener(new KeyAdapter() {\n public void keyPressed(KeyEvent e) {\n TableItem row = cursor.getRow();\n int column = cursor.getColumn();\n row.setText(column, text.getText());\n // close the text editor when the user hits \"ESC\"\n if (e.character == SWT.ESC) {\n text.dispose();\n }\n }\n });\n editor.setEditor(text);\n text.setFocus();\n }", "@Override\n public void widgetSelected(SelectionEvent e) {\n\t\t\t\t//\n\t\t\t\t// First check if there is an active cell editor and if it contains a valid value\n\t\t\t\t//\n\t\t\t\tif (cursorKeyListener.getText() != null) {\n\t\t\t\t\tString str = cursorKeyListener.getText().getText().toUpperCase();\n\t\t\t\t\tif (HexUtils.isValidHexNumber(str)) {\n\t\t\t\t\t\tcursorKeyListener.getCellEditorKeyListener().closeCellEditor(cursorKeyListener.getEventRow(), cursorKeyListener.getEventColumn(), str);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcursorKeyListener.setSelection();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttable.setSelection(new TableItem[] {tcursor.getRow()});\n\t\t\t\tHexTablePointer p = getCursorPosition();\n\t\t\t\ttable.setCellSelection(p.getRowIndex(), p.getColumnIndex(), cursorKeyListener.isShiftHold());\n\n\t\t\t\tupdateStatusPanel();\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void editFocusedCell() {\r\n\t\tfinal TablePosition<ArbeitspaketTableData, ?> focusedCell = tabelle.focusModelProperty().get()\r\n\t\t\t\t.focusedCellProperty().get();\r\n\t\ttabelle.edit(focusedCell.getRow(), focusedCell.getTableColumn());\r\n\t}", "public void widgetSelected(SelectionEvent e) {\n Control oldEditor = editor.getEditor();\n \n TableItem item = (TableItem) e.item;\n if (item == null) {\n return;\n }\n \n if (oldEditor != null) {\n oldEditor.dispose(); // FIX the focus\n }\n // Identify the selected row\n \n // The control that will be the editor must be a child of the\n // Table\n final Text textNewEditor = new Text(table, SWT.NONE);\n \n textNewEditor.setText(item.getText(EDITABLECOLUMN));\n textNewEditor.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent me) {\n Text text = (Text) editor.getEditor();\n editor.getItem()\n .setText(EDITABLECOLUMN, text.getText());\n }\n });\n \n /*\n * TODO FIX the focus\n */\n textNewEditor.selectAll();\n // newEditor.setFocus();\n editor.setEditor(textNewEditor, item, EDITABLECOLUMN);\n }", "public void popupMenuGoto() {\n\t\tint rowIndex = table.getSelectionIndex();\n\t\tint columnIndex = cursor.getColumn();\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tGotoDialog gotoDialog = new GotoDialog(parent.getShell(), rowIndex, columnIndex);\n\t\tif (gotoDialog.open() != Window.OK)\n\t\t\treturn;\n\t\tHexTablePointer p = gotoDialog.getNewPosition();\n\n\t\tif (p == null) {\n\t\t\t//\n\t\t\t// Error calculating new position - do nothing\n\t\t\t//\n\t\t\treturn;\n\t\t} // if\n\n\t\tif (p.getRowIndex() < 0 || p.getColumnIndex() < 0) {\n\t\t\tMessageDialog.openError(parent.getShell(), HexEditorConstants.DIALOG_TITLE_ERROR, Messages.HexEditorControl_49);\n\t\t\tcursor.setSelection(0, 1);\n\t\t\tcursor.redraw();\n\t\t\ttable.setSelection(0);\n\t\t\t//\n\t\t\t// Update the status panel\n\t\t\t//\n\t\t\tupdateStatusPanel();\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tcursor.setSelection(p.getRowIndex(), p.getColumnIndex() + 1);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tint numRows = table.getItemCount();\n\t\t\tint lastRowIndex = (numRows > 0) ? (numRows - 1) : numRows;\n\t\t\tMessageDialog.openError(parent.getShell(), HexEditorConstants.DIALOG_TITLE_ERROR, \"Address is out of range!\");\n\t\t\tint lastColumnIndex = table.getBufferSize() % HexEditorConstants.TABLE_NUM_DATA_COLUMNS;\n\t\t\tcursor.setSelection(lastRowIndex, lastColumnIndex + 1);\n\t\t\tcursor.redraw();\n\t\t\ttable.setSelection(lastRowIndex);\n\t\t\t//\n\t\t\t// Update the status panel\n\t\t\t//\n\t\t\tupdateStatusPanel();\n\t\t\treturn;\n\t\t}\n\n\t\t//\n\t\t// Place the cursor where was calculated\n\t\t//\n\t\tcursor.setSelection(p.getRowIndex(), p.getColumnIndex() + 1);\n\t\tcursor.redraw();\n\t\ttable.setSelection(p.getRowIndex());\n\n\t\t//\n\t\t// Update the status panel\n\t\t//\n\t\tupdateStatusPanel();\n\t}", "public void mouseDown(MouseEvent e) {\n Control oldEditorControl = cellEditor.getEditor();\n if (null != oldEditorControl)\n oldEditorControl.dispose();\n }", "private void makeModifiable() {\n final TableEditor editor = new TableEditor(providers);\n editor.horizontalAlignment = SWT.LEFT;\n editor.grabHorizontal = true;\n editor.minimumWidth = 50;\n\n // editing the fourth column\n final int editable = 4;\n\n providers.addSelectionListener(new SelectionListener() {\n \n @Override\n public void widgetSelected(SelectionEvent exc) {\n\n TableItem item = (TableItem) exc.item;\n\n //Column should only be editable if arguments are allowed for the provider.\n if (item.getText(3).toString().equals(\"false\") || item == null) {\n return;\n }\n\n Control oldEditor = editor.getEditor();\n\n if (oldEditor != null) {\n oldEditor.dispose();\n }\n\n \n Text newEditor = new Text(providers, SWT.NONE);\n newEditor.setText(item.getText(editable));\n newEditor.addModifyListener(new ModifyListener() {\n\n \n @Override\n public void modifyText(ModifyEvent exc) {\n Text text = (Text) editor.getEditor();\n editor.getItem().setText(editable, text.getText());\n }\n });\n \n newEditor.selectAll();\n newEditor.setFocus();\n editor.setEditor(newEditor, item, editable); \n }\n\n @Override\n public void widgetDefaultSelected(SelectionEvent exc) {\n // TODO Auto-generated method stub\n }\n });\n \n for (int i = 0; i < TITLES.length; i++) {\n providers.getColumn(i).pack();\n }\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tenterField.setEditable(editable);\t//将文本域置为可编辑的状态\r\n\t\t\t}", "@Override\r\n\tpublic Component getTableCellEditorComponent(JTable table, Object value,\r\n\t\t\tboolean isSelected, int row, int column) {\n\t\tif(isSelected){\r\n\t\t\t System.out.println(\"MyTextEditor----单元格被选中\");\r\n setForeground(table.getForeground()); \r\n super.setBackground(table.getBackground());\r\n table.editCellAt(row, column);\r\n\t }else{\r\n setForeground(table.getForeground());\r\n setBackground(table.getBackground());\r\n\t }\r\n\t\t setText((value == null) ? \"\" : value.toString());\r\n\t\t setFocusable(true);\r\n\t\t setEditable(true);\r\n\t\t setEnabled(true);\r\n\t\t setVisible(true);\r\n\t\treturn this;\r\n\t}", "public void showFeedback() {\r\n\t\tsuper.showFeedback();\r\n\t\tif (initialKeyEvent != null) {\r\n\t\t\tText text = (Text) getCellEditor().getControl(); /* @see createCellEditorOn */\r\n\t\t\tString string = text.getText();\r\n\t\t\tString selectionText = text.getSelectionText();\r\n\t\t\ttext.setSelection(text.getText().length());\r\n\t\t\tif (selectionText.equals(string))\r\n\t\t\t\tinitialKeyEvent = null;\r\n\t\t}\r\n\t}", "public void actionPerformed(ActionEvent e)\n {\n int pos = findFieldButtonPosition();\n formatEditor.setCaretPosition(pos);\n }", "@Override\n public void startEditing(final Cell.Context context,\n final Element parent,\n final C value) {\n textBox.setValue((value == null ? \"\" : convertToString(value)));\n }", "public InputFieldEditingSupport(TableViewer viewer) {\n\t\tsuper(viewer);\n\t\tthis.viewer = viewer;\n\t\t//cellEditor = new TextCellEditor(viewer.getTable(), SWT.MULTI | SWT.WRAP | SWT.BORDER);\n\t\tcellEditor = new TextCellEditor(viewer.getTable());\n\t\t\n\t\tfinal Text aaa = (Text)cellEditor.getControl();\n\t}", "public void mouseDoubleClick(final MouseEvent event) {\n\t\t// Dispose any existing editor\n\t\tControl old = _editor.getEditor();\n\t\tif (old != null)\n\t\t\told.dispose();\n\n\t\t// Determine where the mouse was clicked\n\t\tPoint pt = new Point(event.x, event.y);\n\n\t\t// Determine which row was selected\n\t\tfinal TableItem item = _preferenceColumnTableEditor.getTable().getItem(pt);\n\t\tif (item != null) {\n\t\t\t// Determine which column was selected\n\t\t\tint column = -1;\n\t\t\tfor (int i = 0, n = _preferenceColumnTableEditor.getTable().getColumnCount(); i < n; i++) {\n\t\t\t\tRectangle rect = item.getBounds(i);\n\t\t\t\tif (rect.contains(pt)) {\n\t\t\t\t\t// This is the selected column\n\t\t\t\t\tcolumn = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Create the Text object for our editor\n\t\t\tfinal Text text = new Text(_preferenceColumnTableEditor.getTable(), SWT.NONE);\n\t\t\ttext.setForeground(item.getForeground());\n\n\t\t\t// Transfer any text from the cell to the Text control,\n\t\t\t// set the color to match this row, select the text,\n\t\t\t// and set focus to the control\n\t\t\ttext.setText(item.getText(column));\n\t\t\ttext.setForeground(item.getForeground());\n\t\t\ttext.selectAll();\n\t\t\ttext.setFocus();\n\n\t\t\t// Recalculate the minimum width for the editor\n\t\t\t_editor.minimumWidth = text.getBounds().width;\n\n\t\t\t// Set the control into the editor\n\t\t\t_editor.setEditor(text, item, column);\n\n\t\t\t// Add a handler to transfer the text back to the cell\n\t\t\t// any time it's modified\n\t\t\tfinal int col = column;\n\t\t\ttext.addModifyListener(new ModifyListener() {\n\t\t\t\tpublic void modifyText(final ModifyEvent event) {\n\t\t\t\t\t_preferenceColumnTableEditor.updateColumnSettings();\n\t\t\t\t\t// Set the text of the editor's control back into the cell\n\t\t\t\t\titem.setText(col, text.getText());\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "protected void beginEnterText()\n\t{\n\t\tdisplayingCaret = true;\n\t\ttext.appendText(\"|\");\n\t\tcaretBlinkTime = 0;\n\t\tclearCharBuffer = true;\n\t}", "void onNewTextSet(CodeEditor editor);", "private void txt_montoKeyReleased(java.awt.event.KeyEvent evt) {\n if (evt.getKeyCode()==KeyEvent.VK_ENTER){\n insertarRubro();\n } \n }", "public void type(String s){\n\t\tif(currentEdit != null){\n\t\t\tint cur = currentEdit.getSelectionStart();\n\t\t\tif(s.equals(\"del\")||s.equals(\"del(\")){\n\t\t\t\tif(cur != 0){\n\t\t\t\t\tcurrentEdit.getText().delete(cur-1, cur);\n\t\t\t\t}\t\t\t\n\t\t\t}else if(s.equals(\"clear\")){\n\t\t\t\tcurrentEdit.setText(\"\");\n\t\t\t}else if(s.equals(\"ENTER\")){\n\t\t\t\tonEnter();\n\t\t\t}else{\n\t\t\t\tcurrentEdit.getText().insert(cur, s);\n\t\t\t}\n\t\t}\n\t}", "private static void OnQueryStatusEnterBreak(Object sender, CanExecuteRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(sender);\r\n\r\n if (This == null || !This._IsEnabled || This.IsReadOnly) \r\n {\r\n args.ContinueRouting = true; \r\n return;\r\n }\r\n\r\n if (This.Selection.IsTableCellRange || !This.AcceptsReturn) \r\n {\r\n args.ContinueRouting = true; \r\n return; \r\n }\r\n\r\n args.CanExecute = true;\r\n }", "@Override\r\npublic void keyReleased(KeyEvent e) {\n\tif(e.getKeyCode()==KeyEvent.VK_ENTER) {\r\n\t\tinput.setEditable(true);\r\n\t}\r\n\t\r\n}", "@Override\n public void keyPressed( KeyEvent e ) {\n if ( e.keyCode == SWT.ESC ) {\n text.dispose();\n }\n // ENTER --> Save changes...\n if ( e.character == SWT.CR ) {\n if ( ti.getText().equals( name ) ) { // Only if the name wasn't changed already.\n String newname = text.getText();\n if ( renameDatabase( name, newname ) ) {\n ti.setText( newname );\n }\n text.dispose();\n }\n }\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t if (tf.isEditValid()) { //The text is invalid.\n\t\t\t //The text is valid,\n\t\t try {\n\t\t\t\t\t\t\ttf.commitEdit();\n\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} //so use it.\n\t\t tf.postActionEvent(); //stop editing\n\t\t\t }\n\t\t\t\t}", "protected void enterPressed()\n\t{\n\t\t// Call the enter method if the enter key was pressed\n\t\tif (showCaret)\n\t\t\tonSubmit(text.getText().substring(0, text.getText().length() - 1));\n\t\telse onSubmit(text.getText());\n\t}", "private void addCursorListeners(final TableCursor tcursor, final ControlEditor editor) {\n\t\t//\n\t\t// Add key listener\n\t\t//\n\t\tcursorKeyListener = new CursorKeyListener(this, hexEditor, tcursor, editor);\n\n\t\ttcursor.addKeyListener(cursorKeyListener);\n\n\t\t//\n\t\t// Add selection listener\n\t\t//\n\t\ttcursor.addSelectionListener(new SelectionAdapter() {\n\t\t\t//\n\t\t\t// When the TableEditor is over a cell, select the corresponding row in the table\n\t\t\t//\n\t\t\t@Override\n public void widgetSelected(SelectionEvent e) {\n\t\t\t\t//\n\t\t\t\t// First check if there is an active cell editor and if it contains a valid value\n\t\t\t\t//\n\t\t\t\tif (cursorKeyListener.getText() != null) {\n\t\t\t\t\tString str = cursorKeyListener.getText().getText().toUpperCase();\n\t\t\t\t\tif (HexUtils.isValidHexNumber(str)) {\n\t\t\t\t\t\tcursorKeyListener.getCellEditorKeyListener().closeCellEditor(cursorKeyListener.getEventRow(), cursorKeyListener.getEventColumn(), str);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcursorKeyListener.setSelection();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttable.setSelection(new TableItem[] {tcursor.getRow()});\n\t\t\t\tHexTablePointer p = getCursorPosition();\n\t\t\t\ttable.setCellSelection(p.getRowIndex(), p.getColumnIndex(), cursorKeyListener.isShiftHold());\n\n\t\t\t\tupdateStatusPanel();\n\t\t\t}\n\n\t\t\t//\n\t\t\t// When the user hits \"ENTER\" in the TableCursor, pop up a text editor so that\n\t\t\t// they can change the text of the cell\n\t\t\t//\n\t\t\t@Override\n public void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\ttable.setSelection(new TableItem[] {tcursor.getRow()});\n\t\t\t}\n\t\t});\n\t}", "@Override\r\npublic void keyTyped(KeyEvent e) {\n\tif(e.getKeyCode()==KeyEvent.VK_ENTER) {\r\n\t\tinput.setEditable(true);\r\n\t}\r\n}", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n model.setText(view.txtTexto.getText());\r\n model.Content();\r\n Object []object = new Object[1];\r\n object [0] = view.txtTexto.getText();\r\n table.addRow(object);\r\n limpiar();\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\ttable.setModel(new UneditableTableModel(db.searchCards(text.getText()), columnNames));\n\t\t\t\ttable.setCellSelectionEnabled(true);\n\t\t\t\ttable.changeSelection(0, 0, false,false);\n\t\t\t\ttable.requestFocus();\n\t\t\t}", "@Override\n public void keyPressed( KeyEvent e ) {\n if ( e.keyCode == SWT.ESC ) {\n text.dispose();\n }\n // ENTER --> Save changes...\n if ( e.character == SWT.CR ) {\n String newname = text.getText();\n if ( renameJob( fname, newname, frepdir ) ) {\n ti.setText( newname );\n }\n text.dispose();\n }\n }", "public override void Do()\r\n { \r\n if (TextEditor.UiScope == null)\r\n { \r\n // We dont want to process the input item if the editor has already been detached from its UiScope. \r\n return;\r\n } \r\n\r\n DoTextInput(TextEditor, _text, _isInsertKeyToggled, /*acceptControlCharacters:*/false);\r\n }", "public void setEnterAction(OnEnter et){\n this.enterText = et;\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n String text = tagIdInsertTextBox.getText();\n if (text != null && text.length() > 0) {\n jTextAreaId.setText(jTextAreaId.getText() + \"\\n\" + text);\n tagIdInsertTextBox.setText(\"\");\n jTextAreaId.setRows(jTextAreaId.getLineCount());\n //f1.validate();\n }\n }", "public void actionPerformed(AnActionEvent e) {\n final Editor editor = e.getRequiredData(CommonDataKeys.EDITOR);\n final Project project = e.getProject();\n\n //Access document, caret, and selection\n final Document document = editor.getDocument();\n final SelectionModel selectionModel = editor.getSelectionModel();\n\n final int start = selectionModel.getSelectionStart();\n final int end = selectionModel.getSelectionEnd();\n\n final String s = document.getText(TextRange.from(start, end));\n\n String to = s;\n if (hasUpperCase(s)) {\n to = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_HYPHEN, s);\n } else if (s.indexOf(\"-\") > 0) {\n to = CaseFormat.LOWER_HYPHEN.to(CaseFormat.LOWER_CAMEL, s);\n }\n\n String finalTo = to;\n WriteCommandAction.runWriteCommandAction(project, () -> document.replaceString(start, end, finalTo));\n\n selectionModel.setSelection(start, start + to.length());\n }", "@Override\r\n\t\t\tpublic void modifyText(ModifyEvent me) {\n\t\t\t\tString newValue = newEditor.getText();\r\n\t\t\t\teditor.getItem().setText(VALUE_COLUMN_NO, newValue);\r\n\t\t\t\t//isEditorModify = true;\r\n\t\t\t\t//propertyInfo.setValue(newValue);\r\n\t\t\t}", "@Override\r\n public boolean isCellEditable(int row, int col) {\r\n return true;\r\n }", "@Override\n public void keyPressed( KeyEvent e ) {\n if ( e.keyCode == SWT.ESC ) {\n text.dispose();\n }\n // ENTER --> Save changes...\n if ( e.character == SWT.CR ) {\n String newname = text.getText();\n if ( renameJob( name, repdir, newname ) ) {\n ti.setText( newname );\n }\n text.dispose();\n }\n }", "@Override\n public void keyPressed( KeyEvent e ) {\n if ( e.keyCode == SWT.ESC ) {\n text.dispose();\n }\n // ENTER --> Save changes...\n if ( e.character == SWT.CR ) {\n String newname = text.getText();\n if ( renameTransformation( fname, newname, frepdir ) ) {\n ti.setText( newname );\n }\n text.dispose();\n }\n }", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t\tswitch(e.getKeyCode()){\n\t\t\t\n\t\t\tcase KeyEvent.VK_LEFT://键盘←方向键事件\n\t\t\t{\n\t\t\t\tif(SalesTicketInfoPanel.column <= 5){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttable.getEditorComponent().transferFocus();\n\t\t\t\tfireEditingStopped();//请求终止编辑操作从JTable获得\n\t\t\t\ttable.changeSelection(SalesTicketInfoPanel.row, SalesTicketInfoPanel.column-1, true, true);\n\t\t\t\ttable.editCellAt(SalesTicketInfoPanel.row, SalesTicketInfoPanel.column-1);\n\t\t\t\ttable.getEditorComponent().requestFocus();\n\t\t\t\t\n\t\t\t\tSwingUtilities.invokeLater(new Runnable(){\n\t\t\t\t\t@Override \n\t\t\t\t public void run() {\t\t\t\t\t\t\n\t\t\t\t\t\ttable.repaint();\n\t\t\t\t\t\ttable.revalidate();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}break;\n\t\t\t\n\t\t\tcase KeyEvent.VK_RIGHT://键盘→方向键事件\n\t\t\t{\n\t\t\t\tif(SalesTicketInfoPanel.column == table.getColumnCount()-1){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttable.getEditorComponent().transferFocus();\n\t\t\t\tfireEditingStopped();//请求终止编辑操作从JTable获得\n\t\t\t\t\n\t\t\t\ttable.changeSelection(SalesTicketInfoPanel.row, SalesTicketInfoPanel.column+1, true, true);\n\t\t\t\ttable.editCellAt(SalesTicketInfoPanel.row, SalesTicketInfoPanel.column+1);\n\t\t\t\ttable.getEditorComponent().requestFocus();\n\t\t\t\t\n\t\t\t\tSwingUtilities.invokeLater(new Runnable(){\n\t\t\t\t\t@Override \n\t\t\t\t public void run() {\t\t\t\t\t\t\n\t\t\t\t\t\ttable.repaint();\n\t\t\t\t\t\ttable.revalidate();\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}break;\n\t\t}\n\t}", "@Override\r\n\t\t\t\t\tpublic boolean isCellEditable(EventObject arg0) {\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}", "@Override\n public void keyTyped(KeyEvent e) {\n if (e.getKeyChar() == '\\n') {\n recordNotifier.changeRecord(currentRow, column, getText());\n }\n }", "private void handleMouseInput(MouseEvent mouseEvent) {\n if (simulator.isEditable()) {\n updateCell();\n }\n }", "@Override\n public void keyPressed( KeyEvent e ) {\n if ( e.keyCode == SWT.ESC ) {\n text.dispose();\n }\n // ENTER --> Save changes...\n if ( e.character == SWT.CR ) {\n String newname = text.getText();\n if ( renameUser( name, newname ) ) {\n ti.setText( newname );\n }\n text.dispose();\n }\n }", "public void mouseEntered(java.awt.event.MouseEvent e) {\n\t\t\t\teditor.repaint();\r\n\t\t\t}", "void editCell(Coord coord, String string);", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\r\n\t\t\t\tif (e.getKeyCode()==e.VK_ENTER) {\r\n\t\t\t\t\ttfPreco.requestFocus();\r\n\t\t\t\t}\r\n\t\t\t}", "default void interactWith(EnigmeBehavior.EnigmeCell cell) {\n\t}", "@Override\n public void keyPressed(KeyEvent e) {\n if (!table.isEnabled())\n return;\n \n // if the table doesn't own the focus, break early\n if (!table.isFocusOwner())\n return;\n \n // if the key pressed is not the space bar, break early\n if (e.getKeyCode() != KeyEvent.VK_SPACE || e.getModifiers() != 0)\n return;\n \n final int row = table.getSelectionModel().getLeadSelectionIndex();\n final int column = table.getColumnModel().getSelectionModel().getLeadSelectionIndex();\n \n // ensure a valid row has focus\n if (row == -1)\n return;\n \n // if a column is selected, ensure it is the hierarchy column\n if (column != -1 && table.convertColumnIndexToModel(column) != hierarchyColumnModelIndex)\n return;\n \n treeList.getReadWriteLock().writeLock().lock();\n try {\n // if the row is expandable, toggle its expanded state\n if (treeList.getAllowsChildren(row)) {\n final Runnable r = TreeTableUtilities.toggleExpansion(table, treeList, row);\n if (restoreStateRunnable == null)\n restoreStateRunnable = r;\n }\n } finally {\n treeList.getReadWriteLock().writeLock().unlock();\n }\n }", "public void widgetSelected(SelectionEvent e) {\n table.setSelection(new TableItem[]{cursor.getRow()});\n }", "private static boolean HandleTabInTables(TextEditor This, LogicalDirection direction) \r\n {\r\n if (!This.AcceptsRichContent)\r\n {\r\n return false; \r\n }\r\n\r\n if (This.Selection.IsTableCellRange) \r\n {\r\n // When table cell range is selected, Tab simply collapses \r\n // a selection to a content of a first cell\r\n This.Selection.SetCaretToPosition(This.Selection.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);\r\n return true;\r\n } \r\n\r\n if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.End)) \r\n { \r\n // From the end of row we go to the first cell of a next row\r\n TableCell cell = null; \r\n TableRow row = ((TextPointer)This.Selection.End).Parent as TableRow;\r\n Invariant.Assert(row != null);\r\n TableRowGroup body = row.RowGroup;\r\n int rowIndex = body.Rows.IndexOf(row); \r\n\r\n if (direction == LogicalDirection.Forward) \r\n { \r\n if (rowIndex + 1 < body.Rows.Count)\r\n { \r\n cell = body.Rows[rowIndex + 1].Cells[0];\r\n }\r\n }\r\n else \r\n {\r\n if (rowIndex > 0) \r\n { \r\n cell = body.Rows[rowIndex - 1].Cells[body.Rows[rowIndex - 1].Cells.Count - 1];\r\n } \r\n }\r\n\r\n if (cell != null)\r\n { \r\n This.Selection.Select(cell.ContentStart, cell.ContentEnd);\r\n } \r\n return true; \r\n }\r\n\r\n // Check if selection is within a table\r\n TextElement parent = ((TextPointer)This.Selection.Start).Parent as TextElement;\r\n while (parent != null && !(parent is TableCell))\r\n { \r\n parent = parent.Parent as TextElement;\r\n } \r\n if (parent is TableCell) \r\n {\r\n TableCell cell = (TableCell)parent; \r\n TableRow row = cell.Row;\r\n TableRowGroup body = row.RowGroup;\r\n\r\n int cellIndex = row.Cells.IndexOf(cell); \r\n int rowIndex = body.Rows.IndexOf(row);\r\n\r\n if (direction == LogicalDirection.Forward) \r\n {\r\n if (cellIndex + 1 < row.Cells.Count) \r\n {\r\n cell = row.Cells[cellIndex + 1];\r\n }\r\n else if (rowIndex + 1 < body.Rows.Count) \r\n {\r\n cell = body.Rows[rowIndex + 1].Cells[0]; \r\n } \r\n else\r\n { \r\n //\r\n }\r\n }\r\n else \r\n {\r\n if (cellIndex > 0) \r\n { \r\n cell = row.Cells[cellIndex - 1];\r\n } \r\n else if (rowIndex > 0)\r\n {\r\n cell = body.Rows[rowIndex - 1].Cells[body.Rows[rowIndex - 1].Cells.Count - 1];\r\n } \r\n else\r\n { \r\n // \r\n }\r\n } \r\n\r\n Invariant.Assert(cell != null);\r\n This.Selection.Select(cell.ContentStart, cell.ContentEnd);\r\n return true; \r\n }\r\n\r\n return false; \r\n }", "@Override\n public void startEdit() {\n super.startEdit();\n\n if (text_field == null) {\n createTextField();\n }\n setText(null);\n setGraphic(text_field);\n text_field.selectAll();\n }", "public TableEditor openTableEditor(){\n this.save();\n\t\treturn new TableEditor(this.getTitle());\n\t}", "public void cursorOn();", "public static void designTextEditor() {\n\t\t\n\t}", "public void actionPerformed(ActionEvent e) { \t\r\n \tif (EDIT.equals(e.getActionCommand())) {\r\n //The user has clicked the cell, so\r\n //bring up the dialog.\r\n \t\tfileChooser.setVisible(true);\r\n \t\t//abre la ventana de archivos\r\n \t\tfileChooser.showOpenDialog(null);\r\n \t\t\r\n int iFinTrim = fileChooser.getSelectedFile().getAbsolutePath().lastIndexOf(\"resources\\\\\"); \r\n String ruta = fileChooser.getSelectedFile().getAbsolutePath().substring(iFinTrim+10,fileChooser.getSelectedFile().getAbsolutePath().length());\r\n \t jtextfield.setText(ruta);\r\n \t jtextfield.setBackground(currentColor); \r\n //Make the renderer reappear.\r\n fireEditingStopped();\r\n }\r\n }", "public void setEditable(){\r\n treatmentTabletv.setEditable(true);\r\n //treatment id editable\r\n treatmentIDColumn.setEditable(true);\r\n treatmentIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n treatmentIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment ID\")\r\n .text(\"Treatment ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n //if Treatment ID is a duplicate, show error\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n //else update treatment ID\r\n else {\r\n String dataUpdate = \"update treatment set treatmentID = ? where treatmentName = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getTreatmentNameProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setIdProperty(t.getNewValue());\r\n }\r\n }\r\n\r\n });\r\n //treatmentName editable\r\n treatmentNameColumn.setEditable(true);\r\n treatmentNameColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n treatmentNameColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment Name\")\r\n .text(\"Treatment Name text field is empty. Text fields may not be left empty. Please insert a valid Treatment Name!\")\r\n .showError();\r\n }\r\n else {\r\n String dataUpdate = \"update treatment set treatmentName = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setTreatmentNameProperty(t.getNewValue());\r\n }\r\n }\r\n });\r\n //medicine id editable\r\n medicineIDColumn.setEditable(true);\r\n medicineIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n medicineIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment's Medicine ID\")\r\n .text(\"Treatment's Medicine ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment's Medicine ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n */\r\n //else update medicine id\r\n else {\r\n String dataUpdate = \"update treatment set medicineID = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setMedicineIDProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n\r\n //department id editable\r\n departmentIDColumn.setEditable(true);\r\n departmentIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n departmentIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment's Department ID\")\r\n .text(\"Treatment's Department ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment Department ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment's ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n */\r\n //else update department ID\r\n else {\r\n String dataUpdate = \"update treatment set departmentID = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setDepartmentIDProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n //disease id editable\r\n diseaseIDColumn.setEditable(true);\r\n diseaseIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n diseaseIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment's Disease ID\")\r\n .text(\"Treatment's Disease ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment Disease ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n */\r\n //else update disease ID\r\n else {\r\n String dataUpdate = \"update treatment set diseaseID = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setDiseaseIDProperty(t.getNewValue());\r\n }\r\n }\r\n });\r\n }", "private void teaTableMousePressedAction(MouseEvent evt) {\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n int row = teaTable.getSelectedRow();\n this.teaIDText.setText((String)teaTable.getValueAt(row, 0));\n this.teaNameText.setText((String)teaTable.getValueAt(row, 1));\n this.teaCollegeText.setText((String)teaTable.getValueAt(row, 3));\n this.teaDepartmentText.setText((String)teaTable.getValueAt(row, 4));\n this.teaTypeText.setText((String)teaTable.getValueAt(row, 5));\n this.teaPhoneText.setText((String)teaTable.getValueAt(row, 6));\n this.teaRemarkText.setText((String)teaTable.getValueAt(row, 7));\n }", "@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\r\n\t\t\t\tif (e.getKeyCode()==e.VK_ENTER) {\r\n\t\t\t\t\ttfNota.requestFocus();\r\n\t\t\t\t}\r\n\t\t\t}", "private void editTextEditorButton(){\n TextEditorTextfield.setText(textEditorPref);\n TextEditorDialog.setVisible(true);\n }", "@Override\r\n\t\t\t\t public boolean isCellEditable(int row, int column) {\n\t\t\t\t return column == 3 || column == 4;\r\n\t\t\t\t }", "@Override\n\t\tpublic void insertar() {\n\t\t\tutilitario.getTablaisFocus().insertar();\n\n\t\t}", "@Override\r\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n sendFocusToJail();\r\n\r\n return false;\r\n }", "@Override\n public boolean isCellEditable(int row, int column)\n {\n return column == NOTES;\n }", "@Override\n public boolean isCellEditable(int row, int column) \n {\n return false;\n }", "@Override\n public void focus(FieldEvents.FocusEvent event) {\n TextField tf = (TextField) event.getSource();\n tf.setCursorPosition(tf.getValue().length());\n }", "@Override\n public void handleEditStart ()\n {\n\n }", "private static void OnSpace(Object sender, ExecutedRoutedEventArgs e)\r\n {\r\n TextEditor This = TextEditor._GetTextEditor(sender);\r\n\r\n if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(e.OriginalSource))\r\n { \r\n return; \r\n }\r\n\r\n // If this event is our Cicero TextStore composition, we always handles through ITextStore::SetText.\r\n if (This.TextStore != null && This.TextStore.IsComposing)\r\n {\r\n return; \r\n }\r\n\r\n if (This.ImmComposition != null && This.ImmComposition.IsComposition) \r\n {\r\n return; \r\n }\r\n\r\n // Consider event handled\r\n e.Handled = true; \r\n\r\n if (This.TextView != null) \r\n { \r\n This.TextView.ThrottleBackgroundTasksForUserInput();\r\n } \r\n\r\n ScheduleInput(This, new TextInputItem(This, \" \", /*isInsertKeyToggled:*/!This._OvertypeMode));\r\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n Font currentFont = jshellLabGlobal.Interpreter.GlobalValues.globalEditorPane.getFont();\r\n Font newFont = new Font(currentFont.getFontName(), currentFont.getStyle(), currentFont.getSize()+1);\r\n jshellLabGlobal.Interpreter.GlobalValues.globalEditorPane.setFont(newFont);\r\n }", "public void addEnterOverride(JTextArea textArea) {\r\n\t\ttextArea.getInputMap().put(KeyStroke.getKeyStroke(\"ENTER\"), \"Text Submit\");\r\n\t\ttextArea.getInputMap().put(KeyStroke.getKeyStroke(\"shift ENTER\"), \"insert-break\");\r\n\t\ttextArea.getActionMap().put(\"Text Submit\", new AbstractAction() {\r\n \t\t\tprivate static final long\tserialVersionUID\t= 1L;\r\n \t\t\t@Override\r\n \t\t\tpublic void actionPerformed(ActionEvent e) {\r\n \t\t\t\tsubmitText();\r\n \t\t\t}\r\n \t\t} );\r\n \t}", "@Override\n public void keyTyped(KeyEvent evt) {\n Cell cell = (Cell) evt.getSource();\n // Disregard entry if not 1-9 or text already exists\n if (!String.valueOf(evt.getKeyChar()).matches(\"^[1-9]$\") || cell.getText().length() == 1) {\n System.out.println(\"Input: \" + evt.getKeyChar() + \" was rejected.\");\n evt.consume();\n } else {\n // Check if input meets contraints\n if (!model.getPuzzle().meetsConstraints(cell, Integer.valueOf(String.valueOf(evt.getKeyChar()).trim()))) {\n System.err.println(\"VALUE \" + evt.getKeyChar() + \" AT \" + cell.getPosition() + \" DOES NOT MEET SUDOKU CONTRAINTS\");\n cell.setText(\"\");\n cell.setUserValue(0);\n evt.consume();\n } else {\n cell.setUserValue(Integer.valueOf(String.valueOf(evt.getKeyChar()).trim()));\n }\n checkGridCompletion();\n }\n }", "@Override\n\tpublic boolean isCellEditable(EventObject anEvent) {\n\t\tlog.info(\"|------表格单元格编辑模型------|\\t\"+\"isCellEditable\\t\");\n\t\treturn true;\n\t}", "public Component getTableCellEditorComponent(JTable table,\r\n Object value,\r\n boolean isSelected,\r\n int row,\r\n int column) { \r\n return jtextfield;\r\n }", "void botonEditar_mouseEntered(MouseEvent e) {\n\t\tImageIcon cursor = new ImageIcon(\"../imagenes/cursores/punteroAct.gif\");\n\t\tImage image = cursor.getImage();\n\t\tCursor puntero = Toolkit.getDefaultToolkit().createCustomCursor(image, new Point(8, 8), \"img\");\n\t\tthis.setCursor(puntero);\n\n\t}", "@Override\n public boolean isCellEditable(int row, int col) {\n return col == 2;\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\tcourse.setForeground(Color.orange);\n\t\t\t\t\t\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\t\t\t\t\t\t\t}", "private void updateCursor() {\n if ((! editor.isCursorSet())\n || editor.getCursor() instanceof UIResource) {\n Cursor cursor = (editor.isEditable()) ? textCursor : null;\n editor.setCursor(cursor);\n }\n }", "public void keyPressed(KeyEvent e) {\r\n\r\n\t\tif(e == null || e.getKeyCode()==KeyEvent.VK_ENTER){\r\n\t\t\t//System.out.println(\"keypressed: Enter\");\r\n\t\t\tif (!input.getText().equals(\"\")) {\r\n\t\t\t\tinput.setEditable(false);\r\n\t\t\t\tquote[1] = Long.toString(System.currentTimeMillis());\r\n\t\t\t\tquote[0]=input.getText();\r\n\r\n\t\t\t\tinput.setText(\"\");\r\n\t\t\t\tquote[0] = quote[0].trim();\r\n\t\t\t\taddText(\"> \"+quote[0]+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tmDispatcher.newInput(quote);\r\n\t\t\t}else{\r\n\t\t\t\tinput.setEditable(false);\r\n\t\t\t\tinput.setText(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void editOccured(ModifyEvent e) {\n \n \t\tString aValue = text.getText();\n \t\tif (aValue == null) {\n \t\t\taValue = StringStatics.BLANK;\n \t\t}\n \t\tObject typedValue = aValue;\n \t\tboolean oldValidState = isValueValid();\n \t\tboolean newValidState = isCorrect(typedValue);\n \t\tif (typedValue == null && newValidState) {\n \t\t\tassert (false) : \"Validator isn't limiting the cell editor's type range\"; //$NON-NLS-1$\n \t\t}\n \t\tif (!newValidState) {\n \t\t\t// try to insert the current value into the error message.\n \t\t\tsetErrorMessage(\n \t\t\t\tMessageFormat.format(\n \t\t\t\t\tgetErrorMessage(),\n \t\t\t\t\tnew Object[] { aValue }));\n \t\t}\n \t\tvalueChanged(oldValidState, newValidState);\n \t}", "void insert(String delta) {\n \n if (!acceptInsert(delta)) {\n clear();\n } \n \n int cursor = mDisplay.getSelectionStart();\n mDisplay.getText().insert(cursor, delta);\n \n }", "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 }", "void setEditFrameText(Motion m);", "public void insertUpdate(DocumentEvent ev) {\n String stack = Log.getStack(Log.FULL_STACK);\n if (stack.indexOf(\"JTextComponent.setText\") != -1) {\n revertText = textField.getText();\n }\n if (continuousFire) {\n fireActionPerformed(ACTION_TEXT_INSERTED);\n }\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint row = table1.getSelectedRow();\n\t\t\t\tint col = table1.getSelectedColumn();\n\t\t\t\tString magv = (String) table1.getValueAt(row, 0);\n\t\t\t\tString tengv = (String) table1.getValueAt(row, 1);\n\t\t\t\tString gioitinh = (String) table1.getValueAt(row, 2);\n\t\t\t\tString phone = (String) table1.getValueAt(row, 3);\n\t\t\t\tString email = (String) table1.getValueAt(row, 4);\n\t\t\t\tString phanloaigv = (String) table1.getValueAt(row, 5);\n\t\t\t\ttxt_magv.setText(magv);\n\t\t\t\ttxt_tengv.setText(tengv);\n\t\t\t\ttxt_gioitinhgv.setText(gioitinh);\n\t\t\t\ttxt_phone.setText(phone);\n\t\t\t\ttxt_email.setText(email);\n\n\t\t\t\ttxt_phanloaigv.setText(phanloaigv);\n\n\t\t\t}", "@FXML\r\n void PlacementSelect(MouseEvent event) {\r\n \t p=TablePlacement.getSelectionModel().getSelectedItem();\r\n \t\tSelectedPlacement.setText(p.toString());\r\n \t\tNote.setText(p.getNote());\r\n \t\t\r\n }", "private static boolean HandleEnterBreakForRichText(TextEditor This, ICommand command)\r\n { \r\n boolean wasSelectionChanged = true;\r\n\r\n // Save current inline settings to continue on the next paragraph\r\n ((TextSelection)This.Selection).SpringloadCurrentFormatting(); \r\n\r\n if (!This.Selection.IsEmpty) \r\n { \r\n // Delete selected content\r\n This.Selection.Text = String.Empty; \r\n }\r\n\r\n if (HandleEnterBreakWhenStructuralBoundaryIsCrossed(This, command))\r\n { \r\n // We are crossing structural boundary and\r\n // selection was updated if HandleEnterBreakWhenStructuralBoundaryIsCrossed returned true \r\n } \r\n else\r\n { \r\n TextPointer newEnd = ((TextSelection)This.Selection).End;\r\n\r\n if (command == EditingCommands.EnterParagraphBreak)\r\n { \r\n if (newEnd.HasNonMergeableInlineAncestor && !TextPointerBase.IsPositionAtNonMergeableInlineBoundary(newEnd))\r\n { \r\n // Selection end is in the middle of a hyperlink element, enter is a no-op. \r\n wasSelectionChanged = false;\r\n } \r\n else\r\n {\r\n newEnd = TextRangeEdit.InsertParagraphBreak(newEnd, /*moveIntoSecondParagraph*/true);\r\n } \r\n }\r\n else if (command == EditingCommands.EnterLineBreak) \r\n { \r\n newEnd = newEnd.InsertLineBreak();\r\n } \r\n\r\n if (wasSelectionChanged)\r\n {\r\n This.Selection.Select(newEnd, newEnd); \r\n }\r\n } \r\n\r\n return wasSelectionChanged;\r\n }", "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\tint index = table.getSelectedRow();\n\t\t\t\t\n\t\t\t\tif (index >= 0 && index < table.getRowCount()) {\n\t\t\t\t\t\n\t\t\t\t\t Server ServerConnection;\n\t\t String courseID = (String) table.getValueAt(index, 0);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tServerConnection = new Server();\n\t\t\t\t\t\t\tString query = \"select * from course_attend where StudentID ='\" + ClientID + \"' and courseID ='\"+courseID+\"'\";\n\t\t\t \t\tResultSet data = ServerConnection.ExecuteQuery(query);\n\t\t\t \t\tif (data.next()) {\n\t\t\t \t\t\tscoreTable.setValue((String)table.getValueAt(index, 1), data.getString(\"practice_point\"), data.getString(\"theory_point\"), data.getString(\"overall\"), data.getString(\"pass_status\"));\n\t\t\t \t\t}\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\n\t\t\t\t\ttableTransactions.setSelectionForeground(Color.WHITE);\n\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\t\tcourse.setForeground(Color.orange);\n\t\t\t\t\t\t\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\t\t\t\t\t\t\t\t}", "public String fullCellText() {\n\t\treturn userInput;\r\n\t}", "public void clickEdit() {\r\n\t\tEdit.click();\r\n\t}", "@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }", "@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }", "public void actionPerformed(ActionEvent e) {\n String text = textField.getText();\n if (!isDocumentAction(e.getActionCommand())) {\n if (defaultValue != null && \"\".equals(text)) {\n text = defaultValue;\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n textField.setText(defaultValue);\n textField.selectAll();\n }\n });\n }\n revertText = text;\n textField.selectAll();\n }\n }", "public String getCellText(){return cellText;}", "@Override\n public void actionPerformed(ActionEvent e) {\n\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n //cb.setContents(new CellTransferable(component.getValueAt(row, col)), null);\n //Transferable transferable = new StringSelection((String)table.getValueAt(row, col));\n //cb.setContents(transferable,null);\n \n \n int [] rows = table.getSelectedRows();\n int [] columns = table.getSelectedColumns();\n \n \n StringBuffer selection = new StringBuffer();\n for (int r: rows)\n {\n \tfor (int c: columns)\n \t{\n \t\t\tselection.append((String)table.getValueAt(r, c)); \n \t\t\tselection.append(\";\");\n \t}\n\t\t\tselection.append(\"\\n\");\n\n }\n Transferable transferable = new StringSelection(selection.toString());\n cb.setContents(transferable,null);\n \n }", "@Override\n public boolean isCellEditable(int row, int column) { \n return model.isCellEditable(row, column); \n }", "@Override\n\tpublic void editorPaste()\n\t{\n editorInsert(clipboard);\n\t\tSystem.out.println(\"DEBUG: performing Paste\") ;\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tint row = table.getSelectedRow();\n\t\t\t\tint col = table.getSelectedColumn();\n\t\t\t\tString masv = (String) table.getValueAt(row, 0);\n\t\t\t\tString hoten = (String) table.getValueAt(row, 1);\n\t\t\t\tString ngaysinh = (String) table.getValueAt(row, 2);\n\t\t\t\tString gioitinh = (String) table.getValueAt(row, 3);\n\t\t\t\tString diachi = (String) table.getValueAt(row, 4);\n\t\t\t\tString malop = (String) table.getValueAt(row, 5);\n\t\t\t\ttxt_masv.setText(masv);\n\t\t\t\ttxt_hoten.setText(hoten);\n\t\t\t\ttxt_ngaysinh.setText(ngaysinh);\n\t\t\t\ttxt_gioitinh.setText(gioitinh);\n\t\t\t\ttxt_diachi.setText(diachi);\n\t\t\t\ttxt_malop.setText(malop);\n\t\t\t}", "@Override\n public void handle(MouseEvent event) {\n int i = tabela.getSelectionModel().getSelectedIndex();\n key = String.valueOf(colunaId.getCellData(i));\n txtNome.setText(colunaNome.getCellData(i));\n txtLogin.setText(colunaLogin.getCellData(i));\n txtSenha.setText(colunaSenha.getCellData(i));\n }" ]
[ "0.68420684", "0.66601765", "0.664687", "0.6327395", "0.6243715", "0.61911595", "0.60943365", "0.60874546", "0.60406864", "0.60273427", "0.60185844", "0.6002374", "0.599405", "0.59611225", "0.5928942", "0.5926484", "0.58642536", "0.5860992", "0.5855458", "0.584315", "0.5836613", "0.58280855", "0.58091587", "0.5770761", "0.5760084", "0.57592005", "0.5751077", "0.57486314", "0.57318485", "0.5719447", "0.5716376", "0.5707856", "0.5700284", "0.5692014", "0.5689272", "0.5685785", "0.56706464", "0.5669041", "0.5642854", "0.564217", "0.563294", "0.5625124", "0.56239504", "0.56103057", "0.5600865", "0.5598873", "0.55888295", "0.5587021", "0.558467", "0.5578898", "0.5575984", "0.55658865", "0.5563513", "0.5555858", "0.5554196", "0.55523777", "0.5549209", "0.5538606", "0.55381334", "0.55297065", "0.552093", "0.55185455", "0.55156153", "0.5508634", "0.5500225", "0.5489594", "0.5476543", "0.5475394", "0.5457182", "0.5444537", "0.54414225", "0.54295015", "0.54198784", "0.54175866", "0.541368", "0.5412149", "0.5409601", "0.54066217", "0.5406422", "0.5398836", "0.53986424", "0.5395073", "0.5387023", "0.5374835", "0.537353", "0.53711337", "0.5362726", "0.53606445", "0.5360034", "0.53592837", "0.5349826", "0.53478277", "0.53478277", "0.5343174", "0.5342928", "0.53399044", "0.53394413", "0.5339362", "0.53326654", "0.5329961" ]
0.57335764
28
Creates all items located in the popup menu and associates all the menu items with their appropriate functions.
private Menu createPopupMenu() { Menu popUpMenu = new Menu(parent.getShell(), SWT.POP_UP); /** * Adds a listener to handle enabling and disabling * some items in the Edit submenu. */ popUpMenu.addMenuListener(new MenuAdapter() { @Override public void menuShown(MenuEvent e) { Menu menu = (Menu) e.widget; MenuItem[] items = menu.getItems(); int rowIndex = table.getSelectionIndex(); int columnIndex = cursor.getColumn(); int tableSize = table.getBufferSize(); HexTablePointer p1 = new HexTablePointer(rowIndex, columnIndex - 1); boolean isOffsetColumn = columnIndex == 0; boolean isCharacterColumn = columnIndex == HexEditorConstants.TABLE_NUM_COLUMNS - 1; boolean endOfBuffer = p1.getOffset() >= tableSize; boolean readonly = hexEditor.isReadOnly(); boolean enableInsert = !isOffsetColumn && !isCharacterColumn && !endOfBuffer && !readonly; boolean enableDelete = !isOffsetColumn && !isCharacterColumn && !endOfBuffer && !readonly; boolean enableAppend = !readonly; items[0].setEnabled(enableInsert); // insert items[1].setEnabled(enableAppend); // append //--- separator --- items[3].setEnabled(canUndo()); items[4].setEnabled(canRedo()); //--- separator --- items[8].setEnabled(canPaste()); // paste items[9].setEnabled(enableDelete); // delete // --- separator --- items[11].setEnabled(true); // goto // --- separator --- items[13].setEnabled(true); // about } // menuShown() }); // // "Insert" menu item // MenuItem item = new MenuItem(popUpMenu, SWT.PUSH/*SWT.CASCADE*/); item.setText(Messages.HexEditorControl_37); item.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { popupMenuInsertData(table.getSelectionIndex(), cursor.getColumn()); } }); // // "Append" menu item // item = new MenuItem(popUpMenu, SWT.PUSH/*SWT.CASCADE*/); item.setText(Messages.HexEditorControl_38); item.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { popupMenuAppendData(); } }); // // Separator // new MenuItem(popUpMenu, SWT.SEPARATOR); // // "Undo" and "Redo" menu item // item = new MenuItem(popUpMenu, SWT.PUSH/*SWT.CASCADE*/); item.setText(Messages.HexEditorControl_39); item.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { hexEditor.undo(); } }); item = new MenuItem(popUpMenu, SWT.PUSH/*SWT.CASCADE*/); item.setText(Messages.HexEditorControl_40); item.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { hexEditor.redo(); } }); // // Separator // new MenuItem(popUpMenu, SWT.SEPARATOR); Listener copyPasteListener = new Listener() { @Override public void handleEvent(Event event) { hexEditor.getEditorSite().getActionBars().getGlobalActionHandler( (String) event.widget.getData()).run(); } }; item = new MenuItem(popUpMenu, SWT.PUSH); item.setText(Messages.HexEditorControl_41); item.setData(ActionFactory.CUT.getId()); item.addListener(SWT.Selection, copyPasteListener); item = new MenuItem(popUpMenu, SWT.PUSH); item.setText(Messages.HexEditorControl_42); item.setData(ActionFactory.COPY.getId()); item.addListener(SWT.Selection, copyPasteListener); item = new MenuItem(popUpMenu, SWT.PUSH); item.setText(Messages.HexEditorControl_43); item.setData(ActionFactory.PASTE.getId()); item.addListener(SWT.Selection, copyPasteListener); // // "Delete" menu item // item = new MenuItem(popUpMenu, SWT.PUSH/*SWT.CASCADE*/); item.setText(Messages.HexEditorControl_44); item.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { popupMenuDeleteData(table.getSelectionIndex(), cursor.getColumn()); } }); // // Separator // new MenuItem(popUpMenu, SWT.SEPARATOR); // // "Goto..." menu item // item = new MenuItem(popUpMenu, SWT.PUSH/*SWT.CASCADE*/); item.setText(Messages.HexEditorControl_45); item.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { popupMenuGoto(); } }); // // Separator // new MenuItem(popUpMenu, SWT.SEPARATOR); // // "About" menu item // item = new MenuItem(popUpMenu, SWT.PUSH/*SWT.NULL*/); item.setText(Messages.HexEditorControl_46); item.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { popupMenuAbout(); } }); return popUpMenu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createItemListPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(addMenuItem);\n\t\tadd(editMenuItem);\n\t\tadd(deleteMenuItem);\n\t\tadd(moveUpMenuItem);\n\t\tadd(moveDownMenuItem);\n\t\taddSeparator();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t\taddSeparator();\n\t\tadd(sendMidiMenuItem);\n\t}", "private void addMenuItems() {\n PopupMenu popup = new PopupMenu();\n MenuItem defaultItem = new MenuItem(\"Exit\");\n \n defaultItem.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n System.out.println(\"Exiting...\");\n System.exit(0);\n }\n });\n \n popup.add(defaultItem);\n \n this.trayicon.setPopupMenu(popup);\n }", "protected void createContextMenu() {\n\t\t// TODO : XML Editor 에서 Query Editor 관련 Action 삭제~~\n\t\tMenuManager contextMenu = new MenuManager(\"#PopUp\"); //$NON-NLS-1$\n\t\tcontextMenu.add(new Separator(\"additions\")); //$NON-NLS-1$\n\t\tcontextMenu.setRemoveAllWhenShown(true);\n\t\tcontextMenu.addMenuListener(new NodeActionMenuListener());\n\t\tMenu menu = contextMenu.createContextMenu(getControl());\n\t\tgetControl().setMenu(menu);\n\t\t// makeActions();\n\t\t// hookSingleClickAction();\n\n\t}", "public void createPopupMenu() {\n\t\tJPopupMenu popup = new JPopupMenu();\r\n\t\tmenuItem = new JMenuItem(\"刷新频道\");\r\n\t\tmenuItem.addActionListener(this);\r\n\t\tpopup.add(menuItem);\r\n\r\n\t\thideMenuItem = new JMenuItem(\"隐藏公共频道\");\r\n\t\thideMenuItem.addActionListener(this);\r\n\t\tpopup.add(hideMenuItem);\r\n\t\t// Add listener to the text area so the popup menu can come up.\r\n\t\tMouseListener popupListener = new PopupListener(popup);\r\n\t\tcommonArea.addMouseListener(popupListener);\r\n\t\tmyMsgArea.addMouseListener(popupListener);\r\n\t}", "public void createSwitchButtonPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t}", "@Override\n public List<UpdatableItem> createPopup() {\n final List<UpdatableItem> items = new ArrayList<UpdatableItem>();\n \n /* host wizard */\n final MyMenuItem newHostWizardItem =\n new MyMenuItem(Tools.getString(\"EmptyBrowser.NewHostWizard\"),\n HOST_ICON,\n null,\n new AccessMode(ConfigData.AccessType.RO, false),\n new AccessMode(ConfigData.AccessType.RO, false)) {\n private static final long serialVersionUID = 1L;\n \n @Override\n public String enablePredicate() {\n return null;\n }\n \n @Override\n public void action() {\n final AddHostDialog dialog = new AddHostDialog(new Host());\n dialog.showDialogs();\n }\n };\n items.add(newHostWizardItem);\n Tools.getGUIData().registerAddHostButton(newHostWizardItem);\n return items;\n }", "public static void initializePopup(){\n\n popup = new PopupMenu();\n\n // Initialize menu items\n MenuItem exitItem = new MenuItem(\"Exit\");\n MenuItem pauseItem = new MenuItem(\"Pause\");\n MenuItem resumeItem = new MenuItem(\"Resume\");\n\n // Exit listener\n exitItem.addActionListener(arg0 -> System.exit(0));\n\n // Pause listener\n pauseItem.addActionListener(arg0 -> {\n paused = true;\n pauseItem.setEnabled(false);\n resumeItem.setEnabled(true);\n });\n\n // Resume listener\n resumeItem.addActionListener(arg0 -> {\n paused = false;\n pauseItem.setEnabled(true);\n resumeItem.setEnabled(false);\n });\n\n resumeItem.setEnabled(false);\n\n popup.add(resumeItem);\n popup.add(pauseItem);\n popup.add(exitItem);\n }", "private void createMenus() {\r\n\t\t// File menu\r\n\t\tmenuFile = new JMenu(Constants.C_FILE_MENU_TITLE);\r\n\t\tmenuBar.add(menuFile);\r\n\t\t\r\n\t\tmenuItemExit = new JMenuItem(Constants.C_FILE_ITEM_EXIT_TITLE);\r\n\t\tmenuItemExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tactionOnClicExit();\t\t// Action triggered when the Exit item is clicked.\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuFile.add(menuItemExit);\r\n\t\t\r\n\t\t// Help menu\r\n\t\tmenuHelp = new JMenu(Constants.C_HELP_MENU_TITLE);\r\n\t\tmenuBar.add(menuHelp);\r\n\t\t\r\n\t\tmenuItemHelp = new JMenuItem(Constants.C_HELP_ITEM_HELP_TITLE);\r\n\t\tmenuItemHelp.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemHelp);\r\n\t\t\r\n\t\tmenuItemAbout = new JMenuItem(Constants.C_HELP_ITEM_ABOUT_TITLE);\r\n\t\tmenuItemAbout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicAbout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemAbout);\r\n\t\t\r\n\t\tmenuItemReferences = new JMenuItem(Constants.C_HELP_ITEM_REFERENCES_TITLE);\r\n\t\tmenuItemReferences.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicReferences();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemReferences);\r\n\t}", "private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}", "public void createMenus()\n {\n EventQueueUtilities.runOnEDT(this::createMenusNow);\n }", "private void initialize() {\r\n //this.setVisible(true);\r\n \r\n\t // added pre-set popup menu here\r\n// this.add(getPopupFindMenu());\r\n this.add(getPopupDeleteMenu());\r\n this.add(getPopupPurgeMenu());\r\n\t}", "private void createMenusNow()\n {\n JMenu debugMenu = myToolbox.getUIRegistry().getMenuBarRegistry().getMenu(MenuBarRegistry.MAIN_MENU_BAR,\n MenuBarRegistry.DEBUG_MENU);\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Print Summary\", e -> printSummary()));\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Tag Data Type\", e -> tagDataType()));\n }", "protected abstract PopupMenuHelper createActionMenuHelper();", "public void generateMenu () \n {\n mCoffeeList = mbdb.getCoffeeMenu();\n for(int i =0;i<mCoffeeList.size();i++){\n coffeeTypeCombo.addItem(mCoffeeList.get(i).toString());\n }\n mWaffleList = mbdb.getWaffleMenu();\n for(int j =0;j<mWaffleList.size();j++){\n waffleTypeCombo.addItem(mWaffleList.get(j).toString());\n }\n }", "private void createMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\tfileMenu = new JMenu(flp.getString(\"file\"));\n\t\tmenuBar.add(fileMenu);\n\n\t\tfileMenu.add(new JMenuItem(new ActionNewDocument(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionOpen(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSave(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSaveAs(flp, this)));\n\t\tfileMenu.addSeparator();\n\t\tfileMenu.add(new JMenuItem(new ActionExit(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionStatistics(flp, this)));\n\n\t\teditMenu = new JMenu(flp.getString(\"edit\"));\n\n\t\teditMenu.add(new JMenuItem(new ActionCut(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionCopy(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionPaste(flp, this)));\n\n\t\ttoolsMenu = new JMenu(flp.getString(\"tools\"));\n\n\t\titemInvert = new JMenuItem(new ActionInvertCase(flp, this));\n\t\titemInvert.setEnabled(false);\n\t\ttoolsMenu.add(itemInvert);\n\n\t\titemLower = new JMenuItem(new ActionLowerCase(flp, this));\n\t\titemLower.setEnabled(false);\n\t\ttoolsMenu.add(itemLower);\n\n\t\titemUpper = new JMenuItem(new ActionUpperCase(flp, this));\n\t\titemUpper.setEnabled(false);\n\t\ttoolsMenu.add(itemUpper);\n\n\t\tsortMenu = new JMenu(flp.getString(\"sort\"));\n\t\tsortMenu.add(new JMenuItem(new ActionSortAscending(flp, this)));\n\t\tsortMenu.add(new JMenuItem(new ActionSortDescending(flp, this)));\n\n\t\tmenuBar.add(editMenu);\n\t\tmenuBar.add(createLanguageMenu());\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(sortMenu);\n\n\t\tthis.setJMenuBar(menuBar);\n\t}", "public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(\"mVmenu1\")); //\n\t\tmenu2 = new MenuItem(bundle.getString(\"mVmenu2\")); //\n\t}", "private void initNodePopup() {\r\n nodeMenuItem = new MenuItem[3];\r\n nodeMenuItem[0] = new MenuItem(\"Select All\");\r\n nodeMenuItem[1] = new MenuItem(\"Edit Label\");\r\n nodeMenuItem[2] = new MenuItem(\"Properties\");\r\n\r\n nodePopupMenu = new PopupMenu();\r\n\r\n nodePopupMenu.add(nodeMenuItem[0]);\r\n nodePopupMenu.addSeparator();\r\n nodePopupMenu.add(nodeMenuItem[1]);\r\n nodePopupMenu.add(nodeMenuItem[2]);\r\n\r\n nodePopupMenu.addActionListener(this);\r\n\r\n this.add(nodePopupMenu);\r\n }", "protected void createPopupMenu() {\n\t\tJPopupMenu popup = new JPopupMenu();\n\t\tJMenuItem menuItem = new JMenuItem(\"Clear\");\n\t\tmenuItem.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tclear();\n\t\t\t}\n\t\t});\n\t\tpopup.add(menuItem);\n\t\ttextArea.addMouseListener(new PopupShower(popup));\n\t}", "protected JPopupMenu createPopupMenu()\r\n {\r\n\r\n // Setup menu Items String values that are shared\r\n setSharedMenuItemStrings();\r\n // Add\tall the Horizontal elements\r\n JPopupMenu result = null;\r\n\r\n JMenu insertRows =\r\n HGMenuItem.makeMenu(\r\n getString(\"WatchListTableModule.edit_menu.view_insert_row_text\"),\r\n 'I',\r\n new Object[] { insertBeforeCmd, insertAfterCmd },\r\n actionTrigger);\r\n\r\n result =\r\n HGMenuItem.makePopupMenu(\r\n new Object[] {\r\n viewOptionChainCmd,\r\n null,\r\n viewHistoricChartCmd,\r\n null,\r\n insertRows,\r\n deleteRowCmd,\r\n null,\r\n addNewWatchListCmd,\r\n deleteWatchListCmd,\r\n renameListCmd,\r\n null,\r\n printListCmd },\r\n actionTrigger);\r\n\r\n // Set the Alignment and return the MenuBar\r\n result.setAlignmentX(JMenuBar.LEFT_ALIGNMENT);\r\n return result;\r\n }", "@objid (\"491bee9e-12dd-11e2-8549-001ec947c8cc\")\n private static void createMenuEntriesForAction(IModule module, MMenu moduleMenu, MPart view) {\n Map<String, MMenu> slotMap = new HashMap<>();\n \n // ask module for its IModuleAction that should be inserted into the\n // contextual menu and for each of them\n for (IModuleAction action : module.getActions(ActionLocation.contextualpopup)) {\n // Create the MHandler and MHandledItem for this action.\n \n // MCommand\n MCommand command = ModuleCommandsRegistry.getCommand(module, action);\n \n // MHandler\n final MHandler handler = createAndActivateHandler(command, module, action, view);\n \n // MHandledItem\n MHandledMenuItem item = createAndInsertItem(moduleMenu, action, slotMap);\n // Bind to command\n item.setCommand(command);\n \n Expression visWhen = new IsVisibleExpression(handler.getObject(), item);\n MCoreExpression isVisibleWhenExpression = MUiFactory.INSTANCE.createCoreExpression();\n isVisibleWhenExpression.setCoreExpressionId(\"programmatic.value\");\n isVisibleWhenExpression.setCoreExpression(visWhen);\n \n item.setVisibleWhen(isVisibleWhenExpression);\n }\n }", "protected void addMenuItems(JPopupMenu menu, ActionListener listener) {\r\n JMenuItem menuItem;\r\n menuItem = new JMenuItem(\"Store cluster\", GUIFactory.getIcon(\"new16.gif\"));\r\n menuItem.setActionCommand(STORE_CLUSTER_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menu.addSeparator();\r\n \r\n menuItem = new JMenuItem(\"Launch new session\", GUIFactory.getIcon(\"launch_new_mav.gif\"));\r\n menuItem.setActionCommand(LAUNCH_NEW_SESSION_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem); \r\n \r\n menu.addSeparator();\r\n \r\n menuItem = new JMenuItem(\"Delete public cluster\", GUIFactory.getIcon(\"delete16.gif\"));\r\n menuItem.setActionCommand(SET_DEF_COLOR_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menu.addSeparator();\r\n \r\n menuItem = new JMenuItem(\"Save cluster...\", GUIFactory.getIcon(\"save16.gif\"));\r\n menuItem.setActionCommand(SAVE_CLUSTER_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menuItem = new JMenuItem(\"Save all clusters...\", GUIFactory.getIcon(\"save16.gif\"));\r\n menuItem.setActionCommand(SAVE_ALL_CLUSTERS_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menu.addSeparator();\r\n \r\n setOverallMaxMenuItem = new JMenuItem(\"Set Y to overall max...\", GUIFactory.getIcon(\"Y_range_expand.gif\"));\r\n setOverallMaxMenuItem.setActionCommand(SET_Y_TO_EXPERIMENT_MAX_CMD);\r\n setOverallMaxMenuItem.addActionListener(listener);\r\n setOverallMaxMenuItem.setEnabled(false);\r\n menu.add(setOverallMaxMenuItem);\r\n \r\n setClusterMaxMenuItem = new JMenuItem(\"Set Y to cluster max...\", GUIFactory.getIcon(\"Y_range_expand.gif\"));\r\n setClusterMaxMenuItem.setActionCommand(SET_Y_TO_CLUSTER_MAX_CMD);\r\n setClusterMaxMenuItem.addActionListener(listener);\r\n menu.add(setClusterMaxMenuItem);\r\n\r\n menuItem = new JMenuItem(\"Toggle reference line...\");\r\n menuItem.setActionCommand(TOGGLE_REF_LINE_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menu.addSeparator();\r\n \r\n menuItem = new JMenuItem(\"Broadcast Matrix to Gaggle\", GUIFactory.getIcon(\"gaggle_icon_16.gif\"));\r\n menuItem.setActionCommand(BROADCAST_MATRIX_GAGGLE_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menuItem = new JMenuItem(\"Broadcast Gene List to Gaggle\", GUIFactory.getIcon(\"gaggle_icon_16.gif\"));\r\n menuItem.setActionCommand(BROADCAST_NAMELIST_GAGGLE_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n menuItem = new JMenuItem(\"Broadcast Matrix to Genome Browser\", GUIFactory.getIcon(\"gaggle_icon_16.gif\"));\r\n menuItem.setActionCommand(BROADCAST_MATRIX_GENOME_BROWSER_CMD);\r\n menuItem.addActionListener(listener);\r\n menu.add(menuItem);\r\n \r\n }", "private void createMenus() {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\t\r\n\t\tJMenu fileMenu = new LJMenu(\"file\", flp);\r\n\t\tmenuBar.add(fileMenu);\r\n\t\t\r\n\t\tfileMenu.add(new JMenuItem(createBlankDocument));\r\n\t\tfileMenu.add(new JMenuItem(openDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAsAction));\r\n\t\tfileMenu.add(new JMenuItem(closeCurrentTabAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(getStatsAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(exitAction));\r\n\t\t\r\n\t\tJMenu editMenu = new LJMenu(\"edit\", flp);\r\n\t\tmenuBar.add(editMenu);\r\n\t\t\r\n\t\teditMenu.add(new JMenuItem(copyAction));\r\n\t\teditMenu.add(new JMenuItem(pasteAction));\r\n\t\teditMenu.add(new JMenuItem(cutAction));\r\n\t\t\r\n\t\tJMenu langMenu = new LJMenu(\"lang\", flp);\r\n\t\tJMenuItem hr = new LJMenuItem(\"cro\", flp);\r\n\t\thr.addActionListener((l) -> { \r\n\t\t\tLocalizationProvider.getInstance().setLanguage(\"hr\");\r\n\t\t\tcurrentLang = \"hr\";\r\n\t\t});\r\n\t\t\r\n\t\tlangMenu.add(hr);\r\n\t\tJMenuItem en = new LJMenuItem(\"eng\", flp);\r\n\t\ten.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"en\");\r\n\t\t\t currentLang = \"en\";\r\n\t\t});\r\n\t\tlangMenu.add(en);\r\n\t\tJMenuItem de = new LJMenuItem(\"de\", flp);\r\n\t\tde.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"de\");\r\n\t\t\t currentLang = \"de\";\r\n\t\t});\r\n\t\tlangMenu.add(de);\r\n\t\tmenuBar.add(langMenu);\r\n\t\t\r\n\t\tJMenu toolsMenu = new LJMenu(\"tools\", flp);\r\n\t\tJMenuItem toUp = new JMenuItem(toUpperCaseAction);\r\n\t\ttoolsMenu.add(toUp);\r\n\t\ttoggable.add(toUp);\r\n\t\ttoUp.setEnabled(false);\r\n\t\tJMenuItem toLow = new JMenuItem(toLowerCaseAction);\r\n\t\ttoolsMenu.add(toLow);\r\n\t\ttoggable.add(toLow);\r\n\t\ttoLow.setEnabled(false);\r\n\t\tJMenuItem inv = new JMenuItem(invertSelected);\r\n\t\ttoolsMenu.add(inv);\r\n\t\ttoggable.add(inv);\r\n\t\tinv.setEnabled(false);\r\n\t\tmenuBar.add(toolsMenu);\r\n\t\t\r\n\t\tJMenu sort = new LJMenu(\"sort\", flp);\r\n\t\tJMenuItem sortAsc = new JMenuItem(sortAscAction);\r\n\t\tsort.add(sortAsc);\r\n\t\ttoggable.add(sortAsc);\r\n\t\tJMenuItem sortDesc = new JMenuItem(sortDescAction);\r\n\t\tsort.add(sortDesc);\r\n\t\ttoggable.add(sortDesc);\r\n\t\tJMenuItem uniq = new JMenuItem(uniqueLinesAction);\r\n\t\ttoolsMenu.add(uniq);\r\n\t\ttoggable.add(uniq);\r\n\t\t\r\n\t\ttoolsMenu.add(sort);\r\n\t\tsetJMenuBar(menuBar);\r\n\r\n\t}", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "public static JPopupMenu createPopupMenu() {\n final JPopupMenu popup = new JPopupMenu();\n popup.setBackground(GUI.themeColorTwo);\n\n JMenuItem deleteItem = new JMenuItem(new AbstractAction(\"Delete\") {\n @Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showMessageDialog(GUI.frame, \"Delete selected\");\n System.out.println(\"deleting item\");\n }\n });\n deleteItem.setBackground(GUI.themeColor);\n deleteItem.setForeground(Color.white);\n popup.add(deleteItem);\n JMenuItem pinItem = new JMenuItem(new AbstractAction(\"Pin\") {\n @Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showMessageDialog(GUI.frame, \"Pin selected\");\n System.out.println(\"pinning item\");\n }\n });\n pinItem.setBackground(GUI.themeColorTwo);\n pinItem.setForeground(Color.white);\n popup.add(pinItem);\n\n return popup;\n }", "private void initEdgePopup() {\r\n edgeMenuItem = new MenuItem[4];\r\n edgeMenuItem[0] = new MenuItem(\"Select All\");\r\n edgeMenuItem[1] = new MenuItem(\"Create Split Point\");\r\n edgeMenuItem[2] = new MenuItem(\"Edit Label\");\r\n edgeMenuItem[3] = new MenuItem(\"Properties\");\r\n\r\n edgePopupMenu = new PopupMenu();\r\n\r\n edgePopupMenu.add(edgeMenuItem[0]);\r\n edgePopupMenu.addSeparator();\r\n edgePopupMenu.add(edgeMenuItem[1]);\r\n edgePopupMenu.add(edgeMenuItem[2]);\r\n edgePopupMenu.add(edgeMenuItem[3]);\r\n\r\n edgePopupMenu.addActionListener(this);\r\n\r\n this.add(edgePopupMenu);\r\n }", "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 }", "private void setupFilterPopupMenus() {\r\n\t\t\r\n\t\t// setup swoop ontology filter menu\r\n\t\tthis.swoFilterMenu = new JPopupMenu();\r\n\t\tthis.swoRedFMenu = (JMenuItem) this.initComponent(JMenuItem.class, \"Remove Redundant Changes\");\r\n\t\tthis.swoRepFMenu = (JMenuItem) this.initComponent(JMenuItem.class, \"Remove Repository Changes\");\r\n\t\tthis.swoLocFMenu = (JMenuItem) this.initComponent(JMenuItem.class, \"Remove Local Changes\");\r\n\t\tthis.swoFilterMenu.add(swoRedFMenu);\r\n\t\tthis.swoFilterMenu.add(swoRepFMenu);\r\n\t\tthis.swoFilterMenu.add(swoLocFMenu);\r\n\t\t\r\n\t\t// setup repository ontology filter menu\r\n\t\tthis.repFilterMenu = new JPopupMenu();\r\n\t\tthis.repRedFMenu = (JMenuItem) this.initComponent(JMenuItem.class, \"Remove Redundant Changes\");\r\n\t\tthis.repFilterMenu.add(repRedFMenu);\t\t\r\n\t}", "public void init() {\n\t\tMenu menu = new Menu();\n\t\tmenu.register();\n\n\t\t// Application.getInstance().getGUILog().showMessage(\"Show a popup the proper\n\t\t// way !\");\n\n\t\t// final ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\n\t\t// final MDAction action = new ExampleAction();\n\t\t// Adding action to main menu\n\t\t// manager.addMainMenuConfigurator(new MainMenuConfigurator(action));\n\t\t// Adding action to main toolbar\n\t\t// manager.addMainToolbarConfigurator(new MainToolbarConfigurator(action));\n\n\t\t// pluginDir = getDescriptor().getPluginDirectory().getPath();\n\n\t\t// Creating submenu in the MagicDraw main menu\n\t\t// ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\t\t// manager.addMainMenuConfigurator(new\n\t\t// MainMenuConfigurator(getSubmenuActions()));\n\n\t\t/**\n\t\t * @Todo: load project options (@see myplugin.generator.options.ProjectOptions)\n\t\t * from ProjectOptions.xml and take ejb generator options\n\t\t */\n\n\t\t// for test purpose only:\n\t\t// GeneratorOptions ejbOptions = new GeneratorOptions(\"c:/temp\", \"ejbclass\",\n\t\t// \"templates\", \"{0}.java\", true, \"ejb\");\n\t\t// ProjectOptions.getProjectOptions().getGeneratorOptions().put(\"EJBGenerator\",\n\t\t// ejbOptions);\n\n\t\t// ejbOptions.setTemplateDir(pluginDir + File.separator +\n\t\t// ejbOptions.getTemplateDir()); //apsolutna putanja\n\t}", "private void setupMenuItems() {\n\t\taboutMenu.setOnAction(event -> {\n\t\t\tAnchorPane root;\n\t\t\ttry {\n\t\t\t\troot = FXMLLoader.load(getClass().getResource(\"about.fxml\"));\n\n\t\t\t\tStage stage = new Stage();\n\t\t\t\tstage.setScene(new Scene(root));\n\t\t\t\tstage.setTitle(\"About\");\n\t\t\t\tstage.show();\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.error(\"Error loading About Window - \" + e.getMessage());\n\t\t\t}\n\t\t});\n\n\t\texitMenu.setOnAction(event -> {\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tPlatform.exit();\n\t\t\t\t\tlog.debug(\"Window closed\");\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tloadMenu.setOnAction(event -> loadFile(true));\n\n\t\tsaveMenu.setOnAction(event -> Main.serializeItems());\n\n\t\tgroupByMenu.setOnAction(event -> {\n\t\t\tOptional<String> sortOption = Alerter.getChoiceDialog(\"Sorting\", null, \"Select how you want to group: \");\n\t\t\tsortOption.ifPresent(letter -> groupItems(letter));\n\t\t});\n\n\t\tupdateAllMenu.setOnAction(event -> {\n\t\t\tnew Thread(new Task<Void>() {\n\t\t\t\t@Override\n\t\t\t\tprotected Void call() throws Exception {\n\t\t\t\t\tlog.debug(\"UpdateAll Thread Triggered\");\n\n\t\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\t\tupdateItem(b);\n\t\t\t\t\t});\n\n\t\t\t\t\tupdateList();\n\t\t\t\t\tMain.serializeItems();\n\n\t\t\t\t\tlog.debug(\"UpdateAll Thread terminated successfully\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}).start();\n\t\t});\n\n\t\tupdateMenu.setOnAction(event -> {\n\t\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\t\t\t\tupdateItem(itemBox);\n\t\t\t} else {\n\t\t\t\tAlert alert = Alerter.getAlert(AlertType.INFORMATION, \"No Item selected\", null,\n\t\t\t\t\t\t\"Please select the Item you want to update!\");\n\t\t\t\talert.showAndWait();\n\t\t\t\tlog.debug(\"Info Popup triggered, No item selected\");\n\t\t\t}\n\t\t});\n\n\t\tdeleteMenu.setOnAction(event -> {\n\t\t\tItemBox rem = itemsMap.remove(listView.getSelectionModel().getSelectedItem().getGtin());\n\t\t\tlog.info(\"Item: \" + rem.getName() + \" removed\");\n\t\t\tupdateList();\n\t\t});\n\n\t\trepeatMenu.setOnAction(event -> {\n\t\t\tif (lastCommand != null) {\n\t\t\t\tString[] props = lastCommand.split(\" \");\n\t\t\t\tlog.info(\"Repeat called with: \" + lastCommand);\n\n\t\t\t\tswitch (props[0]) {\n\t\t\t\tcase \"ADD\":\n\t\t\t\t\taddItem(props[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RM\":\n\t\t\t\t\tremoveItem(props[1]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tprintMenu.setOnAction(event -> {\n\t\t\tprintOut(PrintOutType.OVERVIEW);\n\t\t});\n\n\t\tprintShoppingMenu.setOnAction(event -> {\n\t\t\tprintOut(PrintOutType.SHOPPING);\n\t\t});\n\n\t}", "private void populateRecentMenu(){\r\n\t\trecentMenu.removeAll();\r\n\t\tString[] files = BibtexPrefs.getOpenedFiles();\r\n\t\trecentMenuItems = new JMenuItem[files.length];\r\n\t\tfor(int i = 0; i < files.length; i++){\r\n\t\t\trecentMenuItems[i] = new JMenuItem(files[i]);\r\n\t\t\trecentMenuItems[i].addActionListener(this);\r\n\t\t\trecentMenu.add(recentMenuItems[i]);\r\n\t\t}\r\n\t}", "void createMenus(Container cp) {\r\n createMenu4Shape(cp);\r\n createMenu4Color(cp);\r\n createMenu4Filled(cp);\r\n createButtons(cp);\r\n }", "public void createMenu() {\n\t\tmenuBar.add(createGameMenuColumn());\n\t\tmenuBar.add(createTestsMenuColumn());\n\t\tmenuBar.add(createCheatsMenuColumn());\n\n\t\tparentMainView.setJMenuBar(menuBar);\n\t}", "private void constructMenus()\n\t{\n\t\tthis.fileMenu = new JMenu(\"File\");\n\t\tthis.editMenu = new JMenu(\"Edit\");\n\t\tthis.caseMenu = new JMenu(\"Case\");\n\t\tthis.imageMenu = new JMenu(\"Image\");\n\t\tthis.fileMenu.add(this.saveImageMenuItem);\n\t\tthis.fileMenu.addSeparator();\n\t\tthis.fileMenu.add(this.quitMenuItem);\n\t\tthis.editMenu.add(this.undoMenuItem);\n\t\tthis.editMenu.add(this.redoMenuItem);\n\t\tthis.caseMenu.add(this.removeImageMenuItem);\n\t\tthis.imageMenu.add(this.antiAliasMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.brightenMenuItem);\n\t\tthis.imageMenu.add(this.darkenMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.grayscaleMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.resizeMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.cropMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.rotate90MenuItem);\n\t\tthis.imageMenu.add(this.rotate180MenuItem);\n\t\tthis.imageMenu.add(this.rotate270MenuItem);\n\t}", "private void initWayPopup() {\r\n wayMenuItem = new MenuItem[5];\r\n wayMenuItem[0] = new MenuItem(\"Minim path\");\r\n wayMenuItem[1] = new MenuItem(\"Maxim path\");\r\n wayMenuItem[2] = new MenuItem(\"Next path\");\r\n wayMenuItem[3] = new MenuItem(\"Prev path\");\r\n wayMenuItem[4] = new MenuItem(\"Select all\");\r\n\r\n /* Init the popup */\r\n wayPopupMenu = new PopupMenu();\r\n\r\n wayPopupMenu.add(wayMenuItem[0]);\r\n wayPopupMenu.add(wayMenuItem[1]);\r\n wayPopupMenu.addSeparator();\r\n wayPopupMenu.add(wayMenuItem[2]);\r\n wayPopupMenu.add(wayMenuItem[3]);\r\n wayPopupMenu.addSeparator();\r\n wayPopupMenu.add(wayMenuItem[4]);\r\n\r\n wayPopupMenu.addActionListener(this);\r\n\r\n this.add(wayPopupMenu);\r\n }", "@Override\n public void onClick(View v) {\n PopupMenu popup = new PopupMenu(MainActivity.this, frameLayoutCategories);\n\n for (int i = 0; i < categories.length; i++){\n popup.getMenu().add(0, i, 0, categories[i]);\n\n }\n\n //Inflating the Popup using xml file\n popup.getMenuInflater().inflate(R.menu.poupup_menu_categories, popup.getMenu());\n\n //registering popup with OnMenuItemClickListener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n public boolean onMenuItemClick(MenuItem item) {\n ((TextView)findViewById(R.id.textViewCategory)).setText(\"Category: \" + item.getTitle());\n item.setChecked(true);\n currentCategoryID = item.getItemId();\n multipleChoiceQuestion (categories[currentCategoryID], jeopardyMode);\n\n return true;\n }\n });\n\n\n\n popup.show();//showing popup menu\n }", "private MPopupMenu createContectMenu() {\n\t\tMPopupMenu menu = MenuFactoryImpl.eINSTANCE.createPopupMenu();\n\t\tmenu.setElementId(EditorIdentities.EDITOR_POPUP_ID);\n\t\treturn menu;\n\t}", "public void generateMenu(){\n\t\tmenuBar = new JMenuBar();\n\n\t\tJMenu file = new JMenu(\"File\");\n\t\tJMenu tools = new JMenu(\"Tools\");\n\t\tJMenu help = new JMenu(\"Help\");\n\n\t\tJMenuItem open = new JMenuItem(\"Open \");\n\t\tJMenuItem save = new JMenuItem(\"Save \");\n\t\tJMenuItem exit = new JMenuItem(\"Exit \");\n\t\tJMenuItem preferences = new JMenuItem(\"Preferences \");\n\t\tJMenuItem about = new JMenuItem(\"About \");\n\n\n\t\tfile.add(open);\n\t\tfile.add(save);\n\t\tfile.addSeparator();\n\t\tfile.add(exit);\n\t\ttools.add(preferences);\n\t\thelp.add(about);\n\n\t\tmenuBar.add(file);\n\t\tmenuBar.add(tools);\n\t\tmenuBar.add(help);\n\t}", "private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }", "public void addMenuItems()\n\t{\n\t\tstartButton = new JButton(\"Start\");\n\t\tstartButton.setLayout(null);\n\t\tstartButton.setBounds(350, 225, 100, 50);\n\t\t\n\t\toptionsButton = new JButton(\"Options\");\n\t\toptionsButton.setLayout(null);\n\t\toptionsButton.setBounds(350, 275, 100, 50);\n\t\t\n\t\texitButton = new JButton(\"Exit\");\n\t\texitButton.setLayout(null);\n\t\texitButton.setBounds(350, 375, 100, 50);\n\t\texitButton.setActionCommand(\"exit\");\n\t\texitButton.addActionListener((ActionListener) this);\n\t\t\n\t\tmainMenuPanel.add(startButton);\n\t\tmainMenuPanel.add(optionsButton);\n\t\tmainMenuPanel.add(startButton);\n\t}", "private void makeMenu() {\r\n int i = 0;\r\n int j = 0;\r\n final JMenuBar bar = new JMenuBar();\r\n final Action[] menuActions = {new NewItemAction(MENU_ITEM_STRINGS[i++]),\r\n new ExitAction(MENU_ITEM_STRINGS[i++], myFrame),\r\n new AboutAction(MENU_ITEM_STRINGS[i++], myFrame)};\r\n i = 0;\r\n\r\n final JMenu fileMenu = new JMenu(MENU_STRINGS[j++]);\r\n fileMenu.setMnemonic(KeyEvent.VK_F);\r\n fileMenu.add(menuActions[i++]);\r\n fileMenu.addSeparator();\r\n fileMenu.add(menuActions[i++]);\r\n\r\n final JMenu optionsMenu = new JMenu(MENU_STRINGS[j++]);\r\n optionsMenu.setMnemonic(KeyEvent.VK_O);\r\n\r\n final JMenu helpMenu = new JMenu(MENU_STRINGS[j++]);\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n helpMenu.add(menuActions[i++]);\r\n\r\n bar.add(fileMenu);\r\n bar.add(optionsMenu);\r\n bar.add(helpMenu);\r\n\r\n myFrame.setJMenuBar(bar);\r\n }", "private void addMenu(){\n //Where the GUI is created:\n \n Menu menu = new Menu(\"Menu\");\n MenuItem menuItem1 = new MenuItem(\"Lista de Libros\");\n MenuItem menuItem2 = new MenuItem(\"Nuevo\");\n\n menu.getItems().add(menuItem1);\n menu.getItems().add(menuItem2);\n \n menuItem1.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n cargarListaGeneradores( 2, biblioteca.getBiblioteca());\n }\n });\n \n menuItem2.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n addUIControls() ;\n }\n });\n \n menuBar.getMenus().add(menu);\n }", "@Override\r\n\tpublic void createMenu(Menu menu) {\n\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 }", "public void generateMenu(){\n menuBar = new JMenuBar();\n\n JMenu file = new JMenu(\"Datei\");\n JMenu tools = new JMenu(\"Werkzeuge\");\n JMenu help = new JMenu(\"Hilfe\");\n\n JMenuItem open = new JMenuItem(\"Öffnen \");\n JMenuItem save = new JMenuItem(\"Speichern \");\n JMenuItem exit = new JMenuItem(\"Beenden \");\n JMenuItem preferences = new JMenuItem(\"Einstellungen \");\n JMenuItem about = new JMenuItem(\"Über das Projekt \");\n\n\n file.add(open);\n file.add(save);\n file.addSeparator();\n file.add(exit);\n tools.add(preferences);\n help.add(about);\n\n menuBar.add(file);\n menuBar.add(tools);\n menuBar.add(help);\n }", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "protected void createContextMenuFor(StructuredViewer viewer) {\r\n\t\tMenuManager contextMenu = new MenuManager(\"#PopUp\");\r\n\t\tcontextMenu.add(new Separator(\"additions\"));\r\n\t\tcontextMenu.setRemoveAllWhenShown(true);\r\n\t\tcontextMenu.addMenuListener(this);\r\n\t\tMenu menu = contextMenu.createContextMenu(viewer.getControl());\r\n\t\tviewer.getControl().setMenu(menu);\r\n\t\tgetSite().registerContextMenu(contextMenu,\r\n\t\t\t\tnew UnwrappingSelectionProvider(viewer));\r\n\r\n\t\tint dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;\r\n\t\tTransfer[] transfers = new Transfer[] { LocalTransfer.getInstance() };\r\n\t\tviewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(\r\n\t\t\t\tviewer));\r\n\t\tviewer.addDropSupport(dndOperations, transfers,\r\n\t\t\t\tnew EditingDomainViewerDropAdapter(editingDomain, viewer));\r\n\t}", "public void initializeMenuItems() {\n menuItems = new LinkedHashMap<TestingOption, MenuDrawerItem>();\n menuItems.put(TestingOption.TESTING_OPTION, create(TestingOption.TESTING_OPTION, getResources().getString(R.string.testing_section).toUpperCase(), MenuDrawerItem.SECTION_TYPE));\n menuItems.put(TestingOption.ANNOTATION_OPTION, create(TestingOption.ANNOTATION_OPTION, getResources().getString(R.string.option_annotation_POI), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VIEW_SETTINGS_OPTION, create(TestingOption.MAP_VIEW_SETTINGS_OPTION, getResources().getString(R.string.option_map_view_settings), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_CACHE_OPTION, create(TestingOption.MAP_CACHE_OPTION, getResources().getString(R.string.option_map_cache), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.LAST_RENDERED_FRAME_OPTION, create(TestingOption.LAST_RENDERED_FRAME_OPTION, getResources().getString(R.string.option_last_rendered_frame), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, create(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, getResources().getString(R.string.option_ccp_animation_custom_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.BOUNDING_BOX_OPTION, create(TestingOption.BOUNDING_BOX_OPTION, getResources().getString(R.string.option_bounding_box), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.INTERNALIZATION_OPTION, create(TestingOption.INTERNALIZATION_OPTION, getResources().getString(R.string.option_internalization), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATE_OPTION, create(TestingOption.ANIMATE_OPTION, getResources().getString(R.string.option_animate), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_STYLE_OPTION, create(TestingOption.MAP_STYLE_OPTION, getResources().getString(R.string.option_map_style), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.SCALE_VIEW_OPTION, create(TestingOption.SCALE_VIEW_OPTION, getResources().getString(R.string.option_scale_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.CALLOUT_VIEW_OPTION, create(TestingOption.CALLOUT_VIEW_OPTION, getResources().getString(R.string.option_callout_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTING_OPTION, create(TestingOption.ROUTING_OPTION, getResources().getString(R.string.option_routing), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTE_WITH_POINTS, create(TestingOption.ROUTE_WITH_POINTS, getResources().getString(R.string.option_routing_with_points),MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VERSION_OPTION, create(TestingOption.MAP_VERSION_OPTION, getResources().getString(R.string.option_map_version_information), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.OVERLAYS_OPTION, create(TestingOption.OVERLAYS_OPTION, getResources().getString(R.string.option_overlays), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POI_TRACKER, create(TestingOption.POI_TRACKER, getResources().getString(R.string.option_poi_tracker), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POSITION_LOGGING_OPTION, create(TestingOption.POSITION_LOGGING_OPTION, getResources().getString(R.string.option_position_logging), MenuDrawerItem.ITEM_TYPE));\n\n list = new ArrayList<MenuDrawerItem>(menuItems.values());\n drawerList.setAdapter(new MenuDrawerAdapter(DebugMapActivity.this, R.layout.element_menu_drawer_item, list));\n drawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n }", "private void populateContextMenu(MPart part) {\n\t\tMPopupMenu pum = helpMeWith.findPopupMenu(part,\n\t\t\t\tEditorIdentities.EDITOR_POPUP_ID);\n\n\t\tif (pum != null) {\n\t\t\tpart.getMenus().remove(pum);\n\t\t}\n\n\t\tpum = createContectMenu();\n\t\tpart.getMenus().add(pum);\n\n\t\tif (pum != null) {\n\t\t\tif (createChildMenuManager != null) {\n\t\t\t\tpum.getChildren().add(\n\t\t\t\t\t\thelpMeWith.cloneMenu(createChildMenuManager));\n\t\t\t}\n\t\t\tif (createSiblingMenuManager != null) {\n\t\t\t\tpum.getChildren().add(\n\t\t\t\t\t\thelpMeWith.cloneMenu(createSiblingMenuManager));\n\t\t\t}\n\t\t\t// populateManager(pum, createChildActionsMap);\n\t\t\t// populateManager(pum, createSiblingActionsMap);\n\t\t\taddGlobalHandlers(pum);\n\t\t}\n\n\t\t// Update the registration to the EMenuService, as we are\n\t\t// otherwise not known.\n\t\tObject contribution = part.getObject();\n\t\tif (contribution instanceof EXTLibraryEditor) {\n\t\t\t((EXTLibraryEditor) contribution).updateContextMenuRegistration();\n\t\t}\n\n\t}", "private void initComponents() {\n\n jPopupMenu = new javax.swing.JPopupMenu();\n jMenuItemNewKeyFrame = new javax.swing.JMenuItem();\n jMenuItemNewTransition = new javax.swing.JMenuItem();\n jMenuItemPaste = new javax.swing.JMenuItem();\n\n jMenuItemNewKeyFrame.setText(\"New KeyFrame\");\n jMenuItemNewKeyFrame.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jMenuItemNewKeyFrameMouseReleased(evt);\n }\n });\n jPopupMenu.add(jMenuItemNewKeyFrame);\n\n jMenuItemNewTransition.setText(\"New Transition\");\n jMenuItemNewTransition.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jMenuItemNewTransitionMouseReleased(evt);\n }\n });\n jPopupMenu.add(jMenuItemNewTransition);\n\n jMenuItemPaste.setText(\"Paste\");\n jMenuItemPaste.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jMenuItemPasteMouseReleased(evt);\n }\n });\n jPopupMenu.add(jMenuItemPaste);\n\n setBackground(new java.awt.Color(255, 255, 255));\n setComponentPopupMenu(jPopupMenu);\n setOpaque(true);\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n formMousePressed(evt);\n }\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n formMouseClicked(evt);\n }\n });\n addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentResized(java.awt.event.ComponentEvent evt) {\n formComponentResized(evt);\n }\n });\n addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n formPropertyChange(evt);\n }\n });\n }", "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 void createMenu() {\n deleteMenuGroupError = false;\n createMenuGroupError = true;\n if (menu.createMenu()) {\n updateMenuError = false;\n deleteMenuError = false;\n createMenuError = true;\n } else {\n createMenuError = false;\n }\n }", "private void initMenuBar() {\r\n\t\t// file menu\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tfileMenu.setMnemonic(KeyEvent.VK_F);\r\n\t\tadd(fileMenu);\r\n\r\n\t\tJMenuItem fileNewMenuItem = new JMenuItem(new NewAction(parent, main));\r\n\t\tfileNewMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileNewMenuItem);\r\n\t\tJMenuItem fileOpenMenuItem = new JMenuItem(new OpenAction(parent, main));\r\n\t\tfileOpenMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileOpenMenuItem);\r\n\r\n\t\tJMenuItem fileSaveMenuItem = new JMenuItem(new SaveAction(main));\r\n\t\tfileSaveMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveMenuItem);\r\n\t\tJMenuItem fileSaveAsMenuItem = new JMenuItem(new SaveAsAction(main));\r\n\t\tfileSaveAsMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveAsMenuItem);\r\n\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.addSeparator();\r\n\r\n\t\tJMenuItem exitMenuItem = new JMenuItem(new ExitAction(main));\r\n\t\texitMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(exitMenuItem);\r\n\r\n\t\t// tools menu\r\n\t\tJMenu toolsMenu = new JMenu(\"Application\");\r\n\t\ttoolsMenu.setMnemonic(KeyEvent.VK_A);\r\n\t\tadd(toolsMenu);\r\n\r\n\t\tJMenuItem defineCategoryMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineCategoryAction());\r\n\t\tdefineCategoryMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_C, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineCategoryMenuItem);\r\n\t\tJMenuItem defineBehaviorNetworkMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineBehaviorNetworkAction());\r\n\t\tdefineBehaviorNetworkMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_B, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineBehaviorNetworkMenuItem);\r\n\t\tJMenuItem startSimulationMenuItem = new JMenuItem(\r\n\t\t\t\tnew StartSimulationAction(main));\r\n\t\tstartSimulationMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_E, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(startSimulationMenuItem);\r\n\r\n\t\t// help menu\r\n\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\thelpMenu.setMnemonic(KeyEvent.VK_H);\r\n\t\tadd(helpMenu);\r\n\r\n\t\tJMenuItem helpMenuItem = new JMenuItem(new HelpAction(parent));\r\n\t\thelpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\thelpMenu.add(helpMenuItem);\r\n\r\n\t\t// JCheckBoxMenuItem clock = new JCheckBoxMenuItem(new\r\n\t\t// ScheduleSaveAction(parent));\r\n\t\t// helpMenu.add(clock);\r\n\t\thelpMenu.addSeparator();\r\n\t\tJMenuItem showMemItem = new JMenuItem(new ShowMemAction(parent));\r\n\t\thelpMenu.add(showMemItem);\r\n\r\n\t\tJMenuItem aboutMenuItem = new JMenuItem(new AboutAction(parent));\r\n\t\thelpMenu.add(aboutMenuItem);\r\n\t}", "private void createMenu()\n\t{\n\t\tfileMenu = new JMenu(\"File\");\n\t\thelpMenu = new JMenu(\"Help\");\n\t\ttoolsMenu = new JMenu(\"Tools\");\n\t\t\n\t\tmenuBar = new JMenuBar();\n\t\t\n\t\texit = new JMenuItem(\"Exit\");\t\t\n\t\treadme = new JMenuItem(\"Readme\");\n\t\tabout = new JMenuItem(\"About\");\n\t\tsettings = new JMenuItem(\"Settings\");\n\t\t\t\t\n\t\tfileMenu.add (exit);\n\t\t\n\t\thelpMenu.add (readme);\n\t\thelpMenu.add (about);\t\n\t\t\n\t\ttoolsMenu.add (settings);\n\t\t\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(helpMenu);\t\t\n\t\t\t\t\n\t\tdefaultMenuBackground = menuBar.getBackground();\n\t\tdefaultMenuForeground = fileMenu.getForeground();\n\t\t\n\t}", "private void InitializeUI(){\n\t\t//Set up the menu items, which are differentiated by their IDs\n\t\tArrayList<MenuItem> values = new ArrayList<MenuItem>();\n\t\tMenuItem value = new MenuItem();\n\t\tvalue.setiD(0); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(1); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(2); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(3); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(4); values.add(value);\n\n MenuAdapter adapter = new MenuAdapter(this, R.layout.expandable_list_item3, values);\n \n // Assign adapter to List\n setListAdapter(adapter);\n \n //Set copyright information\n Calendar c = Calendar.getInstance();\n\t\tString year = String.valueOf(c.get(Calendar.YEAR));\n\t\t\n\t\t//Set up the copyright message which links to the author's linkedin page\n TextView lblCopyright = (TextView)findViewById(R.id.lblCopyright);\n lblCopyright.setText(getString(R.string.copyright) + year + \" \");\n \n TextView lblName = (TextView)findViewById(R.id.lblName);\n lblName.setText(Html.fromHtml(\"<a href=\\\"http://uk.linkedin.com/in/lekanbaruwa/\\\">\" + getString(R.string.name) + \"</a>\"));\n lblName.setMovementMethod(LinkMovementMethod.getInstance());\n\t}", "public void setUpEditMenu() {\n add(editMenu);\n\n //editMenu.add(cutItem);\n //editMenu.add(copyItem);\n //editMenu.add(pasteItem);\n //editMenu.addSeparator();\n clearAllItems.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n world.deleteAllEntities();\n }\n });\n editMenu.add(clearAllItems);\n editMenu.addSeparator();\n JMenuItem loadVectors = new JMenuItem(\"Load stimulus vectors...\");\n loadVectors.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n SFileChooser chooser = new SFileChooser(\".\", \"Load vectors\");\n File theFile = chooser.showOpenDialog();\n if (theFile != null) {\n double[][] vecs = Utils.getDoubleMatrix(theFile);\n world.loadStimulusVectors(vecs);\n }\n }\n });\n editMenu.add(loadVectors);\n\n }", "public Menu createToolsMenu();", "private void createContextMenu(){\r\n\t\tmenu = new JMenuBar();\r\n\t\tint ctrl;\r\n\t\tif(MAC)\r\n\t\t\tctrl = ActionEvent.META_MASK;\r\n\t\telse\r\n\t\t\tctrl = ActionEvent.CTRL_MASK;\r\n\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tnewMenu = new JMenuItem(\"New\");\r\n\t\tnewMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ctrl));\r\n\t\tnewMenu.addActionListener(this);\r\n\t\topenMenu = new JMenuItem(\"Open\");\r\n\t\topenMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ctrl));\r\n\t\topenMenu.addActionListener(this);\r\n\t\trecentMenu = new JMenu(\"Open Recent\");\r\n\t\tpopulateRecentMenu();\r\n\t\tsaveMenu = new JMenuItem(\"Save\");\r\n\t\tsaveMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ctrl));\r\n\t\tsaveMenu.addActionListener(this);\r\n\t\tsaveAsMenu = new JMenuItem(\"Save As...\");\r\n\t\tsaveAsMenu.addActionListener(this);\r\n\t\tfileMenu.add(newMenu);\r\n\t\tfileMenu.add(openMenu);\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.add(saveMenu);\r\n\t\tfileMenu.add(saveAsMenu);\r\n\r\n\t\tmenu.add(fileMenu);\r\n\r\n\t\tJMenu editMenu = new JMenu(\"Edit\");\r\n\t\tpreferencesMenu = new JMenuItem(\"Preferences\");\r\n\t\tpreferencesMenu.addActionListener(this);\r\n\t\teditMenu.add(preferencesMenu);\r\n\r\n\t\tmenu.add(editMenu);\r\n\r\n\t\tif(!MAC){\r\n\t\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\t\tJMenuItem aboutMenuI = new JMenuItem(\"About\");\r\n\r\n\t\t\taboutMenuI.addActionListener(new ActionListener(){\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tshowAboutMenu();\r\n\t\t\t\t}\t\t\r\n\t\t\t});\r\n\t\t\thelpMenu.add(aboutMenuI);\r\n\t\t\tmenu.add(helpMenu);\r\n\t\t}\r\n\t}", "private void setupMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\t// Build the first menu.\n\t\tJMenu menu = new JMenu(Messages.getString(\"Gui.File\")); //$NON-NLS-1$\n\t\tmenu.setMnemonic(KeyEvent.VK_A);\n\t\tmenuBar.add(menu);\n\n\t\t// a group of JMenuItems\n\t\tJMenuItem menuItem = new JMenuItem(openAction);\n\t\tmenu.add(menuItem);\n\n\t\t// menuItem = new JMenuItem(openHttpAction);\n\t\t// menu.add(menuItem);\n\n\t\t/*\n\t\t * menuItem = new JMenuItem(crudAction); menu.add(menuItem);\n\t\t */\n\n\t\tmenuItem = new JMenuItem(showLoggingFrameAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(quitAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuBar.add(menu);\n\n\t\tJMenu optionMenu = new JMenu(Messages.getString(\"Gui.Options\")); //$NON-NLS-1$\n\t\tmenuItem = new JCheckBoxMenuItem(baselineModeAction);\n\t\toptionMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(toggleButtonsAction);\n\t\toptionMenu.add(menuItem);\n\n\t\tmenuBar.add(optionMenu);\n\t\tJMenu buttonMenu = new JMenu(Messages.getString(\"Gui.Buttons\")); //$NON-NLS-1$\n\t\tmenuItem = new JMenuItem(wrongAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(attendingAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(independentAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(verbalAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(modelingAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(noAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuBar.add(buttonMenu);\n\t\tframe.setJMenuBar(menuBar);\n\n\t\tframe.pack();\n\n\t\tframe.setVisible(true);\n\t}", "private void buildFileMenu(){\n //Create a Save menu item\n saveItem = new JMenuItem(\"Save\");\n saveItem.setMnemonic(KeyEvent.VK_S);\n saveItem.addActionListener(new SaveListener());\n \n //Create a Load menu item\n loadItem = new JMenuItem(\"Load\");\n loadItem.setMnemonic(KeyEvent.VK_L);\n loadItem.addActionListener(new LoadListener());\n\n //Create an Exit menu item\n exitItem = new JMenuItem(\"Exit\");\n exitItem.setMnemonic(KeyEvent.VK_X);\n exitItem.addActionListener(new ExitListener());\n \n //Create a JMenu object for the file menu\n fileMenu = new JMenu(\"File\");\n fileMenu.setMnemonic(KeyEvent.VK_F);\n \n //Add the items to the menu\n fileMenu.add(saveItem);\n fileMenu.add(loadItem);\n fileMenu.add(exitItem);\n }", "private void createContextMenu() {\n\t\tMenuManager menuMgr = new MenuManager();\n\t\tmenuMgr.setRemoveAllWhenShown(true);\n\t\tmenuMgr.addMenuListener(new IMenuListener() {\n\t\t\tpublic void menuAboutToShow(IMenuManager mgr) {\n\t\t\t\tfillContextMenuMethodsTableViewer(mgr);\n\t\t\t}\n\n\t\t});\n\t\t// Create menu for methodsTableViewer\n\t\tMenu menu = menuMgr.createContextMenu(tableViewerLeft.getControl());\n\t\ttableViewerLeft.getControl().setMenu(menu);\n\n\t\t// Register menu for extension.\n\t\tgetSite().registerContextMenu(menuMgr, tableViewerLeft);\n\n\t\t// Create menu manager for methodsTableViewer for callsTableViewer\n\t\tMenuManager menuMgr1 = new MenuManager();\n\t\tmenuMgr1.setRemoveAllWhenShown(true);\n\t\tmenuMgr1.addMenuListener(new IMenuListener() {\n\t\t\tpublic void menuAboutToShow(IMenuManager mgr) {\n\t\t\t\tfillContextMenuCallsTableViewer(mgr);\n\t\t\t}\n\n\t\t});\n\t\t// Create menu for callsTableViewer\n\t\tMenu menu1 = menuMgr1.createContextMenu(tableViewerRight.getControl());\n\t\ttableViewerRight.getControl().setMenu(menu1);\n\n\t\t// Register menu for extension.\n\t\tgetSite().registerContextMenu(menuMgr1, tableViewerRight);\n\t}", "public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }", "public void populateMenuFields(){\n\t\t\t\n\t\t\tif (restaurant.getMenu().getItems().size()!=0)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<restaurant.getMenu().getItems().size();i++)\n\t\t\t\t{\n\t\t\t\t\tlistOfItemNames.add(restaurant.getMenu().getItemAt(i).getItemName());\n\t\t\t\t\tlistOfDescription.add(restaurant.getMenu().getItemAt(i).getItemDescription());\n\t\t\t\t\tlistOfPrice.add(restaurant.getMenu().getItemAt(i).getItemPrice()+\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void createMenuForGCodeRepository(IMenuManager contextMenu) {\r\n\t\tcontextMenu.add(new AddAllGCodeInQueueAction(executionService, rs274Service));\r\n\t}", "protected abstract void addMenuOptions();", "public static void setUpMenuItems( JMenu Menuu , JDataTree tree , \n IObserver IOBs ){\n \n int nSavedFiles = SharedData.getintProperty( \"NSavedFiles\",\"\"+NSavedFiles);\n if(nSavedFiles <=0)\n return;\n Preferences pref = null;\n try{\n pref = Preferences.userNodeForPackage( \n Class.forName( \"DataSetTools.retriever.Retriever\" ) );\n }catch( Exception s1 ){\n JOptionPane.showMessageDialog( null , \n \"No Preferences \" + s1 );\n return;\n }\n \n \n \n boolean shortMange = SharedData.getbooleanProperty(\"ShortSavedFileName\",\"false\");\n if( nSavedFiles > 0)\n Menuu.addSeparator();\n \n for( int i = 0 ; i < nSavedFiles ; i++ ){\n\n String filname = pref.get( \"File\" + i , NO_SUCH_FILE );\n \n if( (filname != NO_SUCH_FILE) &&( (new File(filname)).exists()) ){\n\n JMenuItem jmi = new JMenuItem( Mangle( filname,shortMange ) );\n Menuu.add( jmi );\n MyActionListener actList =new MyActionListener( tree , filname , \n IOBs ) ;\n jmi.addActionListener(actList );\n }\n }\n \n }", "private void createMenu() {\n\t\tJMenuBar mb = new JMenuBar();\n\t\tsetJMenuBar(mb);\n\t\tmb.setVisible(true);\n\t\t\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmb.add(menu);\n\t\t//mb.getComponent();\n\t\tmenu.add(new JMenuItem(\"Exit\"));\n\t\t\n\t\t\n\t}", "private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /** Obsluga zdarzen wcisniecia przycisku ustawien w menu */\n Ustawienia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if(Justawienia==null)\n Justawienia =new JUstawienia();\n Justawienia.setVisible(true);\n if (controller.timer!=null)\n controller.timer.stop();\n }\n });\n Opcje.add(Ustawienia);\n Opcje.addSeparator();\n JMenuItem Info = new JMenuItem(\"Info\");\n /** Obsluga zdarzen wcisniecia przycisku info w menu */\n Info.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n controller.WyswietlInfo();\n }\n });\n Opcje.add(Info);\n }", "private void createMenu(){\n \n menuBar = new JMenuBar();\n \n game = new JMenu(\"Rummy\");\n game.setMnemonic('R');\n \n newGame = new JMenuItem(\"New Game\");\n newGame.setMnemonic('N');\n newGame.addActionListener(menuListener);\n \n \n \n exit = new JMenuItem(\"Exit\");\n exit.setMnemonic('E');\n exit.addActionListener(menuListener); \n \n \n \n }", "private void createPopupMenu()\r\n\t{\r\n\t\tfinal Camera camera = SrvHal.getCamera();\r\n\t\tfinal PopupMenu menu = new PopupMenu();\r\n\t\tfinal MenuItem setColour = new MenuItem(\"Set colour to selected bin\");\r\n\r\n\t\tsetColour.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tcamera.getDetector().updateColourBinFromCoords();\r\n\t\t\t\tcamera.getDetector().setSampleLock(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenu.add(setColour);\r\n\r\n\t\tfinal Component canvas = this;\r\n\t\tadd(menu);\r\n\t\taddMouseListener(new MouseAdapter()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e)\r\n\t\t\t{\r\n\t\t\t\t// show the context menu when right-click detected within image bounds\r\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON3)\r\n\t\t\t\t{\r\n\t\t\t\t\tint x = e.getX();\r\n\t\t\t\t\tint y = e.getY();\r\n\t\t\t\t\tRectangle bounds = getOffsetBounds();\r\n\t\t\t\t\tif (bounds.contains(x, y))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcamera.getDetector().setSampleLock(true);\r\n\t\t\t\t\t\tmenu.show(canvas, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n public void onClick(View view) {\n PopupMenu popup = new PopupMenu(mContext, holder.tv_option_menu);\n //inflating menu from xml resource\n popup.inflate(R.menu.menu_options);\n //adding click listener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu1:\n shareStories(headlinesList.get(position).getUrl());\n return true;\n case R.id.menu2:\n //handle menu2 click\n db.insertNote(headlinesList.get(position));\n return true;\n default:\n return false;\n }\n }\n });\n //displaying the popup\n popup.show();\n\n }", "private void setUpMenu() {\n\t\tresideMenu = new ResideMenu(this);\n\t\tresideMenu.setBackground(R.drawable.menu_background);\n\t\tresideMenu.attachToActivity(this);\n\t\tresideMenu.setMenuListener(menuListener);\n\t\t// valid scale factor is between 0.0f and 1.0f. leftmenu'width is\n\t\t// 150dip.\n\t\tresideMenu.setScaleValue(0.6f);\n\n\t\t// create menu items;\n\t\titemGame = new ResideMenuItem(this, R.drawable.icon_game,\n\t\t\t\tgetResources().getString(R.string.strGame));\n\t\titemBook = new ResideMenuItem(this, R.drawable.icon_book,\n\t\t\t\tgetResources().getString(R.string.strBook));\n\t\titemNews = new ResideMenuItem(this, R.drawable.icon_news,\n\t\t\t\tgetResources().getString(R.string.strNews));\n\t\t// itemSettings = new ResideMenuItem(this, R.drawable.icon_setting,\n\t\t// getResources().getString(R.string.strSetting));\n\t\titemLogin = new ResideMenuItem(this, R.drawable.icon_share,\n\t\t\t\tgetResources().getString(R.string.strShare));\n\t\titemBookPDF = new ResideMenuItem(this, R.drawable.icon_bookpdf,\n\t\t\t\tgetResources().getString(R.string.strBookPDF));\n\t\titemMore = new ResideMenuItem(this, R.drawable.icon_more,\n\t\t\t\tgetResources().getString(R.string.strMore));\n\n\t\titemGame.setOnClickListener(this);\n\t\titemBook.setOnClickListener(this);\n\t\titemNews.setOnClickListener(this);\n\t\t// itemSettings.setOnClickListener(this);\n\t\titemBookPDF.setOnClickListener(this);\n\t\titemMore.setOnClickListener(this);\n\t\titemLogin.setOnClickListener(this);\n\n\t\tresideMenu.addMenuItem(itemBookPDF, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemBook, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemNews, ResideMenu.DIRECTION_LEFT);\n\t\t// resideMenu.addMenuItem(itemSettings, ResideMenu.DIRECTION_RIGHT);\n\n\t\tresideMenu.addMenuItem(itemGame, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemLogin, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemMore, ResideMenu.DIRECTION_RIGHT);\n\n\t\t// You can disable a direction by setting ->\n\t\t// resideMenu.setSwipeDirectionDisable(ResideMenu.DIRECTION_RIGHT);\n\n\t\tfindViewById(R.id.title_bar_left_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_LEFT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tfindViewById(R.id.title_bar_right_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_RIGHT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "private static JMenuBar createMenu() {\r\n JMenuBar mb = new JMenuBar();\r\n JMenu menu = new JMenu(\"File\");\r\n JMenuItem item = new JMenuItem(\"Save\");\r\n item.addActionListener((ActionEvent evt) -> {\r\n saveActionPerformed();\r\n });\r\n menu.add(item);\r\n mb.add(menu);\r\n\r\n menu = new JMenu(\"Help\");\r\n item = new JMenuItem(\"Show how-to\");\r\n item.addActionListener((ActionEvent evt) -> {\r\n showHelp();\r\n });\r\n menu.add(item);\r\n\r\n mb.add(menu);\r\n\r\n return mb;\r\n }", "private void initializeMenu() {\n menu = new Menu(parent.getShell());\n MenuItem item1 = new MenuItem(menu, SWT.NONE);\n item1.setText(Resources.getMessage(\"LatticeView.9\")); //$NON-NLS-1$\n item1.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n model.getClipboard().addToClipboard(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.CLIPBOARD, selectedNode));\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n \n MenuItem item2 = new MenuItem(menu, SWT.NONE);\n item2.setText(Resources.getMessage(\"LatticeView.10\")); //$NON-NLS-1$\n item2.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n controller.actionApplySelectedTransformation();\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n }", "public void list_of_menu_items() {\n\t\tdriver.findElement(open_menu_link).click();\n\t}", "private void makeUtilitiesMenu() {\r\n\t\tJMenu utilitiesMnu = new JMenu(\"Utilidades\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Reportes\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Reportes\",\r\n\t\t\t\t\timageLoader.getImage(\"reports.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'r',\r\n\t\t\t\t\t\"Ver los reportes del sistema\", null,\r\n\t\t\t\t\tReports.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"ConsultarPrecios\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Consultar Precios\",\r\n\t\t\t\t\timageLoader.getImage(\"money.gif\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'p',\r\n\t\t\t\t\t\"Consultar los precios de los productos\", null,\r\n\t\t\t\t\tPriceRead.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Calculadora\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Calculadora Impuesto\",\r\n\t\t\t\t\timageLoader.getImage(\"pc.gif\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'c',\r\n\t\t\t\t\t\"Calculadora de impuesto\", null, Calculator.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tutilitiesMnu.addSeparator();\r\n\t\tif (StoreCore.getAccess(\"Categorias\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Categorias Inventario\",\r\n\t\t\t\t\timageLoader.getImage(\"group.gif\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'i',\r\n\t\t\t\t\t\"Manejar las categorias del inventario\", null, Groups.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Impuestos\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Impuestos\");\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 't',\r\n\t\t\t\t\t\"Manejar el listado de impuestos\", null, Tax.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Ciudades\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Ciudades\");\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'u',\r\n\t\t\t\t\t\"Manejar el listado de ciudades\", null, City.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tutilitiesMnu.setMnemonic('u');\r\n\t\t\tadd(utilitiesMnu);\r\n\t\t}\r\n\t}", "private void initComponents() {\r\n jPopupMenuCrosstabReporteElement = new javax.swing.JPopupMenu();\r\n jMenuItemElementProperties = new javax.swing.JMenuItem();\r\n jMenuItemCrosstabProperties = new javax.swing.JMenuItem();\r\n jMenuItemCellProperties = new javax.swing.JMenuItem();\r\n jCheckBoxMenuItemDefaultCellEdit = new javax.swing.JCheckBoxMenuItem();\r\n jSeparator1 = new javax.swing.JSeparator();\r\n jMenuItemCut = new javax.swing.JMenuItem();\r\n jMenuItemCopy = new javax.swing.JMenuItem();\r\n jMenuItemPaste = new javax.swing.JMenuItem();\r\n jMenuItemDelete = new javax.swing.JMenuItem();\r\n jSeparator3 = new javax.swing.JSeparator();\r\n jMenuItemCopyStyle = new javax.swing.JMenuItem();\r\n jMenuItemPasteStyle = new javax.swing.JMenuItem();\r\n jMenuItemTransformStaticText = new javax.swing.JMenuItem();\r\n jMenuItemPattern = new javax.swing.JMenuItem();\r\n jSeparator4 = new javax.swing.JSeparator();\r\n jPopupMenuCrosstab = new javax.swing.JPopupMenu();\r\n jMenuItemCrosstabProperties1 = new javax.swing.JMenuItem();\r\n jMenuItemCellProperties1 = new javax.swing.JMenuItem();\r\n jCheckBoxMenuItemDefaultCellEdit1 = new javax.swing.JCheckBoxMenuItem();\r\n jMenuItemPaste1 = new javax.swing.JMenuItem();\r\n\r\n jMenuItemElementProperties.setText(it.businesslogic.ireport.util.I18n.getString(\"elementProperties\",\"Element properties\"));\r\n jMenuItemElementProperties.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemElementPropertiesActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemElementProperties);\r\n\r\n jMenuItemCrosstabProperties.setText(\"Crosstab properties\");\r\n jMenuItemCrosstabProperties.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCrosstabPropertiesActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemCrosstabProperties);\r\n\r\n jMenuItemCellProperties.setText(\"Cell properties\");\r\n jMenuItemCellProperties.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCellPropertiesActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemCellProperties);\r\n\r\n jCheckBoxMenuItemDefaultCellEdit.setText(\"Edit When-No-Data default cell\");\r\n jCheckBoxMenuItemDefaultCellEdit.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jCheckBoxMenuItemDefaultCellEditActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jCheckBoxMenuItemDefaultCellEdit);\r\n\r\n jPopupMenuCrosstabReporteElement.add(jSeparator1);\r\n\r\n jMenuItemCut.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/cut.png\")));\r\n jMenuItemCut.setText(\"Cut\");\r\n jMenuItemCut.setEnabled(false);\r\n jMenuItemCut.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCutActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemCut);\r\n\r\n jMenuItemCopy.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/copy.png\")));\r\n jMenuItemCopy.setText(\"Copy\");\r\n jMenuItemCopy.setEnabled(false);\r\n jMenuItemCopy.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCopyActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemCopy);\r\n\r\n jMenuItemPaste.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/paste.png\")));\r\n jMenuItemPaste.setText(\"Paste\");\r\n jMenuItemPaste.setEnabled(false);\r\n jMenuItemPaste.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemPasteActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemPaste);\r\n\r\n jMenuItemDelete.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/delete.png\")));\r\n jMenuItemDelete.setText(\"Delete\");\r\n jMenuItemDelete.setEnabled(false);\r\n jMenuItemDelete.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemDeleteActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemDelete);\r\n\r\n jPopupMenuCrosstabReporteElement.add(jSeparator3);\r\n\r\n jMenuItemCopyStyle.setEnabled(false);\r\n jMenuItemCopyStyle.setLabel(\"Copy style\");\r\n jMenuItemCopyStyle.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCopyStyleActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemCopyStyle);\r\n\r\n jMenuItemPasteStyle.setEnabled(false);\r\n jMenuItemPasteStyle.setLabel(\"Paste style\");\r\n jMenuItemPasteStyle.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemPasteStyleActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemPasteStyle);\r\n\r\n jMenuItemTransformStaticText.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F3, 0));\r\n jMenuItemTransformStaticText.setLabel(\"Transform in Textfield\");\r\n jMenuItemTransformStaticText.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemTransformStaticTextActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemTransformStaticText);\r\n\r\n jMenuItemPattern.setText(\"Field pattern\");\r\n jMenuItemPattern.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemPatternActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstabReporteElement.add(jMenuItemPattern);\r\n\r\n jPopupMenuCrosstabReporteElement.add(jSeparator4);\r\n\r\n jMenuItemCrosstabProperties1.setText(\"Crosstab properties\");\r\n jMenuItemCrosstabProperties1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCrosstabPropertiesActionPerformed1(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstab.add(jMenuItemCrosstabProperties1);\r\n\r\n jMenuItemCellProperties1.setText(\"Cell properties\");\r\n jMenuItemCellProperties1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemCellPropertiesActionPerformed1(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstab.add(jMenuItemCellProperties1);\r\n\r\n jCheckBoxMenuItemDefaultCellEdit1.setText(\"Edit When-No-Data default cell\");\r\n jCheckBoxMenuItemDefaultCellEdit1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jCheckBoxMenuItemDefaultCellEdit1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstab.add(jCheckBoxMenuItemDefaultCellEdit1);\r\n\r\n jMenuItemPaste1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/paste.png\")));\r\n jMenuItemPaste1.setText(\"Paste\");\r\n jMenuItemPaste1.setEnabled(false);\r\n jMenuItemPaste1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItemPasteActionPerformed1(evt);\r\n }\r\n });\r\n\r\n jPopupMenuCrosstab.add(jMenuItemPaste1);\r\n\r\n setLayout(null);\r\n\r\n setBackground(new java.awt.Color(204, 204, 204));\r\n setFocusCycleRoot(true);\r\n addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\r\n public void mouseDragged(java.awt.event.MouseEvent evt) {\r\n formMouseDragged(evt);\r\n }\r\n public void mouseMoved(java.awt.event.MouseEvent evt) {\r\n formMouseMoved(evt);\r\n }\r\n });\r\n addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n formFocusGained(evt);\r\n }\r\n });\r\n addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n formKeyPressed(evt);\r\n }\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n formKeyTyped(evt);\r\n }\r\n });\r\n addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n formMouseClicked(evt);\r\n }\r\n public void mousePressed(java.awt.event.MouseEvent evt) {\r\n formMousePressed(evt);\r\n }\r\n public void mouseReleased(java.awt.event.MouseEvent evt) {\r\n formMouseReleased(evt);\r\n }\r\n });\r\n\r\n }", "private void createContextMenu() {\r\n\r\n\t\tfinal MenuManager menuMgr = new MenuManager();\r\n\r\n\t\tmenuMgr.setRemoveAllWhenShown(true);\r\n\r\n\t\tmenuMgr.addMenuListener(new IMenuListener() {\r\n\t\t\tpublic void menuAboutToShow(final IMenuManager menuMgr2) {\r\n\t\t\t\tfillContextMenu(menuMgr2);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tfinal Table table = _photoViewer.getTable();\r\n\r\n//\t\tif (isRecreate) {\r\n//\r\n//\t\t\t/*\r\n//\t\t\t * when a tooltip is reparented, the context menu must be recreated otherwise an\r\n//\t\t\t * exception is thown that the menu shell has the wrong parent\r\n//\t\t\t */\r\n//\r\n//\t\t\tmenuMgr.dispose();\r\n//\t\t}\r\n\r\n\t\tfinal Menu tableContextMenu = menuMgr.createContextMenu(table);\r\n\r\n\t\ttable.setMenu(tableContextMenu);\r\n\r\n\t\t_columnManager.createHeaderContextMenu(table, tableContextMenu);\r\n\t}", "@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}", "public void createPopupWindow() {\r\n \t//\r\n }", "public static void registerMenuItems(SIPCommMenu parentMenu)\n {\n if(protocolProviderListener == null)\n {\n protocolProviderListener = new ProtocolProviderListener(parentMenu);\n GuiActivator.bundleContext\n .addServiceListener(protocolProviderListener);\n }\n\n for (ProtocolProviderFactory providerFactory : GuiActivator\n .getProtocolProviderFactories().values())\n {\n for (AccountID accountID : providerFactory.getRegisteredAccounts())\n {\n ServiceReference<ProtocolProviderService> serRef\n = providerFactory.getProviderForAccount(accountID);\n ProtocolProviderService protocolProvider\n = GuiActivator.bundleContext.getService(serRef);\n\n addAccountInternal(protocolProvider, parentMenu);\n }\n }\n\n // if we are in disabled menu mode and we have only one item\n // change its name (like global auto answer)\n if( ConfigurationUtils.isAutoAnswerDisableSubmenu()\n && getAutoAnswerItemCount(parentMenu) == 1)\n {\n updateItem(getAutoAnswerItem(parentMenu, 0), true);\n }\n }", "private JMenuBar createbar(){\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\t//Add a JMenu\n\t\tJMenu c = new JMenu(\"Create\");\n\t\tJMenu m = new JMenu(\"Manipulate\"); \n\t\tJMenu o = new JMenu(\"Other\");\n\n\t\tmenuBar.add(c);\n\t\tmenuBar.add(m);\n\t\tmenuBar.add(o);\n\n\t\t//Create menu\n\t\tJMenuItem cPyramid = new JMenuItem(\"Pyramid\");\n\t\tJMenuItem cSquare = new JMenuItem(\"Square\");\n\t\tJMenuItem cStar = new JMenuItem(\"Star\");\n\t\tJMenuItem cSphere = new JMenuItem(\"Sphere\");\n\t\tJMenuItem cCube = new JMenuItem(\"Cube\");\n\t\tJMenuItem cLight = new JMenuItem(\"Light\");\n\n\t\tc.add(cPyramid);\n\t\tc.add(cSquare);\n\t\tc.add(cStar);\n\t\tc.add(cSphere);\n\t\tc.add(cCube);\n\t\tc.add(cLight);\n\t\t\n\n\t\t//Manipulate menu\n\t\tJMenuItem mModify = new JMenuItem(\"Modify\");\n\t\tJMenuItem mDelete = new JMenuItem(\"Delete\");\n\n\t\tm.add(mModify);\n\t\tm.add(mDelete);\n\n\t\tJMenuItem oDeleteAll = new JMenuItem(\"Delete All (lights remain but will be overwritten)\"); \n\t\tJMenuItem oPrint = new JMenuItem(\"Print Structure\");\n\n\t\to.add(oPrint);\n\t\to.add(oDeleteAll);\n\n\n\t\tcPyramid.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfigure_id+=1;\n\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, Fig_type.Pyramid, figure_id);\n\t\t\t\tif (cdialog.getAnswer()!=null)\n\t\t\t\t\tdraw.figurelist.add(cdialog.getAnswer());\n\t\t\t}\n\n\t\t});\n\n\t\tcSquare.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfigure_id+=1;\n\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, Fig_type.Square, figure_id);\n\t\t\t\tif (cdialog.getAnswer()!=null)\n\t\t\t\t\tdraw.figurelist.add(cdialog.getAnswer());\n\t\t\t}\n\t\t});\n\n\t\tcStar.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfigure_id+=1;\n\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, Fig_type.Star, figure_id);\n\t\t\t\tif (cdialog.getAnswer()!=null)\n\t\t\t\t\tdraw.figurelist.add(cdialog.getAnswer());\n\t\t\t}\n\t\t});\n\n\t\tcSphere.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfigure_id+=1;\n\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, Fig_type.Sphere, figure_id);\n\t\t\t\tif (cdialog.getAnswer()!=null)\n\t\t\t\t\tdraw.figurelist.add(cdialog.getAnswer());\n\t\t\t}\n\t\t});\n\t\t\n\t\tcCube.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfigure_id+=1;\n\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, Fig_type.Cube, figure_id);\n\t\t\t\tif (cdialog.getAnswer()!=null)\n\t\t\t\t\tdraw.figurelist.add(cdialog.getAnswer());\n\t\t\t}\n\t\t});\n\n\t\tcLight.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfigure_id+=1;\n\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, Fig_type.Light, figure_id);\n\t\t\t\tif (cdialog.getAnswer()!=null)\n\t\t\t\t\tdraw.figurelist.add(cdialog.getAnswer());\n\t\t\t}\n\t\t});\n\n\t\tmModify.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfor (Figure_deployment_type fig: draw.figurelist) {\n\t\t\t\t\tif (fig.getId()==draw.picked_figure){\n\t\t\t\t\t\tCustomCreateDialog cdialog = new CustomCreateDialog(frame, true, fig.type, draw.picked_figure);\n\t\t\t\t\t\tif (cdialog.getAnswer()!=null){\n\t\t\t\t\t\t\tfig.modify(cdialog.getModify());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tmDelete.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tint n =-1;\n\t\t\t\tfor (int i = 0; i < draw.figurelist.size(); i++) {\n\t\t\t\t\tif(draw.figurelist.get(i).getId()==draw.picked_figure)\n\t\t\t\t\t\tn=i;\n\t\t\t\t}\n\t\t\t\tif (n!=-1)\n\t\t\t\tdraw.figurelist.remove(n);\n\t\t\t}\n\t\t});\n\n\t\toDeleteAll.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdraw.figurelist.clear();\n\t\t\t}\n\t\t});\n\n\t\toPrint.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nArrayList<Figure_deployment_type> : {\");\n\t\t\t\tfor (Figure_deployment_type fig : draw.figurelist) {\n\t\t\t\t\tSystem.out.print(\"[ \");\n\t\t\t\t\tSystem.out.print(fig.toString());\n\t\t\t\t\tSystem.out.println(\" ]\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"}\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\treturn menuBar;\n\t}", "protected void createMenus(Activity activity, boolean isEntryPoint){\n \t\t\n \t\t//myTts = new TextToSpeechBeta(this, ttsInitListener);\n \t\t\n \t\tthis.isEntryPoint = isEntryPoint;\n \t\tthis.activity = activity;\n \t\t\n \t\tApplicationData applicationData = SplashActivity.getApplicationData();\n \t\tActiveMenus activeMenus = applicationData.getMenu();\n \t\t\n \t\t//TOP MENU\n \t\tif(activeMenus.getTopMenu() != null){\n \t\t\tRelativeLayout topLayout = (RelativeLayout) findViewById(R.id.topLayout);\n \t\t\tcreateCurrentMenu(topLayout, activeMenus.getTopMenu());\n \t\t}\n \t\t\n \t\t//BOTTOM MENU\n \t\tRelativeLayout bottomLayout = (RelativeLayout) findViewById(R.id.bottomLayout);\t\n \t\tif(activeMenus.getBottomMenu() != null){\n \t\t\tcreateCurrentMenu(bottomLayout, activeMenus.getBottomMenu());\n \t\t}else{\n \t\t\tbottomLayout.setVisibility(0);\n \t\t}\n \t\t\n \t\t//CONTEXT MENU\n \t\tif(activeMenus.getContextMenu() != null){\n \t\t\tthis.contextMenuXmlFileName = activeMenus.getContextMenu();\n \t\t}\n \t\t\n \t\t//SIDE MENU\n \t\tif(activeMenus.getSideMenu() != null){\n \t\t\tinitializeSideMenuList(activeMenus.getSideMenu());\n \t\t}\n \t}", "protected JMenuBar createDropDownMenu()\r\n {\r\n\r\n // Setup menu Items String values that are shared\r\n setSharedMenuItemStrings();\r\n // Make a new Action Trigger, as it is generic and used in many places.\r\n ActionTrigger actionTrigger = new ActionTrigger();\r\n // Add\tall the Horizontal elements\r\n JMenuBar result = new JMenuBar();\r\n\r\n // to the button group - Set the Fraction Decimal Visible as being\r\n // selected below.\r\n com.hgutil.data.Fraction.setShowAsFraction(false);\r\n\r\n // Create two individual check button menu items, and add\r\n ButtonGroup fractionGroup = new ButtonGroup();\r\n HGMenuItem fractionCheck =\r\n new HGMenuItem(\r\n HGMenuListItem.JCHECKBOXMNUITEM,\r\n getString(\"WatchListTableModule.edit_menu.fractions_on_text\"),\r\n fractionCmd,\r\n null,\r\n KeyEvent.VK_F,\r\n InputEvent.CTRL_MASK,\r\n fractionGroup,\r\n false);\r\n HGMenuItem decimalCheck =\r\n new HGMenuItem(\r\n HGMenuListItem.JCHECKBOXMNUITEM,\r\n getString(\"WatchListTableModule.edit_menu.decimals_on_text\"),\r\n decimalCmd,\r\n null,\r\n KeyEvent.VK_D,\r\n InputEvent.CTRL_MASK,\r\n fractionGroup,\r\n true);\r\n JMenu viewColumnNumbers =\r\n HGMenuItem.makeMenu(\r\n getString(\"WatchListTableModule.edit_menu.view_columns_fields_as\"),\r\n 'C',\r\n new Object[] { fractionCheck, decimalCheck },\r\n actionTrigger);\r\n\r\n // Lets build a Menu List of Columns that we can either \r\n // view or not view\r\n // Build Check Boxes, for all Items, except the Symbol Column\r\n HGMenuItem[] columnsChecks = new HGMenuItem[StockData.columns.length];\r\n for (int k = 1; k < StockData.columns.length; k++)\r\n {\r\n columnsChecks[k] =\r\n new HGMenuItem(\r\n HGMenuListItem.JCHECKBOXMNUITEM,\r\n StockData.columns[k].getTitle(),\r\n null,\r\n null,\r\n 0,\r\n 0,\r\n null,\r\n true,\r\n new ColumnKeeper(StockData.columns[k]));\r\n }\r\n\r\n // Add in the Viewing menu\r\n JMenu viewColumns =\r\n HGMenuItem.makeMenu(getString(\"WatchListTableModule.edit_menu.view_columns_text\"), 'V', columnsChecks, null);\r\n\r\n JMenu insertRows =\r\n HGMenuItem.makeMenu(\r\n getString(\"WatchListTableModule.edit_menu.view_insert_row_text\"),\r\n 'I',\r\n new Object[] { insertBeforeCmd, insertAfterCmd },\r\n actionTrigger);\r\n\r\n JMenu editMenu = null;\r\n editMenu =\r\n HGMenuItem.makeMenu(\r\n getString(\"WatchListTableModule.edit_menu.title\"),\r\n 'E',\r\n new Object[] {\r\n viewColumns,\r\n viewColumnNumbers,\r\n null,\r\n insertRows,\r\n deleteRowCmd,\r\n null,\r\n addNewWatchListCmd,\r\n deleteWatchListCmd,\r\n renameListCmd,\r\n null,\r\n printListCmd,\r\n null,\r\n tableProps },\r\n actionTrigger);\r\n\r\n // Add the Edit Menu to the result set the Alignment and return the MenuBar\r\n result.add(editMenu);\r\n result.setAlignmentX(JMenuBar.LEFT_ALIGNMENT);\r\n return result;\r\n }", "public void createActions(IMenuManager manager)\r\n\t{\r\n\t\tEditPart ep = main.getViewer().findObjectAt(clickLocation);\r\n\r\n\t\tif (ep instanceof RootEditPart)\r\n\t\t{\r\n\t\t\t// GRAPH POPUP\r\n\r\n\t\t\tboolean sif = false;\r\n\t\t\tboolean tcgasif = false;\r\n\t\t\tboolean basicsif = false;\r\n\t\t\tObject o = ((ChsRootEditPart) ep.getChildren().get(0)).getModel();\r\n\t\t\tif (o instanceof BasicSIFGraph || o instanceof org.gvt.model.sifl3.SIFGraph)\r\n\t\t\t{\r\n\t\t\t\tsif = true;\r\n\t\t\t\tbasicsif = o instanceof BasicSIFGraph;\r\n\r\n\t\t\t\ttcgasif = TCGASIFAction.okToRun(main, false);\r\n\t\t\t}\r\n\r\n\t\t\tif (tcgasif)\r\n\t\t\t{\r\n\t\t\t\tmanager.add(new ShowMutexGroupsAction(main));\r\n\t\t\t\tmanager.add(new HighlightTCGACaseAction(main));\r\n\t\t\t\tmanager.add(new UpdateTCGASIFForACaseAction(main));\r\n\t\t\t\tmanager.add(new LoadTCGASpecificReactionsAction(main));\r\n\t\t\t\tmanager.add(new Separator());\r\n\t\t\t}\r\n\r\n\t\t\tif (basicsif)\r\n\t\t\t{\r\n\t\t\t\tmanager.add(new ShowFormatSeriesAction(main));\r\n\t\t\t\tmanager.add(new Separator());\r\n\t\t\t}\r\n\r\n\t\t\tif (sif)\r\n\t\t\t{\r\n\t\t\t\tmanager.add(new ShowDruggableAction(main));\r\n\t\t\t\tmanager.add(new HighlightCOSMICGenesActions(main));\r\n\t\t\t\tmanager.add(new Separator());\r\n\t\t\t}\r\n\r\n\t\t\tClosePathwayAction action = new ClosePathwayAction(main);\r\n\t\t\tif (sif) action.setText(\"Close Graph\");\r\n\t\t\tmanager.add(action);\r\n\r\n\t\t\tif (!sif)\r\n\t\t\t{\r\n\t\t\t\tmanager.add(new DuplicatePathwayAction(main));\r\n\t\t\t\tmanager.add(new DeletePathwayAction(main));\r\n\t\t\t\tmanager.add(new UpdatePathwayAction(main, false));\r\n\t\t\t}\r\n\t\t\tmanager.add(new Separator());\r\n\r\n\t\t\tif (ChisioMain.cBioPortalAccessor != null)\r\n\t\t\t{\r\n\t\t\t\tmanager.add(new FetchFromCBioPortalAction(main,\r\n\t\t\t\t\tFetchFromCBioPortalAction.CURRENT_STUDY));\r\n\t\t\t\tmanager.add(new Separator());\r\n\t\t\t}\r\n\r\n\t\t\tmanager.add(new ZoomAction(main, 1, null));//clickLocation));\r\n\t\t\tmanager.add(new ZoomAction(main, -1, null));//clickLocation));\r\n\t\t\tmanager.add(new Separator());\r\n\t\t\tmanager.add(new RemoveHighlightsAction(main));\r\n\t\t\tmanager.add(new InspectorAction(main, true));\r\n\t\t\tmanager.add(new Separator());\r\n\t\t\tmanager.add(new LayoutInspectorAction(main));\r\n\t\t\tmain.getViewer().select(ep);\r\n\t\t}\r\n\t\telse if (ep instanceof NodeEditPart)\r\n\t\t{\r\n\t\t\t// NODE-COMPOUND POPUP\r\n\r\n\t\t\tObject o = ep.getModel();\r\n\t\t\tif ((o instanceof BasicSIFGroup && !((BasicSIFGroup) o).getMediators().isEmpty()) ||\r\n\t\t\t\t(o instanceof SIFGroup && !((SIFGroup) o).getMediators().isEmpty()))\r\n\t\t\t{\r\n\t\t\t\tQueryPCGetAction query = new QueryPCGetAction(main, true, QueryPCAction.QueryLocation.PC_MECH);\r\n\t\t\t\tquery.setText(\"Detailed View\");\r\n\t\t\t\tmanager.add(query);\r\n\t\t\t\tmanager.add(new Separator());\r\n\t\t\t}\r\n\r\n\t\t\tExperimentData data = DataLegendAction.getData((NodeModel) o, main);\r\n\t\t\tif (data != null)\r\n\t\t\t\tmanager.add(new DataLegendAction(main, data));\r\n\r\n\t\t\tmanager.add(new HighlightSelectedAction(main));\r\n\t\t\tmanager.add(new RemoveHighlightFromSelectedAction(main));\r\n\t\t\tmanager.add(new DeleteAction(main));\r\n\t\t\tmanager.add(new InspectorAction(main, false));\r\n\t\t\tmanager.add(new Separator());\r\n\r\n\t\t\tMenuManager localQueryMenu = new MenuManager(\"&Local Query\");\r\n\t\t\tlocalQueryMenu.add(new LocalNeighborhoodQueryAction(main, true));\r\n\t\t\tlocalQueryMenu.add(new LocalGoIQueryAction(main, true));\r\n\t\t\tlocalQueryMenu.add(new LocalCommonStreamQueryAction(main, true));\r\n\t\t\tmanager.add(localQueryMenu);\r\n\r\n\t\t\tMenuManager pcQueryMenu = new MenuManager(\"&Pathway Commons Query (Level 3)\");\r\n\t\t\tMenuManager neighMenu = new MenuManager(\"&Neighborhood\");\r\n\t\t\tneighMenu.add(new QueryPCNeighborsAction(main, false, true, QueryPCAction.QueryLocation.PC_MECH));\r\n\t\t\tneighMenu.add(new QueryPCNeighborsAction(main, true, false, QueryPCAction.QueryLocation.PC_MECH));\r\n\t\t\tneighMenu.add(new QueryPCNeighborsAction(main, true, true, QueryPCAction.QueryLocation.PC_MECH));\r\n\t\t\tpcQueryMenu.add(neighMenu);\r\n\t\t\tpcQueryMenu.add(new QueryPCPathsBetweenAction(main, true, QueryPCAction.QueryLocation.PC_MECH));\r\n\t\t\tMenuManager commStreamMenu = new MenuManager(\"&Common Stream\");\r\n\t\t\tcommStreamMenu.add(new QueryPCCommonStreamAction(main, true, QueryPCAction.QueryLocation.PC_MECH));\r\n\t\t\tcommStreamMenu.add(new QueryPCCommonStreamAction(main, false, QueryPCAction.QueryLocation.PC_MECH));\r\n\t\t\tpcQueryMenu.add(commStreamMenu);\r\n manager.add(pcQueryMenu);\r\n\r\n NodeEditPart nep = (NodeEditPart) ep;\r\n Object model = nep.getModel();\r\n CBioPortalAccessor portalAccessor = ChisioMain.cBioPortalAccessor;\r\n\r\n if( (model instanceof Actor || model instanceof BasicSIFNode || model instanceof SIFNode)\r\n && main.hasExperimentData(ExperimentData.CBIOPORTAL_ALTERATION_DATA)\r\n && portalAccessor != null\r\n && !portalAccessor.getCurrentGeneticProfiles().isEmpty() )\r\n {\r\n manager.add(new Separator());\r\n manager.add(new CBioPortalDataStatisticsAction(main));\r\n }\r\n }\r\n\t\telse if (ep instanceof ChsEdgeEditPart)\r\n\t\t{\r\n\t\t\t// EDGE POPUP\r\n\r\n\t\t\tObject o = ep.getModel();\r\n\t\t\tif (o instanceof BasicSIFEdge || o instanceof SIFEdge)\r\n\t\t\t{\r\n\t\t\t\tQueryPCGetAction query = new QueryPCGetAction(main, true, QueryPCAction.QueryLocation.PC_MECH);\r\n\t\t\t\tquery.setText(\"Detailed View\");\r\n\t\t\t\tmanager.add(query);\r\n\t\t\t\tmanager.add(new Separator());\r\n\t\t\t}\r\n\r\n\t\t\tmanager.add(new HighlightSelectedAction(main));\r\n\t\t\tmanager.add(new RemoveHighlightFromSelectedAction(main));\r\n\t\t\tmanager.add(new DeleteAction(main));\r\n\t\t\tmanager.add(new InspectorAction(main, false));\r\n\t\t}\r\n\t}", "private void addFormatItemsToMenu(javax.swing.JComponent m){\r\n\r\n\r\n jMenuItemFillCell = new javax.swing.JMenuItem();\r\n jMenuItemFillCell.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_maximise.png\")));\r\n jMenuItemFillCell.setText(it.businesslogic.ireport.util.I18n.getString(\"fillCell\", \"Fill the cell\"));\r\n jMenuItemFillCell.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n FormatCommand.getCommand( OperationType.ELEMENT_MAXIMIZE).execute();\r\n }\r\n });\r\n\r\n m.add(jMenuItemFillCell);\r\n\r\n jMenuItemFillCellH = new javax.swing.JMenuItem();\r\n jMenuItemFillCellH.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_hmaximise.png\")));\r\n jMenuItemFillCellH.setText(it.businesslogic.ireport.util.I18n.getString(\"fillCellHorizontally\", \"Fill the cell (horizontally)\"));\r\n jMenuItemFillCellH.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n FormatCommand.getCommand( OperationType.ELEMENT_MAXIMIZE_H).execute();\r\n }\r\n });\r\n\r\n m.add(jMenuItemFillCellH);\r\n\r\n jMenuItemFillCellV = new javax.swing.JMenuItem();\r\n\r\n jMenuItemFillCellV.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_vmaximise.png\")));\r\n jMenuItemFillCellV.setText(it.businesslogic.ireport.util.I18n.getString(\"fillCellVertically\", \"Fill the cell (vertically)\"));\r\n jMenuItemFillCellV.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n FormatCommand.getCommand( OperationType.ELEMENT_MAXIMIZE_V).execute();\r\n }\r\n });\r\n\r\n m.add(jMenuItemFillCellV);\r\n\r\n\r\n jMenuAlign = new javax.swing.JMenu();\r\n jMenuAlign.setText(it.businesslogic.ireport.util.I18n.getString(\"align\", \"Align...\"));\r\n\r\n jMenuItemAlignLeft = new javax.swing.JMenuItem();\r\n\r\n jMenuItemAlignLeft.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_align_left.png\")));\r\n jMenuItemAlignLeft.setText(it.businesslogic.ireport.util.I18n.getString(\"alignLeft\", \"Align left\"));\r\n jMenuItemAlignLeft.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignLeftActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignLeft);\r\n\r\n jMenuItemAlignRight = new javax.swing.JMenuItem();\r\n jMenuItemAlignRight.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_align_right.png\")));\r\n jMenuItemAlignRight.setText(it.businesslogic.ireport.util.I18n.getString(\"alignRight\", \"Align right\"));\r\n jMenuItemAlignRight.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignRightActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignRight);\r\n\r\n jMenuItemAlignTop = new javax.swing.JMenuItem();\r\n jMenuItemAlignTop.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_align_top.png\")));\r\n jMenuItemAlignTop.setText(it.businesslogic.ireport.util.I18n.getString(\"alignTop\", \"Align top\"));\r\n jMenuItemAlignTop.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignTopActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignTop);\r\n\r\n jMenuItemAlignBottom = new javax.swing.JMenuItem();\r\n jMenuItemAlignBottom.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_align_bottom.png\")));\r\n jMenuItemAlignBottom.setText(it.businesslogic.ireport.util.I18n.getString(\"alignBottom\", \"Align bottom\"));\r\n jMenuItemAlignBottom.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignBottomActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignBottom);\r\n\r\n jSeparator19 = new javax.swing.JSeparator();\r\n jMenuAlign.add(jSeparator19);\r\n\r\n jMenuItemAlignVerticalAxis = new javax.swing.JMenuItem();\r\n jMenuItemAlignVerticalAxis.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_center_axis.png\")));\r\n jMenuItemAlignVerticalAxis.setText(it.businesslogic.ireport.util.I18n.getString(\"alignVerticalAxis\", \"Align vertical axis\"));\r\n jMenuItemAlignVerticalAxis.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignVerticalAxisActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignVerticalAxis);\r\n\r\n jMenuItemAlignHorizontalAxis = new javax.swing.JMenuItem();\r\n jMenuItemAlignHorizontalAxis.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_vcenter_axis.png\")));\r\n jMenuItemAlignHorizontalAxis.setText(it.businesslogic.ireport.util.I18n.getString(\"alignHorizontalAxis\", \"Align horizontal axis\"));\r\n jMenuItemAlignHorizontalAxis.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignHorizontalAxisActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignHorizontalAxis);\r\n\r\n m.add(jMenuAlign);\r\n\r\n jMenuSize = new javax.swing.JMenu();\r\n jMenuSize.setText(it.businesslogic.ireport.util.I18n.getString(\"size\", \"Size...\"));\r\n jMenuItemSameWidth = new javax.swing.JMenuItem();\r\n jMenuItemSameWidth.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_hsize.png\")));\r\n jMenuItemSameWidth.setText(it.businesslogic.ireport.util.I18n.getString(\"sameWidth\", \"Same width\"));\r\n jMenuItemSameWidth.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameWidthActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameWidth);\r\n\r\n jMenuItemSameWidthMax = new javax.swing.JMenuItem();\r\n jMenuItemSameWidthMax.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_hsize_plus.png\")));\r\n jMenuItemSameWidthMax.setText(it.businesslogic.ireport.util.I18n.getString(\"sameWidthMax\", \"Same width (max)\"));\r\n jMenuItemSameWidthMax.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameWidthMaxActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameWidthMax);\r\n\r\n jMenuItemSameWidthMin = new javax.swing.JMenuItem();\r\n jMenuItemSameWidthMin.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_hsize_min.png\")));\r\n jMenuItemSameWidthMin.setText(it.businesslogic.ireport.util.I18n.getString(\"sameWidthMin\", \"Same width (min)\"));\r\n jMenuItemSameWidthMin.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameWidthMinActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameWidthMin);\r\n\r\n jSeparator17 = new javax.swing.JSeparator();\r\n jMenuSize.add(jSeparator17);\r\n\r\n jMenuItemSameHeight = new javax.swing.JMenuItem();\r\n jMenuItemSameHeight.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_vsize.png\")));\r\n jMenuItemSameHeight.setText(it.businesslogic.ireport.util.I18n.getString(\"sameHeight\", \"Same height\"));\r\n jMenuItemSameHeight.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameHeightActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameHeight);\r\n\r\n jMenuItemSameHeightMin = new javax.swing.JMenuItem();\r\n jMenuItemSameHeightMin.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_vsize_min.png\")));\r\n jMenuItemSameHeightMin.setText(it.businesslogic.ireport.util.I18n.getString(\"sameHeightMin\", \"Same height (min)\"));\r\n jMenuItemSameHeightMin.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameHeightMinActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameHeightMin);\r\n\r\n jMenuItemSameHeightMax = new javax.swing.JMenuItem();\r\n jMenuItemSameHeightMax.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_vsize_plus.png\")));\r\n jMenuItemSameHeightMax.setText(it.businesslogic.ireport.util.I18n.getString(\"sameHeightMax\", \"Same height (max)\"));\r\n jMenuItemSameHeightMax.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameHeightMaxActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameHeightMax);\r\n\r\n jSeparator18 = new javax.swing.JSeparator();\r\n jMenuSize.add(jSeparator18);\r\n\r\n jMenuItemSameSize = new javax.swing.JMenuItem();\r\n jMenuItemSameSize.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_size.png\")));\r\n jMenuItemSameSize.setText(it.businesslogic.ireport.util.I18n.getString(\"sameSize\", \"Same size\"));\r\n jMenuItemSameSize.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameSizeActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameSize);\r\n\r\n m.add(jMenuSize);\r\n\r\n jMenuPosition = new javax.swing.JMenu();\r\n jMenuPosition.setText(it.businesslogic.ireport.util.I18n.getString(\"position\", \"Position...\"));\r\n jMenuItemCenterH = new javax.swing.JMenuItem();\r\n jMenuItemCenterH.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_hcenter.png\")));\r\n jMenuItemCenterH.setText(it.businesslogic.ireport.util.I18n.getString(\"centerHorizontallyCellBased\", \"Center horizontally (cell based)\"));\r\n jMenuItemCenterH.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemCenterHActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemCenterH);\r\n\r\n jMenuItemCenterV = new javax.swing.JMenuItem();\r\n jMenuItemCenterV.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_vcenter.png\")));\r\n jMenuItemCenterV.setText(it.businesslogic.ireport.util.I18n.getString(\"centerVerticallyCellBased\", \"Center vertically (cell based)\"));\r\n jMenuItemCenterV.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemCenterVActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemCenterV);\r\n\r\n jMenuItemCenterInCell = new javax.swing.JMenuItem();\r\n jMenuItemCenterInCell.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_ccenter.png\")));\r\n jMenuItemCenterInCell.setText(it.businesslogic.ireport.util.I18n.getString(\"centerInCell\", \"Center in cell\"));\r\n jMenuItemCenterInCell.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemCenterInBandActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemCenterInCell);\r\n\r\n jMenuItemJoinLeft = new javax.swing.JMenuItem();\r\n jMenuItemJoinLeft.setText(it.businesslogic.ireport.util.I18n.getString(\"joinSidesLeft\", \"Join sides left\"));\r\n jMenuItemJoinLeft.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemJoinLeftActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemJoinLeft);\r\n\r\n jMenuItemJoinRight = new javax.swing.JMenuItem();\r\n jMenuItemJoinRight.setText(it.businesslogic.ireport.util.I18n.getString(\"joinSidesRight\", \"Join sides right\"));\r\n jMenuItemJoinRight.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemJoinRightActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemJoinRight);\r\n\r\n m.add(jMenuPosition);\r\n\r\n jSeparator5 = new javax.swing.JSeparator();\r\n m.add(jSeparator5);\r\n\r\n jMenuHSpacing = new javax.swing.JMenu();\r\n jMenuHSpacing.setText(it.businesslogic.ireport.util.I18n.getString(\"horizontalSpacing\", \"Horizontal spacing...\"));\r\n\r\n jMenuItemHSMakeEqual = new javax.swing.JMenuItem();\r\n jMenuItemHSMakeEqual.setText(it.businesslogic.ireport.util.I18n.getString(\"makeEqual\", \"Make equal\"));\r\n jMenuItemHSMakeEqual.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemHSMakeEqualActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuHSpacing.add(jMenuItemHSMakeEqual);\r\n\r\n jMenuItemHSIncrease = new javax.swing.JMenuItem();\r\n jMenuItemHSIncrease.setText(it.businesslogic.ireport.util.I18n.getString(\"increase\", \"Increase\"));\r\n jMenuItemHSIncrease.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemHSIncreaseActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuHSpacing.add(jMenuItemHSIncrease);\r\n\r\n jMenuItemHSDecrease = new javax.swing.JMenuItem();\r\n jMenuItemHSDecrease.setText(it.businesslogic.ireport.util.I18n.getString(\"decrease\", \"Decrease\"));\r\n jMenuItemHSDecrease.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemHSDecreaseActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuHSpacing.add(jMenuItemHSDecrease);\r\n\r\n jMenuItemHSRemove = new javax.swing.JMenuItem();\r\n jMenuItemHSRemove.setText(it.businesslogic.ireport.util.I18n.getString(\"remove\", \"Remove\"));\r\n jMenuItemHSRemove.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemHSRemoveActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuHSpacing.add(jMenuItemHSRemove);\r\n\r\n m.add(jMenuHSpacing);\r\n\r\n jMenuVSpacing = new javax.swing.JMenu();\r\n jMenuVSpacing.setText(it.businesslogic.ireport.util.I18n.getString(\"verticalSpacing\", \"Vertical spacing\"));\r\n jMenuItemVSMakeEqual = new javax.swing.JMenuItem();\r\n jMenuItemVSMakeEqual.setText(it.businesslogic.ireport.util.I18n.getString(\"makeEqual\", \"Make equal\"));\r\n jMenuItemVSMakeEqual.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemVSMakeEqualActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuVSpacing.add(jMenuItemVSMakeEqual);\r\n\r\n jMenuItemVSIncrease = new javax.swing.JMenuItem();\r\n jMenuItemVSIncrease.setText(it.businesslogic.ireport.util.I18n.getString(\"increase\", \"Increase\"));\r\n jMenuItemVSIncrease.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemVSIncreaseActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuVSpacing.add(jMenuItemVSIncrease);\r\n\r\n jMenuItemVSDecrease = new javax.swing.JMenuItem();\r\n jMenuItemVSDecrease.setText(it.businesslogic.ireport.util.I18n.getString(\"decrease\", \"Decrease\"));\r\n jMenuItemVSDecrease.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemVSDecreaseActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuVSpacing.add(jMenuItemVSDecrease);\r\n\r\n jMenuItemVSRemove = new javax.swing.JMenuItem();\r\n jMenuItemVSRemove.setText(it.businesslogic.ireport.util.I18n.getString(\"remove\", \"Remove\"));\r\n jMenuItemVSRemove.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemVSRemoveActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuVSpacing.add(jMenuItemVSRemove);\r\n\r\n m.add(jMenuVSpacing);\r\n\r\n jSeparator8 = new javax.swing.JSeparator();\r\n m.add(jSeparator8);\r\n\r\n jMenuItemBringToFront = new javax.swing.JMenuItem();\r\n jMenuItemBringToFront.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/sendtofront.png\")));\r\n jMenuItemBringToFront.setText(it.businesslogic.ireport.util.I18n.getString(\"bringToFront\", \"Bring to front\"));\r\n jMenuItemBringToFront.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemBringToFrontActionPerformed(evt);\r\n }\r\n });\r\n\r\n m.add(jMenuItemBringToFront);\r\n\r\n jMenuItemSendToBack = new javax.swing.JMenuItem();\r\n jMenuItemSendToBack.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/sendtoback.png\")));\r\n jMenuItemSendToBack.setText(it.businesslogic.ireport.util.I18n.getString(\"sendToBack\", \"Send to back\"));\r\n jMenuItemSendToBack.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSendToBackActionPerformed(evt);\r\n }\r\n });\r\n\r\n m.add(jMenuItemSendToBack);\r\n\r\n }", "private void makeThirdPartyMenu() {\r\n\t\tJMenu thirdPartyMnu = new JMenu(\"Terceros\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Clientes\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenu customerMnu = new JMenu(\"Clientes\");\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarClientes\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Cliente\");\r\n\t\t\t\taddItem.setMnemonic('c');\r\n\t\t\t\taddItem.setToolTipText(\"Agregar rapidamente un nuevo cliente\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddCustomer(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tcustomerMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Clientes\",\r\n\t\t\t\t\timageLoader.getImage(\"customer.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'l',\r\n\t\t\t\t\t\"Ver el listado de clientes\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F8, 0), Customer.class);\r\n\t\t\tcustomerMnu.add(menuItem);\r\n\r\n\t\t\tcustomerMnu.setMnemonic('c');\r\n\t\t\tthirdPartyMnu.add(customerMnu);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Proveedores\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenu customerMnu = new JMenu(\"Proveedores\");\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarProveedores\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Proveedor\");\r\n\t\t\t\taddItem.setMnemonic('p');\r\n\t\t\t\taddItem\r\n\t\t\t\t\t\t.setToolTipText(\"Agregar rapidamente un nuevo proveedor\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddProvider(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tcustomerMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Proveedores\",\r\n\t\t\t\t\timageLoader.getImage(\"provider.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'l',\r\n\t\t\t\t\t\"Ver el listado de proveedores\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F9, 0), Provider.class);\r\n\t\t\tcustomerMnu.add(menuItem);\r\n\r\n\t\t\tcustomerMnu.setMnemonic('p');\r\n\t\t\tthirdPartyMnu.add(customerMnu);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tthirdPartyMnu.setMnemonic('t');\r\n\t\t\tadd(thirdPartyMnu);\r\n\t\t}\r\n\t}", "public void setUpFileMenu() {\n add(fileMenu);\n fileMenu.add(new OpenAction(parent));\n fileMenu.add(new SaveAction(parent));\n fileMenu.add(new SaveAsAction(parent));\n fileMenu.addSeparator();\n fileMenu.add(new ShowWorldPrefsAction(parent.getWorldPanel()));\n fileMenu.add(new CloseAction(parent.getWorkspaceComponent()));\n }", "public ChessMenuBar() {\n String[] menuCategories = {\"File\", \"Options\", \"Help\"};\n String[] menuItemLists =\n {\"New game/restart,Exit\", \"Toggle graveyard,Toggle game log\",\n \"About\"};\n for (int i = 0; i < menuCategories.length; i++) {\n JMenu currMenu = new JMenu(menuCategories[i]);\n String[] currMenuItemList = menuItemLists[i].split(\",\");\n for (int j = 0; j < currMenuItemList.length; j++) {\n JMenuItem currItem = new JMenuItem(currMenuItemList[j]);\n currItem.addActionListener(new MenuListener());\n currMenu.add(currItem);\n }\n this.add(currMenu);\n }\n }", "public void init() {\n\t\tsuper.init();\n\n\t\tsetName(NAME);\n\n\t\tmoveUpMenuItem = new JMenuItem(MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setName(NAME_MENU_ITEM_MOVE_UP);\n\t\tmoveUpMenuItem.setEnabled(true);\n\t\tmoveUpMenuItem.addActionListener(moveUpAction);\n\t\tmoveUpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_UP,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tmoveDownMenuItem = new JMenuItem(MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setName(NAME_MENU_ITEM_MOVE_DOWN);\n\t\tmoveDownMenuItem.setEnabled(true);\n\t\tmoveDownMenuItem.addActionListener(moveDownAction);\n\t\tmoveDownMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DOWN, ActionEvent.ALT_MASK));\n\n\t\tdeleteMenuItem = new JMenuItem(MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setName(NAME_MENU_ITEM_DELETE);\n\t\tdeleteMenuItem.setEnabled(true);\n\t\tdeleteMenuItem.addActionListener(deleteAction);\n\t\tdeleteMenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\t\tKeyEvent.VK_DELETE, 0));\n\n\t\taddMenuItem = new JMenuItem(MENU_ITEM_ADD);\n\t\taddMenuItem.setName(NAME_MENU_ITEM_ADD);\n\t\taddMenuItem.setEnabled(true);\n\t\taddMenuItem.addActionListener(addAction);\n\t\taddMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\teditMenuItem = new JMenuItem(MENU_ITEM_EDIT);\n\t\teditMenuItem.setName(NAME_MENU_ITEM_EDIT);\n\t\teditMenuItem.setEnabled(true);\n\t\teditMenuItem.addActionListener(editAction);\n\t\teditMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_E,\n\t\t\t\tActionEvent.ALT_MASK));\n\n\t\tsendMidiMenuItem = new JMenuItem(MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setName(NAME_MENU_ITEM_SEND_MIDI);\n\t\tsendMidiMenuItem.setEnabled(false);\n\t\tsendMidiMenuItem.addActionListener(sendMidiAction);\n\t\tsendMidiMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M,\n\t\t\t\tActionEvent.ALT_MASK));\n\t}", "private void buildMenu() {\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n\n JMenu fileMenu = new JMenu(\"File\");\n fileMenu.addMenuListener(this);\n\n JMenuItem openItem = new JMenuItem(\"Open\");\n openItem.setEnabled(false);\n JMenuItem newItem = new JMenuItem(\"New\");\n newItem.setEnabled(false);\n saveItem = new JMenuItem(\"Save\");\n saveItem.setEnabled(false);\n saveAsItem = new JMenuItem(\"Save As\");\n saveAsItem.setEnabled(false);\n reloadCalItem = new JMenuItem(RELOAD_CAL);\n exitItem = new JMenuItem(EXIT);\n\n mbar.add(makeMenu(fileMenu, new Object[]{newItem, openItem, null,\n reloadCalItem, null,\n saveItem, saveAsItem, null, exitItem}, this));\n\n JMenu viewMenu = new JMenu(\"View\");\n mbar.add(viewMenu);\n JMenuItem columnItem = new JMenuItem(COLUMNS);\n columnItem.addActionListener(this);\n JMenuItem logItem = new JMenuItem(LOG);\n logItem.addActionListener(this);\n JMenu satMenu = new JMenu(\"Satellite Image\");\n JMenuItem irItem = new JMenuItem(INFRA_RED);\n irItem.addActionListener(this);\n JMenuItem wvItem = new JMenuItem(WATER_VAPOUR);\n wvItem.addActionListener(this);\n satMenu.add(irItem);\n satMenu.add(wvItem);\n viewMenu.add(columnItem);\n viewMenu.add(logItem);\n viewMenu.add(satMenu);\n\n observability = new JCheckBoxMenuItem(\"Observability\", true);\n observability.setToolTipText(\"Check that the source is observable.\");\n remaining = new JCheckBoxMenuItem(\"Remaining\", true);\n remaining.setToolTipText(\n \"Check that the MSB has repeats remaining to be observed.\");\n allocation = new JCheckBoxMenuItem(\"Allocation\", true);\n allocation.setToolTipText(\n \"Check that the project still has sufficient time allocated.\");\n\n String ZOA = System.getProperty(\"ZOA\", \"true\");\n boolean tickZOA = true;\n if (\"false\".equalsIgnoreCase(ZOA)) {\n tickZOA = false;\n }\n\n zoneOfAvoidance = new JCheckBoxMenuItem(\"Zone of Avoidance\", tickZOA);\n localQuerytool.setZoneOfAvoidanceConstraint(!tickZOA);\n\n disableAll = new JCheckBoxMenuItem(\"Disable All\", false);\n JMenuItem cutItem = new JMenuItem(\"Cut\",\n new ImageIcon(ClassLoader.getSystemResource(\"cut.gif\")));\n cutItem.setEnabled(false);\n JMenuItem copyItem = new JMenuItem(\"Copy\",\n new ImageIcon(ClassLoader.getSystemResource(\"copy.gif\")));\n copyItem.setEnabled(false);\n JMenuItem pasteItem = new JMenuItem(\"Paste\",\n new ImageIcon(ClassLoader.getSystemResource(\"paste.gif\")));\n pasteItem.setEnabled(false);\n\n mbar.add(makeMenu(\"Edit\",\n new Object[]{\n cutItem,\n copyItem,\n pasteItem,\n null,\n makeMenu(\"Constraints\", new Object[]{observability,\n remaining, allocation, zoneOfAvoidance, null,\n disableAll}, this)}, this));\n\n mbar.add(SampClient.getInstance().buildMenu(this, sorter, table));\n\n JMenu helpMenu = new JMenu(\"Help\");\n helpMenu.setMnemonic('H');\n\n mbar.add(makeMenu(helpMenu, new Object[]{new JMenuItem(INDEX, 'I'),\n new JMenuItem(ABOUT, 'A')}, this));\n\n menuBuilt = true;\n }", "public static interface MenuCreationListener {\n public void menuCreated(LimeComboBox comboBox, JPopupMenu menu);\n }", "public ItemMenu(JDealsController sysCtrl) {\n super(\"Item Menu\", sysCtrl);\n\n this.addItem(\"Add general good\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.GOODS);\n }\n });\n this.addItem(\"Restourant Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.RESTOURANT);\n }\n });\n this.addItem(\"Travel Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.TRAVEL);\n }\n });\n }", "public void createNewItem(ActionEvent actionEvent) {\n // we will create a new item instance here (ideally we would use another window for this)\n // and then we will simply addItem() to the currently selected list\n }", "private void buildMenu() {\r\n\t\tJMenuBar mainmenu = new JMenuBar();\r\n\t\tsetJMenuBar(mainmenu);\r\n\r\n\t\tui.fileMenu = new JMenu(\"File\");\r\n\t\tui.editMenu = new JMenu(\"Edit\");\r\n\t\tui.viewMenu = new JMenu(\"View\");\r\n\t\tui.helpMenu = new JMenu(\"Help\");\r\n\t\t\r\n\t\tui.fileNew = new JMenuItem(\"New...\");\r\n\t\tui.fileOpen = new JMenuItem(\"Open...\");\r\n\t\tui.fileImport = new JMenuItem(\"Import...\");\r\n\t\tui.fileSave = new JMenuItem(\"Save\");\r\n\t\tui.fileSaveAs = new JMenuItem(\"Save as...\");\r\n\t\tui.fileExit = new JMenuItem(\"Exit\");\r\n\r\n\t\tui.fileOpen.setAccelerator(KeyStroke.getKeyStroke('O', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.fileSave.setAccelerator(KeyStroke.getKeyStroke('S', InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.fileImport.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doImport(); } });\r\n\t\tui.fileExit.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { dispose(); doExit(); } });\r\n\t\t\r\n\t\tui.fileOpen.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoLoad();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.fileSave.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoSave();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.fileSaveAs.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoSaveAs();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.editUndo = new JMenuItem(\"Undo\");\r\n\t\tui.editUndo.setEnabled(undoManager.canUndo()); \r\n\t\t\r\n\t\tui.editRedo = new JMenuItem(\"Redo\");\r\n\t\tui.editRedo.setEnabled(undoManager.canRedo()); \r\n\t\t\r\n\t\t\r\n\t\tui.editCut = new JMenuItem(\"Cut\");\r\n\t\tui.editCopy = new JMenuItem(\"Copy\");\r\n\t\tui.editPaste = new JMenuItem(\"Paste\");\r\n\t\t\r\n\t\tui.editCut.addActionListener(new Act() { @Override public void act() { doCut(true, true); } });\r\n\t\tui.editCopy.addActionListener(new Act() { @Override public void act() { doCopy(true, true); } });\r\n\t\tui.editPaste.addActionListener(new Act() { @Override public void act() { doPaste(true, true); } });\r\n\t\t\r\n\t\tui.editPlaceMode = new JCheckBoxMenuItem(\"Placement mode\");\r\n\t\t\r\n\t\tui.editDeleteBuilding = new JMenuItem(\"Delete building\");\r\n\t\tui.editDeleteSurface = new JMenuItem(\"Delete surface\");\r\n\t\tui.editDeleteBoth = new JMenuItem(\"Delete both\");\r\n\t\t\r\n\t\tui.editClearBuildings = new JMenuItem(\"Clear buildings\");\r\n\t\tui.editClearSurface = new JMenuItem(\"Clear surface\");\r\n\r\n\t\tui.editUndo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doUndo(); } });\r\n\t\tui.editRedo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doRedo(); } });\r\n\t\tui.editClearBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doClearBuildings(true); } });\r\n\t\tui.editClearSurface.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doClearSurfaces(true); } });\r\n\t\t\r\n\r\n\t\tui.editUndo.setAccelerator(KeyStroke.getKeyStroke('Z', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editRedo.setAccelerator(KeyStroke.getKeyStroke('Y', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editCut.setAccelerator(KeyStroke.getKeyStroke('X', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editCopy.setAccelerator(KeyStroke.getKeyStroke('C', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editPaste.setAccelerator(KeyStroke.getKeyStroke('V', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editPlaceMode.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F3, 0));\r\n\t\t\r\n\t\tui.editDeleteBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0));\r\n\t\tui.editDeleteSurface.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editDeleteBoth.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\t\r\n\t\tui.editDeleteBuilding.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteBuilding(); } });\r\n\t\tui.editDeleteSurface.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteSurface(); } });\r\n\t\tui.editDeleteBoth.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteBoth(); } });\r\n\t\tui.editPlaceMode.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doPlaceMode(ui.editPlaceMode.isSelected()); } });\r\n\t\t\r\n\t\tui.editPlaceRoads = new JMenu(\"Place roads\");\r\n\t\t\r\n\t\tui.editResize = new JMenuItem(\"Resize map\");\r\n\t\tui.editCleanup = new JMenuItem(\"Remove outbound objects\");\r\n\t\t\r\n\t\tui.editResize.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoResize();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.editCleanup.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoCleanup();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.editCutBuilding = new JMenuItem(\"Cut: building\");\r\n\t\tui.editCutSurface = new JMenuItem(\"Cut: surface\");\r\n\t\tui.editPasteBuilding = new JMenuItem(\"Paste: building\");\r\n\t\tui.editPasteSurface = new JMenuItem(\"Paste: surface\");\r\n\t\tui.editCopyBuilding = new JMenuItem(\"Copy: building\");\r\n\t\tui.editCopySurface = new JMenuItem(\"Copy: surface\");\r\n\t\t\r\n\t\tui.editCutBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\tui.editCopyBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\tui.editPasteBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\t\r\n\t\tui.editCutBuilding.addActionListener(new Act() { @Override public void act() { doCut(false, true); } });\r\n\t\tui.editCutSurface.addActionListener(new Act() { @Override public void act() { doCut(true, false); } });\r\n\t\tui.editCopyBuilding.addActionListener(new Act() { @Override public void act() { doCopy(false, true); } });\r\n\t\tui.editCopySurface.addActionListener(new Act() { @Override public void act() { doCopy(true, false); } });\r\n\t\tui.editPasteBuilding.addActionListener(new Act() { @Override public void act() { doPaste(false, true); } });\r\n\t\tui.editPasteSurface.addActionListener(new Act() { @Override public void act() { doPaste(true, false); } });\r\n\t\t\r\n\t\tui.viewZoomIn = new JMenuItem(\"Zoom in\");\r\n\t\tui.viewZoomOut = new JMenuItem(\"Zoom out\");\r\n\t\tui.viewZoomNormal = new JMenuItem(\"Zoom normal\");\r\n\t\tui.viewBrighter = new JMenuItem(\"Daylight (1.0)\");\r\n\t\tui.viewDarker = new JMenuItem(\"Night (0.5)\");\r\n\t\tui.viewMoreLight = new JMenuItem(\"More light (+0.05)\");\r\n\t\tui.viewLessLight = new JMenuItem(\"Less light (-0.05)\");\r\n\t\t\r\n\t\tui.viewShowBuildings = new JCheckBoxMenuItem(\"Show/hide buildings\", renderer.showBuildings);\r\n\t\tui.viewShowBuildings.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_B, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewSymbolicBuildings = new JCheckBoxMenuItem(\"Minimap rendering mode\", renderer.minimapMode);\r\n\t\tui.viewSymbolicBuildings.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewTextBackgrounds = new JCheckBoxMenuItem(\"Show/hide text background boxes\", renderer.textBackgrounds);\r\n\t\tui.viewTextBackgrounds.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewTextBackgrounds.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleTextBackgrounds(); } });\r\n\t\t\r\n\t\tui.viewZoomIn.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomIn(); } });\r\n\t\tui.viewZoomOut.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomOut(); } });\r\n\t\tui.viewZoomNormal.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomNormal(); } });\r\n\t\tui.viewShowBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleBuildings(); } });\r\n\t\tui.viewSymbolicBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleMinimap(); } });\r\n\t\t\r\n\t\tui.viewBrighter.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doBright(); } });\r\n\t\tui.viewDarker.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDark(); } });\r\n\t\tui.viewMoreLight.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doMoreLight(); } });\r\n\t\tui.viewLessLight.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doLessLight(); } });\r\n\t\t\r\n\t\tui.viewZoomIn.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD9, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewZoomOut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD3, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewZoomNormal.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD0, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewMoreLight.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD8, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewLessLight.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD2, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewBrighter.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD7, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewDarker.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD1, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewStandardFonts = new JCheckBoxMenuItem(\"Use standard fonts\", TextRenderer.USE_STANDARD_FONTS);\r\n\t\t\r\n\t\tui.viewStandardFonts.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoStandardFonts();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.viewPlacementHints = new JCheckBoxMenuItem(\"View placement hints\", renderer.placementHints);\r\n\t\tui.viewPlacementHints.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoViewPlacementHints();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.helpOnline = new JMenuItem(\"Online wiki...\");\r\n\t\tui.helpOnline.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdoHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.helpAbout = new JMenuItem(\"About...\");\r\n\t\tui.helpAbout.setEnabled(false); // TODO implement\r\n\t\t\r\n\t\tui.languageMenu = new JMenu(\"Language\");\r\n\t\t\r\n\t\tui.languageEn = new JRadioButtonMenuItem(\"English\", true);\r\n\t\tui.languageEn.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tsetLabels(\"en\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.languageHu = new JRadioButtonMenuItem(\"Hungarian\", false);\r\n\t\tui.languageHu.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tsetLabels(\"hu\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tButtonGroup bg = new ButtonGroup();\r\n\t\tbg.add(ui.languageEn);\r\n\t\tbg.add(ui.languageHu);\r\n\t\t\r\n\t\tui.fileRecent = new JMenu(\"Recent\");\r\n\t\tui.clearRecent = new JMenuItem(\"Clear recent\");\r\n\t\tui.clearRecent.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoClearRecent();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\taddAll(ui.fileRecent, ui.clearRecent);\r\n\t\t\r\n\t\taddAll(mainmenu, ui.fileMenu, ui.editMenu, ui.viewMenu, ui.languageMenu, ui.helpMenu);\r\n\t\taddAll(ui.fileMenu, ui.fileNew, null, ui.fileOpen, ui.fileRecent, ui.fileImport, null, ui.fileSave, ui.fileSaveAs, null, ui.fileExit);\r\n\t\taddAll(ui.editMenu, ui.editUndo, ui.editRedo, null, \r\n\t\t\t\tui.editCut, ui.editCopy, ui.editPaste, null, \r\n\t\t\t\tui.editCutBuilding, ui.editCopyBuilding, ui.editPasteBuilding, null, \r\n\t\t\t\tui.editCutSurface, ui.editCopySurface, ui.editPasteSurface, null, \r\n\t\t\t\tui.editPlaceMode, null, ui.editDeleteBuilding, ui.editDeleteSurface, ui.editDeleteBoth, null, \r\n\t\t\t\tui.editClearBuildings, ui.editClearSurface, null, ui.editPlaceRoads, null, ui.editResize, ui.editCleanup);\r\n\t\taddAll(ui.viewMenu, ui.viewZoomIn, ui.viewZoomOut, ui.viewZoomNormal, null, \r\n\t\t\t\tui.viewBrighter, ui.viewDarker, ui.viewMoreLight, ui.viewLessLight, null, \r\n\t\t\t\tui.viewShowBuildings, ui.viewSymbolicBuildings, ui.viewTextBackgrounds, ui.viewStandardFonts, ui.viewPlacementHints);\r\n\t\taddAll(ui.helpMenu, ui.helpOnline, null, ui.helpAbout);\r\n\t\t\r\n\t\taddAll(ui.languageMenu, ui.languageEn, ui.languageHu);\r\n\t\t\r\n\t\tui.fileNew.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdoNew();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.toolbar = new JToolBar(\"Tools\");\r\n\t\tContainer c = getContentPane();\r\n\t\tc.add(ui.toolbar, BorderLayout.PAGE_START);\r\n\r\n\t\tui.toolbarCut = createFor(\"res/Cut24.gif\", \"Cut\", ui.editCut, false);\r\n\t\tui.toolbarCopy = createFor(\"res/Copy24.gif\", \"Copy\", ui.editCopy, false);\r\n\t\tui.toolbarPaste = createFor(\"res/Paste24.gif\", \"Paste\", ui.editPaste, false);\r\n\t\tui.toolbarRemove = createFor(\"res/Remove24.gif\", \"Remove\", ui.editDeleteBuilding, false);\r\n\t\tui.toolbarUndo = createFor(\"res/Undo24.gif\", \"Undo\", ui.editUndo, false);\r\n\t\tui.toolbarRedo = createFor(\"res/Redo24.gif\", \"Redo\", ui.editRedo, false);\r\n\t\tui.toolbarPlacementMode = createFor(\"res/Down24.gif\", \"Placement mode\", ui.editPlaceMode, true);\r\n\r\n\t\tui.toolbarUndo.setEnabled(false);\r\n\t\tui.toolbarRedo.setEnabled(false);\r\n\t\t\r\n\t\tui.toolbarNew = createFor(\"res/New24.gif\", \"New\", ui.fileNew, false);\r\n\t\tui.toolbarOpen = createFor(\"res/Open24.gif\", \"Open\", ui.fileOpen, false);\r\n\t\tui.toolbarSave = createFor(\"res/Save24.gif\", \"Save\", ui.fileSave, false);\r\n\t\tui.toolbarImport = createFor(\"res/Import24.gif\", \"Import\", ui.fileImport, false);\r\n\t\tui.toolbarSaveAs = createFor(\"res/SaveAs24.gif\", \"Save as\", ui.fileSaveAs, false);\r\n\t\tui.toolbarZoomNormal = createFor(\"res/Zoom24.gif\", \"Zoom normal\", ui.viewZoomNormal, false);\r\n\t\tui.toolbarZoomIn = createFor(\"res/ZoomIn24.gif\", \"Zoom in\", ui.viewZoomIn, false);\r\n\t\tui.toolbarZoomOut = createFor(\"res/ZoomOut24.gif\", \"Zoom out\", ui.viewZoomOut, false);\r\n\t\tui.toolbarBrighter = createFor(\"res/TipOfTheDay24.gif\", \"Daylight\", ui.viewBrighter, false);\r\n\t\tui.toolbarDarker = createFor(\"res/TipOfTheDayDark24.gif\", \"Night\", ui.viewDarker, false);\r\n\t\tui.toolbarHelp = createFor(\"res/Help24.gif\", \"Help\", ui.helpOnline, false);\r\n\r\n\t\t\r\n\t\tui.toolbar.add(ui.toolbarNew);\r\n\t\tui.toolbar.add(ui.toolbarOpen);\r\n\t\tui.toolbar.add(ui.toolbarSave);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarImport);\r\n\t\tui.toolbar.add(ui.toolbarSaveAs);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarCut);\r\n\t\tui.toolbar.add(ui.toolbarCopy);\r\n\t\tui.toolbar.add(ui.toolbarPaste);\r\n\t\t\r\n\t\tui.toolbar.add(ui.toolbarRemove);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarUndo);\r\n\t\tui.toolbar.add(ui.toolbarRedo);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarPlacementMode);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarZoomNormal);\r\n\t\tui.toolbar.add(ui.toolbarZoomIn);\r\n\t\tui.toolbar.add(ui.toolbarZoomOut);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarBrighter);\r\n\t\tui.toolbar.add(ui.toolbarDarker);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarHelp);\r\n\t\t\r\n\t}", "protected ViewerPopupMenu createPopupMenu()\n {\n ViewerPopupMenu menu = super.createPopupMenu();\n\n viewAction = new ViewerAction(this, \"View\", \"view\",\n \"View Dofs\",\n \"View the dofs of an Actor in table form.\",\n null, null, \"Ctrl-V\", null, \"false\");\n\n menu.addSeparator();\n menu.add(viewAction);\n\n return menu;\n }", "public void createChooseGameUI()\n {\n \tHashMap<InventoryRunnable, InventoryItem> inventoryStuff = new HashMap<InventoryRunnable, InventoryItem>();\n \t\n \tInventoryRunnable gladiatorJoinRunnable = new GladiatorJoinInventoryRunnable(plugin);\n \t\n \tArrayList<String> gladiatorLore = new ArrayList<String>();\n \tgladiatorLore.add(\"FIGHT TO THE DEATH AND WIN YOUR FREEDOM\");\n \tgladiatorLore.add(\"GOOD LUCK WARRIOR!\");\n \tInventoryItem gladiatorItem = new InventoryItem(plugin, Material.SHIELD, \"GLADIATOR\", gladiatorLore, 1, true, 1);\n \tinventoryStuff.put(gladiatorJoinRunnable, gladiatorItem);\n \t\n \tchooseGameUI = new GUIInventory(plugin, \"MINIGAMES\", inventoryStuff, 3);\n }", "private void initializeMenuForPairsListView() {\n\t\tMenuItem deleteItem = new MenuItem(labels.get(Labels.PROP_INFO_REMOVE_MENU));\n\t\tdeleteItem.setOnAction(event ->\n\t\t\t\tremoveSelectedAction()\n\t\t);\n\t\tpairsListView.setContextMenu(new ContextMenu(deleteItem));\n\t}", "protected void fillMenu(MenuBar menuBar) {\n\t\tMenu fileMenu = new Menu(\"Файл\");\n\t\n\t\tMenuItem loginMenuItem = new MenuItem(\"Сменить пользователя\");\n\t\tloginMenuItem.setOnAction(actionEvent -> main.logout());\n\t\n\t\tMenuItem exitMenuItem = new MenuItem(\"Выход (выключить планшет)\");\n\t\texitMenuItem.setOnAction(actionEvent -> main.requestShutdown());\n\t\texitMenuItem.setAccelerator(KeyCombination.keyCombination(\"Alt+F4\"));\n\t\n\t\n\t\tfileMenu.getItems().addAll( loginMenuItem,\n\t\t\t\tnew SeparatorMenuItem(), exitMenuItem);\n\t\n\t\n\t\n\t\tMenu navMenu = new Menu(\"Навигация\");\n\t\n\t\tMenuItem navHomeMap = new MenuItem(\"На общую карту\");\n\t\t//navHomeMap.setOnAction(actionEvent -> setMapData(bigMapData));\n\t\tnavHomeMap.setOnAction(actionEvent -> setMapData(main.ml.getRootMap()));\n\t\n\t\tMenu navMaps = new Menu(\"Карты\");\n\t\t//navMaps.setOnAction(actionEvent -> setMapData(bigMapData));\n\t\tmain.ml.fillMapsMenu( navMaps, this );\n\t\n\t\tMenuItem navOverview = new MenuItem(\"Обзор\");\n\t\tnavOverview.setOnAction(actionEvent -> setOverviewScale());\n\t\n\t\tnavMenu.getItems().addAll( navHomeMap, navMaps, new SeparatorMenuItem(), navOverview );\n\t\n\t\t\n\t\t\n\t\tMenu dataMenu = new Menu(\"Данные\");\n\t\n\t\tServerUnitType.forEach(t -> {\n\t\t\tMenuItem dataItem = new MenuItem(t.getDisplayName());\n\t\t\tdataItem.setOnAction(actionEvent -> new EntityListWindow(t, main.rc, main.sc));\n\t\n\t\t\tdataMenu.getItems().add(dataItem);\t\t\t\n\t\t});\n\t\t\n\t\t//dataMenu.Menu debugMenu = new Menu(\"Debug\");\n\t\t//MenuItem d1 = new MenuItem(\"На общую карту\");\n\t\t//d1.setOnAction(actionEvent -> setMapData(main.ml.getRootMap()));\n\t\n\t\t\n\t\t/*\n\t Menu webMenu = new Menu(\"Web\");\n\t CheckMenuItem htmlMenuItem = new CheckMenuItem(\"HTML\");\n\t htmlMenuItem.setSelected(true);\n\t webMenu.getItems().add(htmlMenuItem);\n\t\n\t CheckMenuItem cssMenuItem = new CheckMenuItem(\"CSS\");\n\t cssMenuItem.setSelected(true);\n\t webMenu.getItems().add(cssMenuItem);\n\t\n\t Menu sqlMenu = new Menu(\"SQL\");\n\t ToggleGroup tGroup = new ToggleGroup();\n\t RadioMenuItem mysqlItem = new RadioMenuItem(\"MySQL\");\n\t mysqlItem.setToggleGroup(tGroup);\n\t\n\t RadioMenuItem oracleItem = new RadioMenuItem(\"Oracle\");\n\t oracleItem.setToggleGroup(tGroup);\n\t oracleItem.setSelected(true);\n\t\n\t sqlMenu.getItems().addAll(mysqlItem, oracleItem,\n\t new SeparatorMenuItem());\n\t\n\t Menu tutorialManeu = new Menu(\"Tutorial\");\n\t tutorialManeu.getItems().addAll(\n\t new CheckMenuItem(\"Java\"),\n\t new CheckMenuItem(\"JavaFX\"),\n\t new CheckMenuItem(\"Swing\"));\n\t\n\t sqlMenu.getItems().add(tutorialManeu);\n\t\t */\n\t\n\t\tMenu aboutMenu = new Menu(\"О системе\");\n\t\n\t\tMenuItem version = new MenuItem(\"Версия\");\n\t\tversion.setOnAction(actionEvent -> showAbout());\n\t\n\t\tMenuItem aboutDz = new MenuItem(\"Digital Zone\");\n\t\taboutDz.setOnAction(actionEvent -> main.getHostServices().showDocument(Defs.HOME_URL));\n\t\n\t\tMenuItem aboutVita = new MenuItem(\"VitaSoft\");\n\t\taboutVita.setOnAction(actionEvent -> main.getHostServices().showDocument(\"vtsft.ru\"));\n\t\n\t\taboutMenu.getItems().addAll( version, new SeparatorMenuItem(), aboutDz, aboutVita );\n\t\n\t\t// --------------- Menu bar\n\t\n\t\t//menuBar.getMenus().addAll(fileMenu, webMenu, sqlMenu);\n\t\tmenuBar.getMenus().addAll(fileMenu, navMenu, dataMenu, aboutMenu );\n\t}", "private void makeStockMenu() {\r\n\t\tJMenu stockMnu = new JMenu(\"Inventario\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Inventario\")) {\r\n\t\t\tisAccesible = true;\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarInventario\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Articulo\");\r\n\t\t\t\taddItem.setMnemonic('a');\r\n\t\t\t\taddItem.setToolTipText(\"Agregar rapidamente un nuevo articulo\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddStockItem(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tstockMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Inventario\",\r\n\t\t\t\t\timageLoader.getImage(\"world.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'v', \"Ver el inventario\",\r\n\t\t\t\t\tKeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), Stock.class);\r\n\t\t\tstockMnu.add(menuItem);\r\n\t\t\tstockMnu.addSeparator();\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Kardex\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Ver Kardex\", \r\n\t\t\t\t\timageLoader.getImage(\"kardexSingle.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'k', \"Ver el kardex\", null,\r\n\t\t\t\t\tKardex.class);\r\n\t\t\tstockMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tstockMnu.setMnemonic('i');\r\n\t\t\tadd(stockMnu);\r\n\t\t}\r\n\t}", "public void initMenu(){\n\t}" ]
[ "0.7762597", "0.7166101", "0.7119132", "0.70809376", "0.70373976", "0.70309687", "0.69402295", "0.6936758", "0.69280803", "0.6834125", "0.6790712", "0.6780505", "0.67785263", "0.677777", "0.6774575", "0.67445034", "0.6735786", "0.6694264", "0.66868556", "0.66648", "0.6633584", "0.6614106", "0.6603839", "0.6595813", "0.65453655", "0.65432465", "0.6532865", "0.65258723", "0.6502291", "0.6499233", "0.64942056", "0.6484334", "0.64831215", "0.64612895", "0.64553374", "0.64355546", "0.64022595", "0.6367043", "0.6359413", "0.63484406", "0.63393575", "0.6338918", "0.63280815", "0.6327375", "0.6305348", "0.6296441", "0.628496", "0.6271219", "0.6261248", "0.6260441", "0.62598246", "0.6254792", "0.62513167", "0.6251079", "0.6245192", "0.6244695", "0.6241566", "0.6204857", "0.6198812", "0.6198665", "0.6189471", "0.61846316", "0.61789083", "0.6177226", "0.6171676", "0.6159831", "0.6159031", "0.61543846", "0.61461645", "0.6126093", "0.6126068", "0.61214435", "0.6104288", "0.60924333", "0.6089603", "0.608846", "0.6088215", "0.607991", "0.60775167", "0.6072771", "0.60583913", "0.6049562", "0.6043276", "0.60365194", "0.60340774", "0.6029419", "0.6026851", "0.6021237", "0.60158265", "0.60138094", "0.60102725", "0.6007452", "0.60069317", "0.6001467", "0.59939766", "0.5990581", "0.59889835", "0.598231", "0.59813374", "0.59809107" ]
0.6857448
9
Inserts new data (invoked from popup menu)
private void popupMenuInsertData(int rowIndex, int columnIndex) { // // Display the dialog // AddDataDialog addDataDialog = new AddDataDialog(parent.getShell(), Messages.HexEditorControl_47, HexEditorConstants.DIALOG_TYPE_INSERT); if (addDataDialog.open() != Window.OK) return; int[] addDialogResult = addDataDialog.getResult(); if (addDialogResult == null) { // // Cancel button pressed - do nothing // return; } // // Retrieve the parameters from the 'Insert' dialog // int dataSize = addDialogResult[0]; int dataValue = addDialogResult[1]; if (dataSize <= 0) return; // // Insert new bytes into the table // insertData(dataSize, dataValue, rowIndex, columnIndex - 1); // // Update the status panel // updateStatusPanel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void popupMenuAppendData() {\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tAddDataDialog addDataDialog = new AddDataDialog(table.getShell(), Messages.HexEditorControl_48, HexEditorConstants.DIALOG_TYPE_APPEND);\n\t\tif (addDataDialog.open() != Window.OK)\n\t\t\treturn;\n\t\tint[] addDialogResult = addDataDialog.getResult();\n\n\t\tif (addDialogResult == null) {\n\t\t\t//\n\t\t\t// Cancel button pressed - do nothing\n\t\t\t//\n\t\t\treturn;\n\t\t}\n\n\t\t//\n\t\t// Retrieve the parameters from the 'Insert' dialog\n\t\t//\n\t\tint dataSize = addDialogResult[0];\n\t\tint dataValue = addDialogResult[1];\n\n\t\tif (dataSize <= 0) return;\n\n\t\t//\n\t\t// Append new bytes into the table\n\t\t//\n\t\tappendData(dataSize, dataValue);\n\n\t\t//\n\t\t// Update the status panel\n\t\t//\n\t\tupdateStatusPanel();\n\t}", "protected void shoAddNewDataEditor () {\n\t\t\n\t\t\n\t\tinstantiateDataForAddNewTemplate(new AsyncCallback< DATA>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// ini tidak mungkin gagal\n\t\t\t\t\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void onSuccess(final DATA result) {\n\t\t\t\teditorGenerator.instantiatePanel(new ExpensivePanelGenerator<BaseDualControlDataEditor<PK,DATA>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPanelGenerationComplete(\n\t\t\t\t\t\t\tBaseDualControlDataEditor<PK, DATA> widget) {\n\t\t\t\t\t\tconfigureAndPlaceEditorPanel(widget);\n\t\t\t\t\t\twidget.requestDoubleSubmitToken(null);\n\t\t\t\t\t\twidget.addAndEditNewData(result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}); \n\t\t\n\t\t\n\t}", "private void InsertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_InsertActionPerformed\n try{\n if(isEmpty())\n throw new Exception(\"Introdu toate datele!\");\n\n // if phone is frequency dont insert\n if(isExitsPhone())\n throw new Exception(\"Eroare nr telefon!\");\n\n boolean ok = insert();\n if(ok){\n Vector data = getData(\"\");\n showData(data);\n } else\n throw new Exception(\"Eroare la inserare!\");\n\n }catch(Exception e){\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n }", "int insert(MenuInfo record);", "void addData();", "public void performTambah() {\n\n dialogEntry.postInit();\n dialogEntry.clearFields();\n dialogEntry.setRowToBeEdited(-1);\n //dialogEntry.clearFields ();\n dialogEntry.show(true); // -- modal dialog ya, jd harus menunggu..\n //if (isDirty()) {\n loadTable();\n // TODO : select last item added\n //}\n }", "public void AddData(String newEntry) {\n boolean insertData = mDatabaseHelper.addData(newEntry);\n if (insertData) {\n toastMessage(\"Item Added to Shopping List!\");\n } else {\n toastMessage(\"Sorry, Please Try Again\");\n }\n\n }", "@Override\n public void onClick(View view) {\n if (mAddDialog == null) {\n mAddDialog = new XPopup.Builder(MainActivity.this)\n .asInputConfirm(getString(R.string.add_random_title)\n , getString(R.string.add_random_content)\n , new OnInputConfirmListener() {\n @Override\n public void onConfirm(String text) {\n if (mAdapter != null) {\n mAdapter.addData(new BaseModel(text, 1));\n }\n }\n }).show();\n } else {\n mAddDialog.show();\n }\n }", "private void insertOrUpdateItem(){\n Toaster toaster = new Toaster(getContext());\n DBManager dbManager = new DBManager(getContext());\n if((Afegir.getText() == getText(R.string.actualitza) && updateItem(dbManager)) ||\n (Afegir.getText() == getText(R.string.afegir) && insertItem(dbManager))){\n\n ((MainActivity) getActivity()).swapFrameLayoutVisibility(true);\n ((MainActivity) getActivity()).refreshListView();\n toaster.customizedToast(getLayoutInflater(), getView(), getText(R.string.commit_insert).toString(), null);\n reset(true);\n }\n\n else toaster.customizedToast(getLayoutInflater(), getView(), getText(R.string.reboke_action).toString(), getContext().getDrawable(R.drawable.ic_error_vector));\n }", "public void insert()\n {\n CInsertUser cInsertUser = new CInsertUser();\n window.dispose();\n }", "int insert(UmsMenu record);", "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}", "@Override\n\t\tpublic void insert() {\n\t\t\tSystem.out.println(\"새로운 등록\");\n\t\t}", "public void insert()\n\t{\n\t}", "private void insertPerform(){\n \tif(!verify()){\n \t\treturn;\n \t}\n \tString val=new String(\"\");\n \tval=val+\"'\"+jTextField1.getText()+\"', \"; // poNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker1.getValue()\n \t\t)\n \t\t+\"', \"; // poDate\n \tval=val+\"'\"+vndList[jTextField2.getSelectedIndex()-1]+\"', \"; // vndNo\n \tval=val+\"'\"+jTextField3.getText()+\"', \"; // qtnNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker2.getValue()\n \t\t)\n \t\t+\"', \"; // qtnDate\n \tval=val+\"'\"+poAmount+\"', \"; // poTotal\n \tval=val+\"'pending', \"; // poStatus\n \tval=val+\"'\"+jEditorPane1.getText()+\"' \"; // remark\n \t\n \ttry{\n \t\tdbInterface1.cmdInsert(\"poMaster\", val);\n \t\tinsertPoBomDesc();\n \t\tinsertPoDesc();\n\t \tupdateBOM();\n \t}\n \tcatch(java.sql.SQLException ex){\n \t\tSystem.out.println (ex);\n \t}\n \tresetPerform();\n }", "public String onNew() {\n final DataTableCRUDRow<R> row = getModel().createRow(getModel().newElementInstance());\n getModel().getRows().add(0, row);\n getModel().setRowClicked(row);\n row.setNewRow(true);\n row.setReadonly(false);\n return \"\";\n }", "public void insert(TbAdminMenu record) {\n getSqlMapClientTemplate().insert(\"tb_admin_menu.ibatorgenerated_insert\", record);\n }", "private void insertEntry() {\n String desiredId = idField.getText();\n String desiredName = nameField.getText();\n String desiredMajor = majorField.getText();\n\n if (studentHashMap.containsKey(desiredId)) {\n this.displayStatusPanel(\n \"Error: A student with this information already exists.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n } else {\n studentHashMap.put(desiredId, new Student(desiredName, desiredMajor));\n\n this.displayStatusPanel(\n \"Success: \" + desiredName + \" has been added.\",\n \"Success\",\n JOptionPane.INFORMATION_MESSAGE\n );\n }\n }", "public static void doInsertValue(RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\t\tParameterParser params = data.getParameters ();\n\n\t\tcaptureMultipleValues(state, params, false);\n\n\t\tMap current_stack_frame = peekAtStack(state);\n\n\t\tString field = params.getString(\"field\");\n\n\t\tEditItem item = null;\n\t\tString mode = (String) state.getAttribute(STATE_MODE);\n\t\tif (MODE_CREATE.equals(mode))\n\t\t{\n\t\t\tint index = params.getInt(\"index\");\n\n\t\t\tList new_items = (List) current_stack_frame.get(STATE_STACK_CREATE_ITEMS);\n\t\t\tif(new_items != null)\n\t\t\t{\n\t\t\t\titem = (EditItem) new_items.get(index);\n\t\t\t}\n\t\t}\n\t\telse if(MODE_EDIT.equals(mode))\n\t\t{\n\t\t\titem = (EditItem) current_stack_frame.get(STATE_STACK_EDIT_ITEM);\n\t\t}\n\n\t\tif(item != null)\n\t\t{\n\t\t\taddInstance(field, item.getProperties());\n\t\t}\n\n\t}", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n executeInsert();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tInputDialog id1=new InputDialog(sShell,\"新增员工\",\"输入员工信息,用空格分开,例如:001 Manager Tommy f 312039\",\"\",null);\r\n\t\t\t\tif(id1.open()==0){\r\n\t\t\t\t\tinput=id1.getValue();\r\n\t\t\t\t\tif(input.equals(\"\")) return;\r\n\t\t\t\t}\r\n\t\t\t\telse return;\r\n\t\t\t\tString str[]=input.split(\" \");\r\n\t\t\t\tCommonADO ado=CommonADO.getCommonADO();\r\n\t\t\t\tString sql=\"insert into Staff values('\"+str[0]+\"','\"+str[1]+\"','\"+str[2]+\"','\"+str[3]+\"','\"+str[4]+\"')\";\r\n\t\t\t\tado.executeUpdate(sql);\r\n\t\t\t\tshowStaff();\r\n\t\t\t}", "int insert(AdminTab record);", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}", "private void addBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addBtnMouseClicked\n\n String id = pidTxt.getText().toString();\n String name = pnameTxt.getText().toString();\n String price = pperpriceTxt.getText().toString();\n String quantity = pquanityTxt.getText().toString();\n String date = pdateTxt.getText().toString();\n\n try {\n String Query = \"INSERT INTO `stock` (`Product_ID`, `Product_Name`,`Quantity`, `Entry_Date`,`Price`) VALUES (?, ?, ?, ?, ?)\";\n\n pstm = con.prepareStatement(Query);\n\n pstm.setInt(1, Integer.parseInt(id));\n pstm.setString(2, name);\n pstm.setInt(3, Integer.parseInt(quantity));\n pstm.setString(4, date);\n pstm.setInt(5, Integer.parseInt(price));\n pstm.executeUpdate();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Data Insertion Failed \");\n }\n refTable();\n\n\n }", "public abstract void insert(DataAction data, DataRequest source) throws ConnectorOperationException;", "int insert(QtActivitytype record);", "@Override\n\t\tpublic void insertar() {\n\t\t\tutilitario.getTablaisFocus().insertar();\n\n\t\t}", "public void addData() {\n boolean isInserted = my_db.insertData(\"LIC\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"LIC inserted\", Toast.LENGTH_SHORT).show();\n\n }\n isInserted = my_db.insertData(\"Mutual Fund\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"Mutual Fund inserted\", Toast.LENGTH_SHORT).show();\n\n }\n isInserted = my_db.insertData(\"Mediclaim\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"Mediclaim inserted\", Toast.LENGTH_SHORT).show();\n\n }\n }", "@FXML\n private void handleNewPerson() {\n Shops tempShops = new Shops();\n boolean okClicked = mainApp.showPersonEditDialog(tempShops);\n if (okClicked) {\n mainApp.getPersonData().add(tempShops);\n }\n }", "public void enterEmpsInInsertMode(){\n EmployeesViewImpl emps=(EmployeesViewImpl)this.getEmployeesView1();\n \n emps.executeEmptyRowSet(); // executeEmpty RowSet in order not to fetch Data.\n \n Row newRow=emps.createRow();\n \n emps.insertRow(newRow);\n \n emps.setCurrentRow(newRow);\n \n }", "int insertSelective(AdminTab record);", "private void insertLatestData() {\n String[] names = new String[feedbacks.size()];\n String[] ratings = new String[feedbacks.size()];\n String[] reviews = new String[feedbacks.size()];\n for (int i = 0; i < feedbacks.size(); i++) {\n names[i] = \"Name: \" + feedbacks.get(i).getName();\n ratings[i] = \"Rating: \" + feedbacks.get(i).getRatingBar();\n reviews[i] = \"Review: \" + feedbacks.get(i).getReview();\n }\n feedbackListAdapter = new FeedbackListAdapter(ViewPsmFeedbackActivity.this, names, ratings, reviews);\n listFeedback.setAdapter(feedbackListAdapter);\n }", "int insert(UsrMmenus record);", "private void insertButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN\n // -\n // FIRST\n // :\n // event_insertButtonActionPerformed\n int rowIndex = headerTable.getSelectedRow();\n if (rowIndex > -1) {\n insertRow(rowIndex);\n } else {\n insertRow(_tableModel.getRowCount());\n }\n }", "public void addButtonClicked(){\n Products products = new Products(buckysInput.getText().toString());\n dbHandler.addProduct(products);\n printDatabase();\n }", "int insertSelective(MenuInfo record);", "public void btnInsertColumn() {\n\t\t\n\t\tboolean contains = musicApp.insertNewTimeBlock();\n\t\tif(contains) {\n\t\t\tlblErrorMsg.setText(\"The track contains work you don't currently have. Please refresh before inserting sound.\");\n\t\t} else {\n\t\t\tmusicApp.updateViews();\n\t\t\tupdatePositionChoice();\n\t\t}\n\t}", "public void doPositiveClick() {\n\t\t//Shows message that contact added to database. \n\t\tToast.makeText(this, \"Контакт сохранен\", Toast.LENGTH_SHORT).show();\n\t\taddRecord();\n\t}", "public native void insertData(double offset, String arg) /*-{\r\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\r\n\t\tjso.insertData(offset, arg);\r\n }-*/;", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }", "public void insert(String newitem) {\n\t\t// TODO Write me!\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tSystem.out.println(\"新增用户\");\r\n\t\t\t\tInputDialog id1=new InputDialog(sShell,\"新增用户\",\"输入用户信息,用空格分开,例如:pdl 666 管理员\",\"\",null);\r\n\t\t\t\tif(id1.open()==0){\r\n\t\t\t\t\tinput=id1.getValue();\r\n\t\t\t\t\tif(input.equals(\"\")) return;\r\n\t\t\t\t}\r\n\t\t\t\telse return;\r\n\t\t\t\tString str[]=input.split(\" \");\r\n\t\t\t\tCommonADO ado=CommonADO.getCommonADO();\r\n\t\t\t\tString sql=\"insert into Users values('\"+str[0]+\"','\"+str[1]+\"','\"+str[2]+\"')\";\r\n\t\t\t\tado.executeUpdate(sql);\r\n\t\t\t\tshowUser();\r\n\t\t\t}", "private void addNewFoodItemRefresh() {\n // create a foodItem instance with input information\n FoodItem foodItem = new FoodItem(id.getText(), name.getText());\n foodItem.addNutrient(\"calories\", Double.valueOf(calories.getText()));\n foodItem.addNutrient(\"fat\", Double.valueOf(fat.getText()));\n foodItem.addNutrient(\"carbohydrate\", Double.valueOf(carbohydrate.getText()));\n foodItem.addNutrient(\"fiber\", Double.valueOf(fiber.getText()));\n foodItem.addNutrient(\"protein\", Double.valueOf(protein.getText()));\n this.foodData.addFoodItem(foodItem);// add it to the food data to store\n this.close();// close the addfooditem stage\n this.foodList.refreshAfterAdd(foodItem);// refresh the foodList\n\n }", "public void btnAddClicked(View view){\n List list = new List(input.getText().toString());\n dbHandler.addProduct(list);\n printDatabase();\n }", "private void addInsertOp() {\n\n if (!mIsNewAlert) {\n mValues.put(AlertContentProvider.KEY_ALERT_ID, mRawAlertId);\n }\n ContentProviderOperation.Builder builder =\n newInsertCpo(Data.CONTENT_URI, mIsSyncOperation, mIsYieldAllowed);\n builder.withValues(mValues);\n if (mIsNewAlert) {\n builder.withValueBackReference(AlertContentProvider.KEY_ALERT_ID, mBackReference);\n }\n mIsYieldAllowed = false;\n mBatchOperation.add(builder.build());\n }", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "public void insert(){\r\n\t\tString query = \"INSERT INTO liveStock(name, eyeColor, sex, type, breed, \"\r\n\t\t\t\t+ \"height, weight, age, furColor, vetNumber) \"\r\n\t\t\t\t+ \"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) \";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tPreparedStatement prepareStatement = conn.prepareStatement(query);\r\n\t\t\t\r\n\t\t\tprepareStatement.setString(1, liveStock.getName());\r\n\t\t\tprepareStatement.setString(2, liveStock.getEyeColor());\r\n\t\t\tprepareStatement.setString(3, liveStock.getSex());\r\n\t\t\tprepareStatement.setString(4, liveStock.getAnimalType());\r\n\t\t\tprepareStatement.setString(5, liveStock.getAnimalBreed());\r\n\t\t\tprepareStatement.setString(6, liveStock.getHeight());\r\n\t\t\tprepareStatement.setString(7, liveStock.getWeight());\r\n\t\t\tprepareStatement.setInt(8, liveStock.getAge());\r\n\t\t\tprepareStatement.setString(9, liveStock.getFurColor());\r\n\t\t\tprepareStatement.setInt(10, liveStock.getVetNumber());\r\n\t\t\t\r\n\t\t\tprepareStatement.execute();\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}", "@Override\r\n\tpublic void insertar() {\n\t\ttab_nivel_funcion_programa.insertar();\r\n\t\t\t\r\n\t\t\r\n\t}", "public void insert(KeyedItem newItem);", "@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tInputDialog id1=new InputDialog(sShell,\"新增商品\",\"输入商品信息,用空格分开,例如:001 方便面 6.8\",\"\",null);\r\n\t\t\t\tif(id1.open()==0){\r\n\t\t\t\t\tinput=id1.getValue();\r\n\t\t\t\t\tif(input.equals(\"\")) return;\r\n\t\t\t\t}\r\n\t\t\t\telse return;\r\n\t\t\t\tString str[]=input.split(\" \");\r\n\t\t\t\tCommonADO ado=CommonADO.getCommonADO();\r\n\t\t\t\tString sql=\"insert into Goods values('\"+str[0]+\"','\"+str[1]+\"','\"+str[2]+\"')\";\r\n\t\t\t\tado.executeUpdate(sql);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tcompositeGoodsShow.dispose();\t\t\t\t\r\n\t\t\t\tcreateCompositeGoodsShow();\r\n\t\t\t\t\r\n\t\t\t\tcompositeGoodsMange.layout(true);\r\n\t\t\t\t//compositeGoodsShow.layout(true);\r\n\t\t\r\n\t\t\t}", "private void saveData(){\n\t\tdataBase=mHelper.getWritableDatabase();\n\t\tContentValues values=new ContentValues();\n\t\t\n\t\tvalues.put(DbHelper.KEY_NNAME,nname);\n\t\t//values.put(DbHelper.KEY_LNAME,lname );\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tif(isUpdate)\n\t\t{ \n\t\t\t//update database with new data \n\t\t\tdataBase.update(DbHelper.TABLE_NOTE, values, DbHelper.KEY_ID+\"=\"+id, null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//insert data into database\n\t\t\tdataBase.insert(DbHelper.TABLE_NOTE, null, values);\n\t\t}\n\t\t//close database\n\t\tdataBase.close();\n\t\tfinish();\n\t\t\n\t\t\n\t}", "public void insert() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "@FXML\n private void addNewCoach() {\n try {\n Connection conn = DatabaseHandler.getInstance().getConnection();\n try (Statement st = conn.createStatement()) {\n st.execute(\"insert into szkolka.uzytkownik(imie, nazwisko, id_tu) values('\" +\n coachName.getText() + \"', '\" + coachSurname.getText() + \"', 2);\");\n st.close();\n coachName.setText(\"\");\n coachSurname.setText(\"\");\n setCoachesTable();\n }\n } catch (SQLException e) {\n warningText.setVisible(true);\n }\n }", "@org.junit.Test\r\n\tpublic void insert() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"/org/save\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"name\", \"112\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t\tSystem.out.println(string);\r\n\t}", "public void doAdd() {\r\n\t\tif (_mode == MODE_LIST_ON_PAGE && _listForm != null) {\r\n\t\t\tDataStoreBuffer listDs = _listForm.getDataStore();\r\n\t\t\tDataStoreBuffer ds = getDataStore();\r\n\t\t\tif (listDs == ds && ds != null) {\r\n\t\t\t\t//same datastore on list and detail\r\n\t\t\t\tif (ds.getRowCount() > 0 && (ds.getRowStatus() == DataStoreBuffer.STATUS_NEW))\r\n\t\t\t\t\treturn;\r\n\r\n if (ds.getRowStatus() == DataStoreBuffer.STATUS_NEW_MODIFIED) ds.deleteRow();\r\n if (isDataModified()) undoChanges();\r\n\r\n\t\t\t\tds.insertRow();\r\n\t\t\t\tif (_listForm.getDataTable() != null) {\r\n\t\t\t\t\tJspDataTable tab = _listForm.getDataTable();\r\n\t\t\t\t\tif (!tab.isRowOnPage(ds.getRowCount() - 1))\r\n\t\t\t\t\t\ttab.setPage(tab.getPage(ds.getRowCount() - 1));\r\n\t\t\t\t}\r\n\t\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\t\tif (comp != null)\r\n\t\t\t\t\tcomp.setFocus();\r\n\t\t\t\tscrollToMe();\r\n\r\n\t\t\t} else if (_ds != null) {\r\n\t\t\t\t//different datastores on list and detail\r\n\t\t\t\tif (listDs != null)\r\n\t\t\t\t\tlistDs.clearSelectedRow();\r\n\t\t\t\t_listSelectedRow = null;\r\n\t\t\t\t_ds.reset();\r\n\t\t\t\t_ds.insertRow();\r\n\t\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\t\tif (comp != null)\r\n\t\t\t\t\tcomp.setFocus();\r\n\t\t\t\tscrollToMe();\r\n\t\t\t}\r\n\t\t\tsetVisible(true);\r\n\t\t} else {\r\n\t\t\t_listSelectedRow = null;\r\n\t\t\t_ds.reset();\r\n\t\t\t_ds.insertRow();\r\n\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\tif (comp != null)\r\n\t\t\t\tcomp.setFocus();\r\n\t\t\tscrollToMe();\r\n\t\t}\r\n\t}", "public void databaseinsert() {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tSite site = new Site(Sid.getText().toString().trim(), Scou.getText().toString().trim());\n\t\tlong rowId = dbHlp.insertDB(site);\n\t\tif (rowId != -1) {\n\t\t\tsb.append(getString(R.string.insert_success));\n\n\t\t} else {\n\n\t\t\tsb.append(getString(R.string.insert_fail));\n\t\t}\n\t\tToast.makeText(Stu_state.this, sb, Toast.LENGTH_SHORT).show();\n\t}", "public long insertNewRow(){\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_PAIN_ASSESSMENT_NUM, \"0\");\n initialValues.put(KEY_ANALGESIC_PRES_NUM, \"0\");\n initialValues.put(KEY_ANALGESIC_ADMIN_NUM, \"0\");\n initialValues.put(KEY_NERVE_BLOCK_NUM, \"0\");\n initialValues.put(KEY_ALTERNATIVE_PAIN_RELIEF_NUM, \"0\");\n long id = db.insert(DATA_TABLE, null, initialValues);\n\n String value = MainActivity.deviceID + \"-\" + id;\n updateFieldData(id, KEY_UNIQUEID, value);\n\n return id;\n }", "public void InsertData(View v){\n boolean isInserted = myDB.insertData(et_name.getText().toString(), et_surname.getText().toString(), et_marks.getText().toString());\n\n // if the data is inserted successfully\n if(isInserted){\n Toast.makeText(getApplicationContext(), \"Data inserted.\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(), \"Data insertion failure.\", Toast.LENGTH_LONG).show();\n }\n }", "public void addButton()\n\t{\n\t\tdriver.findElement(By.xpath(\"//input[@name='Insert']\")).click();\n\t}", "public void insertData(String id) {\n\t\tContentValues values = new ContentValues();\r\n\t\tvalues.put(FeedEntry.COLUMN_NAME_NUMBER_ID, id);\r\n\r\n\t\t// Insert the new row, returning the primary key value of the new row\r\n\t\tnew insertDataTask().execute(values);\r\n\t}", "public void addData(final String name,final int phone){\n boolean isInserted = myDb.insertData(name,phone);\n if (isInserted =true){\n builder.setTitle(\" User Created Successfully\");\n builder.setMessage(\" Name : \"+ name +\"\\n Phone : +265\"+ phone);\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ///// go to general assessment///////\n\n mainActivity();\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }\n else {\n builder.setTitle(\"User Creation\");\n builder.setMessage(\"Response : Sorry Error occured!! Try again \" );\n builder.setNegativeButton(\"Try Again\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }\n }", "public void insertEntry(String type, String name, String label, String command) {\n try {\n ContentValues newValues = new ContentValues();\n\n // Assign values for each column.\n newValues.put(Constants.MODULE_TYPE, type);\n newValues.put(Constants.MODULE_NAME, name);\n newValues.put(Constants.MODULE_LABEL, label);\n newValues.put(Constants.MODULE_COMMAND, command);\n\n // Insert the row into your table.\n db = dbHelper.getWritableDatabase();\n\n db.insert(Constants.MODULE_TABLE_NAME, null, newValues);\n db.close();\n\n Toast.makeText(context, context.getString(R.string.module_added), Toast.LENGTH_LONG).show();\n }\n catch (Exception e) {\n e.getStackTrace();\n }\n }", "private void addNewCommunicationData(){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getContext());\n // Set title, icon, can not cancel properties.\n alertDialogBuilder.setTitle(\"Add new Record\");\n alertDialogBuilder.setIcon(R.drawable.logo);\n alertDialogBuilder.setCancelable(false);\n\n // Init popup dialog view and it's ui controls.\n initPopupViewControls();\n\n //loading spinner with data\n initializeSpinner();\n // Set the inflated layout view object to the AlertDialog builder.\n alertDialogBuilder.setView(popupInputDialogView);\n\n dateOfBirthPicker();\n\n // Create AlertDialog and show.\n final AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n\n // When user click the save user data button in the popup dialog.\n _saveFamilyMember.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n // Get user data from popup dialog editeext.\n String interactionType = _interactionTypeSpinner.getSelectedItem() + \"\";\n String details = _details.getText().toString();\n String specialNote = _specialNote.getText().toString();\n String nextActionType = _nextActionTypeSpinner.getSelectedItem() + \"\";\n String nextActionDate = _nextActionDate.getText().toString();\n String nextMeetingLocation = _nextMeetingLocation.getText().toString();\n\n CommunicationDM.SpecificCommRecord specificCommRecord = new CommunicationDM.SpecificCommRecord();\n specificCommRecord.setInteractionType(interactionType);\n specificCommRecord.setInteractionDate(TimeUtils.getToday());\n specificCommRecord.setAgentId(Session.getSeassionData().getId() + \"\");\n specificCommRecord.setDetails(details);\n specificCommRecord.setSpecialNote(specialNote);\n specificCommRecord.setActionType(nextActionType);\n specificCommRecord.setDate(nextActionDate);\n specificCommRecord.setLocation(nextMeetingLocation);\n specificCommRecord.setLName(Session.getSeassionData().getName());\n\n //TODO: Need to write code for add data to server\n commList.add(specificCommRecord);\n\n\n addNewCommunicationRecord(((ClientDetails) getActivity()).getMemberProfile().getGeneralInfo().getLandownerName(),interactionType,\n TimeUtils.getToday(),details,specialNote,nextActionType,Session.getSeassionData().getName(),nextActionDate,nextMeetingLocation);\n\n adapter.notifyDataSetChanged();\n alertDialog.cancel();\n }\n });\n\n _cancelInput.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n alertDialog.cancel();\n }\n });\n }", "public void insert(final String des,final String text1,final String text2,final String text3,final String text4,final String text5){\n\r\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n DatabaseReference poll = df.child(\"poll\").child(companyId);\r\n final String key = poll.push().getKey();\r\n DatabaseReference myDF = poll.child(key) ;\r\n int c = count + 2 ;\r\n\r\n Map<String , Object> poll_map = new HashMap<>();\r\n\r\n poll_map.put(\"des\",des);\r\n poll_map.put(\"name\",name);\r\n poll_map.put(\"count\",c+\"\");\r\n\r\n poll_map.put(\"text1\",text1);\r\n poll_map.put(\"text2\",text2);\r\n poll_map.put(\"text3\",text3);\r\n poll_map.put(\"text4\",text4);\r\n poll_map.put(\"text5\",text5);\r\n\r\n poll_map.put(\"textC1\",0+\"\");\r\n poll_map.put(\"textC2\",0+\"\");\r\n poll_map.put(\"textC3\",0+\"\");\r\n poll_map.put(\"textC4\",0+\"\");\r\n poll_map.put(\"textC5\",0+\"\");\r\n\r\n\r\n myDF.updateChildren(poll_map)\r\n .addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n notification = df.child(\"notifications\").child(companyId);\r\n for(String s : strings){\r\n String key = notification.child(s).push().getKey();\r\n\r\n notification.child(s).child(key).child(\"name\").setValue(\"A new poll has been created !\");\r\n\r\n }\r\n\r\n\r\n Toast.makeText(getApplicationContext(),\"Poll created\",Toast.LENGTH_SHORT).show();\r\n\r\n pollDescriptionText.setText(\"\");\r\n option1Text.setText(\"\");\r\n option2Text.setText(\"\");\r\n\r\n if(count>=1){\r\n //text3 = option3Text.getText().toString();\r\n option3Text.setText(\"\");\r\n\r\n }\r\n if(count>=2){\r\n //text4 = option4Text.getText().toString();\r\n option4Text.setText(\"\");\r\n\r\n }\r\n if(count>=3){\r\n //text5 = option5Text.getText().toString();\r\n option5Text.setText(\"\");\r\n\r\n }\r\n\r\n\r\n\r\n }\r\n else {\r\n\r\n\r\n }\r\n\r\n //loading.dismiss();\r\n }\r\n });\r\n\r\n }\r\n });\r\n\r\n builder.setNegativeButton(\"no\",null);\r\n\r\n builder.setTitle(\"Create Poll\");\r\n builder.setMessage(\"Are you sure to create poll?\");\r\n\r\n AlertDialog alertDialog = builder.create();\r\n alertDialog.show();\r\n\r\n\r\n\r\n\r\n }", "private void jButtonInsertRowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonInsertRowActionPerformed\n // TODO add your handling code here:\n \n try {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n ActivityTypeTable at = new ActivityTypeTable(jTextFieldActivityType.getText(),\n sdf.format(jDateChooserStart.getDate()), sdf.format(jDateChooserEnd.getDate()));\n dm.insertActivity(at);\n JOptionPane.showMessageDialog(new JFrame(), \"New Row is Inserted \", \"Completed\", JOptionPane.INFORMATION_MESSAGE);\n\n } catch (SQLException | HeadlessException ex) {\n System.out.println(ex.getMessage());\n JOptionPane.showMessageDialog(new JFrame(), \"An SQL Exception was thrown: \\n\" + ex.getMessage(), \"SQL Exception\", JOptionPane.ERROR_MESSAGE);\n\n } catch (Exception e) {\n System.out.println(e.getMessage());\n JOptionPane.showMessageDialog(new JFrame(), \"Please Type in Correct Values\", \"Incorrect/Null Vaules\", JOptionPane.ERROR_MESSAGE);\n }\n\n }", "public int insertDictData(SysDictData dictData);", "private void saveData() {\n try {\n Student student = new Student(firstName.getText(), lastName.getText(),\n form.getText(), stream.getText(), birth.getText(),\n gender.getText(), Integer.parseInt(admission.getText()),\n Integer.parseInt(age.getText()));\n\n\n if (action.equalsIgnoreCase(\"new\") && !assist.checkIfNull(student)) {\n\n dao.insertNew(student);\n JOptionPane.showMessageDialog(null, \"Student saved !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n\n } else if (action.equalsIgnoreCase(\"update\") && !assist.checkIfNull(student)) {\n dao.updateStudent(student, getSelected());\n JOptionPane.showMessageDialog(null, \"Student Updated !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n }\n\n prepareTable();\n prepareHistory();\n buttonSave.setVisible(false);\n admission.setEditable(true);\n }catch (Exception e)\n {}\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\ttry {\n\t\t\t\tinsert();\n\t\t\t} catch (MyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "int insert(HelpInfo record);", "public InsertDataAction() {\n\t\tsuper();\n\t}", "public static void inserttea() {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"insert into teacher values ('\"+teaid+\"','\"+teaname+\"','\"+teabirth+\"','\"+protitle+\"','\"+cno+\"')\");\n\t\t\tSystem.out.println(\"cno:\"+cno);\n\t\t\tps.executeUpdate();\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"教师记录添加成功!\", \"提示消息\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}catch (Exception e){\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"数据添加异常!\", \"提示消息\", JOptionPane.ERROR_MESSAGE);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private Widget getNewDataButton(final ExecutionTrace previousEx, final Scenario scenario) {\n\t\tImage newItem = new ImageButton(\"images/new_item.gif\", \"Add a new data input to this scenario.\", new ClickListener() {\n\t\t\tpublic void onClick(Widget w) {\n\n\t\t\t\tfinal FormStylePopup pop = new FormStylePopup(\"images/rule_asset.gif\", \"New input\");\n\n\t\t final ListBox factTypes = new ListBox();\n\t\t for (int i = 0; i < sce.factTypes.length; i++) {\n\t\t factTypes.addItem(sce.factTypes[i]);\n\t\t }\n\t\t final TextBox factName = new TextBox();\n\t\t factName.setVisibleLength(5);\n\n\t\t Button add = new Button(\"Add\");\n\t\t add.addClickListener(new ClickListener() {\n\t\t\t\t\tpublic void onClick(Widget w) {\n\t\t\t\t\t\tString fn = (\"\" + factName.getText()).trim();\n\t\t\t\t\t\tif (fn.equals(\"\")\n\t\t\t\t\t\t\t\t|| factName.getText().indexOf(' ') > -1) {\n\t\t\t\t\t\t\tWindow.alert(\"You must enter a valid fact name.\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (scenario.isFactNameExisting(fn)) {\n\t\t\t\t\t\t\t\tWindow.alert(\"The fact name [\" + fn + \"] is already in use. Please choose another name.\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tscenario.insertBetween(previousEx, new FactData(factTypes.getItemText(factTypes.getSelectedIndex()), factName.getText(), new ArrayList(), false ));\n\t\t\t\t\t\t\t\trenderEditor();\n\t\t\t\t\t\t\t\tpop.hide();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t HorizontalPanel insertFact = new HorizontalPanel();\n\t\t insertFact.add(factTypes); insertFact.add(new SmallLabel(\"Fact name:\")); insertFact.add(factName); insertFact.add(add);\n\t\t pop.addAttribute(\"Insert a new fact:\", insertFact);\n\n\t\t List varsInScope = scenario.getFactNamesInScope(previousEx, false);\n\t\t //now we do modifies & retracts\n\t\t if (varsInScope.size() > 0) {\n\t\t \tfinal ListBox modifyFacts = new ListBox();\n\t\t\t for (int j = 0; j < varsInScope.size(); j++) { modifyFacts.addItem((String) varsInScope.get(j));}\n\t\t\t add = new Button(\"Add\");\n\t\t\t add.addClickListener(new ClickListener() {\n\t\t\t\t\t\tpublic void onClick(Widget w) {\n\t\t\t\t\t\t\tString fn = modifyFacts.getItemText(modifyFacts.getSelectedIndex());\n\t\t\t\t\t\t\tString type = (String) scenario.getVariableTypes().get(fn);\n\t\t\t\t\t\t\tscenario.insertBetween(previousEx, new FactData(type, fn, new ArrayList(), true));\n\t\t\t\t\t\t\trenderEditor();\n\t\t\t\t\t\t\tpop.hide();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t HorizontalPanel modifyFact = new HorizontalPanel();\n\t\t\t modifyFact.add(modifyFacts); modifyFact.add(add);\n\t\t\t pop.addAttribute(\"Modify an existing fact:\", modifyFact);\n\n\t\t\t //now we do retracts\n\t\t \tfinal ListBox retractFacts = new ListBox();\n\t\t\t for (int j = 0; j < varsInScope.size(); j++) { retractFacts.addItem((String) varsInScope.get(j));}\n\t\t\t add = new Button(\"Add\");\n\t\t\t add.addClickListener(new ClickListener() {\n\t\t\t\t\t\tpublic void onClick(Widget w) {\n\t\t\t\t\t\t\tString fn = retractFacts.getItemText(retractFacts.getSelectedIndex());\n\t\t\t\t\t\t\tscenario.insertBetween(previousEx, new RetractFact(fn));\n\t\t\t\t\t\t\trenderEditor();\n\t\t\t\t\t\t\tpop.hide();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t HorizontalPanel retractFact = new HorizontalPanel();\n\t\t\t retractFact.add(retractFacts); retractFact.add(add);\n\t\t\t pop.addAttribute(\"Retract an existing fact:\", retractFact);\n\n\n\t\t }\n\n\n\t\t\t\tpop.show();\n\n\t\t\t}\n\t\t});\n\n\t\treturn newItem;\n\t}", "@Override\r\n\tpublic String insert() {\n\t\tboolean mesg=false;\r\n\t\tif(adminDao.doSave(admin)==1)\r\n\t\t\tmesg=true;\r\n\t\tthis.setResultMesg(mesg, \"²åÈë\");\r\n\t\treturn SUCCESS;\r\n\t}", "public void popupAdd() {\n builder = new AlertDialog.Builder(getView().getContext());\n View views = getLayoutInflater().inflate(R.layout.departmentpopup, (ViewGroup) null);\n DepartmentName = (EditText) views.findViewById(R.id.department_name);\n DepartmentId = (EditText) views.findViewById(R.id.department_id);\n pbar =views.findViewById(R.id.departmentProgress);\n Button button =views.findViewById(R.id.save_depart);\n saveButton = button;\n button.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n addDeparatments();\n }\n });\n builder.setView(views);\n AlertDialog create =builder.create();\n dialog = create;\n create.show();\n }", "private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }", "void insert(String delta) {\n \n if (!acceptInsert(delta)) {\n clear();\n } \n \n int cursor = mDisplay.getSelectionStart();\n mDisplay.getText().insert(cursor, delta);\n \n }", "private void jbtn_addActionPerformed(ActionEvent evt) {\n\t\ttry {\n\t\t\tconn cc=new conn();\n \t\t//String query1=\"SELECT * FROM doctor\";\n \t\t//ResultSet rs=cc.st.executeQuery(query1);\n \t\tpst=cc.c.prepareStatement(\"insert into medicine(medicine_name,brand,mfd_date,expiry_date,price)value(?,?,?,?,?)\");\n \t\t\n \t\tpst.setString(1,jtxt_medname.getText());\n \t\tpst.setString(2,jtxt_brand.getText());\n \t\tpst.setString(3,jtxt_mfd.getText());\n \t\tpst.setString(4,jtxt_exp.getText());\n \t\tpst.setString(5,jtxt_price.getText());\n \t\t\n \t\tpst.executeUpdate();\n \t\tJOptionPane.showMessageDialog(this,\"Record Added\");\n \t\tupDateDB();\n \t\ttxtblank();\n \t\t\n\t\t}\n\t\t \n\t\t\n\t\tcatch (SQLException ex)\n\t\t{\n\t\t\tjava.util.logging.Logger.getLogger(show_doc.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t}\n\t\t\n\t}", "private void saveData() {\n\t\tthis.dh = new DataHelper(this);\n\t\tthis.dh.updateData(String.valueOf(mData.getText()), i.getId());\n\t\tthis.dh.close();\n\t\tToast\n\t\t\t\t.makeText(ctx, \"Changes saved successfully...\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\tIntent myIntent = new Intent(EditActivity.this, StartActivity.class);\n\t\tEditActivity.this.startActivity(myIntent);\n\t\tfinish();\n\t}", "public InsertUpdateDialog(String tableName, ArrayList<String> data, boolean inserting, JTable table) {\r\n\t\t\r\n\t\tsetBounds(20, 20, 800, 500);\r\n\t\t\r\n\t\tJLabel lblInsertData = new JLabel(\"Insert data\");\r\n\t\tlblInsertData.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\r\n\t\tif(!inserting)\r\n\t\t\tlblInsertData.setText(\"Update data\");\r\n\t\tlblInsertData.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tgetContentPane().add(lblInsertData, BorderLayout.NORTH);\r\n\t\t\r\n\t\tJPanel panelContent = new JPanel();\r\n\t\tpanelContent.setLayout(new BoxLayout(panelContent, BoxLayout.Y_AXIS));\r\n\t\t\r\n\t\t//START CREATING panelContent\r\n\t\tConnection con = null;\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tcon = JDBCConnector.getInstance();\r\n\t\t\tstmt = con.createStatement();\r\n\t\t\trs = stmt.executeQuery(\"select * from \"+tableName);\r\n\t\t\tint numberOfColumns = rs.getMetaData().getColumnCount();\r\n\t\t\tnames = new ArrayList<>();\r\n\t\t\ttypes = new ArrayList<>();\r\n\t\t\t//System.out.println(\"InsertUpdateDialog: \"+tableName);\r\n\t\t\t//System.out.println(\"Varchar = \"+Types.VARCHAR);\r\n\t\t\tfor(int i = 0; i<numberOfColumns; i++) {\r\n\t\t\t\tnames.add(rs.getMetaData().getColumnLabel(i+1));\r\n\t\t\t\ttypes.add(rs.getMetaData().getColumnType(i+1));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"SQLError in InsertUpdateDialog\");\r\n\t\t}finally {\r\n\t\t\ttry {\r\n\t\t\t\trs.close();\r\n\t\t\t\tstmt.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t} catch (SQLException e) {;}\r\n\t\t}\r\n\t\t\r\n\t\tif(names!=null){\r\n\t\t\titems = new ArrayList<>();\r\n\t\t\tfor(int i = 0; i<names.size(); i++) {\r\n\t\t\t\tItemPanel currentIPanel = null;\r\n\t\t\t\tif(inserting)\r\n\t\t\t\t\tcurrentIPanel = new ItemPanel(names.get(i), \"\");\r\n\t\t\t\telse\r\n\t\t\t\t\tcurrentIPanel = new ItemPanel(names.get(i), data.get(i));\r\n\t\t\t\titems.add(currentIPanel);\r\n\t\t\t\tpanelContent.add(currentIPanel);\r\n\t\t\t}\r\n\t\t}\r\n\t\tgetContentPane().add(panelContent, BorderLayout.CENTER);\r\n\t\t//END CREATING panelContent\r\n\t\t\r\n\t\tJPanel panelButtons = new JPanel();\r\n\t\tgetContentPane().add(panelButtons, BorderLayout.SOUTH);\r\n\t\t\r\n\t\tJButton btnSave = new JButton(\"Save\");\r\n\t\tbtnSave.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif(inserting) {\r\n\t\t\t\t\tArrayList<String> ftm = new ArrayList<>(); \r\n\t\t\t\t\tString insertString = \"insert into \"+tableName+\" values (\";\r\n\t\t\t\t\tfor(int i = 0;i<items.size();i++) {\r\n\t\t\t\t\t\tif(types.get(i)==Types.VARCHAR||types.get(i)==Types.TIME||types.get(i)==Types.DATE){\r\n\t\t\t\t\t\t\tinsertString+=\"'\"+items.get(i).getItemValue()+\"',\";\r\n\t\t\t\t\t\t\tftm.add(items.get(i).getItemValue());\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tinsertString+=items.get(i).getItemValue()+\",\";\r\n\t\t\t\t\t\t\tftm.add(items.get(i).getItemValue());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinsertString=insertString.substring(0, insertString.length()-1);\r\n\t\t\t\t\tinsertString+=\");\";\r\n\t\t\t\t\tSystem.out.println(Arrays.toString(ftm.toArray()));\r\n\t\t\t\t\tif(Utility.insert(insertString)){\r\n\t\t\t\t\t\t((DefaultTableModel)table.getModel()).addRow(ftm.toArray());\r\n\t\t\t\t\t}else{\r\n//\t\t\t\t\t\tJOptionPane.showMessageDialog(InsertUpdateDialog.this, \"Error during insertion of new data\", \"Message\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tString updateString = \"update \"+tableName+\" set \";\r\n\t\t\t\t\tArrayList<String> ftm = new ArrayList<>(); \r\n\t\t\t\t\tfor(int i = 0;i<items.size();i++) {\r\n\t\t\t\t\t\tif(types.get(i)==Types.VARCHAR||types.get(i)==Types.TIME||types.get(i)==Types.DATE){\r\n\t\t\t\t\t\t\tupdateString+=names.get(i)+\"='\"+items.get(i).getItemValue()+\"',\";\r\n\t\t\t\t\t\t\tftm.add(items.get(i).getItemValue());\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tupdateString+=names.get(i)+\"=\"+items.get(i).getItemValue()+\",\";\r\n\t\t\t\t\t\t\tftm.add(items.get(i).getItemValue());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tupdateString=updateString.substring(0, updateString.length()-1)+\" \";\r\n\t\t\t\t\t// ------------Not sure if it is right\r\n\t\t\t\t\tupdateString += \"where \" + names.get(0) + \"=\" + data.get(0);\r\n\t\t\t\t\t// ------------\r\n\t\t\t\t\tif (Utility.insert(updateString)) {\r\n\t\t\t\t\t\tint row = table.getSelectedRow();\r\n\t\t\t\t\t\tfor (int i = 0; i < table.getColumnCount(); i++) {\r\n\t\t\t\t\t\t\t((DefaultTableModel) table.getModel()).setValueAt(ftm.get(i), row, i);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n//\t\t\t\t\t\tJOptionPane.showMessageDialog(InsertUpdateDialog.this, \"Error during updating of data\",\r\n//\t\t\t\t\t\t\t\t\"Message\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t\tdispose();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\tpanelButtons.add(btnSave);\r\n\t\t\r\n\t\tJButton btnCancel = new JButton(\"Cancel\");\r\n\t\tbtnCancel.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tpanelButtons.add(btnCancel);\r\n\t\t\r\n\t\tsetModal(true);\r\n\t\tsetVisible(true);\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddNewItem();\n\t\t\t}", "public void onclick_add(MouseEvent mouseEvent) {\n\t\tUifEditCmd cmd = new UifEditCmd(\"ssoView\",DialogConstant.DEFAULT_WIDTH, DialogConstant.SIX_ELE_HEIGHT);\n\t\tAppLifeCycleContext.current().getWindowContext().addAppAttribute(\"operate\", \"add\");\n\t\tcmd.execute();\n//\t\tRow row = ds.getEmptyRow();\n//\t\tds.addRow(row);\n//\t\tds.setRowSelectIndex(ds.getRowIndex(row));\n//\t\tds.setEnabled(true);\n//\t\tnew UifUpdateOperatorState(ds, AppLifeCycleContext.current().getViewContext().getView()).execute();\n\t}", "public void addMenuItem(MenuItem newMenuItem){\n databaseGargoyle.createConnection();\n databaseGargoyle.executeUpdateOnDatabase(\"INSERT INTO MENUITEM VALUES (\" +\n \"'\" + newMenuItem.getFoodName() + \"', \" +\n \"'\" + newMenuItem.getDescription() + \"', \" +\n \"\" + newMenuItem.getStockAvailable() + \", \" +\n \"\" + newMenuItem.getCalories() + \", \" +\n \"'\" + newMenuItem.getVegan() + \"', \" +\n \"'\" + newMenuItem.getDiabetic() + \"', \" +\n \"'\" + newMenuItem.getGluttenFree() + \"', \" +\n \"\" + newMenuItem.getPrice() + \")\");\n databaseGargoyle.destroyConnection();\n }", "public void saveData(){\n\n if(addFieldstoLift()) {\n Intent intent = new Intent(SetsPage.this, LiftsPage.class);\n intent.putExtra(\"lift\", lift);\n setResult(Activity.RESULT_OK, intent);\n finish();\n }else{\n AlertDialog.Builder builder = new AlertDialog.Builder(SetsPage.this);\n builder.setCancelable(true);\n builder.setTitle(\"Invalid Entry\");\n builder.setMessage(\"Entry is invalid. If you continue your changes will not be saved\");\n builder.setPositiveButton(\"Continue\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n }", "int insert(WizardValuationHistoryEntity record);", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String name = name_et.getText().toString().trim();\n //String name = text.replaceAll(\"\\\\d+\", \"\").replaceAll(\"(.)([A-Z])\", \"$1 $2\");\n\n //adding new Person to database\n //Person addNewPerson = new Person(name);\n //reference.push().setValue(addNewPerson);\n }", "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "public void insertIntoProduct() {\n\t\ttry {\n\t\t\tPreparedStatement statement = connect.prepareStatement(addProduct);\n\t\t\tstatement.setString(1, productName);\n\t\t\tstatement.setString(2, quantity);\n\t\t\t\n\t\t\tstatement.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "@FXML\n public void save(ActionEvent event) throws SQLException {\n current.parseRole(roleTextBox.getText());\n \n current.setName(comboFkp.getValue());\n current.setTitle(comboFkm.getValue());\n \n if(inserting) {\n System.out.println(\"Inserting \" + current.getTitle() + \" \" + current.getName());\n // Precisa inserir dois booleanos no final, um para ator e um para diretor\n dh.insertPersonMidia(current.getTitle(), current.getName(), current.getActor(), current.getDirector());\n }\n\n closeWindow();\n }", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "int insert(PensionRoleMenu record);", "private void insert() {//将数据录入数据库\n\t\tUser eb = new User();\n\t\tUserDao ed = new UserDao();\n\t\teb.setUsername(username.getText().toString().trim());\n\t\tString pass = new String(this.pass.getPassword());\n\t\teb.setPassword(pass);\n\t\teb.setName(name.getText().toString().trim());\n\t\teb.setSex(sex1.isSelected() ? sex1.getText().toString().trim(): sex2.getText().toString().trim());\t\n\t\teb.setAddress(addr.getText().toString().trim());\n\t\teb.setTel(tel.getText().toString().trim());\n\t\teb.setType(role.getSelectedIndex()+\"\");\n\t\teb.setState(\"1\");\n\t\t\n\t\tif (ed.addUser(eb) == 1) {\n\t\t\teb=ed.queryUserone(eb);\n\t\t\tJOptionPane.showMessageDialog(null, \"帐号为\" + eb.getUsername()\n\t\t\t\t\t+ \"的客户信息,录入成功\");\n\t\t\tclear();\n\t\t}\n\n\t}", "public void saveData(){\n String name = editTextName.getText().toString();\n if(!name.isEmpty()){\n DataManager.getInstance().addName(name);\n }\n\n finish();\n }", "@Override\r\n \t\t\tpublic void onClick(ClickEvent event) {\n \t\t\t\tmovieProvider.getList().add(new Movie(\"\", 0, Language.English, \"\", \"\"));\r\n \t\t\t\tmovieTable.redraw();\r\n \t\t\t\t//movieProvider.refresh();\r\n \t\t\t\tWindow.alert(\"Added\");\r\n \t\t }", "@Override\n\tpublic void insertUserAndShopData() {\n\t\t\n\t}", "private void save1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_save1ActionPerformed\n\n //Save Button action\n //eid int\n //level int\n //rank int\n String lname = LectName.getText();\n String eid = EmpID.getText();\n String fac = faculty.getSelectedItem().toString();\n String dep = department.getSelectedItem().toString();\n String cent = center.getSelectedItem().toString();\n String build = building.getSelectedItem().toString();\n String lev = level.getSelectedItem().toString();\n String rnk = Rank.getText();\n\n try {\n\n String s = \"INSERT INTO lecturer (eid, lectur_name, faculty, department, center, building, lec_level, lec_rank) values ('\" + eid + \"', '\" + lname + \"', '\" + fac + \"', '\" + dep + \"', '\" + cent + \"', '\" + build + \"', '\" + lev + \"', '\" + rnk + \"')\";\n pst = con.prepareStatement(s);\n pst.execute();\n\n //load tabledetails after adding a new one\n lectureDetails();\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e);\n System.out.print(e);\n }\n\n }", "int insert(TbFreightTemplate record);", "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 insertRow(int index) {\n\t\tString[] array = new String[getColumnCount()];\n\t\tArrays.fill(array, \"\"); //$NON-NLS-1$\n\t\tinput.add(index, new ArrayList<String>(Arrays.asList(array)));\n\t\ttableViewer.refresh(false);\n\t\tfireTableModified();\n\t}", "public void createNewItem(ActionEvent actionEvent) {\n // we will create a new item instance here (ideally we would use another window for this)\n // and then we will simply addItem() to the currently selected list\n }" ]
[ "0.77630997", "0.67566514", "0.64136845", "0.63980186", "0.63954425", "0.6379605", "0.6308332", "0.622562", "0.6180285", "0.617511", "0.616489", "0.616421", "0.61361915", "0.61348796", "0.61049", "0.6098865", "0.60923404", "0.6079147", "0.60721654", "0.6065831", "0.6060833", "0.6053118", "0.60417414", "0.6039412", "0.60252243", "0.59871334", "0.5977677", "0.59751254", "0.5974491", "0.5974343", "0.59591866", "0.59400326", "0.59341633", "0.5929857", "0.5922844", "0.59137756", "0.5902692", "0.59018415", "0.5898884", "0.5873226", "0.5869329", "0.5865551", "0.58406544", "0.5833044", "0.5825044", "0.5822815", "0.5817758", "0.58138096", "0.5805529", "0.5805221", "0.5798532", "0.57955956", "0.57952315", "0.5782976", "0.5742108", "0.57381004", "0.5730639", "0.5712267", "0.57041675", "0.5700082", "0.5699308", "0.5697247", "0.5693697", "0.568956", "0.5689016", "0.5684372", "0.56640476", "0.5656121", "0.56560093", "0.5654638", "0.56521076", "0.5647681", "0.56405574", "0.563466", "0.5632552", "0.56253666", "0.5616663", "0.5616465", "0.5615352", "0.5605679", "0.56052023", "0.560174", "0.5598962", "0.5593297", "0.55929357", "0.5587017", "0.5583364", "0.55827993", "0.55692804", "0.55686235", "0.55676925", "0.55673677", "0.5565019", "0.55633616", "0.5563239", "0.5563164", "0.556298", "0.5562354", "0.5549219", "0.55461186" ]
0.71812534
1
Appends new data (invoked from popup menu)
private void popupMenuAppendData() { // // Display the dialog // AddDataDialog addDataDialog = new AddDataDialog(table.getShell(), Messages.HexEditorControl_48, HexEditorConstants.DIALOG_TYPE_APPEND); if (addDataDialog.open() != Window.OK) return; int[] addDialogResult = addDataDialog.getResult(); if (addDialogResult == null) { // // Cancel button pressed - do nothing // return; } // // Retrieve the parameters from the 'Insert' dialog // int dataSize = addDialogResult[0]; int dataValue = addDialogResult[1]; if (dataSize <= 0) return; // // Append new bytes into the table // appendData(dataSize, dataValue); // // Update the status panel // updateStatusPanel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addData();", "void addingGlobalData() {\n\n }", "private void addDataForListView() {\n \t\n \tif(loadable)\n \t{\t\n \tloadable = false;\n \tdirection = BACKWARD;\n \tstrUrl = Url.composeHotPageUrl(type_id, class_id, last_id);\n \trequestData();\n \t}\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}", "protected void shoAddNewDataEditor () {\n\t\t\n\t\t\n\t\tinstantiateDataForAddNewTemplate(new AsyncCallback< DATA>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// ini tidak mungkin gagal\n\t\t\t\t\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void onSuccess(final DATA result) {\n\t\t\t\teditorGenerator.instantiatePanel(new ExpensivePanelGenerator<BaseDualControlDataEditor<PK,DATA>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPanelGenerationComplete(\n\t\t\t\t\t\t\tBaseDualControlDataEditor<PK, DATA> widget) {\n\t\t\t\t\t\tconfigureAndPlaceEditorPanel(widget);\n\t\t\t\t\t\twidget.requestDoubleSubmitToken(null);\n\t\t\t\t\t\twidget.addAndEditNewData(result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}); \n\t\t\n\t\t\n\t}", "private void insertLatestData() {\n String[] names = new String[feedbacks.size()];\n String[] ratings = new String[feedbacks.size()];\n String[] reviews = new String[feedbacks.size()];\n for (int i = 0; i < feedbacks.size(); i++) {\n names[i] = \"Name: \" + feedbacks.get(i).getName();\n ratings[i] = \"Rating: \" + feedbacks.get(i).getRatingBar();\n reviews[i] = \"Review: \" + feedbacks.get(i).getReview();\n }\n feedbackListAdapter = new FeedbackListAdapter(ViewPsmFeedbackActivity.this, names, ratings, reviews);\n listFeedback.setAdapter(feedbackListAdapter);\n }", "public native void appendData(String arg) /*-{\r\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\r\n\t\tjso.appendData(arg);\r\n }-*/;", "public void addNewData(List<PublicPollResponseModel.Data> data) {\n //remove footer view\n this.removeFooterView(footer);\n //Add all data into the adapter\n adapter.addAll(data);\n //Notifies the attached observers that the underlying\n // data has been changed and any View reflecting the data set should refresh itself.\n adapter.notifyDataSetChanged();\n isLoading = false;\n }", "void addAllMenuItem_actionPerformed(ActionEvent e) {\n\n // open the profilefile and append the\n // score data for all articles\n filterAgent.addAllArticlesToProfile(articles);\n }", "private void addNewFoodItemRefresh() {\n // create a foodItem instance with input information\n FoodItem foodItem = new FoodItem(id.getText(), name.getText());\n foodItem.addNutrient(\"calories\", Double.valueOf(calories.getText()));\n foodItem.addNutrient(\"fat\", Double.valueOf(fat.getText()));\n foodItem.addNutrient(\"carbohydrate\", Double.valueOf(carbohydrate.getText()));\n foodItem.addNutrient(\"fiber\", Double.valueOf(fiber.getText()));\n foodItem.addNutrient(\"protein\", Double.valueOf(protein.getText()));\n this.foodData.addFoodItem(foodItem);// add it to the food data to store\n this.close();// close the addfooditem stage\n this.foodList.refreshAfterAdd(foodItem);// refresh the foodList\n\n }", "void addArticleMenuItem_actionPerformed(ActionEvent e) {\n\n // open the profile file and append the\n // score data for this article\n filterAgent.addArticleToProfile(currentArt);\n }", "public void saveData() {\n\t\t//place to save notes e.g to file\n\t}", "@Override\n\tpublic void addDataItem(FinanceData newdata) {\n\t\tlist_fr.add(0, newdata);\n\t}", "public void updateData() {}", "private synchronized void addNewWatchList()\r\n {\r\n\r\n // Create a NEW header Vector\r\n Vector headers = new Vector();\r\n headers.removeAllElements();\r\n for (int i = 0; i < StockData.columns.length; i++)\r\n {\r\n headers.addElement(StockData.columns[i]);\r\n }\r\n\r\n // Now get the Count of the Lists already available\r\n int watchListCount = tabPane.getTabCount();\r\n // Create a new DATA Vector and add at least one item to it\r\n Vector data = new Vector();\r\n data.removeAllElements();\r\n\r\n data.addElement(new StockData());\r\n\r\n // Create our table Model with the headers and data\r\n StockDataTableModel tableModel = new StockDataTableModel(headers, data);\r\n\r\n // Create a new Table with the tablemodel\r\n JTable table = new HGTable(tableModel);\r\n\r\n // This method will add a timer ( via the index ) the table and tableModel\r\n // the appropriate vector containers.\r\n addDataToVectorContainers(table, tableModel, watchListCount);\r\n // This Method will add the Popup menu to the this table\r\n addPopupMenuToTable(table);\r\n // Create a new JSCrollPane with the the Table\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.getViewport().add(table);\r\n JPanel panel = new JPanel(new BorderLayout());\r\n\r\n // Create a new Vertical Panel to place our menu and JScrollPane Table\r\n JPanel lblPanel = createVerticalPanel(true);\r\n\r\n lblPanel.add(createDropDownMenu());\r\n panel.add(lblPanel, BorderLayout.NORTH);\r\n panel.add(scrollPane, BorderLayout.CENTER);\r\n\r\n // Build a defailt label for the TabPane\r\n String watchListName = getString(\"WatchListTableModule.edit.watch_list_basic_name\") + watchListCount;\r\n\r\n tabPane.addTab(watchListName, null, panel, new String(\"Click here to view \" + watchListName));\r\n\r\n watchListCount = tabPane.getTabCount();\r\n // Set the WatchList title via Properties\r\n // Set the WatchList count Property\r\n appProps.setProperty(watchListName, watchListName);\r\n appProps.setProperty(getString(\"WatchListTableModule.application_watchlist_count_key_title\"), \"\" + watchListCount);\r\n\r\n //// Request Focus on our tab pane\r\n //tabPane.requestFocus();\r\n // Set our selected index to the new Tab\r\n int index = tabPane.getTabCount() - 1;\r\n setNewTitle(index);\r\n\r\n tabPane.setSelectedIndex(0);\r\n tabPane.repaint();\r\n\r\n }", "private void addNewCommunicationData(){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getContext());\n // Set title, icon, can not cancel properties.\n alertDialogBuilder.setTitle(\"Add new Record\");\n alertDialogBuilder.setIcon(R.drawable.logo);\n alertDialogBuilder.setCancelable(false);\n\n // Init popup dialog view and it's ui controls.\n initPopupViewControls();\n\n //loading spinner with data\n initializeSpinner();\n // Set the inflated layout view object to the AlertDialog builder.\n alertDialogBuilder.setView(popupInputDialogView);\n\n dateOfBirthPicker();\n\n // Create AlertDialog and show.\n final AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n\n // When user click the save user data button in the popup dialog.\n _saveFamilyMember.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n // Get user data from popup dialog editeext.\n String interactionType = _interactionTypeSpinner.getSelectedItem() + \"\";\n String details = _details.getText().toString();\n String specialNote = _specialNote.getText().toString();\n String nextActionType = _nextActionTypeSpinner.getSelectedItem() + \"\";\n String nextActionDate = _nextActionDate.getText().toString();\n String nextMeetingLocation = _nextMeetingLocation.getText().toString();\n\n CommunicationDM.SpecificCommRecord specificCommRecord = new CommunicationDM.SpecificCommRecord();\n specificCommRecord.setInteractionType(interactionType);\n specificCommRecord.setInteractionDate(TimeUtils.getToday());\n specificCommRecord.setAgentId(Session.getSeassionData().getId() + \"\");\n specificCommRecord.setDetails(details);\n specificCommRecord.setSpecialNote(specialNote);\n specificCommRecord.setActionType(nextActionType);\n specificCommRecord.setDate(nextActionDate);\n specificCommRecord.setLocation(nextMeetingLocation);\n specificCommRecord.setLName(Session.getSeassionData().getName());\n\n //TODO: Need to write code for add data to server\n commList.add(specificCommRecord);\n\n\n addNewCommunicationRecord(((ClientDetails) getActivity()).getMemberProfile().getGeneralInfo().getLandownerName(),interactionType,\n TimeUtils.getToday(),details,specialNote,nextActionType,Session.getSeassionData().getName(),nextActionDate,nextMeetingLocation);\n\n adapter.notifyDataSetChanged();\n alertDialog.cancel();\n }\n });\n\n _cancelInput.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n alertDialog.cancel();\n }\n });\n }", "private void appendData() {\n XYDataset tempdata = getDataset();\n\n XYSeriesCollection originaldata = (XYSeriesCollection) chartpanel.getChart().getXYPlot().getDataset();\n XYSeriesCollection newdata = (XYSeriesCollection) getDataset();\n\n addToDataSet(newdata, originaldata);\n tempdata = missingSeries(newdata, originaldata);\n\n XYSeriesCollection foo = (XYSeriesCollection) tempdata;\n int n = foo.getSeriesCount();\n for (int i = 0; i < n; i++) {\n originaldata.addSeries(foo.getSeries(i));\n }\n nullMissingPoints((XYSeriesCollection) chartpanel.getChart().getXYPlot().getDataset());\n }", "private void refreshDataPopup() {\n ObservableList<TblCompanyBalanceBankAccount> companyBalanceBankAccountSourceItems = FXCollections.observableArrayList(loadAllDataCompanyBalanceBankAccount(selectedBalance));\r\n cbpCompanyBalanceBankAccountSource.setItems(companyBalanceBankAccountSourceItems);\r\n\r\n //Company Balance - Bank Account (destination)\r\n ObservableList<TblCompanyBalanceBankAccount> companyBalanceBankAccountDestinationItems = FXCollections.observableArrayList(loadAllDataCompanyBalanceBankAccount(selectedBalance));\r\n cbpCompanyBalanceBankAccountDestination.setItems(companyBalanceBankAccountDestinationItems);\r\n }", "private void saveData() {\n }", "@Override\n public void refreshDataEntries() {\n }", "private void menuSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuSaveActionPerformed\n saveDataToFile();\n }", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "public void add(DataFile data) {\n dataFiles.add(data);\n super.fireTableDataChanged();\n }", "void updateData();", "private void populateRecentMenu(){\r\n\t\trecentMenu.removeAll();\r\n\t\tString[] files = BibtexPrefs.getOpenedFiles();\r\n\t\trecentMenuItems = new JMenuItem[files.length];\r\n\t\tfor(int i = 0; i < files.length; i++){\r\n\t\t\trecentMenuItems[i] = new JMenuItem(files[i]);\r\n\t\t\trecentMenuItems[i].addActionListener(this);\r\n\t\t\trecentMenu.add(recentMenuItems[i]);\r\n\t\t}\r\n\t}", "private void saveData() {\n\t\tthis.dh = new DataHelper(this);\n\t\tthis.dh.updateData(String.valueOf(mData.getText()), i.getId());\n\t\tthis.dh.close();\n\t\tToast\n\t\t\t\t.makeText(ctx, \"Changes saved successfully...\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\tIntent myIntent = new Intent(EditActivity.this, StartActivity.class);\n\t\tEditActivity.this.startActivity(myIntent);\n\t\tfinish();\n\t}", "void populateData();", "private void refreshData() {\n\r\n\t SfJdRecordFileModel model = (SfJdRecordFileModel) listCursor.getCurrentObject();\r\n\r\n\t if (model != null && !\"\".equals(ZcUtil.safeString(model.getModelId()))) {//列表页面双击进入\r\n\r\n\t this.pageStatus = ZcSettingConstants.PAGE_STATUS_BROWSE;\r\n\r\n\t model = getModel(model.getModelId());\r\n\t listCursor.setCurrentObject(model);\r\n\t this.setEditingObject(model);\r\n\t } else {//新增按钮进入\r\n\r\n\t this.pageStatus = ZcSettingConstants.PAGE_STATUS_NEW;\r\n\r\n\t model = new SfJdRecordFileModel();\r\n\t \r\n\t setDefaultValue(model);\r\n\r\n\t listCursor.getDataList().add(model);\r\n\r\n\t listCursor.setCurrentObject(model);\r\n\r\n\t this.setEditingObject(model);\r\n\r\n\t }\r\n\r\n\t refreshSubData();\r\n\t \r\n\t setOldObject();\r\n\r\n\t setButtonStatus();\r\n\r\n\t updateFieldEditorsEditable();\r\n\r\n\t }", "private void popupMenuInsertData(int rowIndex, int columnIndex) {\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tAddDataDialog addDataDialog = new AddDataDialog(parent.getShell(), Messages.HexEditorControl_47, HexEditorConstants.DIALOG_TYPE_INSERT);\n\t\tif (addDataDialog.open() != Window.OK)\n\t\t\treturn;\n\t\tint[] addDialogResult = addDataDialog.getResult();\n\n\t\tif (addDialogResult == null) {\n\t\t\t//\n\t\t\t// Cancel button pressed - do nothing\n\t\t\t//\n\t\t\treturn;\n\t\t}\n\n\t\t//\n\t\t// Retrieve the parameters from the 'Insert' dialog\n\t\t//\n\t\tint dataSize = addDialogResult[0];\n\t\tint dataValue = addDialogResult[1];\n\n\t\tif (dataSize <= 0) return;\n\n\t\t//\n\t\t// Insert new bytes into the table\n\t\t//\n\t\tinsertData(dataSize, dataValue, rowIndex, columnIndex - 1);\n\n\t\t//\n\t\t// Update the status panel\n\t\t//\n\t\tupdateStatusPanel();\n\t}", "private void addData() {\n Details d1 = new Details(\"Arpitha\", \"+91-9448907664\", \"25/05/1997\");\n Details d2 = new Details(\"Abhijith\", \"+91-993602342\", \"05/10/1992\");\n details.add(d1);\n details.add(d2);\n }", "public void appendChg(EPPSecDNSExtDsData dsData) {\n\t\tif (chgDsData == null) {\n\t\t\tchgDsData = new ArrayList();\n\t\t}\n\t\tchgDsData.add(dsData);\n }", "private void append_request(DataSnapshot dataSnapshot) {\n Iterator i = dataSnapshot.getChildren().iterator();\n //Go over all the requests\n while (i.hasNext()){\n\n //Add a new request iten to the list\n String message = (String) ((DataSnapshot)i.next()).getValue();\n String email = (String) ((DataSnapshot)i.next()).getValue();\n String newMessage= message ;\n //\" asked to join the group\"\n requestList.add(new requestItem(newMessage,email,activity_name));\n }\n request_item_adapter adapter = new request_item_adapter(this, R.layout.activity_request_item, requestList);\n //attaching adapter to the listview\n listView.setAdapter(adapter);\n }", "private void initData() {\n\t\tSetTopBarTitle(getString(R.string.os_jsh_wdj_add_ldss));\r\n\t\tregFliter();\r\n\t}", "public void add(String newData) {\r\n dataTag.add(0);\r\n data.add(newData);\r\n }", "public void Loadata(){ // fill the choice box\n stats.removeAll(stats);\n String seller = \"Seller\";\n String customer = \"Customer\";\n stats.addAll(seller,customer);\n Status.getItems().addAll(stats);\n }", "public void AddData(String newEntry) {\n boolean insertData = mDatabaseHelper.addData(newEntry);\n if (insertData) {\n toastMessage(\"Item Added to Shopping List!\");\n } else {\n toastMessage(\"Sorry, Please Try Again\");\n }\n\n }", "private void loadData(){\n Dh.refresh();\n }", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\tpublic void dataArrived() {\n\t\tnewSkillGetHandler.sendEmptyMessage(0);\n\t\tprogressDialog.dismiss();\n\t}", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "private void triggerAjouterChamp(JSONObject item) {\n this.listViewChampAdapter.add(item);\n }", "private void updateListViewLogWindow()\n {\n listViewMessageItems.clear();\n\n for(int i =0;i<= printResult.size() - 1;i++)\n {\n listViewMessageItems.add(printResult.get(i));\n }\n\n }", "public void updateMenusRegardingGPSData() {\r\n\t\tthis.menuBar.updateAdditionalGPSMenuItems();\r\n\t\tthis.menuToolBar.updateGoogleEarthToolItem();\r\n\t}", "private void reportData() {\n getSender().tell(new GameRoomDataMessage(gameRoomName, capacity, players), this.getSelf());\n }", "protected void renderAddNewDataButton () {\n\t\tnew Timer() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tdataGrid.appendButton(I18Utilities.getInstance().getInternalitionalizeText(getAddDataIconCaptionI18nCode(), getAddDataIconDefaultCaption()), \"ui-icon-document\", new Command() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void execute() {\n\t\t\t\t\t\tshoAddNewDataEditor();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t}.schedule(100);\n\t}", "public void buildData() {\n try {\n userIDObservableList.addAll(workerAdaptor.getWorkerList());\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n }", "public void doUpdate() {\n Map<String, List<String>> dataToSend = new HashMap<>();\r\n List<String> values = new ArrayList<>();\r\n values.add(String.valueOf(selectedOhsaIncident.getId()));\r\n dataToSend.put(\"param\", values);\r\n showDialog(dataToSend);\r\n }", "public void getDataButtonClicked() {\n\n //we will get data heree.....>>>\n getdata();\n\n\n }", "public updatedata() {\n initComponents();\n }", "@Override\n public void prepareHtmlDataList() {\n makeGCDataInfoOutputData();\n makeLaunchDataInfoOutputData();\n }", "public void on_append(ActionEvent actionEvent) {\r\n\t\tFile[] files = CommonTool.get_imagefiles( _open_directory_key, _parent);\r\n\t\tif ( null == files)\r\n\t\t\treturn;\r\n\r\n\t\tappend( files);\r\n\t}", "public void addMenuItem(MenuItem newMenuItem){\n databaseGargoyle.createConnection();\n databaseGargoyle.executeUpdateOnDatabase(\"INSERT INTO MENUITEM VALUES (\" +\n \"'\" + newMenuItem.getFoodName() + \"', \" +\n \"'\" + newMenuItem.getDescription() + \"', \" +\n \"\" + newMenuItem.getStockAvailable() + \", \" +\n \"\" + newMenuItem.getCalories() + \", \" +\n \"'\" + newMenuItem.getVegan() + \"', \" +\n \"'\" + newMenuItem.getDiabetic() + \"', \" +\n \"'\" + newMenuItem.getGluttenFree() + \"', \" +\n \"\" + newMenuItem.getPrice() + \")\");\n databaseGargoyle.destroyConnection();\n }", "private void sendInfo() {\n Log.v(TAG, \"sendInfo() contentListSize \"+this.contentList.size()+\" interestListSize \"+this.interestList.size());\n\n D2DAddContentNotificationEvent addContentEvent = new D2DAddContentNotificationEvent(false);\n addContentEvent.contentList = this.contentList;\n this.sendEvent(addContentEvent);\n\n D2DAddInterestNotificationEvent addInterestEvent = new D2DAddInterestNotificationEvent(false);\n addInterestEvent.interestList = this.interestList;\n this.sendEvent(addInterestEvent);\n }", "public void saveData(){\n String name = editTextName.getText().toString();\n if(!name.isEmpty()){\n DataManager.getInstance().addName(name);\n }\n\n finish();\n }", "private void internalAddToChatWindow(String message) {\n jChatConvo.append(message + \"\\n\");\n }", "public void getData()\n\t{\n\t\tif (jobEntry.getName() != null) wName.setText( jobEntry.getName() );\n\t\twName.selectAll();\n\t\tif (jobEntry.getZipFilename()!= null) wZipFilename.setText( jobEntry.getZipFilename() );\n\t\tif (jobEntry.getWildcardSource()!= null) wWildcardSource.setText( jobEntry.getWildcardSource() );\n\n\t\tif (jobEntry.getWildcard()!= null) wWildcard.setText( jobEntry.getWildcard() );\n\t\tif (jobEntry.getWildcardExclude()!= null) wWildcardExclude.setText( jobEntry.getWildcardExclude() );\n\t\tif (jobEntry.getSourceDirectory()!= null) wTargetDirectory.setText( jobEntry.getSourceDirectory() );\n\t\tif (jobEntry.getMoveToDirectory()!= null) wMovetoDirectory.setText( jobEntry.getMoveToDirectory() );\n\n\t\tif (jobEntry.afterunzip>=0)\n\t\t{\n\t\t\twAfterUnZip.select(jobEntry.afterunzip );\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\twAfterUnZip.select(0 ); // NOTHING\n\t\t}\n\t\t\n\t\twAddFileToResult.setSelection(jobEntry.isAddFileToResult());\n\t\twArgsPrevious.setSelection(jobEntry.getDatafromprevious());\n\t\twAddDate.setSelection(jobEntry.isDateInFilename());\n\t\twAddTime.setSelection(jobEntry.isTimeInFilename());\n\t\t\n\t\tif (jobEntry.getDateTimeFormat()!= null) wDateTimeFormat.setText( jobEntry.getDateTimeFormat() );\n\t\twSpecifyFormat.setSelection(jobEntry.isSpecifyFormat());\n\t\t\n\t\twRootZip.setSelection(jobEntry.isCreateRootFolder());\n\t\twCreateFolder.setSelection(jobEntry.isCreateFolder());\n\t\t\n \tif (jobEntry.getLimit()!= null) \n\t\t\twNrErrorsLessThan.setText( jobEntry.getLimit());\n\t\telse\n\t\t\twNrErrorsLessThan.setText(\"10\");\n \t\n\t\tif(jobEntry.getSuccessCondition()!=null)\n\t\t{\n\t\t\tif(jobEntry.getSuccessCondition().equals(jobEntry.SUCCESS_IF_AT_LEAST_X_FILES_UN_ZIPPED))\n\t\t\t\twSuccessCondition.select(1);\n\t\t\telse if(jobEntry.getSuccessCondition().equals(jobEntry.SUCCESS_IF_ERRORS_LESS))\n\t\t\t\twSuccessCondition.select(2);\n\t\t\telse\n\t\t\t\twSuccessCondition.select(0);\t\n\t\t}else wSuccessCondition.select(0);\n\t\t\n\t\twAddOriginalTimestamp.setSelection(jobEntry.isOriginalTimestamp());\n\t\twSetModificationDateToOriginal.setSelection(jobEntry.isOriginalModificationDate());\n\t\twIfFileExists.select(jobEntry.getIfFileExist());\n\t\twcreateMoveToDirectory.setSelection(jobEntry.isCreateMoveToDirectory());\n\t}", "@Override\n public void actionPerformed(ActionEvent e){\n try{\n //Open a new window with the past game data\n new PastDataWindow();\n }catch(NullPointerException ex){\n JOptionPane.showMessageDialog(null, \"Error! No data loaded!\",\"Error!\",JOptionPane.ERROR_MESSAGE);\n }\n }", "private void addSampleData() {\r\n }", "public static void populateData() {\n\n }", "public void refreshPressed() {\n //refresh the content of the tableView\n ObservableList<String[]> data = PresentationCtrl.getInstance().getHistories();\n tableView.setItems(data);\n }", "private void addRecord() {\n\t\tContactData cd = new ContactData(contactDataId, aName, aLastname,\n\t\t\t\taDate, aAdress, aGender, aImage);\n\t\tIntent intent = getIntent();\n\t\tintent.putExtra(\"ContactData\", cd);\n\t\tsetResult(RESULT_OK, intent);\n\t\tfinish();\n\t\tonDestroy();\n\t}", "public void addEmptyData(Intent pickIntent) {\n ArrayList<AppWidgetProviderInfo> customInfo = new ArrayList<>();\n pickIntent.putParcelableArrayListExtra(AppWidgetManager.EXTRA_CUSTOM_INFO, customInfo);\n ArrayList<Bundle> customExtras = new ArrayList<>();\n pickIntent.putParcelableArrayListExtra(AppWidgetManager.EXTRA_CUSTOM_EXTRAS, customExtras);\n }", "public static void push(Object data) {\n list.add(data);\n }", "public void writeData(UserInfo info)\n\t{\n\t\tSystem.out.println(\"file has been written!\");\n\t\tuserinfos.add(info);\n\t}", "@Override\r\n\tpublic void windowstartUpData() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "@Override\n public void onClick(View view) {\n if (mAddDialog == null) {\n mAddDialog = new XPopup.Builder(MainActivity.this)\n .asInputConfirm(getString(R.string.add_random_title)\n , getString(R.string.add_random_content)\n , new OnInputConfirmListener() {\n @Override\n public void onConfirm(String text) {\n if (mAdapter != null) {\n mAdapter.addData(new BaseModel(text, 1));\n }\n }\n }).show();\n } else {\n mAddDialog.show();\n }\n }", "private void saveData() {\n\t\tdataSaver.save(data);\n\t}", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "public void statsAction() {\n StatsWin newWindow = getSelectedCell().mkStatsWin();\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\n }", "public void completeData();", "@Override\n public void addToWatchListClick(boolean isAddedOrNot, ContentDatum contentDatum) {\n currentActivity.sendBroadcast(new Intent(AppCMSPresenter.PRESENTER_PAGE_LOADING_ACTION));\n if (isUserLoggedIn()) {\n editWatchlist(contentDatum.getGist().getId() != null ? contentDatum.getGist().getId() : contentDatum.getId(), appCMSAddToWatchlistResult -> {\n currentActivity.sendBroadcast(new Intent(AppCMSPresenter.PRESENTER_STOP_PAGE_LOADING_ACTION));\n Toast.makeText(currentContext, \"Updated Successfully :\", Toast.LENGTH_LONG);\n }, isAddedOrNot);\n } else {\n if (isAppSVOD() && isUserLoggedIn()) {\n showEntitlementDialog(AppCMSPresenter.DialogType.SUBSCRIPTION_REQUIRED, null);\n } else {\n showEntitlementDialog(AppCMSPresenter.DialogType.LOGIN_REQUIRED, null);\n }\n currentActivity.sendBroadcast(new Intent(AppCMSPresenter.PRESENTER_STOP_PAGE_LOADING_ACTION));\n }\n }", "private void createEvents() {\n\t\tbtnPushTheButton.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t\n\t\t\tprivate List<String> b;\n\n\t\n\t\t\t//@SuppressWarnings(\"unchecked\")\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tact = true;\n\t\t\t\t\n//\t\t\t\tb = new ArrayList<String>();\n//\t\t\t\t\n//\t\t\t\tthis.b= (List<String>) ((List<Object>) (agent.v.getData())).stream().map(item -> {\n//\t\t\t\t\treturn (String) item;\n//\t\t\t\t});\n//\t\t\t\tString c = String.join(\", \", b);\n//\t\t\t\tclassTextArea.setText(c);\n//\t\t\t\n//\t\t\t\tclassTextArea.setText(b.toString());\n//\t\t\t\t\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t});\n\t\t\n\t}", "private void persistData() {\n mSharedPref.storeLastScreen(SCREEN_NAME);\n }", "@Override\n\tprotected void getDataRefresh() {\n\t\t\n\t}", "public void setAdditionalData(ObservableList<MapItemData> data) {\n\n\t\tthis.additionalData = data;\n\n\t}", "private void addNewHomework() {\n\t\tIntent myIntent = new Intent(HomeworkActivity.this,\n\t\t\t\tHomeworkDetailActivity.class);\n\n\t\tmyIntent.putExtra(HOMEWORK_EDIT, false);\n\n\t\tHomeworkActivity.this.startActivityForResult(myIntent,\n\t\t\t\tADD_NEW_HOMEWORK_REQUEST);\n\n\t}", "private void setSendDataButton() {\n\t\tsetDataInDB();\n\t\tif (!alreadyPushed)\n\t\t\tsendDataToServer();\n\t\treturnOnWorkoutList();\n\t}", "public void Write_data() {\n // add-write text into file\n try {\n FileOutputStream fileout=openFileOutput(\"savedata11.txt\", MODE_PRIVATE);\n OutputStreamWriter outputWriter=new OutputStreamWriter(fileout);\n outputWriter.write(Integer.toString(_cnt));\n outputWriter.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void addNewLevelNotification() {\n\t\tDisplay.getDefault().syncExec(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tNewLevelNotification notification = new NewLevelNotification(Display.getDefault());\n\t\t\t\tNotificationManager.add(notification);\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\t\trefreshFile(informationrequestRaiser.getInformationRequestId(),\r\n\t\t\t\t\t\t\t\tinformationrequestRaiser.getMainFolder());\r\n\t\t\t\t\t\tsaveInformationRequest(informationrequestRaiser, filepath);\r\n\t\t\t\t\t\tpp.getVpnlMain().removeFromParent();\r\n\t\t\t\t\t\tpp.getPopup().removeFromParent();\r\n\t\t\t\t\t}", "public void updateStatisticsData() {\r\n\t\tif (this.statisticsTabItem != null && !this.statisticsTabItem.isDisposed()) {\r\n\t\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\t\tthis.statisticsTabItem.updateStatisticsData(true);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tDataExplorer.this.statisticsTabItem.updateStatisticsData(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void JButtonPush_actionPerformed(java.awt.event.ActionEvent event) {\n\t\tpushstring = \"\";\n\t\tPushDialog dialog = new PushDialog(this); // ask the user what to push\n\t\tdialog.setVisible(true);\n\n\t\tif (!pushstring.equals(\"\")) { // after the dialog is closed,\n\t\t\tpushCommand = new PushCommand(stack, pushstring);\n\t\t\tinvoker.executeCommand(pushCommand);\n\t\t}else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Please enter the data\");\n\t\t\tdialog.setVisible(true);\n\t\t}\n\t\tJList1.setListData(stack.getStackVector()); // refresh the JList\n\t\tthis.repaint();\n\n\t}", "public void push(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "@FXML\n private void handleNewPerson() {\n Shops tempShops = new Shops();\n boolean okClicked = mainApp.showPersonEditDialog(tempShops);\n if (okClicked) {\n mainApp.getPersonData().add(tempShops);\n }\n }", "public void append(Object item);", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddNewItem();\n\t\t\t}", "public static void addNewServices() {\n displayAddNewServicesMenu();\n processAddnewServicesMenu();\n }", "private void addMealActionPerformed(java.awt.event.ActionEvent evt) {\n jFrame1.setEnabled(true);\n jFrame1.setVisible(true);\n jButton1.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n mealName = jTextField2.getText();\n mealItems = mealArray(jTextArea1.getText());\n System.out.println(mealName+mealItems);\n md.addMeal(mealName, mealItems);\n }\n });\n SwingUtilities.updateComponentTreeUI(this);\n this.revalidate();\n this.repaint();\n \n }", "private void freshTheData() {\n mData.clear();\n mData.addAll(mDataOrg);\n }", "private void requestData() {\n Jc11x5Factory.getInstance().getJobPriceList(mHandler);\n }", "public AddData() {\n\t\tsuper();\n\t\tfilled = false;\n\t}", "public void appendNewShop(Shop newShop) {\n shops.add(newShop);\n }", "public void setNewData(String newData) {\r\n this.newData = newData;\r\n }", "public void createNewList(ActionEvent actionEvent) {\n // ideally again, this would have its own window\n // give it a title, and optionally populate it with some items\n }", "void append(int new_data) {\n\t\tNode new_node = new Node(new_data);\n\t\tNode last = head;\n\t\tnew_node.next = null;\n\t\tif (head == null) {\n\t\t\tnew_node.prev = null;\n\t\t\thead = new_node;\n\t\t\treturn;\n\t\t}\n\t\twhile (last.next != null)\n\t\t\tlast = last.next;\n\t\tlast.next = new_node;\n\t\tnew_node.prev = last;\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString [] params = {H_Panel.getName(),H_Panel.getDesc()};\n\t\t\t\tservDisp.add(params);\t\t\n\t\t\t\t_MGR.setHeader(H_Panel.getName());\n\t\t\t\t_MGR.setDescr(H_Panel.getDesc());\n\t\t\t\t_MGR.loadTagsToProject();\n\t\t\t\t//_MGR.updateTagsInProjectPanels();\n\t\t\t\tSP_PManager_Widget.this.setVisible(false);\n\t\t\t}", "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 }", "public void addData() {\n boolean isInserted = my_db.insertData(\"LIC\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"LIC inserted\", Toast.LENGTH_SHORT).show();\n\n }\n isInserted = my_db.insertData(\"Mutual Fund\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"Mutual Fund inserted\", Toast.LENGTH_SHORT).show();\n\n }\n isInserted = my_db.insertData(\"Mediclaim\");\n if (isInserted) {\n Toast.makeText(MainActivity.this, \"Mediclaim inserted\", Toast.LENGTH_SHORT).show();\n\n }\n }", "private void saveData() {\n\n SharedPreferences sharedPreferences=getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreferences.edit();\n\n editor.putString(\"name\",name.getText().toString());\n editor.putString(\"regnum\",regnum.getText().toString());\n editor.putInt(\"count\", count);\n editor.apply();\n\n }", "public void addData(F dataObject) {\r\n this.data = dataObject;\r\n }" ]
[ "0.63597226", "0.6183905", "0.6075314", "0.5936271", "0.59300905", "0.5908001", "0.59019196", "0.5808815", "0.57012314", "0.566663", "0.5638991", "0.56227785", "0.5615925", "0.5612074", "0.56096697", "0.5586872", "0.55525357", "0.5544773", "0.55410975", "0.5514496", "0.5504864", "0.5458762", "0.54569453", "0.5431786", "0.5413972", "0.5408405", "0.5406698", "0.53985506", "0.5395728", "0.53943336", "0.539154", "0.5372702", "0.53615475", "0.53464365", "0.53414166", "0.53376806", "0.53344727", "0.53313434", "0.53258306", "0.53210557", "0.5299894", "0.5282937", "0.52785385", "0.52712965", "0.52561945", "0.52538353", "0.5246884", "0.52438396", "0.52418184", "0.5239502", "0.5239227", "0.5237833", "0.52328116", "0.5228615", "0.522237", "0.5215272", "0.521407", "0.520664", "0.5203009", "0.52003425", "0.51925033", "0.51916033", "0.51883566", "0.5187337", "0.5186512", "0.51840883", "0.51832706", "0.51784956", "0.5173877", "0.5173632", "0.517283", "0.51649666", "0.5160103", "0.5151945", "0.51507735", "0.5148664", "0.51463395", "0.51371664", "0.51368505", "0.513375", "0.5131092", "0.51308924", "0.51308", "0.51300925", "0.5127337", "0.51263136", "0.5121256", "0.51204026", "0.51185143", "0.51156855", "0.5114523", "0.51107484", "0.51036763", "0.5102224", "0.50950813", "0.50941867", "0.50931114", "0.50926393", "0.50834876", "0.50823885" ]
0.80367625
0
Deletes data from the table (invoked from popup menu)
private void popupMenuDeleteData(int rowIndex, int columnIndex) { // // Display the dialog // DeleteDataDialog deleteDataDialog = new DeleteDataDialog(parent.getShell()); if (deleteDataDialog.open() != Window.OK) return; int delSize = deleteDataDialog.getResult(); if (delSize == 0) { // // Cancel button pressed - do nothing // return; } // // Delete data from the table delete(rowIndex, columnIndex - 1, delSize); // // Update the status panel // updateStatusPanel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void toDelete() {\n if(toCount()==0)\n {\n JOptionPane.showMessageDialog(rootPane,\"No paint detail has been currently added\");\n }\n else\n {\n String[] choices={\"Delete First Row\",\"Delete Last Row\",\"Delete With Index\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"How would you like to delete data?\", \"Delete Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n jtModel.removeRow(toCount()-toCount());\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted first row\");\n }\n else if(option==1)\n {\n jtModel.removeRow(toCount()-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted last row\");\n }\n else if(option==2)\n {\n toDeletIndex();\n }\n else\n {\n \n }\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"btnDelete\");\n\t\t\t\tint i = table.getSelectedRow();\n\t\t\t\tif (i >= 0) {\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + i);\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + textSuppD.getText());\n\t\t\t\t\tint suppID = Integer.parseInt(textSuppD.getText().trim());\n\n\t\t\t\t\tDatabase db = new Database();\n\t\t\t\t\tSuppliersDAO suppDAO = new SuppliersDAO(db);\n\t\t\t\t\tSuppliersModel suppModel = new SuppliersModel();\n\t\t\t\t\tsuppModel.setSuppliers_id(suppID);\n\t\t\t\t\tsuppDAO.Delete(suppModel);\n\t\t\t\t\tdb.commit();\n\t\t\t\t\tdb.close();\n\n\t\t\t\t\tmodel.removeRow(i);\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}", "public void deleteButtonPushed() {\r\n ObservableList<Student> allStudents;\r\n Student selectedRow;\r\n allStudents = tableView.getItems();\r\n \r\n // This gives us the row that was selected\r\n selectedRow = tableView.getSelectionModel().getSelectedItems().get(0);\r\n \r\n\r\n try {\r\n covidMngrService.deleteStudent(selectedRow);\r\n \r\n // Remove the Student object from the table\r\n allStudents.remove(selectedRow);\r\n } catch (RemoteException ex) {\r\n Logger.getLogger(SecretaryStudentsTableCntrl.class.getName()).\r\n log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void actionPerformed(ActionEvent e) {\n model.deleteRow();\n }", "@FXML\r\n public void deleteTreatmentButton(){\r\n int sIndex = treatmentTabletv.getSelectionModel().getSelectedIndex();\r\n String sID = treatmentData.get(sIndex).getIdProperty();\r\n\r\n String deleteTreatment = \"delete from treatment where treatmentID = ?\";\r\n try{\r\n ps = mysql.prepareStatement(deleteTreatment);\r\n ps.setString(1,sID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe more in this exception\r\n }\r\n\r\n treatmentData.remove(sIndex);\r\n }", "private void jbtn_deleteActionPerformed(ActionEvent evt) {\n\t\tDefaultTableModel RecordTable=(DefaultTableModel)jTable1.getModel();\n\t\tint Selectedrow=jTable1.getSelectedRow();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tid=RecordTable.getValueAt(Selectedrow,0).toString();\n\t\t\tdeleteItem=JOptionPane.showConfirmDialog(this,\"Confirm if you want to delete the record\",\"Warning\",JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(deleteItem==JOptionPane.YES_OPTION)\n\t\t\t{\n\t\t\t\tconn cc=new conn();\n\t\t\t\tpst=cc.c.prepareStatement(\"delete from medicine where medicine_name=?\");\n\t\t\t pst.setString(1,id);\n\t\t\t\tpst.executeUpdate();\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Record Updated\");\n\t\t\t\tupDateDB();\n\t\t\t\ttxtblank();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}", "private void delete_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_delete_btnActionPerformed\n // pull current table model\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n if (remindersTable.getSelectedRow() == -1) {\n if (remindersTable.getRowCount() == 0) {\n dm.messageEmptyTable();\n } else {\n dm.messageSelectLine();\n }\n } else {\n int input = JOptionPane.showConfirmDialog(frame, \"Do you want to Delete!\");\n // 0 = yes, 1 = no, 2 = cancel\n if (input == 0) {\n model.removeRow(remindersTable.getSelectedRow());\n dm.messageReminderDeleted();// user message;\n saveDataToFile();// Save changes to file\n getSum(); // Update projected balance\n } else {\n // delete canceled\n }\n }\n }", "private void delete()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnection con = Connector.DBcon();\n\t\t\tString query = \"select * from items where IT_ID=?\";\n\t\t\t\n\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\tpst.setString(1, txticode.getText());\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 1)\n\t\t\t{\n\t\t\t\tint choice = JOptionPane.showConfirmDialog(null, \"Are you sure you want to delete selected item data?\", \"ALERT\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(choice==JOptionPane.YES_OPTION)\n\t\t\t\t{\n\t\t\t\t\tquery=\"delete from items where IT_ID=?\";\n\t\t\t\t\tpst = con.prepareStatement(query);\n\t\t\t\t\t\n\t\t\t\t\tpst.setString(1, txticode.getText());\n\t\t\t\t\t\n\t\t\t\t\tpst.execute();\n\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Deleted Successfully\", \"RESULT\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tloadData();\n\t\t\t\t\n\t\t\t\trs.close();\n\t\t\t\tpst.close();\n\t\t\t\tcon.close();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Record Not Found!\", \"Alert\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\n\t\t\trs.close();\n\t\t\tpst.close();\n\t\t\tcon.close();\n\t\t\t\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t}", "private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {\n String delete = TabelSiswa.getValueAt(baris, 1).toString();\n try{\n Statement stmt = koneksi.createStatement();\n String query = \"DELETE FROM pasien WHERE nis = '\" + delete + \"'\";\n int berhasil = stmt.executeUpdate(query);\n if(berhasil == 1){\n JOptionPane.showMessageDialog(null, \"Data berhasil dihapus\");\n dtm.getDataVector().removeAllElements();\n showData();\n showStok();\n }else{\n JOptionPane.showMessageDialog(null, \"Data gagal dihapus\");\n }\n }catch(SQLException ex){\n ex.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Terjadi kesalahan\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t Database.RemoveItem(Integer.toString(Database.IDs[table.getSelectedRow()]));\t\n\t\t\t\t Login.Refresh();\n\t\t\t }", "void delData();", "private void deleteButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN\n // -\n // FIRST\n // :\n // event_deleteButtonActionPerformed\n int rowIndex = headerTable.getSelectedRow();\n if (rowIndex > -1) {\n removeRow(rowIndex);\n }\n }", "public void execute() {\n if (DeleteTableCommand.confirmDeletion()) {\n\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().remove(topsoilTabPane.getSelectedTab());\n }\n\n }", "private void deleteExec(){\r\n\t\tList<HashMap<String,String>> selectedDatas=ViewUtil.getSelectedData(jTable1);\r\n\t\tif(selectedDatas.size()<1){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Please select at least 1 item to delete\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint options = 1;\r\n\t\tif(selectedDatas.size() ==1 ){\r\n\t\t\toptions = JOptionPane.showConfirmDialog(null, \"Are you sure to delete this Item ?\", \"Info\",JOptionPane.YES_NO_OPTION);\r\n\t\t}else{\r\n\t\t\toptions = JOptionPane.showConfirmDialog(null, \"Are you sure to delete these \"+selectedDatas.size()+\" Items ?\", \"Info\",JOptionPane.YES_NO_OPTION);\r\n\t\t}\r\n\t\tif(options==1){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor(HashMap<String,String> map:selectedDatas){\r\n\t\t\t\r\n\t\t\tdiscountService.deleteDiscountByMap(NameConverter.convertViewMap2PhysicMap(map, \"Discount\"));\r\n\t\t}\r\n\t\tthis.initDatas();\r\n\t}", "private void DeletebuttonActionPerformed(ActionEvent e) {\n int row = userTable.getSelectedRow();\n\n if (row == -1) {\n JOptionPane.showMessageDialog(ListUserForm.this, \"Vui lòng chọn user\", \"lỗi\", JOptionPane.ERROR_MESSAGE);\n } else {\n int confirm = JOptionPane.showConfirmDialog(ListUserForm.this, \"Bạn có chắc chắn xoá?\");\n\n if (confirm == JOptionPane.YES_OPTION) {\n\n int userid = Integer.parseInt(String.valueOf(userTable.getValueAt(row, 0)));\n\n userService.deleteUser(userid);\n\n defaultTableModel.setRowCount(0);\n setData(userService.getAllUsers());\n }\n }\n }", "private void deleteActionPerformed(ActionEvent evt) throws Exception {\n String teaID = this.teaIDText.getText();\n if(StringUtil.isEmpty(teaID)){\n JOptionPane.showMessageDialog(null, \"请先选择一条老师信息!\");\n return;\n }\n int confirm = JOptionPane.showConfirmDialog(null, \"确认删除?\");\n if(confirm == 0){//确认删除\n Connection con = dbUtil.getConnection();\n int delete = teacherInfo.deleteInfo(con, teaID);\n if(delete == 1){\n JOptionPane.showMessageDialog(null, \"删除成功!\");\n resetValues();\n }\n else{\n JOptionPane.showMessageDialog(null, \"删除失败!\");\n return;\n }\n initTable(new Teacher());//初始化表格\n }\n }", "public void delete() throws Exception {\n\t\tLOGGER.info(\n\t\t\t\t\"Start of DataListTableBean:delete()\");\n\t\ttry {\n\t\t\tcomponentService.delete(data);\n\t\t\tdataList = componentService.findAllComponent();\n\t\t\t\n\t\t\tFacesMessage facesMessage = new FacesMessage(\n\t\t\t\t\tFacesMessage.SEVERITY_INFO, \"Data is Deleted\",\n\t\t\t\t\t\"Data is Deleted\");\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, facesMessage);\n\t\t\t\n\t\t\tLOGGER.info(\n\t\t\t\t\t\"End of DataListTableBean:delete()\");\t\n\t\t} catch (Exception e) {\n\t\t\tmanageError(e, \"Error while Deleting data. \");\n\t\t}\n\t}", "void deleteButton_actionPerformed(ActionEvent e) {\n doDelete();\n }", "private void deleteBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deleteBtnMouseClicked\n\n String id = searchidTxt.getText();\n try {\n\n String Query = \"DELETE from stock where Product_ID =?\";\n\n pstm = con.prepareStatement(Query);\n pstm.setInt(1, Integer.parseInt(id));\n pstm.executeUpdate();\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"ID Not Found \");\n }\n //Refresh Table\n refTable();\n\n //by Default hide Update button\n deleteBtn.setVisible(false);\n\n //Clear all Fields\n clearFields();\n }", "private void actionDelete() {\r\n showDeleteDialog();\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString RemoveOrder=\"Delete from UserFace1 where (ID=?)\";\r\n\t\t\t\ttry {\r\n\t\t\t\t\tst=con.prepareStatement(RemoveOrder);\r\n\t\t\t\t\tst.setInt(1,Integer.parseInt(idField.getText()));\r\n\t\t\t\t\tint i = st.executeUpdate();\r\n //Executing MySQL Update Query\t\t\t\t\t\t+++++++++++++++++++++++\r\n if(i==1){\r\n JOptionPane.showMessageDialog(panel,\"Successfully Removed\");\r\n }\r\n \r\n refreshTable();\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "@FXML\r\n private void bRemCell() throws SQLException {\n int index = tableView.getSelectionModel().getSelectedIndex();\r\n if(index>=0)\r\n {\r\n calc calc = data.get(index);\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Delete cell\");\r\n alert.setHeaderText(\"Start of Day: \" + String.valueOf(calc.getStartDay()) + \"\\n\" +\r\n \"End of Day: \" + String.valueOf(calc.getOverDay()) + \"\\n\" +\r\n \"Start of Receipt: \" + String.valueOf(calc.getStartOfReceipt()) + \"\\n\" +\r\n \"End of Receipt: \" + String.valueOf(calc.getEndOfReceipt()) + \"\\n\" +\r\n \"Sum of Receipt: \" + String.valueOf(calc.getSumReceipt()) + \"\\n\" +\r\n \"User: \" + String.valueOf(calc.getUser()) + \"\\n\" +\r\n \"Date: \" + String.valueOf(calc.getDate()) + \"\\n\" +\r\n \"Comment: \" + String.valueOf(calc.getComment()));\r\n alert.setContentText(\"Are you sure you want to delete cell with data?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if(result.get() == ButtonType.OK)\r\n {\r\n delete(String.valueOf(calc.getDate()));\r\n refresh();\r\n }\r\n else\r\n {\r\n refresh();\r\n }\r\n }else\r\n {\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"ERROR\");\r\n alert.setContentText(\"Nothing Selected!!!\");\r\n alert.showAndWait();\r\n }\r\n }", "public void buttonDelete(ActionEvent event) {\n\t\tObservableList<Player> allProduct, SinglePlayer;\n\t\tallProduct = tableview.getItems();\n\t\tSinglePlayer = tableview.getSelectionModel().getSelectedItems();\n\t\tSinglePlayer.forEach(allProduct::remove);\n\t}", "private void deleteButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteButtonActionPerformed\n // TODO add your handling code here:\n final LocationsDialog frame = this;\n\n SwingUtilities.invokeLater(new Runnable()\n {\n public void run()\n {\n LocationsTableModel model = (LocationsTableModel) locationsTable.getModel();\n int row = locationsTable.getSelectedRow();\n if (row == -1){\n JOptionPane.showMessageDialog(frame,\n \"Please select a location from the table to delete \",\n \"No selection made\",\n JOptionPane.ERROR_MESSAGE);\n }\n else\n {\n Location location = editLocationRequest(row);\n // TODO add delete Location handling code here:\n String msg = \"Are sure to delete this Location?\";\n\n int n = JOptionPane.showConfirmDialog(\n null,\n msg,\n \"Confirm\",\n JOptionPane.YES_NO_OPTION);\n\n if (n == 1) {\n return;\n }\n\n try{\n WorkletContext context = WorkletContext.getInstance();\n if (!Helper.delete(location, \"Locations\", context)) {\n System.out.print(\"Delete failed!\");\n }\n else\n {\n System.out.print(\"Delete successful\");\n }\n\n }catch(Exception ex){\n\n }\n }\n refreshLocations();\n model.fireTableDataChanged();\n\n }\n\n });\n\n }", "public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}", "private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {\n if(!search_table.getSelectionModel().isSelectionEmpty()){\n // TODO add your handling code here:\n int op = JOptionPane.showConfirmDialog(null, \"ARE YOU SURE YOU WANT TO DELETE?\", \"DELETE\", JOptionPane.YES_NO_OPTION);\n if(op==0){\n try{\n int i = search_table.getSelectedRow();\n TableModel model = search_table.getModel();\n \n String sql2 = \"DELETE FROM Lecturer WHERE id = '\"+model.getValueAt(i, 0).toString()+\"'\";\n st.executeUpdate(sql2);\n JOptionPane.showMessageDialog(null, \"DELETED SUCCESSFULLY\");\n \n DefaultTableModel model1= (DefaultTableModel) search_table.getModel();\n model1.setRowCount(0);\n viedetail_txt.setText(null);\n }\n catch(HeadlessException | SQLException ex){\n JOptionPane.showMessageDialog(null, ex);\n }\n }\n }\n else\n JOptionPane.showMessageDialog(null, \"NOTHING SPECIFIED TO DELETE\");\n \n \n }", "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "public void delete(JTable tblUser)\n {\n int i = tblUser.getSelectedRow();\n \n if(i != -1)\n {\n usersDto = users[i];\n \n if(usersDto.getState() != 3)\n {\n if(JOptionPane.showConfirmDialog(null, \"¿Está seguro que desea eliminar el registro?\", \"Eliminar\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n {\n try {\n usersDto.setState((short) 3);\n \n if(usersDao.update(usersDto.createPk(), usersDto)) {\n tableModel = (DefaultTableModel) tblUser.getModel();\n tableModel.setValueAt(\"*\", i, 6);\n }\n \n } catch (UsersDaoException exception) {}\n }\n \n } else { JOptionPane.showMessageDialog(null, \"El registro ya está eliminado\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n \n } else { JOptionPane.showMessageDialog(null, \"Seleccione un registro a eliminar\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n }", "@FXML\n private void deleteRow(ActionEvent event){\n if(facilitiesView.getSelectionModel().getSelectedItem()==null){\n errorBox(\"Feil\", \"Det er ingen rader som er markert\", \"Vennligst marker en rad i tabellen\");\n }\n else{\n Alert mb = new Alert(Alert.AlertType.CONFIRMATION);\n mb.setTitle(\"Bekreft\");\n mb.setHeaderText(\"Du har trykket slett på \"+ facilitiesView.getSelectionModel().getSelectedItem().getFacilityName());\n mb.setContentText(\"Ønsker du virkerlig å slette dette lokalet?\");\n mb.showAndWait().ifPresent(response -> {\n if(response== ButtonType.OK){\n observableList.remove(facilitiesView.getSelectionModel().getSelectedItem());\n\n File file = new File(EditedFiles.getActiveFacilityFile());\n file.delete();\n try {\n WriterThreadRunner.WriterThreadRunner(getFacilities(), EditedFiles.getActiveFacilityFile());\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }\n });\n }\n }", "private void deleteHocSinh() {\n\t\tString username = (String) table1\n\t\t\t\t.getValueAt(table1.getSelectedRow(), 0);\n\t\thocsinhdao.deleteUser(username);\n\t}", "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "private void popupDelete() {\n\t\taufzugschacht.removeElement(this);\n\t}", "public void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tint a=JOptionPane.showConfirmDialog(null,\"Are you sure you want to delete this Complaint?\",\"Delete this Record?\",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE);\n\t\t\t if(a==JOptionPane.YES_OPTION)\n\t\t\t {\n\t\t\t \ttry \n\t\t\t\t\t{\n\t\t\t\t\tString sql2=\"DELETE FROM ComplaintsData WHERE Customer_Name=?\";\t\n\t\t\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\t\t\tps=con.prepareStatement(sql2);\n\t\t\t\t\tps.setString(1,txtCustomerName.getText());\n\t\t\t\t\tps.executeUpdate();\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Complaint deleted successfully!\");\n\n\t\t\t\t\tclear();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e1) {}\n\t\t\t }\n\t\t\t\tshowData();\n\t\t\t}", "public static void deleteTimeButtonClicked() {\n ObservableList<Occasion> allTimes;\n allTimes = tableHoliday.getItems();\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n allTimes.remove(occasion);\n OccasionCommunication.removeOccasion(occasion.getId());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n String nama = String.valueOf(cbbNama.getSelectedItem());\n String pilihan2 = String.valueOf(cbbPilihan2.getSelectedItem());\n //dapetin nama nama table\n LinkedList<String> arrTable = DataAksesAdmin.listTable();\n //linked list buat nampung yg mau dihapus\n LinkedList<String> forDelete = new LinkedList<>();\n //pindahin ke array kalo ada namanya\n for(int i = 0; i < arrTable.size(); i++){\n for(int j = 1; j < 15; j++){\n if(arrTable.get(i).equals(nama+j)){\n forDelete.add(arrTable.get(i));\n }\n }\n }\n DataAksesAdmin.delUser(nama, pilihan2, forDelete);\n JOptionPane.showMessageDialog(null, \"Data Berhasil Dihapus!\");\n }", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "void deleteEditorData(int id){\n dbConnection();\n try{\n stmt = con.prepareStatement(\"DELETE FROM editorData WHERE id = ?\");\n stmt.setInt(1,id);\n stmt.executeUpdate();\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n closeConnection();\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(tblSessions.getSelectedRow() != -1) {\n\t\t\t\t\tint id = Integer.parseInt(tblSessions.getValueAt(tblSessions.getSelectedRow(), 0).toString());\n\t\t\t\t\t\n\t\t\t\t\tdeleteSession(id);\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Deletado com sucesso!\");\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint RowNum=jt.getSelectedRow();\n\t\t\t\tif(RowNum==-1){\n\t\t\t\t\tJOptionPane.showMessageDialog(jt, \"请选择一行\");\n\t\t\t\t return ;\n\t\t\t }\n\t\t\t\t\n\t\t\t\tint isDelete=JOptionPane.showConfirmDialog(null, \"是否确定删除该专业以及该专业所有班级与学生信息?\");\n\t\t\t\t\n\t\t\t\tif(isDelete==JOptionPane.YES_OPTION){\n\t\t\t\t\tString majorName=(String)mit.getValueAt(RowNum, 1);\n\t\t\t\t\tString deleteSql=\"delete from majorinfo where grade='\"+Tool.getGrade(userId)+\"' and majorName=?\";\n\t\t\t\t\tString deleteclass=\"delete from classinfo where grade='\"+Tool.getGrade(userId)+\"' and major=?\";\n\t\t\t\t\tString deletejob=\"delete from jobinfo where grade='\"+Tool.getGrade(userId)+\"' and major=?\";\n\t\t\t\t\t\n\t\t\t\t\tString[] dleteParas={Tool.string2UTF8(majorName)};\n\t\t\t\t\t\n\t\t\t\t\tmit.Update(deleteclass, dleteParas);\n\t\t\t\t\tmit.Update(deletejob, dleteParas);\n\t\t\t\t\t\n\t\t\t\t\tif(mit.Update(deleteSql, dleteParas)){\n\t\t\t\t\t\trefresh(jt);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(jt, \"删除失败\");\n\t\t\t\t\t}\n\n\t\t\t\t\trefresh(jt);\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t}", "public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}", "@FXML\n public void deleteSet(MouseEvent e) {\n //confirm first\n Alert confirmAlert = new Alert(AlertType.CONFIRMATION, \"\", ButtonType.YES, ButtonType.NO);\n confirmAlert.setHeaderText(\"Are you sure you want to delete this set?\");\n Optional<ButtonType> result = confirmAlert.showAndWait();\n if (result.get() == ButtonType.YES) {\n //delete from database\n try (\n Connection conn = dao.getConnection();\n PreparedStatement stmt = conn.prepareStatement(\"DELETE FROM Theory WHERE Title = ?\");\n ) {\n conn.setAutoCommit(false);\n stmt.setString(1, txtTitle.getText());\n stmt.executeUpdate();\n conn.commit();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n //delete from interface\n VBox vbxCards = (VBox) apnSetRow.getParent();\n vbxCards.getChildren().remove(apnSetRow);\n }\n }", "@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }", "@FXML\r\n public void onDelete() {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Mensagem\");\r\n alert.setHeaderText(\"\");\r\n alert.setContentText(\"Deseja excluir?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n AlunoModel alunoModel = tabelaAluno.getItems().get(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n\r\n if (AlunoDAO.executeUpdates(alunoModel, AlunoDAO.DELETE)) {\r\n tabelaAluno.getItems().remove(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n alert(\"Excluido com sucesso!\");\r\n desabilitarCampos();\r\n } else {\r\n alert(\"Não foi possivel excluir\");\r\n }\r\n }\r\n }", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "public void DeleteData()\n {//Delete Data\n String strQuery = \"DELETE FROM HW_Stock WHERE ItemCode='\" + txtIC.getText() +\"';\";\n\n int yn;\n yn = JOptionPane.showConfirmDialog(null, \"Are you sure you want to DELETE this record ?\", \"Conformation...\",\n JOptionPane.YES_NO_OPTION, 3, imgQ);\n\n if (yn == JOptionPane.YES_OPTION)\n {\n try\n {\n hwscon.DeleteData(strQuery);\n StartWorking(\"DELETING RECORD\");\n JOptionPane.showMessageDialog(null, \"Server: Record Deleted!\", \"Information\", 1);\n clearFields();\n getConnected();\n\n }catch(RemoteException re)\n {\n System.out.println(\"Client [frmHWStock]: DELETE DATA Error\");System.out.println(\"Error: \"+re.getMessage());\n JOptionPane.showMessageDialog(null, \"SAVE DATA Error\\nClient [frmHWStock]: \"+re.getMessage(),\n \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }\n else {}\n }", "private void buttonToDeleteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonToDeleteMouseClicked\n ActivityService activityService = new ActivityService();\n activityService\n .setId(this.id)\n .setUser(this.dashboard.user);\n try {\n activityService.delete();\n this.setVisible(false);\n this.dashboard.refreshUI();\n }catch (Exception err) {\n this.alert.showMessageDialog(null, \"gagal menghapus data\");\n }\n }", "@Override\n public void remove() throws IOException {\n int i = listEnterprisePanel.getTableListE().getSelectedRow(); // chọn hàng để xóa\n if (i >= 0) {\n String strID = listEnterprisePanel.getTableListE().getValueAt(i, 1).toString().trim(); // lấy ID\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(strID); // Tìm kiếm Enterprise theo ID\n content.set(Collections.singleton(enterprise), null);\n enterpriseBN.deleteEnterprise(enterprise);\n model.removeRow(i);\n loadData();\n }\n\n }", "@Override\n\t\tpublic void eliminar() {\n\t\t\tutilitario.getTablaisFocus().eliminar();\n\t\t}", "@FXML\n\tprivate void handleDeleteTaxi() {\n\t\tint selectedIndex = TaxiTable.getSelectionModel().getSelectedIndex();\n\t\tif (selectedIndex >= 0) {\n\t\t\tTaxiTable.getItems().remove(selectedIndex);\n\t\t} else {\n\t\t\t// Nothing selected.\n\t\t}\n\t}", "public void removeAllDataEmpleado() {\n DefaultTableModel dm = (DefaultTableModel) table.getModel();\n dm.getDataVector().removeAllElements();\n dm.fireTableDataChanged(); // notifies the JTable that the model has changed\n }", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "@Command(\"delete\")\n @NotifyChange({\"events\", \"selectedEvent\"})\n public void delete() {\n if(this.selectedEvent != null) {\n eventDao.delete(this.selectedEvent);\n this.selectedEvent = null;\n }\n }", "public void clearData(){\r\n data.clear();\r\n this.fireTableDataChanged();\r\n }", "public void delete() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"deleteButton\").click();\n\t}", "private void btnDelete1ActionPerformed(java.awt.event.ActionEvent evt) throws IOException {// GEN-FIRST:event_btnDelete1ActionPerformed\n\t\t// TODO add your handling code here:\n\t\tint i = tblBollard.getSelectedRow();\n\t\tif (i >= 0) {\n\t\t\tint option = JOptionPane.showConfirmDialog(rootPane, \"Are you sure you want to Delete?\",\n\t\t\t\t\t\"Delete confirmation\", JOptionPane.YES_NO_OPTION);\n\t\t\tif (option == 0) {\n\t\t\t\tTableModel model = tblBollard.getModel();\n\n\t\t\t\tString id = model.getValueAt(i, 0).toString();\n\t\t\t\tif (tblBollard.getSelectedRows().length == 1) {\n\t\t\t\t\t\n\t\t\t\t\tdelete(id,client);\n\t\t\t\t\t\n\t\t\t\t\tDefaultTableModel model1 = (DefaultTableModel) tblBollard.getModel();\n\t\t\t\t\tmodel1.setRowCount(0);\n\t\t\t\t\tfetch(client);\n\t\t\t\t\t//client.stopConnection();\n\t\t\t\t\tclear();\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\talert(\"Please select a row to delete\");\n\t\t}\n\t}", "public void removeAllDataCliente() {\n DefaultTableModel dm = (DefaultTableModel) table.getModel();\n dm.getDataVector().removeAllElements();\n dm.fireTableDataChanged(); // notifies the JTable that the model has changed\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(tblTickets.getSelectedRow() != -1) {\n\t\t\t\t\tint id = Integer.parseInt(tblTickets.getValueAt(tblTickets.getSelectedRow(), 0).toString());\n\t\t\t\t\tdeleteTicket(id);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "@FXML\n private void handleDeleteFilm() {\n int selectedIndex = filmTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n \tfilmTable.getItems().remove(selectedIndex);\n \tsave();\n } else {\n // Nothing selected.\n Dialogs.create()\n .title(\"No Selection\")\n .masthead(\"No Person Selected\")\n .message(\"Please select a person in the table.\")\n .showWarning();\n }\n }", "public void deleteUserData(){\n buttonResetDb.setOnClickListener(\n new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n app_db.truncateAllFactTables();\n Toast.makeText(MainActivity.this, \"DB Cleansed\", Toast.LENGTH_LONG).show();\n resetMainActivity();\n }\n }\n );\n }", "private void jBtn_SupprimerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtn_SupprimerActionPerformed\n // Si onglet Client\n if(numOnglet() == 0){\n // On stock l index quand une ligne de la table est selectionnnee\n int rowIndex = jTable_Clients.getSelectedRow();\n // Si pas de ligne selectionnee\n if(rowIndex == -1){\n showMessageDialog(null, \"Veuillez sélectionner la ligne du Client \"\n + \"à supprimer\");\n }\n else{\n // On appelle la methode d instance associee au Client selectionne\n laListeClient.get(rowIndex).Suppression();\n try {\n tableClient();\n } catch (Exception ex) {\n Logger.getLogger(JFrame_Accueil.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n // Onglet Prospect\n else{\n // On stock l index quand une ligne de la table est selectionnnee\n int rowIndex = jTable_Prospects.getSelectedRow();\n // Si pas de ligne selectionnee\n if(rowIndex == -1){\n showMessageDialog(null, \"Veuillez sélectionner la ligne du Prospect \"\n + \"à supprimer\");\n }\n else{\n // On appelle la methode d instance associee au Client selectionne\n laListeProspeect.get(rowIndex).Suppression();\n try {\n tableProspect();\n } catch (Exception ex) {\n Logger.getLogger(JFrame_Accueil.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n hideButton();\n }", "public void toDeletIndex()\n {\n try\n { \n //DefaultTableModel model=(DefaultTableModel)jt.getModel(); \n //jt.getModel();\n int num=Integer.parseInt(JOptionPane.showInputDialog(rootPane,\"Enter the row number\")); \n jtModel.removeRow(num-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted selected row number \" +num);\n }\n catch(NumberFormatException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Enter integer not alphabet\");\n } \n catch(ArrayIndexOutOfBoundsException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"This row dosent exist\");\n }\n }", "public void delete() throws SQLException {\r\n\t\t//SQL Statement\r\n\r\n\t\tString sql = \"DELETE FROM \" + table+ \" WHERE \" + col_genreID + \" = ?\";\r\n\t\tPreparedStatement stmt = DBConnection.getConnection().prepareStatement(sql);\r\n\t\tstmt.setInt(1, this.getGenreID());\r\n\r\n\t\tint rowsDeleted = stmt.executeUpdate();\r\n\t\tSystem.out.println(\"Es wurden \"+rowsDeleted+ \"Zeilen gelöscht\");\r\n\t\tstmt.close();\r\n\t}", "int delete(String tableName, String selectionCriteria, String[] selectionArgs);", "@FXML\r\n void onActionDelete(ActionEvent event) throws IOException {\r\n\r\n Appointment toDelete = appointmentsTable.getSelectionModel().getSelectedItem();\r\n\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete appointment ID# \" + toDelete.getAppointmentID() + \" Title: \" + toDelete.getTitle()\r\n + \" Type: \" + toDelete.getType());\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n DBAppointments.deleteAppointment(toDelete.getAppointmentID());\r\n\r\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/appointments.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n }", "void showDataDeletedMsg();", "@Override\n public void onClick(View v) {\n\n CouSyncDb.getInstance(getApplicationContext()).deleteSync(bean1, new OnOperateFinish() {\n @Override\n public void onFinish(int operateType, Object result) {\n text.setText(\"delete row ID = \" + result.toString());\n }\n });\n }", "private void delete(int selectedRow) {\r\n removing = true;\r\n deletingRow = selectedRow;\r\n //subAwardBudgetTableModel.deleteRow(selectedRow);\r\n deleteRow(selectedRow);\r\n \r\n //Select a Row\r\n int selectRow = 0;\r\n int rowCount = subAwardBudgetTableModel.getRowCount();\r\n if(selectedRow == 0 && rowCount > 0) {\r\n //Select First Row\r\n selectRow = 0;\r\n }else if(selectedRow == rowCount) {\r\n //Select Last Row\r\n selectRow = rowCount - 1;\r\n }else {\r\n //Select This Row\r\n selectRow = selectedRow;\r\n }\r\n removing = false;\r\n if(selectRow != -1) {\r\n subAwardBudget.tblSubAwardBudget.setRowSelectionInterval(selectRow, selectRow);\r\n }else{\r\n //If All rows Deleted, then Details panel should be cleared\r\n displayDetails();\r\n }\r\n deletingRow = -1;\r\n }", "public void deleteTDList(ActionEvent actionEvent) {\n // find the tdlist being referenced by the button,\n // removeList() from it's parenting group\n }", "public void clickedSpeakerDelete() {\n\t\tif(mainWindow.getSelectedRowSpeaker().length <= 0) ApplicationOutput.printLog(\"YOU DID NOT SELECT ANY PRESENTATION\");\n\t\telse if(mainWindow.getSelectedRowSpeaker().length > 1) ApplicationOutput.printLog(\"Please select only one presentation to edit\");\n\t\telse {\n\t\t\tint tmpSelectedRow = mainWindow.getSelectedRowSpeaker()[0];\n\t\t\tSpeakers tmpSpeaker = speakersList.remove(tmpSelectedRow);\t\t\t\n\t\t\tappDriver.hibernateProxy.deleteSpeaker(tmpSpeaker);\t\n\t\t\trefreshSpeakerTable();\t\t\t\n\t\t}\n\t}", "private void tampilkan() {\n int row = table.getRowCount();\n for(int a= 0; a<row;a++){\n model.removeRow(0);\n }\n \n \n }", "private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }", "public void removeAllData() {\n DefaultTableModel dm = (DefaultTableModel) table.getModel();\n dm.getDataVector().removeAllElements();\n dm.fireTableDataChanged(); // notifies the JTable that the model has changed\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdelete();\n\t\t\t}", "public void deleteSelection() {\n deleteFurniture(Home.getFurnitureSubList(this.home.getSelectedItems())); \n }", "private void delete(ActionEvent e){\r\n if (client != null){\r\n ConfirmBox.display(\"Confirm Deletion\", \"Are you sure you want to delete this entry?\");\r\n if (ConfirmBox.response){\r\n Client.deleteClient(client);\r\n AlertBox.display(\"Delete Client\", \"Client Deleted Successfully\");\r\n // Refresh view\r\n refresh();\r\n \r\n }\r\n }\r\n }", "private void delete() {\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n switch (which){\n case DialogInterface.BUTTON_POSITIVE:\n setResult(RESULT_OK, null);\n datasource.deleteContact(c);\n dbHelper.commit();\n finish();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n //Do Nothing\n break;\n }\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getString(R.string.confirm_delete) + (c==null?\"\":c.getName()) + \"?\").setPositiveButton(getString(R.string.yes), dialogClickListener)\n .setNegativeButton(getString(R.string.no), dialogClickListener).show();\n }", "@Override\n\tpublic void deleteClick(int id) {\n\t\t\n\t}", "public void deleteData()\n {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME, null, null);\n //context.deleteDatabase(DATABASE_NAME);\n\n }", "@Override\n\tpublic boolean delete() {\n\t\tString sql=\"DELETE FROM tc_student where id=\"+id;\n\t\t//`\n\t\t\n\t\tSystem.out.println(sql);\n\t\treturn mysql.execute(sql);\n\t}", "private void cmd_deleteSelection(){\n\t\tm_frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\t\tif (ADialog.ask(getWindowNo(), m_frame.getContainer(), \"DeleteSelection\"))\n\t\t{\t\n\t\t\tint records = deleteSelection(detail);\n\t\t\tsetStatusLine(Msg.getMsg(Env.getCtx(), \"Deleted\") + records, false);\n\t\t}\t\n\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\tbDelete.setSelected(false);\n\t\texecuteQuery();\n\t\t\n\t}", "public void clickedPresentationDelete() {\n\t\tif(mainWindow.getSelectedRowPresentation().length <= 0) ApplicationOutput.printLog(\"YOU DID NOT SELECT ANY PRESENTATION\");\n\t\telse if(mainWindow.getSelectedRowPresentation().length > 1) ApplicationOutput.printLog(\"Please select only one presentation to edit\");\n\t\telse {\n\t\t\tint tmpSelectedRow = mainWindow.getSelectedRowPresentation()[0];\n\t\t\tPresentations tmpPresentation = presentationList.remove(tmpSelectedRow);\t\t\t\n\t\t\tappDriver.hibernateProxy.deletePresentation(tmpPresentation);\t\n\t\t\trefreshPresentationTable();\t\t\t\n\t\t}\n\t}", "@FXML\n private void setRemoveButton() {\n Coach selectedRow = coachesTable.getSelectionModel().getSelectedItem();\n try {\n Connection conn = DatabaseHandler.getInstance().getConnection();\n try (Statement st = conn.createStatement()) {\n st.execute(\"delete from szkolka.uzytkownik where id_u=\" + selectedRow.getId() + \";\");\n coachesTable.getItems().remove(coachesTable.getSelectionModel().getSelectedItem());\n removeButton.setDisable(true);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void doDelete() throws Exception {\r\n\t\t_ds.deleteRow();\r\n\t\tdoDataStoreUpdate();\r\n\t\tif (_mode == MODE_LIST_ON_PAGE) {\r\n\t\t\tif (_listForm != null && _listForm.getDataStore() != _ds) {\r\n\t\t\t\t//different datastores on list and detail\r\n\t\t\t\tDataStoreBuffer listDs = _listForm.getDataStore();\r\n\t\t\t\tif (_listSelectedRow != null) {\r\n\t\t\t\t\tfor (int i = 0; i < listDs.getRowCount(); i++) {\r\n\t\t\t\t\t\tif (listDs.getDataStoreRow(i, DataStoreBuffer.BUFFER_STANDARD).getDSDataRow() == _listSelectedRow.getDSDataRow()) {\r\n\t\t\t\t\t\t\tlistDs.removeRow(i);\r\n\t\t\t\t\t\t\tbreak;\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\tif (listDs.getRowCount() == 0)\r\n\t\t\t\t\tsetVisible(false);\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (listDs.getRow() == -1)\r\n\t\t\t\t\t\tlistDs.gotoRow(listDs.getRowCount() - 1);\r\n\t\t\t\t\t_listForm.setRowToEdit(listDs.getRow());\r\n\t\t\t\t\tdoEdit();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t//list and detail share the same datastore\r\n\t\t\t\tif (_ds.getRowCount() == 0)\r\n\t\t\t\t\tsetVisible(false);\r\n\t\t\t\telse\r\n\t\t\t\t\tscrollToMe();\r\n\t\t\t}\r\n\t\t\tsyncListFormPage();\r\n\t\t} else {\r\n\t\t\treturnToListPage(true);\r\n\t\t}\r\n\t}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\n\r\n\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getItems().get(getIndex());\r\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"DELETE FROM dbo.product WHERE id=\"+data.getId())>0) {\r\n\t\t\t\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}", "public static void vaciartabla(){\n DefaultTableModel modelo=(DefaultTableModel) jtproveedores.getModel(); \n for (int i = 0; i < jtproveedores.getRowCount(); i++) {\n modelo.removeRow(i);\n i-=1;\n } \n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJTableUtils.clearTable(allowStressTable);\r\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tdelete();\n\t\t}", "private void delete() {\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tif (list.get(i).toString().equals(lu.toString())) {\r\n\t\t\t\tlist.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.makeXml(list);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tinitTableView();\r\n\t}", "public void onClick(DialogInterface dialog, int id) {\n\r\n db.countryDao().deleteAll();\r\n\r\n Toast.makeText(MainActivity.this,\"Data deleted\",Toast.LENGTH_SHORT).show();\r\n LoadCountryList();\r\n\r\n }", "public void deleteCt() {\n\t\tlog.info(\"-----deleteCt()-----\");\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tlistCtKhoLeTraEx.remove(selected);\n\t\tthis.count = listCtKhoLeTraEx.size();\n\t\ttinhTien();\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint choice = JOptionPane.showConfirmDialog(frame, \n\t\t\t\t\t\t\"Do you want to delete the selected projects?\\nThis action cannot be undone!\", \n\t\t\t\t\t\t\"Delete Selected\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\t\t\t\tif(choice == 0){\n\t\t\t\t\tSystem.out.println(\"Delete\");\n\t\t\t\t\tString[] selected = sel.getSelected(); \n\t\t\t\t\tfor(int i=0;i<selected.length;i++) {\n\t\t\t\t\t\n\t\t\t\t\t\tint index = portfolio.findByCode(selected[i]);\n\t\t\t\t\t\tportfolio.remove(index, config.isUpdateDB());\n\t\t\t\t\t\tsel.remove(index);\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\t\n\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\ttoggleSaved(false);\n\t\t\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == menuItem1){\r\n\t\t\tList li = new List();\r\n\t\t\tli.Run();\r\n\t\t}\r\n\t\telse if(e.getSource() == menuItem2){\r\n\t\t\tDelete de = new Delete();\r\n\t\t\tde.Run();\r\n\t\t}\r\n\t\telse if(e.getSource() == menuItem3){\r\n\t\t\tstrSql = \"Delete from saveinfo;\";\r\n\t\t\tDeleteData dd = new DeleteData(strSql);\r\n\t\t\tdd.delete();\r\n\t\t}\r\n\t\t\r\n\t}", "public void keyPressedOnTable(KeyEvent e) {\n\t\tif (e.getKeyCode() == KeyEvent.VK_DELETE) {\n\t\t\taksiDelete();\n\t\t}\n\t}", "@FXML\n\tpublic void handleExcluir(MouseEvent event) {\n\t\tif(colNome.getCellData(jtvIngredienteTable.getSelectionModel().getSelectedIndex()) != null){\n\t\t\tingredienteService = new IngredienteService();\n\t\t\tIngrediente ingrediente = jtvIngredienteTable.getSelectionModel().getSelectedItem();\n\t\t\tingredienteService.delete(ingrediente.getId());\n\t\t\tatualizarTable();\n\t\t}else{\n\t\t\tScreenUtils.janelaInformação(spDialog, Internationalization.getMessage(\"header_erro3\"), Internationalization.getMessage(\"item_nao_selecionado\"), Internationalization.getMessage(\"erro_button2\"));\n//\t\t\tScreenUtils.janelaInformação(spDialog, \"Ops\", \"Por favor, selecione um item.\", \"Sem problemas\");\n\t\t}\n\t}", "public void deleteTableRecords()\n {\n coronaRepository.deleteAll();\n }", "public void delete() {\n\t\ttry {\n\t\t\tStatement stmt = m_db.m_conn.createStatement();\n\t\t\tString sqlString;\n\t\t\tString ret;\n\n\t\t\tsqlString = \"DELETE from country WHERE countryid=\" + m_country_id;\n\t\t\tm_db.runSQL(sqlString, stmt);\n\t\t\tstmt.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\">>>>>>>> EXCEPTION <<<<<<<<\");\n\t\t\tSystem.out.println(\"An Exception occured in delete().\");\n\t\t\tSystem.out.println(\"MESSAGE: \" + e.getMessage());\n\t\t\tSystem.out.println(\"LOCALIZED MESSAGE: \" + e.getLocalizedMessage());\n\t\t\tSystem.out.println(\"CLASS.TOSTRING: \" + e.toString());\n\t\t\tSystem.out.println(\">>>>>>>>>>>>>-<<<<<<<<<<<<<\");\n\t\t}\n\t}", "public void deleteCartRow() {\n CarComponent selectedRow = cartTable.getSelectionModel().getSelectedItem();\n cartTable.getItems().remove(selectedRow);\n componentsCart.remove(selectedRow);\n\n updateTotal();\n }", "@FXML\n private void handleDeletePerson() {\n int selectedIndex = personTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n personTable.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"No Selection\");\n alert.setHeaderText(\"No Shops Selected\");\n alert.setContentText(\"Please select a person in the table.\");\n \n alert.showAndWait();\n }\n }" ]
[ "0.7537103", "0.74402326", "0.7341294", "0.73383623", "0.7275788", "0.7216757", "0.71868646", "0.71868646", "0.7185526", "0.7178733", "0.71489435", "0.7106104", "0.69972485", "0.69877005", "0.6955474", "0.6952295", "0.6909404", "0.6901895", "0.68829834", "0.6861824", "0.6856935", "0.6849379", "0.682692", "0.6783702", "0.6773777", "0.6762335", "0.67484945", "0.67481494", "0.674775", "0.67152566", "0.67053807", "0.6697369", "0.6652839", "0.6641022", "0.6640865", "0.66395056", "0.6638012", "0.66242415", "0.66202086", "0.6603715", "0.6602138", "0.660077", "0.6573102", "0.657223", "0.6564453", "0.6562996", "0.65595984", "0.65581226", "0.6544259", "0.6539214", "0.65340364", "0.65246", "0.6515209", "0.6488335", "0.6483424", "0.64662206", "0.64529145", "0.6447618", "0.64452076", "0.6444348", "0.64374876", "0.6436875", "0.64132184", "0.64117444", "0.6406636", "0.6406133", "0.6403182", "0.63952345", "0.63883126", "0.63861704", "0.63802594", "0.63771003", "0.6376748", "0.63676673", "0.6365312", "0.63648415", "0.6351827", "0.635136", "0.6344096", "0.6342966", "0.63403666", "0.63327706", "0.6329459", "0.6311423", "0.63077426", "0.63055015", "0.6305113", "0.63031566", "0.62785333", "0.62777483", "0.62754357", "0.62733006", "0.62676406", "0.6266259", "0.62478495", "0.62474895", "0.6247125", "0.6245402", "0.6245139", "0.62429273" ]
0.73915434
2
Displays the 'Goto...' dialog
public void popupMenuGoto() { int rowIndex = table.getSelectionIndex(); int columnIndex = cursor.getColumn(); // // Display the dialog // GotoDialog gotoDialog = new GotoDialog(parent.getShell(), rowIndex, columnIndex); if (gotoDialog.open() != Window.OK) return; HexTablePointer p = gotoDialog.getNewPosition(); if (p == null) { // // Error calculating new position - do nothing // return; } // if if (p.getRowIndex() < 0 || p.getColumnIndex() < 0) { MessageDialog.openError(parent.getShell(), HexEditorConstants.DIALOG_TITLE_ERROR, Messages.HexEditorControl_49); cursor.setSelection(0, 1); cursor.redraw(); table.setSelection(0); // // Update the status panel // updateStatusPanel(); return; } try { cursor.setSelection(p.getRowIndex(), p.getColumnIndex() + 1); } catch (IllegalArgumentException e) { int numRows = table.getItemCount(); int lastRowIndex = (numRows > 0) ? (numRows - 1) : numRows; MessageDialog.openError(parent.getShell(), HexEditorConstants.DIALOG_TITLE_ERROR, "Address is out of range!"); int lastColumnIndex = table.getBufferSize() % HexEditorConstants.TABLE_NUM_DATA_COLUMNS; cursor.setSelection(lastRowIndex, lastColumnIndex + 1); cursor.redraw(); table.setSelection(lastRowIndex); // // Update the status panel // updateStatusPanel(); return; } // // Place the cursor where was calculated // cursor.setSelection(p.getRowIndex(), p.getColumnIndex() + 1); cursor.redraw(); table.setSelection(p.getRowIndex()); // // Update the status panel // updateStatusPanel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String addGoto() {\n\t\t// One Parameter: DisplayName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|GoTo:\" + parameters[0]);\n\t\treturn tag.toString();\n\t}", "public void Goto() {\n\t\t\n\t}", "@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}", "@FXML\n private void copyGoto() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(GOTO_MESSAGE);\n clipboard.setContent(url);\n }", "private void openDialogHelpJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openDialogHelpJButtonActionPerformed\n setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));\n BareBonesBrowserLaunch.openURL(\"http://cruxtoolkit.sourceforge.net/\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n }", "@FXML\n\tprivate void MainEnterBt() throws IOException {\n\n\t\tmain.showSelectionPage(); // #1\n\n\t}", "public void goToSlide() {\t\t\t\t\r\n\t\tString pageNumberStr = JOptionPane.showInputDialog(\"Page number?\");\r\n\t\tint pageNumber = Integer.parseInt(pageNumberStr);\r\n\t\t\r\n\t\tgoToSlide(pageNumber);\r\n\t}", "private void gotoCheckInListView() {\n }", "public void displayHelpMenuView()\n {\n System.out.println(\"\\nHelp menu selected.\");\n }", "public static GotoExpression goto_(LabelTarget labelTarget) { throw Extensions.todo(); }", "public static GotoExpression goto_(LabelTarget labelTarget, Class type) { throw Extensions.todo(); }", "public void goToHowTo(View view) {\n\t\tString msg = \"1. Under Options, define rules for both red and blue cells.\\n\\n\"\n\t\t\t\t+ \"2. Adjust performance, gameplay and visual options.\\n\\n\"\n\t\t\t\t+ \"3. Hit start. The menu button offers additional tools. Create new cells by drawing on the screen.\\n\\n\"\n\t\t\t\t+ \"4. There is no goal, just play around.\";\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Duel of Life - How To\");\n\t\talert.setMessage(msg);\n\t\talert.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\t// Clicked\n\t\t\t}\n\t\t});\n\t\talert.show();\n\t}", "void gotoEditProfile();", "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}", "void showHelp() {\n\t\tif (helpScreen == null) {\n\t\t helpScreen = new Form(\"Walking Help\");\n\t\t helpScreen.append(\"^ = walk forward\\n\");\n\t\t helpScreen.append(\"v = walk backwards\\n\");\n\t\t helpScreen.append(\"< = turn left\\n\");\n\t\t helpScreen.append(\"> = turn right\\n\");\n\t\t helpScreen.append(\"fire = change reverb manually\\n\");\n\t\t}\n\t\thelpScreen.addCommand(toggleCommand);\n\t\thelpScreen.setCommandListener(this);\n\t\tdisplay.setCurrent(helpScreen);\n }", "default public void clickHome() {\n\t\tremoteControlAction(RemoteControlKeyword.HOME);\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tg.printHelp(\"OthelloHelp.txt\");\n\t}", "public static GotoExpression goto_(LabelTarget labelTarget, Expression expression, Class type) { throw Extensions.todo(); }", "@Override\n public void actionPerformed(ActionEvent e) {\n helpPopUp();\n }", "public static GotoExpression goto_(LabelTarget labelTarget, Expression expression) { throw Extensions.todo(); }", "public static void Goto()\n\t{\n\t\tUserLogin.Login();\n\t\t\t\t\n\t\t//Choose community\n\t\tWebElement Community= Driver.Instance.findElement(PageObjRef.CommunityTab);\n\t\tCommunity.click();\n\t\tWebElement CommunityToJoin= Driver.Instance.findElement(PageObjRef.CommunityToJoin);\n\t CommunityToJoin.click();\n\t\t\n\t}", "public void cursorHome();", "private void gotoOptions() {\n Intent launchOptions = new Intent(this, Preferences.class);\n startActivity(launchOptions);\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 GotoExpression makeGoto(GotoExpressionKind kind, LabelTarget target, Expression value, Class type) { throw Extensions.todo(); }", "public void goTo() { // Navigate to home page\n\t\tBrowser.goTo(url);\n\t}", "public void menu()\n {\n System.out.println(\"\\n\\t\\t============================================\");\n System.out.println(\"\\t\\t|| Welcome to the Movie Database ||\");\n System.out.println(\"\\t\\t============================================\");\n System.out.println(\"\\t\\t|| (1) Search Movie ||\");\n System.out.println(\"\\t\\t|| (2) Add Movie ||\");\n System.out.println(\"\\t\\t|| (3) Delete Movie ||\");\n System.out.println(\"\\t\\t|| (4) Display Favourite Movies ||\");\n System.out.println(\"\\t\\t|| (5) Display All Movies ||\");\n System.out.println(\"\\t\\t|| (6) Edit movies' detail ||\");\n System.out.println(\"\\t\\t|| (7) Exit System ||\");\n System.out.println(\"\\t\\t=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.print( \"\\t\\tPlease insert your option: \");\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(frame, \n//\" Programming language: Java\\n\"+\n\" Developer: Monish Gupta\\n\"+\n\" monishgupta.blogspot.com\", \"About\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t}", "public void gotoGmail(){\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent e)\r\n\t{\r\n\t\tjump();\r\n\t}", "public void onClick(View v) {\n\t\t\t\t\t\tremoveDialog(DIALOG_GOTO);\r\n\t\t\t\t\t}", "public void Open() {\r\n\t click();\r\n\t }", "private void showHelpDialog() {\n\n view.helpDialog();\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 }", "private void moveToNewLocation() {\r\n System.out.println(\"\\nThis is the move to a new location option\");\r\n }", "@Override public void doAction(int option)\r\n{\r\n switch(option)\r\n {\r\n case 1: //view the map\r\n viewMap();\r\n break;\r\n case 2: //view/print a list\r\n viewList();\r\n break;\r\n case 3: // Move to a new location\r\n moveToNewLocation();\r\n break;\r\n case 4: // Manage the crops\r\n manageCrops();\r\n break;\r\n case 5: // Return to Main Menu\r\n System.out.println(\"You will return to the Main Menu now\");\r\n \r\n }\r\n}", "public final void go() {\n this.getView().showCountries(this.getModel().getCountries());\n CountryFindChoice choice;\n do {\n choice = this.getView().askUserFindChoice();\n } while (choice == CountryFindChoice.error);\n String codeOrName = this.getView().askCodeOrName(choice);\n Country country = null;\n switch (choice) {\n case byCode:\n country = this.getModel().getCountryByCode(codeOrName);\n break;\n case byName:\n country = this.getModel().getCountryByName(codeOrName);\n break;\n }\n if(country != null) {\n this.getView().printMessage(country.getHelloWorld().getMessage());\n }\n this.getModel().close();\n }", "@Override\n public void buttonClick(ClickEvent event) {\n \tgetUI().getNavigator().navigateTo(NAME + \"/\" + contenView);\n }", "public void showNextMovePrompt() {\n\n if(model.isXTurn()){\n resultLabel.setText(\"X's Turn\");\n }\n else{\n resultLabel.setText(\"O's Turn\");\n }\n }", "@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }", "private void printMovieMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \"1.Search by Actor\", \"2.Search by Title\", \"3.Search by Genre\",\"4.Back to Login Menu\");\n\t}", "public static void menu() {\n\t\tSystem.out.println(\"\\nPlease select which type of argument to generate by entering the associated number.\\n\");\n\t\tfor(int i = 0; i < type.length; i++) {\n\t\t\tSystem.out.println((i+1)+\". \"+type[i]);\n\t\t}\n\t\tSystem.out.println(\"8. Quit\");\n\t}", "public void showMenu() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\t1. Show vertices\");\n\t\tSystem.out.println(\"\\t2. Show adjacent vertices\");\n\t\tSystem.out.println(\"\\t3. Get vertex count\");\n\t\tSystem.out.println(\"\\t4. Get edge count\");\n\t\tSystem.out.println(\"\\t5. Add vertex\");\n\t\tSystem.out.println(\"\\t6. Add edge\");\n\t\tSystem.out.println(\"\\t7. Remove vertex\");\n\t\tSystem.out.println(\"\\t8. Remove edge\");\n\t\tSystem.out.println(\"\\t9. Check connectivity\");\n\t\tSystem.out.println(\"\\t0. Check adjacency\");\n\t\tSystem.out.println(\"\\tTRAVERSAL ALGORITHMS\");\n\t\tSystem.out.println(\"\\t11. Depth-first traversal\");\n\t\tSystem.out.println(\"\\t12. Breadth-first traversal\");\n\t\t\n\t\tSystem.out.println(\"\\tINPUT -1 TO EXIT\");\n\t\tSystem.out.println();\n\t}", "public void goHome() throws ManipulatorException;", "@Override\r\n public void doHelpAction() {\n BIReportService.getInstance().traceHelpClick(project.getBasePath(), ConversionHelpEnum.PATH_SETTING);\r\n\r\n ApplicationManager.getApplication().invokeLater(() -> {\r\n BrowserUtil.browse(allianceDomain + HmsConvertorBundle.message(\"directory_url\"));\r\n }, ModalityState.any());\r\n }", "default public void clickMenu() {\n\t\tremoteControlAction(RemoteControlKeyword.MENU);\n\t}", "private void gotoCompletePage() {\n WebkitUtil.forward(mWebView, AFTER_PRINT_PAGE);\n }", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "private void btn_HelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_HelpActionPerformed\n // go to help screen\n SIHS = new HelpScreen(value);\n SIHS.setVisible(true);\n\n\n }", "public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Explorer\")) {\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\tOpenWithDefaultViewer.open(GestionRepertoire.RecupRepTravail());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "private void goGuide() {\n }", "private void goToMenu() {\n\t\tgame.setScreen(new MainMenuScreen(game));\n\n\t}", "public void clickEdit() {\r\n\t\tEdit.click();\r\n\t}", "public void HelpButtonClick(View view) {\n GeneralHelper.ShowHelpInWishActivity(\"step_test.html\", \"\", this);\n return;\n }", "public void proceedToLetsGo() {\n\t\tBrowser.click(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\");\n\t}", "void buttonGo_actionPerformed(ActionEvent e) {\n\n\n }", "public void actionPerformed(ActionEvent e) { \n enter();\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"<html><center><u><strong>Edité par :</strong></u><br>RAHMANI ABD EL KADER<br>SEIF EL ISLEM<br> Groupe 1 Section 1</center></html>\", \"A propros\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t}", "@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}", "protected void HelpActionPerformed(ActionEvent e) {\n\t\tthis.setVisible(false);\n\t\tHelp frame = new Help();\n\t\tframe.UpFrame=this;\n\t\tframe.setVisible(true);\n\t}", "public void selectPressed() {\n\t\tif (edit) {\n\t\t\tdisplayCardHelp = !displayCardHelp;\n\t\t} else {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t}", "private void actionOnClicHelp() {\r\n\t\ttry {\r\n\t\t\tGUIGeneralMethods.openWebPage(new URL(Constants.C_HELPING_URL));\r\n\t\t} catch (URISyntaxException | IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(frame, Constants.C_ERROR_WHILE_BROWSING_HELP, Constants.C_ERROR_DIALOG_TITLE,\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE); \r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}", "protected void jumpPage() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.txtjump));\n\t\tfinal SeekBar seek = new SeekBar(this);\n\t\tseek.setOnSeekBarChangeListener(this);\n\t\tseek.setMax(100);\n\t\tint p = (int) (BookPageFactory.sPercent * 100);\n\t\tseek.setProgress(p);\n\t\tbuilder.setView(seek);\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tint per = seek.getProgress();\n\t\t\t\t\t\t\tif (per >= 0.0 && per <= 100.0) {\n\t\t\t\t\t\t\t\tmPagefactory.jumpPage(per);\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\tmPagefactory.onDraw(mCurPageCanvas);\n\t\t\t\t\t\t\t\tmPageWidget.setBitmaps(mCurPageBitmap,\n\t\t\t\t\t\t\t\t\t\tmNextPageBitmap);\n\t\t\t\t\t\t\t\tmPageWidget.startAnimation(1000);\n\t\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\t\tgetString(R.string.successjump),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\t\tgetString(R.string.hintjunp),\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.hintjunp),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\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}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "public void gotoMain(View view) {\n finish();\n }", "public void showHelp(CommandSender sender) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString url = \"Aide.html\";\r\n\t\t\t\tFile htmlFile = new File(url);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "private void jumpToCreateorUpdate(String action, Team update) {\r\n CreateorUpdateTeam windowAux = new CreateorUpdateTeam();\r\n menuTeams.setVisible(false);\r\n windowAux.setUpdateTeam(update);\r\n windowAux.setFunctiontoRealize(action);\r\n windowAux.openWindow(menuTeams);\r\n }", "public void helpPressed() {\n Stage mainStage = (Stage)pane.getScene().getWindow();\n PresentationCtrl.getInstance().showNotification(\"Information\", \"Information\", null,\n \"- Click <Clear> button to clear the history\\n\\n- Click <Refresh> button to refresh the history\" +\n \"\\n\\n- Double clicks on a row to see the detailed information\", mainStage);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcd.show(jp, \"3\");\n\t\t\t}", "public static void action(ActionEvent actionEvent){\n\t\tString lineNumberString = (String) JOptionPane.showInputDialog(null,\r\n\t\t\t\tAcideLanguageManager.getInstance().getLabels()\r\n\t\t\t\t\t\t.getString(\"s448\"), AcideLanguageManager.getInstance()\r\n\t\t\t\t\t\t.getLabels().getString(\"s447\"),\r\n\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION, null, null, null);\r\n\r\n\t\tif ((lineNumberString != null)) {\r\n\t\t\ttry {\r\n\r\n\t\t\t\t// If there are file editors opened\r\n\t\t\t\tif (AcideMainWindow.getInstance().getFileEditorManager()\r\n\t\t\t\t\t\t.getNumberOfFileEditorPanels() > 0){\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Parses the number of line\r\n\t\t\t\t\tint lineNumberInteger = Integer.parseInt(lineNumberString);\r\n\r\n\t\t\t\t\t// If the number of lines is positive\r\n\t\t\t\t\tif (lineNumberInteger > 0) {\r\n\r\n\t\t\t\t\t\t// Go to line in the selected one\r\n\t\t\t\t\t\tAcideMainWindow.getInstance().getFileEditorManager()\r\n\t\t\t\t\t\t\t\t.getSelectedFileEditorPanel()\r\n\t\t\t\t\t\t\t\t.goToLine(lineNumberInteger);\r\n\t\t\t\t\t} else\r\n\r\n\t\t\t\t\t\t// Displays an error message\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, AcideLanguageManager\r\n\t\t\t\t\t\t\t\t.getInstance().getLabels().getString(\"s2010\"),\r\n\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception exception) {\r\n\r\n\t\t\t\t// Displays an error message\r\n\t\t\t\tJOptionPane.showMessageDialog(null, AcideLanguageManager\r\n\t\t\t\t\t\t.getInstance().getLabels().getString(\"s2010\"),\r\n\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\r\n\t\t\t\t// Updates the log\r\n\t\t\t\tAcideLog.getLog().error(exception.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }", "private void jMenuItem141ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem141ActionPerformed\n URI uri = null;\n try {\n uri = new URI(\"http://manual.audacityteam.org/quick_help.html\");\n }\n catch (URISyntaxException ex) {\n Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\n if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\n try {\n desktop.browse(uri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }", "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 }", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO step over using debugger\r\n\t\t\t\t\tSystem.out.println(\"Step over button pressed\");\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgoNext();\r\n\t\t\t\t}", "@Override\n\tprotected void handleHelp(ClickEvent event) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"CliPantallaBusquedaExpedientes\");\t \n\t\t\t}", "public void actionPerformed (ActionEvent e) {\n if(e.getActionCommand().equals(\"Back\")) {\r\n OptionsPage f1 = new OptionsPage(strUser);\r\n f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n f1.setSize(500, 500 ); \r\n f1.setVisible(true); \r\n this.dispose(); \r\n }\r\n //open the main page\r\n\tif(e.getActionCommand().equals(\"Log Out\")) {\r\n MainPage f1 = new MainPage();\r\n f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n f1.setSize(500, 500 ); \r\n f1.setVisible(true); \r\n this.dispose(); \r\n }\r\n }", "public void run(IAction action) {\n\t\tInstaSearchUI.getWorkbenchWindow().getActivePage().activate( InstaSearchUI.getActiveEditor() );\n\t\tNewSearchUI.openSearchDialog(InstaSearchUI.getWorkbenchWindow(), InstaSearchPage.ID);\n\t}", "public void gotoCenter(){\n String id = identification.getText();\n if (id.equals(\"Label\")){\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n alert.setContentText(\"Please login first!\");\n alert.showAndWait();\n }else{\n if (id.equals(\"admin\")){\n application.gotoUserMangement();\n }else if (id.equals(\"coach\")){\n application.gotoCoachCenter();\n }\n }\n }", "private void openDialogHelpJButtonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_openDialogHelpJButtonMouseEntered\n setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n }", "@Override\n\tpublic void goToUiCobrador() {\n\t\tif(uiHomeCobrador!=null){\n\t\t\tuiHomeCobrador.getHeader().getLblTitulo().setText(constants.cobrador());\n\t\t\tuiHomeCobrador.getHeader().setVisibleBtnMenu(true);\n\t\t\tuiHomeCobrador.getContainer().showWidget(0);\n\t\t\t}\n\t}", "public void showHelp();", "public static void help() {\n System.out.println(\"MENU : \");\n System.out.println(\"Step 1 to create a default character.\"); // create and display a character\n System.out.println(\"Step 2 to display characters.\");\n System.out.println(\"Step 3 to choice a character for list his details. \");\n System.out.println(\"Step 4 to start fight between 2 characters\");\n System.out.println(\"step 5 to remove a character.\");\n System.out.println(\"step 6 to create a Warrior.\");\n System.out.println(\"step 7 to create a Wizard.\");\n System.out.println(\"step 8 to create a Thief.\");\n System.out.println(\"Step 9 to exit the game. \");\n System.out.println(\"Step 0 for help ....\");\n\n }", "public void actionPerformed(ActionEvent e) {\r\n JTextPane pane = new JTextPane();\r\n JScrollPane scroller = new JScrollPane();\r\n scroller.getViewport().add(pane);\r\n JDialog dialog = new JDialog();\r\n dialog.getContentPane().add(scroller);\r\n dialog.pack();\r\n dialog.setSize(800, 500);\r\n dialog.setVisible(true);\r\n String htmlDocument = \"userguide.html\";\r\n \r\n try {\r\n java.net.URL url = \r\n new java.net.URL(\"file:docs\" + \r\n System.getProperty(\"file.separator\") + \r\n htmlDocument);\r\n pane.setPage(url);\r\n }\r\n catch(Exception ex) {\r\n updateStatus(ex.getMessage());\r\n }\r\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 pressTVButton() {\n System.out.println(\"Home: You must pick an app to show movies.\\n\");\n }", "protected void help() {\n println(\"go - Begin execution at Start or resume execution from current pc location\");\n println(\"go <loc1> - Begin execution at <loc1>\");\n println(\"step - Execute next step\");\n println(\"dump <loc1> <loc2> - Dump memory locations from (including) <loc1> - <loc2>\");\n println(\"dumpr - Dump a table of registers\");\n println(\"exit - Exit debugger\");\n println(\"deas <loc1> <loc2> - Deassmble memory locations from (including) <loc1> - <loc2>\");\n println(\"brkt - List the current break point table\");\n println(\"sbrk <loc1> - Set break point at <loc1>\");\n println(\"cbrk <loc1> - Clear break point at <loc1>\");\n println(\"cbrkt - Clear breakpoint table\");\n println(\"help - Print a summary of debugger commands\");\n println(\"chngr <r#> <value> - Change the value of register <r#> to <value>\");\n println(\"chngm <loc1 <value> - Change the value of memory loaction <loc1> to <value>\");\n }", "@Override\n\tpublic void goHome() {\n\t\tSystem.out.println(\"回窝了!!!!\");\n\t}", "public abstract void clickHelp(FloodItWorld w, ACell topLeft);", "public void go() {\n\t\tjfad.setVisible(true);\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(SuperScouting.this, MatchList.class);\n intent.putExtra(Constants.Intent_Extras.NEXT_PAGE, Constants.Intent_Extras.SUPER_SCOUTING);\n startActivity(intent);\n }", "private void ViewActionPerformed(ActionEvent e) {\n\t}", "private void mainMenu() {\r\n System.out.println(\"Please choose an option: \");\r\n System.out.println(\"1. New Player\");\r\n System.out.println(\"2. New VIP Player\");\r\n System.out.println(\"3. Quit\");\r\n }", "default public void clickUp() {\n\t\tremoteControlAction(RemoteControlKeyword.UP);\n\t}", "private void printMainMenu(){\n\t\tprint(\"Please choose from the options below\", System.lineSeparator()+\"1.Login\", \"2.Exit\");\n\t}", "@And(\"^I goto Activation Page$\")\r\n\t\r\n\tpublic void I_goto_Activation_Page() throws Exception {\r\n\t\t\r\n\t\tenduser.click_activationTab();\r\n\t\t\r\n\t}", "protected void handleHelp(ActionEvent event) {\n\t}", "void showSelectedAgentView();" ]
[ "0.7035554", "0.6429646", "0.63993126", "0.6278943", "0.61468065", "0.60896903", "0.60865724", "0.60468614", "0.6038204", "0.60347277", "0.6027345", "0.6011647", "0.6002008", "0.59944534", "0.5964589", "0.5961369", "0.5959841", "0.5956082", "0.5939747", "0.59341204", "0.58640516", "0.58443606", "0.5834315", "0.5819261", "0.5818184", "0.5813524", "0.58120215", "0.5807394", "0.5804851", "0.58037436", "0.57864577", "0.5773507", "0.57701224", "0.5753202", "0.5752346", "0.5748854", "0.5739971", "0.57323295", "0.5728971", "0.57288784", "0.5711356", "0.57098323", "0.5695336", "0.5694507", "0.5692431", "0.56893146", "0.5679434", "0.5673892", "0.56732965", "0.5671962", "0.56697613", "0.5665943", "0.5649895", "0.5648116", "0.56439006", "0.56435627", "0.56419224", "0.56414765", "0.56411403", "0.56379616", "0.563342", "0.56279606", "0.5624722", "0.56166184", "0.5612651", "0.56104267", "0.56094664", "0.5607194", "0.5591843", "0.5589069", "0.5588023", "0.5586882", "0.5583156", "0.5578466", "0.55783427", "0.5578205", "0.5559341", "0.5555714", "0.55545723", "0.5553314", "0.55471027", "0.55439085", "0.5541535", "0.5539634", "0.5529342", "0.55157244", "0.5513726", "0.5505872", "0.5505388", "0.5501993", "0.5492873", "0.5488466", "0.5484842", "0.5480746", "0.546883", "0.5467096", "0.54666615", "0.5464572", "0.54628485", "0.5458393" ]
0.7535369
0
Displays the 'About' dialog
private void popupMenuAbout() { // // Display the dialog // AboutDialog aboutDialog = new AboutDialog(parent.getShell(), SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM); aboutDialog.open(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showAbout() {\r\n\t\tshowMessage(\"About\", \" Curtis Baldwin's Intelligent Building\"); // About message created when about button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// pressed\r\n\t}", "private void showAboutDialog() {\n\n view.aboutDialog();\n }", "private void helpAbout() {\n JOptionPane.showMessageDialog(this, new ConsoleWindow_AboutBoxPanel1(), \"About\", JOptionPane.PLAIN_MESSAGE);\n }", "private void displayAboutDialog() {\n final String message = \"AUTHORS\\n\" + \"Kaitlyn Kinerk and Alan Fowler\\n\"\n + \"TCSS 305 - UW Tacoma - 6/8/2016\\n\" + \"\\nIMAGE CREDIT\\n\"\n + \"Background: \"\n + \"http://wallpapercave.com/purple-galaxy-wallpaper\";\n JOptionPane.showMessageDialog(null, message, \"About\", JOptionPane.PLAIN_MESSAGE,\n new ImageIcon(\"icon.gif\"));\n }", "public void helpAbout_actionPerformed(ActionEvent e) {\n AboutDialog dlg = new AboutDialog(this, \"About InfoFilter Application\", true);\n Point loc = this.getLocation();\n\n dlg.setLocation(loc.x + 50, loc.y + 50);\n dlg.show();\n }", "private void showAbout() {\n JOptionPane.showMessageDialog(this,\n \"TalkBox\\n\" + VERSION,\n \"About TalkBox\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "private void openAbout() {\r\n\t\tJDialogAbout jDialogAbout = new JDialogAbout();\r\n\t\tjDialogAbout.setVisible(true);\r\n\t}", "void aboutMenuItem_actionPerformed(ActionEvent e) {\n AboutDialog dlg = new AboutDialog(this, \"About InfoFilter Application\", true);\n Point loc = this.getLocation();\n\n dlg.setLocation(loc.x + 50, loc.y + 50);\n dlg.show();\n }", "private void dialogAbout() {\n\t\tGraphicalUserInterfaceAbout.start();\r\n\t}", "@Action\n public void showAboutBox()\n {\n if (aboutBox == null)\n {\n JFrame mainFrame = SWAPdmtApp.getApplication().getMainFrame();\n aboutBox = new SWAPdmtAboutBox(mainFrame);\n aboutBox.setLocationRelativeTo(mainFrame);\n }\n SWAPdmtApp.getApplication().show(aboutBox);\n }", "private void about() {\n System.out.println(Strings.MAIN_ABOUT_MESSAGE);\n System.out.println();\n }", "void showAbout() {\n\t\tif (aboutScreen == null) {\n\t\t aboutScreen = new Form(\"About AMMS Mansion demo\");\n\t\t aboutScreen.append(\"This MIDlet demonstrates the 3D audio capabilities of AMMS API.\\n\");\n\t\t aboutScreen.append(\"\\n\");\n\t\t aboutScreen.append(\"Copyright (c) 2006 Nokia. All rights reserved.\\n\");\n\t\t aboutScreen.append(\"\\n\");\n\t\t aboutScreen.append(\"\\n\");\n\t\t}\n\t\taboutScreen.addCommand(toggleCommand);\n\t\taboutScreen.setCommandListener(this);\n\t\tdisplay.setCurrent(aboutScreen);\n }", "public static void showAboutUs() throws IOException {\n Main.FxmlLoader(ABOUTUSPAGE_PATH);\n }", "public static void actionPerformed()\r\n {\r\n AboutWindow.showAboutWindow();\r\n }", "public void showAbout() {\n\t\t/* track \"About\" */\n\t\ttracker.trackEvent(\"Listings\", \"Click\", \"About\", 0);\n\n\t\tUri uri = Uri.parse(\"http://static.flipzu.com/about-android.html\");\n\t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n\t\tstartActivity(intent);\n\t}", "@FXML public void showAbout() {\n\t\tPopupMessage.getInstance().showAlert(AlertType.INFORMATION, \n\t\t\t\t\t\t\t\t\t\t\taboutTitle,\n\t\t\t\t\t\t\t\t\t\t\taboutHeader, \n\t\t\t\t\t\t\t\t\t\t\taboutDetails);\n\t}", "public void handleAbout() {\n displayAuxiliaryWindow(aboutWindow);\n }", "private void showAbout() {\n toolbar.setTitle(R.string.about);\n AboutFragment aboutFragment = new AboutFragment();\n displaySelectedFragment(aboutFragment);\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogAbout();\r\n\t\t\t}", "public static void prikaziAboutUs() {\r\n\t\tguiAboutUs = new GUIAboutUs(teretanaGui, true);\r\n\t\tguiAboutUs.setLocationRelativeTo(null);\r\n\t\tguiAboutUs.setVisible(true);\r\n\t}", "public static void goToAboutWindow()\n {\n AboutWindow aboutWindow = new AboutWindow();\n aboutWindow.setVisible(true);\n aboutWindow.setFatherWindow(actualWindow, false);\n }", "protected void aboutUs(ActionEvent ae) {\n\t\tString info = \"【猿来入此】出品\\n\";\n\t\tinfo += \"网址:http://programmer.ischoolbar.com \\n\";\n\t\tinfo += \"每天更新一个项目,并附带视频教程!\";\n\t\tString[] buttons = {\"迫不及待去看看!\",\"心情不好以后再说!\"};\n\t\tint ret = JOptionPane.showOptionDialog(this, info, \"关于我们\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.DEFAULT_OPTION, new ImageIcon(LoginFrm.class.getResource(\"/images/logo.png\")), buttons, null);\n\t\tif(ret == 0){\n\t\t\t//采用Java 调用系统浏览器打开制定\n\t\t\ttry {\n\t\t\t\tURI uri = new URI(\"http://programmer.ischoolbar.com\");\n\t\t\t\tDesktop.getDesktop().browse(uri);\n\t\t\t\t//Runtime.getRuntime().exec(\"explorer http://programmer.ischoolbar.com\");\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}else{\n\t\t\tJOptionPane.showMessageDialog(this, \"你真是狠心,坏淫!\");\n\t\t}\n\t}", "private void showAboutDialog() {\n JOptionPane.showMessageDialog(this, \"Sea Battle II Version 1.0\\nCS 232 (Computer Programming II), Fall 2018\");\n }", "public void aboutApp() {\n\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/AboutApp.fxml\"), I18n.getResourceBundle());\n\n\t\tUtilMethods.createDialog(loader, controller.getStage());\n\n\t}", "public void AboutDialog() {\r\n final Dialog dialog = new Dialog(this); // Context, this, etc.\r\n dialog.setContentView(R.layout.about_dialog);\r\n dialog.setTitle(R.string.dialog_title);\r\n\r\n Button dialogButton = (Button) dialog.findViewById(R.id.dialog_cancel);\r\n // if button is clicked, close the custom dialog\r\n dialogButton.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n dialog.dismiss();\r\n }\r\n });\r\n\r\n\r\n dialog.show();\r\n }", "protected void aboutUs(ActionEvent arg0) {\n\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\"A Curriculum Design of DBMS By psiphonc in NOV.2019\");\r\n\t}", "private void jMenu_AboutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu_AboutMouseClicked\n new About().setVisible(true);\n }", "public void aboutMenu(ActionEvent actionEvent) {\n anchorHelp.setVisible(true);\n paneNotation.setVisible(false);\n paneAbout.setVisible(true);\n }", "public void processAbout() {\n AppMessageDialogSingleton dialog = AppMessageDialogSingleton.getSingleton();\n \n // POP UP THE DIALOG\n dialog.show(\"About This Application\", \"Application Name: Metro Map Maker\\n\"\n + \"Written By: Myungsuk Moon and Richard McKenna\\n\"\n + \"Framework Used: DesktopJavaFramework (by Richard McKenna)\\n\"\n + \"Year of Work: 2017\");\n }", "@FXML\r\n private void handleAbout() {\r\n FxUtil.showAlert(Alert.AlertType.INFORMATION, mainApp.getResourceMessage().getString(\"about.title\"), String.format(mainApp.getResourceMessage().getString(\"about.header\"), Resource.VERSION), String.format(mainApp.getResourceMessage().getString(\"about.text\"), Resource.VERSION));\r\n }", "private void aboutHandler() {\n JOptionPane.showMessageDialog(\n this.getParent(),\n \"YetAnotherChessGame v1.0 by:\\nBen Katz\\nMyles David\\n\"\n + \"Danielle Bushrow\\n\\nFinal Project for CS2114 @ VT\");\n }", "public void jMenuHelpAbout_actionPerformed(ActionEvent e) {\n\t\tMainFrame_AboutBox dlg = new MainFrame_AboutBox(this);\n\t\tDimension dlgSize = dlg.getPreferredSize();\n\t\tDimension frmSize = getSize();\n\t\tPoint loc = getLocation();\n\t\tdlg.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y);\n\t\tdlg.setModal(true);\n\t\tdlg.show();\n\t}", "private void actionOnClicAbout() {\r\n\t\tAboutCalSevWindow aboutWin = new AboutCalSevWindow();\r\n\t\taboutWin.setVisible(true);\r\n\t}", "public AboutAction() {\r\n _dialog = new AboutDialog(this);\r\n }", "public void helpAboutAction() {\n new HelpAbout(this.parentFrame);\n }", "public void showAboutWindow() {\n /*\n * Note: on Windows, this is called from the Windows system tray\n * handler thread (created in the Windows DLL), and not from the\n * Swing Event handler thread. It is unsafe to call\n * GUIMediator.shutdownAboutWindow();\n * directly as Swing is not synchronized!\n * Instead, we should create an AWT Event and post it to the\n * default Toookit's EventQueue, and the application should\n * implement a Listener for that Event.\n */\n SwingUtilities.invokeLater(\n new Runnable() {\n public void run() {\n GUIMediator.showAboutWindow();\n }\n });\n }", "public void about()\n\t{\n\t\treadout.setText(\"Thank you for using haste by Beau Bouchard 2013\");\n\t\toutputText(\"\");\n\t}", "public AboutProjectDialog(MainFrame mf) {\n super(mf, \"About\");\n }", "public About() {\n initComponents();\n }", "public static void showAboutWindow()\n {\n if (aboutWindow == null)\n {\n aboutWindow = new AboutWindow(null);\n\n /*\n * When the global/shared AboutWindow closes, don't keep a reference\n * to it and let it be garbage-collected.\n */\n aboutWindow.addWindowListener(new WindowAdapter()\n {\n @Override\n public void windowClosed(WindowEvent e)\n {\n if (aboutWindow == e.getWindow())\n aboutWindow = null;\n }\n });\n }\n aboutWindow.setVisible(true);\n }", "protected void aboutUs(ActionEvent ae) {\n\t\tString info =\"欢迎您使用该系统!!!\\n\";\n\t\tinfo +=\"愿为您提供最好的服务!\\n\";\n\t\tinfo +=\"最好的防脱发洗发水!!!\";\n\t\t//JOptionPane.showMessageDialog(this,info);\n\t\tString[] buttons = {\"迫不及待去看看!\",\"心情不好以后再说!\"};\n\t\tint ret=JOptionPane.showOptionDialog(this, info,\"关于我们\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.DEFAULT_OPTION, new ImageIcon(LoginFrm.class.getResource(\"/images/logo.png\")), buttons, null);\n\t\tif(ret==0) \n\t\t{\n\t\t\ttry {\n\t\t\t\tURI uri = new URI(\"https://s.taobao.com/search?q=%E9%98%B2%E8%84%B1%E5%8F%91%E6%B4%97%E5%8F%91%E6%B0%B4&imgfile=&commend=all&ssid=s5-e&search_type=item&sourceId=tb.index&spm=a21bo.2017.201856-taobao-item.1&ie=utf8&initiative_id=tbindexz_20170306\");\n\t\t\t\tDesktop.getDesktop().browse(uri);\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}\n\t\telse \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(this, \"你真是狠心,坏淫!\");\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_about:\n \t \t//Toast.makeText(getApplicationContext(),\"Show About\", Toast.LENGTH_LONG).show();\n \t \tAboutDialog about = new AboutDialog(this);\n \t \tabout.setTitle(\"About Streetview\");\n \t\t\t\tabout.show();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "public static Result aboutUsPage() {\n\t\treturn ok(views.html.aboutUsPage.render());\n\t}", "private JFrame showAbout(){\n JFrame aboutFrame = new JFrame(\"About\");\n aboutFrame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n aboutFrame.setResizable(false);\n aboutFrame.setLocationRelativeTo(frame);\n\n JLabel applicationName = new JLabel(\"Roham-H HTTP Client\");\n JLabel developerName = new JLabel(\"Developer: Roham Hayedi\");\n JLabel developerAUTID = new JLabel(\"ID: 9831107\");\n JLabel developerEmail = new JLabel(\"Email: rohamhayedi@gmail.com\");\n JPanel aboutPanel = new JPanel(new GridLayout(0, 2));\n JPanel aboutMainPanel = new JPanel(new BorderLayout());\n aboutFrame.setContentPane(aboutMainPanel);\n aboutMainPanel.add(applicationName, BorderLayout.NORTH);\n aboutMainPanel.add(aboutPanel, BorderLayout.CENTER);\n aboutPanel.add(developerName);\n aboutPanel.add(developerAUTID);\n aboutPanel.add(developerEmail);\n aboutFrame.pack();\n return aboutFrame;\n }", "@FXML\n private void aboutMenuItem() {\n\n // Creating an alert dialog\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"About\");\n alert.setHeaderText(\"Poster Grabber 1.0\");\n alert.setContentText(\"Poster Grabber is a very simple tool that grabs movie's poster in any desired quality.\\nIt's highly dependant on TheMovieDB API, and won't function without an internet connection.\");\n alert.initOwner(primaryStage);\n\n // Setting custom style\n DialogPane dialogPane = alert.getDialogPane();\n dialogPane.getStylesheets().add(getClass().getResource(\"/AboutDialog.css\").toExternalForm());\n dialogPane.getStyleClass().add(\"myDialog\");\n\n // Displaying the alert dialog\n alert.show();\n }", "private void showHelp() {\n\t\tJOptionPane.showMessageDialog(this, \"Created by Mario Bobić\", \"About File Encryptor\", JOptionPane.INFORMATION_MESSAGE);\n\t}", "private void aboutJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aboutJMenuItemActionPerformed\n // TODO add your handling code here:\n // Show the About form\n About myAbout = new About(this, true);\n myAbout.setVisible(true);\n }", "private void aboutButtonActionPerformed(java.awt.event.ActionEvent evt) {\r\n\t\t\tAboutBox aboutBox = new AboutBox(mazeFrame, true);\r\n\t\t\taboutBox.setVisible(true);\r\n\t\t}", "public void aboutOnClick(View view) {\n // Configure \"About\" dialog\n AlertDialog.Builder dialog = new AlertDialog.Builder(this);\n dialog.setTitle(getResources().getString(R.string.about_title));\n dialog.setCancelable(false);\n dialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // Do nothing, just dismiss the dialog\n }\n });\n\n dialog.setMessage(getDeviceReport());\n\n dialog.show();\n }", "public abstract String about();", "public AboutDialog(JFrame frame) {\n\t\tsuper(frame,\"About..\", true);\n\t\tadd(new JTextArea(\"Copyright © 2016 by Vitaly Leshchenko\" + \"\\n \"\n\t\t\t\t+ \"All rights reserved. No part of this publication may be reproduced, distributed, or \\n\"\n\t\t\t\t+ \"transmitted in any form or by any means, including photocopying, recording, or other \\n\"\n\t\t\t\t+ \"electronic or mechanical methods, without the prior written permission of the \\n\"\n\t\t\t\t+ \"publisher, except in the case of brief quotations embodied in critical reviews and \\n\"\n\t\t\t\t+ \"certain other noncommercial uses permitted by copyright law. For permission requests, \\n\"\n\t\t\t\t+ \"write to the publisher, addressed “Attention: Permissions Coordinator,” at the address \\n\"\n\t\t\t\t+ \"below.\\n\"\n\t\t\t\t+ \"Ukraine, Kyiv, KPI\"), BorderLayout.CENTER);\n\n\t\tJButton ok = new JButton(\"OK\");\n\t\tok.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(ok);\n\t\tadd(panel, BorderLayout.SOUTH);\n\t\tsetSize(500, 260);\n\t\tsetResizable(false);\n\t\tsetLocationRelativeTo(null);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t}", "@FXML\n private EventHandler<ActionEvent> handleAbout() {\n\t\treturn new EventHandler<ActionEvent>() {\n public void handle(ActionEvent e) {\n \t Alert alert = new Alert(AlertType.INFORMATION);\n\t\t alert.setTitle(messages.getString(\"menu_about\"));\n\t\t alert.setHeaderText(messages.getString(\"menu_about\")+\" \"+messages.getString(\"MainApp_title\"));\n\t\t String about_info = messages.getString(\"about_website\") + \" \" + messages.getString(\"MainApp_website\");\n\t\t alert.setContentText(about_info);\n\t\t alert.showAndWait();\n }\n\t\t};\n }", "public About() {\n \n Toolkit tk = Toolkit.getDefaultToolkit();\n Dimension screen = tk.getScreenSize();\n int x = Math.max(0, (screen.width - this.getWidth()) / 2);\n int y = Math.max(0, (screen.height -this.getHeight()) / 2);\n this.setLocation(x-230, y-230);\n \n initComponents();\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(frame, \n//\" Programming language: Java\\n\"+\n\" Developer: Monish Gupta\\n\"+\n\" monishgupta.blogspot.com\", \"About\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t}", "private void openAbout() {\r\n \tIntent intent = new Intent(this, AboutActivity.class);\r\n \tstartActivity(intent);\r\n }", "private void aboutJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aboutJMenuItemActionPerformed\n //show the about form\n AboutTSP myAbout = new AboutTSP(this, true);\n myAbout.setVisible(true);\n }", "public void showAbout() {\n Stage aboutStage = new Stage();\n FXMLLoader aboutLoader = new FXMLLoader(getClass().getResource(\"/view/About.fxml\"));\n try {\n //Tries to load the fxml for the about window\n Parent root = aboutLoader.load();\n\n //Opens and waits\n aboutStage.setTitle(\"About\");\n aboutStage.setScene(new Scene(root, 600, 500));\n aboutStage.showAndWait();\n\n }catch (IOException ioe){\n //Shows a warning should the loading of the FXML fail.\n PopUpAlerts.ioAlertFXML();\n }\n }", "public AboutPanel() {\n super();\n initialize();\n }", "public AboutAction(CyApplicationManager appMgr,CySwingApplication swingApp) {\n\t\tsuper(Messages.AC_ABOUT,appMgr,swingApp);\n\t\tsetPreferredMenu(\"Plugins.\" + Messages.AC_MENU_ANALYSIS);\n\t}", "public void handleAbout(ApplicationEvent evt) {\n HelpManager hm = (HelpManager) bio.getManager(HelpManager.class);\n if (hm == null) evt.setHandled(false);\n else {\n evt.setHandled(true);\n hm.helpAbout();\n }\n }", "public void execute(){\r\n\t\tapplicationController.about();\r\n\t}", "public static void showAboutDialog(final AppD app) {\n\n\t\tfinal LocalizationD loc = app.getLocalization();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"<html><b>\");\n\t\tappendVersion(sb, app);\n\t\tsb.append(\"</b> (\");\n\t\tsb.append(\"Java \");\n\t\tAppD.appendJavaVersion(sb);\n\t\tsb.append(\", \");\n\n\t\tsb.append(app.getHeapSize() / 1024 / 1024);\n\t\tsb.append(\"MB, \");\n\t\tsb.append(App.getCASVersionString());\n\n\t\tsb.append(\")<br>\");\n\n\t\tsb.append(GeoGebraConstants.BUILD_DATE);\n\n\t\t// license\n\t\tString text = app.loadTextFile(AppD.LICENSE_FILE);\n\t\t// We may want to modify the window size when the license file changes:\n\t\tJTextArea textArea = new JTextArea(26, 72); // window size fine tuning\n\t\t\t\t\t\t\t\t\t\t\t\t\t// (rows, cols)\n\t\ttextArea.setEditable(false);\n\t\t// not sure if Monospaced is installed everywhere:\n\t\ttextArea.setFont(new Font(\"Monospaced\", Font.PLAIN, 12));\n\t\ttextArea.setText(text);\n\t\ttextArea.setCaretPosition(0);\n\n\t\tJPanel systemInfoPanel = new JPanel(new BorderLayout(5, 5));\n\t\tsystemInfoPanel.add(new JLabel(sb.toString()), BorderLayout.CENTER);\n\n\t\t// copy system information to clipboard\n\n\t\tsystemInfoPanel.add(new JButton(\n\t\t\t\tnew AbstractAction(loc.getMenu(\"SystemInformation\")) {\n\n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\t\t\tcopyDebugInfoToClipboard(app);\n\n\t\t\t\t\t\tapp.showMessage(\n\t\t\t\t\t\t\t\tloc.getMenu(\"SystemInformationMessage\"));\n\t\t\t\t\t}\n\t\t\t\t}), loc.borderEast());\n\n\t\tJScrollPane scrollPane = new JScrollPane(textArea,\n\t\t\t\tScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\t\tScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\t\tJPanel panel = new JPanel(new BorderLayout(5, 5));\n\t\tpanel.add(systemInfoPanel, BorderLayout.NORTH);\n\t\tpanel.add(scrollPane, BorderLayout.SOUTH);\n\n\t\tJOptionPane infoPane = new JOptionPane(panel, JOptionPane.PLAIN_MESSAGE,\n\t\t\t\tJOptionPane.DEFAULT_OPTION);\n\n\t\tfinal JDialog dialog = infoPane.createDialog(app.getMainComponent(),\n\t\t\t\tloc.getMenu(\"AboutLicense\"));\n\n\t\tdialog.setVisible(true);\n\t}", "public aboutIF() {\n initComponents();\n \n }", "private void showHelpDialog() {\n\n view.helpDialog();\n }", "private void createAboutButton(final ToolBar bar) {\r\n // image's source:\r\n // http://commons.wikimedia.org/wiki/File:Information.png\r\n createButton(bar, \"images/Information.png\", \"About\",\r\n new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(final SelectionEvent arg0) {\r\n displayInfo(\"The parity game played is a max priority parity game.\\n\"\r\n + \"Player 0 has round vertices, player 1 has square vertices.\\n\"\r\n + \"Player 0 wins even priorities and player 1 wins odd priorities.\\n\"\r\n + \"Once solved, the winning region of player 0 is displayed in green.\\n\"\r\n + \"The winning region of player 1 is displayed in blue.\");\r\n // TODO: display this in a read-only text-box such that links can easily be copied\r\n displayInfo(\"The images for loading, generating and solving arenas are public domain and were retrieved from:\\n\"\r\n + \"https://openclipart.org/detail/119905/load-cedric-bosdonnat-01-by-anonymous\\n\"\r\n + \"http://pixabay.com/de/w%C3%BCrfel-sechs-gesichter-rollen-35637/\\n\"\r\n + \"and\\n\"\r\n + \"http://pixabay.com/de/puzzle-st%C3%BCck-stichs%C3%A4ge-konzept-308908/\\n\"\r\n + \"respecitvely.\\n\"\r\n + \"The image for saving arenas is under creative commons attribution license, created by VistaICO.com and was retrieved from:\\n\"\r\n + \"https://www.iconfinder.com/icons/49256/disk_save_icon\\n\"\r\n + \"Furthermore, the libraries SWT and Zest under the EPL\\n\"\r\n + \"and the libraries Apache Commons and Google Guava under the Apache license have been used.\\n\");\r\n }\r\n });\r\n }", "public About() {\n\t\tsetTitle(\"About\");\n\t\tsetBounds(100, 100, 450, 300);\n\t\tgetContentPane().setLayout(new BorderLayout());\n\t\tcontentPanel.setLayout(new FlowLayout());\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\n\t\t{\n\t\t\tJSplitPane splitPane = new JSplitPane();\n\t\t\tsplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);\n\t\t\tcontentPanel.add(splitPane);\n\t\t\t{\n\t\t\t\tJLabel lblcEmperorOf = new JLabel(\"(C) Emperor of The Sea aka Lord Voldemort Tyrannus Farquad\");\n\t\t\t\tsplitPane.setLeftComponent(lblcEmperorOf);\n\t\t\t}\n\t\t\t{\n\t\t\t\tJTextPane text = new JTextPane();\n\t\t\t\ttext.setEditable(false);\n\t\t\t\ttext.setText(\"XORCrypter a digression into XORness by Lord Voldemort Tyrannus Farquad aka Noah\\r\\n\\r\\nXORCrypter is like a qubit, it can decrypt and encrypt with one operation.\\r\\nXOR Encryption is a type of encryption that uses the logical XOR\\r\\non a string along with a key. For example: string XOR key, this\\r\\n then produces the ciphertext.\\r\\nThe interesting thing about this form of encryption is that it is\\r\\n reversible; simply perform the same operation with the ciphertext.\\r\\n Hope you enjoy the program.\");\n\t\t\t\tsplitPane.setRightComponent(text);\n\t\t\t}\n\t\t}\n\t\t{\n\t\t\tJPanel buttonPane = new JPanel();\n\t\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\t\tgetContentPane().add(buttonPane, BorderLayout.SOUTH);\n\t\t\t{\n\t\t\t\tJButton okButton = new JButton(\"OK\");\n\t\t\t\tokButton.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tDialog.getWindows()[1].dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tokButton.setActionCommand(\"OK\");\n\t\t\t\tbuttonPane.add(okButton);\n\t\t\t\tgetRootPane().setDefaultButton(okButton);\n\t\t\t}\n\t\t}\n\t}", "private JDialog getAboutDialog() {\n if (aboutDialog == null) {\n aboutDialog = new JDialog(getJFrame(), true);\n aboutDialog.setTitle(\"About\");\n aboutDialog.setSize(new Dimension(180, 38));\n aboutDialog.setContentPane(getAboutContentPane());\n }\n return aboutDialog;\n }", "protected void showDialogTermAbout(boolean showAbout) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tWebView webView = new WebView(this);\n\t\twebView.setPadding(10, 50, 10, 10);\n\t\tif (showAbout) {\n\t\t\twebView.loadUrl(\"file:///android_asset/About2.htm\");\n\t\t\tbuilder.setTitle(R.string.menu_about);\n\t\t} else {\n\t\t\tbuilder.setTitle(R.string.menu_term);\n\t\t\twebView.loadUrl(\"file:///android_asset/TermOfUs2.htm\");\n\t\t}\n\t\tbuilder.setView(webView);\n\t\tbuilder.setCancelable(true)\n\t\t\t\t.setNegativeButton(R.string.btn_cancel, null);\n\t\tDialog dialog = builder.create();\n\t\tdialog.setCanceledOnTouchOutside(true);\n\t\tdialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n\t\tdialog.show();\n\t}", "public void onClickAbout(View view) {\n Intent intent = new Intent(this, AboutActivity.class);\n startActivity(intent);\n }", "private JMenuItem getAboutMenuItem() {\n if (aboutMenuItem == null) {\n aboutMenuItem = new JMenuItem();\n aboutMenuItem.setText(\"About\");\n aboutMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JDialog aboutDialog = getAboutDialog();\n aboutDialog.pack();\n Point loc = getJFrame().getLocation();\n loc.translate(20, 20);\n aboutDialog.setLocation(loc);\n aboutDialog.setVisible(true);\n }\n });\n }\n return aboutMenuItem;\n }", "@FXML\n private void handleAboutButton(ActionEvent event) \n {\n \n Switchable.switchTo(\"AboutView\");\n }", "public AboutDialog( MainJFrame pMainFrame_ ) \n {\n this( pMainFrame_, pMainFrame_.getInit() );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_about) {\n\t\t\taboutDialog.show();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "private void menu_AboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_AboutActionPerformed\n new frm_About().setVisible(true); \n }", "public void GoToAbout(View view) {\n Intent intent = new Intent(this, About.class);\n startActivity(intent);\n }", "public void onClickAbout (View v)\n\t{\n\t\tstartActivity (new Intent(getApplicationContext(), AboutViewController.class));\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_about_us) {\n final Dialog dialog = new Dialog(this);\n dialog.setContentView(R.layout.dialog_about_us);\n dialog.setTitle(this.getString(R.string.about_us));\n dialog.show();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public AboutDialog( Frame frmParent_, Init pInit_ ) \n {\n this( frmParent_,\n pInit_.getAuthor(),\n pInit_.getInfoHeader() );\n }", "private JDialog getAboutDialog() {\n\t\tif (aboutDialog == null) {\n\t\t\taboutDialog = new JDialog(getJFrame(), true);\n\t\t\taboutDialog.setTitle(\"About\");\n\t\t\taboutDialog.setContentPane(getAboutContentPane());\n\t\t}\n\t\treturn aboutDialog;\n\t}", "private JDialog getAboutDialog() {\n\t\tif (aboutDialog == null) {\n\t\t\taboutDialog = new JDialog(getHlavneOkno(), true);\n\t\t\taboutDialog.setTitle(\"O aplikácii SluchAnal\");\n\t\t\taboutDialog.setSize(new Dimension(100, 100));\n\t\t\taboutDialog.setResizable(false);\n\t\t\taboutDialog.setContentPane(getAboutObsah());\n\t\t}\n\t\treturn aboutDialog;\n\t}", "public void jMenuHelpAbout_actionPerformed(ActionEvent e) {\n }", "public void setAbout(String aboutMessage) {\n this.about = aboutMessage;\n }", "public void setAbout(String about) {\n this.about = about;\n }", "private JMenuItem getAboutMenuItem() {\n\t\tif (aboutMenuItem == null) {\n\t\t\taboutMenuItem = new JMenuItem();\n\t\t\taboutMenuItem.setText(\"O aplikácii SluchAnal\");\n\t\t\taboutMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tJDialog aboutDialog = getAboutDialog();\n\t\t\t\t\taboutDialog.pack();\n\t\t\t\t\tPoint loc = getHlavneOkno().getLocation();\n\t\t\t\t\tloc.translate(20, 20);\n\t\t\t\t\taboutDialog.setLocation(loc);\n\t\t\t\t\taboutDialog.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn aboutMenuItem;\n\t}", "public AboutWindow(Frame owner)\n {\n super(owner);\n\n ResourceManagementService resources = BrandingActivator.getResources();\n\n String applicationName =\n resources.getSettingsString(\"service.gui.APPLICATION_NAME\");\n String website =\n resources.getSettingsString(\"service.gui.APPLICATION_WEB_SITE\");\n\n this.setTitle(\n resources.getI18NString(\"plugin.branding.ABOUT_WINDOW_TITLE\",\n new String[]{applicationName}));\n\n setModal(false);\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n setResizable(false);\n\n JPanel mainPanel = new WindowBackground();\n mainPanel.setLayout(new BorderLayout());\n\n JPanel textPanel = new JPanel();\n textPanel.setPreferredSize(new Dimension(470, 280));\n textPanel.setLayout(new BoxLayout(textPanel, BoxLayout.Y_AXIS));\n textPanel.setBorder(BorderFactory\n .createEmptyBorder(15, 15, 15, 15));\n textPanel.setOpaque(false);\n\n JLabel titleLabel = new JLabel(applicationName);\n titleLabel.setFont(titleLabel.getFont().deriveFont(Font.BOLD, 28));\n titleLabel.setForeground(Constants.TITLE_COLOR);\n titleLabel.setAlignmentX(Component.RIGHT_ALIGNMENT);\n\n // Force the use of the custom text field UI in order to fix an\n // incorrect rendering on Ubuntu.\n versionLabel\n = new JTextField(\" \"\n + System.getProperty(\"sip-communicator.version\"))\n {\n /**\n * Returns the name of the L&F class that renders this component.\n *\n * @return the string \"TreeUI\"\n * @see JComponent#getUIClassID\n * @see UIDefaults#getUI\n */\n @Override\n public String getUIClassID()\n {\n return uiClassID;\n }\n };\n\n versionLabel.setBorder(null);\n versionLabel.setOpaque(false);\n versionLabel.setEditable(false);\n versionLabel.setFont(versionLabel.getFont().deriveFont(Font.BOLD, 18));\n versionLabel.setForeground(Constants.TITLE_COLOR);\n versionLabel.setAlignmentX(Component.RIGHT_ALIGNMENT);\n versionLabel.setHorizontalAlignment(JTextField.RIGHT);\n\n int logoAreaFontSize\n = resources.getSettingsInt(\"plugin.branding.ABOUT_LOGO_FONT_SIZE\");\n\n JTextArea logoArea =\n new JTextArea(resources.getI18NString(\n \"plugin.branding.LOGO_MESSAGE\"));\n logoArea.setFont(\n logoArea.getFont().deriveFont(Font.BOLD, logoAreaFontSize));\n logoArea.setForeground(Constants.TITLE_COLOR);\n logoArea.setOpaque(false);\n logoArea.setLineWrap(true);\n logoArea.setWrapStyleWord(true);\n logoArea.setEditable(false);\n logoArea.setAlignmentX(Component.RIGHT_ALIGNMENT);\n logoArea.setBorder(BorderFactory\n .createEmptyBorder(30, DEFAULT_TEXT_INDENT, 0, 0));\n\n StyledHTMLEditorPane rightsArea = new StyledHTMLEditorPane();\n rightsArea.setContentType(\"text/html\");\n\n String host = website;\n try\n {\n host = new URL(website).getHost();\n }\n catch (Exception ex)\n {}\n\n rightsArea.appendToEnd(resources.getI18NString(\n \"plugin.branding.COPYRIGHT_LICENSE\",\n new String[]\n {\n Constants.TEXT_COLOR,\n Integer.toString(Calendar.getInstance().get(Calendar.YEAR)),\n website,\n host,\n applicationName,\n \"http://www.apache.org/licenses/LICENSE-2.0\",\n \"Apache License 2.0\"\n }));\n if (OSUtils.IS_MAC || OSUtils.IS_WINDOWS)\n {\n rightsArea.appendToEnd(resources.getI18NString(\n \"plugin.branding.COPYRIGHT_OPENH264_LICENSE\"));\n }\n\n rightsArea.setBorder(BorderFactory\n .createEmptyBorder(0, DEFAULT_TEXT_INDENT, 0, 0));\n rightsArea.setOpaque(false);\n rightsArea.setEditable(false);\n rightsArea.setAlignmentX(Component.RIGHT_ALIGNMENT);\n rightsArea.addHyperlinkListener(this);\n\n textPanel.add(titleLabel);\n textPanel.add(versionLabel);\n textPanel.add(logoArea);\n textPanel.add(rightsArea);\n\n JButton okButton\n = new JButton(resources.getI18NString(\"service.gui.OK\"));\n\n this.getRootPane().setDefaultButton(okButton);\n\n okButton.setMnemonic(resources.getI18nMnemonic(\"service.gui.OK\"));\n okButton.addActionListener(this);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));\n buttonPanel.add(okButton);\n buttonPanel.setOpaque(false);\n\n mainPanel.add(textPanel, BorderLayout.CENTER);\n mainPanel.add(buttonPanel, BorderLayout.SOUTH);\n\n this.getContentPane().add(mainPanel);\n\n this.pack();\n\n setLocationRelativeTo(getParent());\n\n this.getRootPane().getActionMap().put(\"close\", new CloseAction());\n\n InputMap imap = this.getRootPane().getInputMap(\n JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);\n\n imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), \"close\");\n\n if(OSUtils.IS_MAC)\n {\n imap.put(\n KeyStroke.getKeyStroke(KeyEvent.VK_W, InputEvent.META_DOWN_MASK),\n \"close\");\n imap.put(\n KeyStroke.getKeyStroke(KeyEvent.VK_W, InputEvent.CTRL_DOWN_MASK),\n \"close\");\n }\n\n WindowUtils.addWindow(this);\n }", "public static void aboutApp(){\n\t\tAlert alertDialog = new Alert(Alert.AlertType.INFORMATION);\n\t\talertDialog.setTitle(\"My first java Desktop App\");\n\t\talertDialog.setHeaderText(\"Learning JavaFX\");\n\t\talertDialog.setContentText(\"I'm a beginner and soon i'll be a pro\");\n\n\t\t//to make custom buttons\n\t\tButtonType yesBtn = new ButtonType(\"yes\");\n\t\tButtonType noBtn = new ButtonType(\"No\");\n\t\talertDialog.getButtonTypes().setAll(yesBtn,noBtn);\n\n\t\t//to perform click event on buttons of the dilague box that opens and make buttons\n\t\tOptional<ButtonType> clickBtn=alertDialog.showAndWait();\n\t\tif(clickBtn.isPresent()&&clickBtn.get()==yesBtn){\n\t\t\t// code .......\n\t\t}\n\t\tif(clickBtn.get()==noBtn){\n\t\t\t//code..........\n\t\t}\n\n\t\talertDialog.show();\n\t}", "private JMenuItem getAboutMenuItem() {\n\t\tif (aboutMenuItem == null) {\n\t\t\taboutMenuItem = new JMenuItem();\n\t\t\taboutMenuItem.setText(\"About\");\n\t\t\taboutMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tJDialog aboutDialog = getAboutDialog();\n\t\t\t\t\taboutDialog.pack();\n\t\t\t\t\tPoint loc = getJFrame().getLocation();\n\t\t\t\t\tloc.translate(20, 20);\n\t\t\t\t\taboutDialog.setLocation(loc);\n\t\t\t\t\taboutDialog.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn aboutMenuItem;\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.about) {\n\t\t\tAboutDialogFragment aboutDialogFragment=new AboutDialogFragment();\n\t\t\taboutDialogFragment.show(getSupportFragmentManager(), ABOUT_DIALOG_TAG);\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed\r\n AboutWindow about = new AboutWindow();\r\n about.setVisible(true);\r\n }", "public About1() {\n initComponents();\n }", "public String getAbout();", "public boolean onOptionsItemSelected(MenuItem item){\n Dialog helpDialog = onCreateDialog(MainPage.DIALOG_ABOUT);\n helpDialog.show();\n return true;\n }", "public void onAboutItemClick(MenuItem item) {\n AboutActivity fragment = new AboutActivity();\n presentFragment(fragment,\"about\",false);\n }", "public AboutDialog( Frame frmParent_, String sInfoHeader_ ) \n {\n this( frmParent_, null, sInfoHeader_ );\n }", "@Override\n public void actionPerformed( ActionEvent e ) {\n setContentPanel( about2 );\n }", "private void showAuthorDetails()\n {\n String message = \"Author: Kyle Russell\\nUniversity: Auckland University of Technology\\nContact: specialk.jn@gmail.com\";\n JOptionPane.showMessageDialog(null, message, \"Author information\", JOptionPane.INFORMATION_MESSAGE);\n }", "MenuItem getMenuItemAbout();", "public void showHelp();", "public void showAbout(View view){\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tnew AlertDialog.Builder(Portal.this)\n\t\t\t\t.setTitle(R.string.about_me)\n\t\t\t\t.setMessage(R.string.about_me_message)\n\t\t\t\t.setNeutralButton(R.string.close, new DialogInterface.OnClickListener() {\n\t\t\t\t\t\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\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.show();\n\t\t\t}" ]
[ "0.84053487", "0.812156", "0.8018943", "0.79975903", "0.7957496", "0.7928193", "0.784628", "0.7845675", "0.78269386", "0.7721486", "0.7693045", "0.76688117", "0.7635098", "0.7630833", "0.7568974", "0.7561526", "0.75285774", "0.75243443", "0.7491983", "0.7477064", "0.7444746", "0.7435233", "0.74340534", "0.74262375", "0.7408666", "0.73996925", "0.7370336", "0.73173577", "0.73067456", "0.7255945", "0.72499657", "0.72345823", "0.72125846", "0.72073984", "0.71859217", "0.71679085", "0.71636295", "0.7152357", "0.7143585", "0.7099516", "0.7096117", "0.70599586", "0.70555997", "0.70423174", "0.70170957", "0.7010527", "0.70020854", "0.698874", "0.69808465", "0.6929739", "0.6928141", "0.6898117", "0.6859648", "0.67814124", "0.67706424", "0.6757024", "0.6741954", "0.6661332", "0.6658032", "0.6652449", "0.6652078", "0.66437656", "0.6607547", "0.6569821", "0.65692925", "0.65609896", "0.6532628", "0.6516716", "0.65038294", "0.64872223", "0.6449892", "0.64489377", "0.6440892", "0.643977", "0.64291763", "0.6415584", "0.6397872", "0.6388373", "0.63865495", "0.63675004", "0.6355226", "0.63461995", "0.6343998", "0.63434786", "0.6339649", "0.6333597", "0.6327514", "0.63163054", "0.63124156", "0.63102895", "0.62924635", "0.62815166", "0.62777793", "0.6276751", "0.6260755", "0.62473714", "0.6245453", "0.62253803", "0.6215133", "0.61973774" ]
0.7796724
9
Updates the status panel
public void updateStatusPanel() { table.redraw(); cursor.redraw(); int rowIndex = table.getSelectionIndex(); int columnIndex = cursor.getColumn(); if (rowIndex < 0 || columnIndex < 0 || columnIndex >= HexEditorConstants.TABLE_NUM_COLUMNS) { HexManager.log("updateStatusPanel(): incorrect cursor coordinates!"); //$NON-NLS-1$ return; } String cellData = table.getTableItem(rowIndex).getText(columnIndex); if (columnIndex < 1 || columnIndex > HexEditorConstants.TABLE_NUM_DATA_COLUMNS || cellData.length() == 0 || cellData.equals(HexEditorConstants.TABLE_EMPTY_CELL)) { // // Cursor is out of data cells - nothing to display // statusOffset.setText(""); //$NON-NLS-1$ statusValue.setText(""); //$NON-NLS-1$ } // if else { // // Cursor is above the data cell - update offset panel // HexTablePointer p = new HexTablePointer(rowIndex, columnIndex - 1); int offset = p.getOffset(); int tableSize = table.getBufferSize(); int ratio = (tableSize > 1) ? (100 * offset / (tableSize - 1)) : 100; statusOffset.setText(Messages.HexEditorControl_54 + HexUtils.zeroPadding(Integer.toHexString(offset).toUpperCase(), 8) + Messages.HexEditorControl_55 + HexUtils.zeroPadding(Integer.toHexString(tableSize - 1).toUpperCase(), 8) + "h (" + ratio + "%) "); //$NON-NLS-3$ //$NON-NLS-4$ // // Update value panel // int number = Integer.parseInt(cellData, 16); String binString = Integer.toBinaryString(number); statusValue.setText(Messages.HexEditorControl_58 + cellData + Messages.HexEditorControl_59 + number + Messages.HexEditorControl_60 + Integer.toOctalString(number) + Messages.HexEditorControl_61 + ("00000000".substring(binString.length()) + binString) + Messages.HexEditorControl_63); //$NON-NLS-5$ } // else // // Update table/file size // statusFileSize.setText(Messages.HexEditorControl_64 + fileSizeFormat.format(table.getBufferSize()) + Messages.HexEditorControl_65); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateGUIStatus() {\r\n\r\n }", "public static void updateStatusBar(){\n\t\tstatus.setText(\"Sensors: \"+Sensor.idToSensor.size()+(TurnController.getInstance().getCurrentTurn()!=null?\", Turn: \"+TurnController.getInstance().getCurrentTurn().turn:\"\"));\n\t}", "private void updateStatus() {\n \tif (!status.getText().equals(\"\")) {\n\t\t\tif (currentProfile != null) {\n\t\t\t\tcurrentProfile.setStatus(status.getText());\n\t\t\t\tcanvas.displayProfile(currentProfile);\n\t\t\t\tcanvas.showMessage(\"Status updated to \" + status.getText());\n\t\t\t} else {\n\t\t\t\tcanvas.showMessage(\"Please select a profile to change status\");\n\t\t\t}\n\t\t}\n\t}", "public void updateStatus(final String newStatus)\n\t{\n\t\tif(statusBar!=null)\n\t\t{\n\t\t\tstatusBar.setText(\"Program Status: \" + newStatus);\n\t\t}\n\t\t//statusBar.repaint();\n\t}", "private void updateStatus(final String status)\n {\n jLabelStatus.setText(status);\n jLabelStatus.paintImmediately(jLabelStatus.getVisibleRect());\n }", "private void updateStatus() {\n String statusString = dataModel.getStatus().toString();\n if (dataModel.getStatus() == DefinitionStatus.MARKER_DEFINITION) {\n statusString += \" Number of markers: \" + dataModel.getNumberOfMarkers() + \". Current position: \"\n + dataModel.getTempMousePosition();\n }\n if (dataModel.getStatus() == DefinitionStatus.POINTS_DEFINITION) {\n statusString += \" Number of point fields: \" + dataModel.getNumberOfPoints() + \". Current position: \"\n + dataModel.getTempMousePosition();\n }\n statusLabel.setText(statusString);\n }", "public void updatePlayerPanel()\n {\n playerInfoPanel.updateLabel();\n }", "private void prepareStatus() {\n clock = new JLabel(new Date().toString());\n statusPanel = new JPanel();\n statusPanel.setBorder(new BevelBorder(BevelBorder.LOWERED));\n this.add(statusPanel, BorderLayout.SOUTH);\n statusPanel.setPreferredSize(new Dimension(this.getWidth(), 16));\n statusPanel.setLayout(new BoxLayout(statusPanel, BoxLayout.X_AXIS));\n statusLabel = new JLabel(\"status\");\n statusLabel.setHorizontalAlignment(SwingConstants.LEFT);\n statusPanel.add(statusLabel);\n statusPanel.add(new JLabel(\" \"));\n clock.setHorizontalAlignment(SwingConstants.RIGHT);\n statusPanel.add(clock);\n \n ActionListener updateClockAction = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n clock.setText(new Date().toString()); \n }\n };\n Timer t = new Timer(1000, updateClockAction);\n t.start();\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}", "private void createUpdatePanel()\n\t{\n\t\tsettingPane=new JPanel();\n\t\tsettingPane.setLayout(new BoxLayout(settingPane, BoxLayout.Y_AXIS));\n\t\t\n\t\t//************************update pane*****************************//\n\t\tJPanel updatePane=new JPanel();\n\t\tupdatePane.setLayout(new FlowLayout(FlowLayout.CENTER,30,5));\n\t\tBorder setBorder=BorderFactory.createTitledBorder(\"Settings\");\n\t\tupdatePane.setBorder(setBorder);\n\t\t\n\t\tlblStatus=new JLabel();\n\t\t\n\t\t//chkOff=new JCheckBox(\"OFF\");\n\t\t//chkOn=new JCheckBox(\"ON\");\n\t\tbtnOn=new JButton(\"ON\");\n\t\tbtnOff=new JButton(\"OFF\");\n\t\t\n\t\t//On button click\n\t\tbtnOn.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString message;\n\t\t\t\tif(isSprinklerSelected)//Sprinkler\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn on this sprinkler now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t//update status=on to db\n\t\t\t\t\t\tsprinklerService.updateSprinklerStatus(selectedId, SprinklerStatus.ON.toString());\n\t\t\t\t\t\t\n\t\t\t\t\t\tint sprinklerId=sprinklerService.getSprinklerByName(selectedId).getSprinklerId();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//add sprinklerRunTime - start time.\n\t\t\t\t\t\tint runTimeId=sprinklerService.addSprinklerRunTime(sprinklerId);\n\t\t\t\t\t\t//set timer to turn off this sprinkler after a fixed time\n\t\t\t\t\t\tturnOffDelayTimer(runTimeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//refresh update pane for sprinkler\n\t\t\t\t\t\tpopulateSprinklerStatus();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse//group\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn on this sprinkler group now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t//update status=on to db\n\t\t\t\t\t\tsprinklerGroup.updateSprinklerGroupStatus(selectedId, SprinklerStatus.ON.toString());\n\t\t\t\t\t\t//set timer to turn off this group after a fixed time\n\t\t\t\t\t\t\n\t\t\t\t\t\tSprinklerGroup gService=new SprinklerGroup();\n\t\t\t\t\t\tint groupId=gService.getSprinklerGroupByName(selectedId).getGroupId();\n\t\t\t\t\t\t//add groupRunTime - start time\n\t\t\t\t\t\tint gRunTimeId=sprinklerService.addGroupRunTime(groupId);\n\t\t\t\t\t\tturnOffDelayTimer(gRunTimeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//refresh update pane for group\n\t\t\t\t\t\tpopulateGroupStatus();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Off button click\n\t\tbtnOff.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// turn off the sprinkler/group\n\t\t\t\t\n\t\t\t\tString message;\n\t\t\t\tif(isSprinklerSelected)//Sprinkler\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn off this sprinkler now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t//update status=off to db\n\t\t\t\t\t\tsprinklerService.updateSprinklerStatus(selectedId, SprinklerStatus.OFF.toString());\n\t\t\t\t\t\t//update sprinkler run time - end_time\n\t\t\t\t\t\tint sprinklerId=sprinklerService.getSprinklerByName(selectedId).getSprinklerId();\n\t\t\t\t\t\tint runTimeId=sprinklerService.getSprinklerRunTimeToUpdate(sprinklerId).getId();\n\t\t\t\t\t\tsprinklerService.updateSprinklerRunTime(runTimeId);\n\t\t\t\t\t\t//refresh update pane for sprinkler\n\t\t\t\t\t\tpopulateSprinklerStatus();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse//group\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn off this sprinkler group now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t//update status=off to db\n\t\t\t\t\t\tsprinklerGroup.updateSprinklerGroupStatus(selectedId, SprinklerStatus.OFF.toString());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//update group run time - end_time\n\t\t\t\t\t\tint groupId=sprinklerGroup.getSprinklerGroupByName(selectedId).getGroupId();\n\t\t\t\t\t\tint gRunTimeId=sprinklerService.getGroupRunTimeToUpdate(groupId).getGroupId();\n\t\t\t\t\t\tsprinklerService.updateGroupRunTime(gRunTimeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//refresh update pane for group\n\t\t\t\t\t\tpopulateGroupStatus();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tchkFunctional=new JCheckBox(\"Functional\");\n\t\tbtnSave=new JButton(\"Save\");\n\t\t//save button click - only for sprinklers\n\t\tbtnSave.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(isSprinklerSelected)//sprinkler functional data save\n\t\t\t\t{\n\t\t\t\t\tint response;\n\t\t\t\t\tint fn=(chkFunctional.isSelected())?1:0;//functional=1, not-functional=0\n\t\t\t\t\t//handle condition for chkFunctional \n\t\t\t\t\tif(chkFunctional.isSelected())//made it functional\n\t\t\t\t\t{\n\t\t\t\t\t\tresponse = JOptionPane.showConfirmDialog(null, \"Are you sure you want to set this sprinkler as Functional?\", \"Confirm\",\n\t\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//save functional to db\n\t\t\t\t\t\t\tsprinklerService.updateSprinklerFunctional(selectedId, fn);\n\t\t\t\t\t\t\t//show addSetting and schedule panes\n\t\t\t\t\t\t\taddSetting.setVisible(true);\n\t\t\t\t\t\t\t//newWeek.setVisible(true);\n\t\t\t\t\t\t\tschedule.setVisible(true);\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\telse//made it not-functional\n\t\t\t\t\t{\n\t\t\t\t\t\tresponse = JOptionPane.showConfirmDialog(null, \"Are you sure you want to set this sprinkler as Not Functional?\", \"Confirm\",\n\t\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//save not functional and status=off to db\n\t\t\t\t\t\t\tsprinklerService.updateSprinklerFunctional(selectedId, fn);\n\t\t\t\t\t\t\t//disable addSetting and schedule panes\n\t\t\t\t\t\t\taddSetting.setVisible(false);\n\t\t\t\t\t\t\t//newWeek.setVisible(false);\n\t\t\t\t\t\t\tschedule.setVisible(false);\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\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t});\n\t\t\n\t\t/*btnCancel=new JButton(\"Cancel\");\n\t\t//cancel button click\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// Do not update any details. Close the window.\n\t\t\t\tframe.dispose();\t\t\t\n\t\t\t}\n\t\t});*/\n\t\t\n\t\t\n\t\t//group controls in panels\n\t\tJPanel textPane=new JPanel();\n\t\ttextPane.add(lblStatus);\n\t\tJPanel statusPane=new JPanel();\n\t\tstatusPane.add(btnOff);//statusPane.add(chkOff);\n\t\tstatusPane.add(btnOn);//statusPane.add(chkOn);\n\t\tJPanel functionalPane=new JPanel();\n\t\tfunctionalPane.add(chkFunctional);\n\t\t\n\t\t\n\t\t/*updatePane.add(lblStatus);\n\t\tupdatePane.add(chkOff);\n\t\tupdatePane.add(chkOn);\n\t\tupdatePane.add(chkFunctional);*/\n\t\t\n\t\t//add controls to updatepanel\n\t\tupdatePane.add(textPane);\n\t\tupdatePane.add(statusPane);\n\t\tupdatePane.add(functionalPane);\n\t\t//updatePane.add(btnCancel);\n\t\tupdatePane.add(btnSave);\n\t\t//**************************************************************//\n\t\t\n\t\t//*********************addSetting pane**************************//\n\t\taddSetting=new AddSetting(selectedId,isSprinklerSelected);\n\t\t\n\t\taddSetting.setScheduleListener(new ScheduleListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void scheduleAdded() {\n\t\t\t\t// refresh Schedule panel\n\t\t\t\tSystem.out.println(\"3.\"+selectedId);\n\t\t\t\tschedulePane.removeAll();\n\t\t\t\tschedulePane.add(new Schedule(selectedId, isSprinklerSelected));\n\t\t\t\tschedulePane.validate();\n\t\t\t\tschedulePane.repaint();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t//**************************************************************//\n\t\t\n\t\t//add components to setting pane\n\t\tsettingPane.add(updatePane);\n\t\t\n\t\t\n\t\tsettingPane.add(addSetting);\n\t\t\n\t\t\n\t\t\n\t\t//add setting pane to content pane\n\t\tcontentPane.add(settingPane,BorderLayout.SOUTH);\n\t\t\n\t\t\n\t}", "@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tsummaryPanel.updatePanel();\n\t\t\t\tsummaryPanel.updatePlayerStatus(\"\");\n\t\t\t}", "@Override\n\tpublic void updatePanel() {\n\t\tstatTable.setStatTable(getModel().getRowCount(),\n\t\t\t\tgetModel().getRowNames(), getModel().getColumnCount(),\n\t\t\t\tgetModel().getColumnNames());\n\t\tgetModel().updatePanel();\n\t}", "private void updatePanels() // updatePanels method start\n\t{\n\t\tbalanceOutput.setText(log.balanceReport());\n\t\tlogOutput.setText(log.logReport());\n\t\tATBOutput.setText(log.adjustedTrialBalance());\n\t\tISOutput.setText(log.incomeStatement());\n\t\tRESOutput.setText(log.retainedEarningsStatement());\n\t\tBSOutput.setText(log.balanceSheet());\n\t}", "private void updateStatusText() {\n Piece.Color playerColor = board.getTurnColor();\n\n if(board.isGameOver()) {\n if(board.isDraw()) {\n tvShowStatus.setTextColor(Color.BLUE);\n tvShowStatus.setText(\"DRAW\");\n }\n else if (board.getWinnerColor() == Piece.Color.Black) {\n tvShowStatus.setTextColor(Color.BLACK);\n tvShowStatus.setText(\"BLACK WINS\");\n }\n else {\n tvShowStatus.setTextColor(Color.WHITE);\n tvShowStatus.setText(\"WHITE WINS\");\n }\n }\n else if(playerColor == Piece.Color.Black) {\n tvShowStatus.setTextColor(Color.BLACK);\n tvShowStatus.setText(\"BLACK\");\n }\n else {\n tvShowStatus.setTextColor(Color.WHITE);\n tvShowStatus.setText(\"WHITE\");\n }\n }", "void onStatusUpdate(int status);", "public void updateStatsPanel() {\n\t\t//update versus table\n\t\tuser1 = Login.getInstance().getUserOne();\n\t\tuser2 = Login.getInstance().getUserTwo();\n\t\t\n\t\tif(isVersusTableInitialized==true) {\n\t\t\tmainPanel.remove(versusTable);\n\t\t}\n\t\t\n\t\tversusTable = generateVersusTable();\n\t\tmainPanel.add(versusTable);\n\t\tisVersusTableInitialized=true;\n\t\tversusTable.setBounds(600, 160, 150, 45);\n\t\tversusTable.setBackground(Color.LIGHT_GRAY);\n\t\tversusTable.setEnabled(false);\n\t\ttitle.setForeground(Color.WHITE);\n\t\t\n\t\t//update top ten table\n\t\tif(isTopTenTableInitialized==true) {\n\t\t\tmainPanel.remove(topTenTable);\n\t\t}\n\t\t\n\t\ttopTenTable=generateTopTenTable();\n\t\tmainPanel.add(topTenTable);\n\t\tisTopTenTableInitialized=true;\n\t\ttopTenTable.setBounds(150, 160, 150, 175);\n\t\ttopTenTable.setBackground(Color.LIGHT_GRAY);\n\t\ttopTenTable.setEnabled(false);\n\t\ttitle.setForeground(Color.WHITE);\n\t}", "private void displayStatusPanel(String message, String title, int status) {\n JOptionPane.showMessageDialog(mainPanel, message, title, status);\n }", "private void updatePanel() {\n\t\tProbeUtilities.updateModelProbePanel();\n\t}", "@Override\n public void updateStatus(Status status) {\n this.status = status;\n }", "private void updateStatus() {\n Response block = blockTableModel.getChainHead();\n int height = (block != null ? block.getInt(\"height\") : 0);\n nodeField.setText(String.format(\"<html><b>NRS node: [%s]:%d</b></html>\",\n Main.serverConnection.getHost(),\n Main.serverConnection.getPort()));\n chainHeightField.setText(String.format(\"<html><b>Chain height: %d</b></html>\",\n height));\n connectionsField.setText(String.format(\"<html><b>Peer connections: %d</b></html>\",\n connectionTableModel.getActiveCount()));\n }", "public void updateUI(){}", "private void changeStatusBar(String status)\r\n {\r\n jStatusBar.setText(status);\r\n }", "protected void updatePanelContent() {\n updating = true;\n jTextFieldName.setText(bulb.getName());\n jTextFieldName.setToolTipText(bulb.getType());\n jSlider1.setValue(bulb.getIntensity());\n jToggleButton1.setSelected(bulb.isOn());\n if (bulb.getColor() != null) {\n jRadioCold.setEnabled(true);\n jRadioNormal.setEnabled(true);\n jRadioWarm.setEnabled(true);\n switch(bulb.getColor()) {\n case TradfriConstants.COLOR_NORMAL: jRadioNormal.setSelected(true); break;\n case TradfriConstants.COLOR_WARM: jRadioWarm.setSelected(true); break;\n case TradfriConstants.COLOR_COLD: jRadioCold.setSelected(true); break;\n }\n }\n else {\n jRadioCold.setEnabled(false);\n jRadioNormal.setEnabled(false);\n jRadioWarm.setEnabled(false);\n }\n \n \n if (bulb.isOnline()) {\n jToggleButton1.setEnabled(true);\n jRadioCold.setEnabled(true);\n jRadioNormal.setEnabled(true);\n jRadioWarm.setEnabled(true);\n jSlider1.setEnabled(true);\n jLabelDates.setText(\"Installed: \"+bulb.getDateInstalled()+\" - Last seen: \"+bulb.getDateLastSeen()+\" - Firmware: \" + bulb.getFirmware() + \" [online]\");\n }\n else {\n jToggleButton1.setEnabled(false);\n jRadioCold.setEnabled(false);\n jRadioNormal.setEnabled(false);\n jRadioWarm.setEnabled(false);\n jSlider1.setEnabled(false);\n jLabelDates.setText(\"Installed: \"+bulb.getDateInstalled()+\" - Last seen: \"+bulb.getDateLastSeen()+\" - Firmware: \" + bulb.getFirmware() + \" [offline]\");\n }\n \n updating = false;\n }", "public void status(leapstream.scoreboard.core.model.Status status) {\n Stati stati = status.is();\n foreground(stati);\n background(stati);\n label.text(\"\" + stati);\n }", "@Override\n protected void onProgressUpdate(String... values) {\n labelStatus.setText(values[0]);\n }", "public void updateStatus(final String status) {\n // Be a good citizen. Make sure UI changes fire on the UI thread.\n this.runOnUiThread(new Runnable() {\n public void run() {\n sipLabel.setText(status);\n }\n });\n }", "public void status(){\n lblStats.setText(\"\"+level+\"L\");\n }", "@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tsummaryPanel.updatePlayerStatus(player.getPlayerId());\n\t\t\t}", "public void update() {\n\n\t\tdisplay();\n\t}", "protected void _updateWidgets()\n\t{\n\t\t// Show the title\n\t\tString title = _spItem.getTitleAttr() ;\n\t\tif( title != null )\n\t\t\t_obsTitle.setText( title ) ;\n\t\telse\n\t\t\t_obsTitle.setText( \"\" ) ;\n\n\t\tString state = _avTab.get( \"state\" ) ;\n\t\tif( state == null )\n\t\t\t_obsState.setText( \"Not in Active Database\" ) ;\n\t\telse\n\t\t\t_obsState.setText( state ) ;\n\n\t\tignoreActions = true ; // MFO\n\n\t\tSpObs obs = ( SpObs )_spItem ;\n\t\t\n\t\t// Set the priority\n\t\tint pri = obs.getPriority() ;\n\t\t_w.jComboBox1.setSelectedIndex( pri - 1 ) ;\n\n\t\t// Set whether or not this is a standard\n\t\t_w.standard.setSelected( obs.getIsStandard() ) ;\n\n\t\t// Added for OMP (MFO, 7 August 2001)\n\t\t_w.optional.setValue( obs.isOptional() ) ;\n\n\t\tint numberRemaining = obs.getNumberRemaining();\n\t\t_w.setRemainingCount(numberRemaining);\n\n\t\t_w.unSuspendCB.addActionListener( this ) ;\n\n\t\tignoreActions = false ;\n\n\t\t_w.estimatedTime.setText( OracUtilities.secsToHHMMSS( obs.getElapsedTime() , 1 ) ) ;\n\n\t\t_updateMsbDisplay() ;\n\t}", "void updateStatusLines(boolean showStatusLines) {\n if (DEBUG) Log.v(TAG, \"updateStatusLines(\" + showStatusLines + \")\");\n mShowingStatus = showStatusLines;\n updateAlarmInfo();\n updateOwnerInfo();\n updateStatus1();\n updateCarrierText();\n }", "public void update(){\n\t\tthis.setVisible(true);\n\t}", "private void updateUI() {\n\t\t\tfinal TextView MessageVitesse = (TextView) findViewById(R.id.TextView01);\r\n\t\t\tfinal ProgressBar Progress = (ProgressBar) findViewById (R.id.ProgressBar01);\r\n\t\t\tfinal TextView MessageStatus = (TextView)findViewById (R.id.TextView02);\r\n\t\t\t\t\t\r\n\t\t\t//on affecte des valeurs aux composant\r\n\t\t\tMessageVitesse.setText(\"Vitesse Actuelle : \"+ Vitesse + \" Ko/s\");\r\n\t\t\tProgress.setProgress(Pourcent);\r\n\t\t\tMessageStatus.setText (Status);\r\n\t\t\tif (Status.equals(\"Télèchargement terminé!!!\")&&NotifDejaLancée==false){\r\n\t\t\t\tlanceNotification();\r\n\t\t\t\tNotifDejaLancée=true;\r\n\t\t\t}\r\n\t\t\t}", "public void update()\n\t{\n\t\tJPanel panel = getPanel();\n\n\t\tif (panel instanceof StylePanel)\n\t\t\t((StylePanel) panel).updatePanel();\n\t}", "@Override\r\n public void updateUI() {\r\n }", "public void updateExpStatus(String str) {\n final String status = str;\n Runnable doUpdate = new Runnable() {\n public void run() {\n infoLabel.setText(status);\n }\n };\n SwingUtilities.invokeLater(doUpdate);\n }", "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 }", "public void statusChanged() {\n\t\tif(!net.getArray().isEmpty()) {\n\t\t\tigraj.setEnabled(true);\n\t\t}else\n\t\t\tigraj.setEnabled(false);\n\t\t\n\t\tupdateKvota();\n\t\tupdateDobitak();\n\t}", "private void internalSetStatus(String status) {\n jStatusLine.setText(\"Status: \" + status);\n }", "void onStatusChanged(Status newStatus);", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "private void initGUI() {\n statusLabel = new JLabel();\n add(statusLabel);\n updateStatus();\n }", "private void createStatusBar() {\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(1, 4));\r\n\t\t\r\n\t\tlengthLab = new JLabel(\"Length: 0\");\r\n\t\tlengthLab.setForeground(Color.GRAY);\r\n\t\tlengthLab.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tpanel.add(lengthLab);\r\n\t\t\r\n\t\tlnLab = new JLabel(\"Ln: 0\");\r\n\t\tlnLab.setForeground(Color.GRAY);\r\n\t\tlnLab.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tpanel.add(lnLab);\r\n\t\t\r\n\t\tcolLab = new JLabel(\"Col: 1\");\r\n\t\tcolLab.setForeground(Color.GRAY);\r\n\t\tcolLab.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tpanel.add(colLab);\r\n\t\t\r\n\t selLab = new JLabel(\"Sel: 0\");\r\n\t\tselLab.setForeground(Color.GRAY);\r\n\t\tselLab.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tpanel.add(selLab);\r\n\t\t\r\n\t\tJLabel clock = new JLabel(new Date().toString());\r\n\t\tclock.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tpanel.add(clock, BorderLayout.PAGE_END);\r\n\t\ttimer = new Timer(100, (e) -> { \r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\tclock.setText(sdf.format(new Date()));\r\n\t\t});\r\n\t\ttimer.start();\r\n\t\t\r\n\t\tgetContentPane().add(panel, BorderLayout.PAGE_END);\r\n\t}", "void statusUpdate(boolean invalid);", "private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStatus(status);\n\t}", "public void statusUpdate(final AudioHandler handler, final int status) {\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n btnPlay.setEnabled(handler.hasData() &&\r\n (status == AudioHandler.PLAYING || status == AudioHandler.PAUSED ||\r\n status == AudioHandler.STOPPED || status == AudioHandler.CLOSED));\r\n if (status == AudioHandler.PLAYING) {\r\n ((NanoButtonUI) btnPlay.getUI()).setIconType(NanoButtonUI.PAUSE);\r\n btnPlay.setToolTipText(bundle.getString(\"TOOLTIP_PLAY_PAUSE_BUTTON\"));\r\n }\r\n else {\r\n ((NanoButtonUI) btnPlay.getUI()).setIconType(NanoButtonUI.PLAY);\r\n btnPlay.setToolTipText(bundle.getString(\"TOOLTIP_PLAY_BUTTON\"));\r\n }\r\n btnPlay.repaint();\r\n btnRecord.setEnabled(status == AudioHandler.RECORDING || status == AudioHandler.PAUSED_RECORD ||\r\n status == AudioHandler.STOPPED || status == AudioHandler.CLOSED);\r\n if (status == AudioHandler.RECORDING) {\r\n ((NanoButtonUI) btnRecord.getUI()).setIconType(NanoButtonUI.PAUSE);\r\n btnRecord.setToolTipText(bundle.getString(\"TOOLTIP_RECORD_PAUSE_BUTTON\"));\r\n }\r\n else {\r\n ((NanoButtonUI) btnRecord.getUI()).setIconType(NanoButtonUI.RECORD);\r\n btnRecord.setToolTipText(bundle.getString(\"TOOLTIP_RECORD_BUTTON\"));\r\n }\r\n btnRecord.repaint();\r\n btnStop.setEnabled(status == AudioHandler.PLAYING || status == AudioHandler.RECORDING ||\r\n status == AudioHandler.PAUSED || status == AudioHandler.PAUSED_RECORD);\r\n btnSave.setEnabled(handler.hasData() && (status == AudioHandler.STOPPED || status == AudioHandler.CLOSED));\r\n slrTime.setEnabled(handler.hasData() && status != AudioHandler.RECORDING && status != AudioHandler.PAUSED_RECORD);\r\n }\r\n });\r\n }", "void updateControls();", "@FXML\r\n\tprivate void updateStatus(ActionEvent event) {\r\n\t\tupdateAsset(AssetOperation.STATUS);\r\n\t}", "public void update() {\n this.infoWindowManager.update();\n }", "private void initStatusBar() {\n ModelerSession.getStatusBarService().addStatusBarItem(\n getIdentifier(), selectedToolStatusBarItem, JideBoxLayout.FIX\n );\n }", "void setStatus(int status);", "protected void updateStatus() {\n super.updateStatus();\n if (!getHaveData()) {\n if (getAllowMultiple()) {\n setStatus(\"Select one or more files\");\n } else {\n setStatus(\"Select a file\");\n }\n }\n }", "public void setStatus(String status) {\n statusLabel.setText(status);\n }", "public RSPStatusPanel() \n {\n initComponents();\n }", "@Override\n\tpublic void updateRunningStatus \n\t\t(final int progress, final String label1, final String label2)\n\t{\n\t\t\n\t\tRunnable doSetRunningStatus = new Runnable()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tmRunningPanel.updateProgressBar(progress);\n\t\t\t\tmRunningPanel.updateProgressLabel1(label1);\n\t\t\t\tmRunningPanel.updateProgressLabel2(label2);\n\t\t\t}\n\t\t};\n\t\t\n\t\tSwingUtilities.invokeLater(doSetRunningStatus);\n\t\t\n\t}", "void setStatus(STATUS status);", "@Override\n\tpublic void Update(JPanel panel) {\n\t\t\n\t}", "public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}", "public Update_info() {\n initComponents();\n display_data();\n }", "public void update(){\n\t\tsetChanged();\n\t\trender();\n\t\tprintTimer();\n\t}", "public void run() {\n updateSyncStats();\n\n double d = uploadCounter.calculateCurrentKBS();\n if (getController().getTransferManager().countActiveUploads() == 0)\n {\n // Hide KB/s when not active uploads\n d = 0;\n }\n if (Double.compare(d, 0) == 0) {\n uploadsLine.setNormalLabelText(Translation\n .getTranslation(\"status_tab.files_uploads\"));\n } else {\n String s = Format.formatDecimal(d);\n uploadsLine.setNormalLabelText(Translation.getTranslation(\n \"status_tab.files_uploads_active\", s));\n }\n d = downloadCounter.calculateCurrentKBS();\n if (getController().getTransferManager().countActiveDownloads() == 0)\n {\n // Hide KB/s when no active downloads\n d = 0;\n }\n if (Double.compare(d, 0) == 0) {\n downloadsLine.setNormalLabelText(Translation\n .getTranslation(\"status_tab.files_downloads\"));\n } else {\n String s = Format.formatDecimal(d);\n downloadsLine.setNormalLabelText(Translation.getTranslation(\n \"status_tab.files_downloads_active\", s));\n }\n }", "public static JPanel getChangeRequestStatusPanel(){\n JPanel additionalRequests = new JPanel();\n additionalRequests.setLayout(null);\n\n\n String[] viewTypes = {\"Change Dietary Restrictions Status\", \"Change Accessibility Requirements Status\"};\n JComboBox<String> changeUserRequestsComboBox = new JComboBox<>(viewTypes);\n changeUserRequestsComboBox.setBounds(10, 20, 260, 25);\n changeUserRequestsComboBox.setSelectedIndex(0);\n additionalRequests.add(changeUserRequestsComboBox);\n\n JLabel userID = new JLabel(\"User ID\");\n userID.setBounds(10,80, 100, 25);\n additionalRequests.add(userID);\n\n NumberFormat userIDFormat = NumberFormat.getInstance();\n NumberFormatter userIDFormatter = new NumberFormatter(userIDFormat);\n userIDFormatter.setValueClass(Integer.class);\n userIDFormatter.setMinimum(0);\n userIDFormatter.setMaximum(Integer.MAX_VALUE);\n userIDFormatter.setAllowsInvalid(false);\n userIDFormatter.setCommitsOnValidEdit(true);\n JFormattedTextField userIDDField = new JFormattedTextField(userIDFormatter);\n userIDDField.setBounds(290, 80, 165, 25);\n additionalRequests.add(userIDDField);\n\n JLabel newStatus = new JLabel(\"New Status\");\n newStatus.setBounds(10, 120, 100, 25);\n additionalRequests.add(newStatus);\n\n JTextField newStatusTextField = new JTextField();\n newStatusTextField.setBounds(290, 120, 165, 25);\n additionalRequests.add(newStatusTextField);\n\n JButton confirmButton = new JButton(\"Confirm\");\n confirmButton.setBounds(10, 200, 100, 25);\n additionalRequests.add(confirmButton);\n confirmButton.addActionListener(e -> {\n changeRequestStatusPresenter.changeRequestStatus(\n Integer.parseInt(userIDDField.getText()),\n (String)changeUserRequestsComboBox.getSelectedItem(),\n newStatusTextField.getText());\n changeRequestStatusPresenter.createMessagePopUp(\"Status Changed\");\n });\n\n JButton backButton = new JButton(\"Back\");\n backButton.setBounds(10, 230, 100, 25);\n additionalRequests.add(backButton);\n backButton.addActionListener(e -> mainView.toPanel(\"Menu\"));\n\n JButton signoutButton = new JButton(\"Sign Out\");\n signoutButton.setBounds(10, 260, 100, 25);\n additionalRequests.add(signoutButton);\n signoutButton.addActionListener(e -> SignoutPresenter.signOut());\n\n return additionalRequests;\n }", "public void setStatus(String stat)\n {\n status = stat;\n }", "void updateDashboard() {\n\t}", "private static void updateStatus(final int increment) {\n if (splash != null) {\n splash.advance();\n }\n }", "void setStatus(String status);", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "public void update() {\n\t\t//Indicate that data is fetched\n\t\tactivity.showProgressBar();\n\t\n\t\tPlayer currentPlayer = dc.getCurrentPlayer();\n\t\tactivity.updatePlayerInformation(\n\t\t\t\tcurrentPlayer.getName(),\n\t\t\t\tgetGlobalRanking(),\n\t\t\t\tcurrentPlayer.getGlobalScore(),\n\t\t\t\tcurrentPlayer.getPlayedGames(),\n\t\t\t\tcurrentPlayer.getWonGames(),\n\t\t\t\tcurrentPlayer.getLostGames(),\n\t\t\t\tcurrentPlayer.getDrawGames());\n\n\t\tactivity.hideProgressBar();\n\t}", "public void updateStatusVisible (DataSource pool,String status) throws SQLException {\r\n Connection conn=null;\r\n\t\ttry{\r\n conn=pool.getConnection();\r\n String query = \r\n \"update gene_list_analyses \"+\r\n \"set status = ?, visible = 1\"+\r\n \"where analysis_id = ?\";\r\n\r\n log.debug(\"in updateStatusVisible. analysis = \"+this.getDescription());\r\n PreparedStatement pstmt = conn.prepareStatement(query, \r\n ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n ResultSet.CONCUR_UPDATABLE);\r\n pstmt.setString(1, this.getStatus());\r\n pstmt.setInt(2, this.getAnalysis_id());\t\r\n pstmt.executeUpdate();\r\n }catch(SQLException e){\r\n \r\n }finally{\r\n if (conn != null) {\r\n try { conn.close(); } catch (SQLException e) { ; }\r\n conn = null;\r\n }\r\n }\r\n\t}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "public void updateUI()\n\t{\n\t\tif( isRunning() == false) \n\t\t{\n\t\t\tupdateButton(\"Run\");\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateTextView(Feedback.getMessage(Feedback.TYPE.NEW_TEST, null));\n\t\t}else\n\t\t{\n\t\t\tbutton.setClickable(true);\n\t\t\tupdateButton( \"Stop\" );\n\t\t\tupdateTextView(\"Tests are running.\");\n\n\t\t}\n\t}", "public void setStatus(String text) {\n labelStatus.setText(text);\n }", "protected void setupStatusBar() {\r\n\t\tStatusBar statusBar = new StatusBar() {\r\n\t\t\tprivate static final long serialVersionUID = -8334549384792867496L;\r\n\r\n\t\t\t@Override\r\n\t\t\tprotected String makeAngleDescription(String label, Angle angle) {\r\n\t\t\t\tString s;\r\n\t\t\t\tif (Angle.ANGLE_FORMAT_DMS.equals(getAngleFormat()))\r\n\t\t\t\t\ts = String.format(\"%s %s\", label, angle.toDMSString());\r\n\t\t\t\telse\r\n\t\t\t\t\ts = String.format(\"%s %,.6f\\u00B0\", label, angle.degrees);\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * Overridden to capture the current altitude.\r\n\t\t\t */\r\n\t\t\t@Override\r\n\t\t\tprotected String makeEyeAltitudeDescription(double metersAltitude){\r\n\t\t\t\t//System.out.println(\"metersAltitude: \"+ metersAltitude);\r\n\t\t\t\tsetCurrentAltitude(metersAltitude);\r\n\t\t\t\treturn super.makeEyeAltitudeDescription(metersAltitude);\r\n\t\t\t}\r\n\t\t};\r\n\t\tadd(statusBar, BorderLayout.PAGE_END);\r\n\t\tstatusBar.setEventSource(getWWD());\r\n\t}", "public void refreshPanelComponents() {\r\n }", "public void updateState() {\n\t\tfloat uptime = .05f;\t\t\t// Amount of Time the up animation is performed\n\t\tfloat downtime = .35f;\t\t\t// Amount of Time the down animation is performed\n\t\tColor colorUp = Color.YELLOW;\t// Color for when a value is increased\n\t\tColor colorDown = Color.RED;\t// Color for when a value is decreased\n\t\tColor color2 = Color.WHITE;\t\t// Color to return to (Default Color. Its White btw)\n\t\t\n\t\t// Check to see if the Time has changed and we are not initializing the label\n\t\tif(!time.getText().toString().equals(Integer.toString(screen.getState().getHour()) + \":00\") && !level.getText().toString().equals(\"\")) {\n\t\t\t// Set the time label and add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t\ttime.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(time.getText().toString().equals(\"\")) {\n\t\t\t// First time setting the label, dont add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t}\n\t\t\n\t\t// Check to see if the Level has changed and we are not initializing the label\n\t\tif(!level.getText().toString().equals(screen.getState().getTitle()) && !level.getText().toString().equals(\"\")) {\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t\tlevel.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(level.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the level label\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t}\n\t\t\n\t\t// Check to see if the XP has changed and we are not initializing the label\n\t\tif(!xp.getText().toString().equals(\"XP: \" + Integer.toString(screen.getState().getXp())) && !xp.getText().toString().equals(\"\")) {\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t\txp.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(xp.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the XP label\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t}\n\t\t\n\t\t// Check to see if the Money has changed and we are not initializing the label\n\t\tif(!money.getText().toString().equals(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\") && !money.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Check to see if the player's money went up. This is a mess but it works\n\t\t\t// Makes the change animation Yellow or Green depending on the change in money\n\t\t\tif(Double.parseDouble(money.getText().substring(1).toString()) <= screen.getState().getMoney())\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the label to the new money\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t\t\n\t\t} else if(money.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the Money Label\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t}\n\t\t\n\t\t// Check to see if the Energy has changed and we are not initializing the label\n\t\tif(!energy.getText().toString().equals(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\") && !energy.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Changes the animation to Yellow or Red depending on the change in the energy value\n\t\t\tif(Integer.parseInt(energy.getText().substring(3).split(\"/\")[0].toString()) < screen.getState().getEnergy())\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the energy label\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t} else if(energy.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the energy label if it isnt set\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t}\n\t\t\n\t\t// Get the current date.\n\t\tint[] curDate = screen.getState().getDate();\n\t\t\t\n\t\t// Check to see if the Date has changed and we are not initializing the label\n\t\tif(!date.getText().toString().equals(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]) && !date.getText().toString().equals(\"\")) {\n\t\t\t// Set the date label and add the change animation\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t\tdate.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(date.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the date label\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t}\n\t\t\n\t\t// Set the log text\n\t\tlogLabel.setText(screen.getState().getLog());\n\t\t\n\t\t// Update the stats\n\t\tState state = screen.getState();\n\t\tstatsLabel.setText(\"XP: \" + state.getXp() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Level: \" + state.getLevel() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Title: \" + state.getTitle() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Popularity: \" + state.getPopularity() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Year \" + state.getDate()[0] + \" Month \" + state.getDate()[1] + \" Day \" + state.getDate()[2] + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Hour: \" + state.getHour() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Energy: \" + state.getEnergy() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Current Funds: \" + state.getMoney() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Earned: \" + state.getEarned_money() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Spent: \" + state.getSpent_money());\n\t}", "public void setStatus(int status);", "public void setStatus(int status);", "public void updateGamePanel() {\n\t\tthis.removeAll();\n\t\t\n\t\tButton2 buttonTip = new Button2(\"DICA\", 75, 100, 100, 100);\n\t\tbuttonTip.addActionListener(e -> Controller.game.showTip());\n\t\tthis.add(buttonTip);\n\t\t\n\t\tButton2 menu = new Button2(\"Menu\", 200, 100, 100, 100);\n\t\tmenu.addActionListener(e -> this.frame.setVisible(\"menu\"));\n\t\tthis.add(menu);\n\t\t\n\t\tthis.drawButtons();\n\t\t\n\t\t//Adding labels\n\t\tthis.add(frame.getWordShow());\n\t\tthis.add(frame.getLifeShow());\n\t\t\n\t\tthis.frame.add(this);//Adding the gameJPanel to the frame\n\t}", "@Override\n\t\t\tpublic void stateChanged() {\n\t\t\t\tupdateUi();\n\t\t\t\tmakeUserContentPanel(panel);\n\t\t\t}", "private void setupUpdateButton() {\n\n /* Get the button */\n Button updateButton = this.getStatusUpdateButton();\n\n /* Setup listener */\n View.OnClickListener updateButtonClicked = new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n statusUpdater.updateStatus();\n }\n };\n\n /* Set listener to button */\n updateButton.setOnClickListener(updateButtonClicked);\n }", "public void updateUI(){\n\t\t\n\t\ttimeTV.setText(\"\"+String.format(\"\" + gameClock%10));\n\t\ttimeTV2.setText(\"\"+ gameClock/10+\".\");\n\t\tif (currentGameEngine!=null) {\n\t\t\tmultLeft.setText(\"multiplier: \"+currentGameEngine.getMultiplier()+\"X\");\n\t\t\tscoreTV.setText(\"\"+currentGameEngine.getScore());\n\t\t} else {\n\t\t\tscoreTV.setText(\"0\");\n\t\t}\n\n\t\t//errorTV.setText(\"\"+mFrameNum);\n\t\t\n\t\t\n\t}", "private void setStatusBar(String statusMsg)\r\n {\r\n\r\n debug(\"setStatusBar() - get a handle to the main application\");\r\n StockMarketApp mainApp = getMainApp();\r\n\r\n if (mainApp != null)\r\n {\r\n debug(\"setStatusBar() - Sending message to change applications\");\r\n mainApp.setStatus(statusMsg);\r\n }\r\n debug(\"setStatusBar() - Processing completed\");\r\n }", "private void setComponentStatus() {}", "public void setStatus(String status) { this.status = status; }", "public void updateScreen(){}", "private void updateInfoValues() {\n menuPanel.updateInfoPanel( tugCount, simulation.getShipsOnSea(), simulation.getShipsDocked(), simulation.getShipsTugged());\n }", "private void displayStatus(String status) {\n\t\tif (!status.equals(\"\")) {\n\t\t\tdouble x = LEFT_MARGIN;\n\t\t\tdouble y = nameY + IMAGE_MARGIN + IMAGE_HEIGHT + STATUS_MARGIN;\n\t\t\tGLabel pstatus = new GLabel(status);\n\t\t\tpstatus.setFont(PROFILE_STATUS_FONT);\n\t\t\tif (getElementAt(x, y) != null) {\n\t\t\t\tremove(getElementAt(x, y));\n\t\t\t}\n\t\t\tadd(pstatus, x, y);\n\t\t}\n\t}", "public void setStatus(int newStatus) {\n status = newStatus;\n }", "@Override\n\tpublic boolean updateStatus() {\n\t\treturn false;\n\t}", "public synchronized void startUpdates(){\n mStatusChecker.run();\n }", "void updateCommonToggleStatus(boolean shown);", "@Override\n public void updateScreen() {\n if (dirty) {\n Alkahestry.logger.info(((ContainerMoleculeSplitter) container).moleculeSplitterTileEntity.progress);\n// String name = String.valueOf(((ContainerMoleculeSplitter) container).moleculeSplitterTileEntity.progress);\n// fontRenderer.drawString(name, xSize / 2 - fontRenderer.getStringWidth(name) / 2, 6, 0x404040);\n// fontRenderer.drawString(playerInv.getDisplayName().getUnformattedText(), 8, ySize - 94, 0x404040);\n dirty = false;\n }\n// ((ContainerMoleculeSplitter) container)\n// .moleculeSplitterTileEntity\n// .\n super.updateScreen();\n }", "private void populateSprinklerStatus()\n\t{\n\t\t//get data\n\t\tSprinkler newSprinkler=sprinklerService.getSprinklerByName(selectedId);\n\t\t\n\t\tchkFunctional.setVisible(true);\n\t\tbtnSave.setVisible(true);\n\t\t//btnCancel.setVisible(true);\n\t\t\n\t\tif(newSprinkler.isFunctional())\n\t\t{\n\t\t\tchkFunctional.setSelected(true);//checks functional checkbox.\n\t\t\taddSetting=new AddSetting(selectedId, isSprinklerSelected);\n\t\t\taddSetting.setScheduleListener(new ScheduleListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void scheduleAdded() {\n\t\t\t\t\t// refresh Schedule panel\n\t\t\t\t\tSystem.out.println(\"1.\"+selectedId);\n\t\t\t\t\tschedulePane.removeAll();\n\t\t\t\t\tschedulePane.add(new Schedule(selectedId, isSprinklerSelected));\n\t\t\t\t\tschedulePane.validate();\n\t\t\t\t\tschedulePane.repaint();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t//settingPane.removeAll();\n\t\t\tsettingPane.remove(1);\n\t\t\tsettingPane.add(addSetting, 1);\n\t\t\taddSetting.setVisible(true);\n\t\t\t//newWeek.setVisible(true);\n\t\t\tschedule.setVisible(true);\n\t\t\t\n\t\t\tif(newSprinkler.getSprinklerStatus().equals(\"OFF\"))\n\t\t\t{\n\t\t\t\t//if sprinkler is off, show ON option \n\t\t\t\t////chkOff.setSelected(true);\n\t\t\t\tbtnOff.setVisible(false);//chkOff.setVisible(false);\n\t\t\t\tbtnOn.setVisible(true);//chkOn.setSelected(false);\n\t\t\t\t//chkOn.setVisible(true);\n\t\t\t\t\n\t\t\t\t//show status as text\n\t\t\t\tlblStatus.setText(\"Status:OFF\");\n\t\t\t\t//show 'off' icon \n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(newSprinkler.getSprinklerStatus().equals(\"ON\"))\n\t\t\t{\n\t\t\t\t//if sprinkler is on, show OFF option \n\t\t\t\tbtnOff.setVisible(true);//chkOff.setSelected(false);\n\t\t\t\tbtnOn.setVisible(false);//chkOff.setVisible(true);\n\t\t\t\t////chkOn.setSelected(true);\n\t\t\t\t//chkOn.setVisible(false);\n\t\t\t\t//show status as text\n\t\t\t\tlblStatus.setText(\"Status:ON\");\n\t\t\t\t//show 'on' icon \n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse//sprinkler is not functional\n\t\t{\n\t\t\t//uncheck functional checkbox\n\t\t\tchkFunctional.setSelected(false);\n\t\t\t//lblstatus=off and not functional\n\t\t\tlblStatus.setText(\"Status:OFF, Not Functional\");\n\t\t\t//icon=not functional image\n\t\t\t\n\t\t\t//disable add settings/weekly schedule panel\n\t\t\taddSetting.setVisible(false);\n\t\t\t//newWeek.setVisible(false);\n\t\t\tschedule.setVisible(false);\n\t\t\t//only the functional checkbox and save button will be accessible\n\t\t\tbtnOff.setVisible(false);//chkOn.setVisible(false);\n\t\t\tbtnOn.setVisible(false);//chkOff.setVisible(false);\n\n\t\t}\n\t}", "private void updateTaskActivityLabel()\r\n {\r\n setLabelValue(\"Tile Downloads \" + myActiveQueryCounter.intValue());\r\n setProgress(myDoneQueryCounter.doubleValue() / myTotalSinceLastAllDoneCounter.doubleValue());\r\n }", "protected void setStatus(String status) {\n Message msg = mHandler.obtainMessage(DIALOG_UPDATE, status);\n mHandler.sendMessage(msg);\n }", "private void populateGroupStatus()\n\t{\n\t\t//System.out.println(\"inside populateGroupStatus\");\n\t\t//get data\n\t\tSprinklerGroup newGroup=sprinklerGroup.getSprinklerGroupByName(selectedId);\n\t\t\n\t\tchkFunctional.setVisible(false);//No functional checkbox in this case.\n\t\tbtnSave.setVisible(false);\n\t\t//btnCancel.setVisible(false);\n\t\t\n\t\t//initialize addSetting\n\t\taddSetting=new AddSetting(selectedId, isSprinklerSelected);\n\t\taddSetting.setScheduleListener(new ScheduleListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void scheduleAdded() {\n\t\t\t\t// refresh Schedule panel\n\t\t\t\tSystem.out.println(\"2.\"+selectedId);\n\t\t\t\tschedulePane.removeAll();\n\t\t\t\tschedulePane.add(new Schedule(selectedId, isSprinklerSelected));\n\t\t\t\tschedulePane.validate();\n\t\t\t\tschedulePane.repaint();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tsettingPane.remove(1);\n\t\tsettingPane.add(addSetting, 1);\n\t\taddSetting.setVisible(true);\n\t\t\n\t\t//newWeek.setVisible(true);\n\t\tschedule.setVisible(true);\n\t\t//on/off button and status text management\n\t\tif(newGroup.getStatus().equals(SprinklerStatus.OFF.toString()))\n\t\t{\n\t\t\t//if group is off, show ON option \n\t\t\t\n\t\t\tbtnOff.setVisible(false);\n\t\t\tbtnOn.setVisible(true);\n\t\t\t\n\t\t\t\n\t\t\t//show status as text\n\t\t\tlblStatus.setText(\"Status:OFF\");\n\t\t\t//show 'off' icon \n\t\t\t\n\t\t\t\n\t\t}\n\t\telse if(newGroup.getStatus().equals(SprinklerStatus.ON.toString()))\n\t\t{\n\t\t\t//if group is on, show OFF option \n\t\t\tbtnOff.setVisible(true);\n\t\t\tbtnOn.setVisible(false);\n\t\t\t\n\t\t\t//show status as text\n\t\t\tlblStatus.setText(\"Status:ON\");\n\t\t\t//show 'on' icon \n\t\t}\n\t}", "public void statusChanged(GameStatusEvent e) {\n gameRunning = false;\n if(e.isGameOver()) {\n gameWon = false;\n hauptfenster.getSounds().playGameOver(); // abspielen der Sounds\n } else if(e.isGameWon()) {\n gameWon = true;\n hauptfenster.getSounds().playGameWon(); // abspielen der Sounds\n }\n hauptfenster.getSpielfeld().drawNew(); // Spielfeld neu zeichnen\n hauptfenster.getToolbar().updateToolbar(hauptfenster.getDionaRapModel().getShootAmount(), hauptfenster.getDionaRapModel().getScore(), hauptfenster.getProgress());\n hauptfenster.getSpielfeld().gameStatusEnd(hauptfenster.getPlayer(), gameWon); // das Icon bei gewonnen oder verloren setzen\n hauptfenster.getToolbar().setEnabled(); // den \"Neues Spiel\"-Button auf aktiv setzen\n hauptfenster.getMenubar().setGameSettingsEnabled(); // den \"Spieleinstellungen\"-Button auf aktiv setzen\n\n int end_position = HighScoreFile.SCORE_TO_LOW_FOR_HIGHSCORE;\n try{\n end_position = HighScoreFile.getInstance().getScorePosition(hauptfenster.getDionaRapModel().getScore()); // auslesen der Position\n } catch (IOException ex) {\n System.err.println(\"File kann nicht gelesen werden: \" + ex);\n }\n if(end_position != HighScoreFile.SCORE_TO_LOW_FOR_HIGHSCORE && gameWon) {\n addBestlist(); // Bestenliste Dialog zeichnen\n }\n addDialog(gameWon); // den Dialog zeichnen\n }", "@Override\n public void update() {\n this.blnDoUpdate.set(true);\n }" ]
[ "0.7593398", "0.75368047", "0.74719346", "0.7216007", "0.7159059", "0.7154149", "0.7054465", "0.70083255", "0.699432", "0.69334656", "0.68882436", "0.6882827", "0.68291706", "0.679145", "0.67617196", "0.67557335", "0.6732218", "0.67318016", "0.6704193", "0.66931915", "0.6692684", "0.6677822", "0.66777354", "0.6656446", "0.6654862", "0.66518664", "0.66475916", "0.6578448", "0.6565846", "0.65576047", "0.6542208", "0.6506488", "0.64924335", "0.64878315", "0.64806765", "0.6442466", "0.6417982", "0.64166147", "0.6409732", "0.6405015", "0.6399794", "0.63859564", "0.6381333", "0.6380795", "0.63667166", "0.6360588", "0.63593155", "0.63523376", "0.6339312", "0.631502", "0.62863046", "0.62856936", "0.62836474", "0.62728864", "0.62699217", "0.62598103", "0.6252869", "0.6250003", "0.624892", "0.6223863", "0.6217757", "0.62167025", "0.6195664", "0.61934644", "0.6193183", "0.6185806", "0.6176502", "0.6163652", "0.6159528", "0.61493284", "0.61493284", "0.61493284", "0.61484385", "0.614565", "0.6141704", "0.613759", "0.6124321", "0.6121399", "0.6121399", "0.61209637", "0.6116283", "0.61104697", "0.6096816", "0.6095184", "0.6084449", "0.60836667", "0.6075404", "0.6063579", "0.60624015", "0.60597396", "0.60584754", "0.60583645", "0.6057816", "0.60564333", "0.60561603", "0.6055922", "0.60514057", "0.60466343", "0.60465205", "0.60445416" ]
0.7378636
3
remove selection of previous result
private HexTablePointer findAndSelect(HexTablePointer position, byte[] find, byte[] lowerCase, final boolean searchForward, boolean caseSensitive, final boolean scrollToVisible) { selectFindResult(true); findIndex = -1; if (find == null || find.length == 0) return null; int off = searchForward ? 0 : find.length - 1; int dataIndex = position.getOffset(); int increment = searchForward ? 1 : -1; while (searchForward && dataIndex < table.getBufferSize() || !searchForward && dataIndex >= 0) { byte s = table.getData(dataIndex); if (caseSensitive && s == find[off] || !caseSensitive && Character.toLowerCase((char) s) == lowerCase[off]) { if (findIndex == -1) findIndex = dataIndex; off += searchForward ? 1 : -1; if (searchForward && off >= find.length || !searchForward && off < 0) { // adjust the index if (!searchForward) findIndex -= find.length - 1; final HexTablePointer p = new HexTablePointer(findIndex); findPrevStatus = new byte[find.length]; for (int i = 0; i < findPrevStatus.length; i++) { findPrevStatus[i] = (byte) table.getCellStatus(p.getRowIndex(), p.getColumnIndex()); p.move(1); } p.move(-find.length); table.getDisplay().syncExec(new Runnable() { @Override public void run() { if (scrollToVisible) { table.getTable().select(p.getRowIndex() + table.getTable().getClientArea().height / table.getTable().getItemHeight() / 2); table.getTable().showSelection(); table.getTable().select(p.getRowIndex()); } selectFindResult(false); if (scrollToVisible) cursor.setSelection(p.getRowIndex(), p.getColumnIndex() + 1); table.setCellSelection(p.getRowIndex(), p.getColumnIndex(), false); table.updateVisibleTable(true, true, true); } }); return p; } } else { boolean oneFound = findIndex != -1; off = searchForward ? 0 : find.length - 1; findIndex = -1; if (oneFound) continue; } dataIndex += increment; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearSelection()\n\t{\n\t\tgetObject().clearSelection();\n\t\treturn;\n\t}", "void clearSelection();", "private void clearSelectionQuietly() {\n mRanger = null;\n\n if (!hasSelection()) {\n return;\n }\n\n Selection oldSelection = getSelection(new Selection());\n mSelection.clear();\n\n for (String id: oldSelection.getAll()) {\n notifyItemStateChanged(id, false);\n }\n }", "public void resetSearchSelection() {\n this.quantSearchSelection = null;\n SelectionChanged(\"reset_quant_searching\");\n }", "public void deselectAll() {\n\t\tselected.clear();\n\t}", "public void removeSelection() {\n this.selection = null;\n }", "private void prevSelect() {\n\t\tif (selectionIndex - 1 < 0) {\n\t\t\tselectionIndex = selections.size() - 1;\n\t\t} else {\n\t\tselectionIndex--;\n\t\t}\n\t\tselected.setVisible(true);\n\t\tselected = selections.get(selectionIndex);\n\t\t\n\t}", "public void clearSelection() {\n clearSelectionQuietly();\n notifySelectionChanged();\n }", "@Override\n public void deselectGolem() {\n }", "public void filterOutSelection() {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n if (sel == null || sel.size() == 0) { getRTParent().pop(); repaint(); return; }\n Set<Bundle> new_bundles = new HashSet<Bundle>();\n if (sel != null && sel.size() > 0) {\n new_bundles.addAll(myrc.bs.bundleSet());\n Iterator<String> it = sel.iterator();\n\twhile (it.hasNext()) new_bundles.removeAll(myrc.entity_counter_context.getBundles(it.next()));\n getRTParent().setSelectedEntities(new HashSet<String>());\n\tgetRTParent().push(myrc.bs.subset(new_bundles));\n repaint();\n }\n }", "public void clearSelection() {\n buttonGroup.clearSelection();\n }", "public void deselect();", "private void unSelect() {\n /** if we had some object selected we need to delete it's Transformation Points. */\n if(this.action.isSelect() && this.curr_obj != null) {\n this.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n this.curr_obj = null;\n\n /** if we were in the middle of a text operation, we have to remove the TextBox and set the text to it's last version*/\n } else if(this.action.isText()) {\n int size = Integer.parseInt(currentFontSize.getItemText(currentFontSize.getSelectedIndex()));\n\n curr_obj = new Text(editor.getText());\n ((Text)curr_obj).setFont(currFont);\n addTextObject(curr_obj, (int)aux_obj.getX() + (int)((1.0/4.0)*size), (int)aux_obj.getY()+ (size) + (int)((1.0/4.0)*size));\n\n aux_obj = null;\n curr_obj = null;\n apanel.remove(editor);\n editor = null;\n action.setAction(Action.TEXTBOX);\n }\n }", "public void clearSelection() {\n\t\ttable.clearSelection();\n\t}", "@Override\n\tpublic void unselect() {\n\t}", "@Override\n protected void processUnselect() {\n \n }", "public void clearSelection() {\n grid.getSelectionModel().deselectAll();\n }", "public void clearSelection() {\n getElement().clearSelection();\n }", "public void resetSelected()\n\t{\n\t\tfor (int i = 0; i < 13; i++)\n\t\t{\n\t\t\tthis.selected[i] = false;\n\t\t}\n\t}", "protected void removeSelection() {\n\t\tBEAN oldBean = getInternalValue();\n\t\tsetInternalValue(null);\n\t\ttextField.setValue(null);\n\t\tif (searchListener != null) {\n\t\t\tsearchListener.remove(oldBean);\n\t\t}\n\t}", "private void removeSelection(RectangleButton button)\n\t{\n\t\tselectedUnits.remove(cancelButtons.indexOf(button));\n\t\tcancelButtons.remove(button);\n\t\tsetSelectionLocations();\n\t}", "public void deselectAll()\n {\n }", "public void clearSelected() {\n ObservableList<Extra> selected = extraSelected.getItems();\n for(int i =0; i < selected.size(); i++){\n sandwhich.remove(selected.get(i));\n }\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n\n\n }", "public void clearTableSelectedSet(){\n\t\tselectionModel.clear();\n\t}", "public void invertSelection () {\r\n\t\tif ( modeSelectAll){\r\n\t\t\tselectedDataIds.clear();\r\n\t\t\tif (! unselectedDataIds.isEmpty()){\r\n\t\t\t\tselectedDataIds.addAll(unselectedDataIds);\r\n\t\t\t\tunselectedDataIds.clear();\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tunselectedDataIds.clear();\r\n\t\t\tif (!selectedDataIds.isEmpty()){\r\n\t\t\t\tunselectedDataIds.addAll(selectedDataIds);\r\n\t\t\t\tselectedDataIds.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodeSelectAll=!modeSelectAll;\r\n\t\tfireSelectionChangeNotification();\r\n\t\t\r\n\t}", "public void clearSelection()\r\n {\r\n final ListSelectionModel selectionModel = jTable.getSelectionModel();\r\n selectionModel.clearSelection();\r\n }", "public void emptySelectionLists() {\n\t\tArrayList selectionsCopy = new ArrayList();\n\t\tselectionsCopy.addAll(selections);\n\t\tIterator it = selectionsCopy.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tXsdNode node = (XsdNode) it.next();\n\t\t\tunselectNode(node);\n\t\t}\n\t\tlineNode = null;\n\t\telementFilters = new HashMap();\n\t}", "public void clearSelection()\n/* */ {\n/* 166 */ if (isSelectionEmpty()) return;\n/* 167 */ clearSelectionImpl();\n/* 168 */ fireValueChanged(DateSelectionEvent.EventType.SELECTION_CLEARED);\n/* */ }", "public void clearAccessibleSelection() {\n // To be fully implemented in a future release\n }", "@Override\n public void undo(){\n this.parent.getSelectedArea().clear();\n }", "public void clearChoiceSelect() {\n choiceSelect = -1;\n }", "public void resetSelectPresentation();", "@Override\n\tpublic void undoCommand() {\n\t\tselectionModel.removeAllFromSelectionList();\n\t\tmodel.removeElement(device);\n\t}", "public void unselect() {\n for (int i = 0; i < series.size(); i++) {\n series.setItemSliced(i, false, false, true);\n }\n }", "public void clearChoiceSelect() {\n choiceSelect = -1;\n }", "public abstract void clearAllSelections();", "void reset() {\n colorSelectedList = new HashSet<>();\n }", "public void clearComponentSelection(){\r\n ComponentSelectionTree.clearSelection();\r\n }", "@Override\n public void clear() {\n sortOrder = null;\n selection = Selection.with();\n }", "void endRangeSelection() {\n mRanger = null;\n }", "@VisibleForTesting\n void cancelProvisionalSelection() {\n mProvisionalSelection.clear();\n }", "void unsetSearchRecurrenceStart();", "public void retreat() {\n if( mMatches.hasPrevious() ) {\n setCurrent( mMatches.previous() );\n }\n }", "public static void deselNotes() {\r\n List<MeasureLine> selection = DataClipboard.getSelection();\r\n for(int i = DataClipboard.getSelectionLineBegin(); i < DataClipboard.getSelectionLineEnd() + 1; i++){\r\n if(selection.get(i) != null) {\r\n if (selection.get(i).size() > 0) {\r\n selection.get(i).clear();\r\n }\r\n if(selection.get(i).getVolume() < 0) {\r\n selection.set(i, null);\r\n }\r\n }\r\n }\r\n \r\n //find new line begin \r\n for(int i = DataClipboard.getSelectionLineBegin(); i < DataClipboard.getSelectionLineEnd() + 1; i++){\r\n if(selection.get(i) != null) {\r\n DataClipboard.setSelectionLineBegin(i);\r\n break;\r\n }\r\n }\r\n \r\n //find new line end \r\n for(int i = DataClipboard.getSelectionLineEnd(); i > DataClipboard.getSelectionLineBegin() - 1; i--){\r\n if(selection.get(i) != null) {\r\n DataClipboard.setSelectionLineEnd(i);\r\n break;\r\n }\r\n }\r\n }", "public void clearSelectedSquares() {\n\t\tselectedsquares.clear();\n\t\trepaint();\n\t}", "public void cancelSelection() {\n\t\tsd.hideSelectRect();\n\t\tspectroFragment.disableCaptureButtonContainer();\n\t\tselecting = false;\n\t}", "protected void deleteSelection() {\n Iterator i = getCurrentSelection().iterator();\n while (i.hasNext()) {\n ZNode each = (ZNode) i.next();\n ZNode top = each.editor().getTop();\n ZGroup topParent = top.getParent();\n topParent.removeChild(top);\n\n fireEvent(ZGroupEvent.createNodeRemovedEvent(topParent, each, false));\n }\n }", "public void removeSelections() {\n selectedItems.clear();\n notifyDataSetChanged();\n }", "public void deleteSelection() {\r\n /* Delete the node */\r\n try {\r\n deleteNode();\r\n } catch (NullPointerException e1) {\r\n }\r\n /* Delete the edge */\r\n try {\r\n deleteEdge();\r\n } catch (NullPointerException e2) {\r\n }\r\n /* Reload the scroll */\r\n scrollPane().doLayout();\r\n }", "protected void restoreTreeSelection() {\n _spTree.setIgnoreSelection(true);\n tree.setSelectionPaths(selections);\n\n // Restore the lead selection\n if (leadSelection != null) {\n tree.removeSelectionPath(leadSelection);\n tree.addSelectionPath(leadSelection);\n }\n\n _spTree.setIgnoreSelection(false);\n }", "@Override\n public void redo(){\n this.parent.getSelectedArea().clear();\n \n //And add the point to the list again\n this.parent.getSelectedArea().add(this.selected);\n }", "void clearActiveOperand();", "public void endDrawing() {\r\n SelectionResult res = SelectionResult.getInstance();\r\n\r\n res.selection = selection;\r\n res.referenceY = selectedY;\r\n\r\n res.previewWidth = getWidth();\r\n res.previewHeight = getHeight();\r\n\r\n selectedY = -1;\r\n }", "public void removeExtras() {\n Object selected = extraSelected.getSelectionModel().getSelectedItem();\n sandwhich.remove(selected);\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraSelected.getItems().remove(selected);\n extraOptions.getItems().add(selected);\n }", "public void deleteSelected() {\r\n \t\tObject cells[] = graph.getSelectionCells();\r\n \t\tGraphModel graphmodel = graph.getModel();\r\n \r\n \t\t// If a cell is a blocking region avoid removing its edges and\r\n \t\t// select its element at the end of the removal process\r\n \t\tSet edges = new HashSet();\r\n \t\tSet<Object> select = new HashSet<Object>();\r\n \r\n \t\t// Set with all regions that can be deleted as its child were removed\r\n \t\tSet<Object> regions = new HashSet<Object>();\r\n \t\t// Set with all JmtCells that we are removing\r\n \t\tSet<Object> jmtCells = new HashSet<Object>();\r\n \r\n \t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t// for(int k=0; k<cells.length; k++){\r\n \t\t// if(cells[k] instanceof JmtEdge){\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)cells[k])))).SubOut();\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)cells[k])))).SubIn();\r\n \t\t// }\r\n \t\t//\r\n \t\t// }\r\n \t\tfor (int i = 0; i < cells.length; i++) {\r\n \t\t\tif (!(cells[i] instanceof BlockingRegion)) {\r\n \t\t\t\t// Adds edge for removal\r\n \t\t\t\tedges.addAll(DefaultGraphModel.getEdges(graphmodel, new Object[] { cells[i] }));\r\n \t\t\t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t\t\t// quando vado a eliminare un nodo, a cui collegato un arco,\r\n \t\t\t\t// vado ad incrementare o diminuire il contatore per il\r\n \t\t\t\t// pulsanteAGGIUSTATUTTO\r\n \t\t\t\t// Iterator iter = edges.iterator();\r\n \t\t\t\t// while (iter.hasNext()) {\r\n \t\t\t\t// Object next = iter.next();\r\n \t\t\t\t// if (next instanceof JmtEdge){\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)next)))).SubOut();\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)next)))).SubIn();\r\n \t\t\t\t// }\r\n \t\t\t\t//\r\n \t\t\t\t// }\r\n \t\t\t\t// Stores parents information and cell\r\n \t\t\t\tif (cells[i] instanceof JmtCell) {\r\n \t\t\t\t\tif (((JmtCell) cells[i]).getParent() instanceof BlockingRegion) {\r\n \t\t\t\t\t\tregions.add(((JmtCell) cells[i]).getParent());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tjmtCells.add(cells[i]);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\t// Adds node for selection\r\n \t\t\t\tObject[] nodes = graph.getDescendants(new Object[] { cells[i] });\r\n \t\t\t\tfor (Object node : nodes) {\r\n \t\t\t\t\tif (node instanceof JmtCell || node instanceof JmtEdge) {\r\n \t\t\t\t\t\tselect.add(node);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\t// Removes blocking region from data structure\r\n \t\t\t\tmodel.deleteBlockingRegion(((BlockingRegion) cells[i]).getKey());\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\tif (!edges.isEmpty()) {\r\n \t\t\tgraphmodel.remove(edges.toArray());\r\n \t\t}\r\n \t\t// removes cells from graph\r\n \t\tgraphmodel.remove(cells);\r\n \r\n \t\t// Checks if all children of a blocking region have been removed\r\n \t\tIterator<Object> it = regions.iterator();\r\n \t\twhile (it.hasNext()) {\r\n \t\t\tjmtCells.add(null);\r\n \t\t\tBlockingRegion region = (BlockingRegion) it.next();\r\n \t\t\tList child = region.getChildren();\r\n \t\t\tboolean empty = true;\r\n \t\t\tfor (int i = 0; i < child.size(); i++) {\r\n \t\t\t\tif (child.get(i) instanceof JmtCell && !jmtCells.contains(child.get(i))) {\r\n \t\t\t\t\tempty = false;\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tif (empty) {\r\n \t\t\t\tmodel.deleteBlockingRegion(region.getKey());\r\n \t\t\t\tgraphmodel.remove(new Object[] { region });\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// Removes cells from data structure\r\n \t\tfor (Object cell : cells) {\r\n \t\t\tif (cell instanceof JmtCell) {\r\n \t\t\t\tmodel.deleteStation(((CellComponent) ((JmtCell) cell).getUserObject()).getKey());\r\n \t\t\t} else if (cell instanceof JmtEdge) {\r\n \t\t\t\tJmtEdge link = (JmtEdge) cell;\r\n \t\t\t\tmodel.setConnected(link.getSourceKey(), link.getTargetKey(), false);\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// If no stations remains gray select and link buttons\r\n \t\tif (graph.getModel().getRootCount() == 0) {\r\n \t\t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\t\tsetConnect.setEnabled(false);\r\n \t\t\tsetSelect.setEnabled(false);\r\n \t\t}\r\n \r\n \t\t// Selects components from removed blocking regions\r\n \t\tif (select.size() > 0) {\r\n \t\t\tgraph.setSelectionCells(select.toArray());\r\n \t\t\t// Resets parent information of cells that changed parent\r\n \t\t\tit = select.iterator();\r\n \t\t\twhile (it.hasNext()) {\r\n \t\t\t\tObject next = it.next();\r\n \t\t\t\tif (next instanceof JmtCell) {\r\n \t\t\t\t\t((JmtCell) next).resetParent();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "private void deleteSelectedTransition()\n {\n Transition oppositeTransition = optionsPanel.getWorkspacePanel().findTransitionBetween(transition.getToState(), transition.getFromState());\n if (oppositeTransition != null)\n {\n oppositeTransition.setTangent(false);\n }\n optionsPanel.getWorkspacePanel().repaint();\n optionsPanel.getWorkspacePanel().getNFA().removeTransition(transition);\n optionsPanel.getWorkspacePanel().setTool(LMWorkspacePanel.SELECT_TOOL);\n optionsPanel.changeOptions(\"blank\");\n }", "public void undo() {\n setExecuted(false);\n }", "public void clearResults()\n\t{\n\t\tremoveAll();\n\t\tm_PrinterList.setPrinterList(ToolBox.generatePrinterList().getPrinterList());\n\t\tm_PrinterList.clearMatches(m_PrinterList.getPrinterList());\n\t\tdesignComponents();\n\t\taddComponents();\n\t}", "@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t\tCollections.swap(model.getListOfShapes(), model.getListOfShapes().size()-1, i); \r\n\t\t\r\n\t\t/*if(print == true) {\r\n\t\t\t\r\n\t\t\tFrame.textArea.append(\"UNDO >>> Bring to back: \" + s +\"\\n\");\r\n\t\t}\r\n\t\t\r\n\t\tprint = true;*/\r\n\t\r\n\t\t\r\n\t}", "public void endSelection()\n {\n\tisMultiSelection = false;\n\tsetMaxCheckCount(1);\n\tuncheckAll();\n }", "public void invertSelection() {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n Set<String> new_sel = new HashSet<String>();\n if (myrc != null && sel != null) {\n Iterator<String> it = myrc.visible_entities.iterator();\n\twhile (it.hasNext()) {\n\t String str = it.next();\n\t if (sel.contains(str)) { } else new_sel.add(str);\n\t}\n }\n getRTParent().setSelectedEntities(new_sel);\n repaint();\n }", "protected void reset() {\n\t\tpush();\n\n\t\t// Clearen, en niet opnieuw aanmaken, om referenties elders\n\t\t// in het programma niet corrupt te maken !\n\t\tcurves.clear();\n\t\tselectedCurves.clear();\n\t\thooveredCurves.clear();\n\t\tselectedPoints.clear();\n\t\thooveredPoints.clear();\n\t\tselectionTool.clear();\n\t}", "public static void reset() {\n\t\tselectedAtts.clear();\n\t}", "public Builder clearResult() {\n\n result_ = false;\n onChanged();\n return this;\n }", "void cancelSelectMode();", "private void clearHighlightAfterMove() {\n //clear start\n getTileAt(start).clear();\n for (Move m : possibleMoves) {\n getTileAt(m.getDestination()).clear();\n }\n }", "public void removeSelected()\n {\n for (int i = shapes.size() - 1; i >= 0; i--)\n {\n SceneShape s = shapes.get(i);\n if (s.isSelected()) shapes.remove(i);\n }\n repaint();\n }", "public void removeCurrent( )\n {\n // Implemented by student.\n }", "public Builder clearResult() {\n \n result_ = false;\n onChanged();\n return this;\n }", "void clearCurrent();", "public void resetSelected(){\n\t\tfor(int x =0; x<9; x++){\n\t\t\tClientWindow.retButtons()[x].setBackground(Color.LIGHT_GRAY);\n\t\t}\n\t}", "void unsetLastrunresult();", "void unsetNumberOfResults();", "public Builder clearResult() {\n \n result_ = 0;\n onChanged();\n return this;\n }", "public void removeSelectedItem() {\r\n\t\tint i = getSelectedIndex();\r\n\t\tif(i != -1)\r\n\t\t\tlistModel.removeElementAt(i);\r\n\t}", "public void removeSelectedAction() {\n\t\tvar selectedItems = pairsListView.getSelectionModel().getSelectedItems();\n\t\tpairsListView.getItems().removeAll(selectedItems);\n\t}", "public void clearSelectionSquare() {\r\n\r\n\t\tsetSize(0, 0);\r\n\r\n\t}", "public Builder clearResult() {\n \n result_ = false;\n onChanged();\n return this;\n }", "public Builder clearResult() {\n \n result_ = false;\n onChanged();\n return this;\n }", "public static void deselVols() {\r\n List<MeasureLine> selection = DataClipboard.getSelection();\r\n for(int i = DataClipboard.getSelectionLineBegin(); i < DataClipboard.getSelectionLineEnd() + 1; i++){\r\n if(selection.get(i) != null) {\r\n if (selection.get(i).getVolume() >= 0) {\r\n selection.get(i).setVolume(-1);\r\n }\r\n if(selection.get(i).isEmpty()) {\r\n selection.set(i, null);\r\n }\r\n }\r\n }\r\n \r\n //find new line begin \r\n for(int i = DataClipboard.getSelectionLineBegin(); i < DataClipboard.getSelectionLineEnd() + 1; i++){\r\n if(selection.get(i) != null) {\r\n DataClipboard.setSelectionLineBegin(i);\r\n break;\r\n }\r\n }\r\n \r\n //find new line end \r\n for(int i = DataClipboard.getSelectionLineEnd(); i > DataClipboard.getSelectionLineBegin() - 1; i--){\r\n if(selection.get(i) != null) {\r\n DataClipboard.setSelectionLineEnd(i);\r\n break;\r\n }\r\n }\r\n }", "private void removePressed() {\n\t\ts = allMedia.getSelectedValuesList();\n\t\t// now remove all the value that are in the list from the default list model\n\t\tfor(Object o : s){\n\t\t\tif(l.contains(o)){\n\t\t\t\tl.removeElement(o);\n\t\t\t}\n\t\t}\n\t}", "public native void deselectAll() /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.deselectAll();\r\n }-*/;", "public void deselectAll()\n {\n map.deselectAll();\n mapComponent.repaint();\n mapper.resetMenus();\n }", "public\n void\n clearTableSelection()\n {\n getRegisterPanel().clearTableSelection();\n }", "public void clearResultEntries() {\n sp_searchEntries.removeAll();\n }", "@Override\n public void removeHighlight()\n {\n }", "private void clearFind() {\n\t\tthis.currentFindResultPage = null;\n\t\tthis.currentFindResultNumber = null;\n \tthis.pagesView.setFindMode(false);\n\t\tthis.findButtonsLayout.setVisibility(View.GONE);\n }", "private static void removeCurrentColors(){\n\t\tIterator<ArrayList<Peg>> itr = possibleCombinations.iterator();\n\t\twhile(itr.hasNext()){\n\t\t\tArrayList <Peg> victim=itr.next();\n\t\t\tfor(int i=0; i<aiGuess.size(); i++){\n\t\t\t\t\n\t\t\t\tif(victim.contains(aiGuess.get(i))){\n\t\t\t\t\titr.remove();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void reset() {\n\n\t\trbNone.setSelected(true);\n\t\tquizIDField.clear();\n\t\tfilter();\n\t\t\n\t}", "public void removeMySelectionListener(EventListener l);", "public void removeAllInterpretedBy() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}", "private void clearPreviousTest() {\r\n for (ActionListener al : this.jComboBoxListeners) {\r\n this.jComboBox.removeActionListener(al);\r\n }\r\n\r\n this.jComboBox.removeAllItems();\r\n this.jTabbedPane.removeAll();\r\n this.currentTest.clear();\r\n }", "private void cmd_deleteSelection(){\n\t\tm_frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\t\tif (ADialog.ask(getWindowNo(), m_frame.getContainer(), \"DeleteSelection\"))\n\t\t{\t\n\t\t\tint records = deleteSelection(detail);\n\t\t\tsetStatusLine(Msg.getMsg(Env.getCtx(), \"Deleted\") + records, false);\n\t\t}\t\n\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\tbDelete.setSelected(false);\n\t\texecuteQuery();\n\t\t\n\t}", "protected final void undo() {\n requireAllNonNull(model, previousResidentBook, previousEventBook);\n model.resetData(previousResidentBook, previousEventBook);\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }", "public Builder clearMoreResults() {\n \n moreResults_ = false;\n onChanged();\n return this;\n }", "public void removeAllHighlights() {}", "public void reset() {\n bb.clear();\n cb.clear();\n found = false;\n }", "private void selectLastUsed() {\n // Set the initial selection of the table:\n if (initSelection != null) {\n boolean found = false;\n for (int i = 0; i < table.getRowCount(); i++) {\n if (tableModel.getElementAt(i).getFile().getPath().\n equals(initSelection)) {\n table.setRowSelectionInterval(i, i);\n found = true;\n break;\n }\n }\n if (!found && (table.getRowCount() > 0)) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n else {\n if (table.getRowCount() > 0) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n }", "public abstract void clearSelection(TextAppearance appearance);", "public void reset()\n\t{\n\t\tthis.resetSelected();\n\t\tthis.clearMsgArea();\n\t}", "public void removeLast() {\r\n\t\tmyCombination.removeLast();\r\n\t}" ]
[ "0.71041465", "0.70485", "0.69480205", "0.6946326", "0.6884306", "0.6882642", "0.6828374", "0.6803531", "0.67649853", "0.67463297", "0.6717887", "0.66297287", "0.66112083", "0.65853906", "0.65510833", "0.65346134", "0.6527495", "0.6509326", "0.6502498", "0.648731", "0.6435426", "0.6402544", "0.6386901", "0.63700914", "0.63550067", "0.63360715", "0.628519", "0.6279522", "0.6273418", "0.62525105", "0.6248379", "0.62430626", "0.62417203", "0.62151957", "0.6198292", "0.6190619", "0.61756337", "0.61676794", "0.61541533", "0.61527413", "0.6133667", "0.61289686", "0.61141133", "0.61066973", "0.61024326", "0.6087025", "0.6082367", "0.60701126", "0.6036788", "0.6036416", "0.6009747", "0.59981996", "0.59842724", "0.59789896", "0.5978856", "0.59606254", "0.5958661", "0.59461457", "0.59425205", "0.5935122", "0.59242374", "0.5920583", "0.5915248", "0.59093416", "0.5904301", "0.5870187", "0.5867973", "0.5865661", "0.58650905", "0.586445", "0.5827195", "0.5816748", "0.5813963", "0.5804559", "0.5799702", "0.57959676", "0.5794681", "0.5794458", "0.5794458", "0.57928675", "0.579281", "0.57588756", "0.5755559", "0.5747486", "0.5742951", "0.5734962", "0.57295626", "0.5702007", "0.5694829", "0.56946546", "0.5688504", "0.5676395", "0.56748104", "0.5669297", "0.56689036", "0.56646657", "0.5658651", "0.56576437", "0.5642744", "0.56422436", "0.56415606" ]
0.0
-1
Copy values because the event is not owned by the application
@Override public void onSensorChanged(SensorEvent event) { float[] valuesCopy = event.values.clone(); if (uptime == 0) { uptime = event.timestamp; } double x = (double) ((event.timestamp - uptime))/1000000000.0; this.addValues(x, valuesCopy); TextView xAxisValue = (TextView) findViewById(R.id.xAxisValue); xAxisValue.setText(Float.toString(valuesCopy[0]) + " " + STI.getUnitString(sensorType)); if (STI.getNumberValues(sensorType) > 1) { //set y value to textfield TextView yAxisValue = (TextView) findViewById(R.id.yAxisValue); yAxisValue.setText(Float.toString(valuesCopy[1]) + " " + STI.getUnitString(sensorType)); //set z value to textfield TextView zAxisValue = (TextView) findViewById(R.id.zAxisValue); zAxisValue.setText(Float.toString(valuesCopy[2]) + " " + STI.getUnitString(sensorType)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NoProxy\n public void copyTo(final BwEvent ev) {\n super.copyTo(ev);\n ev.setEntityType(getEntityType());\n ev.setName(getName());\n ev.setClassification(getClassification());\n ev.setDtstart(getDtstart());\n ev.setDtend(getDtend());\n ev.setEndType(getEndType());\n ev.setDuration(getDuration());\n ev.setNoStart(getNoStart());\n\n ev.setLink(getLink());\n ev.setGeo(getGeo());\n ev.setDeleted(getDeleted());\n ev.setStatus(getStatus());\n ev.setCost(getCost());\n\n BwOrganizer org = getOrganizer();\n if (org != null) {\n org = (BwOrganizer)org.clone();\n }\n ev.setOrganizer(org);\n\n ev.setDtstamp(getDtstamp());\n ev.setLastmod(getLastmod());\n ev.setCreated(getCreated());\n ev.setStag(getStag());\n ev.setPriority(getPriority());\n ev.setSequence(getSequence());\n\n ev.setLocation(getLocation());\n\n ev.setUid(getUid());\n ev.setTransparency(getTransparency());\n ev.setPercentComplete(getPercentComplete());\n ev.setCompleted(getCompleted());\n\n ev.setCategories(copyCategories());\n\n ev.setContacts(copyContacts());\n\n ev.setAttendees(cloneAttendees());\n ev.setCtoken(getCtoken());\n\n ev.setRecurrenceId(getRecurrenceId());\n ev.setRecurring(getRecurring());\n if (ev.isRecurringEntity()) {\n ev.setRrules(clone(getRrules()));\n ev.setExrules(clone(getExrules()));\n ev.setRdates(clone(getRdates()));\n ev.setExdates(clone(getExdates()));\n }\n\n ev.setScheduleMethod(getScheduleMethod());\n ev.setOriginator(getOriginator());\n\n /* Don't copy these - we always set them anyway\n if (getNumRecipients() > 0) {\n ev.setRecipients(new TreeSet<String>());\n\n for (String s: getRecipients()) {\n ev.addRecipient(s);\n }\n }*/\n\n if (getNumComments() > 0) {\n ev.setComments(null);\n\n for (final BwString str: getComments()) {\n ev.addComment((BwString)str.clone());\n }\n }\n\n if (getNumSummaries() > 0) {\n ev.setSummaries(null);\n\n for (final BwString str: getSummaries()) {\n ev.addSummary((BwString)str.clone());\n }\n }\n\n if (getNumDescriptions() > 0) {\n ev.setDescriptions(null);\n\n for (final BwLongString str: getDescriptions()) {\n ev.addDescription((BwLongString)str.clone());\n }\n }\n\n if (getNumResources() > 0) {\n ev.setResources(null);\n\n for (final BwString str: getResources()) {\n ev.addResource((BwString)str.clone());\n }\n }\n\n if (getNumXproperties() > 0) {\n ev.setXproperties(null);\n\n for (final BwXproperty x: getXproperties()) {\n ev.addXproperty((BwXproperty)x.clone());\n }\n }\n\n ev.setScheduleState(getScheduleState());\n\n //ev.setRequestStatuses(clone(getRequestStatuses()));\n\n final BwRelatedTo rt = getRelatedTo();\n if (rt != null) {\n ev.setRelatedTo((BwRelatedTo)rt.clone());\n }\n\n /* These are in x-props in 3.10\n ev.setPollMode(getPollMode());\n ev.setPollProperties(getPollProperties());\n ev.setPollAcceptResponse(getPollAcceptResponse());\n\n ev.setPollItemId(getPollItemId());\n if (!Util.isEmpty(getPollItems())) {\n for (final String s: getPollItems()) {\n ev.addPollItem(s);\n }\n }\n */\n\n ev.setPollCandidate(getPollCandidate());\n }", "void clobbered(TwoWayEvent.Clobbered<DM, UMD, DMD> evt);", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "public void processEvent(Event event) {\n\t\t\n\t}", "public Event clone (){\r\n\t\t\treturn new FZipEvent(type, file, bubbles, cancelable);\r\n\t\t}", "private void doExternalCopyOperation(DropTargetEvent event) {\n // Ascertain target parent container\n IOrganiserContainer targetParent = getTargetParent(event.item);\n \n List<CopyOrganiserEntryOperation> copyOperationsList = new ArrayList<CopyOrganiserEntryOperation>();\n \n // Iterate thru dropped source objects\n IStructuredSelection selection = (IStructuredSelection)LocalSelectionTransfer.getTransfer().getSelection();\n for(Object object : selection.toList()) {\n // Get correct Organiser entry\n IOrganiserObject newEntry = OrganiserObjectFactory.getInstance().createOrganiserObject(object);\n if(newEntry == null) {\n continue;\n }\n\n // Add to list of Copy operations\n copyOperationsList.add(new CopyOrganiserEntryOperation(targetParent, newEntry, false));\n }\n \n // Execute as undoable operation\n if(copyOperationsList.size() > 0) {\n try {\n getOperationHistory().execute(\n new CopyOrganiserEntriesOperation(fUndoContext, copyOperationsList),\n null,\n null);\n }\n catch(ExecutionException e) {\n e.printStackTrace();\n }\n \n // Refresh, open, and select target folder\n refreshTargetNode(targetParent);\n }\n }", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }", "@Override\n\tpublic Univent copy() {\n\t\treturn new AddExpToHeroesEvent(amount);\n\t}", "default FlowEventDumpData deepCopy(FlowEventDumpData source) {\n FlowEventDumpData result = new FlowEventDumpDataImpl();\n copy(source, result);\n return result;\n }", "public InnerApplicationEvent(InnerApplicationContainer source){\r\n\t\tsuper((Object)source);\r\n\t}", "@Override\n public Object getEvent() {\n return eventObj;\n }", "public EventStack<T> deepCopy() {\n final Stack<EventStackEntry<T>> copiedStack = new Stack<>();\n for (final EventStackEntry<T> iterEntry : eventStack) {\n copiedStack.push(iterEntry.deepCopy());\n }\n final EventStack<T> copiedOutput = new EventStack<>(firstEventTime);\n copiedOutput.setStack(copiedStack);\n return copiedOutput;\n }", "public void handleUpdateCopyButtonAction(ActionEvent event) {\n //delete all panes on actionHolderPane and add the updateCopyPane\n setAllChildrenInvisible();\n updateCopyPane.setVisible(true);\n this.handleOnShowAnimation(actionHolderPane);\n }", "@EncoderThread\n protected void onEvent(@NonNull String event, @Nullable Object data) {}", "void postEvent(final StorageManagerEvent event)\n {\n // Notify all listeners. Use a local copy of the ccList so it does not\n // change while we are using it.\n CallerContext ccList = this.ccList;\n if (ccList != null)\n {\n // Execute the runnable in each caller context in ccList\n ccList.runInContext(new Runnable()\n {\n public void run()\n {\n // Notify listeners. Use a local copy of data so that it\n // does not change while we are using it.\n CallerContextManager ccm = (CallerContextManager) ManagerManager.getInstance(CallerContextManager.class);\n CallerContext cc = ccm.getCurrentContext();\n CCData data = getCCData(cc);\n if ((data != null) && (data.listeners != null)) data.listeners.notifyChange(event);\n }\n });\n }\n }", "public DirectoryChangeEvent copy() {\n\t\treturn DirectoryChangeEvent.fromJSON(toJSON().toString());\n\t}", "public abstract void processEvent(Object event);", "private void handleDragDetectedEvent(Event event) {\n String id = DragAndDropDataManager.getInstance().putData(source.getTransferData());\n \n Dragboard db = source.getDragSource().startDragAndDrop(TransferMode.COPY); \n ClipboardContent content = new ClipboardContent();\n content.putString(id);\n db.setContent(content);\n \n source.handleDragDetectedEvent((MouseEvent) event);\n \n event.consume();\n }", "protected ServiceEvent(ServiceEvent event) {\n eventSenderClass=event.eventSenderClass;\n eventSenderID=event.eventSenderID;\n }", "@Override\n\tpublic void transferEvent(AbstractEvent event) throws IOException, InterruptedException {\n\t}", "public EzproxyAuthenticationEvent copy(){\n return new EzproxyAuthenticationEvent(this);\n }", "private void copyComponentEvents(String aEvType, List aList, ProcessTrace aPTr)\n throws IOException {\n String typeS;\n\n for (int i = 0; i < aList.size(); i++) {\n ProcessTraceEvent prEvent = (ProcessTraceEvent) aList.get(i);\n typeS = prEvent.getType();\n if (aEvType != null && aEvType.equals(typeS)) {\n aPTr.addEvent(prEvent);\n }\n }\n }", "public void duplicateClubEvent() {\n \n boolean modOK = modIfChanged();\n \n if (modOK) {\n ClubEvent clubEvent = position.getClubEvent();\n ClubEvent newClubEvent = clubEvent.duplicate();\n newClubEvent.setWhat(clubEvent.getWhat() + \" copy\");\n newClubEvent.setId(\"\");\n position = new ClubEventPositioned();\n position.setIndex (clubEventList.size());\n position.setClubEvent(newClubEvent);\n position.setNewClubEvent(true);\n localPath = \"\";\n display();\n }\n }", "byte[] writeEvent(ProcessInstance processInstance, Object value) throws IOException;", "public void dragSetData(DragSourceEvent event) {\n event.data = LocalSelectionTransfer.getTransfer().getSelection();\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "protected abstract void updateFromBackingEvent(Object backingEvent);", "private void storeEventAttributes(EventGVO event, UIObject sender, String listenerType, String appId,\n String windowId, String eventSessionId) {\n String srcId = getComponentId(sender);\n String srcName = getComponentName(sender);\n Object srcValue = getComponentValue(sender, appId, windowId, srcId);\n String srcListener = listenerType;\n\n storeData(eventSessionId, event.getSourceId(), srcId);\n storeData(eventSessionId, event.getSourceName(), srcName);\n storeData(eventSessionId, event.getSourceValue(), srcValue);\n storeData(eventSessionId, event.getSourceListenerType(), srcListener);\n }", "static void setNotCopying(){isCopying=false;}", "@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}", "public void newValueBinding(BGMEvent e);", "static void setCopying(){isCopying=true;}", "@Override\n protected void initEventAndData() {\n }", "public void handleGetCopyDetailsButtonAction(ActionEvent event) {\n String copyID = updateCopyID.getText();\n try{\n //get the details from mgr\n HashMap copyInfo = updateMgr.getCopyDetails(copyID);\n //display on the fields\n updateCopyLocation.setText((String)(copyInfo.get(Table.COPY_LOCATION)));\n //enable the info pane\n updateCopyInfoPane.setDisable(false);\n this.tempCopyID = copyID;\n } \n catch( SQLException | ClassNotFoundException e){\n this.displayWarning(\"Error\", e.getMessage());\n } catch (Exception ex) {\n this.displayWarning(\"Error\", ex.getMessage());\n } \n }", "public ApplicationEvent(Object source) {\n super(source);\n this.timestamp = System.currentTimeMillis();\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "void onNewEvent(Event event);", "@Override\r\n\tpublic void processEvent() {\n\t\tint VolumeButtonEvent = (Integer) pdu.getRawPayload()[0];\r\n\t\t//System.out.println(\"number of objects \" + numObjects);\r\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "void onApplicationEvent(ApplicationEvent e);", "@Override\n\tpublic void valueChange(ValueChangeEvent event) {\n\t\t\n\t}", "@Override\n public void customEventOccurred(CustomEvent event)\n {\n Source source = (Source)event.getSource();\n Cloner cloner = new Cloner();\n final Source clonedSource = cloner.deepClone(source);\n \n // Create wrapper for source clone:\n final TagsSource sourceLogic = new TagsSource(clonedSource);\n \n // Create and render progress information dialog:\n sourceLogic.off(SourceEvent.THREAD_PROGRESS);\n final ProgressInformationDialog progressInformationDialog =\n new ProgressInformationDialog(sourceLogic, SourceEvent.THREAD_PROGRESS);\n progressInformationDialog.render(\"Progress information\", Main.mainForm);\n \n sourceLogic.off(SourceEvent.THREAD_ERROR);\n sourceLogic.on(SourceEvent.THREAD_ERROR, new ThreadErrorEventHandler());\n \n // Subscribe on model's source initialization event:\n sourceLogic.off(SourceEvent.SOURCE_INITIALIZED);\n sourceLogic.on(SourceEvent.SOURCE_INITIALIZED, new CustomEventListener()\n {\n @Override\n public void customEventOccurred(CustomEvent evt)\n {\n progressInformationDialog.close();\n \n if (clonedSource.getTypeId() == SourcesTypes.INTOOLS_EXPORT_DOCUMENT.ID)\n DialogsFactory.produceIntoolsExportDataSourceDialog(sourceLogic, true, \"Edit selected Intools export data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.ALARM_AND_TRIP_SCHEDULE.ID)\n DialogsFactory.produceDocumentDataSourceDialog(sourceLogic, true, \"Edit selected document data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.DCS_VARIABLE_TABLE.ID)\n DialogsFactory.produceDcsVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected DCS Variable Table data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.ESD_VARIABLE_TABLE.ID)\n DialogsFactory.produceEsdVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected ESD Variable Table data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.FGS_VARIABLE_TABLE.ID)\n DialogsFactory.produceFgsVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected FGS Variable Table data source\");\n }// customEventOccurred\n });// on\n \n // Execute initialization thread:\n sourceLogic.initialize();\n }", "private void copyCallMetadata(final LifeCycleEvent event,\n final CallMetadata data) throws URISyntaxException {\n final String source = event.getSource();\n data.setCallingDevice(source);\n final String target = event.getTarget();\n data.setCalledDevice(target);\n }", "public void process(WatchedEvent event) {\n\t\t\n\t}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void lostOwnership(Clipboard clipboard, Transferable contents) {\n\t\t\t\t\t\t\t\t}", "Builder copyValues(PropertyBox source);", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "@Override\n public void customEventOccurred(CustomEvent event)\n {\n DialogsFactory.produceCreateDcsVariableTableFromYokogawaBackupDialog(new YokogawaDcsBackup(new Source()));\n }", "public void handleNewCopyButtonAction(ActionEvent event) {\n //delete all panes on actionHolderPane and add the newCopyPane\n setAllChildrenInvisible();\n newCopyPane.setVisible(true);\n this.handleOnShowAnimation(actionHolderPane);\n }", "void event(Event e) throws Exception;", "@Override\n\tpublic Manager copy() {\n\t\treturn new Fire();\n\t}", "@Override\n protected void processMouseEvent(MouseEvent e) {\n super.processMouseEvent(e);\n }", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "@Override\n\tpublic boolean onTouchEvent(MotionEvent event){\n\t\tLog.d(TAG,\"Event \" + event.toString());\n\t\tfloat x = event.getRawX();\n\t\tfloat y = event.getRawY();\n\t\tRectF rect = mView1Enable ? mVirtualRect[0] : mVirtualRect[1];\n\n\t\tif (rect.contains(x,y)) {\n\t\t\tMotionEvent cloneEvent = MotionEvent.obtain(event);\n\t\t\tcloneEvent.offsetLocation(-rect.left, -rect.top);\n\t\t\tLog.d(TAG,\"Event , convent : \" + cloneEvent.toString());\n\t\t\ttry {\n\t\t\t\tmInjectEvent.prepareEvent(cloneEvent, 3);\n\t\t\t\tnew Thread(mInjectEvent).start();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn super.onTouchEvent(event);\n\t}", "@Override\n public MouseEvent copyFor(Object newSource, EventTarget newTarget) {\n MouseEvent e = (MouseEvent) super.copyFor(newSource, newTarget);\n e.recomputeCoordinatesToSource(this, newSource);\n return e;\n }", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "void recomputeCoordinatesToSource(MouseEvent oldEvent, Object newSource) {\n/*\n Point3D newCoordinates = InputEventUtils.recomputeCoordinates(pickResult, newSource);\n x = newCoordinates.getX();\n y = newCoordinates.getY();\n z = newCoordinates.getZ();\n*/\n Point2D newCoordinates = InputEventUtils.recomputeCoordinates(pickResult, newSource);\n x = newCoordinates.x;\n y = newCoordinates.y;\n\n }", "public void copy() {\n\n\t}", "private void sendToMyself(ProxyEvent event) throws AppiaEventException {\n \t\ttry {\n \t\t\tProxyEvent clone = (ProxyEvent) event.cloneEvent();\n \t\t\tclone.storeMessage();\n \t\t\tclone.setDir(Direction.DOWN);\n \t\t\tclone.setChannel(vsChannel);\n \t\t\tclone.setSourceSession(this);\n \t\t\tclone.init();\n \n \t\t\tEchoEvent echo = new EchoEvent(clone, this.vsChannel, Direction.UP, this);\n \t\t\techo.init();\n \t\t\techo.go();\n \t\t} catch (CloneNotSupportedException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "@Override\n\tprotected void customPartHook(IWorkbenchPart part, PART_EVENT event) {\n\t\t// Add ourselves from the source, as here it is too hard to determine\n\t\t// the\n\t\t// exact state of source and destination part.\n\t}", "@Override\n\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\tInputEvent inputEvent = (InputEvent) event;\n\t\t\tString input = inputEvent.getValue();\n\t\t\tloadData(input);\n\t\t}", "private static void initCopyContext (SessionState state)\n\t{\n\t\tstate.setAttribute (STATE_COPIED_IDS, new Vector ());\n\n\t\tstate.setAttribute (STATE_COPY_FLAG, Boolean.FALSE.toString());\n\n\t}", "@Override\n public void handle(Event event) {\n }", "public QPEvent(Event event) {\n this.eventName = event.getEventName();\n this.eventTime = event.getEventTime();\n this.eventType = event.getEventType();\n this.parameters = event.getParameters();\n this.unitId = event.getUnitId();\n if (event.getParameters() != null) {\n for (String key : event.getParameters().keySet()) {\n this.setParameter(key, event.getParameters().get(key));\n }\n }\n }", "public void onTextCopy()\n\t{\n\t}", "private void pushAllEvents() {\n boolean location = !config.ignoreLocation();\n double lat = location? LocationUtil.getInstance().getLatitude() : 0;\n double lon = location? LocationUtil.getInstance().getLongitude() : 0;\n PluriLockPackageBuilder eventPackage = new PluriLockPackageBuilder()\n .ip(PluriLockNetworkUtil.getIPAddress(context))\n .countryCode(PhoneDataManager.getCountry())\n .model(PhoneDataManager.getHardwareModel())\n .manufacturer(PhoneDataManager.getManufacturer())\n .userID(this.userID)\n .domain(this.config.getDomain())\n .language(PhoneDataManager.getDisplayLanguage())\n .timeZone(PhoneDataManager.getTimeZone())\n .appVersion(this.config.getAppVersion())\n .latitude(lat)\n .longitude(lon)\n .screenWidth(PhoneDataManager.getScreenWidth(context))\n .screenHeight(PhoneDataManager.getScreenHeight(context))\n .cpuCores(PhoneDataManager.getNumberOfCPUCores())\n .appName(PhoneDataManager.getAppName(context))\n .dateTime(PhoneDataManager.getDateTime())\n .sdkVersion(PhoneDataManager.getSDKVersion())\n .setEvents(pluriLockEvents.toArray(new PluriLockEvent[pluriLockEvents.size()]));\n networkUtil.sendEvent(eventPackage.buildPackage());\n pluriLockEvents.clear();\n }", "@Override\n\tpublic void onEvent(CacheEvent<? extends Object, ? extends Object> cacheEvent) {\n\t\tSystem.out.println(\"cacheEvent.getKey()= \" + cacheEvent.getKey()+\"cacheEvent.getOldValue()=\" +cacheEvent.getOldValue() + \"cacheEvent.getNewValue()=\" + cacheEvent.getNewValue());\n\t}", "private void updateDragVars (MouseEvent me) { updateDragVars(me,false); }", "private StoreEvent(E source) {\n super(source);\n }", "public void receiveUpEvent(Event evt) {\n switch(evt.getType()) {\n case Event.GET_DIGEST_OK:\n digest_promise.setResult(evt.getArg());\n return; // don't pass further up\n }\n super.receiveUpEvent(evt);\n }", "protected void copy(DsSipHeader header) {\n super.copy(header);\n DsSipEventHeaderBase source = (DsSipEventHeaderBase) header;\n m_strPackage = source.m_strPackage;\n m_subPackages = source.m_subPackages;\n }", "@Override\n\tprotected void onEventComming(EventCenter eventCenter) {\n\t}", "private UIEvent generateModifyEvent(){\n List<DataAttribut> dataAttributeList = new ArrayList<>();\n for(int i = 0; i< attributModel.size(); i++){\n String attribut = attributModel.elementAt(i);\n dataAttributeList.add(new DataAttribut(attribut));\n }\n //Erstellen des geänderten Produktdatums und des Events\n DataProduktDatum proposal = new DataProduktDatum(name.getText(), new DataId(id.getText()), dataAttributeList, verweise.getText());\n UIModifyProduktDatumEvent modifyEvent = new UIModifyProduktDatumEvent(dataId, proposal);\n return modifyEvent;\n }", "private ContentValues prepareContentValues(FbEvent event) {\n\t\tContentValues contents = new ContentValues();\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_EID, event.getId());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_NAME, event.getName());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_PICTURE, event.getPicture());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_RSVP, event.getRsvp_status());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_START_TIME, event.getStart_time());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_END_TIME, event.getEnd_time());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_LOCATION, event.getLocation());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_LONGITUDE, event.getVenueLongitude());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_LATITUDE, event.getVenueLatitude());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_FRIENDS_ATTENDING, Attendee.getAttendeesStrFromList(event.getFriendsAttending()));\n\t\treturn contents;\n\t}", "public EVT_HANDLE(Pointer p) {\n/* 1701 */ super(p);\n/* */ }", "protected ICEvent() {}", "public void selectOneMenuListener(ValueChangeEvent event) {\n\t Object newValue = event.getNewValue(); \n\t //The rest of your processing logic goes here...\n\t}", "void eventChanged();", "public void onEventMainThread(BaseEvent unused) {\n }", "public void consulterEvent() {\n\t\t\n\t}", "@Override\n public void processBroadcastElement(SocketEvent event, Context ctx, Collector<KeyedDataPoint> out) throws Exception {\n BroadcastState<String, SocketEvent> bcState = ctx.getBroadcastState(amplificationDesc);\n // storing in MapState with null as VOID default value\n bcState.put(event.streamKey, event);\n }", "@FXML\n private void copySelected_btn_action(ActionEvent event) {\n Messages.warningText(\"Under construction\");\n }", "@Override\n\tpublic Object deepCopy() {\n\t\tfinal UIAnimationMutable clone = new UIAnimationMutable(getName(), events.size(), controllers.size());\n\t\tfor (int i = 0, len = controllers.size(); i < len; ++i) {\n\t\t\tclone.controllers.add((UIController) controllers.get(i).deepCopy());\n\t\t}\n\t\tfor (int i = 0, len = events.size(); i < len; ++i) {\n\t\t\tfinal UIAttribute p = events.get(i);\n\t\t\tclone.events.add((UIAttribute) p.deepCopy());\n\t\t}\n\t\tclone.nextEventsAdditionShouldOverride = nextEventsAdditionShouldOverride;\n\t\tif (driver != null) {\n\t\t\tclone.driver = (UIAttribute) driver.deepCopy();\n\t\t}\n\t\treturn clone;\n\t}", "public void copyPhoto(ActionEvent event) {\n\t\t//checks if photo is selected\n\t\tObservableList<ImageView> pho;\n\t\tpho = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\tif(pho.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Move Photo Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//checks if other album is selected\n\t\tObservableList<Album> al;\n\t\tal = OtherAlbumsDisplay.getSelectionModel().getSelectedItems();\n\t\tif(al.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Album Selected\");\n\t\t\talert.setContentText(\"No album selected. Move Photo Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//now we must remove the selected photo from the current album and add the photo into the other album\n\t\tImageView img = (ImageView) PhotoListDisplay.getSelectionModel().getSelectedItem();\n\t\tPhoto p = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getPhotoFromImage(img);\n\t\t\n\t\tString path = p.getPathToPhoto();\n\t\tlong date = p.getlastModifiedDate();\n\t\tArrayList<Tag> tags = p.getCopyOfTags();\n\t\tString cap = p.getCaption();\n\t\tPhoto copied_photo = new Photo(path, date);\n\t\tcopied_photo.setCaption(cap);\n\t\tcopied_photo.setTags(tags);\n\t\tcopied_photo.setImage(img);\n\t\t\n\t\tAlbum oth_album = (Album) OtherAlbumsDisplay.getSelectionModel().getSelectedItem();\n\t\t\n\t\toth_album.addPhoto(copied_photo);\n\t\t//AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum().remove(p);\n\t\t//deletePhoto(event);\n\t\t\n\t\tAlert alert = new Alert(AlertType.INFORMATION);\n\t\talert.setTitle(\"Success\");\n\t\talert.setHeaderText(\"Photo Successfully Copied\");\n\t\talert.setContentText(\"Photo copied to \"+ oth_album.getName() + \".\");\n\t\talert.showAndWait();\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Override\n\tpublic void onApplicationEvent(ApplicationEvent ev) {\n\n\t\tif (ev instanceof ReserveListUpdateEvent) {\n\t\t\tReserveListUpdateEvent event = (ReserveListUpdateEvent) ev;\n\t\t\tthis.comboReserve1.setModel(new DefaultComboBoxModel(event.getReserveIDs().toArray()));\n\t\t\tthis.comboReserve2.setModel(new DefaultComboBoxModel(event.getReserveIDs().toArray()));\n\t\t} else if (ev instanceof LinkClearEvent) {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tLinkClearEvent event = (LinkClearEvent) ev;\n\t\t\tclearEntries();\n\t\t} else if (ev instanceof LinkDataTableClickedEvent) {\n\t\t\tLinkDataTableClickedEvent event = (LinkDataTableClickedEvent) ev;\n\t\t\tthis.setEntries(event.getData());\n\t\t}\n\n\t}", "public Object getEvent() {\r\n return event;\r\n }", "public void actionPerformed(ActionEvent ae)\n {\n int selected = owner.getSelectedRecordIndex();\n\n String[] row = owner.getDataTableModel().getDataRecord(selected).getData();\n\n StringBuffer copy = new StringBuffer();\n\n for(int i = 0; i < row.length; i++)\n {\n byte[] array = new byte[owner.getConfiguration().getMetaSchema()[i].getLength()];\n\n for(int j = 0; j < array.length; j++)\n {\n array[j] = ' ';\n }\n\n System.arraycopy(row[i].getBytes(), 0, array, 0, row[i].length());\n\n copy.append(new String(array));\n }\n\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n StringSelection content = new StringSelection(copy.toString());\n cb.setContents(content, null);\n }", "public void handle_PushedEvents()\r\n {\r\n if (rh2PushedEvents != null)\r\n {\r\n int index;\r\n for (index = 0; index < rh2PushedEvents.size(); index++)\r\n {\r\n CPushedEvent pEvt = rh2PushedEvents.get(index);\r\n if (pEvt != null)\r\n {\r\n if (pEvt.code != 0)\r\n {\r\n // Effectue l'un des evenements\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n rhCurParam0 = pEvt.param;\r\n rhCurOi = pEvt.oi;\r\n switch (pEvt.routine)\r\n {\r\n case 0:\r\n handle_GlobalEvents(pEvt.code);\r\n break;\r\n case 1:\r\n handle_Event(pEvt.pHo, pEvt.code);\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n rh2PushedEvents.clear();\r\n }\r\n }", "public void assingRectanglesEvents(Rectangle rectReg){\n rectReg.setOnMouseClicked(new EventHandler<MouseEvent>(){\n\n @Override\n public void handle(MouseEvent event) {\n\n System.out.println(event.getSource());\n gramatica.cambiarFormaRegla(gramatica.getRelRectRegla().get(event.getSource()));\n }\n\n });\n rectReg.setOnKeyPressed(new EventHandler<KeyEvent>(){\n\n @Override\n public void handle(KeyEvent event) {\n Rectangle rect=(Rectangle)event.getSource();\n if(event.getCode()==KeyCode.ENTER){\n System.out.println(event.getSource());\n gramatica.cambiarFormaRegla(gramatica.getRelRectRegla().get(event.getSource()));\n } \n else{\n \n } \n \n }\n \n\n }); \n rectReg.setOnMouseEntered(new EventHandler<MouseEvent>(){\n\n @Override\n public void handle(MouseEvent event) {\n\n System.out.println(event.getSource());\n Rectangle rect=(Rectangle)event.getSource();\n \n rect.setFill(Color.YELLOW);\n\n gramatica.drawRectangle(gramatica.getRelRectRegla().get(event.getSource()));\n Tooltip t = new Tooltip(gramatica.getRelRectRegla().get(event.getSource()).getValor());\n Tooltip.install(rect, t);\n \n }\n\n });\n rectReg.setOnMouseExited(new EventHandler<MouseEvent>(){\n\n @Override\n public void handle(MouseEvent event) {\n Rectangle rect=(Rectangle)event.getSource();\n rect.setFill(Color.BLACK);\n System.out.println(event.getSource());\n gramatica.erasedRectangle(gramatica.getRelRectRegla().get(event.getSource()));\n }\n\n });\n rectReg.focusedProperty().addListener(new ChangeListener<Boolean>(){\n @Override\n public void changed(ObservableValue<? extends Boolean> arg0, Boolean oldPropertyValue, Boolean newPropertyValue)\n {\n if (newPropertyValue)\n {\n// System.out.println(event.getSource());\n// Rectangle rect=(Rectangle)event.getSource();\n// System.out.println(event.getSource());\n rectReg.setFill(Color.YELLOW);\n \n \n }\n else\n {\n rectReg.setFill(Color.BLACK); \n }\n }\n });\n }", "public WindowListChangeEvent(Object eventSource) {\n super(eventSource); \n }", "@SuppressWarnings(\"deprecation\")\n @TargetApi(Build.VERSION_CODES.ECLAIR)\n @SuppressLint(\"NewApi\")\n private void dumpEvent(MotionEvent event) {\n String names[] = {\"DOWN\", \"UP\", \"MOVE\", \"CANCEL\", \"OUTSIDE\",\n \"POINTER_DOWN\", \"POINTER_UP\", \"7?\", \"8?\", \"9?\"};\n StringBuilder sb = new StringBuilder();\n int action = event.getAction();\n int actionCode = action & MotionEvent.ACTION_MASK;\n sb.append(\"event ACTION_\").append(names[actionCode]);\n if (actionCode == MotionEvent.ACTION_POINTER_DOWN\n || actionCode == MotionEvent.ACTION_POINTER_UP) {\n sb.append(\"(pid \").append(\n action >> MotionEvent.ACTION_POINTER_ID_SHIFT);\n sb.append(\")\");\n }\n sb.append(\"[\");\n for (int i = 0; i < event.getPointerCount(); i++) {\n sb.append(\"#\").append(i);\n sb.append(\"(pid \").append(event.getPointerId(i));\n sb.append(\")=\").append((int) event.getX(i));\n sb.append(\",\").append((int) event.getY(i));\n if (i + 1 < event.getPointerCount())\n sb.append(\";\");\n }\n sb.append(\"]\");\n }", "public void mousePressed(MouseEvent event)\n\t\t{\n\t\t\ttempPoint1 = event.getPoint();\n\t\t}", "@Override\n\tpublic void N2O_TEMP_ObjectEvent(Interface.N2O_TEMP_ObjectEvent e, String data) {\n\t\t\n\t}", "@Override\n\tpublic void ACC_X_ObjectEvent(Interface.ACC_X_ObjectEvent e, String data) {\n\t\t\n\t}" ]
[ "0.59544986", "0.5801017", "0.5598756", "0.55139214", "0.55074114", "0.55044264", "0.54626536", "0.54176354", "0.5397538", "0.53834325", "0.5366444", "0.5336726", "0.53235716", "0.53177124", "0.5313973", "0.5313479", "0.53080875", "0.52980024", "0.5297522", "0.5254588", "0.52422756", "0.5234913", "0.5234728", "0.522179", "0.5183347", "0.51807314", "0.51807314", "0.51758116", "0.5173449", "0.5165491", "0.51572305", "0.51518124", "0.5149267", "0.5148758", "0.514505", "0.51029956", "0.5101867", "0.5101867", "0.5101867", "0.5101867", "0.5101867", "0.5101487", "0.5100254", "0.5097116", "0.5097116", "0.5097116", "0.50767434", "0.5075457", "0.5053378", "0.5051921", "0.5037452", "0.5032322", "0.5022909", "0.5004277", "0.5002393", "0.500103", "0.4979189", "0.49726897", "0.4969765", "0.49620482", "0.4961251", "0.4937503", "0.493344", "0.49312377", "0.49238726", "0.4910897", "0.49073586", "0.4905636", "0.49017525", "0.4887966", "0.4887386", "0.48840493", "0.4873428", "0.48660237", "0.48620585", "0.48460206", "0.48455575", "0.48421565", "0.4829531", "0.48291954", "0.48276109", "0.48213327", "0.4820015", "0.48119265", "0.48106068", "0.48101392", "0.480901", "0.48075846", "0.48034582", "0.4802413", "0.47966325", "0.4795831", "0.47948185", "0.47857556", "0.47841886", "0.47841638", "0.4782199", "0.478201", "0.47812462", "0.47704664", "0.47673333" ]
0.0
-1
Created by zhufeng7 on 2016108.
public interface TranslateResultListener { void onResult(String result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\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 comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@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 anular() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo38117a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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 void init() {\n }", "@Override\n public void memoria() {\n \n }", "private void init() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n public void init() {\n }", "public void mo6081a() {\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 }", "@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}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n protected void init() {\n }", "@Override\n public void init() {}", "private void init() {\n\n\n\n }", "private zza.zza()\n\t\t{\n\t\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 }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "private void m50366E() {\n }", "protected void mo6255a() {\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "public Pitonyak_09_02() {\r\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public contrustor(){\r\n\t}" ]
[ "0.6298883", "0.624591", "0.6079027", "0.6079027", "0.6059437", "0.6054018", "0.59791434", "0.59672576", "0.5963087", "0.5937532", "0.5898573", "0.58901274", "0.58873755", "0.58857065", "0.58771855", "0.58729094", "0.58677477", "0.5862892", "0.58617324", "0.5851137", "0.5851137", "0.5840228", "0.58347225", "0.5831972", "0.58307004", "0.5826549", "0.5808649", "0.5790428", "0.5790428", "0.5790428", "0.5790428", "0.5790428", "0.5789031", "0.57769555", "0.57747275", "0.57657385", "0.57608885", "0.574354", "0.5730608", "0.5730608", "0.5730608", "0.5730608", "0.5730608", "0.5730608", "0.5730608", "0.57262486", "0.57262486", "0.57262486", "0.5722267", "0.5720574", "0.5720574", "0.57192594", "0.5712687", "0.5708174", "0.5708174", "0.5708174", "0.5702382", "0.5702382", "0.5702382", "0.5688625", "0.5659261", "0.5653922", "0.5647481", "0.5646989", "0.5635702", "0.5631119", "0.5631119", "0.5631119", "0.5631119", "0.5631119", "0.5631119", "0.56299096", "0.56291234", "0.5623725", "0.56195223", "0.5617926", "0.561113", "0.5609297", "0.5600971", "0.5600971", "0.55988127", "0.5590361", "0.55764157", "0.5574898", "0.5566527", "0.55646324", "0.5552703", "0.5551068", "0.5549601", "0.55415726", "0.5539195", "0.5530531", "0.5523903", "0.5521805", "0.5519665", "0.551428", "0.5503193", "0.5495607", "0.5492337", "0.5491652", "0.5486273" ]
0.0
-1
//calculate dev_u(t) = sign(ttu)|ttu|^0.4 and save the result for saving the time OK ROI
public double CalDev(int user, int timeArg) { if(Dev.get(user).get(timeArg) != null) return Dev.get(user).get(timeArg); double tmp = sign(timeArg - Tu[user]) * Math.pow( (double)(Math.abs(timeArg - Tu[user])), 0.4); Dev.get(user).put(timeArg, tmp); return tmp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long getPTSUs() {\n long result = System.nanoTime() / 1000L;\n if (result < prevOutputPTSUs)\n result = (prevOutputPTSUs - result) + result;\n return result;\n }", "private double calculateUvi(){\n if ( uva != Integer.MAX_VALUE\n && uvb != Integer.MAX_VALUE\n && uvd != Integer.MAX_VALUE\n && uvcomp1 != Integer.MAX_VALUE\n && uvcomp2 != Integer.MAX_VALUE\n )\n {\n // These equations came from the \"Designing the VEML6075 into an Application\" document from Vishay\n double uvacomp = (uva - uvd) - VEML_A_COEF * (uvcomp1 - uvd) - VEML_B_COEF * (uvcomp2 - uvd);\n double uvbcomp = (uvb - uvd) - VEML_C_COEF * (uvcomp1 - uvd) - VEML_D_COEF * (uvcomp2 - uvd);\n\n return ( (uvbcomp * VEML_UVB_RESP) + (uvacomp * VEML_UVA_RESP) ) / 2.0;\n }\n\n return Double.NaN;\n }", "private Function<Double, Long> convertToUserTimeUsFunction() {\n double beginTimestamp = myModel.getBeginTimestamp();\n double monoTimeAtBeginningSeconds = myMonoTimeAtBeginningSeconds;\n return timestampInSeconds -> (long)secondsToUs((timestampInSeconds - beginTimestamp) + monoTimeAtBeginningSeconds);\n }", "double tirer();", "private static synchronized double calc_deltaT(double tjd) {\n\t\tdouble ans = 0;\n\t\tdouble B, Y, Ygreg, dd;\n\t\tint iy;\n\t\tint deltat_model = sw.swed.astro_models[SweConst.SE_MODEL_DELTAT];\n\t\tif (deltat_model == 0)\n\t\t\tdeltat_model = SweConst.SEMOD_DELTAT_DEFAULT;\n\t\t/* read additional values from swedelta.txt */\n\t\t/* AS_BOOL use_espenak_meeus = DELTAT_ESPENAK_MEEUS_2006; */\n\t\tY = 2000.0 + (tjd - SwephData.J2000) / 365.25;\n\t\tYgreg = 2000.0 + (tjd - SwephData.J2000) / 365.2425;\n\t\t/*\n\t\t * Before 1633 AD, if the macro DELTAT_ESPENAK_MEEUS_2006 is TRUE:\n\t\t * Polynomials by Espenak & Meeus 2006, derived from Stephenson &\n\t\t * Morrison 2004. Note, Espenak & Meeus use their formulae only from\n\t\t * 2000 BC on. However, they use the long-term formula of Morrison &\n\t\t * Stephenson, which can be used even for the remoter past.\n\t\t */\n\t\t/* if (use_espenak_meeus && tjd < 2317746.13090277789) { */\n\t\tif (deltat_model == SweConst.SEMOD_DELTAT_ESPENAK_MEEUS_2006 && tjd < 2317746.13090277789) {\n\t\t\treturn deltat_espenak_meeus_1620(tjd);\n\t\t}\n\t\t/*\n\t\t * If the macro DELTAT_ESPENAK_MEEUS_2006 is FALSE: Before 1620, we\n\t\t * follow Stephenson & Morrsion 2004. For the tabulated values 1000 BC\n\t\t * through 1600 AD, we use linear interpolation.\n\t\t */\n\t\tif (Y < TABSTART) {\n\t\t\tif (Y < TAB2_END) {\n\t\t\t\treturn deltat_stephenson_morrison_1600(tjd);\n\t\t\t} else {\n\t\t\t\t/*\n\t\t\t\t * between 1600 and 1620: linear interpolation between end of\n\t\t\t\t * table dt2 and start of table dt\n\t\t\t\t */\n\t\t\t\tif (Y >= TAB2_END) {\n\t\t\t\t\tB = TABSTART - TAB2_END;\n\t\t\t\t\tiy = (TAB2_END - TAB2_START) / TAB2_STEP;\n\t\t\t\t\tdd = (Y - TAB2_END) / B;\n\t\t\t\t\t/* ans = dt2[iy] + dd * (dt[0] / 100.0 - dt2[iy]); */\n\t\t\t\t\tans = dt2[iy] + dd * (dt[0] - dt2[iy]);\n\t\t\t\t\tans = adjust_for_tidacc(ans, Ygreg);\n\t\t\t\t\treturn ans / 86400.0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * 1620 - today + a few years (tabend): Besselian interpolation from\n\t\t * tabulated values in table dt. See AA page K11.\n\t\t */\n\t\tif (Y >= TABSTART) {\n\t\t\treturn deltat_aa(tjd);\n\t\t}\n\t\treturn ans / 86400.0;\n\t}", "public double calcTuition(){\r\n return getNumCredits() * COST_PER_CREDIT_HOUR;\r\n }", "public static double getTuition(int degree, boolean time){\r\n //3&6\r\n double tuition = 0; \r\n if(degree == 1){\r\n tuition = 12462;\r\n }\r\n else if(degree == 2){\r\n tuition = 11354;\r\n }\r\n else if(degree == 3){ \r\n if(time){\r\n tuition = 25354;\r\n }\r\n else{\r\n tuition = 20660;\r\n }\r\n }\r\n else if(degree == 4){\r\n tuition = 35922;\r\n } \r\n else if(degree == 5){\r\n tuition = 26794;\r\n }\r\n else{ \r\n if(time){\r\n tuition = 40740;\r\n } \r\n else{\r\n tuition = 33298;\r\n }\r\n }\r\n return tuition;\r\n }", "double cekStop(double x[][], double v0[],double v[][],double w0[],double w[][], double t[]){\n double akumY=0;\n //~ itung z_in dan z\n for(int h=0; h<jumlah_data; h++){\n for(int j=0; j<unit_hidden; j++){\n //itung sigma xi vij\n double jum_xv=0;\n for(int i=0; i<unit_input; i++){\n double cc=x[h][i]*v[i][j];\n jum_xv=jum_xv+cc;\n //System.out.println(x[h][j]);\n }\n z_in[j]=v0[j]+jum_xv;\n //itung z\n z[j]=1/(1+(double)Math.exp(-z_in[j]));\n //System.out.println(\" dan z= \"+z[j]);\n }\n \n //~ itung y_in dan y (output)\n double cxc=0;\n for(int k=0; k<unit_output; k++){\n double jum_zw=0;\n for(int j=0; j<unit_hidden; j++){\n double cc=z[j]*w[j][k];\n jum_zw=jum_zw+cc;\n }\n y_in[k]=w0[k]+jum_zw;\n y[k]=1/(1+(double)Math.exp(-y_in[k]));\n akumY = akumY + Math.pow((t[h]-y[k]),2);\n //System.out.println(t[h]+\"-\"+y[k]+\"=\"+(t[k]-y[k]));\n }\n }\n double E = 0.5 * akumY;\n //System.out.println(E);\n return E;\n }", "private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}", "public double dlugoscOkregu() {\n\t\treturn 2 * Math.PI * promien;\n\t}", "public double findTSS(){\n\t\t\n\t\tdouble dMean; double dOut;\n\t\t\n\t\t//loading response variable\n\t\tdMean = 0;\n\t\tfor(double d:rgdY){\n\t\t\tdMean+=d;\n\t\t}\n\t\tdMean=dMean/((double) rgdY.length);\n\t\tdOut = 0;\n\t\tfor(double d:rgdY){\n\t\t\tdOut+=pow(d-dMean,2);\n\t\t}\n\t\treturn dOut;\n\t}", "@Test\r\n public void testRoundingDaub04FWT( ) throws JWaveException {\r\n \r\n // Performing: 10000000 forward and reverse transforms ...\r\n // 0%-------------------------------------50%----------------------------------100%\r\n // oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\r\n //\r\n // Input ...\r\n // time domain: 1.0 1.0 1.0 1.0 \r\n //\r\n // Result ...\r\n // time domain: 0.9999999999999553 0.9999999999999547 0.9999999999999553 0.9999999999999547 \r\n //\r\n // Absolute error\r\n // time domain: 4.474198789239381E-14 4.529709940470639E-14 4.474198789239381E-14 4.529709940470639E-14 \r\n //\r\n // Relative error [%] ...\r\n // time domain: 4.474198789239381E-12 4.529709940470639E-12 4.474198789239381E-12 4.529709940470639E-12 \r\n \r\n System.out.println( \"\" );\r\n System.out.println( \"testRoundingDaub04FWT\" );\r\n \r\n double delta = 1.e-8;\r\n \r\n double[ ] arrTime = {\r\n 1., 1., 1., 1.\r\n };\r\n \r\n testFastBasicTransformRounding( arrTime, new Daub02( ), delta );\r\n \r\n }", "private int getU(int[] inputs, int[] original) {\n\t\tint u = 0; \n\t\tint u2 = 0;\n\t\tfor(int i = 0 ; i < inputs.length ; i++) {\n\t\t\tu += inputs[i];\n\t\t\tu2 += original[i];\n\t\t}\n\t\treturn u <= u2 ? u : u2;\n\t}", "int getTau();", "private String getUpdatedUValue(String line,Dimension texdim)\n {\n Double factor = reftexsize/texdim.getWidth(); //=256/128=2\n\n // TextureU -00000.221152,+00000.021782,+00000.000000\n //-> TextureU -00000.442305,+00000.043563,+00000.000000\n //128x256\n if(texdim.getHeight()==texdim.getWidth())\n {\n factor = reftexsize/texdim.getHeight();\n }\n dtexu = getTextureU(line);\n\n dtexu[0]*=factor;\n dtexu[1]*=factor;\n dtexu[2]*=factor;\n\n \n return \" TextureU \"+dtexu[0]+\",\"+dtexu[1]+\",\"+dtexu[2];\n }", "protected void testVoodoo()\n\t{\n\t\tArrayTemperature at = new ArrayTemperature();\n\t\tint adu;\n\t\tdouble calc_temperature;\n\n//diddly\t\tArrayTemperature.set_algorithm(\"nonlinear\");\n\t\tadu = at.calculate_adu(temperature);\n\t\tSystem.out.println(this.getClass().getName()+\":Voodoo adu = \"+adu);\n//\t\tadu = 0xc60;// 0xc60 is what ccd_text returns.\n//\t\tcalc_temperature = at.calculate_temperature(adu); \n//\t\tSystem.out.println(this.getClass().getName()+\":Voodoo:adu = \"+adu+\", calculated temperature = \"+\n//\t\t\tcalc_temperature);\n\n\t}", "public static void doit(String fileName) {\n\t\tSystem.out.println(\"****矩阵形式-正域(减)******\"+fileName+\"上POSD的运行时间\"+\"***********\");\r\n\t\tlong time[]=new long[8];\r\n\t\tint t=0;//time下标\r\n\t\t\r\n\t\tList<Integer> preRED=null;\r\n\t List<Integer> nowRED = null;\r\n\r\n\t // 创建DataPreprocess对象data1 \r\n\t DataPreprocess data1=new DataPreprocess(fileName);\r\n\t \r\n\t int k=0,sn=data1.get_origDSNum();\r\n\t int m1=sn/10,m=m1>0?m1:1;\r\n\t int count=sn-(int)(0.2*sn);//保持与增加对象的约简结果一致\r\n\t data1.dataRatioSelect(0.2);\r\n\t \r\n\t preRED=new ArrayList<Integer>();\r\n\t nowRED=new ArrayList<Integer>();\r\n\t \r\n\t ArrayList<ArrayList<Integer>> addData=data1.get_origDS();//交换位置,把原数据前面20%放置到后面,为了保持与对象增加一致\r\n\t ArrayList<ArrayList<Integer>> origData=data1.get_addDS();\r\n\t origData.addAll(addData);\t \t \r\n\t \r\n\t data1=null;\r\n\t\t \r\n\t Iterator<ArrayList<Integer>> value = origData.iterator();\r\n\t \r\n\t ArrayList<ArrayList<Integer>> result_POS=new ArrayList<ArrayList<Integer>>();\r\n\t ArrayList<Integer> POS_Reduct=new ArrayList<Integer>();\r\n\t ArrayList<Integer> original_POS=new ArrayList<Integer>();\r\n\t ArrayList<Integer> original_reduct=new ArrayList<Integer>();\r\n\t int[][] original_sys;\r\n\t ArrayList<Integer> P=new ArrayList<Integer>();\r\n\t IDS_POSD im1=new IDS_POSD(origData);\r\n\t \r\n\t POS_Reduct=im1.getPOS_Reduct(im1.getUn());\t \r\n\t original_POS=im1.getPOS(im1.getUn(),POS_Reduct);\r\n\t \r\n\t original_reduct.addAll(POS_Reduct);\r\n\t \t \r\n\t //original_sys=im1.getUn();\r\n\t int n1=im1.getUn().length;//原决策系统Un包含n个对象\r\n\t int s1=im1.getUn()[0].length;//m个属性,包含决策属性\t\r\n\t original_sys=new int[n1][s1];\r\n\t for(int i=0;i<n1;i++)\r\n\t \t for(int j=0;j<s1;j++)\r\n\t \t\t original_sys[i][j]=im1.getUn()[i][j];\r\n\r\n\t IDS_POSD im2=new IDS_POSD();\r\n\t \r\n\t ArrayList<Integer> temp=new ArrayList<Integer>();\r\n\t long startTime = System.currentTimeMillis(); //获取开始时间\r\n\t\t while (value.hasNext()) {\r\n\t\t\t \t\r\n\t\t\t temp.addAll(value.next());//System.out.println(temp);\r\n\t\t\t\tim2.setUn(origData);\r\n\t\t\t\tim2.setUx(temp);\t\r\n\t\t\t\tresult_POS=im2.SHU_IARS(im2.getUn(),original_reduct,original_POS,im2.getUx());\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t original_reduct=result_POS.get(0);\r\n\t\t\t original_POS=result_POS.get(1);\r\n\t\t\t \r\n\t\t\t\tk++;\r\n\t\t\t\tcount--;\r\n\t\t\t\tif(k%m==0){\r\n\t\t\t\t\t\r\n\t\t\t\t\tlong endTime=System.currentTimeMillis(); //获取结束时间 \r\n\t\t\t\t\ttime[t++]=endTime-startTime;//输出每添加10%数据求约简的时间\r\n\t\t\t\t\tif(t==8)\r\n\t\t\t\t\t\tt--;\r\n\t\t\t\t}\r\n\t\t\t\tvalue.remove();\r\n\t\t\t\ttemp=new ArrayList<Integer>();//.clear();\r\n\t\t\t\tif (count==0)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t \r\n\t\t for(int i=0;i<8;i++)\t\t\t\t\r\n\t\t\t System.out.print((double)time[i]/1000+\" \"); \r\n\r\n\t\t System.out.println(\"\\n\"+fileName+\"上POSD的约简为:\"+result_POS.get(0)+\"\\n\");\t\t\r\n\t}", "public double p(double t) {\r\n\r\n double Util = Umin + (1 - f(t)) * (Umax - Umin) ;\r\n // too soon to receive such low utility\r\n if(negotiationSession.getTime() < 0.7 && Util < 0.75){\r\n Util = 0.75 ;\r\n }\r\n return Util;\r\n }", "int calDeg(int u){\n int ans=0;\n for (int i=0;i<n;i++){\n ans+=a[u][i];\n }\n return ans;\n }", "private int FindGold() {\n VuforiaLocalizer vuforia;\n\n /**\n * {@link #tfod} is the variable we will use to store our instance of the Tensor Flow Object\n * Detection engine.\n */\n TFObjectDetector tfod;\n \n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = CameraDirection.BACK;\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n \n\n /**\n * Initialize the Tensor Flow Object Detection engine.\n */\n if (ClassFactory.getInstance().canCreateTFObjectDetector()) {\n int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n \"tfodMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);\n tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_GOLD_MINERAL, LABEL_SILVER_MINERAL);\n tfod.activate();\n } else {\n telemetry.addData(\"Sorry!\", \"This device is not compatible with TFOD\");\n return 3;\n }\n\n int Npos1=0;\n int Npos2=0;\n int Npos3=0;\n int NposSilver1=0;\n int NposSilver2=0;\n int NposSilver3=0;\n double t_start = getRuntime();\n\n\n while (opModeIsActive()) {\n \n if( (getRuntime() - t_start ) > 3.5) break;\n if (Npos1 >=5 || Npos2>=5 || Npos3>=5)break;\n if (NposSilver1>=5 && NposSilver2>=5)break;\n if (NposSilver2>=5 && NposSilver3>=5)break;\n if (NposSilver1>=5 && NposSilver3>=5)break;\n if (tfod != null) {\n // getUpdatedRecognitions() will return null if no new information is available since\n // the last time that call was made.\n List<Recognition> updatedRecognitions = tfod.getUpdatedRecognitions();\n if (updatedRecognitions != null) {\n //telemetry.addData(\"# Object Detected\", updatedRecognitions.size());\n //if (updatedRecognitions.size() == 3) {\n int goldMineralX = -1;\n int silverMineralX = -1;\n for (Recognition recognition : updatedRecognitions) {\n if (recognition.getLabel().equals(LABEL_GOLD_MINERAL)) {\n goldMineralX = (int) recognition.getLeft();\n telemetry.addData(\"gold position\", goldMineralX);\n if(goldMineralX<300) {\n Npos1++;\n telemetry.addData(\"loc\", 1);\n }else if(goldMineralX<800){\n Npos2++;\n telemetry.addData(\"loc\", 2);\n }else{\n Npos3++;\n telemetry.addData(\"loc\", 3);\n }\n } \n \n if (recognition.getLabel().equals(LABEL_SILVER_MINERAL)) {\n silverMineralX = (int) recognition.getLeft();\n telemetry.addData(\"silver position\", silverMineralX);\n if(silverMineralX<300) {\n NposSilver1++;\n telemetry.addData(\"loc\", 1);\n }else if(silverMineralX<300){\n NposSilver2++;\n telemetry.addData(\"loc\", 2);\n }else{\n NposSilver3++;\n telemetry.addData(\"loc\", 3);\n }\n } \n }\n telemetry.update();\n }\n }\n }\n\n\n if (tfod != null) {\n tfod.shutdown();\n }\n \n \n \n telemetry.addData(\"\", 2);\n \n if (Npos1>=5)return 1;\n if (Npos2>=5)return 2;\n if (Npos3>=5)return 3;\n if (NposSilver1>=5 && NposSilver2>=5)return 3;\n if (NposSilver2>=5 && NposSilver3>=5)return 1; \n if (NposSilver1>=5 && NposSilver3>=5)return 2;\n\n return 3;\n }", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "private double noisyRt(double value) {\n\n\t\t// then add additive noise as well\n\t\tdouble additiveNoise = randomData.nextGaussian(noiseLevel.getNoiseMean(), \n\t\t\t\tnoiseLevel.getRtStdev());\n\t\tvalue += additiveNoise;\n\t\t\n\t\t// value must always be >= 0\n\t\tif (value < 0) {\n\t\t\tvalue = 0;\n\t\t}\n\t\treturn value;\n\n\t}", "public double ProcessArrivalTime()\r\n\t{\r\n\t\tdouble U = Math.random();\r\n\t\t//double lambda = 0.04;\r\n\t\tdouble lambda = 0.01;\r\n\t\tdouble V = ( -1 * (Math.log(1.0 - U)) ) / lambda; \r\n\t\treturn V;\r\n\t}", "private float getD(int[] yt){\n\t\tfloat temp = 0;\n\t\tfor(int i=0;i<=3;i++){\n\t\t\ttemp += yt[i] - getYmin(yt);\n\t\t}\n\t\treturn (temp/3);\n\t}", "private long m18337c(long durationUs) {\n return (((long) this.f16625s) * durationUs) / 1000000;\n }", "float getMainUtteranceDynamicGain();", "public double getUserTimeSec() {\n\treturn getUserTime() / Math.pow(10, 9);\n}", "@Override\n public double tuition(){\n return 2500;\n }", "public static void speedup(){\n\t\tif(bossair.periodairinit > Framework.nanosecond){\n\t\t\t\tbossair.periodair-=Framework.nanosecond/18; \n\t\t\t\tbossair.xmoving-=0.03; \n\t\t}\n\t\t\t\n\t}", "boolean mo61590s(double d);", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "public float[] getBestTime(){return bestTime;}", "private String tempConversion() {\n int reading = ((record[17] & 255) + ((record[21] & 0x30) << 4));\n\n double voltage = (reading * 3.3) / 1024;\n return formatter.format((voltage - .6) / .01);\n\n }", "static int m22556b(zzwt zzwt, cu cuVar) {\n zztw zztw = (zztw) zzwt;\n int d = zztw.mo4835d();\n if (d == -1) {\n d = cuVar.mo3068b(zztw);\n zztw.mo4833a(d);\n }\n return m22576g(d) + d;\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testTRUSS() {\n CuteNetlibCase.doTest(\"TRUSS.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "public boolean kiemTraPSToiGian(){\n if (timUSCLN(tuSo,mauSo) == 1){\n return true;\n }else {\n return false;\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}", "double getMinTimerTrig();", "int getRt();", "public long mo9775y() {\n /*\n r11 = this;\n int r0 = r11.f9082i\n int r1 = r11.f9080g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9082i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9776z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9082i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9775y():long\");\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 }", "public double GetStandardDev();", "public void toiGianPhanSo(){\n int x = timUSCLN(tuSo,mauSo);\n\n tuSo/=x;\n mauSo/=x;\n }", "private double calcTinseth(double amount, double size, double sg, double time, double aa,\n \t\t\tdouble HopsUtil) {\n \t\tdouble daautil; // decimal alpha acid utilization\n \t\tdouble bigness; // bigness factor\n \t\tdouble boil_fact; // boil time factor\n \t\tdouble mgl_aaa; // mg/l of added alpha units\n \t\tdouble ibu;\n \n \t\tbigness = 1.65 * (Math.pow(0.000125, (sg - 1))); // 0.000125 original\n \t\tboil_fact = (1 - (Math.exp(-0.04 * time))) / HopsUtil;\n \t\tdaautil = bigness * boil_fact;\n \t\tmgl_aaa = (aa / 100) * amount * 7490 / size;\n \t\tibu = daautil * mgl_aaa;\n \t\treturn ibu;\n \t}", "public float solveEqun(float[][] values, int uf, int eq) {\n float sol=0;\n float v=0,u=0,a=0,t=0,s=0;\n for (int i=0;i<3;i++) {\n for (int j=0;j<2;j++) {\n if (values[i][1] == 1)\n v = values[i][0];\n else if (values[i][1] == 2)\n u = values[i][0];\n else if (values[i][1] == 3)\n a = values[i][0];\n else if (values[i][1] == 4)\n t = values[i][0];\n else if (values[i][1] == 5)\n s = values[i][0];\n }\n }\n\n if (eq == 1) {\n if (uf == 1) {\n sol = u+(a*t);\n //System.out.println(\"u:\"+u);\n }\n else if (uf == 2) {\n sol = v - (a*t);\n //System.out.println(\"V:\"+v);\n }\n\n else if (uf == 3)\n sol = (v-u)/t;\n else if (uf == 4)\n sol = (v-u)/a;\n }\n\n else if (eq == 2) {\n if (uf == 5)\n sol = (float) ((u*t) + (0.5*a*t*t));\n else if (uf == 2)\n sol = (float) ((s-(0.5*a*t*t))/t);\n else if (uf == 3)\n sol = (float) ((s-(u*t))/(0.5*t*t));\n else if (uf == 4) {\n float sol1 = (float) ((-u+Math.sqrt(u*u+(4*0.5*a*t*t*s)))/(2*u));\n float sol2 = (float) ((-u-Math.sqrt(u*u+(4*0.5*a*t*t*s)))/(2*u));\n if (sol1<0)\n sol = sol2;\n else\n sol = sol1;\n }\n }\n\n else if (eq == 3) {\n if (uf == 1)\n sol = (float) Math.sqrt((2*a*s)-(u*u));\n else if (uf == 2)\n sol = (float) Math.sqrt((v*v)-(2*a*s));\n else if (uf == 3)\n sol = ((v*v)-(u*u))/(2*s);\n else if (uf == 5)\n sol = ((v*v)-(u*u))/(2*a);\n }\n\n return sol;\n }", "private int sumValue(int[] yt){\n\t\tint temp = 0;\n\t\tfor(int i=0;i<=3;i++){\n\t\t\ttemp += pow(yt[i]-y[i],2);\n\t\t}\n\t\treturn temp;\n\t}", "public double getTimeUncertaintyInNs() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e4 in method: android.location.GpsClock.getTimeUncertaintyInNs():double, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.getTimeUncertaintyInNs():double\");\n }", "@Test\n public void testPrediction1() throws Exception {\n\n final CalUtils.InstantGenerator instantGenerator =\n new LocalTimeMinutes(5);\n \n final double coreDailyVols[][] = new double[][] {\n new double[] {55219 , 262256 , 202661 , 218359 , 178244 , 99610 , 92348 , 124795 , 214370 , 153854 , 204116 , 173501 , 85390 , 156835 , 108070 , 23755 , 118573 , 70117 , 55768 , 52643 , 71485 , 407645 , 442909 , 129109 , 188896 , 79590 , 422121 , 290067 , 227955 , 69257 , 41634 , 446002 , 579188 , 86237 , 1606794 , 83676 , 166393 , 84987 , 875905 , 117013 , 399084 , 116190 , 149507 , 207221 , 60857 , 155612 , 448006 , 198637 , 67695 , 65423 , 180038 , 88774 , 80273 , 86065 , 85231 , 38867 , 29330 , 116353 , 26887 , 34170 , 102518 , 72246 , 21274 , 70752 , 37912 , 49367 , 100472 , 49461 , 41735 , 45795 , 36578 , 311945 , 249039 , 70487 , 121906 , 136424 , 195136 , 166308 , 331734 , 343180 , 419616 , 104613 , 1354058 , 162678 , 141067 , 147039 , 149115 , 271162 , 543989 , 184421 , 340679 , 201939 , 293860 , 171035 , 263964 , 260198 , 428087 , 565126 , 385874 , 547890 , 384416 , 256696 , 0 , 4738359},\n new double[] {1298630 , 678084 , 488607 , 224766 , 434263 , 356933 , 576571 , 219236 , 252805 , 414776 , 166828 , 174665 , 146281 , 110944 , 145234 , 179739 , 253111 , 175685 , 64925 , 216682 , 494507 , 100205 , 67371 , 101019 , 158026 , 316281 , 334067 , 954850 , 115547 , 163051 , 130303 , 107600 , 1407996 , 90357 , 110452 , 451866 , 238004 , 3096215 , 2672803 , 190170 , 111282 , 107135 , 453389 , 60821 , 98292 , 1310864 , 1132267 , 241907 , 89915 , 175676 , 61621 , 521553 , 212388 , 288651 , 193578 , 272161 , 256777 , 236382 , 802159 , 230248 , 387068 , 160647 , 106999 , 391933 , 465080 , 374577 , 340378 , 330708 , 416320 , 200347 , 251986 , 336664 , 311970 , 600559 , 508011 , 922379 , 311581 , 352459 , 508727 , 159316 , 1355635 , 246541 , 389672 , 805957 , 370754 , 382556 , 316971 , 564228 , 437166 , 277733 , 1284505 , 1763095 , 169661 , 280682 , 969102 , 540315 , 451895 , 308036 , 715130 , 642966 , 981563 , 900778 , 0 , 7155528},\n new double[] {679280 , 229518 , 346536 , 347215 , 316025 , 313890 , 235844 , 199995 , 1920617 , 129356 , 172084 , 207860 , 317578 , 10369008 , 480990 , 1403537 , 1021730 , 156125 , 94833 , 366987 , 145687 , 322957 , 328120 , 66657 , 176001 , 271003 , 133121 , 558624 , 264638 , 638663 , 165080 , 129439 , 5126344 , 5438632 , 248806 , 250616 , 112716 , 54523 , 198097 , 67772 , 1414565 , 244509 , 246205 , 151540 , 98584 , 51217 , 94193 , 111763 , 104726 , 45880 , 64242 , 78893 , 60706 , 48117 , 133085 , 101941 , 5103803 , 5084823 , 168230 , 75537 , 815036 , 73409 , 422412 , 437127 , 115802 , 326536 , 54707 , 81759 , 94420 , 208637 , 50361 , 1458556 , 84257 , 129114 , 54632 , 105873 , 57165 , 77578 , 233302 , 195560 , 134194 , 180928 , 140433 , 123154 , 221422 , 339866 , 1343886 , 114699 , 170052 , 150679 , 181731 , 160943 , 192590 , 125556 , 132656 , 154740 , 320932 , 140929 , 117889 , 381656 , 393635 , 306177 , 0 , 21629250},\n new double[] {526909 , 167180 , 199570 , 149154 , 142141 , 320881 , 223750 , 102275 , 258400 , 202197 , 120202 , 93404 , 178631 , 106401 , 346186 , 231729 , 163656 , 1622531 , 125689 , 2656587 , 5336032 , 2385985 , 335692 , 86118 , 130551 , 99047 , 81695 , 98846 , 238413 , 4831684 , 293262 , 124652 , 106642 , 112048 , 14284646 , 111209 , 2204635 , 128940 , 83395 , 134816 , 116320 , 65412 , 165020 , 126511 , 92217 , 111751 , 47320 , 82219 , 19044177 , 70827 , 21676 , 211214 , 103108 , 22771 , 61629 , 4816563 , 63806 , 33989 , 130104 , 146897 , 15046441 , 44977 , 40889 , 54584 , 54591 , 76634 , 238536 , 68583 , 110591 , 75012 , 503760 , 209479 , 217929 , 86397 , 102284 , 81878 , 252785 , 135884 , 129149 , 112760 , 266851 , 110863 , 67866 , 55205 , 150165 , 699438 , 184450 , 270270 , 4270036 , 345303 , 895116 , 217142 , 145398 , 301231 , 10260595 , 136317 , 442910 , 371357 , 189023 , 538928 , 438973 , 926728 , 9137 , 8879481},\n new double[] {1318228 , 1391326 , 574558 , 441739 , 719144 , 522626 , 404351 , 383602 , 490710 , 284952 , 2984474 , 216339 , 10220195 , 247067 , 166223 , 224310 , 10181837 , 126161 , 9764418 , 692337 , 25907353 , 1518741 , 1179929 , 120730 , 10173292 , 290045 , 19824327 , 402527 , 277859 , 3116841 , 7164061 , 332021 , 10560006 , 2334129 , 121753 , 200177 , 246402 , 10106648 , 1137272 , 2084673 , 461849 , 125108 , 465907 , 156972 , 139083 , 127389 , 237263 , 311691 , 156536 , 155322 , 133368 , 329715 , 256088 , 116835 , 5192615 , 823762 , 183836 , 1110239 , 2414836 , 385072 , 599637 , 387285 , 291580 , 2796924 , 12977051 , 338582 , 884415 , 525622 , 322587 , 223348 , 668858 , 143039 , 627590 , 239797 , 232788 , 256503 , 209425 , 375474 , 558106 , 290991 , 1176648 , 286550 , 149539 , 297435 , 602136 , 152733 , 212363 , 178992 , 179644 , 295428 , 933636 , 349405 , 660749 , 226061 , 868852 , 318539 , 469303 , 538061 , 273643 , 444084 , 347730 , 825808 , 12011 , 7792372}};\n\n final SimpleDateFormat dateBuilder = new SimpleDateFormat(\"yyyy-MM-dd\");\n final Calendar moments[] = new Calendar[] { Calendar.getInstance(), \n Calendar.getInstance(), Calendar.getInstance(), \n Calendar.getInstance(), Calendar.getInstance(),\n Calendar.getInstance() };\n\n moments[0].setTime(dateBuilder.parse(\"2011-10-26\"));\n moments[1].setTime(dateBuilder.parse(\"2011-10-27\"));\n moments[2].setTime(dateBuilder.parse(\"2011-10-28\"));\n moments[3].setTime(dateBuilder.parse(\"2011-10-30\"));\n moments[4].setTime(dateBuilder.parse(\"2011-11-01\"));\n moments[5].setTime(dateBuilder.parse(\"2011-11-02\"));\n\n // Nomralize data to sum 100 (i.e., have an expectance of 100/104)\n for(int i=0; i<5; i++) {\n double sum = 0;\n for(int j=0; j<104; j++) sum += coreDailyVols[i][j];\n for(int j=0; j<104; j++) {\n coreDailyVols[i][j] = coreDailyVols[i][j]*100 / sum;\n }\n }\n\n final double[][] synthesizedDailyVols = new double[\n coreDailyVols.length][instantGenerator.maxInstantValue()];\n final Calendar openTime = Calendar.getInstance();\n final int n = 9*60 / 5;\n final int m = n + coreDailyVols[0].length;\n for(int i=0; i<5; i++) {\n for(int j=0; j<n; j++) {\n synthesizedDailyVols[i][j] = Double.NaN;\n }\n for(int j=0; j<coreDailyVols[i].length; j++) {\n synthesizedDailyVols[i][j+n] = coreDailyVols[i][j];\n }\n for(int j=m; j<instantGenerator.maxInstantValue(); j++) {\n synthesizedDailyVols[i][j] = Double.NaN;\n }\n }\n\n\n final Predictor predictor = new PCAPredictorTransposed(\n instantGenerator, 5);\n for(int i=0; i<5; i++) {\n predictor.learnVector(moments[i], synthesizedDailyVols[i]);\n }\n final double prediction[] = predictor.predictVector(moments[5]);\n final double coreExpectedPrediction[] = new double[] {\n0.21383323, -0.08665493, -0.28527934, -0.45293966, -0.35525111, -0.49117788,\n-0.38114565, -0.60141152, -0.09029406, -0.44815719, -0.45152723, -0.58079146,\n-0.29110153, 1.54262599, -0.59900211, -0.48107804, -0.03280398, -0.59369964,\n-0.44886852, -0.43868587, 0.88745208, -0.10900099, -0.26251035, -0.71557572,\n-0.20051598, -0.57674404, 0.53793693, 0.15857465, -0.53212067, -0.13529962,\n-0.49171709, -0.32334222, 2.16101856, 0.46824882, 2.13337330, -0.48802957,\n-0.40084079, 1.62077396, 1.93080019, -0.59114756, -0.09429057, -0.68952951,\n-0.39819841, -0.63019599, -0.78762027, 0.12458423, 0.34847712, -0.52481068,\n0.69730449, -0.74290105, -0.68866588, -0.45964670, -0.69174165, -0.64825389,\n-0.49908622, -0.30049621, 0.35726449, 0.47210113, -0.25058065, -0.72112704,\n0.79345044, -0.73245678, -0.75581875, -0.40885896, -0.08033429, -0.56030291,\n-0.54967743, -0.63571829, -0.58889882, -0.71099478, -0.67055922, -0.03850658,\n-0.40339282, -0.43003588, -0.44813762, -0.14347007, -0.48441216, -0.48851502,\n-0.15427010, -0.39484463, 0.52701151, -0.61335693, 0.89776479, -0.18821502,\n-0.46457371, -0.39850394, -0.26234640, -0.21535441, 0.33669589, -0.48879971,\n0.43892192, 0.52101182, -0.42851659, -0.51364225, 0.85831207, -0.24052028,\n-0.04192086, -0.02287821, 0.01522206, 0.24307671, 0.27369478, 0.11058009,\n-0.95575786, 14.90733910 };\n final double synthesizedExpectedPrediction[] = new double[\n instantGenerator.maxInstantValue()];\n for(int j=0; j<n; j++) {\n synthesizedExpectedPrediction[j] = Double.NaN;\n }\n for(int j=0; j<coreExpectedPrediction.length; j++) {\n synthesizedExpectedPrediction[j+n] = coreExpectedPrediction[j];\n }\n for(int j=m; j<instantGenerator.maxInstantValue(); j++) {\n synthesizedExpectedPrediction[j] = Double.NaN;\n }\n\n assertEquals(prediction.length, synthesizedExpectedPrediction.length);\n\n for(int i=0; i<prediction.length; i++) {\n assertEquals(prediction[i], synthesizedExpectedPrediction[i], \n 0.0001d);\n }\n System.out.println(\"Ok\");\n }", "public double getTempoManipulator(int time) {\n if (time < duration * ((double) pStart / 100)) // BEFORE INCREASE\n return roundWithPrecision(pOffset, 3);\n else if (time > duration * (((double) pStart + (double) pDuration) / 100)) // AFTER INCREASE\n return roundWithPrecision(pOffset * pManipulation, 3);\n else // DURING INCREASE\n {\n double startOfIncrease = (((double) pStart) / 100 * duration);\n double lengthOfIncrease = (((double) pDuration) / 100 * duration);\n\n double at = time - startOfIncrease;\n double atModifier = at / lengthOfIncrease;\n return roundWithPrecision(((1 + ((pManipulation - 1) * atModifier)) * pOffset), 3);\n }\n }", "public double measurePowerUsage(String packageNameString, HashMap<String, Long> appCpuTimeBefor, long r_time) {\n HashMap<String, Long> appCpuTimeAfter = new HashMap<String, Long>();\n appCpuTimeAfter = getAppCpuTime(packageNameString);\n\n double totalPower = 0;\n double targetAppTimeAfter = appCpuTimeAfter.get(\"targetAppTime\");\n double targetAppTimeBefor = appCpuTimeBefor.get(\"targetAppTime\");\n Log.i(\"TAG\", \"appCpuTimeAfter \" + targetAppTimeAfter);\n Log.i(\"TAG\", \"appCpuTimeBefor \" + targetAppTimeBefor);\n\n double totalTimeAfter = appCpuTimeAfter.get(\"totalTime\");\n double totalTimeBefor = appCpuTimeBefor.get(\"totalTime\");\n Log.i(\"TAG\", \"totalTimeAfter \" + totalTimeAfter);\n Log.i(\"TAG\", \"totalTimeBefor \" + totalTimeBefor);\n\n Log.i(\"AAAAAAAAA\", \"targetAppTimeAfter-targetAppTimeBefor\"+String.valueOf(targetAppTimeAfter-targetAppTimeBefor));\n Log.i(\"AAAAAAAAA\", \"totalTimeAfter-totalTimeBefor\"+String.valueOf(totalTimeAfter-totalTimeBefor));\n //double ratio = (targetAppTimeAfter - targetAppTimeBefor + r_time) / (totalTimeAfter - totalTimeBefor + r_time);\n //double ratio = (targetAppTimeAfter - targetAppTimeBefor ) / (totalTimeAfter - totalTimeBefor );\n //double ratio = (targetAppTimeAfter - targetAppTimeBefor + r_time/10) / (totalTimeAfter - totalTimeBefor + r_time/10);\n double ratio= (r_time/10)/(totalTimeAfter - totalTimeBefor);\n\n Log.i(\"TAG\", \"ratio\" + ratio);\n\n return ratio; //second to hour\n }", "static void setGlobalTidalAcc(double tjd_ut, int iflag, int denum) {\n\t\tdouble xx[] = new double[6];\n\t\tdouble tjd_et;\n\t\tint retval = 0;\n\t\t/* manual tid_acc overrides automatic tid_acc */\n\t\tif (is_tid_acc_manual)\n\t\t\treturn;\n\t\tif (denum == 0) {\n\t\t\tif ((iflag & SweConst.SEFLG_MOSEPH) != 0) {\n\t\t\t\ttid_acc = SweConst.SE_TIDAL_DE404;\n\t\t\t\t// tid_acc.set(SweConst.SE_TIDAL_DE404);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ((iflag & SweConst.SEFLG_JPLEPH) != 0) {\n\t\t\t\tif (sw.swed.jpl_file_is_open) {\n\t\t\t\t\tdenum = sw.swed.jpldenum;\n\t\t\t\t} else {\n\t\t\t\t\ttjd_et = tjd_ut + SweDate.getDeltaT(tjd_ut);\n\t\t\t\t\tiflag = SweConst.SEFLG_JPLEPH | SweConst.SEFLG_J2000 | SweConst.SEFLG_TRUEPOS | SweConst.SEFLG_ICRS\n\t\t\t\t\t\t\t| SweConst.SEFLG_BARYCTR;\n\t\t\t\t\tretval = sw.swe_calc(tjd_et, SweConst.SE_JUPITER, iflag, xx, null);\n\t\t\t\t\tif (sw.swed.jpl_file_is_open && (retval & SweConst.SEFLG_JPLEPH) != 0) {\n\t\t\t\t\t\tdenum = sw.swed.jpldenum;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* SEFLG_SWIEPH wanted or SEFLG_JPLEPH failed: */\n\t\t\tif (denum == 0) {\n\t\t\t\ttjd_et = tjd_ut + SweDate.getDeltaT(tjd_ut);\n\t\t\t\tif (sw.swed.fidat[SwephData.SEI_FILE_MOON].fptr == null\n\t\t\t\t\t\t|| tjd_et < sw.swed.fidat[SwephData.SEI_FILE_MOON].tfstart + 1\n\t\t\t\t\t\t|| tjd_et > sw.swed.fidat[SwephData.SEI_FILE_MOON].tfend - 1) {\n\t\t\t\t\tiflag = SweConst.SEFLG_SWIEPH | SweConst.SEFLG_J2000 | SweConst.SEFLG_TRUEPOS | SweConst.SEFLG_ICRS;\n\t\t\t\t\tsw.swe_calc(tjd_et, SweConst.SE_MOON, iflag, xx, null);\n\t\t\t\t}\n\t\t\t\tif (sw.swed.fidat[SwephData.SEI_FILE_MOON].fptr != null) {\n\t\t\t\t\tdenum = sw.swed.fidat[SwephData.SEI_FILE_MOON].sweph_denum;\n\t\t\t\t\t/*\n\t\t\t\t\t * Moon ephemeris file is not available, default to Moshier\n\t\t\t\t\t * ephemeris\n\t\t\t\t\t */\n\t\t\t\t} else {\n\t\t\t\t\tdenum = 404; /* DE number of Moshier ephemeris */\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tswitch (denum) {\n\t\tcase 200:\n\t\t\ttid_acc = SweConst.SE_TIDAL_DE200;\n\t\t\tbreak;\n\t\tcase 403:\n\t\t\ttid_acc = SweConst.SE_TIDAL_DE403;\n\t\t\tbreak;\n\t\tcase 404:\n\t\t\ttid_acc = SweConst.SE_TIDAL_DE404;\n\t\t\tbreak;\n\t\tcase 405:\n\t\t\ttid_acc = SweConst.SE_TIDAL_DE405;\n\t\t\tbreak;\n\t\tcase 406:\n\t\t\ttid_acc = SweConst.SE_TIDAL_DE406;\n\t\t\tbreak;\n\t\tcase 421:\n\t\t\ttid_acc = SweConst.SE_TIDAL_DE421;\n\t\t\tbreak;\n\t\tcase 430:\n\t\t\ttid_acc = SweConst.SE_TIDAL_DE430;\n\t\t\tbreak;\n\t\tcase 431:\n\t\t\ttid_acc = SweConst.SE_TIDAL_DE431;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttid_acc = SweConst.SE_TIDAL_DEFAULT;\n\t\t\tbreak;\n\t\t// case 200: tid_acc.set(SweConst.SE_TIDAL_DE200); break;\n\t\t// case 403: tid_acc.set(SweConst.SE_TIDAL_DE403); break;\n\t\t// case 404: tid_acc.set(SweConst.SE_TIDAL_DE404); break;\n\t\t// case 405: tid_acc.set(SweConst.SE_TIDAL_DE405); break;\n\t\t// case 406: tid_acc.set(SweConst.SE_TIDAL_DE406); break;\n\t\t// case 421: tid_acc.set(SweConst.SE_TIDAL_DE421); break;\n\t\t// case 430: tid_acc.set(SweConst.SE_TIDAL_DE430); break;\n\t\t// case 431: tid_acc.set(SweConst.SE_TIDAL_DE431); break;\n\t\t// default: tid_acc.set(SweConst.SE_TIDAL_DEFAULT); break;\n\t\t}\n\t}", "float mo106364f();", "private SegmentTmTuv createTuv(SegmentTmTu p_tu, Element p_root)\n throws Exception\n {\n SegmentTmTuv result = new SegmentTmTuv();\n result.setOrgSegment(p_root.asXML());\n \n // need to set backpointer to tuv, or SegmentTmTuv.equals() fails.\n result.setTu(p_tu);\n\n // language of the TUV \"EN-US\", case insensitive\n String lang = p_root.attributeValue(Tmx.LANG);\n\n try\n {\n String locale = ImportUtil.normalizeLocale(lang);\n result.setLocale(ImportUtil.getLocaleByName(locale));\n }\n catch (Throwable ex)\n {\n throw new Exception(\"unknown locale \" + lang + \",you can create it in system then retry.\");\n }\n\n // Creation user - always set to a known value\n String user = p_root.attributeValue(Tmx.CREATIONID);\n if (user == null)\n {\n user = p_root.getParent().attributeValue(Tmx.CREATIONID);\n }\n\n result.setCreationUser(user != null ? user : Tmx.DEFAULT_USER);\n\n // Modification user - only set if known\n user = p_root.attributeValue(Tmx.CHANGEID);\n if (user == null)\n {\n user = p_root.getParent().attributeValue(Tmx.CHANGEID);\n }\n\n if (user != null)\n {\n result.setModifyUser(user);\n }\n\n // Timestamps (should be expressed using java.util.Date).\n // In TMX, timestamps use the short form: yyyymmddThhmmssZ,\n // so prepare for both short and long form.\n Date now = new Date();\n Date date;\n\n // Creation date - always set to a known value\n String ts = p_root.attributeValue(Tmx.CREATIONDATE);\n if (ts == null)\n {\n ts = p_root.getParent().attributeValue(Tmx.CREATIONDATE);\n }\n\n if (ts != null)\n {\n date = UTC.parseNoSeparators(ts);\n if (date == null)\n {\n date = UTC.parse(ts);\n }\n result.setCreationDate(new Timestamp(date.getTime()));\n }\n else\n {\n result.setCreationDate(new Timestamp(now.getTime()));\n }\n\n // Modification date - only set if known (note: currently\n // AbstractTmTuv sets the modification date to NOW)\n ts = p_root.attributeValue(Tmx.CHANGEDATE);\n if (ts == null)\n {\n ts = p_root.getParent().attributeValue(Tmx.CHANGEDATE);\n }\n\n if (ts != null)\n {\n date = UTC.parseNoSeparators(ts);\n if (date == null)\n {\n date = UTC.parse(ts);\n }\n result.setModifyDate(new Timestamp(date.getTime()));\n }\n else\n {\n // If no \"changedate\", set it same as \"creationdate\".\n result.setModifyDate(result.getCreationDate());\n }\n\n\t\tts = p_root.attributeValue(Tmx.LASTUSAGEDATE);\n\t\tif (ts == null)\n\t\t{\n\t\t\tts = p_root.getParent().attributeValue(Tmx.LASTUSAGEDATE);\n\t\t}\n\t\tif (ts != null)\n\t\t{\n\t\t\tdate = UTC.parseNoSeparators(ts);\n\t\t\tif (date == null)\n\t\t\t{\n\t\t\t\tdate = UTC.parse(ts);\n\t\t\t}\n\t\t\tresult.setLastUsageDate(new Timestamp(date.getTime()));\n\t\t}\n\n\t\tList tuvPropNodes = p_root.elements(\"prop\");\n\t\tfor (int i = 0; i < tuvPropNodes.size(); i++)\n\t\t{\n\t\t\tElement elem = (Element) tuvPropNodes.get(i);\n\t\t\tString type = elem.attributeValue(\"type\");\n\t\t\tString value = elem.getText();\n\t\t\tif (Tmx.PROP_PREVIOUS_HASH.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setPreviousHash(Long.parseLong(value));\n\t\t\t}\n\t\t\telse if (Tmx.PROP_NEXT_HASH.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setNextHash(Long.parseLong(value));\n\t\t\t}\n\t\t\telse if (Tmx.PROP_JOB_ID.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setJobId(Long.parseLong(value));\n\t\t\t}\n\t\t\telse if (Tmx.PROP_JOB_NAME.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setJobName(value);\n\t\t\t}\n\t\t\telse if (Tmx.PROP_CREATION_PROJECT.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setUpdatedProject(value);\n\t\t\t}\n\t\t}\n // Segment text: need to produce root elements <translatable>\n // and <localizable> depending on TU type.\n StringBuffer segment = new StringBuffer();\n\n if (p_tu.isTranslatable())\n {\n segment.append(\"<segment>\");\n }\n else\n {\n segment.append(\"<localizable>\");\n }\n\n segment.append(getSegmentValue(p_root));\n\n if (p_tu.isTranslatable())\n {\n segment.append(\"</segment>\");\n }\n else\n {\n segment.append(\"</localizable>\");\n }\n\n result.setSid(p_tu.getSID());\n //End of Added\n result.setSegment(segment.toString());\n\n return result;\n }", "public static void main(String[] args) {\n int[] P ={1,2,3,4};\n \tint[] At ={0,5,3,4};\n\tint[] Bt ={2,1,4,3};\n\tint[] Ct ={0,0,0,0};\n\tint[] Tat ={0,0,0,0};\n\tint[] Wt = {0,0,0,0}; \n\tfloat AvgWt=0, AvgTat=0;\n for(int k=1;k<At.length;k++){\n for(int i=1;i<At.length;i++){\n if(At[i-1]>At[i]){\n int temp = At[i-1];\n At[i-1] = At[i];\n At[i] = temp;\n temp = P[i-1];\n P[i-1] = P[i];\n P[i] = temp;\n temp = Bt[i-1];\n Bt[i-1] = Bt[i];\n Bt[i] = temp;\n }\n }\n } \n for(int i=0;i<At.length;i++){\n \n if(i == 0){\n\t\t\tCt[i] =At[i]+ Bt[i];\n\t\t}\n else if(Ct[i-1]<At[i]){\n Ct[i]=(Bt[i]+ Ct[i-1])+(At[i]-Ct[i-1]);\n }\n else{\n \tCt[i]= Bt[i]+ Ct[i-1];\n\t\t}\n\t}\n System.out.println();\n for(int k=1;k<At.length;k++){\n for(int i=1;i<At.length;i++){\n if(P[i]<P[i-1]){\n int temp = At[i-1];\n At[i-1] = At[i];\n At[i] = temp;\n temp = P[i-1];\n P[i-1] = P[i];\n P[i] = temp;\n temp = Bt[i-1];\n Bt[i-1] = Bt[i];\n Bt[i] = temp;\n temp = Ct[i-1];\n Ct[i-1] = Ct[i];\n Ct[i] = temp;\n }\n }\n }\n System.out.println();\n \n for(int j=0;j<P.length;j++){\n Tat[j] = Ct[j] - At[j];\n Wt[j] = Tat[j] - Bt[j];\n AvgTat = AvgTat + Tat[j];\n AvgWt = AvgWt + Wt[j];\n }\n AvgTat = AvgTat/(P.length );\n AvgWt = AvgWt/(P.length ); \n System.out.println(\"P\\tA\\tB\\tC\\tT\\tW\");\n for(int j=0;j<At.length;j++){\n System.out.println(P[j]+\"\\t\"+At[j]+\"\\t\"+Bt[j]+\"\\t\"+Ct[j]+\"\\t\"+Tat[j]+\"\\t\"+Wt[j]);\n \n }\n System.out.println();\n System.out.println(\"Average TAT \\t\"+AvgTat);\n System.out.println(\"Average WT \\t\"+AvgWt);\n }", "@Test\n @Tag(\"slow\")\n public void testWOODW() {\n CuteNetlibCase.doTest(\"WOODW.SIF\", \"1.30447633308416\", \"6.463675062936\", NumberContext.of(7, 4));\n }", "public double getDriftUncertaintyInNsPerSec() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e4 in method: android.location.GpsClock.getDriftUncertaintyInNsPerSec():double, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.getDriftUncertaintyInNsPerSec():double\");\n }", "public double teaspoonsToOunces(double teaspoons){\n return teaspoons * 0.166667;\n }", "@Test\n @Tag(\"slow\")\n public void testSIERRA() {\n CuteNetlibCase.doTest(\"SIERRA.SIF\", \"1.5394362183631932E7\", \"8.042913100947624E8\", NumberContext.of(7, 4));\n }", "private void calcDilution() {\n \t\t\tdouble dilutionFactor = dilVol.getValue() / postBoilVol.getValue();\n \t\t\tdilIbu = ibu / dilutionFactor;\n \t\t\tdilAlc = alcohol / dilutionFactor;\n \t\t\tdilOG = ((estOg - 1) / dilutionFactor) + 1;\n \t\t\tdilSrm = srm / dilutionFactor;\n \n \t\t}", "@Test\n public void testGenererTempsTriangulaire() throws Exception {\n System.out.println(\"genererTempsTriangulaire\");\n double min = 0.0;\n double mode = 0.0;\n double max = 0.0;\n double expResult = 0.0;\n double result = Utils.genererTempsTriangulaire(min, mode, max);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public static float pu2mw(float pwr) {return pwr*100F;}", "public void calcInc(int np)\n\t{\n \n findSpecEq();\n int nofc=numberOfComponents;\n fvec.timesEquals(0.0);\n fvec.set(nofc+1,0,1.0);\n Matrix dxds=Jac.solve(fvec);\n if (np<5)\n {\n double dp=0.01;\n ds=dp/dxds.get(nofc+1,0);\n Xgij.setMatrix(0,nofc+1,np-1,np-1,u);\n dxds.timesEquals(ds);\n // dxds.print(0,10);\n u.plusEquals(dxds);\n // Xgij.print(0,10);\n// u.print(0,10);\n }\n else\n {\n //System.out.println(\"iter \" +iter + \" np \" + np);\n if (iter>6)\n { \n ds *= 0.5;\n System.out.println(\"ds > 6\");\n }\n \n else\n {\n if (iter<3) {\n ds *= 1.5;\n }\n if (iter==3) {\n ds *= 1.1;\n }\n if (iter==4) {\n ds *= 1.0;\n }\n if (iter>4) {\n ds *= 0.5;\n }\n \n// Now we check wheater this ds is greater than dTmax and dPmax.\n if(Math.abs(system.getTemperature()*dxds.get(nofc,0)*ds)>dTmax){\n // System.out.println(\"true T\");\n ds=sign(dTmax/system.getTemperature()/Math.abs(dxds.get(nofc,0)),ds);\n }\n \n if(Math.abs(system.getPressure()*dxds.get(nofc+1,0)*ds)>dPmax)\n {\n ds=sign(dPmax/system.getPressure()/Math.abs(dxds.get(nofc+1,0)),ds);\n // System.out.println(\"true P\");\n }\n if (etterCP2) {\n etterCP2=false;\n ds = 0.5*ds;\n }\n \n Xgij.setMatrix(0,nofc+1,0,2,Xgij.getMatrix(0,nofc+1,1,3)); \n Xgij.setMatrix(0,nofc+1,3,3,u);\n s.setMatrix(0,0,0,3,Xgij.getMatrix(speceq,speceq,0,3));\n // s.print(0,10);\n // System.out.println(\"ds1 : \" + ds);\n calcInc2(np);\n // System.out.println(\"ds2 : \" + ds);\n \n// Here we find the next point from the polynomial.\n \n }\n }\n }", "public int storrelse();", "@Test\n public void testSumActualDevelopmentTimeSquared()\n {\n assertEquals(this.linealRegressionCalculator.sumActualDevelopmentTimeSquared(), 71267.12, 0.01);\n }", "double getVerDist(double initial_ver_vel, double time)\n {\n uy = initial_ver_vel;\n t = time;\n y = (uy*t) +(g*t*t)/2; \n return y;\n }", "@Test\n @Tag(\"bm1000\")\n public void testSTAIR() {\n CuteNetlibCase.doTest(\"STAIR.SIF\", \"-251.26695119296787\", \"-208.79999\", NumberContext.of(7, 2));\n }", "private int calculateTemp(){\n\n int time = (int) Bukkit.getServer().getWorld(worldName).getTime();\n\n // Calculate temp (y value) on a manipulated sine wave\n return (int) Math.round(\n Math.sin( (time * 0.000262) - ( (peakTime/24000.0) * Math.PI * 2 ) + (0.5 * Math.PI) ) * ((maxTemp-minTemp)/2.0)\n + (minTemp + ((maxTemp-minTemp)/2.0))\n );\n }", "public static void main(String[] args) {\n\n double D=260.0;\n int vIon=70;\n int vFlorica=60;\n double Time=D/(vIon+vFlorica);\n double Distance=vIon*Time;\n System.out.println(Time) ;\n System.out.println(Distance);\n }", "public double calcularTarifa(){\n\t\treturn TARIFA_BASE * 1.2;\n\t}", "int getTtiSeconds();", "private float getRsiPotential() {\r\n\t\treturn 1F - (float)(stochRsiCalculator.getCurrentValue()/50.0);\r\n\t}", "@Test\n @Tag(\"slow\")\n public void testSCSD6() {\n CuteNetlibCase.doTest(\"SCSD6.SIF\", \"50.5\", null, NumberContext.of(7, 4));\n }", "public void evaluate_anti_fixedpoint() {\n // DES_action_type = 0;\n // JOptionPane.showMessageDialog(null, \"Evaluating the Anti-FP && Action-Type = \" +\n // DES_action_type);\n int[] last2_anti_fixedpoint_rounds = new int[64];\n for (int i = 0; i < 32; i++) {\n last2_anti_fixedpoint_rounds[i] = DES_anti_fixedpoint_sequence[9][i];\n last2_anti_fixedpoint_rounds[32 + i] = DES_anti_fixedpoint_sequence[8][i];\n }\n DES_anti_fixedpoint = select(last2_anti_fixedpoint_rounds, FP);\n\n for (int i = 0; i < 64; i++)\n DES_anti_fixedpoint[i] = 1 ^ DES_anti_fixedpoint[i];\n }", "float getNominalVoltageOutOfPhase();", "public float generarTE(){\n float ts;\n float rnd=(float)Math.random();\n \n if(rnd<=0.20){ts=1;}\n else if(rnd<=0.50){ts=2;}\n else if(rnd<=0.85){ts=3;}\n else {ts=4;}\n \n return ts;\n }", "private void mo4305g(int i, int i2) {\n this.f3139t.f3157c = this.f3140u.mo5112b() - i2;\n this.f3139t.f3159e = this.f3143x ? -1 : 1;\n C0784c cVar = this.f3139t;\n cVar.f3158d = i;\n cVar.f3160f = 1;\n cVar.f3156b = i2;\n cVar.f3161g = Integer.MIN_VALUE;\n }", "public abstract int getPerTagAvgPoseSolveTime();", "private double calculateNewTempScore(double score, Date lastUsage, Setting setting) {\n\n\t\tdouble x = (setting.getCurrentTime().getTime() - lastUsage.getTime()) / this.timeMaximizer;\n\n\t\tif (x >= Math.PI)\n\t\t\treturn score;\n\n\t\tdouble tmpScore = score - (Math.cos(x) + 1) * 0.5 * (score + 1);\n\n\t\treturn tmpScore;\n\t}", "double CalcGaretz(double amount, double size, double sg, double time, double start_vol,\n \t\t\tint yeast_flocc, double AA) {\n \t\tdouble desired_ibu = CalcRager(amount, size, sg, time, AA);\n \t\tint elevation = 500; // elevation in feet - change for user setting\n \t\tdouble concentration_f = size / start_vol;\n \t\tdouble boil_gravity = (concentration_f * (sg - 1)) + 1;\n \t\tdouble gravity_f = ((boil_gravity - 1.050) / 0.2) + 1;\n \t\tdouble temp_f = (elevation / 550 * 0.02) + 1;\n \n \t\t// iterative loop, uses desired_ibu to define hopping_f, then seeds\n \t\t// itself\n \t\tdouble hopping_f, utilization, combined_f;\n \t\tdouble ibu = desired_ibu;\n \t\tint util_index;\n \t\tfor (int i = 0; i < 5; i++) { // iterate loop 5 times\n \t\t\thopping_f = ((concentration_f * desired_ibu) / 260) + 1;\n \t\t\tif (time > 50)\n \t\t\t\tutil_index = 10;\n \t\t\telse\n \t\t\t\tutil_index = (int) (time / 5.0);\n \t\t\tutilization = util[(util_index * 3) + yeast_flocc];\n \t\t\tcombined_f = gravity_f * temp_f * hopping_f;\n \t\t\tibu = (utilization * AA * amount * 0.749) / (size * combined_f);\n \t\t\tdesired_ibu = ibu;\n \t\t}\n \n \t\treturn ibu;\n \t}", "@Test\n public void testSumPlanAddedModifiedSizeActualDevelopmentTime()\n {\n assertEquals(this.linealRegressionCalculator.sumPlanAddedModifiedSizeActualDevelopmentTime(), 503075.7, 0.01);\n }", "private double UCTValue(Action action, Node parentNode) {\n double actionVisits = (double) parentNode.getActionVisits(action);\n\n return parentNode.getActionReward(action) / actionVisits +\n Math.sqrt(2.0 * Math.log(parentNode.getVisits()) / actionVisits);\n }", "@Test\n @Tag(\"slow\")\n public void testSTOCFOR2() {\n CuteNetlibCase.doTest(\"STOCFOR2.SIF\", \"-39024.4085378819\", null, NumberContext.of(7, 4));\n }", "public Double getTVA()\n {\n return (20.0/100.0);\n }", "public double[] test() {\r\n BigInteger a = generator.getA();\r\n BigInteger m = generator.getM();\r\n BigInteger h, hPrime, p, pPrime;\r\n BigInteger r, s;\r\n BigInteger q;\r\n BigInteger U[][], V[][];\r\n int t;\r\n\r\n //Step 1: Initialization\r\n h = a;\r\n hPrime = m;\r\n p = BigInteger.ONE;\r\n pPrime = BigInteger.ZERO;\r\n r = a;\r\n s = a.multiply(a).add(BigInteger.ONE);\r\n t = 1;\r\n //End of Step 1: Initialization\r\n\r\n //Step 2: Euclidean step to handle the case when t=2.\r\n U = new BigInteger[t][t];\r\n V = new BigInteger[t][t];\r\n //In this step, U & V have only one element\r\n do {\r\n q = hPrime.divide(h);\r\n U[0][0] = hPrime.subtract(q.multiply(h)); //Same as hPrime % h?\r\n V[0][0] = pPrime.subtract(q.multiply(p));\r\n BigInteger temp = U[0][0].multiply(U[0][0]).add(V[0][0].multiply(V[0][0]));\r\n if (temp.compareTo(s) >= 0) { //if temp>=s\r\n break;\r\n }\r\n //else if u2+v2<s do the following and loop back\r\n s = temp;\r\n hPrime = h;\r\n h = U[0][0];\r\n pPrime = p;\r\n p = V[0][0];\r\n } while (true);\r\n //End of Step 2: Euclidean step for t=2\r\n\r\n //Step 3: Compute nu2\r\n U[0][0] = U[0][0].subtract(h);\r\n V[0][0] = V[0][0].subtract(p);\r\n if (U[0][0].multiply(U[0][0]).add(V[0][0].multiply(V[0][0])).compareTo(s)==-1) {\r\n s = U[0][0].multiply(U[0][0]).add(V[0][0].multiply(V[0][0]));\r\n hPrime = U[0][0];\r\n pPrime = V[0][0];\r\n }\r\n t++; //t=2\r\n nu[t - 1] = s.doubleValue(); //nu2\r\n\r\n //Setting up the matrices\r\n U = new BigInteger[t][t];\r\n V = new BigInteger[t][t];\r\n\r\n //U:\r\n U[0][0] = h.negate();\r\n U[0][1] = p;\r\n U[1][0] = hPrime.negate();\r\n U[1][1] = pPrime;\r\n\r\n //V:\r\n V[0][0] = pPrime;\r\n V[0][1] = hPrime;\r\n V[1][0] = p.negate();\r\n V[1][1] = h.negate();\r\n\r\n if (pPrime.compareTo(BigInteger.ZERO) > 0) //if pPrime>0 then V = -V\r\n {\r\n for (int i = 0; i < t; i++) {\r\n for (int j = 0; j < t; j++) {\r\n V[i][j] = V[i][j].negate();\r\n }\r\n }\r\n }\r\n //End of Step 3: Compute nu2\r\n\r\n //Step 4: For values 2<t<=T\r\n while (t < T) {\r\n t++; //3, 4,..., T\r\n //System.out.println(\"t=\"+t);\r\n \r\n r = a.multiply(r).mod(m);\r\n\r\n BigInteger uIncreased[][] = new BigInteger[t][t];\r\n BigInteger vIncreased[][] = new BigInteger[t][t];\r\n\r\n for (int i = 0; i < t; i++) {\r\n for (int j = 0; j < t; j++) {\r\n uIncreased[i][j] = vIncreased[i][j] = BigInteger.ZERO;\r\n }\r\n }\r\n \r\n //setting Ut and Vt i.e. last rows of the new U and V\r\n uIncreased[t - 1][0] = r.negate();\r\n vIncreased[t - 1][0] = BigInteger.ZERO;\r\n// for (int i = 1; i < t - 1; i++) {\r\n// uIncreased[t - 1][i] = vIncreased[t - 1][i] = BigInteger.ZERO;\r\n// }\r\n uIncreased[t - 1][t - 1] = BigInteger.ONE;\r\n vIncreased[t - 1][t - 1] = m;\r\n\r\n //copy u & v to uIncreased & vIncreased\r\n for (int i = 0; i < U.length; i++) {\r\n int j;\r\n for (j = 0; j < U[i].length; j++) {\r\n uIncreased[i][j] = U[i][j];\r\n vIncreased[i][j] = V[i][j];\r\n }\r\n //Uit = 0 , Vit = Vi1*r - q*m where q = round(vi1*r/m) for 1<=i<t. Here j=t now.\r\n// uIncreased[i][j] = 0;\r\n //q = Math.round(vIncreased[i][1] * r / (double)m); //casting to prevent precision loss by division\r\n //q = vIncreased[i][1].multiply(r).divide(m);\r\n q = divideAndRound(vIncreased[i][0].multiply(r), m);\r\n vIncreased[i][j] = vIncreased[i][0].multiply(r).subtract(q.multiply(m));\r\n\r\n //Ut = Ut + q*Ui\r\n uIncreased[t - 1] = (new Vector(uIncreased[t - 1]).add(new Vector(uIncreased[i]).multiplyScalar(q))).toArray();\r\n }\r\n \r\n U = uIncreased;\r\n V = vIncreased;\r\n\r\n BigInteger utSq = new Vector(U[t - 1]).selfProduct();\r\n if (utSq.compareTo(s) < 0) {\r\n s = utSq;\r\n }\r\n\r\n int k = t - 1; //last index where the transformation shortened atleast one of the Vi\r\n int j = 0; //current row index for transformation(Knuth's algo is 1-based, arrays here are 0-based)\r\n\r\n //Step 7: Advance j. Starts elsewhere according to Knuth's algo. Modified to prevent gotos.\r\n do {\r\n //Step 5: Transform\r\n for (int i = 0; i < t; i++) {\r\n Vector vI = new Vector(V[i]);\r\n Vector vJ = new Vector(V[j]);\r\n BigInteger vIDotJ = vI.multiply(vJ);\r\n BigInteger vJDotJ = vJ.selfProduct();\r\n //System.out.println(vIDotJ.multiply(new BigInteger(\"2\"))+\" & \"+vJDotJ+\" i= \"+i+\" j= \"+j);\r\n if (i != j && vIDotJ.abs().multiply(new BigInteger(\"2\")).compareTo(vJDotJ) > -1) {\r\n q = divideAndRound(vIDotJ, vJDotJ); //casting to prevent precision loss by division\r\n //Vi = Vi - q*Vj\r\n V[i] = vI.subtract(vJ.multiplyScalar(q)).toArray();\r\n //Uj = Uj + q*Ui\r\n U[j] = new Vector(U[j]).add(new Vector(U[i]).multiplyScalar(q)).toArray();\r\n k = j;\r\n }\r\n }\r\n //End of Step 5: Transform\r\n\r\n //Step 6: Examine new bound\r\n if (k == j) {\r\n BigInteger ujSq = new Vector(U[j]).selfProduct();\r\n if (ujSq.compareTo(s) < 0) {\r\n s = ujSq;\r\n }\r\n }\r\n //End of Step 6: Examine new bound\r\n j = (j + 1) % t;\r\n } while (j != k);\r\n //System.out.println(\"Ended loop of step 7\");\r\n //End of Step 7: Advance j\r\n\r\n //Step 8: Prepare for search\r\n BigInteger X[] = new BigInteger[t];\r\n BigInteger Y[] = new BigInteger[t];\r\n BigInteger Z[] = new BigInteger[t];\r\n //extra overhead of initializing BigInteger arrays :(\r\n for (int i = 0; i < t; i++) {\r\n X[i] = Y[i] = Z[i] = BigInteger.ZERO;\r\n }\r\n \r\n k = t - 1;\r\n //Setting Z\r\n for (int i = 0; i < t; i++) {\r\n Vector vI = new Vector(V[i]);\r\n //Z[i] = (BigInteger) Math.floor(Math.sqrt(Math.floor((vI.selfProduct() * s / (double)m)/ m))); //If m is too big m^2 becomes inf, \r\n //so divide by m twice instead of dividing by m^2\r\n //Exploiting the fact that floor(a/b^2) = floor(floor(a/b)/b)\r\n //The BigIntegers are actually small enough before taking square roots hence sqrt(double) works fine enough\r\n String temp = String.valueOf(Math.floor(Math.sqrt(Math.floor(\r\n vI.selfProduct().multiply(s).divide(m).divide(m).doubleValue()))));\r\n Z[i] = new BigInteger(temp.substring(0, temp.length()-2));\r\n //----------------------------------------------------------------------------------------------------\r\n }\r\n //End of Step 8: Prepare for search\r\n\r\n //Step 9: Advance Xk\r\n do {\r\n if (X[k].compareTo(Z[k])!=0) { //X[k] != Z[k]\r\n X[k] = X[k].add(BigInteger.ONE);\r\n Y = new Vector(Y).add(new Vector(U[k])).toArray();\r\n\r\n //Step 10: Advance k\r\n do {\r\n ++k;\r\n if (k <= t - 1) {\r\n X[k] = Z[k].negate();\r\n Y = new Vector(Y).subtract(new Vector(U[k]).multiplyScalar(Z[k].multiply(new BigInteger(\"2\")))).toArray();\r\n } else {\r\n BigInteger ySq = new Vector(Y).selfProduct();\r\n if (ySq.compareTo(s) < 0) {\r\n s = ySq;\r\n }\r\n break;\r\n }\r\n } while (true);\r\n //End of Step 10: Advance k\r\n }\r\n //End of Step 9: Advance Xk\r\n //Step 11: Decrease k\r\n --k;\r\n //System.out.println(\"Stuck at k=\"+k);\r\n } while (k >= 0);\r\n nu[t - 1] = s.doubleValue();\r\n //End of Step 11: Decrease k\r\n }\r\n //End of Step 4: For values 2<t<=T\r\n \r\n //Calculating mu\r\n calculateMu();\r\n //\r\n //Show a comprehensive summary of the test results\r\n showSummary();\r\n return getNu();\r\n }", "public final long mo35266cY(View view) {\n AppMethodBeat.m2504i(18246);\n C44315r.m80106eK(view);\n if (view.getTag() instanceof C5404f) {\n long j = ((C5404f) view.getTag()).cvx;\n AppMethodBeat.m2505o(18246);\n return j;\n }\n AppMethodBeat.m2505o(18246);\n return 0;\n }", "public static void main(String[] args) {\n\n Scanner oku =new Scanner(System.in);\n System.out.println(\"Vize notunuzu giriniz=\");\n int vizeNotu = oku.nextInt();\n\n System.out.println(\"Final notunuzu giriniz=\");\n int finalNotu =oku.nextInt();\n\n double ort =vizeNotu *0.4 +finalNotu * 0.6;\n\n System.out.println(\"ort>=60\" +ort);\n if (ort >=60) {\n System.out.println(\"Gectiniz\");\n System.out.println(\"Tebrikler\");\n }\n else\n {\n System.out.println(\"Kaldiniz\");\n }\n\n }", "public int generarDE(){\n int ts;\n float rnd=(float)Math.random();\n \n if(rnd<=0.35){ts=1;}\n else if(rnd<=0.75){ts=2;}\n else {ts=3;}\n \n return ts;\n }", "public double getBaseMtmUsd() {\r\n return baseMtmUsd;\r\n }", "public double getRtStdev() {\n\t\t\treturn this.rtStdev;\n\t\t}", "public void setTimeUncertaintyInNs(double r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.setTimeUncertaintyInNs(double):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setTimeUncertaintyInNs(double):void\");\n }", "public static double tic() {\n\t\tt = System.currentTimeMillis() / 1000d;\n\t\treturn t;\n\t}", "@Override\n\tpublic double muovi(double deltaT) {\n\t\treturn 0;\n\t}", "@Test\n @Tag(\"slow\")\n public void testWOOD1P() {\n CuteNetlibCase.doTest(\"WOOD1P.SIF\", \"1.44290241157344\", \"9.99999999999964\", NumberContext.of(7, 4));\n }", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "@Test\r\n public void testRoundingCoif06FWT( ) throws JWaveException {\r\n \r\n // Performing: 10000000 forward and reverse transforms ...\r\n //\r\n // Input ...\r\n // time domain: 1.0 1.0 1.0 1.0 1.0 1.0 \r\n //\r\n // Result ...\r\n // time domain: 1.000000000000003 1.0000000000000024 1.000000000000005 1.0000000000000024 1.0000000000000033 1.0000000000000022 \r\n //\r\n // Absolute error\r\n // time domain: 3.1086244689504383E-15 2.4424906541753444E-15 5.10702591327572E-15 2.4424906541753444E-15 3.3306690738754696E-15 2.220446049250313E-15 \r\n //\r\n // Relative error [%] ...\r\n // time domain: 3.1086244689504383E-13 2.4424906541753444E-13 5.10702591327572E-13 2.4424906541753444E-13 3.3306690738754696E-13 2.220446049250313E-13 \r\n \r\n System.out.println( \"\" );\r\n System.out.println( \"testRoundingCoif06FWT\" );\r\n \r\n double delta = 1.e-8;\r\n \r\n double[ ] arrTime = {\r\n 1., 1., 1., 1., 1., 1.\r\n };\r\n \r\n testFastBasicTransformRounding( arrTime, new Coif06( ), delta );\r\n \r\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "double getStaStart();", "@Override\n\tdouble dienTich() {\n\t\tdouble p = chuVi() / 2;\n\t\treturn Math.sqrt(p*(p-canhA)*(p-canhB)*(p-canhC));\n\t}", "double getTempo();" ]
[ "0.5647019", "0.5611521", "0.5576965", "0.55469525", "0.54292345", "0.53376573", "0.5273009", "0.52645653", "0.5259346", "0.52413833", "0.5226429", "0.5211952", "0.5175407", "0.5139452", "0.5118291", "0.51167434", "0.5113987", "0.51119345", "0.51109505", "0.51035535", "0.5058104", "0.50577354", "0.5055864", "0.5046721", "0.5023481", "0.49841323", "0.49698454", "0.49494946", "0.49271584", "0.49234182", "0.49167538", "0.49068987", "0.49005845", "0.4892333", "0.48827362", "0.4876868", "0.4875071", "0.48630324", "0.48629063", "0.48628303", "0.48624095", "0.4841809", "0.48372236", "0.48276684", "0.48169744", "0.480434", "0.47921944", "0.47919685", "0.47735286", "0.47717765", "0.47673792", "0.47627482", "0.47568843", "0.4752911", "0.4747181", "0.47463113", "0.47435483", "0.47409216", "0.47329423", "0.47267663", "0.4726039", "0.47240314", "0.47235563", "0.4721107", "0.47201788", "0.4718562", "0.47159585", "0.47132137", "0.47082862", "0.46956676", "0.46914777", "0.46879995", "0.46851066", "0.4683527", "0.46707094", "0.4668059", "0.46641332", "0.46527168", "0.4652093", "0.46515816", "0.46513355", "0.46507314", "0.46481383", "0.46480778", "0.46474385", "0.464731", "0.46431676", "0.46428367", "0.46405628", "0.46404338", "0.46396288", "0.46390378", "0.4635891", "0.46326658", "0.46319744", "0.4630341", "0.46287766", "0.46266776", "0.462325", "0.4622144" ]
0.5706766
0
function for cross validation
public double RMSE(double avg,double[] bu,double[] bi,double[][] pu,double[][] qi){ int userId,itemId,rating,t; int n = 0; double rmse = 0; for(int i=0;i<test_data.length;i++) { if(test_data[i].getLength() != 0) { for(int j=0;j<test_data[i].getLength();j++) { userId = test_data[i].getUser(j); itemId = test_data[i].getItem(j); t = test_data[i].getTime(j); rating = test_data[i].getTime(j); n++; double pScore = predictScore(avg,userId,itemId,t); rmse += (rating - pScore) * (rating - pScore); } } } return Math.sqrt(rmse/n); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CrossValidation createCrossValidation();", "private double crossValidate(Instances data) throws Exception {\r\n\t\tbuildClassifier(data);\r\n\r\n\t\tdouble correct = 0;\r\n\t\tfor (int i = 0; i < data.numInstances(); ++i) {\r\n\t\t\tif (classifyInstance(i) == data.get(i).classValue()) {\r\n\t\t\t\t++correct;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn correct / data.numInstances();\r\n\t}", "public static void crossValidation() {\n\t\t\n\t\t//---------------------分为k折-----------------------------\n\t\t//初始化为k fold\n\t\tfor(int i=0;i<FOLD;i++) {\n\t\t\tArrayList<Point> tmp = new ArrayList<Point>();\n\t\t\tallData.add(tmp);\n\t\t}\n\t\t//选一个 删一个\n\t\tList<Integer> chosen = new ArrayList<Integer>();\n\t\tfor(int i=0;i<dataSet.size();i++) {\n\t\t\tchosen.add(i);\n\t\t}\n\t\t\n\t\t/*//按照原有比例采样\n\t\tfor(int i=0;i<FOLD;i++) { \n\t\t\tint choose = 0;\n\t\t\twhile( choose < ROW/FOLD && i != FOLD-1) {\n\t\t\t\tint p = pData.size() / FOLD; //采样的小类样本的个数\n\t\t\t\tint rand = new Random().nextInt(dataSet.size());\n\t\t\t\tif( choose < p) {\n\t\t\t\t\tif( chosen.contains(rand) && dataSet.get(rand).getLabel() == 0) {\n\t\t\t\t\t\tchosen.remove(new Integer(rand));\n\t\t\t\t\t\tchoose ++;\n\t\t\t\t\t\tallData.get(i).add(dataSet.get(rand));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif( chosen.contains(rand) && dataSet.get(rand).getLabel() != 0) {\n\t\t\t\t\t\tchosen.remove(new Integer(rand));\n\t\t\t\t\t\tchoose ++;\n\t\t\t\t\t\tallData.get(i).add(dataSet.get(rand));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//最后一折全部添加\n\t\t\tif( i == FOLD-1) {\n\t\t\t\tfor (Integer o : chosen) {\n\t\t\t\t\tallData.get(i).add(dataSet.get(o));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t}*/\n\t\tfor(int i=0;i<FOLD;i++) { \n\t\t\tint choose = 0;\n\t\t\twhile( choose < ROW/FOLD && i != FOLD-1) {\n\t\t\t\tint rand = new Random().nextInt(dataSet.size());\n\t\t\t\tif( chosen.contains(rand)) {\n\t\t\t\t\tchosen.remove(new Integer(rand));\n\t\t\t\t\tchoose ++;\n\t\t\t\t\tallData.get(i).add(dataSet.get(rand));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//最后一折全部添加\n\t\t\tif( i == FOLD-1) {\n\t\t\t\tfor (Integer o : chosen) {\n\t\t\t\t\tallData.get(i).add(dataSet.get(o));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\t//------------------取一折为测试,其余为训练集-----------------------------\n\t\tfor(int fold=0;fold<FOLD;fold++) {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\n\t\t\tList<Point> trainData = new ArrayList<Point>();\n\t\t\tList<Point> testData = new ArrayList<Point>();\n\t\t\tList<Point> positiveTrainData = new ArrayList<Point>();\n\t\t\tList<Point> positiveTestData = new ArrayList<Point>();\n\t\t\t\n\t\t\ttestData.addAll(allData.get(fold));\n\t\t\tfor (List<Point> ps : allData) {\n\t\t\t\tif( ps != allData.get(fold))\n\t\t\t\t\ttrainData.addAll(ps);\n\t\t\t}\n\t\t\t//select the minority class instances\n\t\t\tfor (Point point : trainData) {\n\t\t\t\tif(point.getLabel() == 0)\n\t\t\t\t\tpositiveTrainData.add(point);\n\t\t\t}\n\t\t\tSystem.out.print(\"train data :\"+trainData.size() + \"\\t\");\n\t\t\tSystem.out.println(\"train positive :\"+positiveTrainData.size());\n\t\t\tfor (Point point : testData) {\n\t\t\t\tif(point.getLabel() == 0)\n\t\t\t\t\tpositiveTestData.add(point);\n\t\t\t}\n\t\t\tSystem.out.print(\"test data :\"+testData.size() + \"\\t\");\n\t\t\tSystem.out.println(\"test positive :\"+positiveTestData.size());\n\t\t\t\n\t\t\tborderline(positiveTrainData,trainData);\n\t\t\t\n\t\t\t//generate new dataset\n\t\t\tString trainFileName = NAME + \"BLTrain\"+fold+\".arff\";\n\t\t\tString testFileName = NAME + \"BLTest\"+fold+\".arff\";\n\t\t\t//TODO dataSet is a bug\n\t\t\tGenerate.generate(trainData,pointSet,COL,fileName,trainFileName);\n\t\t\tGenerate.generate(testData,new ArrayList<Point>(),COL,fileName,testFileName);\n\t\t\tpointSet.clear();\n\t\t\tlong endGenerating = System.currentTimeMillis();\n\t\t\tSystem.out.println(\"产生数据所用时间为:\"+ (endGenerating-start)*1.0/1000 + \"s\");\n\t\t\t\n\t\t\t\n\t\t/*\t//不进行任何处理\n\t\t\ttrainFileName = NAME + \"TrainWS\"+\".arff\";\n\t\t\ttestFileName = NAME + \"TestWS\"+\".arff\";\n\t\t\tGenerate.generate(dataSet,new ArrayList<Point>(),COL,fileName,trainFileName);\n\t\t\tGenerate.generate(testSet,new ArrayList<Point>(),COL,fileName,testFileName);\n//\t\t\tpointSet.clear();\n\t*/\t\t\n\t\t\t\n\t\t\t\n\t\t\tclassify(trainFileName,testFileName);\n\t\t\tlong endClassifying = System.currentTimeMillis();\n\t\t\tSystem.out.println(\"产生数据所用时间为:\"+ (endClassifying-start)*1.0/1000 + \"s\");\n\t\t}\n\t}", "public double crossValidate(int k) { \n\t\tdouble sum = 0;\n\t\tfor (int i = 0 ; i < 20; i++) {\n\t\t\tsum += validate(k);\n\t\t}\n\t\treturn sum / 20;\n\t}", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n NaiveBayesMultinomial naiveBayesMultinomial0 = new NaiveBayesMultinomial();\n MockRandom mockRandom0 = new MockRandom((-1));\n try { \n evaluation0.crossValidateModel((Classifier) naiveBayesMultinomial0, instances0, (-1), (Random) mockRandom0, (Object[]) testInstances0.DEFAULT_WORDS);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Number of folds must be greater than 1\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "protected static double crossValidation(Instances trainingData,\n\t\t\tint[] indices, boolean fs) throws Exception {\n\t\tif (fs) {\n\t\t\tSystem.out.println(\"\\n cross validation on the reduced features.\");\n\t\t\t// remove unselected attributes.\n\t\t\tfor (int i = trainingData.numAttributes() - 1; i >= 0; i--) {\n\t\t\t\tboolean remove = true;\n\t\t\t\tfor (int k = 0; k < indices.length; k++) {\n\t\t\t\t\tif (i == indices[k]) {\n\t\t\t\t\t\tremove = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (remove == true) {\n\t\t\t\t\ttrainingData.deleteAttributeAt(i);\n\t\t\t\t}\n\t\t\t}\n\t\t} else \n\t\t\tSystem.out.println(\"\\n cross validation on the full features.\");\n\t\t// cross validation\n\t\tClassifier nb = new NaiveBayes();\n\t\tEvaluation evaluation = new Evaluation(trainingData);\n\t\tevaluation.crossValidateModel(nb, trainingData, 10, new Random(1));\n\t\tSystem.out.println(evaluation.toSummaryString());\n\t\treturn evaluation.errorRate();\n\t}", "public static DecisionTreeNode performCrossValidation(List<CSVAttribute[]> dataset, int labelAttribute,\n BiFunction<List<CSVAttribute[]>, Integer, DecisionTreeNode> trainFunction,\n int numFolds) {\n\n List<Double> foldPerfResults = new ArrayList<>();\n\n // Split dataset\n DecisionTreeNode learnedTree = null;\n\n List<CSVAttribute[]> trainData;\n List<CSVAttribute[]> ulTestData;\n List<CSVAttribute[]> lTestData;\n\n // inintialize confusion matrix with zeros\n int[][] confusionMatrix = new int[][]{{0,0},{0,0}};\n\n for (int i = 0; i < numFolds; i++) {\n List<List<CSVAttribute[]>> splitData = getTrainData(dataset, numFolds, labelAttribute);\n\n trainData = splitData.get(0);\n ulTestData = splitData.get(1);\n lTestData = splitData.get(2);\n\n // learn from training subset\n learnedTree = trainFunction.apply(trainData, labelAttribute);\n\n // gather results in list\n foldPerfResults.add(predictionAccuracy(ulTestData, lTestData, learnedTree, labelAttribute));\n\n int[][] newConfusionMatrix = getConfusionMatrix(ulTestData, lTestData, labelAttribute);\n confusionMatrix[0][0] += newConfusionMatrix[0][0];\n confusionMatrix[0][1] += newConfusionMatrix[0][1];\n confusionMatrix[1][0] += newConfusionMatrix[1][0];\n confusionMatrix[1][1] += newConfusionMatrix[1][1];\n }\n\n int tp = confusionMatrix[0][0];\n int fp = confusionMatrix[0][1];\n int fn = confusionMatrix[1][0];\n int tn = confusionMatrix[1][1];\n float posPrecision = (float) tp / (tp + fp);\n float negPrecision = (float) tn / (tn + fn);\n float posRecall = (float) tp / (tp + fn);\n float negRecall = (float) tn / (tn + fp);\n\n double averageAccuracy = foldPerfResults.stream()\n .mapToDouble(d -> d)\n .average()\n .orElse(0.0);\n double standardDeviation = Math.sqrt((foldPerfResults.stream()\n .mapToDouble(d -> d)\n .map(x -> Math.pow((x - averageAccuracy),2))\n .sum()) / foldPerfResults.size());\n\n System.out.println(\"accuracy: \" + averageAccuracy * 100 + \"% +/- \" + standardDeviation * 100 + \"%\");\n System.out.println();\n System.out.println(\" true 1 | true 0 | class precision\");\n System.out.println(\"-------------------------------------------\");\n System.out.println(\"pred. 1 | \"+tp+\" | \"+fp+\" | \"+posPrecision*100+\"%\");\n System.out.println(\"pred. 0 | \"+fn+\" | \"+tn+\" | \"+negPrecision*100+\"%\");\n System.out.println(\"-------------------------------------------\");\n System.out.println(\"class recall | \"+posRecall*100+\"% | \"+negRecall*100+\"% | \");\n\n return learnedTree;\n }", "public double crossValidationError(Instances insances, int num_of_folds) throws Exception {\n // Remember: before splitting the dataset for the cross validation, you need to shuffle the data.\n long startTimer = System.nanoTime();\n double crossValidationError = 0;\n crossValidationError = calcErrorWithTrainValid(insances, num_of_folds, crossValidationError);\n totalTimeForFolding = System.nanoTime() - startTimer;\n return crossValidationError / (double) num_of_folds;\n }", "public double crossValidation(Classifier classifier, int split, Instances instances, StringBuilder stringBuilder) throws Exception {\n evaluation = new Evaluation(instances);\n evaluation.crossValidateModel(classifier, instances, split, new Random(1));\n stringBuilder.append(\"Cross-Validation: \" + \"\\n\");\n stringBuilder.append(evaluation.toSummaryString() + \"\\n\");\n stringBuilder.append(evaluation.toMatrixString() + \"\\n\");\n return evaluation.pctCorrect();\n }", "public final void rule__CrossValidation__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:1855:1: ( ( 'cross_validation' ) )\n // InternalMLRegression.g:1856:1: ( 'cross_validation' )\n {\n // InternalMLRegression.g:1856:1: ( 'cross_validation' )\n // InternalMLRegression.g:1857:2: 'cross_validation'\n {\n before(grammarAccess.getCrossValidationAccess().getCross_validationKeyword_0()); \n match(input,30,FOLLOW_2); \n after(grammarAccess.getCrossValidationAccess().getCross_validationKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void ruleCrossValidation() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:341:2: ( ( ( rule__CrossValidation__Group__0 ) ) )\n // InternalMLRegression.g:342:2: ( ( rule__CrossValidation__Group__0 ) )\n {\n // InternalMLRegression.g:342:2: ( ( rule__CrossValidation__Group__0 ) )\n // InternalMLRegression.g:343:3: ( rule__CrossValidation__Group__0 )\n {\n before(grammarAccess.getCrossValidationAccess().getGroup()); \n // InternalMLRegression.g:344:3: ( rule__CrossValidation__Group__0 )\n // InternalMLRegression.g:344:4: rule__CrossValidation__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__CrossValidation__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getCrossValidationAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public NCrossValidations nCrossValidations() {\n return this.nCrossValidations;\n }", "public static void crossValidateHandsExperiment(Instances data, String results, int folds){\r\n\t ArrayList<String> classifierNames=new ArrayList<String>();\r\n\t Classifier[] c=ClassifierTools.setSingleClassifiers(classifierNames);\r\n\t OutFile f=new OutFile(results);\r\n\t f.writeString(\"\\\\begin{tabular}\\n\");\r\n\t double[][] preds;\r\n\t f.writeString(\",\");\r\n\t for(int i=0;i<c.length;i++)\r\n\t\t f.writeString(classifierNames.get(i)+\" & \");\r\n\t f.writeString(\"\\n & \");\r\n\t for(int i=0;i<c.length;i++){\r\n\t\t try{\r\n\t\t\t preds=ClassifierTools.crossValidation(c[i],data,folds);\r\n\t\t\t ResultsStats r=new ResultsStats(preds,folds);\r\n\t\t\t f.writeString(\"&\"+df.format(r.accuracy)+\" (\"+df.format(r.sd)+\") \");\r\n\t\t\t System.out.println(classifierNames.get(i)+\" Accuracy = \"+df.format(r.accuracy)+\" (\"+df.format(r.sd)+\") \");\r\n\t\t }catch(Exception e)\r\n\t\t {\r\n\t\t\t System.out.println(\" Error in crossValidate =\"+e);\r\n\t\t\t e.printStackTrace();\r\n\t\t\t System.exit(0);\r\n\t\t }\r\n\t }\r\n\t f.writeString(\"\\\\\\\\ \\n\");\r\n }", "public final EObject ruleCrossValidation() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token lv_k_2_0=null;\n Token otherlv_3=null;\n\n\n \tenterRule();\n\n try {\n // InternalMLRegression.g:753:2: ( (otherlv_0= 'cross_validation' otherlv_1= ':' ( (lv_k_2_0= RULE_INT ) ) otherlv_3= ';' ) )\n // InternalMLRegression.g:754:2: (otherlv_0= 'cross_validation' otherlv_1= ':' ( (lv_k_2_0= RULE_INT ) ) otherlv_3= ';' )\n {\n // InternalMLRegression.g:754:2: (otherlv_0= 'cross_validation' otherlv_1= ':' ( (lv_k_2_0= RULE_INT ) ) otherlv_3= ';' )\n // InternalMLRegression.g:755:3: otherlv_0= 'cross_validation' otherlv_1= ':' ( (lv_k_2_0= RULE_INT ) ) otherlv_3= ';'\n {\n otherlv_0=(Token)match(input,24,FOLLOW_4); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getCrossValidationAccess().getCross_validationKeyword_0());\n \t\t\n otherlv_1=(Token)match(input,12,FOLLOW_15); \n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getCrossValidationAccess().getColonKeyword_1());\n \t\t\n // InternalMLRegression.g:763:3: ( (lv_k_2_0= RULE_INT ) )\n // InternalMLRegression.g:764:4: (lv_k_2_0= RULE_INT )\n {\n // InternalMLRegression.g:764:4: (lv_k_2_0= RULE_INT )\n // InternalMLRegression.g:765:5: lv_k_2_0= RULE_INT\n {\n lv_k_2_0=(Token)match(input,RULE_INT,FOLLOW_6); \n\n \t\t\t\t\tnewLeafNode(lv_k_2_0, grammarAccess.getCrossValidationAccess().getKINTTerminalRuleCall_2_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getCrossValidationRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"k\",\n \t\t\t\t\t\tlv_k_2_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.INT\");\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,13,FOLLOW_2); \n\n \t\t\tnewLeafNode(otherlv_3, grammarAccess.getCrossValidationAccess().getSemicolonKeyword_3());\n \t\t\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public final EObject ruleCrossValidation() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n Token lv_k_2_0=null;\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:435:2: ( ( () otherlv_1= 'CrossValidation' ( (lv_k_2_0= RULE_INT ) )? ) )\n // InternalMyDsl.g:436:2: ( () otherlv_1= 'CrossValidation' ( (lv_k_2_0= RULE_INT ) )? )\n {\n // InternalMyDsl.g:436:2: ( () otherlv_1= 'CrossValidation' ( (lv_k_2_0= RULE_INT ) )? )\n // InternalMyDsl.g:437:3: () otherlv_1= 'CrossValidation' ( (lv_k_2_0= RULE_INT ) )?\n {\n // InternalMyDsl.g:437:3: ()\n // InternalMyDsl.g:438:4: \n {\n\n \t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\tgrammarAccess.getCrossValidationAccess().getCrossValidationAction_0(),\n \t\t\t\t\tcurrent);\n \t\t\t\n\n }\n\n otherlv_1=(Token)match(input,20,FOLLOW_17); \n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getCrossValidationAccess().getCrossValidationKeyword_1());\n \t\t\n // InternalMyDsl.g:448:3: ( (lv_k_2_0= RULE_INT ) )?\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0==RULE_INT) ) {\n alt5=1;\n }\n switch (alt5) {\n case 1 :\n // InternalMyDsl.g:449:4: (lv_k_2_0= RULE_INT )\n {\n // InternalMyDsl.g:449:4: (lv_k_2_0= RULE_INT )\n // InternalMyDsl.g:450:5: lv_k_2_0= RULE_INT\n {\n lv_k_2_0=(Token)match(input,RULE_INT,FOLLOW_2); \n\n \t\t\t\t\tnewLeafNode(lv_k_2_0, grammarAccess.getCrossValidationAccess().getKINTTerminalRuleCall_2_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getCrossValidationRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"k\",\n \t\t\t\t\t\tlv_k_2_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.INT\");\n \t\t\t\t\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Test\n public void test32() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String[] stringArray0 = new String[10];\n try {\n evaluation0.crossValidateModel((String) null, instances0, 21, stringArray0, (Random) null);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't find class called: null\n //\n }\n }", "public void doValidation(int currentRound)\n {\n getData(currentRound);\n// System.out.println(\"training unterminated ones\");\n kMeans.setItems(trainingData.get(0));\n kMeans.k=k1;\n kMeans.init();\n List<Cluster> unterminatedClusters=kMeans.doCluster();\n for (int i=0;i<unterminatedClusters.size();i++)\n {\n unterminatedClusters.get(i).label=0;\n }\n \n// System.out.println(\"training terminated ones\");\n kMeans.setItems(trainingData.get(1));\n kMeans.k=k2;\n kMeans.init();\n List<Cluster> terminatedClusters=kMeans.doCluster();\n for (int i=0;i<terminatedClusters.size();i++)\n {\n terminatedClusters.get(i).label=1;\n }\n \n List<Cluster> clusters=new ArrayList<Cluster>();\n clusters.addAll(unterminatedClusters);\n clusters.addAll(terminatedClusters);\n kMeans.setClusters(clusters);\n int[] corrects=new int[2];\n int[] counts=new int[2];\n for (int i=0;i<2;i++)\n {\n corrects[i]=0;\n counts[i]=0;\n }\n for (Item item:testData)\n {\n int label=kMeans.getNearestCluster(item).label;\n counts[label]++;\n if (label==item.type)\n {\n corrects[item.type]++;\n }\n }\n correctness+=corrects[1]*1.0/counts[1];\n correctCount+=corrects[1];\n// for (int i=0;i<2;i++)\n// System.out.println(\"for type \"+i+\": \" +corrects[i]+\" correct out of \"+counts[i]+\" in total (\"+corrects[i]*1.0/counts[i]+\")\");\n }", "public float crossValidation(Integer n) {\r\n\t\tSystem.out.println(\"Choose tags file...\");\r\n\t\tString typeFileName = setFilePath();\r\n\t\tSystem.out.println(\"Choose words file...\");\r\n\t\tString sentenceFile = setFilePath();\r\n\t\tBufferedReader inputType = null;\r\n\t\tBufferedReader inputWord = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tinputType = new BufferedReader( new FileReader(typeFileName));\r\n\t\t\tinputWord = new BufferedReader( new FileReader(sentenceFile));\r\n\t\t\tString lineType;\r\n\t\t\tString lineWord;\r\n\t\t\t//make two array lists of the entire text files, line by line\r\n\t\t\twhile ((lineType = inputType.readLine()) != null && (lineWord = inputWord.readLine()) != null) {\r\n\t\t\t\tthis.typeFile.add(lineType);\r\n\t\t\t\tthis.textFile.add(lineWord);\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tinputType.close();\r\n\t\t\t\tinputWord.close();\r\n\t\t\t} catch (IOException 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\r\n\t\tdouble correctFreq = 0.0;\r\n\t\tdouble totalPredictions = 0.0;\r\n\t\t\r\n\t\tint lineNumber = 0;\r\n\t\tInteger iteration = 0; \t\t\r\n\t\twhile (iteration < n) {\r\n\t\t\tArrayList<String> sentences = new ArrayList<String>();\r\n\t\t\tArrayList<String> types = new ArrayList<String>();\r\n\t\t\t\r\n\t\t\t//for each iteration, will deal out the correct line for cross-validation to testing\r\n\t\t\t//and the rest will be used for tagging\r\n\t\t\twhile (lineNumber < this.textFile.size()) {\r\n\t\t\t\tif ((lineNumber) % n == iteration ) {\r\n\t\t\t\t\tsentences.add(this.textFile.get(lineNumber));\r\n\t\t\t\t\ttypes.add(this.typeFile.get(lineNumber));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tupdateFrequency(this.textFile.get(lineNumber), this.typeFile.get(lineNumber));\r\n\t\t\t\t}\r\n\t\t\t\tlineNumber ++;\r\n\t\t\t}\r\n\t\t\t//once training is complete for this iteration, create the final probability maps \r\n\t\t\tupdateFinalMaps();\r\n\r\n\t\t\tint i = 0;\r\n\t\t\tfor (String sentence: sentences) {\r\n\t\t\t\tSystem.out.println(sentence);\r\n\r\n\t\t\t\tArrayList<String> prediction = predict(sentence);\r\n\t\t\t\tString[] actual = types.get(i).split(\" \");\r\n\t\t\t\tString s = \"\";\r\n\t\t\t\t\r\n\t\t\t\t//for each tag, if they are equal, add 1 to correctFrequency\r\n\t\t\t\tfor (int num = 0; num < prediction.size(); num ++){\r\n\t\t\t\t\tif (actual[num].equals(prediction.get(num))) {\r\n\t\t\t\t\t\tcorrectFreq += 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//increase the total number of predictions\r\n\t\t\t\t\ttotalPredictions += 1;\r\n\t\t\t\t\ts += prediction.get(num) + \" \";\r\n\t\t\t\t}\r\n\t\t\t\ts = s.trim();\r\n\t\t\t\tSystem.out.println(\"Prediction: \" + s);\r\n\t\t\t\ti++;\t//next iteration\r\n\t\t\t}\r\n\t\t\t\tthis.transMap.clear();\r\n\t\t\t\tthis.transMapTemp.clear();\r\n\t\t\t\tthis.emissionMap.clear();\r\n\t\t\t\tthis.emissionMapTemp.clear();\r\n\t\t\titeration += 1;\r\n\t\t}\r\n\t\treturn (float) (correctFreq / totalPredictions) * 100;\r\n\t}", "public final void entryRuleCrossValidation() throws RecognitionException {\n try {\n // InternalMLRegression.g:329:1: ( ruleCrossValidation EOF )\n // InternalMLRegression.g:330:1: ruleCrossValidation EOF\n {\n before(grammarAccess.getCrossValidationRule()); \n pushFollow(FOLLOW_1);\n ruleCrossValidation();\n\n state._fsp--;\n\n after(grammarAccess.getCrossValidationRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "private boolean checkTrainingCondition(){\n //if one sample validation was negative, so trainingCondition will be false.\n for(Sample s: samples){\n if(!s.getValidation())\n return false;\n }\n return true;\n }", "public final EObject entryRuleCrossValidation() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleCrossValidation = null;\n\n\n try {\n // InternalMLRegression.g:740:56: (iv_ruleCrossValidation= ruleCrossValidation EOF )\n // InternalMLRegression.g:741:2: iv_ruleCrossValidation= ruleCrossValidation EOF\n {\n newCompositeNode(grammarAccess.getCrossValidationRule()); \n pushFollow(FOLLOW_1);\n iv_ruleCrossValidation=ruleCrossValidation();\n\n state._fsp--;\n\n current =iv_ruleCrossValidation; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public static void main(String[] args) {\n\t\tint[] featuresRemoved = new int[]{14,15,0,3,7,8,9,13}; //removed age,education,relationship,race,sex,country\n\t\t\n\t\tCrossValidation.Allow_testSet_to_be_Appended = true;\n\t\tDataManager.SetRegex(\"?\");\n\t\tDataManager.SetSeed(0l); //debugging for deterministic random\n\t\t\n\t\tArrayList<String[]> dataSet = DataManager.ReadCSV(\"data/adult.train.5fold.csv\",false);\n\t\tdataSet = DataManager.ReplaceMissingValues(dataSet);\n\t\tDoubleMatrix M = DataManager.dataSetToMatrix(dataSet,14);\n\t\tList<DoubleMatrix> bins = DataManager.split(M, 15);\n\t\t//List<DoubleMatrix> bins = DataManager.splitFold(M, 5,true); //random via permutation debugging\n\t\t\n\t\tArrayList<String[]> testSet = DataManager.ReadCSV(\"data/adult.test.csv\",false);\n\t\ttestSet = DataManager.ReplaceMissingValues(testSet);\n\t\tDoubleMatrix test = DataManager.dataSetToMatrix(testSet,14);\n\t\tList<DoubleMatrix> testBins = DataManager.splitFold(test, 8, false);\n\t\t\n\t\t\n\t\t//initiate threads \n\t\tint threadPool = 16;\n\t\tExecutorService executor = Executors.newFixedThreadPool(threadPool);\n\t\tList<Callable<Record[]>> callable = new ArrayList<Callable<Record[]>>();\t\t\n\t\t\n\t\tlong startTime = System.currentTimeMillis(); //debugging - test for optimisation \n\t\t\n\t\t\n\t\t\n\t\t//unweighted\n\t\tSystem.out.println(\"Validating Unweighted KNN...\");\n\t\tfor(int i = 0; i < bins.size(); i++) {\n\t\t\t\n\t\t\tDoubleMatrix Train = new DoubleMatrix(0,bins.get(0).columns);\n\t\t\tDoubleMatrix Validation = bins.get(i);\n\t\t\t\n\t\t\tfor(int j = 0; j < bins.size(); j++) {\n\t\t\t\tif(i != j) {\n\t\t\t\t\tTrain = DoubleMatrix.concatVertically(Train, bins.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//build worker thread\n\t\t\tCrossValidation fold = new CrossValidation(Train, Validation,14,featuresRemoved,40,2,false);\n\t\t\tcallable.add(fold);\n\t\t}\n\t\t\n\t\t//returned statistics of each fold.\n\t\tList<Record[]> unweightedRecords = new ArrayList<Record[]>();\n\t\t\n\t\ttry {\n\t\t\t//collect all work thread values \n\t\t\tList<Future<Record[]>> set = executor.invokeAll(callable);\n\t\t\t\n\t\t\tfor(Future<Record[]> recordFold : set) {\n\t\t\t\tunweightedRecords.add(recordFold.get());\n\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\t\n\t\n\t\tcallable.clear();\n\t\t\n\t\t\n\t\t\n\t\t//weighted\n\t\tSystem.out.println(\"Validating Weighted KNN...\");\n\t\tfor(int i = 0; i < bins.size(); i++) {\n\t\t\tDoubleMatrix Train = new DoubleMatrix(0,bins.get(0).columns);\n\t\t\tDoubleMatrix Validation = bins.get(i);\n\t\t\t\n\t\t\tfor(int j = 0; j < bins.size(); j++) {\n\t\t\t\tif(i != j) {\n\t\t\t\t\tTrain = DoubleMatrix.concatVertically(Train, bins.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//build worker thread\n\t\t\tCrossValidation fold = new CrossValidation(Train, Validation,14,featuresRemoved,40,2,true);\n\t\t\tcallable.add(fold);\n\t\t}\n\t\t\n\t\t//returned statistics of each fold.\n\t\tList<Record[]> weightedRecords = new ArrayList<Record[]>();\n\t\t\n\t\ttry {\n\t\t\t//collect all work thread values \n\t\t\tList<Future<Record[]>> set = executor.invokeAll(callable);\n\t\t\t\n\t\t\tfor(Future<Record[]> recordFold : set) {\n\t\t\t\tweightedRecords.add(recordFold.get());\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\t\t\n\t\t\n\t\t\n\t\t\n\t\t//find best parameter \n\t\tint bestKNN = 0;\n\t\tdouble bestAccuracy = 0;\n\t\tboolean weighted = false;\n\t\tint validationIndex = 0;\n\t\tfor(int i = 0; i < unweightedRecords.get(0).length; i++) {\n\t\t\t\n\t\t\tint currentK = 0;\n\t\t\tdouble currentAccuracy = 0;\n\t\t\t\n\t\t\tList<Record[]> a = new ArrayList<Record[]>();\n\t\t\tfor(int j = 0; j < unweightedRecords.size(); j ++) { \n\t\t\t\ta.add(new Record[]{ unweightedRecords.get(j)[i]});\n\t\t\t\tcurrentK = unweightedRecords.get(j)[i].KNN;\n\t\t\t}\n\t\t\t\n\t\t\tint[][] m = DataManager.combineMat(a);\n\t\t\tcurrentAccuracy = DataManager.getAccuracy(m);\n\t\t\t\n\t\t\tif(currentAccuracy > bestAccuracy) {\n\t\t\t\tbestKNN = currentK;\n\t\t\t\tbestAccuracy = currentAccuracy;\n\t\t\t\tweighted = false;\n\t\t\t\tvalidationIndex = i;\n\t\t\t\tSystem.out.println(bestKNN + \" : unweighted : \" +bestAccuracy + \" : Best\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(currentK + \" : unweighted : \" + currentAccuracy);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i = 0; i < weightedRecords.get(0).length; i++) {\n\t\t\t\n\t\t\tint currentK = 0;\n\t\t\tdouble currentAccuracy = 0;\n\t\t\t\n\t\t\tList<Record[]> a = new ArrayList<Record[]>();\n\t\t\tfor(int j = 0; j < weightedRecords.size(); j ++) { \n\t\t\t\ta.add(new Record[]{ weightedRecords.get(j)[i]});\n\t\t\t\tcurrentK = weightedRecords.get(j)[i].KNN;\n\t\t\t}\n\t\t\t\n\t\t\tint[][] m = DataManager.combineMat(a);\n\t\t\tcurrentAccuracy = DataManager.getAccuracy(m);\n\t\t\t\n\t\t\tif(currentAccuracy >= bestAccuracy) {\n\t\t\t\tbestKNN = currentK;\n\t\t\t\tbestAccuracy = currentAccuracy;\n\t\t\t\tweighted = true;\n\t\t\t\tvalidationIndex = i;\n\t\t\t\tSystem.out.println(bestKNN + \" : weighted :\" +bestAccuracy + \" : Best\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(currentK + \" : weighted :\" + currentAccuracy);\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t\n\t\tList<Record[]> bestValidation = new ArrayList<Record[]>();\n\t\tfor(int i = 0; i < bins.size(); i++) {\n\t\t\tif(weighted) {\n\t\t\t\tbestValidation.add(new Record[]{ weightedRecords.get(i)[validationIndex]});\n\t\t\t} else {\n\t\t\t\tbestValidation.add(new Record[]{ unweightedRecords.get(i)[validationIndex]});\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Testing...\");\n\t\t\n\t\t//KNN on test set\n\t\tcallable.clear();\n\t\t\n\t\t//build worker threads\n\t\tfor(int i = 0; i < testBins.size(); i++) {\n\t\t\tCrossValidation fold = new CrossValidation(M, testBins.get(i),14,featuresRemoved,bestKNN,bestKNN,weighted);\n\t\t\tcallable.add(fold);\n\t\t}\n\t\t\n\t\tList<Record[]> testRecords = new ArrayList<Record[]>();\n\t\t\n\t\ttry {\n\t\t\tList<Future<Record[]>> set = executor.invokeAll(callable);\n\t\t\t\n\t\t\tfor(Future<Record[]> recordFold : set) {\n\t\t\t\ttestRecords.add(recordFold.get());\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\tint[][] testM = DataManager.combineMat(testRecords);\n\t\tdouble testAccuracy = DataManager.getAccuracy(testM);\n\t\t//double teststd = DataManager.GetStd(testRecords);\n\t\t\n\t\t//print stuff\n\t\tSystem.out.println(bestKNN + \" : \"+ weighted + \" : \" + testAccuracy);\n\t\tSystem.out.println(testM[0][0] + \", \" + testM[0][1] +\", \" + testM[1][0] + \", \" + testM[1][1]);\n\t\t\n\t\t//delete all worker threads\n\t\texecutor.shutdownNow();\n\t\t\n\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\tlong totalTime = endTime - startTime;\n\t\tSystem.out.println(\"Run time(millisecond): \" + totalTime );\n\t\tSystem.out.println(\"Thread pool: \" + threadPool );\n\t\tSystem.out.println(\"Cores: \" + Runtime.getRuntime().availableProcessors());\n\t\t\n\t\t//prints to file\n\t\tDataManager.saveRecord(\"data/grid.results.txt\", 14, featuresRemoved,\"<=50k\", bestKNN, weighted, bestValidation, testRecords, testRecords.get(0)[0].classType, 5, totalTime, threadPool);\n\t}", "public static void runMarginPerceptron(Data[] data, int index,String testFileName,HashMap<Integer,Integer> words)\r\n{\r\n int t=0;\r\n double LearningRates[] = {1, 0.1, 0.01};\r\n double Margins[] = {1, 0.1, 0.01};\r\n\r\n\tint minInt =0; // Set To Your Desired Min Value\r\n int maxInt =2;\r\n\tRandom rand = new Random();\r\n\t\r\n \tint randomNum = rand.nextInt((maxInt - minInt) + 1) + minInt;\r\n\r\n \tdouble LearningRate = LearningRates[randomNum];\r\n \t\r\nfor(int m=0;m<LearningRates.length;m++)\r\n{\r\n for(int i=0;i<LearningRates.length;i++)\r\n {\r\n\t LearningRate = LearningRates[i];\r\n\t\t double devAccuracyTotal = (double)0;\r\n\t\t int noOfEpochs= 20;\r\n\t\t int decreaseRate = 0;\r\n\t\t \r\n \t\t Double w[] = new Double[74500];\r\n\t\t Double min =-0.01; // Set To Your Desired Min Value\r\n\t Double max = 0.01;\r\n\t \t\tdouble smallRandNumber = min + new Random().nextDouble() * (max - min); \r\n\t\t\tArrays.fill(w, smallRandNumber);\r\n\t\t\t\r\n\t\t for(int epoch=0;epoch<noOfEpochs;epoch++)\r\n\t\t {\r\n\t\t\t \tw = learnMarginPerceptron(data,index,LearningRate,decreaseRate,w,Margins[m]);\r\n\t\t\t \tdecreaseRate = decreaseRate + index;\r\n\t\t\r\n\t\t }\r\n\t\t//CVSplit test\r\n \tdouble cvAccuracy = testTestFile(w,testFileName,words);\r\n \t\r\n// \tSystem.out.println(\"Epoch\" + epoch +\" Dev Accuracy for Decaying Learning Rate \" + LearningRate + \" is \" + cvAccuracy);\r\n \r\n \r\n \tSystem.out.println(\" ** Cv Accuracy for Margin Rate\" + Margins[m] + \" Learning Rate \" + LearningRate + \" is \" + cvAccuracy);\r\n \tSystem.out.println(\" \");\r\n }\r\n}\r\n//double testAccuracy = testTestFile(w,testFileName);\r\n\t//System.out.println(\"test Accuracy\" + testAccuracy);\r\n}", "public float getProbCross () {\r\n return cross_prob;\r\n }", "@Test(timeout = 4000)\n public void test100() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n MockRandom mockRandom0 = new MockRandom(1);\n try { \n evaluation0.crossValidateModel((Classifier) costSensitiveClassifier0, instances0, 2, (Random) mockRandom0, (Object[]) costSensitiveClassifier0.TAGS_MATRIX_SOURCE);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // weka.core.Tag cannot be cast to weka.classifiers.evaluation.output.prediction.AbstractOutput\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "public void iniciarValidacaoCorrespondencias(Dataset dataset);", "IVec3 cross(IVec3 v);", "private RiValCrossValidatedRecsys() {\n }", "protected float computeModelScoreOnValidation() {\n/* 549 */ float score = computeModelScoreOnValidation(0, this.validationSamples.size() - 1);\n/* 550 */ return score / this.validationSamples.size();\n/* */ }", "public void setProbCross (float value) {\r\n cross_prob = value;\r\n }", "private double validate(int k) {\n\t\tArrayList<Product> allData = trainData;\n\t\tshuffle(allData);\n\t\tArrayList<Double> accurs = new ArrayList<Double>();\n\t\tif (k < 1 || k > allData.size()) return -1;\n\t\tint foldLength = allData.size() / k;\n\t\tfor (int i = 0; i < k; i++) {\n\t\t\tArrayList<Product> fold = new ArrayList<Product>();\n\t\t\tArrayList<Product> rest = new ArrayList<Product>();\n\t\t\tfold.addAll(allData.subList(i * foldLength, (i + 1) * foldLength));\n\t\t\trest.addAll(allData.subList(0, i * foldLength));\n\t\t\trest.addAll(allData.subList((i + 1) * foldLength, allData.size()));\n\t\t\tdouble[] predict = classify(fold, rest);\n\t\t\tdouble[] real = getLabels(fold);\n\t\t\taccurs.add(getAccuracyBinary(predict, real));\n\t\t}\n\t\tdouble accur = 0;\n\t\tfor (int i = 0; i < accurs.size(); i++) {\n\t\t\taccur += accurs.get(i);\n\t\t}\n\t\taccur /= accurs.size();\n\t\treturn accur;\n\t}", "@Test\r\n\tpublic final void testCross() throws GeneticProgrammingException {\r\n\t\tfinal int[] training = TestHelper.genertateTrainingDataSet(-100, 100);\r\n\t\tfinal double[] targetValues = TestHelper.calculateTargetValues(\r\n\t\t\t\t\"x*2-1/2\", training);\r\n\t\tfinal Node root = new Node(null, \"/\", null, Node.OPERATOR);\r\n\t\tfinal Tree newTree = new Tree(root, new TerminalSet(),\r\n\t\t\t\tnew FunctionalSet());\r\n\t\tfinal Node minusOperator = new Node(root, \"-\", Node.LEFT, Node.OPERATOR);\r\n\t\tnewTree.addNode(minusOperator);\r\n\t\tfinal Node multiOperator = new Node(root, \"*\", Node.RIGHT,\r\n\t\t\t\tNode.OPERATOR);\r\n\t\tnewTree.addNode(multiOperator);\r\n\t\tnewTree.addNode(new Node(minusOperator, \"1\", Node.LEFT, Node.OPERAND));\r\n\t\tnewTree.addNode(new Node(minusOperator, \"3\", Node.RIGHT, Node.OPERAND));\r\n\t\tnewTree.addNode(new Node(multiOperator, \"x\", Node.LEFT, Node.OPERAND));\r\n\t\tnewTree.addNode(new Node(multiOperator, \"5\", Node.RIGHT, Node.OPERAND));\r\n\t\tassertEquals(\"Tree did not get generated corectly\", \"(1-3)/(x*5)\",\r\n\t\t\t\tnewTree.getEquation().toString());\r\n\t\tfinal Node root2 = new Node(null, \"/\", null, Node.OPERATOR);\r\n\t\tfinal Tree newTree2 = new Tree(root2, new TerminalSet(),\r\n\t\t\t\tnew FunctionalSet());\r\n\t\tfinal Node minusOperator2 = new Node(root2, \"-\", Node.LEFT,\r\n\t\t\t\tNode.OPERATOR);\r\n\t\tnewTree2.addNode(minusOperator2);\r\n\t\tfinal Node multiOperator2 = new Node(root2, \"*\", Node.RIGHT,\r\n\t\t\t\tNode.OPERATOR);\r\n\t\tnewTree2.addNode(multiOperator2);\r\n\t\tnewTree2\r\n\t\t\t\t.addNode(new Node(minusOperator2, \"x\", Node.LEFT, Node.OPERAND));\r\n\t\tnewTree2\r\n\t\t\t\t.addNode(new Node(minusOperator2, \"7\", Node.RIGHT, Node.OPERAND));\r\n\t\tnewTree2\r\n\t\t\t\t.addNode(new Node(multiOperator2, \"8\", Node.LEFT, Node.OPERAND));\r\n\t\tnewTree2\r\n\t\t\t\t.addNode(new Node(multiOperator2, \"9\", Node.RIGHT, Node.OPERAND));\r\n\t\tassertEquals(\"Tree did not get generated corectly\", \"(x-7)/(8*9)\",\r\n\t\t\t\tnewTree2.getEquation().toString());\r\n\r\n\t\tfinal Node root3 = new Node(null, \"/\", null, Node.OPERATOR);\r\n\t\tfinal Tree newTree3 = new Tree(root3, new TerminalSet(),\r\n\t\t\t\tnew FunctionalSet());\r\n\t\tfinal Node minusOperator3 = new Node(root3, \"-\", Node.LEFT,\r\n\t\t\t\tNode.OPERATOR);\r\n\t\tnewTree3.addNode(minusOperator3);\r\n\t\tfinal Node multiOperator3 = new Node(root3, \"*\", Node.RIGHT,\r\n\t\t\t\tNode.OPERATOR);\r\n\t\tnewTree3.addNode(multiOperator3);\r\n\t\tfinal Node multiOperator4 = new Node(multiOperator3, \"*\", Node.LEFT,\r\n\t\t\t\tNode.OPERATOR);\r\n\t\tnewTree3.addNode(multiOperator4);\r\n\t\tfinal Node multiOperator5 = new Node(multiOperator3, \"*\", Node.RIGHT,\r\n\t\t\t\tNode.OPERATOR);\r\n\t\tnewTree3.addNode(multiOperator5);\r\n\t\tnewTree3\r\n\t\t\t\t.addNode(new Node(minusOperator3, \"x\", Node.LEFT, Node.OPERAND));\r\n\t\tnewTree3\r\n\t\t\t\t.addNode(new Node(minusOperator3, \"7\", Node.RIGHT, Node.OPERAND));\r\n\t\tnewTree3\r\n\t\t\t\t.addNode(new Node(multiOperator4, \"1\", Node.LEFT, Node.OPERAND));\r\n\t\tnewTree3\r\n\t\t\t\t.addNode(new Node(multiOperator4, \"2\", Node.RIGHT, Node.OPERAND));\r\n\t\tnewTree3\r\n\t\t\t\t.addNode(new Node(multiOperator5, \"3\", Node.LEFT, Node.OPERAND));\r\n\t\tnewTree3\r\n\t\t\t\t.addNode(new Node(multiOperator5, \"4\", Node.RIGHT, Node.OPERAND));\r\n\t\tassertEquals(\"Tree did not get generated corectly\",\r\n\t\t\t\t\"(x-7)/(1*2)*(3*4)\", newTree3.getEquation().toString());\r\n\t\tfinal ArrayList<Tree> newTrees = new ArrayList<Tree>();\r\n\t\tnewTrees.add(newTree3);\r\n\t\tnewTrees.add(newTree2);\r\n\t\tnewTrees.add(newTree);\r\n\t\tassertEquals(\"Tree should have a size of 3 before the cross\", 3,\r\n\t\t\t\tnewTrees.size());\r\n\t\tCrossover.cross(newTrees, 1, 100, training, targetValues);\r\n\t\tfinal Iterator<Tree> iterator = newTrees.iterator();\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\t// All five trees should be different\r\n\t\t\tfinal String firstTree = iterator.next().toString();\r\n\t\t\tassertNotSame(\"Cross should change the tree but did not 1\",\r\n\t\t\t\t\tfirstTree, iterator.next().toString());\r\n\t\t\tassertNotSame(\"Cross should change the tree but did not 2\",\r\n\t\t\t\t\tfirstTree, iterator.next().toString());\r\n\t\t\tassertNotSame(\"Cross should change the tree but did not 3\",\r\n\t\t\t\t\tfirstTree, iterator.next().toString());\r\n\t\t\tassertNotSame(\"Cross should change the tree but did not 4\",\r\n\t\t\t\t\tfirstTree, iterator.next().toString());\r\n\t\t}\r\n\t\t// should be 5 trees after the crossover\r\n\t\tassertEquals(\"Tree should have a size of 5 but was not\", 5, newTrees\r\n\t\t\t\t.size());\r\n\t}", "public static <T> double error(List<? extends LabelledPoint<T>> crossValidation,\n SensorBeliefModel<T> model) {\n return crossValidation.stream().mapToDouble(point -> {\n MassFunction actualMassFunction = model.toMass(point.getValue());\n MutableMass idealMassFunction = model.getFrame().newMass()\n .set(point.getStateSet(), 1.0)\n .putRemainingOnIgnorance();\n double distance = Mass.jousselmeDistance(actualMassFunction, idealMassFunction);\n return distance * distance;\n }).average().orElse(0);\n }", "public final EObject entryRuleCrossValidation() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleCrossValidation = null;\n\n\n try {\n // InternalMyDsl.g:422:56: (iv_ruleCrossValidation= ruleCrossValidation EOF )\n // InternalMyDsl.g:423:2: iv_ruleCrossValidation= ruleCrossValidation EOF\n {\n newCompositeNode(grammarAccess.getCrossValidationRule()); \n pushFollow(FOLLOW_1);\n iv_ruleCrossValidation=ruleCrossValidation();\n\n state._fsp--;\n\n current =iv_ruleCrossValidation; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void evaluate(String sampleFile, String featureDefFile, int nFold, float tvs, String modelDir, String modelFile) {\n/* 854 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 855 */ List<List<RankList>> validationData = new ArrayList<>();\n/* 856 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* */ \n/* 860 */ List<RankList> samples = readInput(sampleFile);\n/* */ \n/* */ \n/* 863 */ int[] features = readFeature(featureDefFile);\n/* 864 */ if (features == null) {\n/* 865 */ features = FeatureManager.getFeatureFromSampleVector(samples);\n/* */ }\n/* 867 */ FeatureManager.prepareCV(samples, nFold, tvs, trainingData, validationData, testData);\n/* */ \n/* */ \n/* 870 */ if (normalize)\n/* */ {\n/* 872 */ for (int j = 0; j < nFold; j++) {\n/* */ \n/* 874 */ normalizeAll(trainingData, features);\n/* 875 */ normalizeAll(validationData, features);\n/* 876 */ normalizeAll(testData, features);\n/* */ } \n/* */ }\n/* */ \n/* 880 */ Ranker ranker = null;\n/* 881 */ double scoreOnTrain = 0.0D;\n/* 882 */ double scoreOnTest = 0.0D;\n/* 883 */ double totalScoreOnTest = 0.0D;\n/* 884 */ int totalTestSampleSize = 0;\n/* */ \n/* 886 */ double[][] scores = new double[nFold][]; int i;\n/* 887 */ for (i = 0; i < nFold; i++) {\n/* 888 */ (new double[2])[0] = 0.0D; (new double[2])[1] = 0.0D; scores[i] = new double[2];\n/* 889 */ } for (i = 0; i < nFold; i++) {\n/* */ \n/* 891 */ List<RankList> train = trainingData.get(i);\n/* 892 */ List<RankList> vali = null;\n/* 893 */ if (tvs > 0.0F)\n/* 894 */ vali = validationData.get(i); \n/* 895 */ List<RankList> test = testData.get(i);\n/* */ \n/* 897 */ RankerTrainer trainer = new RankerTrainer();\n/* 898 */ ranker = trainer.train(this.type, train, vali, features, this.trainScorer);\n/* */ \n/* 900 */ double s2 = evaluate(ranker, test);\n/* 901 */ scoreOnTrain += ranker.getScoreOnTrainingData();\n/* 902 */ scoreOnTest += s2;\n/* 903 */ totalScoreOnTest += s2 * test.size();\n/* 904 */ totalTestSampleSize += test.size();\n/* */ \n/* */ \n/* 907 */ scores[i][0] = ranker.getScoreOnTrainingData();\n/* 908 */ scores[i][1] = s2;\n/* */ \n/* */ \n/* 911 */ if (!modelDir.isEmpty()) {\n/* */ \n/* 913 */ ranker.save(FileUtils.makePathStandard(modelDir) + \"f\" + (i + 1) + \".\" + modelFile);\n/* 914 */ System.out.println(\"Fold-\" + (i + 1) + \" model saved to: \" + modelFile);\n/* */ } \n/* */ } \n/* 917 */ System.out.println(\"Summary:\");\n/* 918 */ System.out.println(this.testScorer.name() + \"\\t| Train\\t| Test\");\n/* 919 */ System.out.println(\"----------------------------------\");\n/* 920 */ for (i = 0; i < nFold; i++)\n/* 921 */ System.out.println(\"Fold \" + (i + 1) + \"\\t| \" + SimpleMath.round(scores[i][0], 4) + \"\\t| \" + SimpleMath.round(scores[i][1], 4) + \"\\t\"); \n/* 922 */ System.out.println(\"----------------------------------\");\n/* 923 */ System.out.println(\"Avg.\\t| \" + SimpleMath.round(scoreOnTrain / nFold, 4) + \"\\t| \" + SimpleMath.round(scoreOnTest / nFold, 4) + \"\\t\");\n/* 924 */ System.out.println(\"----------------------------------\");\n/* 925 */ System.out.println(\"Total\\t| \\t\\t| \" + SimpleMath.round(totalScoreOnTest / totalTestSampleSize, 4) + \"\\t\");\n/* */ }", "public void run() throws Exception {\r\n\r\n\r\n LibSVM svm = new LibSVM();\r\n String svmOptions = \"-S 0 -K 2 -C 8 -G 0\"; //Final result: [1, -7 for saveTrainingDataToFileHybridSampling2 ]\r\n svm.setOptions(weka.core.Utils.splitOptions(svmOptions));\r\n System.out.println(\"SVM Type and Keranl Type= \" + svm.getSVMType() + svm.getKernelType());//1,3 best result 81%\r\n // svm.setNormalize(true);\r\n\r\n\r\n// load training data from .arff file\r\n ConverterUtils.DataSource source = new ConverterUtils.DataSource(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSSMOTE464Random.arff\");\r\n System.out.println(\"\\n\\nLoaded data:\\n\\n\" + source.getDataSet());\r\n Instances dataFiltered = source.getDataSet();\r\n dataFiltered.setClassIndex(0);\r\n\r\n // gridSearch(svm, dataFiltered);\r\n Evaluation evaluation = new Evaluation(dataFiltered);\r\n evaluation.crossValidateModel(svm, dataFiltered, 10, new Random(1));\r\n System.out.println(evaluation.toSummaryString());\r\n System.out.println(evaluation.weightedAreaUnderROC());\r\n double[][] confusionMatrix = evaluation.confusionMatrix();\r\n for (int i = 0; i < 2; i++) {\r\n for (int j = 0; j < 2; j++) {\r\n System.out.print(confusionMatrix[i][j] + \" \");\r\n\r\n }\r\n System.out.println();\r\n }\r\n System.out.println(\"accuracy for crime class= \" + (confusionMatrix[0][0] / (confusionMatrix[0][1] + confusionMatrix[0][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for other class= \" + (confusionMatrix[1][1] / (confusionMatrix[1][1] + confusionMatrix[1][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for crime class= \" + evaluation.truePositiveRate(0) + \"%\");\r\n System.out.println(\"accuracy for other class= \" + evaluation.truePositiveRate(1) + \"%\");\r\n\r\n\r\n }", "private void crossProduct() {\n BaseCandidateElement[] it = o.inputObject.firstStageCandidates.values().toArray(new BaseCandidateElement[0]);\n // logger.info(Arrays.toString(it));\n for (int i = 0; i < it.length; i++) {\n for (int j = i + 1; j < it.length; j++) {\n if (PrecisConfigProperties.HIERARCHY_DIMS_ENABLED && hierarchyDimsNegation.checkIfBelongToSameHierarchyGroup(it[i], it[j]))\n continue;\n if (it[i].xor(it[j]).cardinality() == 4) {\n BitSet b = it[i].or(it[j]);\n o.inputObject.addCandidate(b);\n }\n }\n }\n }", "static double cross(Vec a, Vec b) {\n return a.x * b.y - a.y * b.x;\n }", "@Test\n\tpublic void testCrossover() {\n\t\tint pivot = 5;\n\t\tint size = g10.getUnits().size();\n\t\tArrayList<GenomeDouble> expectedWeights1;\n\t\tArrayList<GenomeDouble> expectedWeights2;\n\t\t\n\t\texpectedWeights1 = new ArrayList<GenomeDouble>(g10.getUnits().size());\n\t\texpectedWeights2 = new ArrayList<GenomeDouble>(g10_2.getUnits().size());\n\t\t\n\t\texpectedWeights1.addAll(g10.getUnits().subList(0, pivot));\n\t\texpectedWeights1.addAll(g10_2.getUnits().subList(pivot, size));\n\t\texpectedWeights2.addAll(g10_2.getUnits().subList(0, pivot));\n\t\texpectedWeights2.addAll(g10.getUnits().subList(pivot, size));\n\t\t\n\t\tList<Genome<GenomeDouble>> results = Genome.crossover(g10, g10_2, 0.7, 10);\n\t\tassertEquals(expectedWeights1, results.get(0).getUnits());\n\t\tassertEquals(expectedWeights2, results.get(1).getUnits());\n\t}", "public void MultipointCrossoverDNF (TableVar Variables) {\r\n int i, j, mom, dad, xpoint1, xpoint2;\r\n\r\n // We cross the two better individuals (the first ones)\r\n mom = 0; // Better individual\r\n dad = 1; // Second individual\r\n\r\n // Copy the individuals to cross\r\n for (i=0; i<Variables.getNVars(); i++) {\r\n for (j=0; j<=Variables.getNLabelVar(i); j++) {\r\n Des.setCromElemGene(0, i, j, Inter.getCromElemGene(mom,i, j));\r\n Des.setCromElemGene (1, i, j, Inter.getCromElemGene(dad,i, j));\r\n }\r\n }\r\n\r\n // Generation of the two points for the crossover\r\n xpoint1 = Randomize.Randint (0,(Variables.getNVars()-1));\r\n if (xpoint1!=Variables.getNVars()-1)\r\n xpoint2 = Randomize.Randint ((xpoint1+1),(Variables.getNVars()-1));\r\n else\r\n xpoint2 = Variables.getNVars()-1;\r\n\r\n // Cross the parts between both points\r\n for (i=xpoint1;i<=xpoint2;i++) {\r\n for (j=0; j<=Variables.getNLabelVar(i); j++) {\r\n Des.setCromElemGene(mom, i, j, Inter.getCromElemGene(dad,i,j));\r\n Des.setCromElemGene(dad, i, j, Inter.getCromElemGene(mom,i,j));\r\n }\r\n }\r\n\r\n // New individuals are not evaluated\r\n Des.setIndivEvaluated (mom, false);\r\n Des.setIndivEvaluated (dad, false);\r\n\r\n }", "private int robustCrossingInternal(S2Point d) {\n int result = robustCrossingInternal2(d);\n this.c = d;\n this.acb = -bdaReturn;\n return result;\n }", "private float[] crossProduct(float[] v1, float[] v2) {\n float[] result = new float[3];\n result[0] = v1[1] * v2[2] - v2[1] * v1[2];\n result[1] = v1[2] * v2[0] - v2[2] * v1[0];\n result[2] = v1[0] * v2[1] - v2[0] * v1[1];\n return result;\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateCheckboxField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the whether error message is getting displayed when the user doesnot marks Terms and conditions check box \"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.validateCheckboxTermsAndCnds(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}", "public static float calculateErrorOnValidationSet(MultiLayerPerceptron mlp) {\n float error=0.0f;\n float errorOnJthSample;\n for(int j = 0; j < validationSet.getTests().size(); j++){\n ArrayList<Float> actualOutput = mlp.calculateOutput(trainingSet.getInput(j));\n ArrayList<Float> expectedOutput = trainingSet.getOutput(j);\n for(int k = 0; k < actualOutput.size();k++){\n errorOnJthSample= Math.abs(expectedOutput.get(k) - actualOutput.get(k));\n error+=errorOnJthSample*errorOnJthSample;\n }\n }\n return error;\n }", "public double train(double[] X, double argValue);", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n FilteredClassifier filteredClassifier0 = new FilteredClassifier();\n try { \n Evaluation.evaluateModel((Classifier) filteredClassifier0, testInstances0.DEFAULT_WORDS);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // Weka exception: No training file and no object input file given.\n // \n // General options:\n // \n // -h or -help\n // \\tOutput help information.\n // -synopsis or -info\n // \\tOutput synopsis for classifier (use in conjunction with -h)\n // -t <name of training file>\n // \\tSets training file.\n // -T <name of test file>\n // \\tSets test file. If missing, a cross-validation will be performed\n // \\ton the training data.\n // -c <class index>\n // \\tSets index of class attribute (default: last).\n // -x <number of folds>\n // \\tSets number of folds for cross-validation (default: 10).\n // -no-cv\n // \\tDo not perform any cross validation.\n // -split-percentage <percentage>\n // \\tSets the percentage for the train/test set split, e.g., 66.\n // -preserve-order\n // \\tPreserves the order in the percentage split.\n // -s <random number seed>\n // \\tSets random number seed for cross-validation or percentage split\n // \\t(default: 1).\n // -m <name of file with cost matrix>\n // \\tSets file with cost matrix.\n // -l <name of input file>\n // \\tSets model input file. In case the filename ends with '.xml',\n // \\ta PMML file is loaded or, if that fails, options are loaded\n // \\tfrom the XML file.\n // -d <name of output file>\n // \\tSets model output file. In case the filename ends with '.xml',\n // \\tonly the options are saved to the XML file, not the model.\n // -v\n // \\tOutputs no statistics for training data.\n // -o\n // \\tOutputs statistics only, not the classifier.\n // -i\n // \\tOutputs detailed information-retrieval statistics for each class.\n // -k\n // \\tOutputs information-theoretic statistics.\n // -classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\n // \\tUses the specified class for generating the classification output.\n // \\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\n // -p range\n // \\tOutputs predictions for test instances (or the train instances if\n // \\tno test instances provided and -no-cv is used), along with the \n // \\tattributes in the specified range (and nothing else). \n // \\tUse '-p 0' if no attributes are desired.\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -distribution\n // \\tOutputs the distribution instead of only the prediction\n // \\tin conjunction with the '-p' option (only nominal classes).\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -r\n // \\tOnly outputs cumulative margin distribution.\n // -g\n // \\tOnly outputs the graph representation of the classifier.\n // -xml filename | xml-string\n // \\tRetrieves the options from the XML-data instead of the command line.\n // -threshold-file <file>\n // \\tThe file to save the threshold data to.\n // \\tThe format is determined by the extensions, e.g., '.arff' for ARFF \n // \\tformat or '.csv' for CSV.\n // -threshold-label <label>\n // \\tThe class label to determine the threshold data for\n // \\t(default is the first label)\n // \n // Options specific to weka.classifiers.meta.FilteredClassifier:\n // \n // -F <filter specification>\n // \\tFull class name of filter to use, followed\n // \\tby filter options.\n // \\teg: \\\"weka.filters.unsupervised.attribute.Remove -V -R 1,2\\\"\n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n // -W\n // \\tFull name of base classifier.\n // \\t(default: weka.classifiers.trees.J48)\n // \n // Options specific to classifier weka.classifiers.trees.J48:\n // \n // -U\n // \\tUse unpruned tree.\n // -O\n // \\tDo not collapse tree.\n // -C <pruning confidence>\n // \\tSet confidence threshold for pruning.\n // \\t(default 0.25)\n // -M <minimum number of instances>\n // \\tSet minimum number of instances per leaf.\n // \\t(default 2)\n // -R\n // \\tUse reduced error pruning.\n // -N <number of folds>\n // \\tSet number of folds for reduced error\n // \\tpruning. One fold is used as pruning set.\n // \\t(default 3)\n // -B\n // \\tUse binary splits only.\n // -S\n // \\tDon't perform subtree raising.\n // -L\n // \\tDo not clean up after the tree has been built.\n // -A\n // \\tLaplace smoothing for predicted probabilities.\n // -J\n // \\tDo not use MDL correction for info gain on numeric attributes.\n // -Q <seed>\n // \\tSeed for random data shuffling (default 1).\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "@Override\n public void customValidation() {\n }", "@Override\n public void customValidation() {\n }", "@Override\n public void customValidation() {\n }", "public double AccuracyLossTestSet()\n\t{\n\t\tdouble accuracyLoss = 0;\n\t\t\n\t\tfor(int i = ITrain; i < ITrain+ITest; i++) \n\t\t{\n\t\t\tPreCompute(i);\n\t\t\t\n\t\t\tfor(int c = 0; c < C; c++) \n\t\t\t\taccuracyLoss += AccuracyLoss(i, c); \n\t\t}\n\t\treturn accuracyLoss;\n\t}", "void validate();", "void validate();", "public static double getCrossoverProbability() { return crossoverProbability; }", "public void dmall() {\n \r\n BufferedReader datafile = readDataFile(\"Work//weka-malware.arff\");\r\n \r\n Instances data = null;\r\n\t\ttry {\r\n\t\t\tdata = new Instances(datafile);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n data.setClassIndex(data.numAttributes() - 1);\r\n \r\n // Choose a type of validation split\r\n Instances[][] split = crossValidationSplit(data, 10);\r\n \r\n // Separate split into training and testing arrays\r\n Instances[] trainingSplits = split[0];\r\n Instances[] testingSplits = split[1];\r\n \r\n // Choose a set of classifiers\r\n Classifier[] models = { new J48(),\r\n new DecisionTable(),\r\n new DecisionStump(),\r\n new BayesianLogisticRegression() };\r\n \r\n // Run for each classifier model\r\n//for(int j = 0; j < models.length; j++) {\r\n int j = 0;\r\n \tswitch (comboClassifiers.getSelectedItem().toString()) {\r\n\t\t\tcase \"J48\":\r\n\t\t\t\tj = 0;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionTable\":\r\n\t\t\t\tj = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionStump\":\r\n\t\t\t\tj = 2;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"BayesianLogisticRegression\":\r\n\t\t\t\tj = 3;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n \t\r\n\r\n // Collect every group of predictions for current model in a FastVector\r\n FastVector predictions = new FastVector();\r\n \r\n // For each training-testing split pair, train and test the classifier\r\n for(int i = 0; i < trainingSplits.length; i++) {\r\n Evaluation validation = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tvalidation = simpleClassify(models[j], trainingSplits[i], testingSplits[i]);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n predictions.appendElements(validation.predictions());\r\n \r\n // Uncomment to see the summary for each training-testing pair.\r\n// textArea.append(models[j].toString() + \"\\n\");\r\n textArea.setText(models[j].toString() + \"\\n\");\r\n// System.out.println(models[j].toString());\r\n }\r\n \r\n // Calculate overall accuracy of current classifier on all splits\r\n double accuracy = calculateAccuracy(predictions);\r\n \r\n // Print current classifier's name and accuracy in a complicated, but nice-looking way.\r\n textArea.append(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\\n\");\r\n System.out.println(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\");\r\n//}\r\n \r\n\t}", "private double findAccuracy(){\n double[] prediciton = this.learner.test(this.VS);\n ClassificationEvaluator CE = new ClassificationEvaluator(prediciton, this.VS);\n double tmp = CE.returnAccuracy(); //find accuracy\n return tmp;\n }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n String[] stringArray0 = new String[2];\n stringArray0[1] = \"\";\n Evaluation.main(stringArray0);\n NaiveBayesMultinomial naiveBayesMultinomial0 = new NaiveBayesMultinomial();\n try { \n Evaluation.evaluateModel((Classifier) naiveBayesMultinomial0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // Weka exception: No training file and no object input file given.\n // \n // General options:\n // \n // -h or -help\n // \\tOutput help information.\n // -synopsis or -info\n // \\tOutput synopsis for classifier (use in conjunction with -h)\n // -t <name of training file>\n // \\tSets training file.\n // -T <name of test file>\n // \\tSets test file. If missing, a cross-validation will be performed\n // \\ton the training data.\n // -c <class index>\n // \\tSets index of class attribute (default: last).\n // -x <number of folds>\n // \\tSets number of folds for cross-validation (default: 10).\n // -no-cv\n // \\tDo not perform any cross validation.\n // -split-percentage <percentage>\n // \\tSets the percentage for the train/test set split, e.g., 66.\n // -preserve-order\n // \\tPreserves the order in the percentage split.\n // -s <random number seed>\n // \\tSets random number seed for cross-validation or percentage split\n // \\t(default: 1).\n // -m <name of file with cost matrix>\n // \\tSets file with cost matrix.\n // -l <name of input file>\n // \\tSets model input file. In case the filename ends with '.xml',\n // \\ta PMML file is loaded or, if that fails, options are loaded\n // \\tfrom the XML file.\n // -d <name of output file>\n // \\tSets model output file. In case the filename ends with '.xml',\n // \\tonly the options are saved to the XML file, not the model.\n // -v\n // \\tOutputs no statistics for training data.\n // -o\n // \\tOutputs statistics only, not the classifier.\n // -i\n // \\tOutputs detailed information-retrieval statistics for each class.\n // -k\n // \\tOutputs information-theoretic statistics.\n // -classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\n // \\tUses the specified class for generating the classification output.\n // \\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\n // -p range\n // \\tOutputs predictions for test instances (or the train instances if\n // \\tno test instances provided and -no-cv is used), along with the \n // \\tattributes in the specified range (and nothing else). \n // \\tUse '-p 0' if no attributes are desired.\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -distribution\n // \\tOutputs the distribution instead of only the prediction\n // \\tin conjunction with the '-p' option (only nominal classes).\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -r\n // \\tOnly outputs cumulative margin distribution.\n // -xml filename | xml-string\n // \\tRetrieves the options from the XML-data instead of the command line.\n // -threshold-file <file>\n // \\tThe file to save the threshold data to.\n // \\tThe format is determined by the extensions, e.g., '.arff' for ARFF \n // \\tformat or '.csv' for CSV.\n // -threshold-label <label>\n // \\tThe class label to determine the threshold data for\n // \\t(default is the first label)\n // \n // Options specific to weka.classifiers.bayes.NaiveBayesMultinomial:\n // \n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "void fit(DataSet dataSet);", "public void evaluate(String sampleFile, String featureDefFile, int nFold, String modelDir, String modelFile) {\n/* 839 */ evaluate(sampleFile, featureDefFile, nFold, -1.0F, modelDir, modelFile);\n/* */ }", "@Override\n protected Scalar evaluate(Tensor state) {\n return crossEvaluate(state, qsa);\n }", "public Map<String,Double> call()\n\t\t\tthrows Exception {\n\t\tList<String> labels = new ArrayList<String>();\n\t\t\t\t\n\t\tfor (Trace<T> t : traces) {\n//\t\t\tSet<T> toAdd = new HashSet<T>();\n//\t\t\tfor (T s : t.getConstraints())\n//\t\t\t\ttoAdd.add(s);\n//\t\t\tt.setConstraints(toAdd);\n//\t\t\tfor (T c : toAdd)\n//\t\t\t\tallConstraints.add(c);\n\t\t\tif (!labels.contains(Integer.toString(t.getLabel())))\n\t\t\t\tlabels.add(Integer.toString(t.getLabel()));\n\t\t}\n\t\t\n\t\tArrayList<Attribute> attributes = new ArrayList<Attribute>();\n\t\tArrayList<String> levels = new ArrayList<String>();\n\t\tlevels.add(\"1\");\n\t\tlevels.add(\"0\");\n\t\tfor (T con : features) {\n\t\t\tAttribute a = new Attribute(con.toString());\n\t\t\tattributes.add(a);\n\t\t}\n\t\tattributes.add(new Attribute(\"label\", labels));\n\n\t\t// Crossvalidate with Weka\n\t\tInstances trainingSet = new Instances(\"TrainingSet\", attributes, traces.size());\n\t\ttrainingSet.setClassIndex(attributes.size() - 1);\n\t\tInstances testSet = new Instances(\"TrainingSet\", attributes, traces.size());\n\t\ttestSet.setClassIndex(attributes.size() - 1);\n\t\t\n\t\tfor (int t = 0; t < traces.size(); t++) {\n\t\t\tif (t % nFold != 0) {\n\t\t\t\tInstance instance = new DenseInstance(attributes.size());\n\t\t\t\tCollection<String> strings = traces.get(t).getConstraintsAsStrings();\n\t\t\t\tfor (int a = 0; a < attributes.size() - 1; a++) {\n\t\t\t\t\tif (strings.contains(attributes.get(a).name())) {\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 0);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tinstance.setValue(attributes.get(attributes.size() - 1),\n\t\t\t\t\t\tInteger.toString(traces.get(t).getLabel()));\n\t\t\t\ttrainingSet.add(instance);\n\t\t\t} else {\n\t\t\t\tInstance instance = new DenseInstance(attributes.size());\n\t\t\t\tCollection<String> strings = traces.get(t).getConstraintsAsStrings();\n\t\t\t\tfor (int a = 0; a < attributes.size() - 1; a++) {\n\t\t\t\t\tif (strings.contains(attributes.get(a).name())){\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 0);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tinstance.setValue(attributes.get(attributes.size() - 1),\n\t\t\t\t\t\tInteger.toString(traces.get(t).getLabel()));\n\t\t\t\ttestSet.add(instance);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//System.out.println(\"Reasoning\");\n\t\tWekaPackageManager.loadPackages(false, true, false);\n\t\tAbstractClassifier classifier = null;\n\t\tString options = \"\";\n\t\tswitch(c){\n\t\t\tcase NB:\n\t\t\t\tclassifier = new NaiveBayes();//new LibSVM();\n\t\t\t\toptions = \"\";\n\t\t\t\tbreak;\n\t\t\tcase RandomForest:\n\t\t\t\tclassifier = new RandomForest();\n\t\t\t\toptions = \"\";\n\t\t\t\tbreak;\n\t\t\tcase SVM:\n\t\t\t\tclassifier = new LibSVM();\n\t\t\t\t//K: 0=linear, 1=polynomial, 2=radial basis, 3=sigmoid\n\t\t\t\toptions = \"-K,1,-W,\";\n\t\t\t\tfor(int i =0;i<labels.size();i++)\n\t\t\t\t\toptions+= \"1 \";\n\t\t\t\tbreak;\n\t\t}\t\t\n\t\tString[] optionsArray = options.split(\",\");\n\t\tclassifier.setOptions(optionsArray);\n\t\tclassifier.buildClassifier(trainingSet);\n\t\t\n\t\tMap<String,Double> result = new HashMap<String,Double>();\n\t\t\n\t\t//attributeScoring(trainingSet);\n\t\t//System.out.println(classifier.toSummaryString());\n\t\t//System.out.println(classifier.toString());\n\t\t\n\t\tEvaluation eTest = new Evaluation(trainingSet);\n\t\teTest.evaluateModel(classifier, testSet);\n\t\t\n\t\t//double auc = eTest.areaUnderROC(classIndex);\n\t\t//System.out.println(\"AUC: \"+auc);\n\t\tdouble accuracy = (double) eTest.correct() / (double) trainingSet.size();\n\t\tresult.put(\"accuracy\", accuracy);\n\t\treturn result;\n\t}", "public void validate(){\n if (validated){\n validated = false;\n } else {\n validated = true;\n }\n }", "public boolean train_auto(Mat trainData, Mat responses, Mat varIdx, Mat sampleIdx, CvSVMParams params, int k_fold, CvParamGrid Cgrid, CvParamGrid gammaGrid, CvParamGrid pGrid, CvParamGrid nuGrid, CvParamGrid coeffGrid, CvParamGrid degreeGrid, boolean balanced)\r\n {\r\n\r\n boolean retVal = train_auto_0(nativeObj, trainData.nativeObj, responses.nativeObj, varIdx.nativeObj, sampleIdx.nativeObj, params.nativeObj, k_fold, Cgrid.nativeObj, gammaGrid.nativeObj, pGrid.nativeObj, nuGrid.nativeObj, coeffGrid.nativeObj, degreeGrid.nativeObj, balanced);\r\n\r\n return retVal;\r\n }", "public static void setCrossoverProbability(double value) { crossoverProbability = value; }", "double countMisclassifications(Matrix features, Matrix labels)\r\n {\r\n if(features.rows() != labels.rows())\r\n throw new IllegalArgumentException(\"Illegal Argument Exception Created!!\");\r\n\tdouble mis = 0;\r\n for(int i = 0; i < features.rows(); i++)\r\n\t{\r\n Vec feat = features.row(i);\r\n Vec pred = predict(feat);\r\n Vec lab = labels.row(i);\r\n\r\n for(int j = 0; j < lab.size(); j++){\r\n \r\n if(pred.get(j) != lab.get(j))\r\n mis++;\r\n }\r\n\t}\r\n // System.out.println(\"mis \" + mis);\r\n // System.out.println(\"rowcol \" + (labels.rows()*labels.cols()));\r\n\r\n double misclassifictionRate = 100.0*(mis/(labels.rows()*labels.cols()));\r\n return misclassifictionRate;\r\n }", "public Forecasting withNCrossValidations(NCrossValidations nCrossValidations) {\n this.nCrossValidations = nCrossValidations;\n return this;\n }", "public final void rule__CrossValidation__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:1843:1: ( rule__CrossValidation__Group__0__Impl rule__CrossValidation__Group__1 )\n // InternalMLRegression.g:1844:2: rule__CrossValidation__Group__0__Impl rule__CrossValidation__Group__1\n {\n pushFollow(FOLLOW_4);\n rule__CrossValidation__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__CrossValidation__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void checkTraining() {\r\n loadGenome();\r\n MLDataSet trainingSet;\r\n float sum = 0;\r\n try (Stream<Path> walk = Files.walk(Paths.get(\"check_train_data\"))) {\r\n\r\n List<String> result = walk.filter(Files::isRegularFile)\r\n .map(x -> x.toString()).collect(Collectors.toList());\r\n\r\n for (int i = 0; i < result.size(); i++) {\r\n trainingSet = new CSVNeuralDataSet(result.get(i), input, output, true);\r\n sum += network.calculateError(trainingSet);\r\n }\r\n System.out.println(\"Validation, Average error: \" + sum / result.size());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "void checkValid();", "@SuppressWarnings({ \"unchecked\", \"deprecation\" })\n\tprivate static NeuralNetwork crossover(NeuralNetwork cross, NeuralNetwork over, Singleton s1) throws IOException, ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, InstantiationException {\n\t\tEvolveSingleton s = (EvolveSingleton) s1;\n\t\t//determines which of the two networks was more fit and less fit\n\t\tClass<? extends NeuralNetwork> networkClass = (Class<? extends NeuralNetwork>) Class.forName(\"BackEvolution.\"+s.getType()+\".\"+s.getType()+\"Network\");\n\t\tClass<? extends Layer> layerClass = (Class<? extends Layer>) Class.forName(\"BackEvolution.\"+s.getType()+\".\"+s.getType()+\"Layer\");\n\t\tClass<? extends Neuron> neuronClass = (Class<? extends Neuron>) Class.forName(\"BackEvolution.\"+s.getType()+\".\"+s.getType()+\"Neuron\");\n\t\tNeuralNetwork newnn = null;\n\t\tNeuralNetwork lessfit = null;\n\t\tNeuralNetwork morefit = null;\n\t\tif (cross.getFitness() > over.getFitness()){\n\t\t\tmorefit = cross;\n\t\t\tlessfit = over;\n\t\t}\n\t\telse{\n\t\t\tmorefit = over;\n\t\t\tlessfit = cross;\n\t\t}\n\t\t//creates the structure for the new network\n\t\tLayer[] puts = NetworkCreator.creator(s);\n\t\tClass<?>[] types2 = {Class.forName(\"BackEvolution.Layer\"),Class.forName(\"BackEvolution.Layer\")};\n\t\tConstructor<? extends NeuralNetwork> con2 = networkClass.getConstructor(types2);\n\t\tClass<? extends SpecialCreator> managerClass = (Class<? extends SpecialCreator>) Class.forName(\"BackEvolution.\"+s.getType()+\".\"+s.getType()+\"Creator\");\n\t\tSpecialCreator manager = managerClass.newInstance();\n\t\tmanager.InputOutputcreator(puts);\n\t\tnewnn = con2.newInstance(puts[0],puts[1]);\n\t\tNetworkCreator.Neuraltracker(newnn);\n\t\t//pretty sure this is obsolete from when i tried to breed different layered networks but not sure if I can delete.\n\t\tArrayList<Layer> lesslayers = lessfit.getLayers();\n\t\tArrayList<Layer> morelayers = morefit.getLayers();\n\t\tint maxlayers = 1;\n\t\tif (lesslayers.size() > morelayers.size()){\n\t\t\tmaxlayers = lesslayers.size();\n\t\t}\n\t\telse { \n\t\t\tmaxlayers = morelayers.size();\n\t\t}\n\t\t//adds the neuron to each layer based on which network had the most neurons in that layer\n\t\tfor (int i = 1; i < maxlayers-1; i++){\n\t\t\tLayer lesslayer = null;\n\t\t\tLayer morelayer = null;\n\t\t\tint lessnum = 0;\n\t\t\tint morenum = 0;\n\t\t\ttry{\n\t\t\tlesslayer = lesslayers.get(i);\n\t\t\tlessnum = lesslayer.getNeurons().size();\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tmorelayer = morelayers.get(i);\n\t\t\t\tmorenum = morelayer.getNeurons().size();\n\t\t\t}\n\t\t\ttry{\n\t\t\tmorelayer = morelayers.get(i);\n\t\t\tmorenum = morelayer.getNeurons().size();\n\t\t\t}\n\t\t\tcatch (Exception e){\n\t\t\t}\n\t\t\tif (morelayer == null) morenum = 0;\n\t\t\telse if (morelayer.isOutput()){\n\t\t\t\tmorenum = 0;\n\t\t\t}\n\t\t\tif (lesslayer == null) lessnum = 0;\n\t\t\telse if (lesslayer.isOutput()){\n\t\t\t\tlessnum = 0;\n\t\t\t}\n\t\t\tClass<?>[] types = {boolean.class,boolean.class};\n\t\t\tConstructor<? extends Layer> con = layerClass.getConstructor(types);\n\t\t\tLayer newl = con.newInstance(false, false);\n\t\t\tnewnn.addLayer(newl);\n\t\t\tnewl.setNumber(newnn.getLayers().size()-1);\n\t\t\tfor (int j = 0; j < morenum || j < lessnum; j++){\n\t\t\t\tNeuron newn = neuronClass.newInstance();\n\t\t\t\tnewl.addNeuron(newn);\n\t\t\t\tnewn.setLayernumber(newl.getNumber());\n\t\t\t\tnewn.setNumber(newl.getNeurons().size()-1);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i <=lesslayers.size(); i++){\n\t\t\tLayer l = lesslayers.get(i-1);\n\t\t\tfor (Neuron n : l.getNeurons()){\n\t\t\t\tn.setLayernumber(i);\n\t\t\t\t\n\t\t\t}\n\t\t\tl.setNumber(i);\n\t\t}\n\t\tfor (int i = 1; i <=morelayers.size(); i++){\n\t\t\tLayer l = lesslayers.get(i-1);\n\t\t\tfor (Neuron n : l.getNeurons()){\n\t\t\t\tn.setLayernumber(i);\n\t\t\t\t\n\t\t\t}\n\t\t\tl.setNumber(i);\t\n\t\t}\n\t\t//adds genes to the structure. if the same conection exists in the more fit network, it gets preference over the less fit network. if one or the other does not have this gene at all it gets added. currently more fit is always selected may add random chance that the less fit networks gene is selected.\n\t\t//gets all the data from the more fit layer.\n\t\tArrayList<double[]> geneIdentities = new ArrayList<double[]>();\n\t\tfor(Layer l : morelayers){\t\t\n\t\t\t\tfor (Neuron n : l.getNeurons()){\n\t\t\t\t\tfor(Gene g : n.getGenes()){\n\t\t\t\t\t\tdouble data[] = new double[5];\n\t\t\t\t\t\tdata[0] = l.getNumber();\n\t\t\t\t\t\tdata[1] = n.getNumber();\n\t\t\t\t\t\tdata[2] = g.getConnection().getNumber();\n\t\t\t\t\t\tif (morelayers.get(g.getConnection().getLayernumber()-1).isOutput()) data[3] = maxlayers;\n\t\t\t\t\t\telse data[3] = g.getConnection().getLayernumber();\n\t\t\t\t\t\tdata[4] = g.getWeight();\n\t\t\t\t\t\tgeneIdentities.add(data);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\n\t\t}\n\t\t//gets all the gene data from the less fit layer.\n\t\tArrayList<double[]> geneIdentities2 = new ArrayList<double[]>();\n\t\tfor(Layer l : lesslayers){\n\t\t\t\tfor (Neuron n : l.getNeurons()){\n\t\t\t\t\tfor(Gene g : n.getGenes()){\n\t\t\t\t\t\tdouble data[] = new double[5];\n\t\t\t\t\t\tdata[0] = l.getNumber();\n\t\t\t\t\t\tdata[1] = n.getNumber();\n\t\t\t\t\t\tdata[2] = g.getConnection().getNumber();\n\t\t\t\t\t\tif (lesslayers.get(g.getConnection().getLayernumber()-1).isOutput()) data[3] = maxlayers;\n\t\t\t\t\t\telse data[3] = g.getConnection().getLayernumber();\n\t\t\t\t\t\tdata[4] = g.getWeight();\n\t\t\t\t\t\tgeneIdentities2.add(data);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t}\n\t\t//if two genes connect the same neuron, it averages the weights of them and removes one leaving the other with the average weight\n\t\tfor (double[] nums : geneIdentities){\n\t\t\tfor (int i = 0; i < geneIdentities2.size(); i++){\n\t\t\t\tdouble[] nums2 = geneIdentities2.get(i);\n\t\t\t\tif (nums[0] == nums2[0] && nums[1] == nums2[1] && nums[2] == nums2[2] && nums[3] == nums2[3]){\n\t\t\t\t\tnums[4] = (nums[4] + nums2[4])/2;\n\t\t\t\t\tgeneIdentities2.remove(nums2);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//adds the new genes to the new neural network based on the gene data.\n\t\tfor(double[] nums : geneIdentities){\t\t\n\t\t\tGene newGene = new Gene(newnn.getLayers().get((int) nums[3]-1).getNeurons().get((int) nums[2]-1), nums[4]);\n\t\t\tNeuron newNeuron = newnn.getLayers().get((int) (nums[0]-1)).getNeurons().get((int) nums[1]-1);\n\t\t\tnewNeuron.AddGenes(newGene);\n\t\t\tnewGene.setInput(newNeuron);\t\t\t\n\t\t}\n\t\tfor(double[] nums : geneIdentities2){\t\t\t\n\t\t\tGene newGene = new Gene(newnn.getLayers().get((int) nums[3]-1).getNeurons().get((int) nums[2]-1), nums[4]);\n\t\t\tNeuron newNeuron = newnn.getLayers().get((int) (nums[0]-1)).getNeurons().get((int) nums[1]-1);\n\t\t\tnewNeuron.AddGenes(newGene);\n\t\t\tnewGene.setInput(newNeuron);\n\t\t}\n\t\t//returns mutated bred network\n\t\treturn mutate(newnn,s);\n\t}", "public void origCrossover() {\n\n ArrayList<Integer> crossPoints;\n\n // Perform crossover with probability Defines.PROB_CROSSOVER\n if (Defines.probCrossover > Math.random()) {\n // Choose random crossover points within the chromosome\n // [TODO: consider usefulness of a crossover point that coincides with\n // group boundary. If both crossovers are group boundaries, the crossover does nothing.]\n crossPoints = new ArrayList<Integer>();\n for (int i = 0; i < Defines.crossoverPoints; i++) {\n crossPoints.add(Defines.randNum(0, Defines.chromosomeSize - 1));\n }\n } else {\n // Parents are used without crossover - no crossover points; \n crossPoints = null;\n }\n\n ChromosomeGenerator chromoGen = new ChromosomeGenerator(this.pool);\n this.offspring = new ArrayList<Chromosome>(Arrays.asList(chromoGen.generateOffspring(this.parents, crossPoints)));\n }", "public void holdBackValidation(double validationPercent, boolean shuffle,\n\t\t\tint seed) {\n\t\tList<DataDivision> dataDivisionList = new ArrayList<DataDivision>();\n\t\tdataDivisionList.add(new DataDivision(1.0 - validationPercent));// Training\n\t\tdataDivisionList.add(new DataDivision(validationPercent));// Validation\n\t\tthis.dataset.divide(dataDivisionList, shuffle,\n\t\t\t\tnew MersenneTwisterGenerateRandom(seed));\n\t\tthis.trainingDataset = dataDivisionList.get(0).getDataset();\n\t\tthis.validationDataset = dataDivisionList.get(1).getDataset();\n\t}", "public double AccuracyLossTrainSet()\n\t{\n\t\tdouble accuracyLoss = 0;\n\t\t\n\t\tfor(int i = 0; i < ITrain; i++)\n\t\t{\n\t\t\tPreCompute(i);\n\t\t\n\t\t\tfor(int c = 0; c < C; c++)\n\t\t\t\taccuracyLoss += AccuracyLoss(i, c);\n\t\t}\n\t\t\n\t\treturn accuracyLoss;\n\t}", "private Evolvable cross(Evolvable parent1, Evolvable parent2)\n\t{\n\t\tif(((SNSAgent)parent1).getBehavior().equals(\"RuleBased\"))\n\t\t{\t\n\t\t\tint split = R.nextInt(7) + 1;\n\t\t\tif(crossBehavior.equals(\"zipperCross\"))\n\t\t\t\treturn ruleZipperCross(parent1, parent2);\n\t\t\telse if(crossBehavior.equals(\"splitCross\"))\n\t\t\t\treturn ruleSplitCross(parent1, parent2, split);\n\t\t\telse if(crossBehavior.equals(\"smartCross\"))\n\t\t\t\treturn ruleSplitCross(parent1, parent2, split);\n\t\t\telse\n\t\t\t\tSystem.out.println(\"WARNING: Cross Behavior not defined.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint split = R.nextInt(1000) + 100;\n\t\t\tif(crossBehavior.equals(\"zipperCross\"))\n\t\t\t\treturn zipperCross(parent1, parent2);\n\t\t\telse if (crossBehavior.equals(\"splitCross\"))\n\t\t\t\treturn splitCross(parent1, parent2, split);\n\t\t\telse if (crossBehavior.equals(\"freeSplitCross\")){\n\t\t\t\treturn splitCross(parent1, parent2, R.nextInt(3000));\n\t\t\t}\n\t\t\telse if(crossBehavior.equals(\"smartCross\"))\n\t\t\t{\n\t\t\t\tsplit = ((SNSAgent)parent1).getCurrentMove() - R.nextInt(30);\n\t\t\t\treturn splitCross(parent1, parent2, split);\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.println(\"WARNING: Cross Behavior not defined.\");\n\t\t}\n\n\t\treturn zipperCross(parent1, parent2);\n\t}", "public final EObject ruleEvaluationType() throws RecognitionException {\n EObject current = null;\n\n EObject this_Partition_0 = null;\n\n EObject this_CrossValidation_1 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMLRegression.g:667:2: ( (this_Partition_0= rulePartition | this_CrossValidation_1= ruleCrossValidation ) )\n // InternalMLRegression.g:668:2: (this_Partition_0= rulePartition | this_CrossValidation_1= ruleCrossValidation )\n {\n // InternalMLRegression.g:668:2: (this_Partition_0= rulePartition | this_CrossValidation_1= ruleCrossValidation )\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0==23) ) {\n alt10=1;\n }\n else if ( (LA10_0==24) ) {\n alt10=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 10, 0, input);\n\n throw nvae;\n }\n switch (alt10) {\n case 1 :\n // InternalMLRegression.g:669:3: this_Partition_0= rulePartition\n {\n\n \t\t\tnewCompositeNode(grammarAccess.getEvaluationTypeAccess().getPartitionParserRuleCall_0());\n \t\t\n pushFollow(FOLLOW_2);\n this_Partition_0=rulePartition();\n\n state._fsp--;\n\n\n \t\t\tcurrent = this_Partition_0;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n\n }\n break;\n case 2 :\n // InternalMLRegression.g:678:3: this_CrossValidation_1= ruleCrossValidation\n {\n\n \t\t\tnewCompositeNode(grammarAccess.getEvaluationTypeAccess().getCrossValidationParserRuleCall_1());\n \t\t\n pushFollow(FOLLOW_2);\n this_CrossValidation_1=ruleCrossValidation();\n\n state._fsp--;\n\n\n \t\t\tcurrent = this_CrossValidation_1;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n\n }\n break;\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public ArrayList<Cross> getVoisin(Cross[][] tab);", "public ValidationResult validate(X509Certificate[] certChain);", "public void train() {\n\n int w;\n double sum = 0, avg;\n double forecast;\n double[][] trainMatrix = new double[trainPoints][2];\n double[][] valMatrix = new double[validationPoints][2];\n actual = observations.toArray();\n\n for (int i = 0; i < step * slices; i++)\n sum += actual[i];\n\n avg = sum / slices;\n\n for (int pos = 0; pos < trainPoints; pos++) {\n sum = 0;\n w = 0;\n\n if (pos >= step * slices) {\n for (int k = pos - step * slices; k < pos; k += step)\n sum += actual[k] * weights[w++];\n forecast = sum / slices;\n } else forecast = avg;\n\n trainMatrix[pos][0] = actual[pos];\n trainMatrix[pos][1] = forecast;\n }\n\n for (int pos = actual.length - validationPoints, j = 0; pos < actual.length; pos++) {\n sum = 0;\n w = 0;\n for (int k = pos - step * slices; k < pos; k += step)\n sum += actual[k] * weights[w++];\n forecast = sum / slices;\n valMatrix[j][0] = actual[pos];\n valMatrix[j][1] = forecast;\n j++;\n }\n double biasness = BiasnessHandler.handleOffset(valMatrix);\n accuracyIndicators.setBias(biasness);\n ModelUtil.computeAccuracyIndicators(accuracyIndicators, trainMatrix, valMatrix, dof);\n errorBound = ErrorBoundsHandler.computeErrorBoundInterval(trainMatrix);\n }", "public void validate() {}", "public void printError(int epoch, ArrayList<LSTMSequence> seqsArray, boolean isTrain) {\n\n int numSeqs;\n String what = \"\";\n String pre = \"\";\n float fnp = 1.0f;\n\n if (isTrain) {\n numSeqs = numSeqsTrain;\n what = \"training\";\n pre = \"\";\n rankMean = compRankMean(rankTrain, numSeqs);\n compAUC(rankTrain, rankTrainSorted, numSeqs);\n } else {\n numSeqs = numSeqsTest;\n what = \"test\";\n pre = \"TEST: \";\n rankMean = compRankMean(rankTest, numSeqs);\n compAUC(rankTest, rankTestSorted, numSeqs);\n //cr.computeAUC(roclist, numpostest, numnegtest, rocn);\n }\n\n int countTop1 = 0;\n int countTop5 = 0;\n int[] ranks;\n\n if (isTrain) {\n ranks = rankTrain;\n } else {\n ranks = rankTest;\n }\n\n for (int i = 0; i < numSeqs; i++) {\n if (ranks[i] > 1) {\n countTop1++;\n }\n if (ranks[i] > 5) {\n countTop5++;\n }\n }\n\n float top1Error = countTop1 / (float) numSeqs * 100.0f;\n float top5Error = countTop5 / (float) numSeqs * 100.0f;\n float[] crossEntropyErrors = (isTrain) ? crossEntropyErrorsTrain : crossEntropyErrorsTest;\n float min = Integer.MAX_VALUE;\n float max = Integer.MIN_VALUE;\n float sumCEE = 0;\n\n for (int i = 0; i < numSeqs; i++) {\n float crossEntropyError = crossEntropyErrors[i];\n min = Math.min(crossEntropyError, min);\n max = Math.max(crossEntropyError, max);\n sumCEE += crossEntropyError;\n }\n\n float crossEntropyErrorMean = sumCEE / numSeqs;\n int[] labels = new int[numSeqs];\n\n for (int seqNr = 0; seqNr < numSeqs; seqNr++) {\n LSTMSequence seq = seqsArray.get(seqNr);\n float[] seqTargets = seq.getTargets();\n for (int j = 0; j < seqTargets.length; j++) {\n if (seqTargets[j] == 1.0) labels[seqNr] = j + 1;\n }\n }\n\n\t\t/*\n float auc = cr.getAuc();\n float aucn = cr.getAucn();\n\t\t */\n\n fnp = (float) falseneg / (float) numSeqs;\n //float fpp = (numneg != 0) ? (float) falsepos / (float) numneg : 0;\n float mse = epochError / (1.0f * numSeqs);\n\n BufferedWriter out = null;\n\n try {\n\n out = new BufferedWriter(new FileWriter(\"out.txt\", true));\n\n out.write(\"epoch: \" + epoch);\n out.newLine();\n out.write(pre + \"MSE \");\n out.write(new DecimalFormat(\"#.######\").format(mse));\n out.newLine();\n\n out.write(pre + \"errors:\");\n out.write(falseneg + \" (out of \" + numSeqs + \" \" + what + \" examples) \");\n out.write(new DecimalFormat(\"#0.0\").format(fnp * 100) + \"%\");\n out.newLine();\n\n out.write(pre + \"Top 1 Error: \");\n out.write(new DecimalFormat(\"#0.00\").format(top1Error));\n out.newLine();\n out.write(pre + \"Top 5 Error: \");\n out.write(new DecimalFormat(\"#0.00\").format(top5Error));\n out.newLine();\n\n out.write(pre + \"Crossentropy Loss: \");\n out.write(new DecimalFormat(\"#0.00\").format(crossEntropyErrorMean));\n out.newLine();\n\n\t\t\t/*\n out.write(pre + \"false-positive:\");\n out.write(falsepos + \" (out of \" + numneg + \" negative \" + what + \" examples) \");\n out.write(new DecimalFormat(\"#0.0\").format(fpp * 100) + \"%\");\n out.newLine();\n\t\t\t */\n out.write(pre + \"ROC \");\n out.write(new DecimalFormat(\"#0.000\").format(aucVal));\n out.newLine();\n out.write(pre + \"ROC\" + rocn + \" \");\n out.write(new DecimalFormat(\"#0.000\").format(aucNVal));\n out.newLine();\n\n if (!isTrain) {\n out.write(pre + \"Ranks: \");\n for (int i = 0; i < this.numSeqsTest; i++) {\n out.write(this.rankTest[i] + \" \");\n }\n out.newLine();\n out.write(pre + \"CEL: \");\n for (int i = 0; i < this.numSeqsTest; i++) {\n out.write(this.crossEntropyErrorsTest[i] + \" \");\n }\n out.newLine();\n out.write(pre + \"Label: \");\n for (int i = 0; i < this.numSeqsTest; i++) {\n out.write(labels[i] + \" \");\n }\n out.newLine();\n } else {\n out.write(\"Ranks: \");\n for (int i = 0; i < this.numSeqsTrain; i++) {\n out.write(this.rankTrain[i] + \" \");\n }\n out.newLine();\n out.write(\"CEL: \");\n for (int i = 0; i < this.numSeqsTrain; i++) {\n out.write(this.crossEntropyErrorsTrain[i] + \" \");\n }\n out.newLine();\n out.write(\"Label: \");\n for (int i = 0; i < this.numSeqsTrain; i++) {\n out.write(labels[i] + \" \");\n }\n out.newLine();\n }\n out.write(pre + \"Rank mean: \" + new DecimalFormat(\"#0.00\").format(rankMean));\n out.newLine();\n out.newLine();\n out.close();\n\n } catch (IOException e) {\n System.err.println(e);\n } finally {\n try {\n if (out != null) out.close();\n } catch (IOException e) {\n }\n }\n\n System.out.println(\"Thread: \" + threadNr);\n System.out.println(\"epoch: \" + epoch);\n System.out.printf(\"%sMSE:%f\\n\", pre, mse);\n System.out.printf(\"%serrors:%d (out of %d %s examples) %.1f%%\\n\", pre, falseneg, numSeqs, what, fnp * 100);\n\n System.out.print(pre + \"Top 1 Error: \");\n System.out.print(new DecimalFormat(\"#0.00\").format(top1Error));\n System.out.println();\n System.out.print(pre + \"Top 5 Error: \");\n System.out.print(new DecimalFormat(\"#0.00\").format(top5Error));\n System.out.println();\n\n\t\t/*\n System.out.printf(\"%sfalse-positive:%d (out of %d negative %s examples) %.1f%%\\n\", pre, falsepos, numneg, what, fpp * 100);\n\t\t */\n System.out.printf(\"%sROC %.3f\\n\", pre, aucVal);\n System.out.printf(\"%sROC\" + rocn + \" %.3f\\n\", pre, aucNVal);\n\n\n if (!isTrain) {\n System.out.print(\"Ranks: \");\n for (int i = 0; i < this.numSeqsTest; i++) {\n System.out.print(this.rankTest[i] + \" \");\n }\n System.out.println();\n }\n System.out.printf(pre + \"Rank mean: %.2f\", rankMean);\n System.out.println();\n\n }", "public void test(Corpus testData) {\n\t\t// cross validation\n\t\ttestBigramWithNB(testData);\n\t\ttestUnigramWithNB(testData);\n\t}", "private Double validateOnColumns(Matrix vInputs, Matrix vLabels, List<Integer> columns, SupervisedLearner model)\n\t{\n\t\tMatrix inputs = vInputs.selectColumns(columns);\n\t\t\n\t\tdouble score = Evaluator.runEvaluators(inputs, vLabels, model, true, \n\t\t\t\tCollections.singletonList(evaluator))\n\t\t\t\t.getScores(evaluator.getClass()).get(0);\n\t\n\t\t// Make sure that increasing scores are better.\n\t\tif (evaluator.higherScoresAreBetter())\n\t\t\treturn score;\n\t\treturn 1.0 - score;\n\t}", "private double cross(Point A, Point B, Point C) {\n\t\tdouble AB_X = B.x - A.x;\n\t\tdouble AB_Y = B.y - A.y;\n\t\tdouble AC_X = C.x - A.x;\n\t\tdouble AC_Y = C.y - A.y;\n\t\tdouble cross = AB_X * AC_Y - AB_Y * AC_X;\n\t\treturn cross;\n\t}", "private boolean validateInputs(){\n if(jrTakeTest.isSelected()==false && jrViewScores.isSelected()==false && jrChangePassword.isSelected()==false)\n return false;\n return true;\n}", "public boolean validate() throws edu.mit.coeus.exception.CoeusUIException \r\n {\r\n return false;\r\n }", "public CvSVM(Mat trainData, Mat responses)\r\n {\r\n\r\n super( CvSVM_2(trainData.nativeObj, responses.nativeObj) );\r\n\r\n return;\r\n }", "public final void rule__CrossValidation__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:1870:1: ( rule__CrossValidation__Group__1__Impl rule__CrossValidation__Group__2 )\n // InternalMLRegression.g:1871:2: rule__CrossValidation__Group__1__Impl rule__CrossValidation__Group__2\n {\n pushFollow(FOLLOW_16);\n rule__CrossValidation__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__CrossValidation__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private boolean hasTrainPassed(Train train){\n\t\tif (train==null)\n\t\t\treturn true;\n\t\tfor (Car c : cars)\n\t\t\tfor (Car c2 : train.getCars())\n\t\t\t\tfor (Point2D.Float p : c.getPoints())\n\t\t\t\t\tif (c2.contains(p))\n\t\t\t\t\t\treturn false;\n\t\treturn true;\n\t}", "public boolean validateModel(){\r\n System.out.println(\"Validated!\");\r\n return true;\r\n }", "public void MultipointCrossoverCAN (TableVar Variables) {\r\n int i, mom, dad, xpoint1, xpoint2;\r\n \r\n // We cross the two better individuals (the first ones)\r\n mom = 0; // Better individual\r\n dad = 1; // Second individual\r\n \r\n // Copy the individuals to cross\r\n for (i=0; i<Variables.getNVars(); i++) {\r\n Des.setCromElem (0, i, Inter.getCromElem(mom,i));\r\n Des.setCromElem (1, i, Inter.getCromElem(dad,i));\r\n }\r\n\r\n // Generation of the two points for the crossover\r\n xpoint1 = Randomize.Randint (0,(Variables.getNVars()-1));\r\n if (xpoint1!=Variables.getNVars()-1)\r\n xpoint2 = Randomize.Randint ((xpoint1+1),(Variables.getNVars()-1));\r\n else\r\n xpoint2 = Variables.getNVars()-1;\r\n\r\n // Cross the parts between both points\r\n for (i=xpoint1;i<=xpoint2;i++) {\r\n Des.setCromElem(mom, i, Inter.getCromElem(dad,i));\r\n Des.setCromElem(dad, i, Inter.getCromElem(mom,i));\r\n }\r\n\r\n // New individuals are not evaluated\r\n Des.setIndivEvaluated (mom, false);\r\n Des.setIndivEvaluated (dad, false);\r\n \r\n }", "public final void rule__CrossValidation__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:1897:1: ( rule__CrossValidation__Group__2__Impl rule__CrossValidation__Group__3 )\n // InternalMLRegression.g:1898:2: rule__CrossValidation__Group__2__Impl rule__CrossValidation__Group__3\n {\n pushFollow(FOLLOW_6);\n rule__CrossValidation__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__CrossValidation__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public int[] checker() {\n\t\tif (!(trimCkBox.isSelected()) && !(refCkBox.isSelected()) ) { //&& !(alignCkBox.isSelected())) {\n\t\t\treturn null;\n\t\t}\n\t\t//System.out.println(\"CHECKER\");\n\t\tint[] temp = {0, 0, 0};\n\t\tif (trimCkBox.isSelected()) {\n\t\t\ttemp[0] = 1;\n\t\t}\n\t\tif (refCkBox.isSelected()) {\n\t\t\ttemp[1] = 1;\n\t\t}\n\t\t/*if (alignCkBox.isSelected()) {\n\t\t\tif (temp[0] == 0 && temp[1] == 0){\n\t\t\t\ttemp[2] = -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttemp[2] = 1;\n\t\t\t}\n\t\t}*/\n\t\t\n\t\treturn temp;\n\t}", "public vec3 cross(vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.cross(this, arg);\r\n\t\treturn tmp;\r\n\t}", "abstract int[] crossOver();", "public static void main(String[] args) throws Exception {\n\t\tint i;\r\n\t\tint [][]preci_recall = new int [5][6]; \r\n\r\n\t\tNGRAM ngram = new NGRAM();\r\n\t\t\r\n\t\tfor(i=0; i<5; i++) {\r\n\t\t\t\r\n\t\t\tSystem.out.println((i+1) + \" th FOLD IS A TEST SET\");\r\n\t\t\t\r\n\t\t\tdouble[][] test_ngram_features = ngram.feature(i,1);\r\n\t\t\tdouble[][] train_ngram_features = ngram.feature(i,0);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"NGRAM FEATURES...OK\");\r\n\t\r\n//\t\t\t\r\n//\t\t\tLIWC liwc = new LIWC();\r\n//\t\t\t\r\n//\t\t\tdouble[][] test_liwc_features = liwc.feature(i,1,test_ngram_features.length);\r\n//\t\t\tdouble[][] train_liwc_features = liwc.feature(i,0,train_ngram_features.length);\r\n//\r\n//\t\t\tSystem.out.println(\"LIWC FEATURES..OK\");\r\n//\t\t\t\r\n//\t\t\tCOMBINE combine = new COMBINE();\r\n//\t\t\tdouble[][] train_features = combine.sum(train_liwc_features,train_ngram_features);\r\n//\t\t\tdouble[][] test_features = combine.sum(test_liwc_features,test_ngram_features);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"COMBINE...OK\");\r\n\t\t\r\n\t\t\tSVMLIGHT svmlight = new SVMLIGHT();\r\n\t\t\tpreci_recall[i]=svmlight.calcc(train_ngram_features, test_ngram_features);\r\n\r\n\t\t}\r\n\t\t\r\n//\t 0 : truthful TP\r\n//\t 1 : truthful TP+FP\r\n//\t 2 : truthful TP+FN\r\n//\t 3 : deceptive TP\r\n//\t 4 : deceptive TP+FP\r\n//\t 5 : deceptive TP+FN\r\n\t\t\r\n\t\tint truthful_TP_sum=0,truthful_TPFP_sum=0,truthful_TPFN_sum=0;\r\n\t\tint deceptive_TP_sum=0,deceptive_TPFP_sum=0,deceptive_TPFN_sum=0;\r\n\t\t\r\n\t\tfor(i=0;i<5;i++) {\r\n\t\t\ttruthful_TP_sum+=preci_recall[i][0];\r\n\t\t\ttruthful_TPFP_sum+=preci_recall[i][1];\r\n\t\t\ttruthful_TPFN_sum+=preci_recall[i][2];\r\n\t\t\t\r\n\t\t\tdeceptive_TP_sum+=preci_recall[i][3];\r\n\t\t\tdeceptive_TPFP_sum+=preci_recall[i][4];\r\n\t\t\tdeceptive_TPFN_sum+=preci_recall[i][5];\r\n\t\t}\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"\\n\\nTRUTHFUL_TP_SUM : \" + truthful_TP_sum);\r\n\t\tSystem.out.println(\"TRUTHFUL_TPFP_SUM : \" + truthful_TPFP_sum);\r\n\t\tSystem.out.println(\"TRUTHFUL_TPFN_SUM : \" + truthful_TPFN_sum);\r\n\t\t\r\n\t\tSystem.out.println(\"DECEPTIVE_TP_SUM : \" + deceptive_TP_sum);\r\n\t\tSystem.out.println(\"DECEPTIVE_TPFP_SUM : \" + deceptive_TPFP_sum);\r\n\t\tSystem.out.println(\"DECEPTIVE_TPFN_SUM : \" + deceptive_TPFN_sum);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nTRUTHFUL PRECISION : \" + (double)(truthful_TP_sum)/(double)(truthful_TPFP_sum));\r\n\t\tSystem.out.println(\"TRUTHFUL RECALL : \" + (double)(truthful_TP_sum)/(double)(truthful_TPFN_sum));\r\n\t\t\r\n\t\tSystem.out.println(\"DECEPTIVE PRECISION : \" + (double)(deceptive_TP_sum)/(double)(deceptive_TPFP_sum));\r\n\t\tSystem.out.println(\"DECEPTIVE RECALL : \" + (double)(deceptive_TP_sum)/(double)(deceptive_TPFN_sum));\r\n\t\t\r\n\r\n\t}", "@Test\n public void decompositionShape() {\n checkDecomposition(5, 5 ,false);\n checkDecomposition(10, 5,false);\n checkDecomposition(5, 10,false);\n checkDecomposition(5, 5 ,true);\n checkDecomposition(10, 5,true);\n checkDecomposition(5, 10,true);\n }", "public void train() throws Exception;", "public boolean isCrossable(int x, int y) {\n\t\treturn g[x][y].isCrossable();\n\t}", "public final AstValidator.cross_clause_return cross_clause() throws RecognitionException {\n AstValidator.cross_clause_return retval = new AstValidator.cross_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree CROSS320=null;\n AstValidator.rel_list_return rel_list321 =null;\n\n AstValidator.partition_clause_return partition_clause322 =null;\n\n\n CommonTree CROSS320_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:504:14: ( ^( CROSS rel_list ( partition_clause )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:504:16: ^( CROSS rel_list ( partition_clause )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n CROSS320=(CommonTree)match(input,CROSS,FOLLOW_CROSS_in_cross_clause2698); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n CROSS320_tree = (CommonTree)adaptor.dupNode(CROSS320);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(CROSS320_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_rel_list_in_cross_clause2700);\n rel_list321=rel_list();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, rel_list321.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:504:34: ( partition_clause )?\n int alt90=2;\n int LA90_0 = input.LA(1);\n\n if ( (LA90_0==PARTITION) ) {\n alt90=1;\n }\n switch (alt90) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:504:34: partition_clause\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_partition_clause_in_cross_clause2702);\n partition_clause322=partition_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, partition_clause322.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "@VTID(23)\n com.exceljava.com4j.excel.XlSlicerCrossFilterType getCrossFilterType();", "public TestResult validate(License license, ValidationParameters validationParameters);", "private static native boolean train_auto_0(long nativeObj, long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj, int k_fold, long Cgrid_nativeObj, long gammaGrid_nativeObj, long pGrid_nativeObj, long nuGrid_nativeObj, long coeffGrid_nativeObj, long degreeGrid_nativeObj, boolean balanced);" ]
[ "0.81625384", "0.6613155", "0.6589542", "0.6542197", "0.646503", "0.64102525", "0.63983625", "0.6384235", "0.6316832", "0.62547827", "0.60931766", "0.58574945", "0.5851156", "0.5832805", "0.5809901", "0.5660538", "0.55234474", "0.54963416", "0.5468338", "0.5437766", "0.5429068", "0.54176116", "0.5411781", "0.53840363", "0.53731656", "0.53523207", "0.5349264", "0.53340685", "0.5290226", "0.5193589", "0.51914686", "0.51794004", "0.51734984", "0.5117078", "0.50522333", "0.50510967", "0.50507665", "0.49487582", "0.49273878", "0.4906642", "0.48825175", "0.48305464", "0.4809012", "0.4806421", "0.48009905", "0.4780396", "0.47529155", "0.47529155", "0.47529155", "0.47520366", "0.47468716", "0.47468716", "0.4723305", "0.47175997", "0.4702501", "0.46910143", "0.4686156", "0.4667596", "0.46586442", "0.46576077", "0.46508926", "0.46454802", "0.46389306", "0.46280703", "0.46276456", "0.46259752", "0.46220592", "0.46205673", "0.4615259", "0.46064773", "0.46020705", "0.4600976", "0.4587318", "0.45855233", "0.45803565", "0.45786917", "0.45747212", "0.45744392", "0.45699528", "0.45612133", "0.4560414", "0.45521718", "0.45409694", "0.453544", "0.4534512", "0.45333508", "0.45311606", "0.4530348", "0.45266917", "0.45263338", "0.45229217", "0.45219326", "0.45155573", "0.45154017", "0.451253", "0.4507382", "0.45073745", "0.45056275", "0.45034745", "0.45016462", "0.44989446" ]
0.0
-1
function for prediction prediction formula: avg + Bu + Bi + Bi_Bin,t + Alpha_uDev + Bu_t + Qi^T(Pu + |R(u)|^1/2 \sum yi
public double predictScore(double avg,int userId, int itemId,int time){ double tmp = 0.0; int sz = train_data[userId].getLength(); double sqrtNum = 0; if (sz>1) sqrtNum = 1/(Math.sqrt(sz)); for(int i=0;i<factor;i++){ tmp += (Pu[userId][i] +sumMW[userId][i]*sqrtNum) * Qi[itemId][i]; } double score = 0.0; if(Bu_t.get(userId).get(time) != null) { score = avg + Bu[userId] + Bi[itemId] + Bi_Bin[itemId][CalBin(time)] + Alpha_u[userId]*CalDev(userId,time) + Bu_t.get(userId).get(time) + tmp; } if(score > 5){ score = 5; } if(score < 1){ score = 1; } return score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float predict();", "public abstract int predict(double[] testingData);", "public void Prediction() {\n System.out.println(\"\\nInput an x value: \");\n double x = inputs.nextDouble();\n double y = this.B0 + (this.B1 * x);\n System.out.println(\"The prediction made with \" + x + \" as the x value is: \" + y);\n System.out.println(\"\\nWhere y = B0 + (B1*xi) is substituted by:\\n y = \" + B0 + \" + (\" + B1 + \" * \" + x + \" )\\n\");\n }", "@Override\n\tpublic int predict(int[] ex) {\n\t\tdouble sum = 0.0; \n\t\tint prediction;\n\t\tfor (int currentRound = 0; currentRound < this.numberRounds; currentRound++){\n\t\t\tif (this.dSC[this.hypothesis[currentRound]].predict(ex) == 0)\n\t\t\t\tprediction = -1;\n\t\t\telse \n\t\t\t\tprediction = 1;\n\t\t\tsum += this.alpha[currentRound] * prediction; \n\t\t}\n\t\tif (sum > 0)\n\t\t\treturn 1;\n\t\treturn 0;\n\t}", "private float predictPrueba(float features) {\n float n_epochs = num_epoch;\n float num1 = (float) Math.random();\n float output = 0; //y\n\n //First, create an input tensor:\n /*\n\n */\n\n\n //**** TEORIA *******\n //First, create an input tensor:\n //Tensor input = Tensor.create(features);\n // float[][] output = new float[1][1];\n //Then perform inference by:\n //Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n //Copy this output to a float array using:\n //op_tensor.copyTo(output);\n // values.copyTo(output);\n Tensor input = Tensor.create(features);\n Tensor op_tensor = sess.runner().feed(\"input\",input).fetch(\"output\").run().get(0).expect(Float.class);\n //para escribir en la app en W y B test\n ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").run();\n // NO VA ESTA PRUEBA ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").fetch(\"y/output\").run();\n\n Wtest.setText(\"W_inicial: \"+(Float.toString(values.get(0).floatValue())));\n Btest.setText(\"b_inicial: \"+Float.toString(values.get(1).floatValue()));\n y_mejoras_w.add(((values.get(0).floatValue())));\n x_mejoras_w.add( \"\"+(0+ num_epoch*num));\n\n y_mejoras_b.add(((values.get(1).floatValue())));\n x_mejoras_b.add( \"\"+(0+ num_epoch*num));\n\n ///\n\n // Y.setText(Float.toString(values.get(1).floatValue()));\n\n return output; ///mal\n }", "double predict(Vector w);", "@Override\r\n\tpublic int predict(double[] x, double[] posteriori) {\n\t\treturn 0;\r\n\t}", "private void computeOutcomePrediction(GameObserver gameObs) {\n int nProfiles = eGame.getNumProfiles();\n while (gameObs.numObsLeft() > 0 &&\n eGame.getTotalNumSamples() < nProfiles) {\n\n int newBR = computeBetterResponse(currentPlayer, gameObs);\n\n // not enough samples to compute the next BR\n if (newBR == NO_SAMPLES_FLAG) {\n break;\n }\n\n // no BR for this player; try another player\n // if no players are left, we have found an equilibrium\n else if (newBR == NO_BR_FLAG) {\n if (lastPlayerWithBR == currentPlayer) {\n checkStability();\n selectRandomUnexploredProfile(gameObs);\n updateCurrentPlayer();\n } else {\n updateCurrentPlayer();\n }\n }\n\n // we have found a new BR\n else {\n // flag errors\n if (newBR < 0 || newBR > nActs[currentPlayer]) {\n throw new RuntimeException(\"Invalid BR in IBRD: \" + currentPlayer + \" \" + newBR);\n }\n\n // update the current profile and tabu list\n tabu.setValue(true, currentOutcome);\n currentOutcome[currentPlayer] = newBR;\n lastPlayerWithBR = currentPlayer;\n updateCurrentPlayer();\n }\n }\n\n // update \"global\" prediction based on all data so far\n updateGlobalOutcomePrediction();\n\n //System.out.println(\"Done with this iteration; no more samples.\");\n //System.out.println(\"Samples: \" + gameObs.getNumObs());\n }", "public double[] runOptimizer() {\n List<Integer> sents = new ArrayList<Integer>();\n for(int i=0; i<sentNum; i++)\n sents.add(i);\n \n if(needShuffle)\n Collections.shuffle(sents);\n \n double oraMetric, oraScore, predMetric, predScore;\n double[] oraPredScore = new double[4];\n double eta = 1.0; //learning rate, will not be changed if run percep\n double avgEta = 0; //average eta, just for analysis\n double loss = 0;\n double featNorm = 0;\n double featDiffVal;\n double sumMetricScore = 0;\n double sumModelScore = 0;\n String oraFeat = \"\";\n String predFeat = \"\";\n String[] oraPredFeat = new String[2];\n String[] vecOraFeat;\n String[] vecPredFeat;\n String[] featInfo;\n boolean first = true;\n //int processedSent = 0;\n Iterator it;\n Integer diffFeatId;\n double[] avgLambda = new double[initialLambda.length]; //only needed if averaging is required\n for(int i=0; i<initialLambda.length; i++)\n avgLambda[i] = 0.0;\n\n //update weights\n for(Integer s : sents) {\n //find out oracle and prediction\n if(first)\n findOraPred(s, oraPredScore, oraPredFeat, initialLambda, featScale);\n else\n findOraPred(s, oraPredScore, oraPredFeat, finalLambda, featScale);\n \n //the model scores here are already scaled in findOraPred\n oraMetric = oraPredScore[0];\n oraScore = oraPredScore[1];\n predMetric = oraPredScore[2];\n predScore = oraPredScore[3];\n oraFeat = oraPredFeat[0];\n predFeat = oraPredFeat[1];\n \n //update the scale\n if(needScale) { //otherwise featscale remains 1.0\n sumMetricScore += java.lang.Math.abs(oraMetric+predMetric);\n sumModelScore += java.lang.Math.abs(oraScore+predScore)/featScale; //restore the original model score\n \n if(sumModelScore/sumMetricScore > scoreRatio)\n featScale = sumMetricScore/sumModelScore;\n\n /* a different scaling strategy \n if( (1.0*processedSent/sentNum) < sentForScale ) { //still need to scale\n double newFeatScale = java.lang.Math.abs(scoreRatio*sumMetricDiff / sumModelDiff); //to make sure modelScore*featScale/metricScore = scoreRatio\n \n //update the scale only when difference is significant\n if( java.lang.Math.abs(newFeatScale-featScale)/featScale > 0.2 )\n featScale = newFeatScale;\n }*/\n }\n// processedSent++;\n\n HashMap<Integer, Double> allOraFeat = new HashMap<Integer, Double>();\n HashMap<Integer, Double> allPredFeat = new HashMap<Integer, Double>();\n HashMap<Integer, Double> featDiff = new HashMap<Integer, Double>();\n\n vecOraFeat = oraFeat.split(\"\\\\s+\");\n vecPredFeat = predFeat.split(\"\\\\s+\");\n \n for (int i = 0; i < vecOraFeat.length; i++) {\n featInfo = vecOraFeat[i].split(\":\");\n diffFeatId = Integer.parseInt(featInfo[0]);\n allOraFeat.put(diffFeatId, Double.parseDouble(featInfo[1]));\n featDiff.put(diffFeatId, Double.parseDouble(featInfo[1]));\n }\n\n for (int i = 0; i < vecPredFeat.length; i++) {\n featInfo = vecPredFeat[i].split(\":\");\n diffFeatId = Integer.parseInt(featInfo[0]);\n allPredFeat.put(diffFeatId, Double.parseDouble(featInfo[1]));\n\n if (featDiff.containsKey(diffFeatId)) //overlapping features\n featDiff.put(diffFeatId, featDiff.get(diffFeatId)-Double.parseDouble(featInfo[1]));\n else //features only firing in the 2nd feature vector\n featDiff.put(diffFeatId, -1.0*Double.parseDouble(featInfo[1]));\n }\n\n if(!runPercep) { //otherwise eta=1.0\n featNorm = 0;\n\n Collection<Double> allDiff = featDiff.values();\n for(it =allDiff.iterator(); it.hasNext();) {\n featDiffVal = (Double) it.next();\n featNorm += featDiffVal*featDiffVal;\n }\n \n //a few sanity checks\n if(! evalMetric.getToBeMinimized()) {\n if(oraSelectMode==1 && predSelectMode==1) { //\"hope-fear\" selection\n /* ora_score+ora_metric > pred_score+pred_metric\n * pred_score-pred_metric > ora_score-ora_metric\n * => ora_metric > pred_metric */\n if(oraMetric+1e-10 < predMetric) {\n System.err.println(\"WARNING: for hope-fear selection, oracle metric score must be greater than prediction metric score!\");\n System.err.println(\"Something is wrong!\");\n }\n }\n \n if(oraSelectMode==2 || predSelectMode==3) {\n if(oraMetric+1e-10 < predMetric) {\n System.err.println(\"WARNING: for max-metric oracle selection or min-metric prediction selection, the oracle metric \" +\n \t\t\"score must be greater than the prediction metric score!\");\n System.err.println(\"Something is wrong!\");\n }\n }\n } else {\n if(oraSelectMode==1 && predSelectMode==1) { //\"hope-fear\" selection\n /* ora_score-ora_metric > pred_score-pred_metric\n * pred_score+pred_metric > ora_score+ora_metric\n * => ora_metric < pred_metric */\n if(oraMetric-1e-10 > predMetric) {\n System.err.println(\"WARNING: for hope-fear selection, oracle metric score must be smaller than prediction metric score!\");\n System.err.println(\"Something is wrong!\");\n }\n }\n \n if(oraSelectMode==2 || predSelectMode==3) {\n if(oraMetric-1e-10 > predMetric) {\n System.err.println(\"WARNING: for min-metric oracle selection or max-metric prediction selection, the oracle metric \" +\n \"score must be smaller than the prediction metric score!\");\n System.err.println(\"Something is wrong!\");\n }\n }\n }\n \n if(predSelectMode==2) {\n if(predScore+1e-10 < oraScore) {\n System.err.println(\"WARNING: for max-model prediction selection, the prediction model score must be greater than oracle model score!\");\n System.err.println(\"Something is wrong!\");\n }\n }\n \n //cost - margin\n //remember the model scores here are already scaled\n loss = evalMetric.getToBeMinimized() ? //cost should always be non-negative \n (predMetric-oraMetric) - (oraScore-predScore)/featScale: \n (oraMetric-predMetric) - (oraScore-predScore)/featScale;\n \n if(loss<0)\n loss = 0;\n\n if(loss == 0)\n eta = 0;\n else\n //eta = C < loss/(featNorm*featScale*featScale) ? C : loss/(featNorm*featScale*featScale); //feat vector not scaled before\n eta = C < loss/(featNorm) ? C : loss/(featNorm); //feat vector not scaled before\n }\n \n avgEta += eta;\n\n Set<Integer> diffFeatSet = featDiff.keySet();\n it = diffFeatSet.iterator();\n\n if(first) {\n first = false;\n \n if(eta!=0) {\n while(it.hasNext()) {\n diffFeatId = (Integer)it.next();\n finalLambda[diffFeatId] = initialLambda[diffFeatId] + eta*featDiff.get(diffFeatId);\n }\n }\n }\n else {\n if(eta!=0) {\n while(it.hasNext()) {\n diffFeatId = (Integer)it.next();\n finalLambda[diffFeatId] = finalLambda[diffFeatId] + eta*featDiff.get(diffFeatId);\n }\n }\n }\n \n if(needAvg) {\n for(int i=0; i<avgLambda.length; i++)\n avgLambda[i] += finalLambda[i];\n }\n }\n \n if(needAvg) {\n for(int i=0; i<finalLambda.length; i++)\n finalLambda[i] = avgLambda[i]/sentNum;\n }\n \n avgEta /= sentNum;\n System.out.println(\"Average learning rate: \"+avgEta);\n\n // the intitialLambda & finalLambda are all trainable parameters\n //if (!trainMode.equals(\"3\")) // for mode 3, no need to normalize sparse\n // feature weights\n //normalizeLambda(finalLambda);\n //else\n //normalizeLambda_mode3(finalLambda);\n\n /*\n * for( int i=0; i<finalLambda.length; i++ ) System.out.print(finalLambda[i]+\" \");\n * System.out.println(); System.exit(0);\n */ \n\n double initMetricScore = computeCorpusMetricScore(initialLambda); // compute the initial corpus-level metric score\n double finalMetricScore = computeCorpusMetricScore(finalLambda); // compute final corpus-level metric score // the\n\n // prepare the printing info\n int numParamToPrint = 0;\n String result = \"\";\n\n if (trainMode.equals(\"1\") || trainMode.equals(\"4\")) {\n numParamToPrint = paramDim > 10 ? 10 : paramDim; // how many parameters\n // to print\n result = paramDim > 10 ? \"Final lambda(first 10): {\" : \"Final lambda: {\";\n\n for (int i = 1; i < numParamToPrint; i++)\n // in ZMERT finalLambda[0] is not used\n result += finalLambda[i] + \" \";\n } else {\n int sparseNumToPrint = 0;\n if (trainMode.equals(\"2\")) {\n result = \"Final lambda(regular feats + first 5 sparse feats): {\";\n for (int i = 1; i <= regParamDim; ++i)\n result += finalLambda[i] + \" \";\n\n result += \"||| \";\n\n sparseNumToPrint = 5 < (paramDim - regParamDim) ? 5 : (paramDim - regParamDim);\n\n for (int i = 1; i <= sparseNumToPrint; i++)\n result += finalLambda[regParamDim + i] + \" \";\n } else {\n result = \"Final lambda(first 10 sparse feats): {\";\n sparseNumToPrint = 10 < paramDim ? 10 : paramDim;\n\n for (int i = 1; i < sparseNumToPrint; i++)\n result += finalLambda[i] + \" \";\n }\n }\n\n output.add(result + finalLambda[numParamToPrint] + \"}\\n\" + \"Initial \"\n + evalMetric.get_metricName() + \": \" + initMetricScore + \"\\nFinal \"\n + evalMetric.get_metricName() + \": \" + finalMetricScore);\n\n // System.out.println(output);\n\n if (trainMode.equals(\"3\")) {\n // finalLambda = baseline(unchanged)+disc\n for (int i = 0; i < paramDim; i++)\n copyLambda[i + regParamDim + 1] = finalLambda[i];\n\n finalLambda = copyLambda;\n }\n\n return finalLambda;\n }", "private double[] computePredictionValues() {\n double[] predResponses = new double[D];\n for (int d = 0; d < D; d++) {\n double expDotProd = Math.exp(docLabelDotProds[d]);\n double docPred = expDotProd / (expDotProd + 1);\n predResponses[d] = docPred;\n }\n return predResponses;\n }", "public double RMSE(double avg,double[] bu,double[] bi,double[][] pu,double[][] qi){\n\t int userId,itemId,rating,t;\n\t int n = 0;\n\t double rmse = 0;\n\t \n\t for(int i=0;i<test_data.length;i++)\n\t {\n\t \tif(test_data[i].getLength() != 0) {\n\t\t \tfor(int j=0;j<test_data[i].getLength();j++)\n\t\t \t{\n\t\t \t\tuserId = test_data[i].getUser(j);\n\t\t \t\titemId = test_data[i].getItem(j);\n\t\t \t\tt = test_data[i].getTime(j);\n\t\t \t\trating = test_data[i].getTime(j);\n\t\t \t\tn++;\n\t\t\t double pScore = predictScore(avg,userId,itemId,t);\n\t\t\t rmse += (rating - pScore) * (rating - pScore);\n\t\t \t}\n\t \t}\n\t }\n\t return Math.sqrt(rmse/n);\n\t}", "@Override\r\n\tpublic int predict(double[] x) {\n\t\tdouble[][] inputArray = new double[1][x.length];\r\n\t\tfor (int i = 0; i < x.length; i++) {\r\n\t\t\tinputArray[0][i] = x[i]-0.5*this.means[0][0][i]-0.5*this.means[1][0][i];\r\n\t\t}\r\n\t\tMatrix input = new Matrix(inputArray);\r\n\t\tdouble result = this.delta;\r\n\t\t// System.out.println(input.times(this.beta.get(label)).getRowDimension());\r\n\t\tresult += input.times(this.beta).get(0, 0);\r\n\t\t// System.out.println(result);\r\n\t\treturn result > 0 ? 1 : -1;\r\n\t}", "public double computeError(double expected, double predicted);", "@Override\n\tpublic double generatePrediction(Network n, ArrayList<UserSimilarityTuple> ust, User user, String item) {\n\t\tdouble numerator = 0.0; \n\t\tdouble denomenator = 0.0;\n\t\tfor (UserSimilarityTuple tuple : ust) {\n\t\t\tnumerator += tuple.similarity * (n.networkMap.get(tuple.n).get(item) - tuple.n.average);\n\t\t\tdenomenator += Math.abs(tuple.similarity); \n\t\t}\n\t\tif (denomenator == 0.0) { \n\t\t\treturn user.average;\n\t\t}\n\t\treturn user.average + (numerator/denomenator);\n\n\t}", "private double calc_gain_ratio(String attrb,int partitonElem,HashMap<Integer, WeatherData> trainDataXMap,HashMap<Integer, WeatherData> trainDataYMap,double information_gain_System,int total_count_in_train)\n\t{\n\t\t\n\t\tHashMap<Integer,Integer> X_Train_attrb_part1 = new HashMap<Integer,Integer>();\n\t\tHashMap<Integer,Integer> X_Train_attrb_part2 = new HashMap<Integer,Integer>();\n\t\tHashMap<Integer,WeatherData> Y_Train_attrb_part1 = new HashMap<Integer,WeatherData>();\n\t\tHashMap<Integer,WeatherData> Y_Train_attrb_part2 = new HashMap<Integer,WeatherData>();\n\t\t//System.out.println(\"the partition elem is\"+partitonElem);\n\t\tfor(int i=1;i<=trainDataXMap.size();i++)\n\t\t{\n\t\t\tWeatherData wd = trainDataXMap.get(i);\n\t\t\t\n\t\t\tfor(Feature f: wd.getFeatures())\n\t\t\t{\n\t\t\t\tif(f.getName().contains(attrb))\n\t\t\t\t{\n\t\t\t\t\tint attrb_val = Integer.parseInt(f.getValues().get(0).toString());\n\t\t\t\t\tint xTRainKey = getKey(wd);\n\t\t\t\t\tif(attrb_val <= partitonElem)\n\t\t\t\t\t{\n\t\t\t\t\t\tX_Train_attrb_part1.put(xTRainKey,attrb_val);\n\t\t\t\t\t\tY_Train_attrb_part1.put(xTRainKey, trainDataYMap.get(xTRainKey));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tX_Train_attrb_part2.put(xTRainKey,attrb_val);\n\t\t\t\t\t\tY_Train_attrb_part2.put(xTRainKey, trainDataYMap.get(xTRainKey));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Size of first partition\n\t\tint Total_Count_attr_part1 = X_Train_attrb_part1.size();\n\t\t//System.out.println(\"the size of X first partition\"+Total_Count_attr_part1);\n\t\t//System.out.println(\"the size of Y first partition\"+Y_Train_attrb_part1.size());\n\t\t\n\t\t//Size of second partition\n\t\tint Total_Count_attr_part2 = X_Train_attrb_part2.size();\n\t\t//System.out.println(\"the size of X second partition\"+Total_Count_attr_part2);\n\t\t//System.out.println(\"the size of Y second partition\"+Y_Train_attrb_part2.size());\n\t\t\n\t\t//No of records in first partition where EVENT = RAIN \n\t\tint count_rain_yes_part1 = getCountsOfRain(Y_Train_attrb_part1,true,Total_Count_attr_part1);\n\t\t//System.out.println(\"count of rain in first part1\"+count_rain_yes_part1);\n\t\t\n\t\t//No of records in first partition where EVENT != RAIN Y_Train_attrb_part1\n\t\tint count_rain_no_part1 = getCountsOfRain(Y_Train_attrb_part1,false,Total_Count_attr_part1);\t\t\n\t\t//System.out.println(\"count of no rain in first part1\"+count_rain_no_part1);\n\t\t\n\t\t//Compute the Information Gain in first partition\n\t\t\n\t\tdouble prob_yes_rain_part1 = 0.0;\n\t\tdouble prob_no_rain_part1 = 0.0;\n\t\tdouble prob_yes_rain_part2 = 0.0;\n\t\tdouble prob_no_rain_part2 = 0.0;\n\t\tdouble getInfoGain_part1 = 0.0;\n\t double getInfoGain_part2 = 0.0;\n\t double gain_ratio_partition = 0.0;\n\t\tif(Total_Count_attr_part1!=0){\n\t\t\tprob_yes_rain_part1 = (count_rain_yes_part1/(double)Total_Count_attr_part1);\n\t\t\tprob_no_rain_part1 = (count_rain_no_part1/(double)Total_Count_attr_part1);\t\t\t\n\t\t}\n\t\tif((prob_yes_rain_part1!=0.0) && (prob_no_rain_part1!=0.0))\n\t\t{\n\t\t\tgetInfoGain_part1 = getInformationGain(prob_yes_rain_part1,prob_no_rain_part1);\n\t\t}\t\t\n\t\t\n\t\t//System.out.println(\"the info gain from part1\"+getInfoGain_part1);\n\t\t//No of records in second partition where EVENT = RAIN \n int count_rain_yes_part2 = getCountsOfRain(Y_Train_attrb_part2,true,Total_Count_attr_part2);\n\t\t\n //No of records in first partition where EVENT != RAIN\n\t\tint count_rain_no_part2 = getCountsOfRain(Y_Train_attrb_part2,false,Total_Count_attr_part2);\t\n\t\t\n\t\t//Compute the Information Gain in second partition\n\t\tif(Total_Count_attr_part2!=0)\n\t\t{\n\t\t\tprob_yes_rain_part2 = (count_rain_yes_part2/(double)Total_Count_attr_part2);\n\t\t\tprob_no_rain_part2 = (count_rain_no_part2/(double)Total_Count_attr_part2);\n\t\t\t\n\t\t}\n\t\tif((prob_yes_rain_part2!=0.0) && (prob_no_rain_part2!=0.0))\n\t\t{\n\t\t\tgetInfoGain_part2 = getInformationGain(prob_yes_rain_part2,prob_no_rain_part2);\n\t\t}\n\t\t//System.out.println(\"the info gain from part2\"+getInfoGain_part2);\n\t\t\n\t\t//Total Information from both partitions\n\t\tdouble infoGainFrom_Partition = getInfoGain_part1 + getInfoGain_part2;\n\t\t\n\t\t//Gain from the Partition\n\t\tdouble Gain_from_partition = information_gain_System - infoGainFrom_Partition;\n\t\t//System.out.println(\"The inf gain from system\"+information_gain_System);\n\t\t//System.out.println(\"The inf gain from part\"+infoGainFrom_Partition);\n\t\t//System.out.println(\"The gain from part\"+Gain_from_partition);\n\t\t\n\t\t//Split information of partition\n\t\tif((Total_Count_attr_part1!=0) && (Total_Count_attr_part2!=0))\n\t\t{\n\t\n\t\t\tdouble splitInfoFromPartition = getInformationGain(((double)Total_Count_attr_part1/total_count_in_train),\n ((double)Total_Count_attr_part2/total_count_in_train));\n\t\t\t\n\t\t\t//System.out.println(\"The split info from partition\"+splitInfoFromPartition);\n \n\t\t\t//Gain ratio of Partition\n gain_ratio_partition = Gain_from_partition/splitInfoFromPartition;\n\t\t}\n\t\t//System.out.println(\"The gain ratio info from partition\"+gain_ratio_partition);\n\t\treturn gain_ratio_partition;\n\t}", "public double predict (\tint user, \n\t\t\t\t\t\t\tint item )\t\n\t{\n\t\treturn dao.getUserMeanRating(user);\n\t}", "public void prediction() {\n\t\txPriorEstimate = xPreviousEstimate;\n\t\tpPriorCovarianceError = pPreviousCovarianceError;\n\t}", "public void predict(String filename){\n double[] dataVector = new double[1943];\n try {\n int[] temp = dv.getDataVector(filename);\n for (int i=0;i<temp.length;i++){\n dataVector[i] = temp[i];\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n double h = matrix.sigmoid(hypothesis(dataVector,Theta));\n System.out.println((h>=0.9)?\"Not Spam\":\"Spam\");\n }", "public void estimateParameter(){\r\n int endTime=o.length;\r\n int N=hmm.stateCount;\r\n double p[][][]=new double[endTime][N][N];\r\n for (int t=0;t<endTime;++t){\r\n double count=EPS;\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n p[t][i][j]=fbManipulator.alpha[t][i]*hmm.a[i][j]*hmm.b[i][j][o[t]]*fbManipulator.beta[t+1][j];\r\n count +=p[t][j][j];\r\n }\r\n }\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n p[t][i][j]/=count;\r\n }\r\n }\r\n }\r\n double pSumThroughTime[][]=new double[N][N];\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n pSumThroughTime[i][j]=EPS;\r\n }\r\n }\r\n for (int t=0;t<endTime;++t){\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n pSumThroughTime[i][j]+=p[t][i][j];\r\n }\r\n }\r\n }\r\n\r\n //rebuild gamma\r\n for (int t=0;t<endTime;++t){\r\n for (int i=0;i<N;++i) fbManipulator.gamma[t][i]=0;\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n fbManipulator.gamma[t][i]+=p[t][i][j];\r\n }\r\n }\r\n }\r\n\r\n double gammaCount=EPS;\r\n //maximum parameter\r\n for (int i=0;i<N;++i){\r\n gammaCount+=fbManipulator.gamma[0][i];\r\n hmm.pi[i]=fbManipulator.gamma[0][i];\r\n }\r\n for (int i=0;i<N;++i){\r\n hmm.pi[i]/=gammaCount;\r\n }\r\n\r\n for (int i=0;i<N;++i) {\r\n gammaCount = EPS;\r\n for (int t = 0; t < endTime; ++t) gammaCount += fbManipulator.gamma[t][i];\r\n for (int j = 0; j < N; ++j) {\r\n hmm.a[i][j] = pSumThroughTime[i][j] / gammaCount;\r\n }\r\n }\r\n for (int i=0;i<N;i++){\r\n for (int j=0;j<N;++j){\r\n double tmp[]=new double[hmm.observationCount];\r\n for (int t=0;t<endTime;++t){\r\n tmp[o[t]]+=p[t][i][j];\r\n }\r\n for (int k=0;k<hmm.observationCount;++k){\r\n hmm.b[i][j][k]=(tmp[k]+1e-8)/pSumThroughTime[i][j];\r\n }\r\n }\r\n }\r\n //rebuild fbManipulator\r\n fbManipulator=new HMMForwardBackwardManipulator(hmm,o);\r\n }", "public void predict(Matrix<Inputs, N1> u, double dtSeconds) {\n this.m_xHat = m_plant.calculateX(m_xHat, u, dtSeconds);\n }", "int[] predict(int paraUserIndex, int paraItemIndex, int paraK) {\n\t\tint[] tempDistribution = new int[5];\n\t\tIndicesOfFriendsRatedItem = new int[5];\n\t\t// Step 1. Find my friends\n\t\tint[] tempFriends = dataModel.uSecRels[paraUserIndex];\n\n\t\t// System.out.println(\"the friends is \" + Arrays.toString(tempFriends));\n\n\t\t// Step 1.1 If the user has not friends, we can't predict the object.\n\t\tif (tempFriends == null || tempFriends.length == 0) {\n\t\t\ttempDistribution = predictForNoneFriendUser(paraUserIndex, paraItemIndex, paraK);\n\t\t\treturn tempDistribution;\n\t\t} // Of if\n\n\t\t// Step 2. Find users to buy the items\n\t\tint[] tempUsers = dataModel.iTrRateInds[paraItemIndex];\n\n\t\t// System.out.println(\"the tempUsers is \" + Arrays.toString(tempUsers));\n\n\t\t// Step 3. Find my friends who rated the item.\n\t\tint[] tempIndicesOfFriendsRatedItem = SetOperator.interSection(tempFriends, tempUsers);\n\n\t\t// if the inter-section is null, we ask my friend one by one.\n\t\t// int a = 0;\n\t\t// while (tempIndicesOfFriendsRatedItem == null && a <\n\t\t// dataModel.uRelations[paraUserIndex].length) {\n\t\t// tempFriends = dataModel.uRelations[dataModel.uRelations[paraUserIndex][a]];\n\t\t// tempIndicesOfFriendsRatedItem = SetOperator.interSection(tempFriends,\n\t\t// tempUsers);\n\t\t//// if(tempIndicesOfFriendsRatedItem != null) {\n\t\t//// noWayCount1++;\n\t\t//// }//Of if\n\t\t// a++;\n\t\t// } // Of while\n\n\t\t// If the intersection is null, we can't predict the object.\n\t\tif (tempIndicesOfFriendsRatedItem == null) {\n\t\t\ttempDistribution = predictForNoneFriendUser(paraUserIndex, paraItemIndex, paraK);\n\t\t\treturn tempDistribution;\n\t\t} // Of if\n\n\t\t// Step 4. Compute the distribution of the predicting item\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < tempIndicesOfFriendsRatedItem.length; i++) {\n\t\t\tfor (int j = 0; j < dataModel.uRelations[paraUserIndex].length; j++) {\n\t\t\t\tif (tempIndicesOfFriendsRatedItem[i] == dataModel.uRelations[paraUserIndex][j]) {\n\t\t\t\t\tint tempIndex = dataModel.iTrRatings[paraItemIndex][tempIndicesOfFriendsRatedItem[i]];\n\t\t\t\t\ttempDistribution[tempIndex - 1]++;\n\t\t\t\t\tIndicesOfFriendsRatedItem[tempIndex - 1]++;\n\t\t\t\t\tflag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tint tempIndex = dataModel.iTrRatings[paraItemIndex][tempIndicesOfFriendsRatedItem[i]];\n\t\t\ttempDistribution[tempIndex - 1]++;\n\n\t\t} // Of for i\n\n\t\treturn tempDistribution;\n\t}", "public double predictionBaseline(String itemID){\r\n\t\tif(fuckUser){\r\n\t\t\treturn this.userAverageRate;\r\n\t\t}\r\n\t\tdouble sum = 0;\r\n\t\tint count = 0;\r\n\t\tfor(Integer i : read.rateMap.keySet()){\r\n\t\t\tfor(int j = 0; j < read.rateMap.get(i).size(); j++){\r\n\t\t\t\tsum += read.rateMap.get(i).get(j).getValue();\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.overAllAverage = sum / count;\r\n\t\tint I = read.rateMap.get(this.userID).size();\r\n\t\tint U = 0;\r\n\t\tArrayList<Double> rates = new ArrayList<>();\r\n\t\tfor(Integer i : read.rateMap.keySet()){\r\n\t\t\tfor(int j = 0; j < read.rateMap.get(i).size(); j++){\r\n\t\t\t\tif(read.rateMap.get(i).get(j).getKey().equals(itemID)){\r\n\t\t\t\t\tU++;\r\n\t\t\t\t\trates.add(read.rateMap.get(i).get(j).getValue());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tdouble bu = 0;\r\n\t\tdouble bi = 0;\r\n\t\tfor(int i = 0; i < read.rateMap.get(userID).size(); i++){\r\n\t\t\tbu += read.rateMap.get(userID).get(i).getValue() - this.overAllAverage;\r\n\t\t}\r\n\t\tbu = bu / I;\r\n\t\tfor(int i = 0; i < rates.size(); i++){\r\n\t\t\tbi += rates.get(i) - bu - this.overAllAverage;\r\n\t\t}\r\n\t\tbi = bi / U;\r\n\t\tdouble res = this.overAllAverage + bu + bi;\r\n\t\treturn res;\r\n\t}", "public double Predict(int i, int c)\n\t{\n\t\tdouble Y_hat_ic = biasW[c];\n\n\t\tfor(int k = 0; k < K; k++)\n\t\t\tY_hat_ic += M[i][k] * W[c][k];\n\t\t\n\t\treturn Y_hat_ic;\n\t}", "public <T> ToDoubleBiFunction<MP5Db<T>, String> getPredictorFunction(String user) {\n\t\t\n\t\tList<Business> Business = new ArrayList<Business>();\n\t\tList<Review> Reviews = new ArrayList<Review>();\n\t\tList<Double> sumMeanx = new ArrayList<Double>();\n\t\tList<Double> sumMeany = new ArrayList<Double>();\n\t\tdouble avgY;\n\t\tdouble avgX;\n\t\tdouble Sxx = 0.0;\n\t\tdouble Syy = 0.0;\n\t\tdouble Sxy = 0.0;\n\t\tdouble b;\n\t\tdouble a;\n\t\tdouble Rsquared;\n\n\t\tBusiness = this.getBusinessReviews(user);\n\t\tReviews = this.getUserReviews(user);\n\t\tif (Reviews.isEmpty() || Business.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\t\n\t\tint price = Business.get(0).getPrice();\n\t\tfor (Business rest : Business) {\n\t\t\tif (rest.getPrice() != price) {\n\t\t\t\tprice = -1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (price != -1) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\t// Calculate the avg rating for a list of reviews\n\t\tavgY = calcAvgY(Reviews);\n\t\t// Calculate the avg Price for a list of restaurants\n\t\tavgX = calcAvgX(Business);\n\t\t// Store all the (price(i) - price(avg)) for a list of Business in a List of doubles\n\t\tsumMeanx = sumMeanX(Business, avgX);\n\t\t// Store all the (price(i) - price(avg)) for a list of Business in a List of doubles\n\t\tsumMeany = sumMeanY(Reviews, avgY);\n\n\t\t//Perform the linear regression methods on the list of doubles found above\n\t\tfor (int j = 0; j < sumMeany.size(); j++) {\n\t\t\tdouble x = sumMeanx.get(j);\n\t\t\tdouble y = sumMeany.get(j);\n\n\t\t\tSxx += x * x;\n\t\t\tSyy += y * y;\n\t\t\tSxy += x * y;\n\t\t}\n\n\t\tb = Sxy / Sxx;\n\t\ta = avgY - b * avgX;\n\t\tRsquared = Sxy * Sxy / (Sxx * Syy);\n\n\t\t// Declare the ToDoubleBiFunction\n\t\tToDoubleBiFunction<MP5Db<T>, String> function = (MP5, business_id) -> {\n\t\t\t//Cast MP5Db<T> as type MP5AbstractDb\n\t\t\tMP5AbstractDb<Business> db = (MP5AbstractDb<Business>) MP5;\n\t\t\tdouble pr = db.getBusiness(business_id).getPrice();\n\t\t\tdouble result = a * pr + b;\n\t\t\t\n\t\t\t// min return of 1\n\t\t\tif (result < 1) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\t// max return of 5\n\t\t\tif (result > 5) {\n\t\t\t\treturn 5;\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t};\n\n\t\treturn function;\n\t}", "private double getAccuracyBinary(double[] predict, double[] real) {\n\t\tif (predict.length != real.length) return -1;\n\t\tdouble wrong = 0;\n\t\tdouble correct = 0;\n\t\tfor (int i = 0; i < predict.length; i++) {\n\t\t\tif ((predict[i] > 20 && real[i] > 20) ||\n\t\t\t(predict[i] < 20 && real[i] < 20))\n\t\t\tcorrect++;\n\t\t\telse wrong++;\n\t\t}\n\t\tdouble acur = correct / (correct + wrong);\n\t\treturn acur;\n\t}", "public final double[] score0( double[] data, double[] preds ) {\n java.util.Arrays.fill(preds,0);\n java.util.Arrays.fill(NUMS,0);\n int i = 0, ncats = 0;\n final int n = data.length;\n for(; i<n; ++i) {\n NUMS[i] = Double.isNaN(data[i]) ? 0 : data[i];\n }\n java.util.Arrays.fill(ACTIVATION[0],0);\n for (i=0; i<NUMS.length; ++i) {\n ACTIVATION[0][CATOFFSETS[CATOFFSETS.length-1] + i] = Double.isNaN(NUMS[i]) ? 0 : NUMS[i];\n }\n for (i=1; i<ACTIVATION.length; ++i) {\n java.util.Arrays.fill(ACTIVATION[i],0);\n int cols = ACTIVATION[i-1].length;\n int rows = ACTIVATION[i].length;\n int extra=cols-cols%8;\n int multiple = (cols/8)*8-1;\n int idx = 0;\n float[] a = WEIGHT[i];\n double[] x = ACTIVATION[i-1];\n double[] y = BIAS[i];\n double[] res = ACTIVATION[i];\n for (int row=0; row<rows; ++row) {\n double psum0 = 0, psum1 = 0, psum2 = 0, psum3 = 0, psum4 = 0, psum5 = 0, psum6 = 0, psum7 = 0;\n for (int col = 0; col < multiple; col += 8) {\n int off = idx + col;\n psum0 += a[off ] * x[col ];\n psum1 += a[off + 1] * x[col + 1];\n psum2 += a[off + 2] * x[col + 2];\n psum3 += a[off + 3] * x[col + 3];\n psum4 += a[off + 4] * x[col + 4];\n psum5 += a[off + 5] * x[col + 5];\n psum6 += a[off + 6] * x[col + 6];\n psum7 += a[off + 7] * x[col + 7];\n }\n res[row] += psum0 + psum1 + psum2 + psum3;\n res[row] += psum4 + psum5 + psum6 + psum7;\n for (int col = extra; col < cols; col++)\n res[row] += a[idx + col] * x[col];\n res[row] += y[row];\n idx += cols;\n }\n if (i<ACTIVATION.length-1) {\n for (int r=0; r<ACTIVATION[i].length; ++r) {\n ACTIVATION[i][r] = 1 - 2 / (1 + Math.exp(2*ACTIVATION[i][r]));\n }\n }\n if (i == ACTIVATION.length-1) {\n double max = ACTIVATION[i][0];\n for (int r=1; r<ACTIVATION[i].length; r++) {\n if (ACTIVATION[i][r]>max) max = ACTIVATION[i][r];\n }\n double scale = 0;\n for (int r=0; r<ACTIVATION[i].length; r++) {\n ACTIVATION[i][r] = Math.exp(ACTIVATION[i][r] - max);\n scale += ACTIVATION[i][r];\n }\n for (int r=0; r<ACTIVATION[i].length; r++) {\n if (Double.isNaN(ACTIVATION[i][r]))\n throw new RuntimeException(\"Numerical instability, predicted NaN.\");\n ACTIVATION[i][r] /= scale;\n preds[r+1] = ACTIVATION[i][r];\n }\n }\n }\n preds[0] = hex.genmodel.GenModel.getPrediction(preds, PRIOR_CLASS_DISTRIB, data, 0.5);\n return preds;\n }", "protected float computeModelScoreOnTraining() {\n/* 508 */ float s = computeModelScoreOnTraining(0, this.samples.size() - 1, 0);\n/* 509 */ s /= this.samples.size();\n/* 510 */ return s;\n/* */ }", "public Prediction apply( double[] confidence );", "@Test\n public void testPrediction1() throws Exception {\n\n final CalUtils.InstantGenerator instantGenerator =\n new LocalTimeMinutes(5);\n \n final double coreDailyVols[][] = new double[][] {\n new double[] {55219 , 262256 , 202661 , 218359 , 178244 , 99610 , 92348 , 124795 , 214370 , 153854 , 204116 , 173501 , 85390 , 156835 , 108070 , 23755 , 118573 , 70117 , 55768 , 52643 , 71485 , 407645 , 442909 , 129109 , 188896 , 79590 , 422121 , 290067 , 227955 , 69257 , 41634 , 446002 , 579188 , 86237 , 1606794 , 83676 , 166393 , 84987 , 875905 , 117013 , 399084 , 116190 , 149507 , 207221 , 60857 , 155612 , 448006 , 198637 , 67695 , 65423 , 180038 , 88774 , 80273 , 86065 , 85231 , 38867 , 29330 , 116353 , 26887 , 34170 , 102518 , 72246 , 21274 , 70752 , 37912 , 49367 , 100472 , 49461 , 41735 , 45795 , 36578 , 311945 , 249039 , 70487 , 121906 , 136424 , 195136 , 166308 , 331734 , 343180 , 419616 , 104613 , 1354058 , 162678 , 141067 , 147039 , 149115 , 271162 , 543989 , 184421 , 340679 , 201939 , 293860 , 171035 , 263964 , 260198 , 428087 , 565126 , 385874 , 547890 , 384416 , 256696 , 0 , 4738359},\n new double[] {1298630 , 678084 , 488607 , 224766 , 434263 , 356933 , 576571 , 219236 , 252805 , 414776 , 166828 , 174665 , 146281 , 110944 , 145234 , 179739 , 253111 , 175685 , 64925 , 216682 , 494507 , 100205 , 67371 , 101019 , 158026 , 316281 , 334067 , 954850 , 115547 , 163051 , 130303 , 107600 , 1407996 , 90357 , 110452 , 451866 , 238004 , 3096215 , 2672803 , 190170 , 111282 , 107135 , 453389 , 60821 , 98292 , 1310864 , 1132267 , 241907 , 89915 , 175676 , 61621 , 521553 , 212388 , 288651 , 193578 , 272161 , 256777 , 236382 , 802159 , 230248 , 387068 , 160647 , 106999 , 391933 , 465080 , 374577 , 340378 , 330708 , 416320 , 200347 , 251986 , 336664 , 311970 , 600559 , 508011 , 922379 , 311581 , 352459 , 508727 , 159316 , 1355635 , 246541 , 389672 , 805957 , 370754 , 382556 , 316971 , 564228 , 437166 , 277733 , 1284505 , 1763095 , 169661 , 280682 , 969102 , 540315 , 451895 , 308036 , 715130 , 642966 , 981563 , 900778 , 0 , 7155528},\n new double[] {679280 , 229518 , 346536 , 347215 , 316025 , 313890 , 235844 , 199995 , 1920617 , 129356 , 172084 , 207860 , 317578 , 10369008 , 480990 , 1403537 , 1021730 , 156125 , 94833 , 366987 , 145687 , 322957 , 328120 , 66657 , 176001 , 271003 , 133121 , 558624 , 264638 , 638663 , 165080 , 129439 , 5126344 , 5438632 , 248806 , 250616 , 112716 , 54523 , 198097 , 67772 , 1414565 , 244509 , 246205 , 151540 , 98584 , 51217 , 94193 , 111763 , 104726 , 45880 , 64242 , 78893 , 60706 , 48117 , 133085 , 101941 , 5103803 , 5084823 , 168230 , 75537 , 815036 , 73409 , 422412 , 437127 , 115802 , 326536 , 54707 , 81759 , 94420 , 208637 , 50361 , 1458556 , 84257 , 129114 , 54632 , 105873 , 57165 , 77578 , 233302 , 195560 , 134194 , 180928 , 140433 , 123154 , 221422 , 339866 , 1343886 , 114699 , 170052 , 150679 , 181731 , 160943 , 192590 , 125556 , 132656 , 154740 , 320932 , 140929 , 117889 , 381656 , 393635 , 306177 , 0 , 21629250},\n new double[] {526909 , 167180 , 199570 , 149154 , 142141 , 320881 , 223750 , 102275 , 258400 , 202197 , 120202 , 93404 , 178631 , 106401 , 346186 , 231729 , 163656 , 1622531 , 125689 , 2656587 , 5336032 , 2385985 , 335692 , 86118 , 130551 , 99047 , 81695 , 98846 , 238413 , 4831684 , 293262 , 124652 , 106642 , 112048 , 14284646 , 111209 , 2204635 , 128940 , 83395 , 134816 , 116320 , 65412 , 165020 , 126511 , 92217 , 111751 , 47320 , 82219 , 19044177 , 70827 , 21676 , 211214 , 103108 , 22771 , 61629 , 4816563 , 63806 , 33989 , 130104 , 146897 , 15046441 , 44977 , 40889 , 54584 , 54591 , 76634 , 238536 , 68583 , 110591 , 75012 , 503760 , 209479 , 217929 , 86397 , 102284 , 81878 , 252785 , 135884 , 129149 , 112760 , 266851 , 110863 , 67866 , 55205 , 150165 , 699438 , 184450 , 270270 , 4270036 , 345303 , 895116 , 217142 , 145398 , 301231 , 10260595 , 136317 , 442910 , 371357 , 189023 , 538928 , 438973 , 926728 , 9137 , 8879481},\n new double[] {1318228 , 1391326 , 574558 , 441739 , 719144 , 522626 , 404351 , 383602 , 490710 , 284952 , 2984474 , 216339 , 10220195 , 247067 , 166223 , 224310 , 10181837 , 126161 , 9764418 , 692337 , 25907353 , 1518741 , 1179929 , 120730 , 10173292 , 290045 , 19824327 , 402527 , 277859 , 3116841 , 7164061 , 332021 , 10560006 , 2334129 , 121753 , 200177 , 246402 , 10106648 , 1137272 , 2084673 , 461849 , 125108 , 465907 , 156972 , 139083 , 127389 , 237263 , 311691 , 156536 , 155322 , 133368 , 329715 , 256088 , 116835 , 5192615 , 823762 , 183836 , 1110239 , 2414836 , 385072 , 599637 , 387285 , 291580 , 2796924 , 12977051 , 338582 , 884415 , 525622 , 322587 , 223348 , 668858 , 143039 , 627590 , 239797 , 232788 , 256503 , 209425 , 375474 , 558106 , 290991 , 1176648 , 286550 , 149539 , 297435 , 602136 , 152733 , 212363 , 178992 , 179644 , 295428 , 933636 , 349405 , 660749 , 226061 , 868852 , 318539 , 469303 , 538061 , 273643 , 444084 , 347730 , 825808 , 12011 , 7792372}};\n\n final SimpleDateFormat dateBuilder = new SimpleDateFormat(\"yyyy-MM-dd\");\n final Calendar moments[] = new Calendar[] { Calendar.getInstance(), \n Calendar.getInstance(), Calendar.getInstance(), \n Calendar.getInstance(), Calendar.getInstance(),\n Calendar.getInstance() };\n\n moments[0].setTime(dateBuilder.parse(\"2011-10-26\"));\n moments[1].setTime(dateBuilder.parse(\"2011-10-27\"));\n moments[2].setTime(dateBuilder.parse(\"2011-10-28\"));\n moments[3].setTime(dateBuilder.parse(\"2011-10-30\"));\n moments[4].setTime(dateBuilder.parse(\"2011-11-01\"));\n moments[5].setTime(dateBuilder.parse(\"2011-11-02\"));\n\n // Nomralize data to sum 100 (i.e., have an expectance of 100/104)\n for(int i=0; i<5; i++) {\n double sum = 0;\n for(int j=0; j<104; j++) sum += coreDailyVols[i][j];\n for(int j=0; j<104; j++) {\n coreDailyVols[i][j] = coreDailyVols[i][j]*100 / sum;\n }\n }\n\n final double[][] synthesizedDailyVols = new double[\n coreDailyVols.length][instantGenerator.maxInstantValue()];\n final Calendar openTime = Calendar.getInstance();\n final int n = 9*60 / 5;\n final int m = n + coreDailyVols[0].length;\n for(int i=0; i<5; i++) {\n for(int j=0; j<n; j++) {\n synthesizedDailyVols[i][j] = Double.NaN;\n }\n for(int j=0; j<coreDailyVols[i].length; j++) {\n synthesizedDailyVols[i][j+n] = coreDailyVols[i][j];\n }\n for(int j=m; j<instantGenerator.maxInstantValue(); j++) {\n synthesizedDailyVols[i][j] = Double.NaN;\n }\n }\n\n\n final Predictor predictor = new PCAPredictorTransposed(\n instantGenerator, 5);\n for(int i=0; i<5; i++) {\n predictor.learnVector(moments[i], synthesizedDailyVols[i]);\n }\n final double prediction[] = predictor.predictVector(moments[5]);\n final double coreExpectedPrediction[] = new double[] {\n0.21383323, -0.08665493, -0.28527934, -0.45293966, -0.35525111, -0.49117788,\n-0.38114565, -0.60141152, -0.09029406, -0.44815719, -0.45152723, -0.58079146,\n-0.29110153, 1.54262599, -0.59900211, -0.48107804, -0.03280398, -0.59369964,\n-0.44886852, -0.43868587, 0.88745208, -0.10900099, -0.26251035, -0.71557572,\n-0.20051598, -0.57674404, 0.53793693, 0.15857465, -0.53212067, -0.13529962,\n-0.49171709, -0.32334222, 2.16101856, 0.46824882, 2.13337330, -0.48802957,\n-0.40084079, 1.62077396, 1.93080019, -0.59114756, -0.09429057, -0.68952951,\n-0.39819841, -0.63019599, -0.78762027, 0.12458423, 0.34847712, -0.52481068,\n0.69730449, -0.74290105, -0.68866588, -0.45964670, -0.69174165, -0.64825389,\n-0.49908622, -0.30049621, 0.35726449, 0.47210113, -0.25058065, -0.72112704,\n0.79345044, -0.73245678, -0.75581875, -0.40885896, -0.08033429, -0.56030291,\n-0.54967743, -0.63571829, -0.58889882, -0.71099478, -0.67055922, -0.03850658,\n-0.40339282, -0.43003588, -0.44813762, -0.14347007, -0.48441216, -0.48851502,\n-0.15427010, -0.39484463, 0.52701151, -0.61335693, 0.89776479, -0.18821502,\n-0.46457371, -0.39850394, -0.26234640, -0.21535441, 0.33669589, -0.48879971,\n0.43892192, 0.52101182, -0.42851659, -0.51364225, 0.85831207, -0.24052028,\n-0.04192086, -0.02287821, 0.01522206, 0.24307671, 0.27369478, 0.11058009,\n-0.95575786, 14.90733910 };\n final double synthesizedExpectedPrediction[] = new double[\n instantGenerator.maxInstantValue()];\n for(int j=0; j<n; j++) {\n synthesizedExpectedPrediction[j] = Double.NaN;\n }\n for(int j=0; j<coreExpectedPrediction.length; j++) {\n synthesizedExpectedPrediction[j+n] = coreExpectedPrediction[j];\n }\n for(int j=m; j<instantGenerator.maxInstantValue(); j++) {\n synthesizedExpectedPrediction[j] = Double.NaN;\n }\n\n assertEquals(prediction.length, synthesizedExpectedPrediction.length);\n\n for(int i=0; i<prediction.length; i++) {\n assertEquals(prediction[i], synthesizedExpectedPrediction[i], \n 0.0001d);\n }\n System.out.println(\"Ok\");\n }", "public static Double[] learnSimplePerceptronRound2(Data data1[],int index,double LearningRate,Double w[],HashMap<Integer, Integer> words)\r\n \t{\r\n \t\t//Double w[] = new Double[20]; \r\n \t/*\tDouble min =-0.01; // Set To Your Desired Min Value\r\n\t Double max = 0.01;\r\n \t\tdouble smallRandNumber = min + new Random().nextDouble() * (max - min); \r\n \t\tArrays.fill(w, smallRandNumber);*/\r\n \t\t\r\n \t\tData data[] = Arrays.copyOf(data1,index);\r\n \t\t\r\n \t\t//shuffle the data..\r\n \t \tArrayList<Data> arrayList = new ArrayList<Data>(Arrays.asList(Arrays.copyOf(data,index))); \r\n \t\tCollections.shuffle(arrayList,new Random(10));\r\n \t\tdata = arrayList.toArray(new Data[arrayList.size()]);\r\n \t\tfor(int i=0;i<index;i++)\r\n \t\t{\r\n \t\t\tdouble trueLabel;\r\n \t\t\tdouble predictedLabel;\r\n \t\t\tdouble dotProduct_wT_x = 0.0f;\r\n \t\t\tHashMap<Integer, Double> x = new HashMap<Integer, Double>();\r\n \t\t \r\n \t\t\ttrueLabel = data[i].getY();\r\n \t\t\tx= data[i].getX();\r\n \t\t\tboolean correct=false;\r\n \t\t\t// loop till its corrects..\r\n \t\t\t\r\n \t\t\twhile(correct==false)\r\n \t\t\t{\r\n \t\t\t//wT*x (contains bias)\r\n \t\t\tfor (Map.Entry<Integer, Double> entry : x.entrySet()) {\r\n \t\t\t\tdotProduct_wT_x = dotProduct_wT_x + w[entry.getKey()] * entry.getValue();\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t//predict the label\r\n \t\t\tif(dotProduct_wT_x < 0)\r\n \t\t\t\tpredictedLabel = -1;\r\n \t\t\telse\t\r\n \t\t\t\tpredictedLabel = +1;\r\n \t\t\t\r\n \t\t\t//check if prediction is correct, if not update the weight vector and bias.\r\n \t\t\tif(predictedLabel != trueLabel)\r\n \t\t//\tif(dotProduct_wT_x<0)\r\n \t\t\t{\r\n \t\t\t\t//update bias\r\n \t\t\t\tw[0]=w[0]+trueLabel*LearningRate;\r\n \t\t\t\t\r\n \t\t\t\t//update all other weights only if those words are worthy tracking\r\n \t\t\t\r\n \t\t\t\tfor(int j=1;j<w.length;j++)\r\n \t\t\t\t{\r\n \t\t\t\t\t// if(x.containsKey(j))\r\n \t\t\t\t if(x.containsKey(j))\r\n \t\t\t\t//\t if(words.containsKey(j)) //give more weightage to words that matter\r\n \t\t\t//\t\t\t\tw[j]=w[j]+LearningRate*trueLabel*(x.get(j));\r\n \t\t\t\t//\t else\r\n\t\t\t\t\t\t\tw[j]=w[j]+LearningRate*trueLabel*x.get(j);\r\n\r\n \t\t\t\t//\telse\r\n \t\t\t//\t\t\tw[j]=(double)0;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t\tcorrect=true;\r\n \t\t }\r\n \t\t}\r\n \t\treturn w;\r\n \t}", "public float getInterpolatedBank (float u) {\r\n\r\n float newBank;\r\n \r\n // if linear interpolation\r\n if (this.linear == 1) {\r\n\r\n newBank = keyFrame[1].bank + \r\n ((keyFrame[2].bank - keyFrame[1].bank) * u);\r\n } else {\r\n\r\n newBank = b0 + u * (b1 + u * (b2 + u * b3));\r\n\r\n }\r\n\r\n return newBank;\r\n }", "public double getObservationProbability(){\r\n double ret=0;\r\n int time=o.length;\r\n int N=hmm.stateCount;\r\n for (int t=0;t<=time;++t){\r\n for (int i=0;i<N;++i){\r\n ret+=fbManipulator.alpha[t][i]*fbManipulator.beta[t][i];\r\n }\r\n }\r\n ret/=time;\r\n return ret;\r\n }", "@Override\n public double makePrediction(ParsedText text) {\n double pr = 0.0;\n\n /* FILL IN HERE */\n double productSpam = 0;\n double productNoSpam = 0;\n \n int i, tempSpam,tempNoSpam;\n int minSpam, minNoSpam ;\n \n \n for (String ng: text.ngrams) {\n \tminSpam = Integer.MAX_VALUE;\n \tminNoSpam = Integer.MAX_VALUE;\n \n\n \tfor (int h = 0;h < nbOfHashes; h++) {\n \t\ti = hash(ng,h);\n\n \t\ttempSpam = counts[1][h][i];\n \t\ttempNoSpam = counts[0][h][i];\n \t\t\n \t\t//System.out.print(tempSpam + \" \");\n\n \t\tminSpam = minSpam<tempSpam?minSpam:tempSpam; \n \t\tminNoSpam = minNoSpam<tempNoSpam?minNoSpam:tempNoSpam; \n \t\t\n \t}\n\n \t//System.out.println(minSpam + \"\\n\");\n \tproductSpam += Math.log(minSpam);\n \tproductNoSpam += Math.log(minNoSpam);\n }\n \n // size of set minus 1\n int lm1 = text.ngrams.size() - 1;\n \n //System.out.println((productNoSpam - productSpam ));\n //System.out.println((lm1*Math.log(this.classCounts[1]) - lm1*Math.log(this.classCounts[0])));\n\n //\n pr = 1 + Math.exp(productNoSpam - productSpam + lm1*(Math.log(classCounts[1]) - Math.log(classCounts[0])));\n // System.out.print(1.0/pr + \"\\n\");\n \n return 1.0 / pr;\n\n }", "@Override\n public ToDoubleBiFunction<MP5Db<Restaurant>, String> getPredictorFunction(String user) {\n List<Integer> user_ratings = new ArrayList<Integer>(); // x\n List<Integer> restaurant_price = new ArrayList<Integer>(); // y\n\n // Construct two lists of user_ratings and restaurant_prices\n for (Review r : this.reviewMap.values()) {\n if (r.getUserId().equals(user)) {\n user_ratings.add(r.getStars());\n restaurant_price.add(this.restaurantMap.get(r.getBusinessId()).getPrice());\n }\n }\n\n double meanX = computeMean(restaurant_price);\n double meanY = computeMean(user_ratings);\n double Sxx = computeSxx(restaurant_price, meanX);\n double Sxy = computeSxy(restaurant_price, meanX, user_ratings, meanY);\n\n double b = Sxy / Sxx;\n\n // If predictor function does not contain enough data, throw runtime exception\n if (Double.isNaN(b)) {\n throw new IllegalArgumentException();\n }\n\n double a = meanY - b * meanX;\n\n ToDoubleBiFunction<MP5Db<Restaurant>, String> function = (database, restaurantID) -> {\n // Function logic\n double price = ((YelpDB) database).getRestaurantPrice(restaurantID);\n double ratingPrediction = a + b * price;\n if (ratingPrediction > 5) {\n return 5;\n } else if (ratingPrediction < 1) {\n return 1;\n } else {\n return ratingPrediction;\n }\n };\n\n return function;\n }", "private static double evaluate_dev(int count, int t) {\n double[][] tmp_featweights = new double[Features.num_feat][600000];\n double[][] tmp_best_avg_featVal = new double[Features.num_feat][600000];\n double[][] tmp_sum_featVal = new double[Features.num_feat][600000];\n double[][] tmp_changes_featVal = new double[Features.num_feat][600000];\n for (int ii = 0; ii < Features.num_feat; ii++) {\n tmp_featweights[ii] = Arrays.copyOf(Features.featweights[ii], Features.featweights[ii].length);\n tmp_best_avg_featVal[ii] = Arrays.copyOf(Features.best_avg_featVal[ii], Features.best_avg_featVal[ii].length);\n tmp_sum_featVal[ii] = Arrays.copyOf(Features.sum_featVal[ii], Features.sum_featVal[ii].length);\n tmp_changes_featVal[ii] = Arrays.copyOf(Features.changes_featVal[ii], Features.changes_featVal[ii].length);\n }\n double[][] tmp_a = new double[Features.m][Features.m];\n double[][] tmp_best_avg_a = new double[Features.m][Features.m];\n double[][] tmp_sum_a = new double[Features.m][Features.m];\n double[][] tmp_changes_a = new double[Features.m][Features.m];\n for (int ii = 0; ii < Features.m; ii++) {\n tmp_a[ii] = Arrays.copyOf(Features.a[ii], Features.a[ii].length);\n tmp_best_avg_a[ii] = Arrays.copyOf(Features.best_avg_a[ii], Features.best_avg_a[ii].length);\n tmp_sum_a[ii] = Arrays.copyOf(Features.sum_a[ii], Features.sum_a[ii].length);\n tmp_changes_a[ii] = Arrays.copyOf(Features.changes_a[ii], Features.changes_a[ii].length);\n }\n // final average\n Features.final_average(count);\n try {\n BufferedReader test_file = new BufferedReader(new FileReader(dev_file));\n String sentence = \"\";\n String line = null;\n while ((line=test_file.readLine()) != null) {\n if (line.isEmpty()) {\n Features.viterbi(\"<s> \"+sentence.substring(0,sentence.length()-1)+\" </s>\", true, mdl_path+\"/dev_output_\"+ (t+1), avg_flag);\n sentence = \"\";\n } else {\n sentence += line.substring(0,line.indexOf(\"\\t\")) + \" \";\n }\n }\n test_file.close();\n }\n catch(Exception ex){\n ex.printStackTrace();\n }\n double dev_acc = tagging_accuracy(dev_file, mdl_path+\"/dev_output_\"+ (t+1));\n if (dev_acc > best_acc_so_far) {\n Features.bestiter_a = Features.a;\n Features.bestiter_featweights = Features.featweights;\n Features.bestiter_avg_a = Features.best_avg_a;\n Features.bestiter_avg_featVal = Features.best_avg_featVal;\n }\n // restore before evaluation values\n Features.featweights = tmp_featweights;\n Features.best_avg_featVal = tmp_best_avg_featVal;\n Features.sum_featVal = tmp_sum_featVal;\n Features.changes_featVal = tmp_changes_featVal;\n Features.a = tmp_a;\n Features.best_avg_a = tmp_best_avg_a;\n Features.sum_a = tmp_sum_a;\n Features.changes_a = tmp_changes_a;\n return dev_acc;\n }", "public int predict(int[] testingData) {\n\t\t// HIDDEN LAYER\n\t\tdouble[] hiddenActivations = new double[SIZE_HIDDEN_LAYER];\n\t\t\n\t\tfor(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden++) {\n\t\t\thiddenActivations[indexHidden] = 0;\n\t\t\tfor(int indexInput = 0; indexInput < SIZE_INPUT_LAYER; indexInput++) {\n\t\t\t\thiddenActivations[indexHidden] += weightsOfHiddenLayer[indexHidden][indexInput] * testingData[indexInput];\n\t\t\t}\t\n\t\t\thiddenActivations[indexHidden] += biasOfHiddenLayer[indexHidden];\n\t\t\thiddenActivations[indexHidden] = tanh(hiddenActivations[indexHidden]);\n\t\t}\n\t\t// OUTPUT LAYER \n\t\tdouble[] predictedLabel = new double[testingData.length];\n\n\t\tfor(int i = 0; i < SIZE_OUTPUT_LAYER; i++) {\n\t\t\tpredictedLabel[i] = 0;\n\n\t\t\tfor(int j = 0; j < SIZE_HIDDEN_LAYER; j++) {\n\t\t\t\tpredictedLabel[i] += weightsOfOutputLayer[i][j] * hiddenActivations[j];\n\t\t\t}\n\t\t\tpredictedLabel[i] += biasOfOutputLayer[i]; \n\t\t}\n\t\tsoftmax(predictedLabel);\n\t\tint solution = argmax(predictedLabel);\n\t\treturn solution;\n\t}", "public double getBias();", "public int[] predict2(int[] O) {\n\n\t\tint T = O.length;\n\t\tint[] Q = new int[T];\n\n\t\tdouble[] delta_t = new double[N];\n\t\tdouble[] delta_t_plus_1 = new double[N];\n\n\t\tint[][] psi = new int[T][];\n\t\tfor (int t = 0; t < T; t++) {\n\t\t\tpsi[t] = new int[N]; \n\t\t}\n\n\t\tdouble[] V = new double[N];\n\n\t\t// Viterbi algorithm\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tdelta_t[i] = pi[i] * B[i][O[1 - 1]];\n\t\t}\n\n\t\tint t = 1;\n\t\tint maxIdx = -1;\n\t\tdouble maxVal = 0;\n\t\tdo {\n\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\tV[i] = delta_t[i] * A[i][j];\n\t\t\t\t}\n\t\t\t\tmaxIdx = argmax(V);\n\t\t\t\tmaxVal = V[maxIdx];\n\t\t\t\tdelta_t_plus_1[j] = maxVal * B[j][O[t + 1 - 1]];\n\t\t\t\tpsi[t + 1 - 1][j] = maxIdx;\n\t\t\t}\n\t\t\t// swap(delta_t, delta_t_plus_1);\n\t\t\tdouble[] temp = null;\n\t\t\ttemp = delta_t;\n\t\t\tdelta_t = delta_t_plus_1;\n\t\t\tdelta_t_plus_1 = temp;\n\t\t\tt = t + 1;\n\t\t} while (t < T);\n\n\t\t// display(psi);\n\n\t\tint i_t = argmax(delta_t);\n\t\tQ[T - 1] = i_t;\n\t\tt = T;\n\t\tdo {\n\t\t\ti_t = psi[t - 1][i_t];\n\t\t\tQ[t - 1 - 1] = i_t;\n\t\t\tt = t - 1;\n\t\t} while (t > 1);\n\n\t\treturn Q;\n\n\t}", "@Override\n /**\n * @param X The input vector. An array of doubles.\n * @return The value returned by th LUT or NN for this input vector\n */\n\n public double outputFor(double[] X) {\n int i = 0, j = 0;\n for(i=0;i<argNumInputs;i++){\n S[0][i] = X[i];\n NeuronCell[0][i] = X[i];\n }\n //then add the bias term\n S[0][argNumInputs] = 1;\n NeuronCell[0][argNumInputs] = customSigmoid(S[0][argNumInputs]);\n S[1][argNumHidden] = 1;\n NeuronCell[1][argNumHidden] = customSigmoid(S[1][argNumInputs]);\n\n for(i=0;i<argNumHidden;i++){\n for(j=0;j<=argNumInputs;j++){\n //Wji : weigth from j to i\n WeightSum+=NeuronCell[0][j]*Weight[0][j][i];\n }\n //Sj = sigma(Wji * Xi)\n S[1][i]=WeightSum;\n NeuronCell[1][i]=(customSigmoid(WeightSum));\n //reset weigthsum\n WeightSum=0;\n }\n\n for(i = 0; i < argNumOutputs; i++){\n for(j = 0;j <= argNumHidden;j++){\n WeightSum += NeuronCell[1][j] * Weight[1][j][i];\n }\n NeuronCell[2][i]=customSigmoid(WeightSum);\n S[2][i]=WeightSum;\n WeightSum=0;\n }\n //if we only return 1 double, it means we only have one output, so actually we can write return NeuronCell[2][0]\n return NeuronCell[2][0];\n }", "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }", "void computePrecisionAndRecall(int paraLikeThreshold, int paraK, int paraN, double paraMax, double paraBelta,\n\t\t\tdouble paraGama) {\n\n\t\t// System.out.println(\"the uTrRateInds is: \");\n\t\t// SimpleTool.printMatrix(dataModel.uTrRateInds);\n\t\t// System.out.println(\"the uTrRatings is : \");\n\t\t// SimpleTool.printMatrix(dataModel.uTrRatings);\n\t\t// System.out.println(\"the iTrRateInds is: \");\n\t\t// SimpleTool.printMatrix(dataModel.iTrRateInds);\n\t\t// System.out.println(\"the iTrRatings is : \");\n\t\t// SimpleTool.printMatrix(dataModel.iTrRatings);\n\t\t// System.out.println(\"the uTeRateInds is : \");\n\t\t// SimpleTool.printMatrix(dataModel.uTeRateInds);\n\t\t// System.out.println(Arrays.toString(dataModel.uTeDgr));\n\n\t\tint tempSucRecLen = 0;\n\t\tint tempRecLen = 0;\n\t\tint tempLikeLen = 0;\n\t\tint tempCount = 0;\n\t\tdouble tempNDCG = 0;\n\t\tfor (int i = 0; i < dataModel.userNum; i++) {\n\t\t\t// System.out.println(\"the user is \" + i + \" , the length is \" +\n\t\t\t// dataModel.uTeRateInds[i].length);\n\t\t\tint[] tempRecLists = recommendListForOneUser(i, paraLikeThreshold, paraK, paraN, paraBelta, paraGama);\n\t\t\t// System.out.println(\"the reclist is \" + Arrays.toString(tempRecLists));\n\t\t\tint[] tempLikeLists = likeListForOneUser(i, paraLikeThreshold);\n\t\t\t// System.out.println(\"the likelist is \" + Arrays.toString(tempLikeLists));\n\t\t\tint[] tempInterSection = SetOperator.interSection(tempRecLists, tempLikeLists);\n\n\t\t\t// System.out.println(\"User \" + i + \" recommend lists: \");\n\t\t\t// SimpleTool.printIntArray(tempRecLists);\n\t\t\tif (tempInterSection != null) {\n\t\t\t\ttempSucRecLen = tempInterSection.length;\n\t\t\t\ttempRecLen = tempRecLists.length;\n\t\t\t\ttempLikeLen = tempLikeLists.length;\n\t\t\t\tif (tempRecLen > 1e-6) {\n\t\t\t\t\tprecision += (tempSucRecLen + 0.0) / tempRecLen;\n\t\t\t\t\ttempNDCG = computeNDCG(i, tempRecLists, paraMax);\n\t\t\t\t\tNDCG += tempNDCG;\n\t\t\t\t} // Of if\n\t\t\t\tif (tempLikeLen > 1e-6) {\n\t\t\t\t\trecall += (tempSucRecLen + 0.0) / tempLikeLen;\n\t\t\t\t} // Of if\n\t\t\t} else {\n\t\t\t\ttempCount++;\n\t\t\t\tcontinue;// Of if\n\t\t\t}\n\n\t\t} // Of for i\n\t\t\t// System.out.println(\"the count is: \" + tempCount);\n\t\tprecision = precision / (dataModel.userNum - tempCount);\n\t\trecall = recall / (dataModel.userNum - tempCount);\n\t\tNDCG = NDCG / (dataModel.userNum - tempCount);\n\t}", "@Override\n\tpublic double getRx() {\n\ndouble object = 0;\n for(int i = 0; i < x.length; i++){\n object += Math.pow(y[i] - ( theta[0] + theta[1] * x[i]), 2);\n }\n return object / 2 ;\n }", "public double prediction(String itemID){\r\n\t\tif(fuckUser){\r\n\t\t\treturn this.userAverageRate;\r\n\t\t}\r\n\t\tArrayList<Map.Entry<Integer, Double>> neighbor = this.getNeighbor(itemID);\r\n\t\t//If this user is the bad user, just give the prediction with the same rate as the others which the user has been rated.\r\n\t\tif(neighbor.size() == 0){\r\n\t\t\treturn this.userAverageRate;\r\n\t\t}\r\n\t\tdouble a = 0.0;\r\n\t\tdouble b = 0.0;\r\n\t\tfor(int i = 0; i < neighbor.size(); i++){\r\n\t\t\tdouble neighborRate = 0;\r\n\t\t\tint neighborID = neighbor.get(i).getKey();\r\n\t\t\tdouble neighborAver = average.get(neighbor.get(i).getKey());\r\n\t\t\tfor(int j = 0; j < read.rateMap.get(neighborID).size(); j++){\r\n\t\t\t\tif(read.rateMap.get(neighborID).get(j).getKey().equals(itemID)){\r\n\t\t\t\t\tneighborRate = read.rateMap.get(neighborID).get(j).getValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ta += neighbor.get(i).getValue() * (neighborRate - neighborAver);\r\n\t\t\tb += Math.abs(neighbor.get(i).getValue());\r\n\t\t}\r\n\t\tdouble res = this.userAverageRate + a / b;\r\n\t\treturn res;\r\n\t}", "public static void main(String[] args) {\n Double rateOfSvi;\n Double rateOfEvi;\n Double rateOfIvi;\n Double rateOfShi;\n Double rateOfEhi;\n Double rateOfIhi;\n Double weeklyRateOfIhi;\n Double Ihi;\n int nextSvi;\n int nextEvi;\n int nextIvi;\n int nextShi;\n int nextEhi;\n int nextIhi;\n int week = 0;\n final int id = 69;\n String[] line;\n final int[] infectedPredictions = new int[53];\n double vectorPopulation; // 3times the Host population in the area\n// initializeMobility();\n int val = 0;\n double error = 1000;\n\n// for(int e = 3500; e < 4500; e++) {\n// mohSampleMob = e;\n\n// System.out.println(\"Mobility Initialized\");\n initializePopulation();\n// System.out.println(\"Population Initialized\");\n initializeInfected();\n// System.out.println(\"Infected Initialized\");\n setInitialConditions(id, 0);\n// System.out.println(\"Initial conditions created\");\n// System.out.println(\"betaVi,betaHi,scalingFactor = \" + betaVi + \",\" + betaHi + \",\" + scalingFactor);\n infectedPredictions[0] = currentIhi;\n// try {\n// writer = new CSVWriter(new FileWriter(\"/Users/Anushka/Documents/workspace/CSV/Colombo_MSE.csv\"));\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// for (int bvi = 0; bvi<100 ; bvi++) {\n// betaVi = (bvi * 0.01);\n// for (int bhi = 0; bhi < 100; bhi++) {\n// betaHi = (bhi * 0.01);\n for (int i = 1; i <= 52; i++) {\n week = i;\n weeklyRateOfIhi = 0.0;\n\n setInitialConditions(69, week - 1);\n\n for (int j = 0; j < 7; j++) { // Do this for a week as we calculate daily figures.\n //Equations for the vectors\n rateOfSvi = muVi * scalingFactor * getMOHPopulation(id) - betaVi * getConnectivity(id, week) * currentSvi - muVi * currentSvi; // scalingFactor*HostPopulation = vectorPopulation\n rateOfEvi = betaVi * getConnectivity(id, week) * currentSvi - muVi * currentEvi - kappa * currentEvi;\n rateOfIvi = kappa * currentEvi - muVi * currentIvi;\n\n // Equations for the hosts\n rateOfShi = getMOHPopulation(id) - betaHi * getConnectivityWithinRegion(id) * currentShi - muHi * currentShi;\n rateOfEhi = betaHi * getConnectivityWithinRegion(id) * currentShi - lambda * currentEhi - muHi * currentEhi;\n rateOfIhi = lambda * currentEhi - delta * currentIhi - muHi * currentIhi;\n weeklyRateOfIhi += rateOfIhi;\n // Obtain next states\n\n// if (i == 0) {\n// currentSvi = rateOfSvi.intValue();\n// currentEvi = rateOfEvi.intValue();\n// currentIvi = rateOfIvi.intValue();\n// currentShi = rateOfShi.intValue();\n// currentEhi = rateOfEhi.intValue();\n// currentIhi = rateOfIhi.intValue();\n// }else{\n currentSvi += rateOfSvi.intValue();\n currentEvi += rateOfEvi.intValue();\n currentIvi += rateOfIvi.intValue();\n currentShi += rateOfShi.intValue();\n currentEhi += rateOfEhi.intValue();\n\n// if (rateOfIhi.intValue() > 0) {\n// currentIhi += rateOfIhi.intValue();\n// }\n// }\n\n\n }\n infectedPredictions[week] = weeklyRateOfIhi.intValue();\n //System.out.println(\"Week \" + week + \" Prediction \" + infectedPredictions[week] + \" Actual \" + infected[id][week]);\n //System.out.print(infectedPredictions[week] + \",\");\n //System.out.print(infected[id][week] + \",\");\n // Set current infected to actual value for next prediction\n currentIhi = infected[id][week];\n }\n System.out.println(Arrays.toString(infectedPredictions));\n System.out.println(Arrays.toString(infected[id]));\n\n// double er = calculateMSE(infectedPredictions, infected[id]);\n System.out.println(betaVi + \" \" + betaHi + \" \" + calculateMSE(infectedPredictions, infected[id]));\n\n// if(er < error){\n// error = er;\n// val = e;\n// }\n\n// DrawGraph provider = new DrawGraph();\n// DrawGraph.createAndShowGui();\n int[] actual = Arrays.copyOfRange(infected[id], 0, 52);\n int[] predict = Arrays.copyOfRange(infectedPredictions, 0, 52);\n\n// System.out.println();\n// }\n\n// System.out.println(val);\n// System.out.println(Arrays.toString(predict));\n// System.out.println(Arrays.toString(actual));\n\n XYLineChartExample temp = new XYLineChartExample(actual, predict);\n\n\n// BufferedWriter br = null;\n// try {\n// br = new BufferedWriter(new FileWriter(\"myfile.csv\"));\n//\n// StringBuilder sb = new StringBuilder();\n// for (int element : infectedPredictions) {\n// sb.append(element);\n// sb.append(\",\");\n// }\n// sb.append(\",\");\n//\n// for (int element : infected[id]) {\n// sb.append(element);\n// sb.append(\",\");\n// }\n//\n// br.write(String.valueOf(sb));\n// br.close();\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n\n\n //line = new String[]{Double.toString(betaVi), Double.toString(betaHi), Double.toString(calculateMSE(infectedPredictions, infected[id]))};\n //writer.writeNext(line);\n// }\n//\n// }\n// try {\n// writer.close();\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n }", "int[] recommendListForOneUser(int paraUserIndex, double paraLikeThreshold, int paraK, int paraN, double paraBelta,\n\t\t\tdouble paraGama) {\n\t\t// System.out.println(\"the user is \" + paraUserIndex + \" , the length is \" +\n\t\t// dataModel.uTeRateInds[paraUserIndex].length);\n\t\tint[] tempRecLists = new int[dataModel.uTeRateInds[paraUserIndex].length];\n\t\tdouble[] itemLikeRatio = new double[dataModel.uTeRateInds[paraUserIndex].length];\n\t\t// int[] itemLike = new int[dataModel.uTeRateInds[paraUserIndex].length];\n\t\t// for (int i = 0; i < itemLike.length; i++) {\n\t\t// itemLike[i] = -1;\n\t\t// }\n\t\tArrays.fill(tempRecLists, -1);\n\t\tArrays.fill(itemLikeRatio, -1);\n\t\t// Arrays.fill(itemLike, -1);\n\t\tint tempCount = 0;\n\t\t// Step 1. Predict the distribution\n\t\tfor (int i = 0; i < dataModel.uTeRateInds[paraUserIndex].length; i++) {\n\t\t\tisFriends = true;\n\t\t\tint[] tempDistribution = predict(paraUserIndex, dataModel.uTeRateInds[paraUserIndex][i], paraK);\n\n\t\t\t// System.out.println(\"the distribution is \" +\n\t\t\t// Arrays.toString(tempDistribution));\n\t\t\t// System.out.println(\"the IndicesOfFriendsRatedItem is \" +\n\t\t\t// Arrays.toString(IndicesOfFriendsRatedItem));\n\n\t\t\tif (tempDistribution == null) {\n\t\t\t\tcontinue;\n\t\t\t} // Of if\n\t\t\tdouble tempLikePro = 0;\n\t\t\tint tempTotal = 0;\n\t\t\tfor (int j = 0; j < tempDistribution.length; j++) {\n\t\t\t\tif (j >= paraLikeThreshold) {\n\t\t\t\t\ttempLikePro += (IndicesOfFriendsRatedItem[j] * 1\n\t\t\t\t\t\t\t+ (tempDistribution[j] - IndicesOfFriendsRatedItem[j]) * paraBelta);\n\t\t\t\t} // Of if\n\t\t\t\ttempTotal += (IndicesOfFriendsRatedItem[j] * 1\n\t\t\t\t\t\t+ (tempDistribution[j] - IndicesOfFriendsRatedItem[j]) * paraBelta);\n\t\t\t} // Of for i\n\n\t\t\t// System.out.println(tempLikePro + \" / \" + tempTotal);\n\n\t\t\tif (tempTotal > 1e-6) {\n\t\t\t\ttempLikePro = tempLikePro / tempTotal;\n\t\t\t} // Of if\n\n\t\t\t// Step 3. Obtain the recommend lists.\n\t\t\ttempRecLists[tempCount] = dataModel.uTeRateInds[paraUserIndex][i];\n\t\t\tif(isFriends) {//friend relationships\n\t\t\t\titemLikeRatio[tempCount] = tempLikePro;\n\t\t\t}else {//kNN\n\t\t\t\titemLikeRatio[tempCount] = tempLikePro * paraGama;\n\t\t\t}\n\t\t\t// itemLike[tempCount] = dataModel.uTeRateInds[paraUserIndex][i];\n\t\t\ttempCount++;\n\t\t} // Of for i\n\n\t\t// System.out.println(\"the reclist = \" + Arrays.toString(tempRecLists));\n\t\t// System.out.println(\"the itemLikeRatio = \" + Arrays.toString(itemLikeRatio));\n\t\t// System.out.println(\"the itemLike = \" + Arrays.toString(itemLike));\n\n\t\t// Step 4. Compress\n\t\tif (tempCount < paraN) {\n\t\t\treturn null;\n\t\t} // Of if\n\n\t\tint[] tempCompRecLists = new int[tempCount];\n\t\tdouble[] tempCompRecRatio = new double[tempCount];\n\t\tfor (int i = 0; i < tempCount; i++) {\n\t\t\ttempCompRecLists[i] = tempRecLists[i];\n\t\t\ttempCompRecRatio[i] = itemLikeRatio[i];\n\t\t} // Of for i\n\t\t\t// System.out.println(\"the recommend list's length is \" +\n\t\t\t// tempCompRecLists.length);\n\n\t\titemLike = orderItemLike(tempCompRecRatio, tempCompRecLists);\n\t\t// System.out.println(\"the itemLike = \" + Arrays.toString(itemLike));\n\n\t\tint[] result = new int[paraN];\n\t\tfor (int i = 0; i < paraN; i++) {\n\t\t\tresult[i] = itemLike[i];\n\t\t} // Of for i\n\t\tArrays.sort(result);\n\t\treturn result;\n\t}", "public int[] predict(int[] O) {\n\n\t\tint T = O.length;\n\t\tint[] Q = new int[T];\n\n\t\tdouble[] phi_t = allocateVector(N);\n\t\tdouble[] phi_t_plus_1 = allocateVector(N);\n\t\tdouble[] temp_phi = null;\n\n\t\tint[][] psi = new int[T][];\n\t\tfor (int t = 0; t < T; t++) {\n\t\t\tpsi[t] = new int[N];\n\t\t}\n\n\t\tdouble[] V = allocateVector(N);\n\n\t\t// Viterbi algorithm using logarithms\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tphi_t[i] = log(pi[i]) + log(B[i][O[0]]);\n\t\t}\n\n\t\tint t = 1;\n\t\tint maxIdx = -1;\n\t\tdouble maxVal = 0;\n\t\tdo {\n\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\tV[i] = phi_t[i] + log(A[i][j]);\n\t\t\t\t}\n\t\t\t\tmaxIdx = argmax(V);\n\t\t\t\tmaxVal = V[maxIdx];\n\t\t\t\tphi_t_plus_1[j] = maxVal + log(B[j][O[t]]);\n\t\t\t\tpsi[t][j] = maxIdx;\n\t\t\t}\n\t\t\ttemp_phi = phi_t;\n\t\t\tphi_t = phi_t_plus_1;\n\t\t\tphi_t_plus_1 = temp_phi;\n\t\t\tt = t + 1;\n\t\t} while (t < T);\n\n\t\t// display(psi);\n\n\t\tint i_t = argmax(phi_t);\n\t\tQ[T - 1] = i_t;\n\t\tt = T;\n\t\tdo {\n\t\t\ti_t = psi[t - 1][i_t];\n\t\t\tQ[t - 1 - 1] = i_t;\n\t\t\tt = t - 1;\n\t\t} while (t > 1);\n\n\t\treturn Q;\n\n\t}", "public HashMap<List<Integer>, List<Integer>> obtainPolicy(double [] u){\n\t\tHashMap<List<Integer>, List<Integer>> optimalPolicy = new \n\t\t\t\tHashMap<List<Integer>, List<Integer>>();\n\t\tfor(List<Integer> s : states) {\n\t\t\tdouble max = Double.NEGATIVE_INFINITY;\n\t\t\tfor(int a : validActions.get(s)) {\n\t\t\t\tdouble sum = 0.0;\n\t\t\t\tfor(List<Integer> sDash : states) \n\t\t\t\t\tsum += transitionFunction(transitions, s, actions.get(a), \n\t\t\t\t\t\tsDash) * u[states.indexOf(sDash)];\n\t\t\t\tdouble val = getReward(s, actions.get(a)) + \n\t\t\t\t\t\tspec.getDiscountFactor() * sum;\n\t\t\t\tif(val > max) {\n\t\t\t\t\tmax = val;\n\t\t\t\t\toptimalPolicy.put(s, actions.get(a));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn optimalPolicy;\n\t}", "public void predict(final Bitmap bitmap) {\n new AsyncTask<Integer, Integer, Integer>() {\n\n @Override\n\n protected Integer doInBackground(Integer... params) {\n\n //Resize the image into 224 x 224\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5f, 1.0f);\n\n //Pass input into the tensorflow\n tf.feed(INPUT_NAME, floatValues, 1, 224, 224, 3);\n\n //compute predictions\n tf.run(new String[]{OUTPUT_NAME});\n\n //copy the output into the PREDICTIONS array\n tf.fetch(OUTPUT_NAME, PREDICTIONS);\n\n //Obtained highest prediction\n Object[] results = argmax(PREDICTIONS);\n\n\n int class_index = (Integer) results[0];\n float confidence = (Float) results[1];\n\n\n try {\n\n final String conf = String.valueOf(confidence * 100).substring(0, 5);\n\n //Convert predicted class index into actual label name\n final String label = ImageUtils.getLabel(getAssets().open(\"labels.json\"), class_index);\n\n\n //Display result on UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n progressBar.dismiss();\n resultView.setText(label + \" : \" + conf + \"%\");\n\n }\n });\n\n } catch (Exception e) {\n\n\n }\n\n\n return 0;\n }\n\n\n }.execute(0);\n\n }", "float getBoost();", "static int m22551b(int i, zzwt zzwt, cu cuVar) {\n return m22569e(i) + m22556b(zzwt, cuVar);\n }", "public double calculateLoss(int dataIndex){\r\n double ans = 0;\r\n for (int i = 0; i < outputLayer.length; i++) {\r\n ans += Math.pow((attribute[dataIndex] == i ? 1 : 0) - sigmoid(outputLayer[i].z), 2);\r\n }\r\n return ans / outputLayer.length;\r\n }", "float getSpecialProb();", "public Map<String, Double> predictAndEvaluate(NodeVecs nodeVecs) {\n int topK = Integer.parseInt(prop.getProperty(\"prediction.numwanted\", \"1\"));\n\n List<Query> testQueries = queryNodes.buildQueries();\n\n int numQueries = testQueries.size();\n float sim = 0;\n int nQueriesEvaluated = 0;\n \n Map<String, int[]> counter = new HashMap<>();\n List<PredictionTuple> rtuples = new ArrayList<>();\n \n for (int qid=0; qid < numQueries; qid++) {\n Query testQuery = testQueries.get(qid);\n \n System.out.println(\"Test Query: \" + testQuery);\n\n AndQuery testAndQuery = (AndQuery)testQueries.get(qid);\n\n if (Boolean.parseBoolean(prop.getProperty(\"prediction.flattenquery\"))) {\n // first flatten the query\n testAndQuery = AndQuery.flatten(testAndQuery);\n }\n // filter the target of the query\n testAndQuery = testAndQuery.withFilter(avp ->\n avp.getAttribute().getId().equals(predictedOutcomeValueAttributeId) // make sure we target the correct outcome value\n && avp.getNumericValue() != null // we don't care about non-numerical OV\n && avp.getNumericValue() <= 100.0); // remove noisy values outside of 0-100%\n //testAndQuery = new AndQuerySimple(testAndQuery);\n System.out.println(\"Test Query: \" + testAndQuery);\n // run the query\n List<SearchResult> results = getResults(testAndQuery, nodeVecs, topK);\n\n //testQuery = testQuery.filteredWith(result -> result.node.getAttribute().getType() == wantedType()); // set the filter\n \n Map<String, List<SearchResult>> groupedResults = groupByAttribs(results); \n groupedResults = collapseToWtAvg(groupedResults);\n\n for (List<SearchResult> perAttribList: groupedResults.values()) {\n System.out.println(resTuple(perAttribList));\n for (SearchResult sr : perAttribList) {\n String stStr = sr.toString();\n int[] count = counter.get(stStr);\n if (count == null) {\n count = new int[1];\n counter.put(stStr, count);\n }\n count[0]++;\n }\n \n // float this_sim = evaluationLogic.evaluate(qid, perAttribList);\n PredictionTuple rtuple = evaluationLogic.evaluate(qid, perAttribList.get(0));\n if (!rtuple.valid()) {\n LOGGER.warn(\"Reference or prediction is not valid (less than 0): {} -- {}\", rtuple.getRef(), rtuple.getPred());\n continue;\n }\n System.out.println(\"Reference:\\t\" + rtuple.getRef() + \"\\tPrediction\\t\" + rtuple.getPred());\n\n rtuples.add(rtuple);\n //sim += this_sim;\n }\n nQueriesEvaluated++;\n }\n \n /*\n if (nQueriesEvaluated > 0)\n System.out.println(\"Mean-average \" + evaluationLogic.getMetricName() + \": \" + Math.sqrt(sim/(float)nQueriesEvaluated));\n */\n try { \n // Print out the result tuples in a file\n FileWriter fw = new FileWriter(\"res.tsv\");\n BufferedWriter bw = new BufferedWriter(fw);\n \n for (PredictionTuple rt: rtuples) {\n bw.write(rt.getRef() + \"\\t\" + rt.getPred());\n bw.newLine();\n }\n bw.close();\n fw.close();\n }\n catch (IOException ex) {\n ex.printStackTrace();\n }\n \n \n Map<String, Double> res = new HashMap<>();\n for (EvaluationMetric metric : evaluationMetrics) {\n String metricName = metric.toString();\n double evaluationResult = metric.compute(rtuples);\n System.out.println(metricName + \": \" + evaluationResult);\n res.put(metricName, evaluationResult);\n }\n \n /*\n // print distribution of all results\n for (Entry<String, int[]> entry : counter.entrySet()) {\n System.out.println(entry.getKey() + \"\\t\" + entry.getValue()[0]);\n }\n */\n\n return res;\n }", "protected double ABT() {\r\n\t\tDouble output = Double.MAX_VALUE;\r\n\t\tIterator<Double> bws = this.flowBandwidth.values().iterator();\r\n\t\twhile (bws.hasNext()) {\r\n\t\t\tdouble temp = bws.next();\r\n\t\t\tif (temp < output) {\r\n\t\t\t\toutput = temp;\r\n\t\t\t\t// System.out.println(\"[GeneralSimulator.ABT]: \" + output);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// System.out.println(\"[GeneralSimulator.ABT]: succfulCount \"\r\n\t\t// + this.successfulCount);\r\n\t\treturn output * this.successfulCount;\r\n\t}", "private void backwardCalculation(double[] trainingOutput) {\n\t\tfor (int i = 0; i < numberOfOutputs; i++) {\n\t\t\terrorOutput[i] = output[i] * (1 - output[i]) * (trainingOutput[i] - output[i]);\n\t\t}\n\n\t\t// computer error at every hidden node\n\t\tfor (int i = 0; i < numberOfMiddle; i++) {\n\t\t\tdouble sum = 0;\n\n\t\t\tfor (int j = 0; j < numberOfOutputs; j++) {\n\t\t\t\tsum += matrixOutput[i][j] * errorOutput[j];\n\t\t\t}\n\n\t\t\terrorMiddle[i] = middle[i] * (1 - middle[i]) * sum;\n\t\t}\n\n\t\t// update weights between hidden and output nodes\n\t\tfor (int i = 0; i < numberOfMiddle; i++) {\n\t\t\tfor (int j = 0; j < numberOfOutputs; j++) {\n\t\t\t\tmatrixOutput[i][j] += rate * middle[i] * errorOutput[j];\n\t\t\t}\n\t\t}\n\n\t\t// update weights between input and hidden nodes\n\t\tfor (int i = 0; i < numberOfInputs; i++) {\n\t\t\tfor (int j = 0; j < numberOfMiddle; j++) {\n\t\t\t\tmatrixMiddle[i][j] += rate * input[i] * errorMiddle[j];\n\t\t\t}\n\t\t}\n\n\t\t// update thetas at output nodes\n\t\tfor (int i = 0; i < numberOfOutputs; i++) {\n\t\t\tthetaOutput[i] += rate * errorOutput[i];\n\t\t}\n\n\t\t// update thetas at hidden nodes\n\t\tfor (int i = 0; i < numberOfMiddle; i++) {\n\t\t\tthetaMiddle[i] += rate * errorMiddle[i];\n\t\t}\n\t}", "public int predictRating(User theUser, Video theVideo) throws NullPointerException;", "double computeMAE(int paraK) {\n\t\tdouble tempMae = 0;\n\t\tint tempTotalCount = 0;\n\t\t// Step 1. Predict the distribution\n\t\tfor (int i = 0; i < dataModel.uTeRateInds.length; i++) {\n\t\t\tfor (int j = 0; j < dataModel.uTeRateInds[i].length; j++) {\n\t\t\t\tint[] tempDistribution = predict(i, dataModel.uTeRateInds[i][j], paraK);\n\t\t\t\tif (tempDistribution == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} // Of if\n\n\t\t\t\tdouble tempPrediction = 0;\n\t\t\t\tint tempCount = 0;\n\t\t\t\tfor (int k = 0; k < tempDistribution.length; k++) {\n\t\t\t\t\ttempPrediction += tempDistribution[k] * (k + 1);\n\t\t\t\t\ttempCount += tempDistribution[k];\n\t\t\t\t} // Of for k\n\t\t\t\ttempPrediction /= tempCount;\n\n\t\t\t\ttempMae += Math.abs(tempPrediction - dataModel.uTeRatings[i][j]);\n\t\t\t\ttempTotalCount++;\n\t\t\t} // of for\n\t\t} // of for i\n\n\t\tif (tempTotalCount > 1e-6) {\n\t\t\ttempMae /= tempTotalCount;\n\t\t} // of\n\n\t\treturn tempMae;\n\t}", "public double[] ConsumptionDecisionRule(double[] Kt, double[] Zt) {\r\n\t\t// LOGGER.info(\"Kt[0]=\" + Kt[0] + \" , Zt[0]=\" + Zt[0]);\r\n\t\tdouble[] result = new double[N];\r\n\t\tdouble[] W_t = new double[N];\r\n\t\t// double[] result = Kt;\r\n\t\t// fact[9] = iT / (double) T;\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\r\n\t\t\t// Compute wage\r\n\t\t\tW_t[i] = (1 - delta) * Kt[i] + Zt[i] * Math.pow(Kt[i], alpha);\r\n\t\t\t// LOGGER.info(\"Kt[i]=\" + Kt[i] + \" , W_t=\" + W_t);\r\n\r\n\t\t\t// fact[0] = Kt[i];\r\n\t\t\t// fact[1] = Zt[i];\r\n\t\t\t// fact[2] = W_t[i];\r\n\r\n\t\t\t// result[i] = (W_t[i] * 0.34);\r\n\r\n\t\t\t// S[sc=640619,15461196 at 2000, 3x[C 0,35 [], C 0,256 [6], C -0,032 [4]]]\r\n\t\t\t// result[i] = W_t[i] * (0.35 + 0.256 * factValues[6] - 0.032 * factValues[4]);\r\n\t\t\t// S[sc=673175,23434734 at 2000, 4x[C 0,448 [6], C 0,35 [], C -0,192 [8, 8, 8], C -0,032 [4]]]\r\n\t\t\t// result[i] = W_t[i] * (0.35 + 0.448 * fact[6] - 0.192 * fact[8] * fact[8] * fact[8] - 0.032 * fact[4]);\r\n\r\n\t\t\t// S[sc=684511.51178919 at 5000, 6x[C 0.576 [6], C 0.35 [], C -0.256 [4, 5, 8], C -0.128 [8, 8, 8], C 0.032\r\n\t\t\t// [3], C -0.032 [4]]]\r\n\t\t\t// result[i] = W_t[i]\r\n\t\t\t// * (0.35 + 0.576 * fact[6] - 0.256 * fact[4] * fact[5] * fact[8] - 0.128 * fact[8] * fact[8] * fact[8] +\r\n\t\t\t// 0.032\r\n\t\t\t// * fact[3] - 0.032 * fact[4]);\r\n\r\n\t\t\t// S[sc=713249.61733519 at 17000, 10x[C 0.57042768 [6], C -0.42834052 [4, 5, 8], C 0.35726662 [], C\r\n\t\t\t// -0.19234839 [8, 8, 8], C 0.0618062 [3], C 0.03906074 [3, 3], C -0.0354908 [6, 8, 8], C -0.032 [4], C\r\n\t\t\t// 0.02872478 [3, 6, 6], C -0.01470091 [4, 8]]]\r\n\t\t\t// result[i] = W_t[i]\r\n\t\t\t// * (0.35726662 + 0.57042768 * fact[3] - 0.42834052 * fact[1] * fact[2] * fact[5] - 0.19234839 * fact[5] *\r\n\t\t\t// fact[5]\r\n\t\t\t// * fact[5] + 0.0618062 * fact[2] + 0.03906074 * fact[2] * fact[2] - 0.0354908 * fact[3] * fact[5] *\r\n\t\t\t// fact[5]\r\n\t\t\t// - 0.032 * fact[1] + 0.02872478 * fact[0] * fact[3] * fact[3] - 0.01470091 * fact[1] * fact[5]);\r\n\t\t\tresult[i] = W_t[i]\r\n\t\t\t\t\t* ( //\r\n\t\t\t\t\t0.40334336 + 0.22997859 * fact[3] + 0.21837595 * fact[3] * fact[3] + 0.15973829 * fact[3] * fact[4] + -0.10161004\r\n\t\t\t\t\t\t\t* fact[1] * fact[5] + -0.020384 * fact[1] * fact[1] * fact[5]\r\n\t\t\t);\r\n\t\t\t// Keep only valid solutions\r\n\t\t\tresult[i] = Math.max(result[i], VERY_SMALL * W_t[i]);\r\n\t\t\t// to have a valid result\r\n\t\t\tresult[i] = Math.min(result[i], W_t[i] * (1.0 - VERY_SMALL));\r\n\t\t}\r\n\r\n\t\t// LOGGER.info(\"Kt[0]=\" + Kt[0] + \" , Zt[0]=\" + Zt[0] + \" , \" + result[0] + \" for \" + iT);\r\n\t\t// int s = 0;\r\n\t\t// LOGGER.info(\"Kt[\" + s + \"]=\" + Kt[s] + \" , Zt[]=\" + Zt[s] + \" , W_t[]=\" + W_t[s] + \" , \" + result[s] +\r\n\t\t// \" for \" + iT);\r\n\t\tiT++;\r\n\t\treturn result;\r\n\t}", "private void calculatePrediction(int sensor_id){\n\t\t\n\t\tpredicted_sensor_readings[sensor_id][0] = (heta.getMatrix(sensor_id, sensor_id,0,M + number_of_sensors-1).times(getFeatureMatrix(sensor_id))).get(0, 0);\n\t\t\n\t}", "public void calculateProbabilities(){\n\t}", "@Test\n public static void tinyUBTest() {\n final double[] answers = {0.5307575646626514, 0.7264168965132833, 0.860376939237304,\n 0.952744626134358, 0.9954079673114701, 1.0};\n final double kappa = 2.0;\n assertTrue(1.0 == approximateUpperBoundOnP(0, 0, kappa));\n final long n = 5;\n for (long k = 0; k <= n; k++) {\n final double ub = approximateUpperBoundOnP(n, k, kappa);\n final double est = estimateUnknownP(n, k);\n assertTrue(ub >= est);\n assertTrue(Math.abs(ub - answers[(int) k]) < 1e-14);\n // System.out.printf (\"UB\\t%d\\t%d\\t%.1f\\t%.16g%n\", n, k, kappa, ub);\n }\n }", "private int sumValue(int[] yt){\n\t\tint temp = 0;\n\t\tfor(int i=0;i<=3;i++){\n\t\t\ttemp += pow(yt[i]-y[i],2);\n\t\t}\n\t\treturn temp;\n\t}", "public static void main(String[] args) {\n int[] P ={1,2,3,4};\n \tint[] At ={0,5,3,4};\n\tint[] Bt ={2,1,4,3};\n\tint[] Ct ={0,0,0,0};\n\tint[] Tat ={0,0,0,0};\n\tint[] Wt = {0,0,0,0}; \n\tfloat AvgWt=0, AvgTat=0;\n for(int k=1;k<At.length;k++){\n for(int i=1;i<At.length;i++){\n if(At[i-1]>At[i]){\n int temp = At[i-1];\n At[i-1] = At[i];\n At[i] = temp;\n temp = P[i-1];\n P[i-1] = P[i];\n P[i] = temp;\n temp = Bt[i-1];\n Bt[i-1] = Bt[i];\n Bt[i] = temp;\n }\n }\n } \n for(int i=0;i<At.length;i++){\n \n if(i == 0){\n\t\t\tCt[i] =At[i]+ Bt[i];\n\t\t}\n else if(Ct[i-1]<At[i]){\n Ct[i]=(Bt[i]+ Ct[i-1])+(At[i]-Ct[i-1]);\n }\n else{\n \tCt[i]= Bt[i]+ Ct[i-1];\n\t\t}\n\t}\n System.out.println();\n for(int k=1;k<At.length;k++){\n for(int i=1;i<At.length;i++){\n if(P[i]<P[i-1]){\n int temp = At[i-1];\n At[i-1] = At[i];\n At[i] = temp;\n temp = P[i-1];\n P[i-1] = P[i];\n P[i] = temp;\n temp = Bt[i-1];\n Bt[i-1] = Bt[i];\n Bt[i] = temp;\n temp = Ct[i-1];\n Ct[i-1] = Ct[i];\n Ct[i] = temp;\n }\n }\n }\n System.out.println();\n \n for(int j=0;j<P.length;j++){\n Tat[j] = Ct[j] - At[j];\n Wt[j] = Tat[j] - Bt[j];\n AvgTat = AvgTat + Tat[j];\n AvgWt = AvgWt + Wt[j];\n }\n AvgTat = AvgTat/(P.length );\n AvgWt = AvgWt/(P.length ); \n System.out.println(\"P\\tA\\tB\\tC\\tT\\tW\");\n for(int j=0;j<At.length;j++){\n System.out.println(P[j]+\"\\t\"+At[j]+\"\\t\"+Bt[j]+\"\\t\"+Ct[j]+\"\\t\"+Tat[j]+\"\\t\"+Wt[j]);\n \n }\n System.out.println();\n System.out.println(\"Average TAT \\t\"+AvgTat);\n System.out.println(\"Average WT \\t\"+AvgWt);\n }", "public void run() throws Exception {\r\n\r\n\r\n LibSVM svm = new LibSVM();\r\n String svmOptions = \"-S 0 -K 2 -C 8 -G 0\"; //Final result: [1, -7 for saveTrainingDataToFileHybridSampling2 ]\r\n svm.setOptions(weka.core.Utils.splitOptions(svmOptions));\r\n System.out.println(\"SVM Type and Keranl Type= \" + svm.getSVMType() + svm.getKernelType());//1,3 best result 81%\r\n // svm.setNormalize(true);\r\n\r\n\r\n// load training data from .arff file\r\n ConverterUtils.DataSource source = new ConverterUtils.DataSource(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSSMOTE464Random.arff\");\r\n System.out.println(\"\\n\\nLoaded data:\\n\\n\" + source.getDataSet());\r\n Instances dataFiltered = source.getDataSet();\r\n dataFiltered.setClassIndex(0);\r\n\r\n // gridSearch(svm, dataFiltered);\r\n Evaluation evaluation = new Evaluation(dataFiltered);\r\n evaluation.crossValidateModel(svm, dataFiltered, 10, new Random(1));\r\n System.out.println(evaluation.toSummaryString());\r\n System.out.println(evaluation.weightedAreaUnderROC());\r\n double[][] confusionMatrix = evaluation.confusionMatrix();\r\n for (int i = 0; i < 2; i++) {\r\n for (int j = 0; j < 2; j++) {\r\n System.out.print(confusionMatrix[i][j] + \" \");\r\n\r\n }\r\n System.out.println();\r\n }\r\n System.out.println(\"accuracy for crime class= \" + (confusionMatrix[0][0] / (confusionMatrix[0][1] + confusionMatrix[0][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for other class= \" + (confusionMatrix[1][1] / (confusionMatrix[1][1] + confusionMatrix[1][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for crime class= \" + evaluation.truePositiveRate(0) + \"%\");\r\n System.out.println(\"accuracy for other class= \" + evaluation.truePositiveRate(1) + \"%\");\r\n\r\n\r\n }", "public void computeOutputs(double[] input){\n if (input != null) {\n for (int i=0; i<fire.length; i++) {\n fire[i] = input[i];\n }\n }\n\n //if this a hidden layer then we set the input to be\n double layerInput[] = new double[fire.length+ 1];\n for(int i=0; i<fire.length; i++){\n layerInput[i] = fire[i];\n }\n //add in another element for threshold to be multiplied by 1\n layerInput[fire.length] = 1;\n\n //compute outputs\n for (int i=0; i<next.getNeuronCount(); i++) {\n //get column at i of weightThreshold\n double colWeightThreshold[] = new double[weightThreshold.length];\n for(int j=0; j<colWeightThreshold.length; j++){\n colWeightThreshold[j] = weightThreshold[j][i];\n }\n\n double sum = dotProduct(colWeightThreshold, layerInput);\n //activation function on the sum and store neuron output\n next.fire[i] = activationFunction(sum);//(exp(sum*2.0)-1.0)/(exp(sum*2.0)+1.0);\n //System.out.println(\"output[\"+i+\"]: \"+output[i]);\n\n }\n\n }", "public Float rumusBMI(float t, float b){\n return b/((t/100)*(t/100));\n }", "public int predict(int[] testData) {\n /*\n * kNN algorithm:\n * \n * This algorithm compare the distance of every training data to the test data using \n * the euclidean distance algorithm, and find a specfic amount of training data \n * that are closest to the test data (the value of k determine that amount). \n * \n * After that, the algorithm compare those data, and determine whether more of those\n * data are labeled with 0, or 1. And use that to give the guess\n * \n * To determine k: sqrt(amount of training data)\n */\n\n /*\n * Problem:\n * Since results and distances will be stored in different arrays, but in the same order,\n * sorting distances will mess up the label, which mess up the predictions\n * \n * Solution:\n * Instead of sorting distances, use a search algorithm, search for the smallest distance, and then\n * the second smallest number, and so on. Get the index of that number, use the index to \n * find the result, and store it in a new ArrayList for evaluation\n */\n\n // Step 1 : Determine k \n double k = Math.sqrt(this.trainingData.size());\n k = 3.0;\n\n // Step 2: Calculate distances\n // Create an ArrayList to hold all the distances calculated\n ArrayList<Double> distances = new ArrayList<Double>();\n // Create another ArrayList to store the results\n ArrayList<Integer> results = new ArrayList<Integer>();\n for (int[] i : this.trainingData) {\n // Create a temp array with the last item (result) eliminated\n int[] temp = Arrays.copyOf(i, i.length - 1);\n double distance = this.eucDistance(temp, testData);\n // Add both the result and the distance into associated arraylists\n results.add(i[i.length - 1]);\n distances.add(distance);\n }\n\n // Step 3: Search for the amount of highest points according to k\n ArrayList<Integer> closestResultLst = new ArrayList<Integer>();\n for (int i = 0; i < k; i++) {\n double smallestDistance = Collections.min(distances);\n int indexOfSmallestDistance = distances.indexOf(smallestDistance);\n int resultOfSmallestDistance = results.get(indexOfSmallestDistance);\n closestResultLst.add(resultOfSmallestDistance);\n // Set the smallest distance to null, so it won't be searched again\n distances.set(indexOfSmallestDistance, 10.0);\n }\n\n // Step 4: Determine which one should be the result by looking at the majority of the numbers\n int yes = 0, no = 0;\n for (int i : closestResultLst) {\n if (i == 1) {\n yes++;\n } else if (i == 0) {\n no++;\n }\n }\n\n // Step 5: Return the result\n // test code\n // System.out.println(yes);\n // System.out.println(no);\n if (yes >= no) {\n return 1;\n } else {\n return 0;\n }\n }", "public void train() {\n\n int w;\n double sum = 0, avg;\n double forecast;\n double[][] trainMatrix = new double[trainPoints][2];\n double[][] valMatrix = new double[validationPoints][2];\n actual = observations.toArray();\n\n for (int i = 0; i < step * slices; i++)\n sum += actual[i];\n\n avg = sum / slices;\n\n for (int pos = 0; pos < trainPoints; pos++) {\n sum = 0;\n w = 0;\n\n if (pos >= step * slices) {\n for (int k = pos - step * slices; k < pos; k += step)\n sum += actual[k] * weights[w++];\n forecast = sum / slices;\n } else forecast = avg;\n\n trainMatrix[pos][0] = actual[pos];\n trainMatrix[pos][1] = forecast;\n }\n\n for (int pos = actual.length - validationPoints, j = 0; pos < actual.length; pos++) {\n sum = 0;\n w = 0;\n for (int k = pos - step * slices; k < pos; k += step)\n sum += actual[k] * weights[w++];\n forecast = sum / slices;\n valMatrix[j][0] = actual[pos];\n valMatrix[j][1] = forecast;\n j++;\n }\n double biasness = BiasnessHandler.handleOffset(valMatrix);\n accuracyIndicators.setBias(biasness);\n ModelUtil.computeAccuracyIndicators(accuracyIndicators, trainMatrix, valMatrix, dof);\n errorBound = ErrorBoundsHandler.computeErrorBoundInterval(trainMatrix);\n }", "public static void testMultimensionalOutput() {\n\t\tint vectSize = 8;\n\t\tint outputsPerInput = 10;\n\t\tdouble repeatProb = 0.8;\n\t\tdouble inpRemovalPct = 0.8;\n\t\tCollection<DataPoint> data = createMultidimensionalCorrSamples(vectSize, outputsPerInput, inpRemovalPct);\n//\t\tCollection<DataPoint> data = createMultidimensionalSamples(vectSize, outputsPerInput, repeatProb);\n\n\t\tModelLearner modeler = createModelLearner(vectSize, data);\n\t\tint numRuns = 100;\n\t\tint jointAdjustments = 18;\n\t\tdouble skewFactor = 0;\n\t\tdouble cutoffProb = 0.1;\n\t\tDecisionProcess decisioner = new DecisionProcess(modeler, null, 1, numRuns,\n\t\t\t\t0, skewFactor, 0, cutoffProb);\n\t\tDecisionProcess decisionerJ = new DecisionProcess(modeler, null, 1, numRuns,\n\t\t\t\tjointAdjustments, skewFactor, 0, cutoffProb);\n\t\t\n\t\tSet<DiscreteState> inputs = getInputSetFromSamples(data);\n\t\tArrayList<Double> realV = new ArrayList<Double>();\n\t\tArrayList<Double> predV = new ArrayList<Double>();\n\t\tArrayList<Double> predJV = new ArrayList<Double>();\n\t\tfor (DiscreteState input : inputs) {\n\t\t\tSystem.out.println(\"S\" + input);\n\t\t\tMap<DiscreteState, Double> outProbs = getRealOutputProbsForInput(input, data);\n\t\t\tMap<DiscreteState,Double> preds = countToFreqMap(decisioner\n\t\t\t\t\t.getImmediateStateGraphForActionGibbs(input.getRawState(), new double[] {}));\n\t\t\tMap<DiscreteState,Double> predsJ = countToFreqMap(decisionerJ\n\t\t\t\t\t.getImmediateStateGraphForActionGibbs(input.getRawState(), new double[] {}));\n\t\t\tSet<DiscreteState> outputs = new HashSet<DiscreteState>();\n\t\t\toutputs.addAll(outProbs.keySet());\n\t\t\toutputs.addAll(preds.keySet());\n\t\t\toutputs.addAll(predsJ.keySet());\n\t\t\tfor (DiscreteState output : outputs) {\n\t\t\t\tDouble realD = outProbs.get(output);\n\t\t\t\tDouble predD = preds.get(output);\n\t\t\t\tDouble predJD = predsJ.get(output);\n\t\t\t\tdouble real = (realD != null ? realD : 0);\n\t\t\t\tdouble pred = (predD != null ? predD : 0);\n\t\t\t\tdouble predJ = (predJD != null ? predJD : 0);\n\t\t\t\trealV.add(real);\n\t\t\t\tpredV.add(pred);\n\t\t\t\tpredJV.add(predJ);\n\t\t\t\tSystem.out.println(\"\tS'\" + output + \"\t\" + real + \"\t\" + pred + \"\t\" + predJ);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"CORR:\t\" + Utils.correlation(realV, predV)\n\t\t\t\t+ \"\t\" + Utils.correlation(realV, predJV));\n\t}", "public Double evaluateQBF() {\n\n\t\tDouble aux = (double) 0, sum = (double) 0;\n\t\tDouble vecAux[] = new Double[size];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (variables[i] > 0.5)\n\t\t\t{\n\t\t\t\tfor (int j = 0; j < size; j++) {\n\t\t\t\t\taux += variables[j] * A[i][j];\n\t\t\t\t}\n\n\t\t\t\tvecAux[i] = aux;\n\t\t\t\tsum += aux * variables[i];\n\t\t\t\taux = (double) 0;\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < prohibited_triples.length; i++) {\n\t\t\tif (variables[prohibited_triples[i][0]] > 0.5 && variables[prohibited_triples[i][1]] > 0.5 && variables[prohibited_triples[i][2]] > 0.5)\n\t\t\t\tsum -= 1e5;\n\t\t}\n\n\t\treturn sum;\n\t}", "private double calcB0() {\n double[] dataX = dsX.getDataX();\n double[] dataY = dsY.getDataY();\n double sumX = 0;\n double sumY = 0;\n for (int i = 0; i < dataX.length; i++) {\n sumX += dataX[i];\n sumY += dataY[i];\n }\n return (sumY - (this.B1 * sumX)) / dataX.length;\n }", "double cekStop(double x[][], double v0[],double v[][],double w0[],double w[][], double t[]){\n double akumY=0;\n //~ itung z_in dan z\n for(int h=0; h<jumlah_data; h++){\n for(int j=0; j<unit_hidden; j++){\n //itung sigma xi vij\n double jum_xv=0;\n for(int i=0; i<unit_input; i++){\n double cc=x[h][i]*v[i][j];\n jum_xv=jum_xv+cc;\n //System.out.println(x[h][j]);\n }\n z_in[j]=v0[j]+jum_xv;\n //itung z\n z[j]=1/(1+(double)Math.exp(-z_in[j]));\n //System.out.println(\" dan z= \"+z[j]);\n }\n \n //~ itung y_in dan y (output)\n double cxc=0;\n for(int k=0; k<unit_output; k++){\n double jum_zw=0;\n for(int j=0; j<unit_hidden; j++){\n double cc=z[j]*w[j][k];\n jum_zw=jum_zw+cc;\n }\n y_in[k]=w0[k]+jum_zw;\n y[k]=1/(1+(double)Math.exp(-y_in[k]));\n akumY = akumY + Math.pow((t[h]-y[k]),2);\n //System.out.println(t[h]+\"-\"+y[k]+\"=\"+(t[k]-y[k]));\n }\n }\n double E = 0.5 * akumY;\n //System.out.println(E);\n return E;\n }", "S predictScores(P preProcInputs);", "private void BC_duct(Grid gr){\r\n int i, j;\t\t\r\n NSmax=(int)(20/dt); repL=0.1;\r\n\t\t\r\n // boundary conditions of lower side of computational domain\r\n for(i = 0; i<mx; i++) BClow[i]=\"wall\"; \r\n // boundary conditions of upper side \r\n for(i = 0; i<mx; i++) BCupp[i]=\"wall\";\r\n // boundary conditions of left side\r\n for(j = 0; j<my; j++) BClef[j]=\"in\";\r\n // boundary conditions of right side\r\n for(j = 0; j<my; j++) BCrig[j]=\"out\";\r\n\t\r\n // initial conditions\r\n //for(j = 1; j <mym; j++){ \r\n // u[0][j]=Umean; //2.0*Umean*(1.0-4.0*(gr.y[0][j]-0.5)*(gr.y[0][j]-0.5));\r\n //}\r\n for(i = 0; i < mx; i++){ \r\n for(j = 1; j<mym; j++) u[i][j]=Umean;\r\n }\r\n // xmin=1.6; ymin=-3; xmax=8.6; ymax=3;\r\n }", "public static void main(String[] args) throws IOException {\n\t\tfinal XYSeries urvGreaterThanX = new XYSeries(\"Theoretical P(U > x)\");\r\n\t\tfor (double i = 0.5; i <= 1.0; i += 0.05) {\r\n\t\t\t\r\n\t\t\turvGreaterThanX.add(i, greaterThanX(1-i, 1));\r\n\t\t}\r\n\t\tfinal XYSeries estimateURVGreaterThanX = new XYSeries(\"Calculated P(U > x)\");\r\n\t\tdouble[] random0 = randoms(testSize, 0, 0);\r\n\t\tfor (double i = 0.5; i <= 1.0; i = i + 0.05) {\r\n\t\t\tint count = 0;\r\n\t\t\tfor (int j = 0; j < random0.length; j++) {\r\n\t\t\t\tif (random0[j] > i) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\testimateURVGreaterThanX.add(i, greaterThanX(count, testSize));\r\n\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"Array of Uniform Random Variables: \" + Arrays.toString(random0));\r\n\t\t\r\n\t\t/* Plot a sample size of random variables and plot the \r\n\t\t * results of U > x from the sample size of Uniform\r\n\t\t * random variables\r\n\t\t */\r\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection();\r\n\t\tdataset.addSeries(urvGreaterThanX);\r\n\t\tdataset.addSeries(estimateURVGreaterThanX);\r\n\t\tJFreeChart urv = ChartFactory.createXYLineChart(\"P(U > x) vs x\", \"x\", \"P(U > x)\", dataset, PlotOrientation.VERTICAL, true, true, false);\r\n\t\tint width = 640;\r\n\t\tint height = 480;\r\n\t\tFile URVChart = new File(\"URVChart.jpeg\");\r\n\t\tChartUtilities.saveChartAsJPEG(URVChart, urv, width, height);\r\n\t\t\r\n\t\t\r\n\t\t// Plot calculated probability of exponential random variables\r\n\t\tfinal XYSeries exprvGreaterThanX = new XYSeries(\"Theoretical P(X > x)\");\r\n\t\tfor (double i = 0.0; i <= 1.0; i += 0.1) {\r\n\t\t\texprvGreaterThanX.add(i, Math.log(Math.exp(-2 * i)));\r\n\t\t}\r\n\t\t\r\n\t\tfinal XYSeries estimateExpRVGreaterThanX = new XYSeries(\"Calculated P(X > x)\");\r\n\t\tdouble[] random1 = randoms(testSize, 1, 2);\r\n\t\tfor (double i = 0.0; i <= 1.0; i += 0.1) {\r\n\t\t\tint count = 0;\r\n\t\t\tfor (int j = 0; j < random1.length; j++) {\r\n\t\t\t\tif (random1[j] > i) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\testimateExpRVGreaterThanX.add(i, Math.log(greaterThanX(count, testSize)));\r\n\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"Array of Exponential Random Variables: \" + Arrays.toString(random1));\r\n\t\t\r\n\t\t/* Sample size of exponential random variables and plot sample\r\n\t\t * size where random variables X are greater than x\r\n\t\t */\r\n\t\tfinal XYSeriesCollection dataset1 = new XYSeriesCollection();\r\n\t\tdataset1.addSeries(exprvGreaterThanX);\r\n\t\tdataset1.addSeries(estimateExpRVGreaterThanX);\r\n\t\tJFreeChart expRV = ChartFactory.createXYLineChart(\"log(P(X > x)) vs x\", \"x\", \"log(P(X > x))\", dataset1, PlotOrientation.VERTICAL, true, true, false);\r\n\t\tFile EXPRVChart = new File(\"ExpRVChart.jpeg\");\r\n\t\tChartUtilities.saveChartAsJPEG(EXPRVChart, expRV, width, height);\r\n\t\t\r\n\t\t\r\n\t\t// Plot of calculated poisson probability \r\n\t\tfinal XYSeries poissonGreaterThanX = new XYSeries(\"Theoretical P(Y > x)\");\r\n\t\tfor (int i = 0; i <= 10; i++) {\r\n\t\t\tpoissonGreaterThanX.add(i, 1 - calculatePoissonProb(2.0, i));\r\n\t\t}\r\n\t\t\r\n\t\t/* Sample size of random poisson variables \r\n\t\t * plot sample size where Y > x\r\n\t\t */\r\n\t\tfinal XYSeries estimatePoissonGreaterThanX = new XYSeries(\"Calculated P(Y > x)\");\r\n\t\tdouble[] random2 = randoms(testSize, 2, 2);\r\n\t\tfor (int i = 0; i <= 10; i++) {\r\n\t\t\tint count = 0;\r\n\t\t\tfor (int j =0; j < random2.length; j++) {\r\n\t\t\t\tif (random2[j] > i) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\testimatePoissonGreaterThanX.add(i, greaterThanX(count, testSize));\r\n\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"Array of Poisson Random Variables: \" + Arrays.toString(random2));\r\n\t\t\r\n\t\tfinal XYSeriesCollection dataset2 = new XYSeriesCollection();\r\n\t\tdataset2.addSeries(poissonGreaterThanX);\r\n\t\tdataset2.addSeries(estimatePoissonGreaterThanX);\r\n\t\tJFreeChart poissonRV = ChartFactory.createXYLineChart(\"P(Y > x) vs x\", \"x\", \"P(Y > x)\", dataset2, PlotOrientation.VERTICAL, true, true, false);\r\n\t\tFile PoissonRVChart = new File(\"PoissonRVChart.jpeg\");\r\n\t\tChartUtilities.saveChartAsJPEG(PoissonRVChart, poissonRV, width, height);\r\n\t\t\r\n\t\tfinal XYSeries expectedMM1 = new XYSeries(\"Theoretical Pn for M/M/1\");\r\n\t\tfor (int i = 0; i < 100; i++) {\r\n\t\t\texpectedMM1.add(i, PnMM1(5, 6, i));\r\n\t\t}\r\n\t\tfinal XYSeries mm1Queue = new XYSeries(\"Calculated Pn for M/M/1\");\r\n\t\tdouble[] pnMM1 = simMM1(5, 6);\r\n\t\tfor (int i = 0; i < pnMM1.length; i ++) {\r\n\t\t\tmm1Queue.add(i, pnMM1[i]);\r\n\t\t}\r\n\t\tfinal XYSeriesCollection dataset3 = new XYSeriesCollection();\r\n\t\tdataset3.addSeries(mm1Queue);\r\n\t\tdataset3.addSeries(expectedMM1);\r\n\t\tJFreeChart mm1 = ChartFactory.createXYLineChart(\"Pn vs n\", \"n\", \"Pn\", dataset3, PlotOrientation.VERTICAL, true, true, false);\r\n\t\tFile MM1Chart = new File(\"MM1Chart.jpeg\");\r\n\t\tChartUtilities.saveChartAsJPEG(MM1Chart, mm1, width, height);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfinal XYSeries MEk1Queue = new XYSeries(\"Calculated Pn for MEk1\");\r\n\t\tdouble[] pnMEk1 = simMEk1(5, 6, 4);\r\n\t\tfor (int i = 0; i < pnMEk1.length; i ++) {\r\n\t\t\tMEk1Queue.add(i, pnMEk1[i]);\r\n\t\t}\r\n\t\tfinal XYSeries mEk1Queue = new XYSeries(\"Theoretical Pn for MEk1\");\r\n\t\tfor (int i = 0; i <= pnMEk1.length; i ++) {\r\n\t\t\tmEk1Queue.add(i, PnMEk1(5, 6, 4, i));\r\n\t\t}\r\n\t\tfinal XYSeriesCollection dataset4 = new XYSeriesCollection();\r\n\t\tdataset4.addSeries(mEk1Queue);\r\n\t\tdataset4.addSeries(MEk1Queue);\r\n\t\tJFreeChart mek1 = ChartFactory.createXYLineChart(\"Pn vs n\", \"n\", \"Pn\", dataset4, PlotOrientation.VERTICAL, true, true, false);\r\n\t\tFile MEk1Chart = new File(\"MEk1Chart.jpeg\");\r\n\t\tChartUtilities.saveChartAsJPEG(MEk1Chart, mek1, width, height); \r\n\t\t\r\n\t\t\r\n\t\tfinal XYSeries expectedNMEk1 = new XYSeries(\"Theoretical E(n) for M/Ek/1\");\r\n\t\tfinal XYSeries expectedMEk1 = new XYSeries(\"Calculated E(n) for M/Ek/1\");\r\n\t\tfinal XYSeries expectedMD1 = new XYSeries(\"E(n) for M/D/1\");\r\n\t\tfor (double i = 0.1; i <= 0.9; i += 0.1) {\r\n\t\t\texpectedMD1.add(i, expectedNumberMD1(i));\r\n\t\t\texpectedMEk1.add(i, enMEk1(5, 5 / i, 40));\r\n\t\t\texpectedNMEk1.add(i, expectedNumberMEk1(40, i));\r\n\t\t} \r\n\t\t\r\n\t\tfinal XYSeriesCollection dataset5 = new XYSeriesCollection();\r\n\t\tdataset5.addSeries(expectedMEk1);\r\n\t\tdataset5.addSeries(expectedMD1);\r\n\t\tdataset5.addSeries(expectedNMEk1);\r\n\t\tJFreeChart EnMEk1 = ChartFactory.createXYLineChart(\"E(n) vs. Rho for M/Ek/1 and M/D/1 and k = 40, lambda = 5\", \"rho\", \"E(n)\", dataset5, PlotOrientation.VERTICAL, true, true, false);\r\n\t\tFile EnMEk1Chart = new File(\"EnMEk1Chart.jpeg\");\r\n\t\tChartUtilities.saveChartAsJPEG(EnMEk1Chart, EnMEk1, width, height); \r\n\t\t}", "public static void runDecayingRatePerceptron(Data[] data, int index,String testFileName,HashMap<Integer,Integer> words)\r\n{\r\nint t=0;\r\ndouble LearningRates[] = {1, 0.1, 0.01};\r\n\tint minInt =0; // Set To Your Desired Min Value\r\n int maxInt =2;\r\n\tRandom rand = new Random();\r\n\t\r\n\tint randomNum = rand.nextInt((maxInt - minInt) + 1) + minInt;\r\n\r\n\tdouble LearningRate = LearningRates[randomNum];\r\n\t\r\n\t\r\nfor(int i=0;i<LearningRates.length;i++)\r\n{\r\nLearningRate = LearningRates[i];\r\ndouble devAccuracyTotal = (double)0;\r\nint noOfEpochs= 20;\r\nint decreaseRate = 0;\r\n\r\n\tDouble w[] = new Double[74500];\r\n\tDouble min =-0.01; // Set To Your Desired Min Value\r\nDouble max = 0.01;\r\n\t\tdouble smallRandNumber = min + new Random().nextDouble() * (max - min); \r\n\t\tArrays.fill(w, smallRandNumber);\r\n\t\t\r\nfor(int epoch=0;epoch<noOfEpochs;epoch++)\r\n{\r\n\t \tw = learnDecayingPerceptron(data,index,LearningRate,decreaseRate,w);\r\n\t \tdecreaseRate = decreaseRate + index;\r\n\r\n}\r\n// \tfor(int i=0;i<w.length;i++)\r\n// \t\t\tSystem.out.println(w[i]);\r\n//print data \t\r\n// \tfor (Map.Entry<Integer, Double> entry : x.entrySet()) {\r\n// System.out.println(\"\"+entry.getKey() + \" \" + entry.getValue());\r\n//\t \t}\r\n \t \t\r\n\t//keep decreaseRate increasing across epochs, by increasing 1 for each example.\r\n\tdouble cvAccuracy = testTestFile(w,testFileName,words);\r\n\t\r\n//\tSystem.out.println(\"Epoch\" + epoch +\" Dev Accuracy for Decaying Learning Rate \" + LearningRate + \" is \" + cvAccuracy);\r\n\r\n\r\nSystem.out.println(\" ** Cv Accuracy for Decaying Learning Rate \" + LearningRate + \" is \" + cvAccuracy);\r\nSystem.out.println(\" \");\r\n}\r\n\r\n//double testAccuracy = testTestFile(w,testFileName);\r\n\t//System.out.println(\"test Accuracy\" + testAccuracy);\r\n}", "public double computeAccuracy(){\n\n\t\t//count the totla number of predictions\n\t\tdouble total = sumAll();\n\n\t\tdouble truePredictions = 0;\n\t\t//iterate all correct guesses\n\t\tfor(Label l : labels){\n\t\t\ttruePredictions += this.computeTP(l);\n\t\t\t\n\t\t}\n\n\t\treturn truePredictions/(total);\n\n\t}", "private double calculateUvi(){\n if ( uva != Integer.MAX_VALUE\n && uvb != Integer.MAX_VALUE\n && uvd != Integer.MAX_VALUE\n && uvcomp1 != Integer.MAX_VALUE\n && uvcomp2 != Integer.MAX_VALUE\n )\n {\n // These equations came from the \"Designing the VEML6075 into an Application\" document from Vishay\n double uvacomp = (uva - uvd) - VEML_A_COEF * (uvcomp1 - uvd) - VEML_B_COEF * (uvcomp2 - uvd);\n double uvbcomp = (uvb - uvd) - VEML_C_COEF * (uvcomp1 - uvd) - VEML_D_COEF * (uvcomp2 - uvd);\n\n return ( (uvbcomp * VEML_UVB_RESP) + (uvacomp * VEML_UVA_RESP) ) / 2.0;\n }\n\n return Double.NaN;\n }", "public static void main(String[] args) {\n\t\tfinal int input1 = 1;\r\n\t\tfinal int input2 = 1;\r\n\t\t\r\n\t\t// One output in layer 3\r\n\t\tdouble targetOutput = 0;\r\n\t\t\r\n\t\t// Input to Hidden (IH) weights\r\n\t\tdouble IH1 = 0.8;\r\n\t\tdouble IH2 = 0.4;\r\n\t\tdouble IH3 = 0.3;\r\n\t\tdouble IH4 = 0.2;\r\n\t\tdouble IH5 = 0.9;\r\n\t\tdouble IH6 = 0.5;\r\n\t\t\r\n\t\t// second iteration of weights: Hidden to Output (HO) weights\r\n\t\tdouble HO1 = 0.3;\r\n\t\tdouble HO2 = 0.5;\r\n\t\tdouble HO3 = 0.9;\r\n\t\t\r\n\t\t// initialization\r\n\t\tdouble weightedSum1;\r\n\t\tdouble weightedSum2;\r\n\t\tdouble weightedSum3;\r\n\t\t\r\n\t\tdouble hiddenOutput1;\r\n\t\tdouble hiddenOutput2;\r\n\t\tdouble hiddenOutput3;\r\n\t\t\r\n\t\tdouble calculatedOutput;\r\n\t\t\r\n\t\tdouble secondWeightedSum;\r\n\t\t\r\n\t\tdouble outputSumError;\r\n\t\t\r\n\t\tdouble deltaSum;\r\n\t\t\r\n\t\tdouble deltaHO1;\r\n\t\tdouble deltaHO2;\r\n\t\tdouble deltaHO3;\r\n\t\t\r\n\t\tdouble deltaIH1;\r\n\t\tdouble deltaIH2;\r\n\t\tdouble deltaIH3;\r\n\t\tdouble deltaIH4;\r\n\t\tdouble deltaIH5;\r\n\t\tdouble deltaIH6;\r\n\t\t\r\n\t\tfor (int i=0;i<10000;i++){\r\n\t\t\t// Three inputs in layer 2 (hidden layer)\r\n\t\t\tweightedSum1 = input1*IH1+input2*IH4;\r\n\t\t\tweightedSum2 = input1*IH2+input2*IH5;\r\n\t\t\tweightedSum3 = input1*IH3+input2*IH6;\r\n\t\t\t\r\n\t\t\t// weighted sums converted into probabilities by sigmoid\r\n\t\t\thiddenOutput1 = sigmoid(weightedSum1);\r\n\t\t\thiddenOutput2 = sigmoid(weightedSum2);\r\n\t\t\thiddenOutput3 = sigmoid(weightedSum3);\r\n\t\t\t// second iteration of weighted sum\r\n\t\t\tsecondWeightedSum = hiddenOutput1*HO1+hiddenOutput2*HO2+hiddenOutput3*HO3;\r\n\t\t\t\r\n\t\t\t// applying sigmoid on secondWeightedSum to get calculatedOutput\r\n\t\t\tcalculatedOutput = sigmoid(secondWeightedSum);\r\n\t\t\tSystem.out.println(calculatedOutput);\r\n\t\t\t// Back Propagation \r\n\t\t\t\r\n\t\t\t//output sum error = target output - calculated output\r\n\t\t\toutputSumError = targetOutput - calculatedOutput;\r\n\t\t\t\r\n\t\t\t// delta sum = S'(sum)*outputSumError \r\n\t\t\tdeltaSum = sigmoidPrime(secondWeightedSum)*outputSumError;\r\n\t\t\t\t\r\n\t\t/* deltaIHWeights (1,2,3 are equal to 4,5,6 respectively \r\n\t\t because input1 and input2 are both 1) */\r\n\t\tdeltaIH1 = deltaSum / HO1 * sigmoidPrime(weightedSum1);\r\n\t\tdeltaIH2 = deltaSum / HO2 * sigmoidPrime(weightedSum2);\r\n\t\tdeltaIH3 = deltaSum / HO3 * sigmoidPrime(weightedSum3);\r\n\t\tdeltaIH4 = deltaSum / HO1 * sigmoidPrime(weightedSum1);\r\n\t\tdeltaIH5 = deltaSum / HO2 * sigmoidPrime(weightedSum2);\r\n\t\tdeltaIH6 = deltaSum / HO3 * sigmoidPrime(weightedSum3);\r\n\t\t\r\n\t\t// deltaHOWeights\r\n\t\tdeltaHO1 = deltaSum / hiddenOutput1;\r\n\t\tdeltaHO2 = deltaSum / hiddenOutput2;\r\n\t\tdeltaHO3 = deltaSum / hiddenOutput3;\r\n\t\t\r\n\t\t// Modifying Old Weights \r\n\t\t\r\n\t\t// modifying IH weights\r\n\t\tIH1 += deltaIH1;\r\n\t\tIH2 += deltaIH2;\r\n\t\tIH3 += deltaIH3;\r\n\t\tIH4 += deltaIH4;\r\n\t\tIH5 += deltaIH5;\r\n\t\tIH6 += deltaIH6;\r\n\t\t\r\n\t\t// modifying HO weights\r\n\t\tHO1 += deltaHO1;\r\n\t\tHO2 += deltaHO2;\r\n\t\tHO3 += deltaHO3;\r\n\t\t\r\n\t\t}\r\n\t}", "public bty(bto parambto, oa paramoa, cug paramcug, boolean paramBoolean)\r\n/* 40: */ {\r\n/* 41: 55 */ this.g = paramoa;\r\n/* 42: 56 */ this.h = paramcug;\r\n/* 43: 57 */ this.k = paramBoolean;\r\n/* 44: */ \r\n/* 45: 59 */ paramcug.a(this.g);\r\n/* 46: 62 */ for (int i1 = 0; i1 < 32; i1++)\r\n/* 47: */ {\r\n/* 48: 63 */ int i2 = (i1 >> 3 & 0x1) * 85;\r\n/* 49: 64 */ int i3 = (i1 >> 2 & 0x1) * 170 + i2;\r\n/* 50: 65 */ int i4 = (i1 >> 1 & 0x1) * 170 + i2;\r\n/* 51: 66 */ int i5 = (i1 >> 0 & 0x1) * 170 + i2;\r\n/* 52: 68 */ if (i1 == 6) {\r\n/* 53: 69 */ i3 += 85;\r\n/* 54: */ }\r\n/* 55: 72 */ if (parambto.e)\r\n/* 56: */ {\r\n/* 57: 73 */ int i6 = (i3 * 30 + i4 * 59 + i5 * 11) / 100;\r\n/* 58: 74 */ int i7 = (i3 * 30 + i4 * 70) / 100;\r\n/* 59: 75 */ int i8 = (i3 * 30 + i5 * 70) / 100;\r\n/* 60: 76 */ i3 = i6;\r\n/* 61: 77 */ i4 = i7;\r\n/* 62: 78 */ i5 = i8;\r\n/* 63: */ }\r\n/* 64: 81 */ if (i1 >= 16)\r\n/* 65: */ {\r\n/* 66: 82 */ i3 /= 4;\r\n/* 67: 83 */ i4 /= 4;\r\n/* 68: 84 */ i5 /= 4;\r\n/* 69: */ }\r\n/* 70: 87 */ this.f[i1] = ((i3 & 0xFF) << 16 | (i4 & 0xFF) << 8 | i5 & 0xFF);\r\n/* 71: */ }\r\n/* 72: 90 */ d();\r\n/* 73: */ }", "@Override\n public void calculate(double[] x) {\n\n double prob = 0.0; // the log prob of the sequence given the model, which is the negation of value at this point\n Triple<double[][], double[][], double[][]> allParams = separateWeights(x);\n double[][] linearWeights = allParams.first();\n double[][] W = allParams.second(); // inputLayerWeights \n double[][] U = allParams.third(); // outputLayerWeights \n\n double[][] Y = null;\n if (flags.softmaxOutputLayer) {\n Y = new double[U.length][];\n for (int i = 0; i < U.length; i++) {\n Y[i] = ArrayMath.softmax(U[i]);\n }\n }\n\n double[][] What = emptyW();\n double[][] Uhat = emptyU();\n\n // the expectations over counts\n // first index is feature index, second index is of possible labeling\n double[][] E = empty2D();\n double[][] eW = emptyW();\n double[][] eU = emptyU();\n\n // iterate over all the documents\n for (int m = 0; m < data.length; m++) {\n int[][][] docData = data[m];\n int[] docLabels = labels[m];\n\n // make a clique tree for this document\n CRFCliqueTree cliqueTree = CRFCliqueTree.getCalibratedCliqueTree(docData, labelIndices, numClasses, classIndex,\n backgroundSymbol, new NonLinearCliquePotentialFunction(linearWeights, W, U, flags));\n\n // compute the log probability of the document given the model with the parameters x\n int[] given = new int[window - 1];\n Arrays.fill(given, classIndex.indexOf(backgroundSymbol));\n int[] windowLabels = new int[window];\n Arrays.fill(windowLabels, classIndex.indexOf(backgroundSymbol));\n\n if (docLabels.length>docData.length) { // only true for self-training\n // fill the given array with the extra docLabels\n System.arraycopy(docLabels, 0, given, 0, given.length);\n System.arraycopy(docLabels, 0, windowLabels, 0, windowLabels.length);\n // shift the docLabels array left\n int[] newDocLabels = new int[docData.length];\n System.arraycopy(docLabels, docLabels.length-newDocLabels.length, newDocLabels, 0, newDocLabels.length);\n docLabels = newDocLabels;\n }\n // iterate over the positions in this document\n for (int i = 0; i < docData.length; i++) {\n int label = docLabels[i];\n double p = cliqueTree.condLogProbGivenPrevious(i, label, given);\n if (VERBOSE) {\n System.err.println(\"P(\" + label + \"|\" + ArrayMath.toString(given) + \")=\" + p);\n }\n prob += p;\n System.arraycopy(given, 1, given, 0, given.length - 1);\n given[given.length - 1] = label;\n }\n\n // compute the expected counts for this document, which we will need to compute the derivative\n // iterate over the positions in this document\n for (int i = 0; i < docData.length; i++) {\n // for each possible clique at this position\n System.arraycopy(windowLabels, 1, windowLabels, 0, window - 1);\n windowLabels[window - 1] = docLabels[i];\n for (int j = 0; j < docData[i].length; j++) {\n Index<CRFLabel> labelIndex = labelIndices[j];\n // for each possible labeling for that clique\n int[] cliqueFeatures = docData[i][j];\n double[] As = null;\n double[] fDeriv = null;\n double[][] yTimesA = null;\n double[] sumOfYTimesA = null;\n\n if (j == 0) {\n As = NonLinearCliquePotentialFunction.hiddenLayerOutput(W, cliqueFeatures, flags);\n fDeriv = new double[inputLayerSize];\n double fD = 0;\n for (int q = 0; q < inputLayerSize; q++) {\n if (useSigmoid) {\n fD = As[q] * (1 - As[q]); \n } else {\n fD = 1 - As[q] * As[q]; \n }\n fDeriv[q] = fD;\n }\n\n // calculating yTimesA for softmax\n if (flags.softmaxOutputLayer) {\n double val = 0;\n\n yTimesA = new double[outputLayerSize][numHiddenUnits];\n for (int ii = 0; ii < outputLayerSize; ii++) {\n yTimesA[ii] = new double[numHiddenUnits];\n }\n sumOfYTimesA = new double[outputLayerSize];\n\n for (int k = 0; k < outputLayerSize; k++) {\n double[] Yk = null;\n if (flags.tieOutputLayer) {\n Yk = Y[0];\n } else {\n Yk = Y[k];\n }\n double sum = 0;\n for (int q = 0; q < inputLayerSize; q++) {\n if (q % outputLayerSize == k) {\n int hiddenUnitNo = q / outputLayerSize;\n val = As[q] * Yk[hiddenUnitNo];\n yTimesA[k][hiddenUnitNo] = val;\n sum += val;\n }\n }\n sumOfYTimesA[k] = sum;\n }\n }\n\n // calculating Uhat What\n int[] cliqueLabel = new int[j + 1];\n System.arraycopy(windowLabels, window - 1 - j, cliqueLabel, 0, j + 1);\n\n CRFLabel crfLabel = new CRFLabel(cliqueLabel);\n int givenLabelIndex = labelIndex.indexOf(crfLabel);\n double[] Uk = null;\n double[] UhatK = null;\n double[] Yk = null;\n double[] yTimesAK = null;\n double sumOfYTimesAK = 0;\n if (flags.tieOutputLayer) {\n Uk = U[0];\n UhatK = Uhat[0];\n if (flags.softmaxOutputLayer) {\n Yk = Y[0];\n }\n } else {\n Uk = U[givenLabelIndex];\n UhatK = Uhat[givenLabelIndex];\n if (flags.softmaxOutputLayer) {\n Yk = Y[givenLabelIndex];\n }\n }\n\n if (flags.softmaxOutputLayer) {\n yTimesAK = yTimesA[givenLabelIndex];\n sumOfYTimesAK = sumOfYTimesA[givenLabelIndex];\n }\n\n for (int k = 0; k < inputLayerSize; k++) {\n double deltaK = 1;\n if (flags.sparseOutputLayer || flags.tieOutputLayer) {\n if (k % outputLayerSize == givenLabelIndex) {\n int hiddenUnitNo = k / outputLayerSize;\n if (flags.softmaxOutputLayer) {\n UhatK[hiddenUnitNo] += (yTimesAK[hiddenUnitNo] - Yk[hiddenUnitNo] * sumOfYTimesAK);\n deltaK *= Yk[hiddenUnitNo];\n } else {\n UhatK[hiddenUnitNo] += As[k];\n deltaK *= Uk[hiddenUnitNo];\n }\n }\n } else {\n UhatK[k] += As[k];\n if (useOutputLayer) {\n deltaK *= Uk[k];\n }\n }\n if (useHiddenLayer)\n deltaK *= fDeriv[k];\n if (useOutputLayer) {\n if (flags.sparseOutputLayer || flags.tieOutputLayer) {\n if (k % outputLayerSize == givenLabelIndex) {\n double[] WhatK = What[k];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n WhatK[cliqueFeatures[n]] += deltaK;\n }\n }\n } else {\n double[] WhatK = What[k];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n WhatK[cliqueFeatures[n]] += deltaK;\n }\n }\n } else {\n if (k == givenLabelIndex) {\n double[] WhatK = What[k];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n WhatK[cliqueFeatures[n]] += deltaK;\n }\n }\n }\n }\n }\n\n for (int k = 0; k < labelIndex.size(); k++) { // labelIndex.size() == numClasses\n int[] label = labelIndex.get(k).getLabel();\n double p = cliqueTree.prob(i, label); // probability of these labels occurring in this clique with these features\n if (j == 0) { // for node features\n double[] Uk = null;\n double[] eUK = null;\n double[] Yk = null;\n if (flags.tieOutputLayer) {\n Uk = U[0];\n eUK = eU[0];\n if (flags.softmaxOutputLayer) {\n Yk = Y[0];\n }\n } else {\n Uk = U[k];\n eUK = eU[k];\n if (flags.softmaxOutputLayer) {\n Yk = Y[k];\n }\n }\n if (useOutputLayer) {\n for (int q = 0; q < inputLayerSize; q++) {\n double deltaQ = 1;\n if (flags.sparseOutputLayer || flags.tieOutputLayer) {\n if (q % outputLayerSize == k) {\n int hiddenUnitNo = q / outputLayerSize;\n if (flags.softmaxOutputLayer) {\n eUK[hiddenUnitNo] += (yTimesA[k][hiddenUnitNo] - Yk[hiddenUnitNo] * sumOfYTimesA[k]) * p;\n deltaQ = Yk[hiddenUnitNo];\n } else {\n eUK[hiddenUnitNo] += As[q] * p;\n deltaQ = Uk[hiddenUnitNo];\n }\n }\n } else {\n eUK[q] += As[q] * p;\n deltaQ = Uk[q];\n }\n if (useHiddenLayer)\n deltaQ *= fDeriv[q];\n if (flags.sparseOutputLayer || flags.tieOutputLayer) {\n if (q % outputLayerSize == k) {\n double[] eWq = eW[q];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n eWq[cliqueFeatures[n]] += deltaQ * p;\n }\n }\n } else {\n double[] eWq = eW[q];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n eWq[cliqueFeatures[n]] += deltaQ * p;\n }\n }\n }\n } else {\n double deltaK = 1;\n if (useHiddenLayer)\n deltaK *= fDeriv[k];\n double[] eWK = eW[k];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n eWK[cliqueFeatures[n]] += deltaK * p;\n }\n }\n } else { // for edge features\n for (int n = 0; n < cliqueFeatures.length; n++) {\n E[cliqueFeatures[n]][k] += p;\n }\n }\n }\n }\n }\n }\n\n if (Double.isNaN(prob)) { // shouldn't be the case\n throw new RuntimeException(\"Got NaN for prob in CRFNonLinearLogConditionalObjectiveFunction.calculate()\");\n }\n\n value = -prob;\n if(VERBOSE){\n System.err.println(\"value is \" + value);\n }\n\n // compute the partial derivative for each feature by comparing expected counts to empirical counts\n int index = 0;\n for (int i = 0; i < E.length; i++) {\n int originalIndex = edgeFeatureIndicesMap.get(i);\n\n for (int j = 0; j < E[i].length; j++) {\n derivative[index++] = (E[i][j] - Ehat[i][j]);\n if (VERBOSE) {\n System.err.println(\"linearWeights deriv(\" + i + \",\" + j + \") = \" + E[i][j] + \" - \" + Ehat[i][j] + \" = \" + derivative[index - 1]);\n }\n }\n }\n if (index != edgeParamCount)\n throw new RuntimeException(\"after edge derivative, index(\"+index+\") != edgeParamCount(\"+edgeParamCount+\")\");\n\n for (int i = 0; i < eW.length; i++) {\n for (int j = 0; j < eW[i].length; j++) {\n derivative[index++] = (eW[i][j] - What[i][j]);\n if (VERBOSE) {\n System.err.println(\"inputLayerWeights deriv(\" + i + \",\" + j + \") = \" + eW[i][j] + \" - \" + What[i][j] + \" = \" + derivative[index - 1]);\n }\n }\n }\n\n\n if (index != beforeOutputWeights)\n throw new RuntimeException(\"after W derivative, index(\"+index+\") != beforeOutputWeights(\"+beforeOutputWeights+\")\");\n\n if (useOutputLayer) {\n for (int i = 0; i < eU.length; i++) {\n for (int j = 0; j < eU[i].length; j++) {\n derivative[index++] = (eU[i][j] - Uhat[i][j]);\n if (VERBOSE) {\n System.err.println(\"outputLayerWeights deriv(\" + i + \",\" + j + \") = \" + eU[i][j] + \" - \" + Uhat[i][j] + \" = \" + derivative[index - 1]);\n }\n }\n }\n }\n\n if (index != x.length)\n throw new RuntimeException(\"after W derivative, index(\"+index+\") != x.length(\"+x.length+\")\");\n\n int regSize = x.length;\n if (flags.skipOutputRegularization || flags.softmaxOutputLayer) {\n regSize = beforeOutputWeights;\n }\n\n // incorporate priors\n if (prior == QUADRATIC_PRIOR) {\n double sigmaSq = sigma * sigma;\n for (int i = 0; i < regSize; i++) {\n double k = 1.0;\n double w = x[i];\n value += k * w * w / 2.0 / sigmaSq;\n derivative[i] += k * w / sigmaSq;\n }\n } else if (prior == HUBER_PRIOR) {\n double sigmaSq = sigma * sigma;\n for (int i = 0; i < regSize; i++) {\n double w = x[i];\n double wabs = Math.abs(w);\n if (wabs < epsilon) {\n value += w * w / 2.0 / epsilon / sigmaSq;\n derivative[i] += w / epsilon / sigmaSq;\n } else {\n value += (wabs - epsilon / 2) / sigmaSq;\n derivative[i] += ((w < 0.0) ? -1.0 : 1.0) / sigmaSq;\n }\n }\n } else if (prior == QUARTIC_PRIOR) {\n double sigmaQu = sigma * sigma * sigma * sigma;\n for (int i = 0; i < regSize; i++) {\n double k = 1.0;\n double w = x[i];\n value += k * w * w * w * w / 2.0 / sigmaQu;\n derivative[i] += k * w / sigmaQu;\n }\n }\n }", "public double blending(double u, int n, int k) {\n // Insert your code here\n return coeff(n, k) * Math.pow(u, k) * Math.pow(1 - u, n - k);\n }", "@Override\n public String predict (final ArrayList<String> values) {\n final ArrayList<Double> annExX = FloatConverter.valuesToDouble(values, attrs);\n // Get predict of ANN.\n final ArrayList<Double> output = getV(annExX);\n // Convert ANN output to raw output.\n final String target = FloatConverter.targetBackString(output, attrs);\n return target;\n }", "public double AccuracyLoss(int i, int c)\n\t\t{\n\t\t\tdouble loss = 0;\n\t\t\t\n\t\t\tif( lossType == LossTypes.HINGE)\n\t\t\t{\n\t\t\t\tdouble z = Y_b.get(i, c)*Predict(i, c); \n\t\t\t\t\n\t\t\t\tif( z <= 0 )\n\t\t\t\t\tloss = 0.5 - z;\n\t\t\t\telse if(z > 0 && z < 1 )\n\t\t\t\t{\n\t\t\t\t\tdouble error = 1 - z;\n\t\t\t\t\tloss = 0.5*error*error;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tloss = 0;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(lossType == LossTypes.LOGISTIC)\n\t\t\t{\n\t\t\t\tdouble sig_y_ic = Sigmoid.Calculate(Predict(i,c));\n\t\t\t\tloss = - Y_b.get(i, c)*Math.log( sig_y_ic ) - (1-Y_b.get(i, c))*Math.log(1-sig_y_ic); \n\t\t\t}\n\t\t\telse if( lossType == LossTypes.LEASTSQUARES )\n\t\t\t{\n\t\t\t\tdouble error = Y_b.get(i, c) - Predict(i, c); \n\t\t\t\tloss = error*error;\n\t\t\t}\n\t\t\t\n\t\t\treturn loss;\n\t\t}", "public static AUCResult appendProcessedResult(BasicNetwork network, DataSet dataSet, int epoch) {\n MLDataSet dataSetTestingAdapted = new EncogMLDataSetTestingAdaptor(dataSet);\n\n double currentSignalAUC = 0.0;\n double step = 0.01;\n double previousOneMinusBackgroundRate = 0;\n double previousSignalRate = 0.0;\n\n // For each different threshold, calculate both signal and background rates.\n for( double threshold = 0.0; threshold < 1.0; threshold += step ) {\n int totalCorrectSignalSamples = 0;\n int totalWrongSignalSamples = 0;\n int totalCorrectBackgroundSamples = 0;\n int totalWrongBackgroundSamples = 0;\n int totalSamples = 0;\n int totalIdealSignalSamples = 0;\n int totalIdealBackgroundSamples = 0;\n \n int totalTrueSignal = 0;\n int totalTrueBackground = 0;\n \n // Go over the full testing set and check results.\n for ( MLDataPair pair : dataSetTestingAdapted ) {\n final MLData output = network.compute(pair.getInput());\n\n // This is specific to our case were we expect either one class or the other\n boolean netSignal = output.getData(0) > threshold ? true : false;\n boolean netBackground = output.getData(1) > threshold ? true : false;\n boolean idealSignal = pair.getIdeal().getData(0) > 0.5 ? true : false;\n \n if ( netSignal != netBackground ) {\n if ( idealSignal && netSignal ) {\n \ttotalCorrectSignalSamples++;\n \ttotalTrueSignal++;\n }\n if ( idealSignal && !netSignal ) totalWrongSignalSamples++;\n if ( !idealSignal && netSignal ) totalWrongBackgroundSamples++;\n if ( !idealSignal && !netSignal ) {\n \ttotalCorrectBackgroundSamples++;\n \ttotalTrueBackground++;\n }\n if ( idealSignal ) totalIdealSignalSamples++;\n if ( !idealSignal ) totalIdealBackgroundSamples++;\n }\n else {\n // Both classes cannot be of the same value, therefore resolution comes with where \n \t// values are: if above or below the threshold, and if ideal is signal or background.\n double doubleNetSignal = output.getData(0);\n double doubleNetBackground = output.getData(1);\n \n if ( idealSignal ) {\n \t// We are measuring only signal here.\n \t\ttotalIdealSignalSamples++;\n \t\tif ( doubleNetSignal < threshold ) totalWrongSignalSamples++;\n \t\tif ( doubleNetSignal > threshold ) totalCorrectSignalSamples++;\n \t}\n \telse {\n \t\t// We are measuring only background here.\n \t\ttotalIdealBackgroundSamples++;\n \t\tif ( threshold < doubleNetBackground ) totalCorrectBackgroundSamples++;\n \t\tif ( threshold > doubleNetBackground ) totalWrongBackgroundSamples++;\n \t}\n }\n\n totalSamples++;\n }\n\n double signalRate = (double) totalCorrectSignalSamples / (double) totalIdealSignalSamples;\n double backgroundRate = (double) totalCorrectBackgroundSamples / (double) totalIdealBackgroundSamples;\n double oneMinusBackgroundRate = 1.0 - backgroundRate;\n\n \tappend(epoch \n \t\t+ \",\" + threshold\n \t\t+ \",\" + totalCorrectSignalSamples\n \t\t+ \",\" + totalCorrectBackgroundSamples\n \t\t+ \",\" + totalWrongSignalSamples\n \t\t+ \",\" + totalWrongBackgroundSamples\n \t\t+ \",\" + totalIdealSignalSamples\n \t\t+ \",\" + totalIdealBackgroundSamples\n \t\t+ \",\" + totalSamples\n \t\t+ \",\" + signalRate\n \t\t+ \",\" + backgroundRate\n \t\t+ \",\" + oneMinusBackgroundRate\n \t\t+ \",\" + totalTrueSignal\n \t\t+ \",\" + totalTrueBackground\n \t\t+ \",\" + (totalTrueSignal + totalTrueBackground)\n );\n\n \tdouble xDelta = oneMinusBackgroundRate - previousOneMinusBackgroundRate;\n \tdouble ySignal = signalRate + previousSignalRate;\n \t\n \tdouble tempSignalAUC = ( ySignal * xDelta ) / 2.0;\n \tcurrentSignalAUC += tempSignalAUC;\n\n \tpreviousOneMinusBackgroundRate = oneMinusBackgroundRate;\n \tpreviousSignalRate = signalRate;\n }\n \n return new AUCResult(epoch, currentSignalAUC);\n }", "private double computeSumAlpha()\n\t{\n\t\tdouble sum = 0;\n\t\tdouble[] a = svm.getAlphas();\n\t\tfor(double d : a)\n\t\t\tsum += Math.abs(d);\n\t\treturn sum;\n\t}", "int[][] predictionForAllUsers() {\n int[][] tempPredictionMatrix = new int[formalContext.trainingFormalContext.length][];\n for (int i = 0; i < formalContext.trainingFormalContext.length; i++) {\n//\t\t\tSystem.out.println(\"1.1\");\n tempPredictionMatrix[i] = predictForAllItems(i);\n } // End for i\n return tempPredictionMatrix;\n }", "int[] predictForNoneFriendUser(int paraUserIndex, int paraItemIndex, int paraK) {\n\t\t// Step 1. Find the position of my friends who rate the item.\n\t\tint[] tempMyFriends = findRatedUsers(paraUserIndex, paraItemIndex);\n\n\t\t// System.out.println(\"the rated users are \" + Arrays.toString(tempMyFriends));\n\n\t\tif (tempMyFriends == null) {\n\t\t\treturn null;\n\t\t} // Of if\n\n\t\t// Step 2. kNN recommendation\n\t\tint[] tempNeigborIndies = new int[paraK + 2];\n\t\tdouble[] tempFriDistances = new double[paraK + 2];\n\t\tfor (int i = 0; i < tempNeigborIndies.length; i++) {\n\t\t\ttempNeigborIndies[i] = -1;\n\t\t\tif (i == 0) {\n\t\t\t\ttempFriDistances[i] = 10; // Flag\n\t\t\t} else {\n\t\t\t\ttempFriDistances[i] = -10;\n\t\t\t} // of if\n\t\t} // of for i\n\t\t\t// Step 2.1 Find k-nearest neighbors\n\t\tfor (int i = 0; i < tempMyFriends.length; i++) {\n\t\t\t// Step 2.1.1 Obtain one possible neighbor.\n\t\t\tint tempOneNeighbor = tempMyFriends[i];\n\t\t\t// System.out.println(paraUserIndex + \":\" + paraItemIndex +\n\t\t\t// \"; possible neighor = \" + tempOneNeighbor);\n\t\t\t// Step 2.1.2 Compute the distance between my neighbor and me.\n\t\t\t// double tempDistance = Distances.jaccard(dataModel.uTrRateInds[paraUserIndex],\n\t\t\t// dataModel.uTrRateInds[tempOneNeighbor]);\n\n\t\t\tdouble tempDistance = Distances.Jaccard(paraUserIndex, tempOneNeighbor, dataModel);\n\t\t\t// double tempDistance =\n\t\t\t// Distances.manhattanDistance(paraUserIndex,tempOneNeighbor, dataModel);\n\t\t\t// double tempDistance = Distances.Euclidean(paraUserIndex,tempOneNeighbor,\n\t\t\t// dataModel);\n\t\t\t// double tempDistance = Distances.TMJ(paraUserIndex,tempOneNeighbor,\n\t\t\t// dataModel);\n\t\t\t// double tempDistance = Distances.Cosine(paraUserIndex,tempOneNeighbor,\n\t\t\t// dataModel);\n\t\t\t// double tempDistance = Distances.Triangle(paraUserIndex,tempOneNeighbor,\n\t\t\t// dataModel);\n\t\t\t// double tempDistance = Distances.PIP(paraUserIndex,tempOneNeighbor,\n\t\t\t// dataModel);\n\t\t\t// double tempDistance = Distances.NHSM(paraUserIndex,tempOneNeighbor,\n\t\t\t// dataModel);\n\t\t\t// double tempDistance = Distances.BC(paraUserIndex,tempOneNeighbor, dataModel);\n\t\t\t// double tempDistance = Distances.pearson(paraUserIndex,tempOneNeighbor,\n\t\t\t// dataModel);\n\t\t\t// double tempDistance = Distances.CPCC(paraUserIndex,tempOneNeighbor,\n\t\t\t// dataModel);\n\n\t\t\t// System.out.println(paraUserIndex + \":\" + tempOneNeighbor\n\t\t\t// + \"; distance = \" + tempDistance);\n\t\t\t// Step 2.1.3 Insert sort (Sort from largest to smallest)\n\t\t\tfor (int j = paraK; j >= 0; j--) {\n\t\t\t\t// System.out.println(\"Distance: \" + tempDistance + \" : \" +\n\t\t\t\t// tempFriDistances[j]);\n\t\t\t\tif (tempDistance >= tempFriDistances[j]) {\n\t\t\t\t\ttempFriDistances[j] = tempFriDistances[j - 1];\n\t\t\t\t\ttempNeigborIndies[j] = tempNeigborIndies[j - 1];\n\t\t\t\t} else {\n\t\t\t\t\t// System.out.println(\"position: \" + j + \"; neighbor = \" + tempMyFriends[i]);\n\t\t\t\t\ttempFriDistances[j + 1] = tempDistance;\n\t\t\t\t\ttempNeigborIndies[j + 1] = i; // the indices of users who rate the item.\n\t\t\t\t\tbreak;\n\t\t\t\t} // Of if\n\t\t\t} // Of for j\n\t\t} // of for i\n\t\t\t// System.out.println(\"the K-friend array is \" +\n\t\t\t// Arrays.toString(tempNeigborIndies));\n\t\t\t// System.out.println(\"the K-friend disrance array is \" +\n\t\t\t// Arrays.toString(tempFriDistances));\n\n\t\t// Step 3. Compute the distribution of the predicting item\n\t\tint[] tempDistribution = new int[5];\n\t\ttempNeigborIndies[paraK + 1] = -1;\n\t\tfor (int i = 0; i < tempNeigborIndies.length; i++) {\n\t\t\tif (tempNeigborIndies[i] != -1) {\n\t\t\t\tint tempIndex = dataModel.iTrRatings[paraItemIndex][tempNeigborIndies[i]];\n\t\t\t\ttempDistribution[tempIndex - 1]++;\n\t\t\t} // Of if\n\t\t} // Of for i\n\n\t\treturn tempDistribution;\n\t}", "public void RNNEquityPricePredictor() throws Exception {\r\n downloadUCIData();\r\n int retCount = 0;\r\n File dir = new File(SQL_DUMP_FOLDER);\r\n if (dir.exists() && dir.isDirectory()) {\r\n retCount = dir.listFiles().length;\r\n }\r\n\r\n int miniBatchSize = 1;\r\n int numLabelClasses = 1; // Number of Y to be predicted or classified. Set to 1 for regression.\r\n int labelIndex = 88; // PXS: Understanding is that everything before labelIndex column is the X value and everything afterwards is Y\r\n //boolean regression = true;\r\n\r\n SequenceRecordReader reader = new CSVSequenceRecordReader(0, \",\");\r\n reader.initialize(new NumberedFileInputSplit(SQL_DUMP_FOLDER + File.separator + \"SQLOut_%d.csv\", 0, retCount - 2));\r\n DataSetIterator trainData = new SequenceRecordReaderDataSetIterator(reader, miniBatchSize, -1, labelIndex, true);\r\n\r\n //Normalize the training data\r\n DataNormalization normalizer = new NormalizerStandardize();\r\n\r\n normalizer.fit(trainData);\r\n trainData.reset();\r\n\r\n //Use previously collected statistics to normalize on-the-fly. Each DataSet returned by 'trainData' iterator will be normalized\r\n trainData.setPreProcessor(normalizer);\r\n\r\n // ----- Load the test data -----\r\n SequenceRecordReader testFeatures = new CSVSequenceRecordReader();\r\n testFeatures.initialize(new NumberedFileInputSplit(SQL_DUMP_FOLDER + File.separator + \"SQLOut_%d.csv\", retCount - 1, retCount-1));\r\n DataSetIterator testDataIter = new SequenceRecordReaderDataSetIterator(testFeatures, miniBatchSize, -1, labelIndex, true);\r\n\r\n testDataIter.setPreProcessor(normalizer); //Note that we are using the exact same normalization process as the training data\r\n DataSet testData = testDataIter.next();\r\n // ----- Configure the network -----\r\n /**\r\n * Need to play more here and bring the predictions close to 190 which was the range\r\n * of AAPL stocks around the target time here. Adding more layer hasnt helped nor changing\r\n * the seed value, or activation functions to ELU / RELU.\r\n */\r\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\r\n .seed(12345)\r\n .weightInit(WeightInit.XAVIER)\r\n .updater(new Nesterovs(0.9)) // updated value based on example in the book\r\n .activation(Activation.RELU)\r\n .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT)\r\n //.updater(Updater.ADAM)\r\n //.learningRate(0.0015)\r\n .l2(0.001)\r\n .gradientNormalization(GradientNormalization.ClipElementWiseAbsoluteValue) //Not always required, but helps with this data set\r\n .gradientNormalizationThreshold(0.5)\r\n .list()\r\n .layer(0, new LSTM.Builder().activation(Activation.TANH).nIn(88).nOut(10).build())\r\n //.layer(1, new LSTM.Builder().activation(Activation.TANH).nIn(10).nOut(10).build())\r\n //.layer(2, new LSTM.Builder().activation(Activation.TANH).nIn(10).nOut(10).build())\r\n //.layer(3, new LSTM.Builder().activation(Activation.TANH).nIn(10).nOut(10).build())\r\n .layer(1, new RnnOutputLayer.Builder(LossFunctions.LossFunction.MSE)\r\n .activation(Activation.IDENTITY).nIn(10).nOut(numLabelClasses).build())\r\n .backpropType(BackpropType.TruncatedBPTT).tBPTTForwardLength(20).tBPTTBackwardLength(5)\r\n //.pretrain(true)\r\n //.backprop(true)\r\n .build();\r\n\r\n MultiLayerNetwork net = new MultiLayerNetwork(conf);\r\n net.init();\r\n net.setListeners(new ScoreIterationListener(20)); //Print the score (loss function value) every 20 iterations\r\n\r\n // ----- Train the network, evaluating the test set performance at each epoch -----\r\n int nEpochs = 5;\r\n //String str = \"Test set evaluation at epoch %d: Accuracy = %.2f, F1 = %.2f\";\r\n for (int i = 0; i < nEpochs; i++) {\r\n net.fit(trainData);\r\n RegressionEvaluation evaluation = net.evaluateRegression(testDataIter);\r\n log.info(evaluation.stats());\r\n testDataIter.reset();\r\n trainData.reset();\r\n }\r\n\r\n //Init rrnTimeStemp with train data and predict test data\r\n //net.rnnTimeStep(trainData.getLabels());\r\n INDArray predicted = net.rnnTimeStep(testData.getFeatures());\r\n normalizer.revertLabels(predicted);\r\n log.info(\"PREDICTIONS:\\n\"+predicted);\r\n\r\n\r\n }", "private double predictFromTraining(Instances training) {\n\t\tdouble predictedValue = -1;\n\t\ttry{\n\t\t\t// new forecaster\n\t WekaForecaster forecaster = new WekaForecaster();\n\n\t // Set the targets we want to forecast\n\t forecaster.setFieldsToForecast(\"count\");\n\t \n\t // Default underlying classifier is SMOreg (SVM) - we'll use\n\t // gaussian processes for regression instead\n\t forecaster.setBaseForecaster(new GaussianProcesses());\n\t forecaster.getTSLagMaker().setTimeStampField(\"date\"); // date time stamp\n\t \n\t //System.out.println(dateFormat.format(new Date()) + \" buildForecaster\");\n\t \n\t // build the model\n\t forecaster.buildForecaster(training, System.out);\n\n\t //System.out.println(dateFormat.format(new Date()) + \" primeForecaster\");\n\t \n\t forecaster.primeForecaster(training);\n\t \n\t //System.out.println(dateFormat.format(new Date()) + \" forecaster.forecast\");\n\t \n\t // forecast for 1 unit beyond the end of the\n\t // training data\n\t List<List<NumericPrediction>> forecast = forecaster.forecast(1, System.out);\n\t \n\t //System.out.println(dateFormat.format(new Date()) + \" forecast.get\");\n\t \n\t // Getting the prediction:\n\t List<NumericPrediction> predsAtStep = forecast.get(0);\n\t NumericPrediction predForTarget = predsAtStep.get(0);\n \t//System.out.print(\"\" + predForTarget.predicted() + \" \");\n \tpredictedValue = predForTarget.predicted();\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn predictedValue;\n\t}", "public void calcAvg(){\n\t\taverage = hits/atbat;\n\t\t\n\t}", "abstract Vec predict(Vec in);", "public static double make_predictionFromViolaJonesAdaBoost(double [][] new_x) {\r\n\t\t\r\n\t\tif(classifierInfos == null) {\r\n\t\t\tSystem.out.println(\"AdaBoost not trained yet. Canīt make prediction from new input.\");\r\n\t\t}\r\n\t\t\r\n\t\tdouble prediction = 0.0;\r\n\t\tint nIterations = alphas.size();\r\n\t\t\r\n\t\tfor(int i=0; i<nIterations; i++) {\r\n\t\t\t\r\n\t\t\tString splitFeat = get_splittingFeature4Iteration(i);\r\n\t\t\tdouble threshold = get_threshold4Iteration(i);\r\n\t\t\tdouble polarity = get_polarity4Iteration(i);\r\n\t\t\tdouble p = 1.0;\r\n\r\n\t\t\tif(polarity != 0.0) {\r\n\t\t\t\tp = polarity;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint idx = Utilities.get_idx(names_of_explaining_variables, splitFeat)[0];\r\n\t\t\tdouble inputValue4Feature = new_x[0][idx];\r\n\t\t\t\r\n\t\t\tinputValue4Feature *=p;\r\n\t\t\tthreshold *=p;\r\n\t\t\t\r\n\t\t\tif(inputValue4Feature <= threshold) {\r\n\t\t\t\tprediction += classes[0]*alphas.get(i);\r\n\t\t\t}else {\r\n\t\t\t\tprediction += classes[1]*alphas.get(i);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn prediction;\r\n\t\t\r\n\t}", "static void SKP_Silk_MA_Prediction(short[] in, /* I: Input signal */\n\t\tint in_offset, short[] B, /* I: MA prediction coefficients, Q12 [order] */\n\t\tint B_offset, int[] S, /* I/O: State vector [order] */\n\t\tshort[] out, /* O: Output signal */\n\t\tint out_offset, final int len, /* I: Signal length */\n\t\tfinal int order /* I: Filter order */\n\t)\n\t{\n\t\tint k, d, in16;\n\t\tint out32;\n\n\t\tfor (k = 0; k < len; k++) {\n\t\t\tin16 = in[in_offset + k];\n\t\t\tout32 = (in16 << 12) - S[0];\n\t\t\tout32 = SigProcFIX.SKP_RSHIFT_ROUND(out32, 12);\n\n\t\t\tfor (d = 0; d < order - 1; d++) {\n\t\t\t\tS[d] = SigProcFIX.SKP_SMLABB_ovflw(S[d + 1], in16, B[B_offset + d]);\n\t\t\t}\n\t\t\tS[order - 1] = SKP_SMULBB(in16, B[B_offset + order - 1]);\n\n\t\t\t/* Limit */\n\t\t\tout[out_offset + k] = (short) SigProcFIX.SKP_SAT16(out32);\n\t\t}\n\t}", "double getLearningRate();", "double compute() {\r\ndouble b, e;\r\nb = (1 + rateOfRet/compPerYear);\r\ne = compPerYear * numYears;\r\nreturn principal * Math.pow(b, e);\r\n}", "protected abstract void evaluate(Vector target, List<Vector> predictions);", "private double gaussprob(int k, double r)\n\t{\n\t\treturn \tMath.exp( -0.5*Math.pow( ((double)k-r)/data_bg_std , 2 ) ) * \n\t\t\t\tMath.pow( 2*Math.PI, -0.5 ) / data_bg_std;\n\t}", "private void computeHazardCurve() {\n\n //flag to initialise if Deterministic Model Calc have been completed\n deterministicCalcDone=false;\n\n //checks how many SA Periods has been completed\n this.numSA_PeriodValDone =0;\n\n //flag to check whether Hazard Curve Calc are done\n hazCalcDone = false;\n\n //gets the Label for the Y-axis for the earlier grph\n String oldY_AxisLabel=\"\";\n if(totalProbFuncs.getYAxisName() !=null)\n oldY_AxisLabel = totalProbFuncs.getYAxisName();\n\n // get the selected IMR\n AttenuationRelationship imr = (AttenuationRelationship)imrGuiBean.getSelectedIMR_Instance();\n\n // make a site object to pass to IMR\n Site site = siteGuiBean.getSite();\n\n // intialize the hazard function\n ArbitrarilyDiscretizedFunc hazFunction = new ArbitrarilyDiscretizedFunc();\n ArbitrarilyDiscretizedFunc tempHazFunction = new ArbitrarilyDiscretizedFunc();\n\n //what selection does the user have made, IML@Prob or Prob@IML\n String imlOrProb=imlProbGuiBean.getSelectedOption();\n //gets the IML or Prob value filled in by the user\n double imlProbValue=imlProbGuiBean.getIML_Prob();\n boolean imlAtProb = false, probAtIML = false;\n if(imlOrProb.equalsIgnoreCase(imlProbGuiBean.IML_AT_PROB)){\n //if the old Y axis Label not equal to the IML then clear plot and draw the chart again\n if(!this.IML.equalsIgnoreCase(oldY_AxisLabel))\n this.clearPlot(true);\n totalProbFuncs.setYAxisName(this.IML);\n imlAtProb=true;\n }\n else{\n //if the old Y axis Label not equal to the Prob then clear plot and draw the chart again\n if(!this.PROB_AT_EXCEED.equalsIgnoreCase(oldY_AxisLabel))\n this.clearPlot(true);\n totalProbFuncs.setYAxisName(this.PROB_AT_EXCEED);\n probAtIML=true;\n }\n\n //If the user has chosen the Probabilistic\n if(((String)probDeterSelection.getSelectedItem()).equalsIgnoreCase(this.PROBABILISTIC)){\n this.isEqkList = false;\n // whwther to show progress bar in case of update forecast\n erfGuiBean.showProgressBar(this.progressCheckBox.isSelected());\n // get the selected forecast model\n EqkRupForecastBaseAPI eqkRupForecast = null;\n try{\n //gets the instance of the selected ERF\n eqkRupForecast = erfGuiBean.getSelectedERF();\n }catch(Exception e){\n e.printStackTrace();\n }\n if(this.progressCheckBox.isSelected()) {\n progressClass = new CalcProgressBar(\"Hazard-Curve Calc Status\", \"Beginning Calculation \");\n progressClass.displayProgressBar();\n timer.start();\n }\n\n // check whether this forecast is a Forecast List\n // if this is forecast list , handle it differently\n boolean isEqkForecastList = false;\n if(eqkRupForecast instanceof ERF_EpistemicList) {\n handleForecastList(site, imr, eqkRupForecast,imlProbValue,imlAtProb,probAtIML);\n this.hazCalcDone = true;\n return;\n }\n\n // this is not a eqk list\n this.isEqkList = false;\n\n try{\n // set the value for the distance from the distance control panel\n if(distanceControlPanel!=null) calc.setMaxSourceDistance(distanceControlPanel.getDistance());\n }catch(RemoteException e){\n e.printStackTrace();\n }\n // initialize the values in condProbfunc with log values as passed in hazFunction\n initX_Values(tempHazFunction,imlProbValue,imlAtProb,probAtIML);\n\n try {\n //iterating over all the SA Periods for the IMR's\n for(int i=0;i< numSA_PeriodVals;++i){\n double saPeriodVal = ((Double)this.saPeriodVector.get(i)).doubleValue();\n imr.getParameter(this.SA_PERIOD).setValue(this.saPeriodVector.get(i));\n try{\n // calculate the hazard curve for each SA Period\n calc.getHazardCurve(tempHazFunction, site, imr, (EqkRupForecast)eqkRupForecast);\n }catch(RemoteException e){\n e.printStackTrace();\n }\n //number of SA Periods for which we have ran the Hazard Curve\n this.numSA_PeriodValDone =i;\n hazFunction.setInfo(\"\\n\"+getCurveParametersInfo()+\"\\n\");\n double val = getHazFuncIML_ProbValues(tempHazFunction,imlProbValue,imlAtProb,probAtIML);\n hazFunction.set(saPeriodVal,val);\n }\n }catch (RuntimeException e) {\n JOptionPane.showMessageDialog(this, e.getMessage(),\n \"Parameters Invalid\", JOptionPane.INFORMATION_MESSAGE);\n return;\n }\n }\n else{ //If the Deterministic has been chosen by the user\n imr.setSite(site);\n try{\n imr.setEqkRupture(this.erfRupSelectorGuiBean.getRupture());\n }catch (Exception ex) {\n timer.stop();\n JOptionPane.showMessageDialog(this, \"Rupture not allowed for the chosen IMR: \"+ex.getMessage());\n this.repaint();\n this.validate();\n return;\n }\n\n if(this.progressCheckBox.isSelected()) {\n progressClass = new CalcProgressBar(\"Hazard-Curve Calc Status\", \"Beginning Calculation \");\n progressClass.displayProgressBar();\n timer.start();\n }\n\n //if the user has selectde the Prob@IML\n if(probAtIML)\n //iterating over all the SA Periods for the IMR's\n for(int i=0;i< this.numSA_PeriodVals;++i){\n double saPeriodVal = ((Double)this.saPeriodVector.get(i)).doubleValue();\n imr.getParameter(this.SA_PERIOD).setValue(this.saPeriodVector.get(i));\n double imlLogVal = Math.log(imlProbValue);\n //double val = 0.4343*Math.log(imr.getExceedProbability(imlLogVal));\n double val = imr.getExceedProbability(imlLogVal);\n //adding values to the hazard function\n hazFunction.set(saPeriodVal,val);\n //number of SA Periods for which we have ran the Hazard Curve\n this.numSA_PeriodValDone =i;\n }\n else //if the user has selected IML@prob\n //iterating over all the SA Periods for the IMR\n for(int i=0;i<this.numSA_PeriodVals;++i){\n double saPeriodVal = ((Double)(saPeriodVector.get(i))).doubleValue();\n imr.getParameter(this.SA_PERIOD).setValue(this.saPeriodVector.get(i));\n imr.getParameter(imr.EXCEED_PROB_NAME).setValue(new Double(imlProbValue));\n //double val = 0.4343*imr.getIML_AtExceedProb();\n //adding values to the Hazard Function\n double val = Math.exp(imr.getIML_AtExceedProb());\n hazFunction.set(saPeriodVal,val);\n //number of SA Periods for which we have ran the Hazard Curve\n this.numSA_PeriodValDone =i;\n }\n this.deterministicCalcDone = true;\n }\n\n // add the function to the function list\n totalProbFuncs.add(hazFunction);\n //checks whether the Hazard Curve Calculation are complete\n hazCalcDone = true;\n // set the X-axis label\n totalProbFuncs.setXAxisName(X_AXIS_LABEL);\n\n }", "public abstract double[] evaluateAt(double u, double v);" ]
[ "0.6243329", "0.62019134", "0.6075131", "0.5890616", "0.571957", "0.5659759", "0.5632509", "0.55745983", "0.5502936", "0.54752463", "0.54530066", "0.536786", "0.53650385", "0.5356909", "0.53514147", "0.53340995", "0.5332967", "0.53241646", "0.5288213", "0.5246124", "0.522823", "0.5225626", "0.5221435", "0.5216641", "0.51838857", "0.51750976", "0.51598936", "0.5155421", "0.5150505", "0.51453763", "0.51257354", "0.51120335", "0.50777644", "0.50755024", "0.50628823", "0.5049588", "0.5046589", "0.5041581", "0.50177264", "0.49848634", "0.49713776", "0.49644065", "0.4960866", "0.49513206", "0.4940888", "0.49405628", "0.4935161", "0.49340197", "0.4927651", "0.49024615", "0.4891151", "0.4886497", "0.48854938", "0.48852015", "0.48763278", "0.48679972", "0.48663792", "0.48650587", "0.48633903", "0.48625377", "0.48598674", "0.4856571", "0.4850848", "0.48492444", "0.48465306", "0.48395354", "0.48358795", "0.4835109", "0.48344338", "0.48320308", "0.48313925", "0.4829643", "0.481567", "0.48131442", "0.47966152", "0.47932777", "0.47858086", "0.4784614", "0.47835848", "0.4779263", "0.4773079", "0.47689977", "0.4768", "0.4765807", "0.47657663", "0.4756779", "0.4756612", "0.47562057", "0.47507596", "0.47417116", "0.47392806", "0.47383457", "0.4736748", "0.4728303", "0.4725093", "0.47244713", "0.4720327", "0.47199723", "0.47157052", "0.47153318" ]
0.54589635
10
Only one thread can execute getInstance() at a time. !!! Actually we need getInstance() to be synchronized only when uniqueInstance is null after that we do not need synchronization that is way it is overhead and could cause performance issues.
public static synchronized SingletonThreadSave getInstance(){ if(uniqueThreadSaveInstance == null){ uniqueThreadSaveInstance = new SingletonThreadSave(); } return uniqueThreadSaveInstance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ThreadSafe getInstaceDoubleChecking(){\n if(instance==null){\n synchronized (ThreadSafe.class) {\n if (instance==null) {\n instance = new ThreadSafe();\n }\n }\n }\n return instance;\n }", "public static synchronized N_ThreadSafeSingalton getInstance() throws InterruptedException{\n\t\t\n\t\tif (uniqueInstance == null){\n\t\t\tThread.sleep(1000);// just to show multithreading issue.\n\t\t\tuniqueInstance=new N_ThreadSafeSingalton();\n\t\t}\t\t\n\t\t\n\t\treturn uniqueInstance;\n\t}", "public static ThreadSafeSingleton getInstanceWithDoubleCheck() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (ThreadSafeSingleton.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new ThreadSafeSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\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 DPSingletonLazyLoading getInstance(){ //not synchronize whole method. Instance oluşmuş olsa bile sürekli burada bekleme olur.\r\n\t\tif (instance == null){//check\r\n\t\t\tsynchronized(DPSingletonLazyLoading.class){ //critical section code NOT SYNCRONIZED(this) !!\r\n\t\t\t\tif (instance == null){ //double check\r\n\t\t\t\t\tinstance = new DPSingletonLazyLoading();//We are creating instance lazily at the time of the first request comes.\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\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 Singleton doubleCheckLocking(){\n if(instance != null){\n return instance;\n }\n synchronized (key){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }\n }", "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}", "@Override\n public T getInstance() {\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}", "@Test\n public void testMultipleCallsReturnTheSameObjectInSameThread() {\n // Create several instances in the same calling thread\n S instance1 = this.singletonInstanceMethod.get();\n S instance2 = this.singletonInstanceMethod.get();\n S instance3 = this.singletonInstanceMethod.get();\n // now check they are equal\n assertSame(instance1, instance2);\n assertSame(instance1, instance3);\n assertSame(instance2, instance3);\n }", "public static SingleObject getInstance(){\n return instance;\n }", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }", "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 T getInstance() {\n return instance;\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}", "private static void multiThreading(){\n\t\tSystem.out.println(\"\\nCreating new two separate instances of Singleton using Multi threading\");\n\t\tExecutorService service = Executors.newFixedThreadPool(2);\n\t\tservice.submit(TestSingleton::useSingleton);\n\t\tservice.submit(TestSingleton::useSingleton);\n\t\tservice.shutdown();\n\t}", "public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_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 }", "synchronized public static InstitutionManager getInstance()\n {\n return singleton;\n }", "public static SingletonEager get_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 static SingletonEager getInstance()\n {\n return instance;\n }", "@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "public static Singleton getInstance( ) {\n return singleton;\n }", "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 }", "T getInstance();", "public /* synchronized */ static LazyInitClass getInstanceThreadSafe() {\r\n\t\t//first if is for perfrroamce betterment\r\n\t\t//once object got created no need to synchronize and stop other threads to read\r\n\t\tif(instance == null) {\r\n\t\t\tsynchronized (LazyInitClass.class) {\r\n\t\t\t\tif(instance == null) {\r\n\t\t\t\t\tinstance = new LazyInitClass();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "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}", "synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }", "private SingletonDoubleCheck() {}", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Uniqueid getInstance() {\n if (uniqueid == null) {\n uniqueid = new Uniqueid();\n }\n return uniqueid;\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 utilitys getInstance(){\n\r\n\t\treturn instance;\r\n\t}", "public static LazyLoadingSingleton getInstaceWithoutThreadSafty() {\n\t\tif (INSTANCE == null) {\n\t\t\tINSTANCE = new LazyLoadingSingleton();\n\t\t}\n\t\treturn INSTANCE;\n\t}", "public static RMIUtils getInstance() {\n return InstanceHolder.INSTANCE;\n }", "@Test(timeout = 10000)\n public void testMultipleCallsReturnTheSameObjectInDifferentThreads() throws Exception {\n\n // Create 10000 tasks and inside each callable instantiate the singleton class\n final List<Callable<S>> tasks = new ArrayList<>();\n for (int i = 0; i < 10000; i++) {\n tasks.add(this.singletonInstanceMethod::get);\n }\n\n // Use up to 8 concurrent threads to handle the tasks\n final ExecutorService executorService = Executors.newFixedThreadPool(8);\n final List<Future<S>> results = executorService.invokeAll(tasks);\n\n // wait for all of the threads to complete\n final S expectedInstance = this.singletonInstanceMethod.get();\n for (Future<S> res : results) {\n final S instance = res.get();\n assertNotNull(instance);\n assertSame(expectedInstance, instance);\n }\n\n // tidy up the executor\n executorService.shutdown();\n\n }", "@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 }", "private Singleton() {\n if (instance != null){\n throw new RuntimeException(\"Use getInstance() to create Singleton\");\n }\n }", "public static synchronized LazyLoadingSingleton getInstanceSynchronized() {\n\t\tif (INSTANCE == null) {\n\t\t\tINSTANCE = new LazyLoadingSingleton();\n\t\t}\n\t\treturn INSTANCE;\n\t}", "public static PriorityExecutorSupplier getInstance() {\n return SingletonHolder.INSTANCE;\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 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 DateUtil getInstace(){ // This is lazy intialization\n if (instace == null) {\n synchronized (DateUtil.class) { // make it thread safe\n System.out.println(\"instace is null\");\n instace = new DateUtil();\n }\n }\n return instace;\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}", "private SingletonThreadSafeExample(){\n this.invoke++;\n }", "public static synchronized LazyLoadingSingleton getInstanceWithSynchronizedBlock() {\n\t\tif (INSTANCE == null) {\n\t\t\tsynchronized (LazyLoadingSingleton.class) {\n\t\t\t\tINSTANCE = new LazyLoadingSingleton();\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 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() {\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 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 }", "@Test\n public void testSingleton() throws InterruptedException{\n Singleton[] results = new Singleton[threadNumber];\n\n for(int i=0; i<threadNumber; i++) {\n final int finalI = i;\n executor.execute(() -> {\n try {\n long threadId = Thread.currentThread().getId();\n logger.info(\"[Thread-\" + threadId + \"] is running\");\n results[finalI] = Singleton.getInstance();\n logger.info(\"[Thread-\" + threadId + \"] is finished\");\n }\n catch (Throwable t) {\n logger.error(t, t.getCause());\n }\n });\n }\n executor.shutdown();\n executor.awaitTermination(10, TimeUnit.SECONDS);\n\n long count = Arrays.stream(results).distinct().count();\n assertEquals(\"Instance number supposed to be only one, but you got \" + count, expectInstances, count);\n }", "public static PSUniqueObjectGenerator getInstance()\n {\n if ( null == ms_instance )\n ms_instance = new PSUniqueObjectGenerator();\n return ms_instance;\n }", "synchronized public static MessageBusImpl getInstance()\n\t{\n\t\tif (instance == null)\n\t\t{\n\t\t\t// if instance is null, initialize\n\t\t\tinstance = new MessageBusImpl();\n\t\t}\n\t\treturn instance;\n\t}", "public static Singleton instance() {\n return Holder.instance;\n }", "synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }", "private static LogUtil getInstance() {\r\n if (instance == null) {\r\n final LogUtil l = new LogUtil();\r\n l.init();\r\n if (isShutdown) {\r\n // should not be possible :\r\n if (l.log.isErrorEnabled()) {\r\n l.log.error(\"LogUtil.getInstance : shutdown detected : \", new Throwable());\r\n }\r\n return l;\r\n }\r\n instance = l;\r\n\r\n if (instance.logBase.isInfoEnabled()) {\r\n instance.logBase.info(\"LogUtil.getInstance : new singleton : \" + instance);\r\n }\r\n }\r\n\r\n return instance;\r\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 Executor getInstance() {\n Object object = sDirectExecutor;\n if (object != null) {\n return sDirectExecutor;\n }\n object = DirectExecutor.class;\n synchronized (object) {\n DirectExecutor directExecutor = sDirectExecutor;\n if (directExecutor == null) {\n sDirectExecutor = directExecutor = new DirectExecutor();\n }\n return sDirectExecutor;\n }\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 return mSing;\n }", "private Singleton(){}", "public static synchronized TowerManager getUniqueInstance() {\n if (uniqueInstance == null) {\n uniqueInstance = new TowerManager();\n }\n return uniqueInstance;\n }", "public static EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}", "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 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}", "private SingletonSyncBlock() {}", "@Test\n public void testGetInstance() {\n\n // singleton\n assertSame(GestionnaireRaccourcis.getInstance(), GestionnaireRaccourcis.getInstance());\n }", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }", "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 SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}", "private static void createInstance() {\n if (mApiInterface == null) {\n synchronized(APIClient.class) {\n if (mApiInterface == null) {\n mApiInterface = buildApiClient();\n }\n }\n }\n }", "public static OneByOneManager getInstance() {\n // The static instance of this class\n return INSTANCE;\n }", "private SingletonSample() {}", "public static DoubleCheckedLocking getInstanceUsingDoubleLocking(){\n\t if(instance == null){\n\t synchronized (DoubleCheckedLocking.class) {\n\t if(instance == null){\n\t instance = new DoubleCheckedLocking();\n\t }\n\t }\n\t }\n\t return instance;\n\t}", "public static UserController getInstance(){\n if(INSTANCE == null){\n synchronized(UserController.class){\n if(INSTANCE==null){\n INSTANCE = new UserController();\n }\n }\n }\n else\n {\n return INSTANCE; \n }\n return INSTANCE;\n }", "@Test\r\n\tpublic final void testGetInstance() {\r\n\t\tComparatorFacade facade = ComparatorFacade.getInstance();\r\n\t\tAssert.assertSame(singleton, facade);\r\n\t}", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "private Singleton() { }", "String getInstance()\n {\n return instance;\n }", "public static synchronized SubscriptionHelper getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new SubscriptionHelper();\n\t\t}\n\t\treturn 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 LazySingleton getInstance()\n {\n // Check null\n if (instance == null)\n instance = new LazySingleton();\n return instance;\n\n }", "public static OI getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static CarSingleton2 getInstance() {\n\t\treturn singleton_instance;\n\t}", "private SingletonH() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonH\");\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}", "static void useSingleton(){\n\t\tSingleton singleton = Singleton.getInstance();\n\t\tprint(\"singleton\", singleton);\n\t}", "private SingletonEager(){\n \n }", "public static Instruction getInstance() {\n \t\treturn staticInstance;\n \t}", "public static Instruction getInstance() {\n \t\treturn staticInstance;\n \t}", "public static Instruction getInstance() {\n \t\treturn staticInstance;\n \t}", "public static FacadeMiniBank getInstance(){\r\n\r\n\t\tif(singleton==null){\r\n\t\t\ttry {\r\n\t\t\t\t//premier essai : implementation locale\r\n\t\t\t\tsingleton=(FacadeMiniBank) Class.forName(implFacadePackage + \".\" + localeFacadeClassName).newInstance();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.err.println(e.getMessage() + \" not found or not created\");\r\n\t\t\t}\t\t\t\t\t\t\r\n\t\t}\r\n\t\tif(singleton==null){\r\n\t\t\t//deuxieme essai : business delegate \r\n\t\t singleton=getRemoteInstance();\r\n\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\treturn singleton;\r\n\t}", "@Contract(pure = true)\n/* */ public static UPNPService getInstance() {\n/* 57 */ return INSTANCE;\n/* */ }", "private synchronized static void createInstance() {\n if (INSTANCE == null) { \n INSTANCE = new DataConnection();\n }\n }" ]
[ "0.7261516", "0.7132517", "0.71181875", "0.6927385", "0.692029", "0.69123894", "0.69043416", "0.6847504", "0.6838609", "0.682381", "0.6799076", "0.6794375", "0.67472064", "0.6730928", "0.6722123", "0.66643155", "0.6662488", "0.665765", "0.6651759", "0.66428226", "0.6641635", "0.6636545", "0.6621731", "0.661593", "0.6581057", "0.6574202", "0.6509424", "0.6495489", "0.6488231", "0.64863765", "0.6473767", "0.6472979", "0.6465506", "0.6452079", "0.64504105", "0.6440595", "0.6437871", "0.6433934", "0.6406605", "0.63880503", "0.6382788", "0.63721913", "0.6345085", "0.63358176", "0.6331864", "0.6303619", "0.6296648", "0.62942404", "0.62645084", "0.62634325", "0.6262383", "0.62566507", "0.6250675", "0.6242006", "0.62405765", "0.6223704", "0.62157714", "0.6201847", "0.61971325", "0.61906785", "0.6163884", "0.61284995", "0.6111004", "0.6100372", "0.6093628", "0.60745287", "0.60693055", "0.60685575", "0.60604006", "0.60502917", "0.6031526", "0.6030342", "0.6003401", "0.5997547", "0.5996235", "0.5991009", "0.59856594", "0.5981224", "0.59790075", "0.5976288", "0.59743905", "0.5972528", "0.59655035", "0.59628737", "0.5959942", "0.59562683", "0.595538", "0.59510434", "0.59499776", "0.59459734", "0.59386635", "0.59386235", "0.5934813", "0.59107983", "0.5895043", "0.5895043", "0.5895043", "0.5887557", "0.5880349", "0.58593875" ]
0.6693899
15
TODO Autogenerated method stub
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\\Users\\chipl\\Java\\chromedriver_win32\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().window().maximize(); driver.get("https://rahulshettyacademy.com/seleniumPractise/#/"); driver.findElement(By.cssSelector("a[href='#/offers']")).click(); // clicking on top deals //Switching to new window Set<String> ids = driver.getWindowHandles(); Iterator<String> id = ids.iterator(); String parentId = id.next(); driver.switchTo().window(id.next()); //clicking on table head to sort data in order driver.findElement(By.xpath("//tr/th[1]")).click(); //Storing the column contents in a list List<WebElement> elementList = driver.findElements(By.xpath("//tr/td[1]")); //Picking text data from Webelements and storing it to list using streams List<String> ogList = elementList.stream().map(s->s.getText()).collect(Collectors.toList()); //Sorting ogList and storing it to newList using stream List<String> sortedList = ogList.stream().sorted().collect(Collectors.toList()); Assert.assertTrue(ogList.equals(sortedList)); //120: Fetching price of beans by using name coloumn using stream and printing it elementList.stream().filter(s->s.getText().contains("Beans")).map(s->getPriceVeggie(s)).forEach(s->System.out.println(s)); }
{ "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
private static String getPriceVeggie(WebElement s) { return s.findElement(By.xpath("following-sibling::td[1]")).getText(); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { ClassC c = new ClassC(); c.display(); c.view(); }
{ "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
Ausgabe auf der Konsole was passieren soll System.out.println("A" + aufzugNummer + " mit " + (sim.getAufzugPosition(aufzugNummer)+stockwerkAenderung) + " > " + sim.getAufzugPosition(aufzugNummer));
private void fahre(int aufzugNummer, int stockwerkAenderung){ System.out.println(); //Animation der Aufzüge TranslateTransition anpassung = new TranslateTransition(Duration.seconds(Aufzug.DAUER_PRO_STOCK*Math.abs(stockwerkAenderung)), aufzuge[aufzugNummer]); anpassung.setByY(stockwerkAenderung*stockwerkHohe); anpassung.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void print(){\n System.out.println(\"(\"+a.getAbsis()+\"_a,\"+a.getOrdinat()+\"_a)\");\n System.out.println(\"(\"+b.getAbsis()+\"_b,\"+b.getOrdinat()+\"_b)\");\n System.out.println(\"(\"+c.getAbsis()+\"_b,\"+c.getOrdinat()+\"_c)\");\n }", "public void printOut(){\n\t\tSystem.out.println(\"iD: \" + this.getiD());\n\t\tSystem.out.println(\"Titel: \" + this.getTitel());\n\t\tSystem.out.println(\"Produktionsland: \" + this.getProduktionsLand());\n\t\tSystem.out.println(\"Filmlaenge: \" + this.getFilmLaenge());\n\t\tSystem.out.println(\"Originalsprache: \" + this.getOriginalSprache());\n\t\tSystem.out.println(\"Erscheinungsjahr: \" + this.getErscheinungsJahr());\n\t\tSystem.out.println(\"Altersfreigabe: \" + this.getAltersFreigabe());\n\t\tif(this.kameraHauptperson != null) {\n\t\t\tSystem.out.println( \"Kameraperson: \" + this.getKameraHauptperson().toString() );\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println( \"Keine Kameraperson vorhanden \");\n\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tif ( this.listFilmGenre != null) {\n\t\t\tfor( FilmGenre filmGenre: this.listFilmGenre ){\n\t\t\t\tSystem.out.println(\"Filmgenre: \" + filmGenre);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Person darsteller: this.listDarsteller ){\n\t\t\tSystem.out.println(\"Darsteller: \" + darsteller);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Person synchronSpr: this.listSynchronsprecher ){\n\t\t\tSystem.out.println(\"synchro: \" + synchronSpr);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Person regi: this.listRegisseure ){\n\t\t\tSystem.out.println(\"regi: \" + regi);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Musikstueck mstk: this.listMusickstuecke ){\n\t\t\tSystem.out.println(\"Musikstueck: \" + mstk);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tSystem.out.println(\"Datentraeger: \" + this.getDatentraeger());\n\t\tSystem.out.println(\"----------------------------\");\n\t}", "public void drukAf(){\n System.out.println(\"BSN :\" + burgerServiceNummer);\n System.out.println(\"voornaam :\" + voornaam);\n System.out.println(\"achternaam :\" + achternaam);\n System.out.println(\"geboortedatum :\" + geboorteDag + \"/\" + geboorteMaand + \"/\" + geboorteJaar);\n System.out.println(\"geslacht :\" + geslacht); \n }", "public void mainkan(){\n System.out.println();\n //System.out.printf(\"Waktu: %1.2f\\n\", this.oPlayer.getWaktu());\n System.out.println(\"Nama : \" + this.oPlayer.nama);\n System.out.println(\"Senjata : \" + this.oPlayer.getNamaSenjataDigunakan());\n System.out.println(\"Kesehatan : \" + this.oPlayer.getKesehatan());\n// System.out.println(\"Daftar Efek : \" + this.oPlayer.getDaftarEfekDiri());\n System.out.println(\"Nama Tempat : \" + this.namaTempat);\n System.out.println(\"Narasi : \" + this.narasi);\n }", "public void printInfo() {\r\n System.out.printf(\"%-25s\", \"Nomor Rekam Medis Pasien\");\r\n System.out.println(\": \" + getNomorRekamMedis());\r\n System.out.printf(\"%-25s\", \"Nama Pasien\");\r\n System.out.println(\": \" + getNama());\r\n System.out.printf(\"%-25s\", \"Tempat, Tanggal Lahir\");\r\n System.out.print(\": \" + getTempatLahir() + \" , \");\r\n getTanggalKelahiran();\r\n System.out.printf(\"%-25s\", \"Alamat\");\r\n System.out.println(\": \" + getAlamat());\r\n System.out.println(\"\");\r\n }", "public void skrivUt(){\n System.out.println(this.fornavn + \" \" + this.etternavn + \" \" + this.adresse + \" \" + this.telefonnr + \" \" + this.alder);\n }", "public static void printGame(){\n System.out.println(\"Spielrunde \" + GameController.AKTUELLE_RUNDE);\n System.out.println(GameController.AKTUELLER_SPIELER +\" ist an der Reihe.\");\n System.out.println(\"Er attackiert \" +\n GameController.AKTUELLER_VERTEIDIGER + \" und verursacht \"\n + GameController.SCHADEN +\" Schaden. \");\n System.out.println();\n }", "public void printAnnuNom() \n {\n System.out.println(\"Annuaire de \"+nomAnnuaire);\n }", "public void affiche () {\r\n\t\tSystem.out.println(\"Nom du porteur du compte: \" + this.porteur);\r\n\t\tSystem.out.println(\"numéro du compte: \" + this.IBAN);\r\n\t\tSystem.out.println(\"Solde du compte: \" + this.solde);\r\n\t}", "public static void RF2() {\r\n System.out.print(\"Gracias,Tenga un Buen Dia \");\r\n\tSystem.out.print(\"Adios :D\");\r\n }", "void vorbereiten(){\n\t\tSystem.out.println(\"vorbereiten \");\n\t}", "public String print() {\n Collections.sort(ordini, Comparator.comparing(o -> o.dataAcquisto));\n return ordini.stream()\n .map(o->o.toString()+\"\\n\")\n .reduce(String::concat).orElse(\"\");\n }", "public void output() {\n System.out.printf(\"Dien tich: %.2f \\n\", getArea());\n System.out.printf(\"Chu vi: %.2f \\n\", getPeripheral());\n }", "public void formatPrint() {\n\t\tSystem.out.printf(\"%8d \", codigo);\n\t\tSystem.out.printf(\"%5.5s \", clase);\n\t\tSystem.out.printf(\"%5.5s \", par);\n\t\tSystem.out.printf(\"%5.5s \", nombre);\n\t\tSystem.out.printf(\"%8d \", comienza);\n\t\tSystem.out.printf(\"%8d\", termina);\n\t}", "public void Makan()\n\t{\n\tSystem.out.println(\"Harimau Makan Daging dan minum susu\");\n\tSystem.out.println();\n\t}", "@Override\n\tpublic void print() {\n\t\tsuper.print();\n\t\tSystem.out.println(\"ÎÒÊÇÒ»Ö»\"+this.getStrain()+\"È®.\");\n\t}", "public static void main(String[] args) {\n\t\tint [] eingabe = {1, 1, 1, 1};\r\n\t\tint laenge = 4;\r\n\t\tint zustandAktuell = 0;\r\n\t\tint [][] Zustandstabelle = new int [4][2];\r\n\t\tZustandstabelle [0][0] = -1;\r\n\t\tZustandstabelle [0][1] = 1;\r\n\t\tZustandstabelle [1][0] = 2;\r\n\t\tZustandstabelle [1][1] = 3;\r\n\t\tZustandstabelle [2][0] = 2;\r\n\t\tZustandstabelle [2][1] = -1;\r\n\t\tZustandstabelle [3][0] = 2;\r\n\t\tZustandstabelle [3][1] = 3;\r\n\t\t\r\n\t\tfor (int i = 0; i < laenge; i++)\r\n\t\t{\r\n\t\t\tzustandAktuell = Zustandstabelle[zustandAktuell][eingabe[i]];\r\n\t\t\tif (zustandAktuell == -1) {\r\n\t\t\t\tSystem.out.print(\"Ungültige Eingabe. Beenden\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif (zustandAktuell != 5)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"q\" + (zustandAktuell + 1) + \" ist der Zustand nach Bearbeitung der Eingabe: [\");\r\n\t\t\tfor (int i = 0; i < laenge ; i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(eingabe [i]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"]\");\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "public void printAnnuaireName() {\n\t\t\n\t}", "public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}", "public void mostrarJet(){\r\n \r\n System.out.println(\"clase hija jet de vehiculo con motor \");\r\n System.out.println(\"LA CANTIDAD DE MOTORES ES : \" + this.cantidaddeMotores);\r\n\r\n\r\n System.out.println(\"***************************************************\");\r\n System.out.println(\"*************H**E**R**E**D**A**********************\");\r\n System.out.println(\"|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|\");\r\n }", "public static void display() {\n\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println(\"* Omar Oraby\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* 900133379\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Salma Talaat *\");\n\t\tSystem.out.println(\"* 900161560\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Ahmed Elshafey *\");\n\t\tSystem.out.println(\"* 900131045 *\");\n\t\tSystem.out.println(\"* Programming in Java *\");\n\t\tSystem.out.println(\"* (2018 Fall) *\");\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println();\n }", "public void mostrar() {\r\n\t\tfor (int i = 0; i < bolsa.length; i++) {\r\n\t\t\tSystem.out.printf(\"#%d: %d\\t\", i, bolsa[i]);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public static void main (String[] s){\n\t\tint eingabe=0;\n\t\twhile(eingabe!=-1){\n\t\t\tSystem.out.print(\"Text eingeben: \");\n\t\t\tSystem.out.println(\"Eingegeben wurde:\"+Eingabe.leseString());\n\t\t\tSystem.out.print(\"Float eingeben: \");\n\t\t\tSystem.out.println(\"Eingegeben wurde:\"+Eingabe.leseFloat());\n\t\t\tSystem.out.print(\"Double eingeben: \");\n\t\t\tSystem.out.println(\"Eingegeben wurde:\"+Eingabe.leseDouble());\n\t\t\tSystem.out.print(\"Boolean eingeben: \");\n\t\t\tSystem.out.println(\"Eingegeben wurde:\"+Eingabe.leseBoolean());\n\t\t\tSystem.out.print(\"Ganze Zahl eingeben (Abbruch mit -1): \");\n\t\t\teingabe=Eingabe.leseInt();\n\t\t\tSystem.out.println(\"Eingeben wurde: \"+eingabe);\n\t\t}\n\t}", "private void printUpdateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opdater Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opdater Medarbejder\");\n System.out.println(\"(2) Opdater Kunde\");\n System.out.println(\"(3) Opdater Produkt\");\n System.out.println(\"(4) Tilføj Produkt\");\n System.out.println(\"(5) Bekræft\");\n System.out.print(\"Valg: \");\n }", "public void test(){\n\t\tfor(int i =0; i< this.position.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tfor(int p = 0 ; p<this.position.length;p++){\n\t\t\t\tSystem.out.print(this.position[i][p]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" \");\n\t\tfor(int i =0; i< this.position.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tfor(int p = 0 ; p<this.position.length;p++){\n\t\t\t\tSystem.out.print(this.Ari[i][p]);\n\t\t\t}\n\t\t}\n\t}", "public void display() {System.out.println(skaitlis);}", "public void print() {\n\t// Skriv ut en grafisk representation av kösituationen\n\t// med hjälp av klassernas toString-metoder\n System.out.println(\"A -> B\");\n System.out.println(r0);\n System.out.println(\"B -> C\");\n System.out.println(r1);\n System.out.println(\"turn\");\n System.out.println(r2);\n //System.out.println(\"light 1\");\n System.out.println(s1);\n //System.out.println(\"light 2\");\n System.out.println(s2);\n }", "public void ausgabe() {\n\t\tthis.streamKoordinierung.koordiniereAnhandDerEingabedaten();\n\t\tthis.streamKoordinierung.schreibeEndtextInDatei();\n\t\tSystem.out.println(\"\\n\\nAlles erfolgreich abgelaufen, herzlichen Glueckwunsch!\");\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.print(\"Unesi ime: \");\n\t\tScanner unos = new Scanner(System.in);\n\t\tString ime = unos.next();\n\t\t\n\t\t//prvi red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t System.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//drugi red crtica\n\t\tSystem.out.println(\": : : TABLICA MNOZENJA : : :\");\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\tSystem.out.print(\" * |\");\n\t\tfor(int j=1;j<=9;j++){\n\t\t\tSystem.out.printf(\"%3d\",j);\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//treci red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\tfor(int i=1;i<=9;i++){\n\t\t\tSystem.out.printf(\"%2d |\",i);\n\t\t\tfor(int j=1;j<=9;j++){\n\t\t\t\tSystem.out.printf(\"%3d\",i*j);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t//cetvrti red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\tfor(int k=0;k<8;k++){\n\t\t\tSystem.out.printf(\": \");\n\t\t}\n\t\tSystem.out.print(\":by \"+ime);\n\t\tSystem.out.println();\n\t\t\n\t\t//peti red crtica\n\t\tfor(int dash=0;dash<31;dash++){\n\t\t\tSystem.out.printf(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\tunos.close();\n\t}", "public void print(){\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" ~ THREE ROOM DUNGEON GAME ~ \");\n\t\tfor(int i = 0; i < this.area.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.print(\" \");\n\t\t\tfor(int p = 0 ; p < this.area.length; p++){\n\t\t\t\tif(this.Garret[i][p] == 1){\n\t\t\t\t\tSystem.out.print(\":( \");\n\t\t\t\t}\n\t\t\t\telse if(this.Ari[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" ? \");\n\t\t\t\t}\n\t\t\t\telse if(this.position[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" + \");\n\t\t\t\t}\n\t\t\t\telse if(this.Items[i][p] != null){\n\t\t\t\t\tSystem.out.print(\"<$>\");\n\t\t\t\t}\n\t\t\t\telse if(this.Door[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" D \");\n\t\t\t\t}\n\t\t\t\telse if(this.Stairs[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" S \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(this.area[i][p]);\n\t\t\t\t}\n\t\t\t}//end of inner for print\n\t\t}//end of outter for print\n\n\t}", "public void print() {\n\t\tSystem.out.println(\"ONOMA IDIOKTITH: \" + fname);\n\t\tSystem.out.println(\"EPWNYMO IDIOKTITH: \" + lname);\n\t\tSystem.out.println(\"DIEUTHINSH FARMAKEIOU: \" + address);\n\t\tSystem.out.println(\"THLEFWNO FARMAKEIOU: \" + telephone);\n\t\tSystem.out.println();\n\t}", "public void duerme() {\n System.out.println(\"Duerme profundamentZzZzZz...\");\n }", "public void surasystiReiksmes(){\n\n System.out.println (\"╔═══════════╦═══════════╦═══════════╗\");\n\n for ( int i = 0; i < 9; i++){ //eilutes israso?\n\n if ((i==3)||(i==6)) {\n System.out.print(\"╠═══════════╬═══════════╬═══════════╣\\n\");\n } if ( ( i==1 )||( i==2) ||( i==4 )||( i==5 )||( i==7 )||( i==8 ) ) {\n System.out.print(\"║ ─ ─ ─ ║ ─ ─ ─ ║ ─ ─ ─ ║\\n║\");\n } else {\n System.out.print(\"║\");\n }\n\n for (int j = 0; j < 9; j++){ //stulpelius israso?\n\n String bruksniukas = \" │\";\n\n if ((j==2)||(j==5)||(j==8)){\n bruksniukas=\" ║\";\n }\n\n if (sudoku_skaiciai[i][j].zingsnio_nr==0){\n System.out.println(\"\\033[36m\"+ sudoku_skaiciai[i][j].reiksme +\"\\033[0m\");\n }\n\n System.out.print(\" \" + sudoku_skaiciai [i][j].reiksme + bruksniukas); //israso koonsolej visa uzduoti\n }\n System.out.println(); //???\n }\n System.out.println (\"╚═══════════╩═══════════╩═══════════╝\");\n }", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "public void showPosicoes() {\n this.print(\"\\n\");\n for (int i = 0; i < listaJogadores.size(); i++) {\n // System.out.print(posicoes[i] + \"\\t\");\n }\n }", "public static void printSieger(){\n System.out.println(\"Sieger ist \" +GameController.SIEGER);\n }", "@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }", "@Override\r\n\tpublic void work() {\n\t\tSystem.out.println( aname + \"Berkerja\");\r\n\t}", "@Override\n public void infixDisplay() {\n System.out.print(name);\n }", "public void printA(){\n\t\tfor(int i = 0; i < this.area.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.print(\" \");\n\t\t\tfor(int p = 0 ; p < this.area.length; p++){\n\n\t\t\t\tif(this.Ari[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" ? \");\n\t\t\t\t}\n\t\t\t\telse if(this.position[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" + \");\n\t\t\t\t}\n\t\t\t\telse if(this.Items[i][p] != null){\n\t\t\t\t\tSystem.out.print(\"<$>\");\n\t\t\t\t}\n\t\t\t\telse if(this.Door[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" D \");\n\t\t\t\t}\n\t\t\t\telse if(this.Stairs[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" S \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(this.area[i][p]);\n\t\t\t\t}\n\t\t\t}//end of inner for print\n\t\t}//end of outter for print\n\t}", "public void printStrukTel() //Untuk yang tidak pake DialogBox\r\n {\n System.out.println(\"----------------------------------------\");\r\n System.out.println(\" BANK HAFARA \");\r\n System.out.println(\"\\n\");\r\n System.out.println(\" Nomor antrian anda: \");\r\n System.out.println(\" A\" + totalAntrianTeller++);\r\n System.out.println(\" Sedang menunggu \" + (totalAntrianTeller-2) + \" orang\");\r\n System.out.println(\"\\n\");\r\n System.out.println(\" \"+wkt.getTanggal());\r\n System.out.println(\"TERIMA KASIH TELAH MENGGUNAKAN JASA KAMI\");\r\n System.out.println(\"----------------------------------------\");\r\n System.out.println(\"\\n\");\r\n }", "@Override\n\tpublic void bolumSoyle() {\n\t\tSystem.out.println(\"Benim Bölümüm Psi\");\n\t}", "@Override\n\tpublic void order() {\n\t\tSystem.out.println(\"고객 판매 주문\");\n\t}", "public static void f_menu(){\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"-------------Soft_AVERAGE_HEIGHT-----------------\");\n System.out.println(\"-------------version 1.0 23-oct-2020------------\");\n System.out.println(\"-------------make by Esteban Gaona--------------\");\n System.out.println(\"-------------------------------------------------\");\n System.out.println(\"-------------------------------------------------\");\n}", "public void ausgeben() {\n\t\tSystem.out.println(this);\n\t\tIterator<Pruefungsleistung> iter = pruefungsleistungen.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tSystem.out.println(iter.next());\n\t\t}\n\t}", "public void inicio(){\n d.display(\"Para un calcular conversiones de grados Farenheit y Celsius\\n\"\n + \"o viceversa\");\n //System.out.println(\"Para un nadaro que ha ganado medallas en 5 competencias\");\n }", "public void print() {\r\n \tfor (int i = 0; i < arbres.size(); i++) {\r\n \t\tSystem.out.println(\"Ordre de \" + arbres.get(i).ordre + \":\");\r\n \t\tarbres.get(i).print(\"\");\r\n \t\tSystem.out.println();\r\n \t}\r\n }", "@Override\n public String toString() {\n return \"@(\"+x+\"|\"+y+\") mit Bewegung: \"+bewegung;\n }", "public static void main(String[] args) {\n String name=\"이효리\";\r\n String department=\"개발부\";\r\n String position=\"대리\";\r\n int sal=1500000;\r\n \r\n System.out.println(\"이름:\"+name);\r\n System.out.printf(\"부서:\"+department+\"\\n\");\r\n System.out.print(\"대리:\"+position+\"\\n\"+\"급여:\"+sal+\"원\");\r\n \r\n \t\t\r\n\t}", "public void print()\r\n\t{\r\n\r\n\t\t for(int i = 0; i < 20; i++)\r\n\t\t {\r\n\t\t\t for(int j = 0; j < 20; j++)\r\n\t\t\t {\r\n\t\t\t\t if(sTalker.getY() == randomer.getY() && sTalker.getX() == randomer.getX() && sTalker.getY() == i && sTalker.getX() == j)\r\n\t\t\t\t \tSystem.out.print(\"x\");\r\n\r\n\t\t\t\t else if (i == randomer.getY() && j == randomer.getX())\r\n\t\t\t\t \tSystem.out.print(\"o\");\r\n\r\n\t\t\t\t else if (i == sTalker.getY() && j == sTalker.getX())\r\n\t\t\t\t \tSystem.out.print(\"*\");\r\n\r\n\t\t\t\t else\r\n\t\t\t\t \tSystem.out.print(\"-\");\r\n\t\t\t }\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\tif(sTalker.getY() == randomer.getY() && sTalker.getX() == randomer.getX())\r\n\t\t{\r\n\t\t \tSystem.out.println(\"The stalker has caught the walker!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\trandomer.move();\r\n\t\tsTalker.move(randomer);\r\n\t}", "public void toonFiguur() {\n System.out.format(\"kleur: %-5s oppervlakte: %5.3f inhoud: %5.3f\\n\",\n kleur, oppervlakte(), inhoud());\n }", "public String toString(){\n return \"+-----------------------+\\n\" +\n \"| Boleto para el metro |\\n\" +\n \"|derjere0ranfeore |\\n\" +\n \"+-----------------------+\\n\" ;\n }", "public void displayCharacter() {\n System.out.println(\"**************************\");\n System.out.println(p.showDetails());\n System.out.println(\"**************************\"+\"\\n\");\n\n }", "public void print() {\n System.out.println(\"Nome: \" + nome);\n System.out.println(\"Telefone: \" + telefone);\n }", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "private void printCreateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opret Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Tilføj Medarbejder\");\n System.out.println(\"(2) Tilføj Kunde\");\n System.out.println(\"(3) Tilføj Produkt\");\n System.out.println(\"(4) Bekræft\");\n System.out.print(\"Valg: \");\n }", "public void geraeuschMachen() {\n System.out.println(\"BRUELL\");\n }", "public void afficherPlateau(Robot r) {\r\n\t\tfor(int i=0; i<plateau.length; i++) {\r\n\t\t\tfor (int j=0; j<plateau[0].length; j++) {\r\n\t\t\t\tSystem.out.print(\"|\");\r\n\t\t\t\tif(plateau[i][j].contientMine() > 0) {\r\n\t\t\t\t\tif (plateau[i][j].contientMine() != r.getEquipe())\r\n\t\t\t\t\t\tSystem.out.print(plateau[i][j]);\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(plateau[i][j]);\r\n\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"|\");\r\n\t\t\tif(i == 2)\r\n\t\t\t\tSystem.out.print(\"\tDeplacement = d et Attaque = a\");\r\n\t\t\tif(i == 3)\r\n\t\t\t\tSystem.out.print(\"\t\ta=haut-gauche, z=haut, e=haut-droite\");\r\n\t\t\tif(i == 4)\r\n\t\t\t\tSystem.out.print(\"\t\tq=gauche, d=droite\");\r\n\t\t\tif(i == 5){\r\n\t\t\t\tSystem.out.print(\"\t\tw=bas-gauche, s=bas, c=bas-droite\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\tSystem.out.println();\r\n\t}", "public void printG(){\n\t\tfor(int i = 0; i < this.area.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.print(\" \");\n\t\t\tfor(int p = 0 ; p < this.area.length; p++){\n\t\t\t\tif(this.Garret[i][p] == 1){\n\t\t\t\t\tSystem.out.print(\":( \");\n\t\t\t\t}\n\t\t\t\telse if(this.position[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" + \");\n\t\t\t\t}\n\t\t\t\telse if(this.Items[i][p] != null){\n\t\t\t\t\tSystem.out.print(\"<$>\");\n\t\t\t\t}\n\t\t\t\telse if(this.Door[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" D \");\n\t\t\t\t}\n\t\t\t\telse if(this.Stairs[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" S \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(this.area[i][p]);\n\t\t\t\t}\n\t\t\t}//end of inner for print\n\t\t}//end of outter for print\n\t}", "public void KosarajuPrint() {\n long start = System.currentTimeMillis();\n io.println(\"The given statement is \");\n if (kosaraju.checkSatisfiability()) {\n io.println(\"satisfiable.\");\n } else {\n io.println(\"not satisfiable.\");\n }\n io.println(\"The calculation took \" + (System.currentTimeMillis() - start) + \" milliseconds.\\n\");\n }", "public void print() {\r\n\t\tSystem.out.println(\"---Vrachtwagen---\");\r\n//\t\thaalt de print functie op van de class voertuigen\r\n\t\tsuper.print();\r\n//\t \tgeeft lading weer\r\n\t\tSystem.out.println(\"Lading: \" + lading);\r\n\t}", "public String print(){\r\n\t\t\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.companyName, \r\n\t\t\t\tthis.numberOfRailCars, \r\n\t\t\t\tthis.destinationCity);\r\n\t}", "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 }", "@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´ó¿ãñÃ\");\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tSystem.out.println(\"父箆業\" + \"\\t\\t\" + \"鯖箆業\"\n\t\t\t\t+ \"\\t\\t\\t\\t\" + \"鯖箆業\" + \"\\t\\t\" + \"父箆業\");\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\");\n\t\t\n\t\tdouble temp = 120.0;\n\t\t\n\t\tint i;\n\t\tfor (i = 40;i > 30;i--) {\n\t\t\tSystem.out.printf(\"%.1f\\t\\t%.1f\\t\\t\\t\\t\", (double)i, celsiusToFahrenheit((double)i));\n\t\t\tSystem.out.printf(\"%.1f\\t\\t%.2f\\n\", (double)temp, fahrenheitToCelsius((double)temp));\n\t\t\ttemp -= 10;\n\t\t}\n\t\t\n\t}", "public void printCommand() {\n System.out.println(\"Cette commande n'est pas supportee\");\n System.out.println(\"Quitter : \\\"quit\\\", Total: \\\"total\\\" , Liste: \\\"list\\\" ou Time: \\\"time\\\"\");\n System.out.println(\"--------\");\n }", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"Pasos dados por \" + a.nombre + \" \" + a.distancia + \" m = \" + pasosActividad + \" / Pasos en total = \" + pasosTotal);\n\t}", "public void printInfo()\n {\n System.out.println(\"position Value:\" + pos_.get(0).getPosition());\n System.out.println(\"velocitiy Value:\" + vel_.get(0).getVelocity());\n System.out.println(\"lastUpdateTime Value:\" + lastPosUpdateTime_);\n System.out.println(\"KalmanGain_ Value:\" + KalmanGain_);\n }", "public void print()\n {\n System.out.println(\"------------------------------------------------------------------\");\n System.out.println(this.letters);\n System.out.println();\n for(int row=0; row<8; row++)\n {\n System.out.print((row)+\"\t\");\n for(int col=0; col<8; col++)\n {\n switch (gameboard[row][col])\n {\n case B:\n System.out.print(\"B \");\n break;\n case W:\n System.out.print(\"W \");\n break;\n case EMPTY:\n System.out.print(\"- \");\n break;\n default:\n break;\n }\n if(col < 7)\n {\n System.out.print('\\t');\n }\n\n }\n System.out.println();\n }\n System.out.println(\"------------------------------------------------------------------\");\n }", "private static void saluti() {\n\t\tUtilityIO.header(MSG_CHIUSURA, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t}", "public static void main (String[] args) throws Exception {\n Ordliste scarlet = new Ordliste();\r\n // sender inn text.filen til metoden lesBok.\r\n scarlet.lesBok(\"scarlet.text\");\r\n // Interaksjoner med brukeren hvor ulike metoder blir kalt paa for aa loose oppgavene.\r\n System.out.println(\"Sporsmaal a: Hvor mange ulike ord forekommer i boken?\");\r\n System.out.println(\"Det er \" + scarlet.antallOrd() + \" ulike ord i teksten.\");\r\n\r\n /* Kommentar til Oppgave b&c : Her tolket jeg oppgaven slik at bruker skulle soke et ord de ville finne selv.\r\n Jeg saa ikke for senere at oppgaven spurte om Holmes og elementary. Kunne eventuelt har forandret\r\n oppgaven slik at man sendte inn argumentet \"Holmes\" og \"elementary\" til finnOrd-metoden, men lot\r\n det staa som det er og heller lagt inn en kommentar. */\r\n Scanner in = new Scanner(System.in);\r\n System.out.println(\"Sporsmaal b: Hvilket ord vil du lete antall forekomster av? (Skriv gjerne Holmes)\\n\");\r\n // Her printer den ut bare forekomster av \"Holmes\" UTEN apostrof bak.\r\n System.out.println(\"Det er \" + scarlet.antallForekomster(in.nextLine()) + \" antall forekomster av ordet du sokte i teksten.\\n\");\r\n\r\n System.out.println(\"Sporsmaal c:Hvilket ord vil du lete antall forekomster av? (Skriv gjerne elementary)\\n\");\r\n System.out.println(\"Det er \" + scarlet.antallForekomster(in.nextLine()) + \" antall forekomster av ordet du sokte i teksten.\\n\");\r\n\r\n System.out.println(\"Sporsmaal d: Det ordet som dukker opp flest ganger i teksten er: \" + scarlet.vanligste() + \"\\n\");\r\n\r\n System.out.println(\"Sporsmaal d (frivillig): De ordene som dukker opp flest ganger i teksten er: \");\r\n // Lager en for-each som leser gjennom listen til alleVanligste-metoden og printer ut ALLE de ordene som forekommer flest ganger.\r\n for(Ord hvertOrd : scarlet.alleVanligste()) {\r\n System.out.println(hvertOrd);\r\n }\r\n\r\n }", "public void belajar(){\n\t\tSystem.out.println(\"Belajar java di \"+tempat+\" selama \"+jamBelajar+\" jam\");\n\t}", "private void showInfo() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Guess a letter:\\n\" + this.word);\n\t\tSystem.out.println(\"You have made \" \n\t\t\t\t+ this.numOfWrongGuess + \" wrong guesses.\");\n\t\tSystem.out.println(\"You will lose the game if you make more than \"\n\t\t\t\t+ this.allowance + \" wrong guesses.\");\n\t\tSystem.out.println(\"The already guessed wrong letters are:\");\n\t\tSystem.out.println(this.wrongLetters);\n\t\tSystem.out.println(\"-----------------------------\");\n\t}", "@Override\n\tpublic void juxing() {\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t}", "@Override\n\tpublic void print() {\n\t\tsuper.print();\n\t\tSystem.out.println(alcohol);\n\t}", "public void print(){\n for (int i = 0; i < rows; i++)\n {\n for (int j = 0; j < cols; j++)\n {\n if (start.getCol()==j&&start.getRow()==i)\n System.out.print('S');\n else if (end.getCol()==j&&end.getRow()==i)\n System.out.print('E');\n else if (maze[i][j]==1)\n System.out.print('\\u2588');\n else if (maze[i][j]==0)\n System.out.print('\\u2591');\n if (j!=cols-1){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n //System.out.println(\"-------\");\n }", "public void print() {\r\n System.out.println(c() + \"(\" + x + \", \" + y + \")\");\r\n }", "private void printVersion() {\n \n // print the version\n System.out.println(\"arara \".concat(AraraConstants.VERSION).concat(\" - \").concat(localization.getMessage(\"Header_Slogan\")));\n System.out.println(\"Copyright (c) \".concat(AraraConstants.COPYRIGHTYEAR).concat(\", Paulo Roberto Massa Cereda\"));\n System.out.println(localization.getMessage(\"Header_AllRightsReserved\").concat(\"\\n\"));\n }", "public static void main(String[] args){\n\n //Das System gibt FH Kufstein Tirol auf der Konsole aus.\n System.out.println(\"FH Kufstein Tirol\");\n }", "public void print()\n {\n \tSystem.out.println(\"MOTO\");\n super.print();\n System.out.println(\"Tipo da partida: \" + tipoPartida);\n System.out.println(\"Cilindradas: \" + cilindradas);\n System.out.println();\n }", "@Override\r\n\tpublic void alimentar() {\n\t\tSystem.out.print(\" como carne, yummy, yummy\");\r\n\t}", "private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }", "@Override\n\tpublic void muestraNombre() {\n\t\tSystem.out.println(\"Adivina un número par\");\n\t}", "public void nace() {\n System.out.println(\"Ostia, acabo de nacer tío.\");\n }", "public void muere() {\n System.out.println(\"Ugh... Llegó mi hora... Adios.\");\n }", "void printMax(){\r\n\t\tSystem.out.printf(\"\\nThe stock with the highest value is \" + maxNode.stockName + \" with a value of $%.2f%n\",maxNode.stockValue);\r\n\t}", "@Override\n public void print() {\n System.out.println(\"VIn:- \"+getVehicalIndentificationNumber());\n System.out.println(\"Description:- \"+getVechicalDiscription());\n System.out.println(\"Manufacturer:- \"+getManufacturerName());\n System.out.println(\"isSelfDrive:- \"+getSelfDrive());\n System.out.println(\"isInsured:- \"+getInsured());\n System.out.println(\"insuranceProviderName:- \"+getInsuranceProviderName());\n System.out.println(\"NumberOfSeat:- \"+getNoOfSeat());\n System.out.println(\"FuelType:- \"+getFuelType());\n System.out.println(\"BaseRate:- \"+getBaseRate());\n System.out.println(\"RatePerKm:- \"+getRatePerKm());\n System.out.println(\"VehicleType:- \"+getVehicleType());\n System.out.println(\"Color:- \"+getColor());\n }", "private void print(float coutTransfert) {\n\t}", "private void visualizarm(){\r\n switch(this.opc){\r\n case 1:\r\n System.out.printf(\"0\\t1\\t2\\t3\\t4\\t\\t\\t\\t\"+min+\":\"+seg+\"\\n\");\r\n System.out.printf(\"-----------------------------------------------------\\n\");\r\n for(int i=0;i<2;i++){\r\n for(int j=0;j<5;j++){\r\n System.out.printf(\"%s\\t\",mfacil[i][j]);\r\n }\r\n System.out.printf(\"|\"+i+\"\\n\");\r\n }\r\n break;\r\n case 2:\r\n System.out.printf(\"0\\t1\\t2\\t3\\t4\\t5\\n\");\r\n System.out.printf(\"-----------------------------------------------------\\n\");\r\n for(int i=0;i<3;i++){\r\n for(int j=0;j<6;j++){\r\n System.out.printf(\"%s\\t\",mmedio[i][j]);\r\n }\r\n System.out.printf(\"|\"+i+\"\\n\");\r\n }\r\n break;\r\n case 3:\r\n System.out.printf(\"0\\t1\\t2\\t3\\t4\\t5\\t6\\n\");\r\n System.out.printf(\"------------------------------------------------------------------------\\n\");\r\n for(int i=0;i<4;i++){\r\n for(int j=0;j<7;j++){\r\n System.out.printf(\"%s\\t\",mdificil[i][j]);\r\n }\r\n System.out.printf(\"|\"+i+\"\\n\");\r\n }\r\n break;\r\n }\r\n }", "public void display()\n\t{\n\t\tSystem.out.println(\"Bike No.\\t\"+\n\t\t\t\t\"Phone no.\\t\"+\n\t\t\t\t\"Name\\t\"+\n\t\t\t\t\"No. of days\\t\"+\n\t\t\t\t\"Charge\");\n\t\tSystem.out.println(bno+\n\t\t\t\t\"\\t\"+phno+\n\t\t\t\t\"\\t\"+name+\n\t\t\t\t\"\\t\"+days+\n\t\t\t\t\"\\t\"+charge);\n\t}", "@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}", "void dump() {\n\t\tSystem.out.print(\"I am: \" + (territoryID));\n\t\tSystem.out.print(\"\\tNeighbour of:\");\n\n\t}", "public void meny(){\r\n System.out.println(\"\\nMeny\");\r\n System.out.println(\"1. Legg til ny person\");\r\n System.out.println(\"2. Kjop ny DVD\");\r\n System.out.println(\"3. Laan bort DVD\");\r\n System.out.println(\"4. Vis info om valgt person\");\r\n System.out.println(\"5. Vis oversikt over personer\");\r\n System.out.println(\"6. Returner DVD\");\r\n System.out.println(\"7. Avslutt\");\r\n }", "public void display() {\n \t\tSystem.out.printf(\"|%6s \", String.valueOf(idNumber));\n\t\tSystem.out.printf(\"|%13s |\", name);\n\t\tSystem.out.printf(\"%10s |\", quantity);\n\t\tSystem.out.printf(\"%8.2f |\", price);\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.println();\n }", "public void print_dev() {\n\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\t\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName\r\n\t\t\t\t\t\t\t\t+\t\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)\r\n\t\t\t\t\t\t\t\t+\t\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Function Limit Count\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Eat : \"+TMGCSYS.tmgcLimitEat+\", Sleep : \"+TMGCSYS.tmgcLimitSleep\r\n\t\t\t\t\t\t\t\t+\t\", Walk : \"+TMGCSYS.tmgcLimitWalk+\", Study : \"+TMGCSYS.tmgcLimitStudy+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Ability\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" STR : \"+TMGCSYS.tmgcSTR+\", INT : \"+TMGCSYS.tmgcINT\r\n\t\t\t\t\t\t\t\t+\t\", DEB : \"+TMGCSYS.tmgcDEB+\", HET : \"+TMGCSYS.tmgcHET+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Job : \"+TMGCSYS.tmgc2ndJob\r\n\t\t\t\t\t\t\t\t);\r\n\t}", "public static void main(String[] args) {\n\t\tString ausgang = \"wörter starten mit großbuchstaben. pause nicht\";\r\n\t\tString newausgang = \"\";\r\n\r\n\t\tfor (int i = 0; i < ausgang.length(); i++) {\r\n\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tnewausgang = newausgang + Character.toUpperCase(ausgang.charAt(i));\r\n\r\n\t\t\t} else if (ausgang.charAt(i - 1) == ' ') {\r\n\t\t\t\tnewausgang = newausgang + Character.toUpperCase(ausgang.charAt(i));\r\n\t\t\t} else {\r\n\t\t\t\tnewausgang = newausgang + ausgang.charAt(i);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// normal dazu geben\r\n\t\t}\r\n\t\tSystem.out.println(ausgang);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(newausgang);\r\n\r\n\t}", "@Override\r\n public void affiche() {\r\n System.out.print(\"Mage, pdmana : \" + getPtMana() + \", \");\r\n super.affiche();\r\n }", "@Override\n\tpublic void attaquer() {\n\t\tSystem.out.println(\"Je suis \" + this.nom + \", j'ai \" + this.age + \" ans et je cueille le gui !\");\n\t}", "public void printOL() {\n\t\tString format = \"%-30s %30s %n\";\n\t\tSystem.out.format(format,\"Item Name:\",this.item.getName());\n\t\tSystem.out.format(format,\"Quantity:\",this.quantity);\n\t\tSystem.out.format(format,\"Supplier:\",this.supplierName);\n\t\t\n\t}", "public void display()\r\n\t{\r\n\t\tSystem.out.println(\"Dollar: $\"+getAmount());\r\n\t\tSystem.out.println(\"Rupiah: Rp.\"+dollarTorp());\r\n\t}", "public void setmostrar(){\n System.out.println(\"¿Qué deseas hacer?\");\n System.out.println(\"i=incrementar\");\n System.out.println(\"d=decrementar\");\n System.out.println(\"s=salir\");\n }" ]
[ "0.6827882", "0.6735769", "0.66416395", "0.6624496", "0.66228044", "0.6571013", "0.655515", "0.6547246", "0.6546021", "0.6541079", "0.6512355", "0.64969414", "0.6484417", "0.64707726", "0.6470409", "0.64695764", "0.6406959", "0.6390783", "0.63844645", "0.6377049", "0.6367782", "0.63629377", "0.6349565", "0.634275", "0.6325379", "0.6317098", "0.6306661", "0.6297934", "0.62829614", "0.62626296", "0.62534046", "0.6252634", "0.6245291", "0.62365025", "0.6234054", "0.6231758", "0.62289464", "0.62248653", "0.62199134", "0.6198996", "0.61855596", "0.6185409", "0.61809015", "0.6176821", "0.61752415", "0.6174737", "0.6174241", "0.61621064", "0.61559016", "0.61541784", "0.6151919", "0.6145802", "0.6138852", "0.6138656", "0.6132022", "0.6121413", "0.6116549", "0.61005116", "0.6096582", "0.6092435", "0.6090664", "0.6089694", "0.6086593", "0.6084305", "0.60788774", "0.60713625", "0.6061961", "0.60565686", "0.60549176", "0.60542077", "0.60539585", "0.6046825", "0.6042303", "0.60379326", "0.6037769", "0.6034508", "0.6020304", "0.60159343", "0.60112554", "0.60096043", "0.60063654", "0.599736", "0.59821993", "0.5980506", "0.59758186", "0.59747696", "0.5973297", "0.59728223", "0.5971523", "0.5971453", "0.5969706", "0.5965857", "0.5962081", "0.59531075", "0.5952172", "0.5950637", "0.5948893", "0.5946211", "0.5941301", "0.5939542", "0.5934846" ]
0.0
-1
TODO Autogenerated method stub
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { try { list_contacts = new ArrayList<table_interaction_contacts>(); cmd_view_container = inflater.inflate(R.layout.fragment_interaction_dialogue, null); // -- cmd_listview_interaction_dialogue = (UIListView) cmd_view_container.findViewById(R.id.fragment_interaction_dialogue_listview_container); dialogue_listview_adapter = new adapter_fragment_interaction_dialogue_listview(getActivity()); cmd_listview_interaction_dialogue.setAdapter(dialogue_listview_adapter); cmd_listview_interaction_dialogue.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> arg0, View arg1, int index, long arg3) { t_interaction_contacts = (table_interaction_contacts) dialogue_listview_adapter.getItem(index); Intent intent = new Intent(); Bundle bundle = new Bundle(); bundle.putSerializable("chat_receiver", t_interaction_contacts); intent.putExtra("chat_receiver", bundle); intent.setClass(getActivity(), ActivityInteractionChatB.class); startActivity(intent); } }); cmd_listview_interaction_dialogue.setonRefreshListener(new OnRefreshListener() {// 下拉刷新 @Override public void onRefresh() { new AsyncTask<Void, Void, Void>() { protected Void doInBackground(Void... params) { try { f_action_refesh_data();//查询本地数据 } catch (Exception e) { e.printStackTrace(); } return null; } protected void onPostExecute(Void result) { System.out.println("onPostExecute..."); dialogue_listview_adapter.notifyDataSetChanged(); cmd_listview_interaction_dialogue.onRefreshComplete(); } }.execute(null); } }); } catch (Exception e) { // TODO: handle exception } f_action_refesh_data();//查询本地数据 return cmd_view_container; }
{ "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 onStart() { super.onStart(); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onDestroy() { super.onDestroy(); }
{ "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
Returns the authentication log for a user A log entry is recorded everytime a user requests a new token. Standard pagination available. Permissions Needed: SECURITY_ADMIN
public PageResourceLocationLogResource getUserLocationLog(Integer userId, Integer size, Integer page, String order) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/security/country-log"; // query params List<Pair> localVarQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "user_id", userId)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "size", size)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "order", order)); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2_client_credentials_grant", "oauth2_password_grant" }; GenericType<PageResourceLocationLogResource> localVarReturnType = new GenericType<PageResourceLocationLogResource>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract ArrayList<Log> readUserLogs(User user, int maxEntries);", "@GetMapping(\"currentUser\")\n public BetterResponse getUserLastSevenLoginLogs() {\n String currentUsername = SecurityContextHolder.getContext().getAuthentication().getName();\n List<LoginLog> userLastSevenLoginLogs = this.loginLogService.findUserLastSevenLoginLogs(currentUsername);\n return new BetterResponse().data(userLastSevenLoginLogs);\n }", "public List<IUserLog> getUserLog() {\n return userLog;\n }", "@Override\r\n\tpublic List<Admin> viewlogs() {\n\t\treturn user.viewlogs();\r\n\t}", "public static String getAuthorizationLoguin() {\n\t\treturn getServer()+\"wsagenda/v1/usuarios/login\";\n\t}", "public String getCurrentLoggedUserinfo() {\n\n\t\tClient client = Client.create();\n\n\t\tWebResource webResource = client.resource(\"http://localhost:8083/UserAccounts/UserAccountService/User_logins\");\n\n\t\tClientResponse response = webResource.accept(\"application/json\").get(ClientResponse.class);\n\n\t\tString output = response.getEntity(String.class);\n\n\t\tSystem.out.println(output);\n\n\t\treturn output;\n\n\t}", "public List<SignLog> getAll(String userId) {\n List<SignLog> signLogs = new ArrayList<SignLog>();\n\n Cursor cursor = database.query(DatabaseSQLiteHelper.TABLE_SIGN_LOGS, null,\n DatabaseSQLiteHelper.LOGS_USER_ID + \" = \" + userId, null, null, null, null);\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n SignLog log = cursorToItem(cursor);\n signLogs.add(log);\n\n cursor.moveToNext();\n }\n cursor.close();\n return signLogs;\n }", "private Collection<LogEntry> getLogEntries(UUID id, boolean isOwner) throws UnAuthorizedException {\r\n Collection<LogEntry> entries = dao.getAllLogs(id);\r\n if (role.hasAccess(Resource.LOG, READ_ALL)\r\n || (role.hasAccess(Resource.LOG, READ_MINE) && isOwner)) {\r\n return entries;\r\n } else {\r\n throw new UnAuthorizedException();\r\n }\r\n }", "public WebAccessLog getAccessLog(WebContainer container);", "public void setUserLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n userLog.add(new UserLog(rs.getInt(\"userID\"),\n rs.getInt(2),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic List<Logbook> viewRecords() {\n\t\treturn user.viewRecords();\r\n\t}", "public ArrayList<String> getUserLog(String username) {\n \t\treturn this.getUserByName(username).getActivities();\n \t}", "private void getAdminLogs(WebSocketConnector aConnector, Token aToken) {\n\t\tif (mService == null) {\n\t\t\tmService = new AdminPlugInService(NS_ADMIN, mNumberOfDays, getServer());\n\t\t}\n\n\t\tif (mLog.isDebugEnabled()) {\n\t\t\tmLog.debug(\"Processing 'getAdminLogs'...\");\n\t\t}\n\n\t\tgetServer().sendToken(aConnector, mService.getAdminLogs(aConnector, aToken));\n\t}", "public static List<LogEntry> getAllForUser ( final String user ) {\n return getWhere( createCriterionList(\n Restrictions.or( createCriterion( \"primaryUser\", user ), createCriterion( \"secondaryUser\", user ) ) ) );\n }", "public List<LineaDeLog> getLog(){\n\t\treturn new ArrayList<LineaDeLog>(logDao.list());\r\n\t}", "public Collection<LogEntry> getFleetLogEntries(Fleet fleet) throws UnAuthorizedException {\r\n boolean isOwner = fleet.getOwner().equals(user);\r\n return getLogEntries(fleet.getUuid(), isOwner);\r\n }", "List<TimeLog> findTimelog(String username);", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<User> getUserLastLogin() {\n\t\t\n\t\tString url = \"http://localhost:8081/fundoouser/showlastlogin\";\n\t\t\n\t\tResponse userResponse = restTemplate.getForObject(url, Response.class);\n\t\t\n\t\tList<User> userList = (List<User>) userResponse.getData(); \n \n\t\treturn userList;\n\t}", "@Override\n\tpublic List<boardLIstDTO> myLogs(String user_id) throws Exception {\n\t\treturn sqlSession.selectList(namespace+\".myLogs\", user_id);\n\t}", "@Override\n\tpublic List<AccessLog> list() throws Exception {\n\t\treturn mapper.list();\n\t}", "long getLoginAt();", "private void logUser() {\n }", "public Cursor getAuth()\r\n {\r\n String selectQuery = \"SELECT logname, pin FROM \" + TABLE_ACCESS;\r\n SQLiteDatabase db = this.getReadableDatabase();\r\n Cursor cursor = db.rawQuery(selectQuery, null);\r\n return cursor;\r\n }", "ArrayList<ArrayList<String>> getAllLogs() {\r\n return allLogs;\r\n }", "public User getUserLogged() {\n return userLogged;\n }", "public List<Account> getListOfLoggedUsers() {\n\t\tList<Account> loggedUsers = new ArrayList<>();\n\t\tloggedUsers = adminDao.getLoggedUsers();\n\n\t\tif (loggedUsers == null) {\n\t\t\tSystem.out.println(\"There is no logged users currently!\\n\");\n\t\t\tAdminMenu.getAdminMenu();\n\t\t}\n\t\treturn loggedUsers;\n\t}", "public static List<LogEntry> getAllByDates ( final String user, final String startDate, final String endDate ) {\n // Parse the start string for year, month, and day.\n final String[] startDateArray = startDate.split( \"-\" );\n final int startYear = Integer.parseInt( startDateArray[0] );\n final int startMonth = Integer.parseInt( startDateArray[1] );\n final int startDay = Integer.parseInt( startDateArray[2] );\n\n // Parse the end string for year, month, and day.\n final String[] endDateArray = endDate.split( \"-\" );\n final int endYear = Integer.parseInt( endDateArray[0] );\n final int endMonth = Integer.parseInt( endDateArray[1] );\n final int endDay = Integer.parseInt( endDateArray[2] );\n\n // Get calendar instances for start and end dates.\n final Calendar start = Calendar.getInstance();\n start.clear();\n final Calendar end = Calendar.getInstance();\n end.clear();\n\n // Set their values to the corresponding start and end date.\n start.set( startYear, startMonth, startDay );\n end.set( endYear, endMonth, endDay );\n\n // Check if the start date happens after the end date.\n if ( start.compareTo( end ) > 0 ) {\n System.out.println( \"Start is after End.\" );\n // Start is after end, return empty list.\n return new ArrayList<LogEntry>();\n }\n\n // Add 1 day to the end date. EXCLUSIVE boundary.\n end.add( Calendar.DATE, 1 );\n\n\n // Get all the log entries for the currently logged in users.\n final List<LogEntry> all = LoggerUtil.getAllForUser( user );\n // Create a new list to return.\n final List<LogEntry> dateEntries = new ArrayList<LogEntry>();\n\n // Compare the dates of the entries and the given function parameters.\n for ( int i = 0; i < all.size(); i++ ) {\n // The current log entry being looked at in the all list.\n final LogEntry e = all.get( i );\n\n // Log entry's Calendar object.\n final Calendar eTime = e.getTime();\n // If eTime is after (or equal to) the start date and before the end\n // date, add it to the return list.\n if ( eTime.compareTo( start ) >= 0 && eTime.compareTo( end ) < 0 ) {\n dateEntries.add( e );\n }\n }\n // Return the list.\n return dateEntries;\n }", "protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ }", "@Override\r\n\tpublic List<UserCredential> viewAllEmployees(String authToken) throws ManualException{\r\n\t\tfinal\tSession session=sessionFactory.openSession();\r\n\t\tList<UserCredential> userlist =null;\r\n\r\n\t\t/* check for authToken of admin */\r\n\t\tsession.beginTransaction();\r\n\t\t\r\n\t\ttry{\r\n\t\t\tAuthTable authtable=session.get(AuthTable.class, authToken);\r\n\t\n\t\t\tUser user = authtable.getUser();\r\n\t\t\tif(user.getUsertype().equals(\"Admin\")){\r\n\t\t\t\tString hql=\"from user\";\r\n\t\t\t\tQuery q=session.createQuery(hql);\r\n\t\t\t\tuserlist=(List)q.list();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tManualException ex = new ManualException(\"user.list.empty\",env.getProperty(\"user.list.empty\"));\r\n\t\t\tuserlist=null;\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tsession.close();\r\n\t\t\treturn userlist;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic PageDataList<AccountLogModel> accountLogList(int pageNumber,\r\n\t\t\tint pageSize,AccountLogModel model) {\n\t\tString strSql = \" select u.real_name,b.sex,r.total,r.use_money,r.no_use_money,r.collection,r.type,r.money, \" +\r\n\t\t\t\t\" r.add_time,r.remark from rd_account_log r join rd_user u on u.user_id = r.user_id \" +\r\n\t\t\t\t\" left join rd_user_cache b on u.user_id = b.user_id where 1=1\";\r\n\t\tif (!StringUtil.isBlank(model.getSearchName())) {\r\n\t\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n\t \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<AccountLogModel> pageDataList_ = new PageDataList<AccountLogModel>();\r\n List<AccountLogModel> cpmList = new ArrayList<AccountLogModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tAccountLogModel log = new AccountLogModel();\r\n\t\t\tlog.setId(i);\r\n\t\t\tlog.setCustomerName(o[0]==null?\"\":o[0].toString());\r\n\t\t\tlog.setSex(o[1]==null?0:o[1]==null?0:((Boolean)o[1]?1:0));\r\n\t\t\tlog.setAccount(o[2]==null?0:Double.parseDouble(o[2].toString()));\r\n\t\t\tlog.setUseMoney(o[3]==null?0:Double.parseDouble(o[3].toString()));\r\n\t\t\tlog.setFreezeMoney(o[4]==null?0:Double.parseDouble(o[4].toString()));\r\n\t\t\tlog.setCollection(o[5]==null?0:Double.parseDouble(o[5].toString()));\r\n\t\t\tlog.setCashUseType(o[6]==null?\"\":o[6].toString());\r\n\t\t\tlog.setOperMoney(o[7]==null?0:Double.parseDouble(o[7].toString()));\r\n\t\t\tlog.setOperTime(o[8]==null?new Date():(Date)o[8]);\r\n\t\t\tlog.setRemark(o[9]==null?\"\":o[9].toString());\r\n\t\t\tcpmList.add(log);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "@Override\n public JSONObject viewSalesCallLogByManager(String username) {\n return in_salescalllogdao.viewSalesCallLogByManager(username);\n }", "@Test\n public void getUserAccessesTest() throws ApiException {\n String userId = null;\n String scope = null;\n String from = null;\n String to = null;\n Integer limit = null;\n LoginResponse response = api.getUserAccesses(userId, scope, from, to, limit);\n\n // TODO: test validations\n }", "public User getLoggedUser();", "@Override\n protected void append(LoggingEvent event) {\n if (event.getMessage() instanceof WrsAccessLogEvent) {\n WrsAccessLogEvent wrsLogEvent = (WrsAccessLogEvent) event.getMessage();\n\n try {\n HttpServletRequest request = wrsLogEvent.getRequest();\n if (request != null) {\n String pageHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_PAGEHASH));\n String requestHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_REQUESTHASH));\n String sessionId = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_SESSION_ID));\n String requestUrl = request.getRequestURL().toString();\n String reqQuery = request.getQueryString();\n requestUrl += (reqQuery != null ? \"?\" + reqQuery : \"\");\n if (requestUrl.length()> 2000)\n requestUrl = requestUrl.substring(0, 2000);\n String bindingSetName = wrsLogEvent.getBindingSetName();\n if (bindingSetName != null && bindingSetName.length()> 255)\n bindingSetName = bindingSetName.substring(0, 255);\n String requestXML = wrsLogEvent.getRequestDoc()!=null ? Utils.serializeElement(wrsLogEvent.getRequestDoc()) : null;\n\n // log access\n if(AccessSqlLogger.getInstance().isEnabled()) {\n final AccessSqlLogger.LogRecord recordAccess = new AccessSqlLogger.LogRecord(\n sessionId\n , requestUrl\n , pageHash\n , requestHash\n , bindingSetName\n , requestXML\n , wrsLogEvent.getRowCount()\n , wrsLogEvent.getValueCount()\n , wrsLogEvent.getRsStartTime()\n , wrsLogEvent.getRsEndTime()\n , wrsLogEvent.getWriteDuration()\n , wrsLogEvent.getExecuteDuration()\n );\n AccessSqlLogger.getInstance().process(recordAccess);\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public CustomEmployee getLoggedUser() {\n return loggedUser;\n }", "public java.util.List<MetadataEntry> getAuthList() {\n return auth_;\n }", "private static void logResult(Tokens tokens) {\n\t\tLog.i(\"Got access token: \"+ tokens.getAccessToken());\n\t\tLog.i(\"Got refresh token: \"+ tokens.getRefreshToken());\n\t\tLog.i(\"Got token type: \"+ tokens.getTokenType());\n\t\tLog.i(\"Got expires in: \"+ tokens.getExpiresIn());\n\t}", "public Map<String, String> listUserData(String login, int limit, int offset);", "public User getLoggedUser(){\n\t\treturn loggedUser;\n\t}", "public TicketLog getLogByPosition(int position) {\n\t\tint previousPosition = logList.size()-position;\n\t\treturn logList.get(previousPosition);\n\t}", "public ArrayList<LogBean> queryLogByDate(int currentPage, Date start,\n\t\t\tDate end, int pageSize) {\n\t\treturn ld.getLogByDate(currentPage,start,end,pageSize);\n\t}", "public AuthInfo[] getAuthInfoList();", "public com.sybase.collections.GenericList<com.sybase.persistence.LogRecord> getLogRecords()\n {\n return ru.terralink.mvideo.sap.LogRecordImpl.findByEntity(\"Orders\", keyToString());\n }", "public java.util.List<MetadataEntry> getAuthList() {\n if (authBuilder_ == null) {\n return java.util.Collections.unmodifiableList(auth_);\n } else {\n return authBuilder_.getMessageList();\n }\n }", "@SuppressWarnings ( \"unchecked\" )\n public static List<LogEntry> getLogEntries () {\n return (List<LogEntry>) getAll( LogEntry.class );\n }", "public ArrayList<LogBean> getAllLogs(int currentPage, int pageSize) {\n\t\treturn ld.queryAllLogs(currentPage, pageSize);\n\t}", "@Override\r\n\tpublic Log getLog() {\n\t\treturn log;\r\n\t}", "public interface UserLogService {\n\n public void logActivity(UserLog userLog);\n\n public List<UserLog> getAllUserLog(String username);\n\n public List<UserLog> getAllFilteredUserLog();\n}", "@Override\n\tpublic String[] getLog() {\n\t\tString[] logs = new String[this.log.size()];\n\t\treturn this.log.toArray(logs);\n\t}", "public String getAuthStat()\n\t{\n\t\treturn authStat;\n\t}", "private boolean _credList() \n {\n\n //File file = new File(loginFileLocation);\n File file = this._loginReader.getFile();\n String fileLocation = (file == null) ? null : file.getAbsolutePath();\n \n if (!file.canRead())\n {\n this._logger.info(\"No credentials exist.\");\n //this._logger.severe(\"Login Error! Please acquire credentials \"\n // + \"with login utility.\");\n System.exit(-1);\n }\n \n String format1 = \"EEE, d MMM yyyy HH:mm:ss Z\";\n String format2 = \"yyyy-MM-dd'T'HH:mm:ss.SSSZ\";\n DateFormat dateFormat = new SimpleDateFormat(format2);\n \n Date timeStamp = new Date(file.lastModified());\n this._logger.info(Constants.COPYRIGHT);\n this._logger.info(Constants.CLIENTVERSIONSTR);\n this._logger.info(Constants.APIVERSIONSTR);\n this._logger.info(\"\"); // empty line\n this._logger.info(\"Credential cache file: \" + fileLocation);\n this._logger.info(\"File modified on: \" + timeStamp.toString());\n String defUser = this._loginReader.getUsername();\n if (defUser != null)\n this._logger.info(\"Default principal: \" + defUser);\n else\n this._logger.info(\"No default principal specified.\");\n \n String[] sgroups = this._loginReader.getNamespaces();\n for (int i = 0; i < sgroups.length; ++i)\n {\n String ns = sgroups[i];\n if (!ns.equals(LoginFile.DEFAULT_NAMESPACE))\n {\n String user = this._loginReader.getUsername(ns, false);\n long expiry = this._loginReader.getExpiry(ns);\n if (user != null)\n {\n String line = \"Principal for group '\"+ns+\"' : \" + user;\n if (expiry != Constants.NO_EXPIRATION)\n {\n String date = dateFormat.format(new Date(expiry));\n if (expiry < System.currentTimeMillis())\n {\n line = line + \" (expired \"+date+\")\"; \n }\n else\n {\n line = line + \" (expires \"+date+\")\"; \n }\n }\n this._logger.info(line);\n }\n }\n }\n\n return true;\n }", "@Override\n public Class<AuthenticationAccessTokensRecord> getRecordType() {\n return AuthenticationAccessTokensRecord.class;\n }", "public List<String> getLogins() {\n List<String> logins = new ArrayList<>();\n for (Commissioner commissioner: Database.getCommissionerSet()) {\n logins.add(commissioner.getLogin());\n }\n return logins;\n }", "public List<UserLog> findUserLogByUserId(String username,long UserId) {\n \n\t LOGGER.info(\"Found \" + username + \" results.\");\n\t CriteriaBuilder cb = em.getCriteriaBuilder();\n\n // the actual search query that returns one page of results\n CriteriaQuery<UserLog> searchQuery = cb.createQuery(UserLog.class);\n Root<UserLog> searchRoot = searchQuery.from(UserLog.class);\n searchQuery.select(searchRoot);\n searchQuery.where(getUserLogWhereCondition(cb, UserId, searchRoot));\n\n List<Order> orderList = new ArrayList<Order>();\n orderList.add(cb.desc(searchRoot.get(\"log_time\")));\n searchQuery.orderBy(orderList);\n\n TypedQuery<UserLog> filterQuery = em.createQuery(searchQuery);\n LOGGER.info(\"Found \" + UserId + \" results.\");\n return filterQuery.getResultList();\n }", "public Request<List<LogStream>> list() {\n String url = baseUrl\n .newBuilder()\n .addPathSegments(LOG_STREAMS_PATH)\n .build()\n .toString();\n\n CustomRequest<List<LogStream>> request = new CustomRequest<>(client, url, \"GET\", new TypeReference<List<LogStream>>() {\n });\n request.addHeader(AUTHORIZATION_HEADER, \"Bearer \" + apiToken);\n return request;\n }", "private JList getLogList() {\n\t\tif (logList == null) {\n\t\t\tlogList = new JList();\n\t\t\tlogList.setBounds(new Rectangle(124, 313, 300, 100));\n\t\t}\n\t\treturn logList;\n\t}", "public List<User> allUserRecords() {\n\t\tSystem.out.println(\"Calling getAllUserRecords() Method To Fetch Users Record\");\t\n\t\tList<User> userList = userDAO.listUser();\n\t\treturn userList;\n\t}", "@Override\n\tpublic PageBean findAllLoginLogPage(PageBean page) {\n\t\treturn null;\n\t}", "@Override\n @Transactional\n public List<AuditLog> logs() {\n\tCompany company = this.authHelper.getAuth().getCompany();\n\tLong companyID = company == null ? null : company.getId();\n\tList<AuditLog> logs = this.companyDAO.logs(companyID);\n\tfor (AuditLog log : logs) {\n\t log.setAuditAction(AuditAction.of(log.getAction()));\n\t}\n\treturn logs;\n }", "public org.eclipse.stardust.engine.api.query.LogEntries\n getAllLogEntries(org.eclipse.stardust.engine.api.query.LogEntryQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;", "public DefaultListModel getLog()\r\n\t{\r\n\t\treturn log;\r\n\t}", "public String getUserReport(String username)\r\n\t{\r\n\t\tArrayBasedList<LogEntry> subList = new ArrayBasedList<LogEntry>();\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t \tLogEntry log = list.get(i);\r\n\t \tif (log.getName().equals(username)) {\r\n\t \t\tsubList.add(log);\r\n\t \t}\r\n\t }\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t sb.append(\"Activity Report for \");\r\n\t sb.append(username);\r\n\t if (subList.size() == 0) {\t\r\n\t\t sb.append(\"[\\n\");\r\n\t \tsb.append(\" No activity was recorded.\\n]\");\r\n\t\t return sb.toString();\r\n\t }\r\n\t SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy hh:mm:ssaa\", Locale.US);\r\n\t subList.sort();\r\n\t sb.append(\"[\\r\\n\");\r\n\t for (int i = 0; i < subList.size(); i++) {\r\n\t \tsb.append(\" \");\r\n\t \tsb.append(dateFormat.format(subList.get(i).getTime()));\r\n\t \tsb.append(\" - \");\r\n\t \tsb.append(subList.get(i).getActivity());\r\n\t \tsb.append(\"\\r\\n\");\r\n\t }\r\n\t sb.append(\"]\");\r\n\t return sb.toString();\r\n\t}", "public String getLog();", "public Collection<LogEntry> getVehicleLogEntries(Vehicle vehicle) throws UnAuthorizedException {\r\n boolean isOwner = vehicle.getFleet().getOwner().equals(user);\r\n return getLogEntries(vehicle.getUuid(), isOwner);\r\n }", "public ArrayList<String> getLogStrings(){\n\n if (logStrings == null){\n createLogStrings();\n }\n return logStrings;\n }", "private AuthenticationSuccessHandler authenticationSuccessHandler() {\r\n return (HttpServletRequest request, HttpServletResponse response, Authentication auth) -> {\r\n auditLogger.logAccess((String) auth.getPrincipal(),\r\n AuditLogger.Areas.MGMT_UI,\r\n AuditLogger.Ops.LOGIN, null);\r\n prepareResponse(response, auth, HttpStatus.OK, null);\r\n };\r\n }", "private String accessTokenForLog() {\n return StringUtils.isEmpty(accessToken) ? \"null/empty\" : \"present\";\n }", "@Override\r\n\tpublic Integer getActivity_logins_cnt() {\n\t\treturn super.getActivity_logins_cnt();\r\n\t}", "public PagingData loadAdminLogList(String id, DataTableParamter rdtp) {\n\t\tString hql=\"from TadminLog where adminId= ? order by id desc\";\n\t\n\t\t return adminLogDao.findPage(hql, rdtp.iDisplayStart, rdtp.iDisplayLength,id);\n\t}", "public synchronized String getHistory() {\r\n\t\tString log = new String();\r\n\t\ttry {\r\n\t\t\tFile logFile = new File(\"serverlogs.log\");\r\n\t\t\tBufferedReader logReader = new BufferedReader(new InputStreamReader(new FileInputStream(logFile)));\r\n\t\t\tString line;\r\n\t\t\twhile((line = logReader.readLine()) != null) {\r\n\t\t\t\tlog += (line + \"\\n\");\r\n\t\t\t}\r\n\t\t\tlogReader.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tgui.acknowledge(\"Error : logs are not available\");\r\n\t\t\tstop();\r\n\t\t}\r\n\t\tif(log.equals(\"\\n\")) {\r\n\t\t\tlog = new String();\r\n\t\t}\r\n\t\treturn log;\r\n\t}", "public List<BlockID> getLogList()\n {\n return logBlocks;\n }", "public static String getLoggedUser() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\treturn auth.getName();\n\t}", "public void viewLogs() {\n\t}", "public String getLastLogged()\n {\n return lastLogged;\n }", "@java.lang.Override\n public long getLoginAt() {\n return loginAt_;\n }", "@RequestLine(\"GET /accounts\")\n AccountList getAccountsListOfUser();", "public String getAccountLogId() {\n return accountLogId;\n }", "public ArrayOfLogModel getLogs() {\n return localLogs;\n }", "public ArrayOfLogModel getLogs() {\n return localLogs;\n }", "public int logs()\n {\n return m_Log.size();\n }", "public LogService getLog() {\n\treturn log;\n }", "@Override\r\n\tpublic Integer getApp_activity_logins_cnt() {\n\t\treturn super.getApp_activity_logins_cnt();\r\n\t}", "public int getLoggedInUsers();", "public String getLogDetails() {\r\n return logDetails;\r\n }", "private EndUser getCurrentLoggedUserDetails() {\n\n\t\tEndUser endUser = endUserDAOImpl.findByUsername(getCurrentLoggedUserName()).getSingleResult();\n\n\t\treturn endUser;\n\n\t}", "@java.lang.Override\n public long getLoginAt() {\n return loginAt_;\n }", "public static UserAccount getLoginedUser(HttpSession session) {\n UserAccount loginedUser = (UserAccount) session.getAttribute(\"loginedUser\");\n return loginedUser;\n }", "public ArrayList<SessionLog> readLogFile(){\n ArrayList<SessionLog> sessionLogList = new ArrayList<>();\n try {\n FileInputStream inputStream = getApplicationContext().openFileInput(logFileName);\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n\n while(true){\n String line = reader.readLine();\n if (line != null){\n String[] data = line.split(\",\");\n Log.i(LOG_TAG, \" - \"+ Arrays.toString(data));\n SessionLog item = new SessionLog(\n Long.parseLong(data[0]),\n new LatLng(Double.parseDouble(data[1]), Double.parseDouble(data[2])),\n data[3].equals(\"true\")\n );\n sessionLogList.add(item);\n }\n else{\n Log.i(LOG_TAG, \"Reached end of file\");\n break; // No more lines to read\n }\n }\n }\n catch (Exception e){\n Log.i(LOG_TAG, \"Problem reading from current session log file...\");\n e.printStackTrace();\n }\n return sessionLogList;\n }", "public Date getLastlogintime() {\n return lastlogintime;\n }", "public abstract List<String> getCachedLogs(String readerName);", "LoggedUser getLoggedUser();", "public LogReader.Log nextLog(BufferedReader dataIS) throws IOException {\r\n\r\n ServletLog log = new ServletLog();\r\n boolean haveLog = false;\r\n\r\n while (true) {\r\n dataIS.mark(20 * 1000); // track where we are\r\n String line = dataIS.readLine();\r\n if (line == null) {\r\n return haveLog ? log : null;\r\n }\r\n // if (count++ < limit) System.out.println(\"\\n\" + line); nTest reqe\r\n\r\n try {\r\n Matcher m = commonPattern.matcher(line);\r\n if (m.matches()) {\r\n if (haveLog) { // have a log, next one matches, proceed\r\n try {\r\n dataIS.reset();\r\n return log;\r\n\r\n } catch (Throwable t) {\r\n System.out.println(\"Cant reset \" + line); \r\n }\r\n }\r\n haveLog = true; // next match will return the current log\r\n\r\n log.date = convertDate( m.group(1));\r\n log.reqTime = parseLong(m.group(2));\r\n log.reqSeq = parseLong(m.group(3));\r\n log.level = m.group(4).intern();\r\n log.where = m.group(5);\r\n\r\n String rest = m.group(6);\r\n if (rest.contains(\"Request Completed\")) {\r\n int pos = rest.indexOf(\"Request Completed\");\r\n Matcher m2 = donePattern.matcher(rest.substring(pos));\r\n if (m2.matches()) {\r\n log.returnCode = parse(m2.group(1));\r\n log.sizeBytes = parseLong(m2.group(2));\r\n log.msecs = parseLong(m2.group(3));\r\n log.isDone = true;\r\n\r\n } else {\r\n System.out.println(\"Cant parse donePattern= \" + rest);\r\n System.out.println(\" line= \" + line);\r\n log.addExtra(rest);\r\n }\r\n\r\n } else if (rest.contains(\"Remote host\")) {\r\n int pos = rest.indexOf(\"Remote host\");\r\n Matcher m2 = startPattern.matcher(rest.substring(pos));\r\n if (m2.matches()) {\r\n log.ip = m2.group(1);\r\n log.verb = m2.group(2).intern();\r\n log.path = EscapeStrings.urlDecode(m2.group(3)); //old URLDecoder.decode(m2.group(3));\r\n if (m2.groupCount() > 4)\r\n log.http = m2.group(4).intern();\r\n log.isStart = true;\r\n\r\n } else {\r\n System.out.println(\"Cant parse startPattern= \" + rest);\r\n System.out.println(\" line= \" + line);\r\n log.addExtra(rest);\r\n }\r\n\r\n } else { // a non-start, non-done log\r\n log.addExtra(rest);\r\n }\r\n\r\n } else { // the true extra line\r\n //System.out.println(\"No match on \" + line);\r\n log.addExtra(line);\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"Cant parse \" + line);\r\n log.addExtra(line);\r\n }\r\n }\r\n\r\n }", "public String get_log(){\n }", "public Log log() {\n return _log;\n }", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public long getTimeLogged(){\r\n\t\treturn timeLogged;\r\n\t}", "public CallLog[] getCallLogs();", "public Log getLog(TopicAndPartition topicAndPartition) {\n return logs.get(topicAndPartition);\n }", "private final Log getLog() {\r\n return this.log;\r\n }", "private Log getLog() {\n if (controller != null) {\n log = controller.getLog();\n } \n return log ;\n }", "public Log getLog() {\r\n return this.delegate.getLog();\r\n }" ]
[ "0.6618937", "0.6282926", "0.6187635", "0.61078274", "0.5684853", "0.56839544", "0.5679615", "0.5672539", "0.5629886", "0.55847913", "0.55837095", "0.5563444", "0.5504786", "0.54444295", "0.5439984", "0.53914773", "0.5339999", "0.5251491", "0.5250323", "0.52486295", "0.52225566", "0.5220389", "0.5210007", "0.5187552", "0.51773095", "0.5172628", "0.5160483", "0.5148154", "0.510056", "0.50864476", "0.50838274", "0.5070612", "0.50698483", "0.5065613", "0.50580055", "0.5054303", "0.5049974", "0.5043852", "0.50433236", "0.502072", "0.50161743", "0.5010905", "0.50042444", "0.49967325", "0.49963242", "0.49864545", "0.4978249", "0.49755767", "0.49736264", "0.4971831", "0.4971059", "0.49501798", "0.49213743", "0.49110693", "0.4902739", "0.48907027", "0.48800725", "0.4878903", "0.48729455", "0.4871822", "0.48634467", "0.4852632", "0.48505825", "0.48278147", "0.48250586", "0.48178506", "0.48144776", "0.48084778", "0.48070768", "0.480655", "0.47933537", "0.47916597", "0.4779344", "0.47771236", "0.47762567", "0.47740546", "0.47734824", "0.4772015", "0.4772015", "0.4769224", "0.47667673", "0.4764385", "0.47620198", "0.47616082", "0.4760451", "0.4756736", "0.47530088", "0.47495598", "0.47456348", "0.47433725", "0.4738181", "0.47362968", "0.4734676", "0.47338837", "0.47259924", "0.4723665", "0.4721675", "0.471763", "0.47125244", "0.47120076", "0.47105908" ]
0.0
-1
Returns the authentication token details. Use /users endpoint for detailed user&39;s info Permissions Needed: SECURITY_ADMIN
public TokenDetailsResource getUserTokenDetails() throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/me"; // query params List<Pair> localVarQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2_client_credentials_grant", "oauth2_password_grant" }; GenericType<TokenDetailsResource> localVarReturnType = new GenericType<TokenDetailsResource>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserToken() {\n if (userinfo == null)\n return null;\n return userinfo.token;\n }", "public String userToken() {\n return userToken;\n }", "private static Tuple<Integer, String> getToken() {\n\t\tTuple<Integer, String> result = new Tuple<Integer, String>();\n\t\tresult = GETRequest(AUTH_URL, AUTH_HEADER, \"\", \"\");\n\t\treturn result;\n\t}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Authentication token (see `/auth` and `/configure`)\")\n\n public String getToken() {\n return token;\n }", "@ApiModelProperty(value = \"String that represents the authentication token. (For security reasons, this value is null except for a successful token creation response.)\")\n public String getToken() {\n return token;\n }", "public String getAccessToken();", "public String getSecurityToken()\r\n {\r\n return getAttribute(\"token\");\r\n }", "String getToken(String scope, String username, String password) throws AuthorizationException;", "public java.lang.String getAuthInfo() {\r\n return authInfo;\r\n }", "public String getAccessToken(){\n //return \"3be8b617e076b96b2b0fa6369b6c72ed84318d72\";\n return MobileiaAuth.getInstance(mContext).getCurrentUser().getAccessToken();\n }", "public String getAccessToken() {\n\t\t\n\t\tString access_token = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\taccess_token = securityContext.getTokenString();\n\t\t}\n\t\t\n\t\treturn access_token;\n\t}", "@Override\n public Object getCredentials() {\n return token;\n }", "public String getAuthToken() {\n\t\tString token = options.getProperty(\"auth-token\");\n\t\tif(token == null) {\n\t\t\ttoken = options.getProperty(\"Authentication-Token\");\n\t\t}\n\t\treturn trimedValue(token);\n\t}", "String getAccessToken();", "String getAccessToken();", "public String getToken()\n {\n return ssProxy.getToken();\n }", "@Override\n public User getUserInfo() {\n return User.AUTHORIZED_USER;\n }", "public String generateToken() {\n Authentication authentication = getAuthentication();\n if(authentication == null) {\n throw new AuthenticationCredentialsNotFoundException(\"No user is currently logged in.\");\n }\n return jwtUtil.generateJwtToken(authentication);\n }", "public String systemUserAuthToken() {\n if (systemUserAuthToken == null)\n systemUserAuthToken = generateTokenSystemUser(TEST_INIT_VALUES.adminEmail(), TEST_INIT_VALUES.password());\n return systemUserAuthToken;\n }", "public UserInfo getUserInfoByToken(String token) {\n LOGGER.debug(\"Start user info request to OAuth service\");\n\n try {\n HttpHeaders headers = new HttpHeaders();\n headers.setBearerAuth(token);\n HttpEntity<Object> applicationRequest = new HttpEntity<>(headers);\n return UserInfoBuilder.buildWithEnv(env,\n restTemplate\n .exchange(userInfoUrl,\n HttpMethod.GET,\n applicationRequest,\n JsonNode.class)\n .getBody());\n } catch (ResourceAccessException | HttpStatusCodeException e) {\n throw new AuthenticationServiceException(\"Error during request\", e);\n }\n }", "protected String getAuthInfo ()\n\t{\n\t\treturn authInfo;\n\t}", "public String getAccessToken() {\n return accessToken;\n }", "public String getAccessToken() {\n return accessToken;\n }", "public Guid getUserToken() {\n return localUserToken;\n }", "public Guid getUserToken() {\n return localUserToken;\n }", "public Guid getUserToken() {\n return localUserToken;\n }", "AuthenticationTokenInfo authenticationTokenInfo(String headerToken);", "public String getToken();", "public AccessToken getAccessToken() {\n return token;\n }", "protected synchronized String authenticated() throws JSONException {\n JSONObject principal = new JSONObject()\n .put(FIELD_USERNAME, USER)\n .put(FIELD_PASSWORD, PASSWORD);\n if (token == null){ //Avoid authentication in each call\n token =\n given()\n .basePath(\"/\")\n .contentType(ContentType.JSON)\n .body(principal.toString())\n .when()\n .post(LOGIN)\n .then()\n .statusCode(200)\n .extract()\n .header(HEADER_AUTHORIZATION);\n\n }\n return token;\n }", "public Pokemon.RequestEnvelop.AuthInfo.JWT getToken() {\n return token_;\n }", "public Pokemon.RequestEnvelop.AuthInfo.JWT getToken() {\n if (tokenBuilder_ == null) {\n return token_;\n } else {\n return tokenBuilder_.getMessage();\n }\n }", "@O2BearerToken\n @GET\n @Path(\"/token\")\n public Response bearerAuthorizedGet(@Context final SecurityContext c) {\n return Response.ok().build();\n }", "public static String getAccessToken() {\n return accessToken;\n }", "public String getToken() {\n return token.get();\n }", "public String getToken() {\n return instance.getToken();\n }", "public String getToken() {\n return instance.getToken();\n }", "public String getToken() {\n return instance.getToken();\n }", "public String getToken()\n {\n return token;\n }", "public static String getTeacherToken() {\n\n RestAssured.baseURI = \"https://cybertek-reservation-api-qa.herokuapp.com\";\n\n Response response = given().log().all().\n param(\"email\", \"teacherva5@gmail.com\").\n param(\"password\", \"maxpayne\").\n get(\"/sign\");\n response.then().log().all().\n assertThat().statusCode(200);\n\n return response.jsonPath().get(\"accessToken\");\n\n }", "private UsernamePasswordAuthenticationToken getAuthentication(String token) {\n\t\tif (token != null) {\n\t\t\tUserDetails user = new UserDetails(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic String getPassword() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic String getUsername() {\n\t\t\t\t\t// token is used as username for this example\n\t\t\t\t\treturn token;\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean isAccountNonExpired() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean isAccountNonLocked() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean isCredentialsNonExpired() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic boolean isEnabled() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t};\n\t\t\treturn new UsernamePasswordAuthenticationToken(user, null, user.getAuthorities());\n\t\t}\n\t\treturn null;\n\t}", "public String getAccessToken() {\n return accessToken;\n }", "protected String getAuthMethod() {\n return \"Token\" ;// TODO this.conf.getAuthMethod();\n }", "public OAuthTokenResponse getToken() {\n return token;\n }", "public String getAccessToken() {\n\t\treturn accessToken;\n\t}", "public String getAccessToken() {\n\t\treturn accessToken;\n\t}", "public static String getToken() {\n \treturn mToken;\n }", "public String getToken() {\n\n return this.token;\n }", "public String getToken() {\n return token_;\n }", "public String getToken() {\n return token_;\n }", "public String getToken() {\n return token_;\n }", "public String getAuthtoken() {\n return authtoken;\n }", "private String getCredentials() {\n String credentials = \"\";\n AccountManager accountManager = AccountManager.get(getContext());\n\n final Account availableAccounts[] = accountManager.getAccountsByType(AccountGeneral.ACCOUNT_TYPE);\n\n //there should be only one ERT account\n if(availableAccounts.length > 0) {\n Account account = availableAccounts[0];\n AccountManagerFuture<Bundle> future = accountManager.getAuthToken(account, AccountGeneral.AUTHTOKEN_TYPE_FULL_ACCESS, null, null, null, null);\n try {\n Bundle bundle = future.getResult();\n String accountName = bundle.getString(AccountManager.KEY_ACCOUNT_NAME);\n String token = bundle.getString(AccountManager.KEY_AUTHTOKEN);\n credentials = accountName + \":\" + token;\n } catch (OperationCanceledException | IOException | AuthenticatorException e) {\n Log.e(LOG_TAG, e.getMessage());\n }\n }\n return credentials;\n }", "public String getAccess_token() {\r\n\t\treturn access_token;\r\n\t}", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token;\n }", "public TokenInfo getInfo(String securityToken, RequestMetadata requestMetadata);", "public String getToken() {\r\n return token;\r\n }", "public String getToken() {\r\n return token;\r\n }", "public String getAccessToken () {\n\t\treturn this.accessToken;\n\t}", "public String getToken() {\n return this.token;\n }", "public AuthorizationToken retrieveToken(String token);", "String getToken(PortalControllerContext portalControllerContext);", "public String getToken() {\n return this.token;\n }", "public String getToken() {\n return this.token;\n }", "public String getAccessToken() {\n readLock.lock();\n try {\n return accessToken;\n } finally {\n readLock.unlock();\n }\n }", "@Override\n protected AuthenticationInfo doGetAuthenticationInfo(\n AuthenticationToken token) throws AuthenticationException {\n return null;\n }", "public String getApiToken() {\n return apiToken;\n }", "public String getAuthorizationStatus(){\n\t\treturn accessToken;\n\t}", "public String getToken() {\n\t\treturn token;\n\t}", "public String getToken() {\n\t\treturn token;\n\t}", "@Api(1.0)\n @NonNull\n public String getAuthorization() {\n return mTokenType + \" \" + mAccessToken;\n }", "public String getLoginToken() {\n return loginToken;\n }", "public String getTokenKey()\r\n\t{\r\n\t\treturn TOKEN_KEY;\r\n\t}", "public String getUsernameFromToken() {\n\t\tHttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();\n\t\tfinal String requestTokenHeader = request.getHeader(AUTH);\n\t\tString jwtToken = requestTokenHeader.substring(BEARER.length());\n\t\treturn getClaimFromToken(jwtToken, Claims::getSubject);\n\t}", "@Override\n protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken) throws AuthenticationException {\n return new SimpleAuthenticationInfo(authenticationToken.getPrincipal(), authenticationToken.getCredentials(),\n getName());\n }", "public String getToken(String name){\n\n return credentials.get(name, token);\n }", "public String getIdToken() throws IOException {\n return (String)userInfo.get(\"id_token\");\n }", "@POST\n @Consumes(org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE)\n @Produces(org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE)\n @Path(\"/token\")\n @ApiOperation(value = \"Gets the authorization\")\n public Response getToken(@RequestBody AuthorizationEntity auth) {\n // same AccessResource for token to generate\n if (httpServletRequest.isSecure()) {\n final NiFiUser user = NiFiUserUtils.getNiFiUser();\n if (user == null) {\n throw new AccessDeniedException(\"No user authenticated in the request.\");\n }\n if (user.getIdentity().equals(auth.getUsername()) || user.getIdentity().equals(auth.getIdentity())) {\n\n LoginAuthenticationToken loginToken = new LoginAuthenticationToken(auth.getUsername(), auth.getUsername(), auth.getExpiration(), auth.getIssuer());\n String jwtToken = jwtService.generateSignedToken(loginToken);\n\n // build the response\n final URI uri = URI.create(generateResourceUri(\"auth\", \"token\"));\n return generateCreatedResponse(uri, jwtToken).build();\n }\n\n }\n return generateNotAuthorizedResponse().build();\n\n }", "public static String getToken() {\n String token = \"96179ce8939c4cdfacba65baab1d5ff8\";\n return token;\n }", "public String getTokenId() {\n return tokenId;\n }", "public String getToken(HttpServletRequest request) {\n Cookie authCookie = getCookieValueByName(request, AUTH_TOKEN_COOKIE);\n if (authCookie != null) {\n return authCookie.getValue();\n }\n /**\n * Getting the token from Authentication header e.g Bearer your_token\n */\n String authHeader = request.getHeader(AUTH_HEADER);\n if (authHeader != null) {\n \tif (authHeader.startsWith(\"Bearer \"))\n \t\treturn authHeader.substring(7);\n \t// Support without Bearer prefix\n \treturn authHeader;\n }\n return null;\n }", "public LoginToken getLoginToken() {\n return loginToken;\n }", "public TokenUser findTokenUser() {\n\t\treturn securityContextService != null && securityContextService.getAuthentication() != null\n\t\t\t\t? (TokenUser) securityContextService.getAuthentication().getDetails()\n\t\t\t\t: null;\n\t}", "private CdekAuthToken getAuthToken()\n {\n String authEndpoint = conf.ENDPOINT + \"/oauth/token?grant_type={grant_type}&client_id={client_id}&client_secret={client_secret}\";\n\n HttpHeaders defaultHeaders = new HttpHeaders();\n HttpEntity req = new HttpEntity(defaultHeaders);\n\n return rest.postForObject(authEndpoint, req, CdekAuthToken.class, conf.getAuthData());\n }", "public Pokemon.RequestEnvelop.AuthInfo.JWTOrBuilder getTokenOrBuilder() {\n return token_;\n }", "@Nullable\n public String getAccessToken() {\n return accessToken;\n }", "public String secureIdentityToken() {\n return runtimeProperty(PROPERTY_SECURE_IDENTITY_TOKEN);\n }", "public String getTokenId() {\n return this.TokenId;\n }", "public Pokemon.RequestEnvelop.AuthInfo.JWTOrBuilder getTokenOrBuilder() {\n if (tokenBuilder_ != null) {\n return tokenBuilder_.getMessageOrBuilder();\n } else {\n return token_;\n }\n }", "@Override\n protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token)\n throws AuthenticationException {\n\n LOG.info(\"Obtaining authentication info\");\n\n /* Any leading and/or trailing white space contained in the credentials\n * (password) has been stripped out before it gets here.\n */\n try {\n if (token instanceof OAuthToken) {\n // Principal = email\n // Credentials = authenticator\n LOG.info(\"Authentication is using OAuth\");\n return new SimpleAccount(\n token.getPrincipal(), \n token.getCredentials(), \n \"CloudSession\");\n } else {\n LOG.info(\"Authentication is using local login authority\");\n\n // Principal = login\n String principal = (String) token.getPrincipal();\n\n // Credentials = password\n String credentials = new String((char[]) token.getCredentials());\n\n LOG.info(\"Authenticating user '{}'\", principal);\n\n // Thia can throw a NullPointerException\n User user = SecurityServiceImpl.authenticateLocalUserStatic(\n principal, \n credentials);\n\n if (user == null) {\n LOG.info(\"No exception but user object is null\");\n return null;\n }\n\n LOG.info(\"User {} is authenticated\", principal);\n\n try {\n return new SimpleAccount(\n token.getPrincipal(), \n token.getCredentials(), \n \"CloudSession\");\n } catch (Throwable t) {\n LOG.error(\"Unexpected exception creating account object\", t);\n }\n }\n throw new AuthenticationException(\"Unable to authenticate token\");\n }\n catch (UnknownUserException ex) {\n LOG.warn(\"Authentication failed. Message: {}\", ex.getMessage());\n throw new AuthenticationException(ex.getMessage());\n }\n catch (UserBlockedException ex) {\n LOG.warn(\"Blocked user {}\", ex);\n throw new AuthenticationException(ex.getMessage());\n }\n catch (EmailNotConfirmedException ex) {\n LOG.warn(\"Authentication failed. Message: {}\", ex.getMessage());\n throw new AuthenticationException(\"EmailNotConfirmed\");\n }\n catch (InsufficientBucketTokensException ex) {\n LOG.info(\"Insufficient bucket tokens: {}\", ex.getMessage());\n throw new AuthenticationException(ex.getMessage());\n }\n catch (NullPointerException npe) {\n LOG.warn(\"NullPointer\", npe);\n throw new AuthenticationException(npe.getMessage());\n }\n catch (Throwable t) {\n // This is a catchall exception handler that kicks the can back\n // to the caller\n LOG.warn(\"Throwable\", t);\n }\n\n return null;\n }", "public java.lang.String getAccessToken(java.lang.String userName, java.lang.String password) throws java.rmi.RemoteException;", "@Nonnull\n public final String getToken() {\n return this.token;\n }", "public byte[] getToken() {\n\t\treturn this.token;\n\t}", "java.lang.String getAuth();", "java.lang.String getAuth();", "java.lang.String getAuth();" ]
[ "0.72156286", "0.70795965", "0.6893985", "0.6848307", "0.68211454", "0.6787994", "0.6753298", "0.6705959", "0.6690528", "0.6673792", "0.6659559", "0.66178787", "0.6603489", "0.6592699", "0.6592699", "0.65902305", "0.6538341", "0.6538004", "0.6523786", "0.6489371", "0.6486282", "0.64745134", "0.64538413", "0.6436214", "0.6436214", "0.6436214", "0.6434805", "0.6429928", "0.6424432", "0.6421156", "0.6414682", "0.64136755", "0.63983506", "0.63945323", "0.6386194", "0.6374261", "0.6374261", "0.6374261", "0.6369627", "0.6364438", "0.63641226", "0.6357038", "0.63557035", "0.6353648", "0.6352604", "0.6352604", "0.63105315", "0.63070107", "0.6305079", "0.6305079", "0.6305079", "0.6303248", "0.63031834", "0.62996525", "0.62938577", "0.62938577", "0.62938577", "0.62938577", "0.62938577", "0.6293734", "0.62769145", "0.62769145", "0.62748337", "0.62651056", "0.62582576", "0.6247091", "0.6241004", "0.624077", "0.62365055", "0.6229279", "0.6229045", "0.62267303", "0.6212133", "0.6212133", "0.6210111", "0.6209913", "0.6206767", "0.6205522", "0.6188848", "0.617619", "0.6145854", "0.6123533", "0.61144453", "0.6112571", "0.60958326", "0.6077875", "0.6068398", "0.6061481", "0.60550827", "0.60384697", "0.60383", "0.6033935", "0.602152", "0.60200125", "0.6012335", "0.60062736", "0.60049707", "0.6001876", "0.6001876", "0.6001876" ]
0.6193202
78
Returns the value of the 'Entry List' containment reference. If the meaning of the 'Entry List' containment reference isn't clear, there really should be more of a description here...
CommandContainerEntryListType getEntryList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static EntryList getEntryList(){\n if (entryList == null){\n entryList = new EntryList();\n\n }\n return entryList;\n }", "public LinkedList<MapEntry<String, Integer>> entrySet(){\r\n return this.list;\r\n }", "public VFSEntry getEntry() {\r\n\t\treturn entry;\r\n\t}", "public E getEntry() {\n return _entry;\n }", "public String getEntry() {\n return mEntry;\n }", "public Label getEntry() {\n return entry;\n }", "public Set<AddressEntry> getEntry() {\n return entrySet;\n }", "public ArrayList<AddressEntry> getAddressEntryList() {\n return addressEntryList;\n }", "public ListEntry() {\n this.data = null;\n this.next = null;\n this.prev = null;\n }", "public List<TAclEntry> getEntries() {\n return this.entries;\n }", "public java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> getEntryList() {\n return entry_;\n }", "public java.util.List<? extends com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder> \n getEntryOrBuilderList() {\n return entry_;\n }", "public Object getEntries() {\n\t\t\treturn null;\n\t\t}", "public java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> getEntryList() {\n if (entryBuilder_ == null) {\n return java.util.Collections.unmodifiableList(entry_);\n } else {\n return entryBuilder_.getMessageList();\n }\n }", "public ArrayList<Entry> getEntries() {\n return entries;\n }", "public final Entries getEntries() {\n return this.entries;\n }", "final List<MPEntry> entries() {\n return this.entries;\n }", "@Override\r\n\tpublic Vector getEntries() throws NotesApiException {\n\t\treturn null;\r\n\t}", "public java.util.List<? extends com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder> \n getEntryOrBuilderList() {\n if (entryBuilder_ != null) {\n return entryBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(entry_);\n }\n }", "public List<Entry<T>> getEntries() {\n return Collections.unmodifiableList(entries);\n }", "public ActionList getEntryActionList() {\r\n\t\treturn entryActionList;\r\n\t}", "@Override\n\t\tpublic List<? extends MyHashMap.Entry<K, V>> getEntries() {\n\t\t\treturn e;\n\t\t}", "public DOCKSList getList() {\r\n return localList;\r\n }", "public boolean contains(T anEntry) {\n\t\tfor(int i=0; i<numberOfElements; i++) {\n\t\t\tif(list[i].equals(anEntry)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public String getentryDN() {\n\t\treturn _entryDN;\n\t}", "public java.lang.String getZqu__Associated_Sub_List__c() {\r\n return zqu__Associated_Sub_List__c;\r\n }", "public com.sforce.soap.enterprise.sobject.Zqu__ZList__c getZqu__Associated_Sub_List__r() {\r\n return zqu__Associated_Sub_List__r;\r\n }", "public final ZipEntry getEntry()\n\t{\n\t\treturn entry_;\n\t}", "public Entry[] getEntries()\n\t{\n\t\treturn entries;\n\t}", "java.lang.String getEntryNode();", "@JsonGetter(\"entries\")\r\n public List<V1SettlementEntry> getEntries() {\r\n return entries;\r\n }", "public List<Entry<K,V>> entryList() {\n\t\tList<Entry<K, V>> \t\t\tl = new LinkedList<Entry<K,V> >();\n\t\tLinkedList<BSTNode<K,V>> myQueue = new LinkedList<BSTNode<K,V>>();\n\t\tBSTNode<K,V> temp = null;\n\t\tmyQueue.addLast(root);\n\t\t\n\t\twhile (!myQueue.isEmpty()) {\n\t\t\ttemp = myQueue.remove();\n\t\t\tl.add(new Entry<K,V>(temp.key, temp.value));\n\t\t\t\n\t\t\tif (temp.left != null) {\n\t\t\t\tmyQueue.add(temp.left);\n\t\t\t}\n\t\t\tif (temp.right != null) {\n\t\t\t\tmyQueue.add(temp.right);\n\t\t\t}\n\t\t}\n\treturn l;\n\t}", "public StrColumn getEntryFittingList() {\n return delegate.getColumn(\"entry_fitting_list\", DelegatingStrColumn::new);\n }", "public List<ArchiveEntry> getMainEntries ()\n\t{\n\t\treturn mainEntries;\n\t}", "public String getEntryId() {\n return entryId;\n }", "public T getValue() {\n\t\t\treturn this.entry.value;\n\t\t}", "public List<?> getValue() {\n return value;\n }", "public List getDownList() {\n\t\treturn downList;\n\t}", "public List getSubList() {\n\t\treturn subList;\n\t}", "public VectorI getEntryOffset() {\n\t\treturn new VectorI(dimensionCenterX - parentCenterX, 0, dimensionCenterZ - parentCenterZ);\n\t}", "public String getDefEntryData()\n\t{\n\t\treturn defEntryData;\n\t}", "@XmlElementWrapper(name = \"addressLists\")\r\n\t@XmlElement(name = \"addressList\")\r\n\tpublic Collection<RefAddressModel> getAddressList()\r\n\t{\r\n\t\treturn addressList;\r\n\t}", "java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> \n getEntryList();", "public String getElement()\n\t{\n\t\treturn \"list\";\n\t}", "@Override\r\n\tpublic NotesReplicationEntry getEntry(String arg0, String arg1, boolean arg2)\r\n\t\t\tthrows NotesApiException {\n\t\treturn null;\r\n\t}", "public final List<ClassContentsEntry> getContents() {\n return myContents;\n }", "@XmlElementWrapper(name = \"dayList\")\n @XmlElement(name = \"Day\")\n public List<Day> getDayList() {\n return dayList;\n }", "public String getCurrentEntry() {\n if (entries.size() > 0) {\n int index = Math.round(offsetValue) % entries.size();\n return entries.get(index);\n }\n\n return null;\n }", "public String getCustomerReferenceDataDirectoryEntryInstanceReference() {\n return customerReferenceDataDirectoryEntryInstanceReference;\n }", "public java.util.Date getEntryDate () {\n\t\treturn entryDate;\n\t}", "public DList2 list(){\r\n return this.list;\r\n }", "public static PortabilityKnowhowListViewOperation getEntry() {\n ClipBoardEntryFacade.LOGGER.debug(CmnStringUtil.EMPTY);\n PortabilityKnowhowListViewOperation entry = ClipBoardEntryFacade.clipBoard\n .getEntry();\n ClipBoardEntryFacade.clipBoard.clear();\n return entry;\n }", "@Override\n\tpublic void addEntry(E entry) {\n\n\t\t// Determine if the entry already exists in the list\n\t\tE current = this.getHead();\n\t\twhile (current != null) {\n\t\t\tif (this.isEqual(current, entry)) {\n\t\t\t\t// Already in list\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\n\t\t// Not in list, so add the entry\n\t\tsuper.addEntry(entry);\n\t}", "public List<Ent> getChildList(){\n\t\tif(this.childList != null){\n\t\t\treturn Collections.unmodifiableList(this.childList);\n\t\t}else{\n\t\t\treturn new ArrayList<Ent>();\n\t\t}\n\t}", "public final boolean getEntryValid()\n\t{\n\t\treturn entryValid_;\n\t}", "public org.drip.graph.heap.PriorityQueueEntry<KEY, ITEM> entry()\n\t{\n\t\treturn _entry;\n\t}", "public Set<java.util.Map.Entry<E, V>> entrySet() {\n\t\treturn null;\r\n\t}", "public final EObject entryRuleListTerm() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleListTerm = null;\n\n\n try {\n // InternalSafetyParser.g:10767:49: (iv_ruleListTerm= ruleListTerm EOF )\n // InternalSafetyParser.g:10768:2: iv_ruleListTerm= ruleListTerm EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getListTermRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleListTerm=ruleListTerm();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleListTerm; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\r\n\tpublic NotesReplicationEntry getEntry(String arg0, String arg1)\r\n\t\t\tthrows NotesApiException {\n\t\treturn null;\r\n\t}", "public String getDisplayName(){return entryName;}", "public MainNode getMainList() {\n return mainList;\n }", "public String getDocumentDirectoryEntryInstanceReference() {\n return documentDirectoryEntryInstanceReference;\n }", "protected List ensureDisplayList()\n {\n if (m_listDisplay == null)\n {\n m_listDisplay = new LinkedList();\n }\n return m_listDisplay;\n }", "Object getContainedValue();", "@Override\n public List<RefsetEntry> getRefsetEntries() {\n return refsetEntries;\n }", "public Map<String, Entry> getEntries() {\n return entries;\n }", "public synchronized long getEntries() {\n return entries;\n }", "public WordList getItem( String key )\n {\n WordList whichList = theLists[ myhash(key) ];\n \n if (whichList.isEmpty()) {\n \treturn null;\n }\n\n return whichList;\n }", "@Override\n public T getValue() {\n return entry.getValue().getValue();\n }", "int getListData(int list) {\n\t\treturn m_lists.getField(list, 5);\n\t}", "java.util.List<? extends com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder> \n getEntryOrBuilderList();", "public ArrayList<Entry> getMembers(){\n return members;\n }", "public String getEntryName();", "public Object getNativeEntry();", "public java.lang.String getZqu__List_Name__c() {\r\n return zqu__List_Name__c;\r\n }", "public Level getEntryLevel() {\r\n\t\treturn entryLevel;\r\n\t}", "long getValueReference(int entryIndex) {\n return getEntryFieldLong(entryIndex, OFFSET.VALUE_REFERENCE);\n }", "public PostingsEntry get( int i ) {\n\t return list.get(i);\n }", "public List<Integer> getAddrList() {\n\t\treturn this.addrList;\r\n\t}", "protected static boolean hasEntryInList(String key, String entry) {\n String entries = getSPreference(key);\n if (TextUtils.isEmpty(entries))\n return false;\n\n for (String e: entries.split(\":\"))\n if (e.equalsIgnoreCase(entry))\n return true;\n\n return false;\n }", "public ReferenceList getRefList( )\n {\n return _refList;\n }", "public Set<Map.Entry<String, List<String>>> entrySet()\r\n/* 431: */ {\r\n/* 432:592 */ return this.headers.entrySet();\r\n/* 433: */ }", "public boolean isInList();", "java.util.List<java.lang.String> getContentsList();", "public String getEntryLevel() {\n\t\treturn entryLevel;\n\t}", "public final EObject entryRuleEConstraintList() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEConstraintList = null;\n\n\n try {\n // InternalRMParser.g:3195:56: (iv_ruleEConstraintList= ruleEConstraintList EOF )\n // InternalRMParser.g:3196:2: iv_ruleEConstraintList= ruleEConstraintList EOF\n {\n newCompositeNode(grammarAccess.getEConstraintListRule()); \n pushFollow(FOLLOW_1);\n iv_ruleEConstraintList=ruleEConstraintList();\n\n state._fsp--;\n\n current =iv_ruleEConstraintList; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public Hashtable getElementHashEntry() {\n\t\treturn (element);\n\t}", "public java.util.List<org.landxml.schema.landXML11.DefinitionDocument.Definition> getDefinitionList()\r\n {\r\n final class DefinitionList extends java.util.AbstractList<org.landxml.schema.landXML11.DefinitionDocument.Definition>\r\n {\r\n public org.landxml.schema.landXML11.DefinitionDocument.Definition get(int i)\r\n { return SurfaceImpl.this.getDefinitionArray(i); }\r\n \r\n public org.landxml.schema.landXML11.DefinitionDocument.Definition set(int i, org.landxml.schema.landXML11.DefinitionDocument.Definition o)\r\n {\r\n org.landxml.schema.landXML11.DefinitionDocument.Definition old = SurfaceImpl.this.getDefinitionArray(i);\r\n SurfaceImpl.this.setDefinitionArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.DefinitionDocument.Definition o)\r\n { SurfaceImpl.this.insertNewDefinition(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.DefinitionDocument.Definition remove(int i)\r\n {\r\n org.landxml.schema.landXML11.DefinitionDocument.Definition old = SurfaceImpl.this.getDefinitionArray(i);\r\n SurfaceImpl.this.removeDefinition(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return SurfaceImpl.this.sizeOfDefinitionArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new DefinitionList();\r\n }\r\n }", "public final EObject entryRuleELIST() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleELIST = null;\n\n\n try {\n // InternalRMParser.g:8258:46: (iv_ruleELIST= ruleELIST EOF )\n // InternalRMParser.g:8259:2: iv_ruleELIST= ruleELIST EOF\n {\n newCompositeNode(grammarAccess.getELISTRule()); \n pushFollow(FOLLOW_1);\n iv_ruleELIST=ruleELIST();\n\n state._fsp--;\n\n current =iv_ruleELIST; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "private IEntry getEntryEditorWidgetTreeViewerInput()\n {\n TreeViewer viewer = getEntryEditorWidgetTreeViewer();\n if ( viewer != null )\n {\n Object o = viewer.getInput();\n if ( o instanceof IEntry )\n {\n return ( IEntry ) o;\n }\n }\n return null;\n }", "public final AliaChecker.exprlist_return exprlist() throws RecognitionException {\n\t\tAliaChecker.exprlist_return retval = new AliaChecker.exprlist_return();\n\t\tretval.start = input.LT(1);\n\n\t\tCommonTree root_0 = null;\n\n\t\tCommonTree _first_0 = null;\n\t\tCommonTree _last = null;\n\n\n\t\tTreeRuleReturnScope tl =null;\n\t\tTreeRuleReturnScope t =null;\n\n\n\t\ttry {\n\t\t\t// src\\\\alia\\\\AliaChecker.g:258:5: (tl= exprentry (t= exprentry )* )\n\t\t\t// src\\\\alia\\\\AliaChecker.g:258:7: tl= exprentry (t= exprentry )*\n\t\t\t{\n\t\t\troot_0 = (CommonTree)adaptor.nil();\n\n\n\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\tpushFollow(FOLLOW_exprentry_in_exprlist1563);\n\t\t\ttl=exprentry();\n\t\t\tstate._fsp--;\n\n\t\t\tadaptor.addChild(root_0, tl.getTree());\n\n\n\t\t\t\t\t\tcheckNotVoid((tl!=null?((AliaChecker.exprentry_return)tl).type:null), (tl!=null?((CommonTree)tl.getTree()):null));\n\t\t\t\t\t\tretval.type = (tl!=null?((AliaChecker.exprentry_return)tl).type:null);\n\t\t\t\t\t\n\t\t\t// src\\\\alia\\\\AliaChecker.g:263:3: (t= exprentry )*\n\t\t\tloop15:\n\t\t\twhile (true) {\n\t\t\t\tint alt15=2;\n\t\t\t\tint LA15_0 = input.LA(1);\n\t\t\t\tif ( ((LA15_0 >= AND && LA15_0 <= BECOMES)||(LA15_0 >= CHAR_EXPR && LA15_0 <= COLON)||(LA15_0 >= COMPOUND && LA15_0 <= CONST)||LA15_0==DIV||LA15_0==EQ||LA15_0==FALSE||(LA15_0 >= GE && LA15_0 <= GT)||(LA15_0 >= IDENTIFIER && LA15_0 <= IF)||LA15_0==LE||(LA15_0 >= LT && LA15_0 <= MOD)||(LA15_0 >= NOT && LA15_0 <= PRINT)||LA15_0==READ||(LA15_0 >= TIMES && LA15_0 <= TRUE)) ) {\n\t\t\t\t\talt15=1;\n\t\t\t\t}\n\n\t\t\t\tswitch (alt15) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:263:4: t= exprentry\n\t\t\t\t\t{\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tpushFollow(FOLLOW_exprentry_in_exprlist1574);\n\t\t\t\t\tt=exprentry();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tadaptor.addChild(root_0, t.getTree());\n\n\n\t\t\t\t\t\t\t\t\tcheckNotVoid((t!=null?((AliaChecker.exprentry_return)t).type:null), (t!=null?((CommonTree)t.getTree()):null));\n\t\t\t\t\t\t\t\t\tretval.type = new _Void();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak loop15;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t}\n\n\t\t\tretval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n\n\t\t}\n\t\t \n\t\t catch (RecognitionException e) { \n\t\t \tif(!e.getMessage().equals(\"\")) {\n\t\t\t\t\tSystem.err.println(\"Exception!:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t\tthrow (new AliaException(\"\"));\n\t\t } \n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}", "public String getName() {\n return list;\n }", "@SuppressWarnings(\"unchecked\")\n public C entriesListIsNotEmpty() \n {\n STEP(\"REST API: Assert that entries list from response is not empty\");\n Assert.assertFalse(modelCollection.isEmpty(), \"Entries list from response is empty.Check the logs for more details!\");\n return (C) modelCollection;\n }", "public ApplicationsState.AppEntry getAppEntry() {\n return mAppEntry;\n }", "@Override\n\tpublic Set<java.util.Map.Entry<String, String>> entrySet() {\n\t\treturn null;\n\t}", "public int getEntriesSet() {\r\n return entriesSet;\r\n }", "@OneToMany(mappedBy = \"creator\", fetch = FetchType.LAZY,\n cascade = CascadeType.PERSIST, orphanRemoval = true)\n @OrderBy(\"createdAt\")\n public List<BlogEntry> getEntries() {\n return entries;\n }", "public static String listEntriesToStringValueKey(List<Entry<String, Integer>> listEntries) {\n\t\tStringBuilder listStr = new StringBuilder();\n\t\tfor (Entry<String, Integer> entry : listEntries) {\n\t\t\tlistStr.append(entry.getValue()+\"\\t\"+entry.getKey()+\"\\n\");\n\t\t}\n\t\treturn listStr.toString();\n\t}", "Object get()\n\t{\n\t\tif (length == 0 ) \n\t\t{\t\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on empty List\");\n\t\t}\n\t\tif (cursor == null\t) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on cursor that is off the list\");\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn cursor.data;\n\t\t}\n\t}", "Object front()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call front() on empty List\");\n\t\t}\n\t\treturn front.data;\n\t}" ]
[ "0.6669918", "0.63050276", "0.61702234", "0.6051693", "0.6015421", "0.59407115", "0.5790621", "0.5710005", "0.5679425", "0.5614639", "0.55710787", "0.55289847", "0.5524629", "0.5507973", "0.5507329", "0.54968226", "0.5492534", "0.5478907", "0.54686576", "0.5382817", "0.5378304", "0.5367816", "0.5342052", "0.5313405", "0.5256526", "0.5252792", "0.5197261", "0.5173898", "0.5173447", "0.51723564", "0.51406854", "0.51406157", "0.5140419", "0.511585", "0.5106028", "0.5085372", "0.5078259", "0.5077712", "0.50666517", "0.50608534", "0.5048199", "0.5027913", "0.50262284", "0.49904028", "0.49873507", "0.49772173", "0.49765873", "0.4964811", "0.49561897", "0.49420553", "0.49416634", "0.49277514", "0.4925465", "0.49226558", "0.49108827", "0.49106762", "0.49068922", "0.49006236", "0.4896737", "0.48946458", "0.48923457", "0.48823342", "0.48770916", "0.48764113", "0.48684853", "0.48621422", "0.48576134", "0.4847372", "0.48335993", "0.48334265", "0.4823443", "0.48178643", "0.4805126", "0.47917122", "0.4787654", "0.4782736", "0.47707063", "0.47679776", "0.47453046", "0.47446632", "0.4728445", "0.47220194", "0.47188136", "0.47153997", "0.47148597", "0.47137195", "0.47134882", "0.47059977", "0.46955007", "0.46911076", "0.4683228", "0.46827587", "0.4675314", "0.46714744", "0.46711096", "0.46651858", "0.46601257", "0.46593094", "0.46559548", "0.46558782" ]
0.64450943
1
Returns the value of the 'Base Container' containment reference. If the meaning of the 'Base Container' containment reference isn't clear, there really should be more of a description here...
BaseContainerType getBaseContainer();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Container getContainer();", "public String getContainer() {\n return this.container;\n }", "public String container() {\n return this.container;\n }", "public final Element getContainer() {\n\t\treturn impl.getContainer();\n }", "public Container getContainer() {\r\n return container;\r\n }", "public DockContainer getContainer() {\n return container;\n }", "public Node getContainer() {\n return container;\n }", "public static GameContainer getContainer() {\r\n return container;\r\n }", "protected Container getContainer()\r\n {\n return _xarSource.getXarContext().getContainer();\r\n }", "@Override\r\n\tpublic Control getControl() {\r\n\t\treturn container;\r\n\t}", "public final ContainerInfo getContainerInfo()\n\t{\n\t\treturn containerInfo;\n\t}", "public interface ContainerHolder extends MetaHolder {\n\n /**\n * Returns the root container in this containers\n * current hierarchy.\n *\n * @param <T> the container type\n * @return the container\n */\n @NonNull <T extends ContainerHolder> Optional<T> root();\n\n /**\n * Returns the parent container in this containers\n * current hierarchy.\n *\n * @param <T> the container type\n * @return the container\n */\n @NonNull <T extends ContainerHolder> Optional<T> parent();\n\n /**\n * Sets the parent container of this container in\n * the current hierarchy and returns it.\n *\n * @param parent the parent container\n * @param <T> the parent container type\n * @return the parent container\n */\n @Nullable <T extends ContainerHolder> T setParent(@Nullable T parent);\n\n /**\n * Clears this containers inherited tags and pulls\n * them again from its parent to update them.\n */\n void updateTags();\n\n /**\n * Returns {@code true} if this container, contains\n * other containers and {@code false} if it does not.\n *\n * @return true if this container has children\n */\n boolean hasChildren();\n\n /**\n * Returns the size of the elements and containers\n * contained inside this container.\n *\n * @return the container items size\n */\n int size();\n\n /**\n * Clears the items from this container.\n */\n void clear();\n\n}", "protected String getContainerType() {\r\n\t\treturn CONTAINER_TYPE;\r\n\t}", "public ViewGroup getContainer() {\n return mContainer;\n }", "Object getContainedValue();", "public GameContainer getGameContainer() {\r\n\t\treturn this;\r\n\t}", "public String containerName() {\n return this.containerName;\n }", "abstract public Container<?> getParent();", "public ObjectContainer getObjectContainer()\n {\n return container;\n }", "public String getContainerName() {\n return this.containerName;\n }", "public Container getContainer() {\n return editor;\n }", "@Override\npublic VirtualContainer getParentContainer() {\n\treturn null;\n}", "public String getContainerName() {\n return containerName;\n }", "@NonNull <T extends ContainerHolder> Optional<T> parent();", "public boolean isContainer();", "public String getContainerUri() {\n return this.containerUri;\n }", "public boolean getIsContainer()\n {\n return standardDefs.isContainer(root.getType());\n }", "public static ComponentContainer global() {\n return new ContainerBoundary();\n }", "protected String getContainerName() {\r\n\t\treturn CONTAINER_NAME;\r\n\t}", "public Container getContent() {\n return this;\n }", "Rule ContainerType() {\n // No direct effect on value stack\n return FirstOf(\n MapType(),\n SetType(),\n ListType());\n }", "public JLayeredPane getContainer(){\n\t\treturn contentPane;\n\t}", "public String getContainerId() {\n return containerId;\n }", "public PBounds getBoundsReference() {\n\t\tPBounds bds = super.getBoundsReference();\n\t\tgetUnionOfChildrenBounds(bds);\n\n\t\tcachedChildBounds.setRect(bds);\n\t\tdouble scaledIndent = INDENT/renderCamera.getViewScale();\t\t\n\t\tbds.setRect(bds.getX()-scaledIndent,bds.getY()-scaledIndent,bds.getWidth()+2*scaledIndent,bds.getHeight()+2*scaledIndent);\n\t\t\n\t\treturn bds;\n\t}", "public UIContainer getDefinitionContainer() {\n\t\treturn uiDefinition;\n\t}", "public String getContainerName() {\n return name;\n }", "public IPartitionType getParentContainerType()\n\t{\n\t\treturn parentContainerType;\n\t}", "public JRibbonContainer getRibbonContainer()\n\t{\n\t\treturn ribbonContainer;\n\t}", "public RouteContainer getNodeContainer() {\r\n\t\tif (nodeContainer == null && selectedNode != null) {\r\n\t\t\tnodeContainer = selectedNode.getParent();\r\n\t\t}\r\n\t\treturn nodeContainer;\r\n\t}", "public boolean isContainerType()\n/* */ {\n/* 174 */ return true;\n/* */ }", "public DimensionContable getDimensionContable()\r\n/* 196: */ {\r\n/* 197:245 */ return this.dimensionContable;\r\n/* 198: */ }", "public boolean isContainerType()\n/* */ {\n/* 169 */ return true;\n/* */ }", "public EscherContainerRecord getEscherContainer() {\n \tfor(Iterator<EscherRecord> it = escherRecords.iterator(); it.hasNext();) {\n \t\tEscherRecord er = it.next();\n \t\tif(er instanceof EscherContainerRecord) {\n \t\t\treturn (EscherContainerRecord)er;\n \t\t}\n \t}\n \treturn null;\n }", "public boolean getIsVisualElementContainer()\n {\n return root.getType().isAssignableTo(standardDefs.INTERFACE_IVISUALELEMENTCONTAINER);\n }", "public List<String> containerList() {\n return this.containerList;\n }", "public List<String> containers() {\n return this.containers;\n }", "public List<SpecialContainer> getSpecialContainers(){\n return this.specialContainers;\n }", "public StackPane getPane() {\n return this.container;\n }", "protected int matchContainer() {\n if (this.pattern.findReferences)\n return ALL_CONTAINER;\n // declarations are only found in Class\n return CLASS_CONTAINER;\n }", "private org.gwtbootstrap3.client.ui.Container get_f_Container4() {\n return build_f_Container4();\n }", "public Bounds getBounds() {\n\t\treturn boss.getBoundsInParent();\n\t}", "public Container newContainer();", "public DimensionContable getDimensionContable()\r\n/* 202: */ {\r\n/* 203:244 */ return this.dimensionContable;\r\n/* 204: */ }", "public IPSDocument getContainer();", "public String getParentContainerXPath()\n\t{\n\t\treturn this.parentContainerXPath;\n\t}", "public String getContainerUser() {\n return containerUser;\n }", "@Column(length = 500, name = \"CONTAINER_NAME\")\r\n public String getContainerName() {\r\n return this.containerName == null ? null : this.containerName.substring(this.containerName.lastIndexOf(File.separator) + 1);\r\n }", "@Override\n public String getContainerData()\n {\n return null;\n }", "public interface ReferenceContainer<E> {\n\n /**\n * Returns the kind of this container.\n * @return the kind\n */\n ReferenceKind getKind();\n\n /**\n * Returns whether or not this container is a stub.\n * @return {@code true} if this is a stub, otherwise {@code false}\n */\n default boolean isStub() {\n return getEntity().isPresent() == false;\n }\n\n /**\n * Returns the container entity.\n * @return the container entity, or {@code empty} if this container is a stub\n */\n Optional<E> getEntity();\n\n /**\n * Returns the referred symbols.\n * @return the referred symbols\n */\n List<PropertySymbol> getAllReferences();\n\n /**\n * Returns the mapped container.\n * @param mapper the symbol mapper\n * @return the mapped container\n */\n ReferenceContainer<E> remap(UnaryOperator<PropertySymbol> mapper);\n\n /**\n * Returns the entity as {@link List}.\n * @return the symbol list\n * @throws IllegalStateException if this is not a list\n */\n default List<PropertySymbol> asList() {\n throw new IllegalStateException();\n }\n\n /**\n * Returns the entity as {@link Map}.\n * @return the symbol map\n * @throws IllegalStateException if this is not a map\n */\n default Map<String, PropertySymbol> asMap() {\n throw new IllegalStateException();\n }\n }", "@Override\npublic void setParentContainer(VirtualContainer c) {\n\t\n}", "public HashSet<BlockPos> getContainers() {\n\t\tthis.validateContainers();\n\t\treturn this.containers;\n\t}", "protected final LWContainerPeer<?, ?> getContainerPeer() {\n return containerPeer;\n }", "@Override\n public String toString() {\n return \"Container{\" + \"id=\" + id + \", realPosition=\" + realPosition + \", indexPosition=\" + indexPosition + \", size=\" + size + '}';\n }", "public PersistentDataContainer getPersistentDataContainer ( ) {\n\t\treturn extract ( handle -> handle.getPersistentDataContainer ( ) );\n\t}", "@NonNull <T extends ContainerHolder> Optional<T> root();", "public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}", "public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}", "public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}", "public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}", "public Dock getDock() {\n return dock;\n }", "public BaseFragment getCurrentFragment() {\n return (BaseFragment) getSupportFragmentManager().findFragmentById(R.id.mFrameContainer);\n }", "public GHCommitPointer getBase() {\n return base;\n }", "public Boolean getBase() {\n return base;\n }", "public int getContainerSize() {\n\t\treturn 27;\n\t}", "public KDeclarationContainer getOwner() {\n throw new AbstractMethodError();\n }", "public Ship getBase() {\n return base;\n }", "private Frame getFrameParent() {\r\n Frame parent;// = new Frame();\r\n Container container = this;\r\n\r\n while (!(container.getParent() instanceof Frame)) {\r\n container = container.getParent();\r\n }\r\n parent = (Frame) container.getParent();\r\n\r\n return parent;\r\n }", "@Override\n\tpublic Base getBase() {\n\t\treturn null;\n\t}", "public ProductContainer getParent();", "public void testGetContainerForLocation() {\n \t\tIWorkspaceRoot root = getWorkspace().getRoot();\n \t\tassertEquals(\"1.0\", root, root.getContainerForLocation(root.getLocation()));\n \n \t}", "public Boolean getContainerScroll () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.containerScroll);\r\n\t}", "public IPSComponent peekParent();", "private ISearchPageContainer getContainer() {\n return searchPageContainer;\n }", "public String getRemoteContainerId()\n {\n return remoteContainerId;\n }", "public TileVariant getBaseVariant() {\r\n\t\treturn baseVariant;\r\n\t}", "public String getBase()\n {\n return base;\n }", "String getContainmentReference();", "public final ResizeDDContainer getWindow() {\r\n\t\t\treturn (ResizeDDContainer) getSource();\r\n\t\t}", "public final ResizeDDContainer getWindow() {\r\n\t\t\treturn (ResizeDDContainer) getSource();\r\n\t\t}", "public boolean isContained() {\n return contained;\n }", "public GenericContainer<?> applicationContainer() {\n return applicationContainer;\n }", "public VBox get() {\n\t\treturn root;\n\t}", "private JPanel getBasePanel() {\r\n\t\tif (basePanel == null) {\r\n\t\t\tbasePanel = new JPanel();\r\n\t\t\tbasePanel.setLayout(new BorderLayout());\r\n\t\t\tbasePanel.setBounds(new Rectangle(1, 1, 352, 129));\r\n\t\t\tbasePanel.add(getToolsToolBar(), BorderLayout.NORTH);\r\n\t\t\tbasePanel.add(getTotalSplitPane(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn basePanel;\r\n\t}", "private Component getDocked(Component c) {\r\n\t\tif (c instanceof DefaultDockingPort)\r\n\t\t\treturn ((DefaultDockingPort) c).getDockedComponent();\r\n\t\treturn c;\r\n\t}", "public ProductContainer getProductContainer(Product p);", "public String getContainerIp() {\n return containerIp;\n }", "Reference owner();", "public d getCurrentBaseFragment() {\n Fragment findFragmentById = getFragmentManager().findFragmentById(16908290);\n if (findFragmentById == null || !(findFragmentById instanceof d)) {\n return null;\n }\n return (d) findFragmentById;\n }", "Container createContainer();", "private org.gwtbootstrap3.client.ui.Container get_f_Container2() {\n return build_f_Container2();\n }" ]
[ "0.6780068", "0.6723795", "0.66285104", "0.66092885", "0.6595811", "0.64827746", "0.6442013", "0.6438803", "0.63665307", "0.60873574", "0.60787135", "0.6039343", "0.60235393", "0.5987436", "0.5923035", "0.59228253", "0.59075695", "0.58523864", "0.58486384", "0.58405125", "0.5830034", "0.58035123", "0.57855266", "0.57788163", "0.57643265", "0.5763553", "0.56974787", "0.56972957", "0.56971955", "0.5696431", "0.5680106", "0.5653888", "0.56525135", "0.5623305", "0.5617411", "0.5603175", "0.5595073", "0.55866235", "0.55011874", "0.5491986", "0.5484678", "0.5444507", "0.5414674", "0.5410358", "0.54090106", "0.5404937", "0.53899986", "0.53815097", "0.5362323", "0.5352536", "0.53482103", "0.53465503", "0.5344541", "0.53411716", "0.5333082", "0.5329034", "0.5314451", "0.5304257", "0.5286846", "0.5253274", "0.5246712", "0.52438045", "0.5243475", "0.52097857", "0.5203944", "0.5198776", "0.5198776", "0.5198776", "0.5198776", "0.51986974", "0.5193627", "0.51789635", "0.51644194", "0.5159843", "0.5154157", "0.5147671", "0.5137537", "0.51346517", "0.51318043", "0.5123327", "0.5119398", "0.5115159", "0.511139", "0.510944", "0.50942636", "0.50930226", "0.5090054", "0.5089769", "0.5089769", "0.5078289", "0.5073289", "0.5064699", "0.5057247", "0.50557256", "0.5054279", "0.5053236", "0.5050033", "0.50442517", "0.5037316", "0.5033571" ]
0.7196713
0
/////////////////////////////////////////////////////////////////////////////////////// CONSTRUCTOR & BUILDER ///////////////////////////////////////////////////////////////////////////////////////
public FindOnModelObjectOK() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "private TMCourse() {\n\t}", "public Constructor(){\n\t\t\n\t}", "protected abstract void construct();", "public CyanSus() {\n\n }", "public Boop() {\n\t\tsuper();\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "protected Doodler() {\n\t}", "private Aliyun() {\n\t\tsuper();\n\t}", "public Tbdtokhaihq3() {\n super();\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void init() {\n }", "Composite() {\n\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "private BookReader() {\n\t}", "public Ov_Chipkaart() {\n\t\t\n\t}", "@Override\n public void init() {}", "public contrustor(){\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n void init() {\n }", "private Builder() {\n\t\t}", "@Override\r\n\tpublic void init() {}", "public Curso() {\r\n }", "public HGDClient() {\n \n \t}", "private IndexBitmapObject() {\n\t}", "public Purp() {\n }", "@Override\n public void init() {\n }", "private Composite() {\n }", "@Override\n public void construct() throws IOException {\n \n }", "public BrokerAlgo() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public Chick() {\n\t}", "private Marinator() {\n }", "private Marinator() {\n }", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public Requisition() {\n\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private CustomerReader()\r\n\t{\r\n\t}", "private HSBC() {\n\t\t\n\t\t\n\t}", "public Demo() {\n\t\t\n\t}", "public MdrCreater()\n {\n super();\n client = new RawCdrAccess();\n }", "public Libro() {\r\n }", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "private Catalog() {\r\n }", "protected Product() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public Merchant() {\n\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\t\tpublic void init() {\n\t\t}", "private MApi() {}", "private Construct(Builder builder) {\n super(builder);\n }", "@Override\n public void init() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "private BookReader() {\r\n }", "public ConsommersResource() {\r\n }", "public PayloadGenerator() {\n initComponents();\n }", "public Sandwich()\n\t{super();\n \n\t\t\n\t}", "public Chauffeur() {\r\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "public Orbiter() {\n }", "public Reader(){\n\n\t}", "public Genret() {\r\n }", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public SgaexpedbultoImpl()\n {\n }", "public Billfold()\n {\n \n }", "private JadTool() { }", "private NfkjBasic()\n\t\t{\n\t\t\t\n\t\t}", "private Builder()\n {\n }", "private SingleObject()\r\n {\r\n }", "@Override\n protected void initialize() \n {\n \n }", "public Lanceur() {\n\t}", "public Pitonyak_09_02() {\r\n }", "public Rook()\n {\n super();\n }", "@Override\n protected void initialize() {\n\n \n }", "public Magazzino() {\r\n }", "public BuildingResource() {\n }", "@Override\n\tpublic void create() {\n\n\t}", "public PSRelation()\n {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private void __sep__Constructors__() {}", "private ClientLoader() {\r\n }", "private ResourceFactory() {\r\n\t}", "public void init() {\n \n }", "private Main() {\n\n super();\n }" ]
[ "0.7775836", "0.70496345", "0.70403385", "0.685434", "0.6712664", "0.6696095", "0.6682403", "0.666715", "0.6666092", "0.6640911", "0.6639947", "0.6628884", "0.66248137", "0.6618519", "0.6605519", "0.66008884", "0.6596119", "0.6596079", "0.6583002", "0.6570075", "0.6565947", "0.6564314", "0.65564424", "0.6554098", "0.6553809", "0.6545043", "0.6544585", "0.6539511", "0.6535182", "0.65203494", "0.65154934", "0.65055317", "0.65055317", "0.65039355", "0.64958876", "0.64958876", "0.6490465", "0.64900964", "0.64896387", "0.6487391", "0.6483575", "0.6478623", "0.6471913", "0.6466963", "0.64642084", "0.6449476", "0.64453393", "0.64427096", "0.644154", "0.644154", "0.644154", "0.644154", "0.644154", "0.6440982", "0.64403015", "0.64403015", "0.64403015", "0.64380616", "0.64300555", "0.642802", "0.6427165", "0.64190316", "0.64190316", "0.64190316", "0.64190316", "0.64190316", "0.64190316", "0.6415001", "0.6413229", "0.6408514", "0.64056134", "0.639878", "0.6393968", "0.6385651", "0.63781625", "0.63741463", "0.63724834", "0.6368459", "0.6367921", "0.6366742", "0.6366282", "0.6364265", "0.63628787", "0.6360964", "0.6360537", "0.6359736", "0.6359394", "0.6359218", "0.63576907", "0.63560236", "0.6350782", "0.6347483", "0.63421977", "0.633407", "0.633407", "0.63323283", "0.633158", "0.6324896", "0.63204235", "0.63197625", "0.6315969" ]
0.0
-1
When a single result is expected, this method returns this entity's oid
@SuppressWarnings("unchecked") public <O extends OID> O getSingleExpectedOidOrThrow() { M outEntity = this.getSingleExpectedOrThrow(); return (O)(outEntity != null ? outEntity.getOid() : null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getEntityId();", "public abstract String getEntityId();", "public int getId() {\n return oid ;\n }", "@Test\n void getByIdSuccess () {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n System.out.println(\"Result\" + result);\n\n if (result != null) {\n Optional<TestEntity> optionalEntity = instance.getById(TestEntity.class, result);\n\n TestEntity entity = optionalEntity.orElse(null);\n\n if (entity != null) {\n Assertions.assertEquals(result, entity.getId());\n Assertions.assertNotNull(result);\n } else {\n Assertions.fail();\n }\n } else {\n Assertions.fail();\n }\n }", "@Override\n\tpublic Object getEntityId() {\n\t\treturn null;\n\t}", "public int getOid() {\n return oid;\n }", "public int getResultId() {\n return resultId;\n }", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "public long getResultId() {\n return resultId;\n }", "public Long getOid() {\n return oid;\n }", "public Integer getOid() {\n return oid;\n }", "@Override\n public String getEntId() {\n init();\n return entid;\n }", "public Object getID()\n {\n return data.siObjectID;\n }", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "public long getId();", "long getNoId();", "@Override\n\tpublic Integer getId() {\n\t\treturn ofertaOpexId;\n\t}", "public abstract Long getId();", "public abstract long getId();", "public abstract long getId();", "public abstract long getId(T obj);", "int getOtherId();", "public int getEntityId ( ) {\n\t\treturn invokeSafe ( \"getEntityId\" );\n\t}", "public abstract Integer getEntity();", "protected abstract long determineObjectId(V vo);", "public int getEntityId()\r\n/* 25: */ {\r\n/* 26:26 */ return this.entityId;\r\n/* 27: */ }", "public int getObjectId()\r\n/* 71: */ {\r\n/* 72:152 */ return this.objectId;\r\n/* 73: */ }", "Long getId();", "Long getId();", "Long getId();", "@Override\n public Result getResultByResultId(String resultId) {\n MongoCollection<Result> collection = mongoDatabase.getCollection(\"result\", Result.class);\n return collection.find(eq(\"_id\", new ObjectId(resultId))).first();\n\n }", "public String getObjectId();", "@Test\n void saveSuccess() {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n System.out.println(\"Result\" + result);\n\n if (result != null) {\n Optional<TestEntity> optionalEntity = instance.getById(TestEntity.class, result);\n\n TestEntity entity = optionalEntity.orElse(null);\n\n if (entity != null) {\n Assertions.assertEquals(result, entity.getId());\n Assertions.assertNotNull(result);\n } else {\n Assertions.fail();\n }\n } else {\n Assertions.fail();\n }\n }", "public int getId();", "public int getId();", "public int getId();", "public int getId();", "public int getId();", "public int getId();", "public int getId();", "@SuppressWarnings(\"unchecked\") @Override public K getIdByEntity(E entity) {\n K id = (K) session.getIdentifier(entity);\n LOG.info(String.format(\"Found id %d for entity %s.\",id, entity));\n return id;\n }", "public long getId() { return id; }", "public long getId() { return id; }", "public long getId() { return this.id; }", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "long getID(Object item);", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();", "int getId();" ]
[ "0.67054063", "0.65670115", "0.6537323", "0.6358178", "0.6343521", "0.6305342", "0.62814724", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.6256195", "0.6233181", "0.6210148", "0.6199912", "0.61873823", "0.61694443", "0.61694443", "0.61694443", "0.61694443", "0.61694443", "0.61694443", "0.6151949", "0.6148594", "0.6132308", "0.61112314", "0.61112314", "0.6096008", "0.60873705", "0.6086142", "0.6081976", "0.60537297", "0.60469687", "0.60452884", "0.60415983", "0.60415983", "0.60415983", "0.6005978", "0.59513277", "0.594384", "0.5941723", "0.5941723", "0.5941723", "0.5941723", "0.5941723", "0.5941723", "0.5941723", "0.5938911", "0.5932153", "0.5932153", "0.5924627", "0.59180194", "0.59180194", "0.59180194", "0.59180194", "0.59180194", "0.59180194", "0.59167683", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579", "0.590579" ]
0.6929428
0
TODO Autogenerated method stub
public static void main(String[] args) { Scanner s=new Scanner(System.in); System.out.print("Enter the Number : "); int a=s.nextInt(); int arr[]=new int[a]; for(int i=0;i<a;i++) { arr[i]=s.nextInt(); } System.out.print("Output : "+(arr[0]+arr[1])); s.close(); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override protected AuthorizationInfo doGetAuthorizationInfo (PrincipalCollection principals) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Returns the value of field 'description'.
public java.lang.String getDescription() { return this._description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDescription() {\n return getGenericFieldValue(\"Description\");\n }", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String get_description() {\n return description;\n }", "public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }", "public String getDescription() {\n\t\tString t = doc.get(\"description\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "public String getDescription() {\r\n return _description;\r\n }", "public java.lang.Object getDescription() {\n return description;\n }", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\n return _description;\n }", "public String getDescription() {\n return _description;\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn McsElement.getElementByXpath(driver, DESCRIPTION_TXTAREA)\r\n\t\t\t\t.getAttribute(\"value\");\r\n\t}", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription(){\r\n return this.description;\r\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\n return this._description;\n }", "public String getDescription() {\n\n return this.description;\n }", "public String getDescription() {\r\n return this.description;\r\n }", "public String getDescription() {\r\n return this.description;\r\n }", "public java.lang.String getDescription() {\n return description;\n }", "@NonNull\n public String getDescription() {\n return description;\n }", "@NonNull\n public String getDescription() {\n return description;\n }", "public String getDescription()\n\t{\n\t\treturn description;\n\t}", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return description; \n }", "public String getDesc()\r\n {\r\n return description;\r\n }", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }" ]
[ "0.86551243", "0.8523679", "0.8514501", "0.8514501", "0.8514501", "0.8514501", "0.81809527", "0.80991554", "0.8023255", "0.80188566", "0.80122864", "0.8004014", "0.79940844", "0.79940844", "0.7989295", "0.7989295", "0.7989295", "0.7989295", "0.7989295", "0.7989295", "0.7989295", "0.7989295", "0.7989295", "0.7989295", "0.7989137", "0.79882497", "0.79882497", "0.79882497", "0.79882497", "0.79882497", "0.79882497", "0.79882497", "0.79882497", "0.7984987", "0.7983826", "0.79837066", "0.7979658", "0.7979658", "0.7979658", "0.7979485", "0.7979485", "0.7979485", "0.7979485", "0.7979485", "0.7975757", "0.79721916", "0.7968938", "0.796592", "0.796592", "0.79653627", "0.79633635", "0.79633635", "0.7961948", "0.7961773", "0.7958259", "0.7946139", "0.79444957", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084", "0.79420084" ]
0.8019209
10
Returns the value of field 'id'.
public java.lang.String getId() { return this._id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getId() {\n return (Integer) get(\"id\");\n }", "public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}", "public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}", "public int getId() {\n\t\treturn Integer.parseInt(Id);\n\t}", "public final String getIdAttribute() {\n return getAttributeValue(\"id\");\n }", "public final int getId() {\n\t\treturn JsUtils.getNativePropertyInt(this, \"id\");\n\t}", "public Integer getId() {\n return id.get();\n }", "public String getId()\r\n {\r\n return getAttribute(\"id\");\r\n }", "public java.lang.Integer getId() {\n return id;\n }", "public Object getId() {\n return id;\n }", "public Object getId() {\n return id;\n }", "public long getId() {\n\t\treturn(id);\n\t}", "public Integer getId() {\n return (Integer) get(0);\n }", "public Long getId( )\n\t{\n\t\treturn id;\n\t}", "public String get_id()\r\n\t{\r\n\t\treturn this.id;\r\n\t}", "public String get_id()\r\n\t{\r\n\t\treturn this.id;\r\n\t}", "public String get_id()\r\n\t{\r\n\t\treturn this.id;\r\n\t}", "public final String getId() {\r\n\t\treturn id;\r\n\t}", "public long getId()\n\t{\n\t\treturn id;\n\t}", "public String getId() {\n if (id == null)\n return \"\"; //$NON-NLS-1$\n return id;\n }", "public final long getId() {\r\n return id;\r\n }", "public int getId(){\n if (ID != null) {\n int i = Integer.parseInt(ID);\n return i;\n }\n return 0;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public java.lang.Integer getId()\n {\n return id;\n }", "public final Integer getId() {\n\t\treturn this.id;\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public java.lang.Integer getId () {\r\n return id;\r\n }", "public java.lang.Integer getId() {\n return id;\n }", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public final String getId() {\n return id;\n }", "public long getId() {\n return id_;\n }", "public java.lang.Integer getId()\r\n {\r\n return id;\r\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public Long getId() {\n return this.id.get();\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public java.lang.Integer getId() {\n return id;\n }", "public Integer getId() \r\n\t{\r\n\t\treturn id;\r\n\t}", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public Integer getId() {\n\t\treturn id;\n\t}", "public Integer getId() {\n\t\treturn id;\n\t}", "public Integer getId() {\n\t\treturn id;\n\t}", "public Integer getId() {\n\t\treturn id;\n\t}", "public Integer getId() {\n\t\treturn id;\n\t}", "public Integer getId() {\n\t\treturn id;\n\t}", "public Integer getId() {\n\t\treturn id;\n\t}", "public Integer getId() {\n\t\treturn id;\n\t}" ]
[ "0.79599434", "0.7645436", "0.7547374", "0.7534365", "0.7438628", "0.74184763", "0.73613286", "0.73063946", "0.7300298", "0.7291787", "0.7291787", "0.7286023", "0.72831905", "0.72805184", "0.72557104", "0.72557104", "0.72557104", "0.72471166", "0.7243006", "0.7240108", "0.72299105", "0.7227113", "0.72264206", "0.72264206", "0.72264206", "0.72264206", "0.72264206", "0.72264206", "0.72264206", "0.72264206", "0.7211398", "0.720571", "0.7198392", "0.7198392", "0.7198392", "0.7198392", "0.7198392", "0.7198392", "0.7198392", "0.7198392", "0.7198392", "0.7198392", "0.7198392", "0.7198392", "0.7187313", "0.7186936", "0.7185421", "0.7185421", "0.7185421", "0.7185421", "0.7185421", "0.7185421", "0.71792364", "0.7176372", "0.71742547", "0.7171362", "0.7171362", "0.7171362", "0.7171362", "0.71687967", "0.71680164", "0.71680164", "0.71680164", "0.71680164", "0.71680164", "0.71680164", "0.71680164", "0.71658534", "0.7162581", "0.7161858", "0.7161858", "0.7161858", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160716", "0.7160641", "0.7160641", "0.7160641", "0.7160641", "0.7160641", "0.7160641", "0.7160641", "0.7160641" ]
0.0
-1
Returns the value of field 'poolClass'.
public cto.framework.service.schema.types.PoolClassType getPoolClass() { return this._poolClass; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ClassPool getClassPool() {\r\n return pool;\r\n }", "public void setPoolClass(final cto.framework.service.schema.types.PoolClassType poolClass) {\r\n this._poolClass = poolClass;\r\n }", "public BoneCP getPool() {\n return pool;\n }", "int getPoolNumber();", "java.lang.String getPoolName();", "public String getConcurrentPool() {\n return getPropertyAsString(CONCURRENT_POOL, CONCURRENT_POOL_DEFAULT);\n }", "public String poolName();", "public String getName() {\n return poolName;\n }", "java.lang.String getPoolId();", "public Long getPoolId();", "public int getPoolSize() {\n return poolSize;\n }", "public String getClassification() {\n return classification;\n }", "public String getClassification() {\n return classification;\n }", "public String getClassification() {\n return classification;\n }", "public String getSelectedClass () {\n Object sel = listAppClasses.getSelectedValue();\n if(sel == null) {\n return null;\n }\n if(sel instanceof String) {\n return (String)sel;\n }\n return null;\n }", "org.apache.xmlbeans.XmlInt xgetPoolNumber();", "@NotNull\n protected ReusablePool<AbstractReadablePacket> getPool() {\n return requireNonNull(ClassUtils.unsafeCast(getPacketType().getPool()));\n }", "public final String getClassAttribute() {\n return getAttributeValue(\"class\");\n }", "public String getClassType() {\n return classType;\n }", "public String getClassification() {\r\n\t\treturn this.classification;\r\n\t}", "public String getProductClass() {\n return (String)getAttributeInternal(PRODUCTCLASS);\n }", "public boolean getPool() {\n\t\treturn this.pool;\n\t}", "public int getPoolIndex() {\n return poolIndex;\n }", "public int getPoolIndex() {\n return poolIndex;\n }", "public String getClassifier() {\n return _classifier;\n }", "public java.lang.String getJavaClass()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getGodClass()\r\n {\r\n return mGodClass;\r\n }", "org.apache.xmlbeans.XmlString xgetPoolName();", "public String getTaskClass() {\n\t\treturn this.taskClass;\n\t}", "public NamePool getNamePool() {\n return config.getNamePool();\n }", "public ClassConstant getClassConstant()\n {\n ensureLoaded();\n return m_clzName;\n }", "protected ThreadPool getPool()\r\n {\r\n return threadPool_;\r\n }", "public String getDBInstanceClass() {\n return this.dBInstanceClass;\n }", "public String getInfoPool() {\n StringBuilder info = new StringBuilder();\n \n if (pool == null) {\n info.append(\"El pool no está creado\");\n } else {\n\n int conexiones_libres = pool.getTotalFree();\n int conexiones_creadas_totales = pool.getTotalCreatedConnections();\n int conexiones_liberadas_totales = pool.getTotalLeased();\n \n BoneCPConfig config = pool.getConfig();\n \n info.append(\"Pool \" + config.getPoolName() + \": \");\n info.append(\"Libres: \" + conexiones_libres + \" / \");\n info.append(\"Tot. creadas: \" + conexiones_creadas_totales + \" / \");\n info.append(\"Tot. liberadas: \" + conexiones_liberadas_totales + Comun.NL);\n }\n \n info.append(Comun.NL);\n \n return info.toString();\n }", "public String getPKCClass();", "public Integer getClassify() {\n return classify;\n }", "org.apache.xmlbeans.XmlString xgetPoolId();", "public String getCls() {\n\t\tif (null != this.cls) {\n\t\t\treturn this.cls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"cls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public String getUpnpClass() {\n return upnpClass;\n }", "public String getClassname() {\n return classname;\n }", "private HikariDataSource getPool() {\n switch (DBtype) {\n case \"mariadb\":\n MariadbPool();\n break;\n case \"postgresql\":\n PostgresPool();\n break;\n }\n return null;\n\n }", "protected abstract Class<C> getConfigClass();", "public final Class getProductClass() {\n\treturn productClass;\n }", "public long getMaxPoolTime()\n {\n if (_maxPoolTime > Long.MAX_VALUE / 2)\n return -1;\n else\n return _maxPoolTime;\n }", "public String getRandomClass() {\n return _randomClass;\n }", "public Integer getClassid() {\r\n return classid;\r\n }", "public java.lang.String getClassCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSCODE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(CLASSCODE$30);\n }\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public Class getInstanceClass()\n {\n return _cl;\n }", "public String getCGClassID() {\n return cgClassID;\n }", "public String getClassname() {\n\t\treturn classname;\n\t}", "public BigDataPoolParametrizationReference getSparkPool() {\n return this.sparkPool;\n }", "public String getClassificationName()\n {\n return classificationName;\n }", "public Integer getClassid() {\n return classid;\n }", "public String getClasstype() {\n return classtype;\n }", "public Integer getPropertyClass()\r\n\t{\r\n\t\treturn propertyClass;\r\n\t}", "public static Class get_CLASS()\n {\n return WrapperMap.Values.class;\n }", "public Integer getClazz() {\n return clazz;\n }", "public String getBaseCls () {\r\n\t\treturn (String) getStateHelper().eval(PropertyKeys.baseCls);\r\n\t}", "public Class<? extends Geometry> getTargetClass() {\n\n\t\tint index = comboGeometryList.getSelectionIndex();\n\t\tString geomName;\n\t\tClass<? extends Geometry> geomClass;\n\n\t\tif (index != -1) {\n\t\t\tgeomName = comboGeometryList.getItem(index);\n\t\t\tgeomClass = (Class<? extends Geometry>) comboGeometryList.getData(geomName);\n\t\t\treturn geomClass;\n\t\t}\n\n\t\treturn null;\n\t}", "public String getBinaryClassName() {\n\t\treturn binaryClassName;\n\t}", "public Class getTypeClass() {\r\n\t\treturn (typeClass);\r\n\t}", "public String getClassid() {\n return classid;\n }", "java.lang.String getClass_();", "java.lang.String getClass_();", "public int getMaxPoolSize() {\n return maxPoolSize;\n }", "public static PoolInfoProvider loadPoolInstance( String poolClass,\n String poolProvider, int lMode ) {\n\n Object argList[] = new Object[2 ];\n argList[ 0 ] = poolProvider;\n argList[ 1 ] = edu.isi.pegasus.common.util.CommonProperties.PROPERTY_FILENAME;\n\n return loadPoolInstance( poolClass, lMode, argList );\n\n }", "public String getClassCode() {\n\t\treturn classCode;\n\t}", "public ParameterizedClass getCompressorClass()\n {\n return compressorClass;\n }", "@ZAttr(id=1112)\n public String getGalLdapGroupHandlerClass() {\n return getAttr(Provisioning.A_zimbraGalLdapGroupHandlerClass, null);\n }", "public String toString() {\n return poolName + \" [\" + getUsedCount() + \"/\" + (objects == null ? 0 : objects.size()) + \"/\" + (maxSize == 0 ? \"Unlimited\" : Integer.toString(maxSize)) + \"]\";\n }", "public Class<? extends StructureVillagePieces.Village> getComponentClass() {\n/* 27 */ return (Class)TekHouse6.class;\n/* */ }", "public Class<?> getValueClass() {\n if (valueClass == null) {\n try {\n valueClass = Class.forName(className);\n } catch (ClassNotFoundException exception) {\n Logging.unexpectedException(Key.class, \"getValueClass\", exception);\n valueClass = Object.class;\n }\n }\n return valueClass;\n }", "@JsonProperty(\"processClass\")\r\n public String getProcessClass() {\r\n return processClass;\r\n }", "public void setPoolId(Long poolId);", "public Coding classValue() {\n return getObject(Coding.class, FhirPropertyNames.PROPERTY_CLASS);\n }", "public String className() {\n\t\treturn className;\n\t}", "public static Class<?> getNetHandlerClass() {\n \t\treturn getMinecraftClass(\"NetHandler\", \"Connection\");\n \t}", "public Coding classValue() {\n return getObject(Coding.class, FhirPropertyNames.PROPERTY_CLASS);\n }", "public Class getAddressClass() {\n return addressClass;\n }", "@Override\n\tpublic final List<Thing42orNull<K, D>> getPoolAsList() {\n\t\treturn this.pool;\n\t}", "private JedisPool getPool() {\n if (pool == null) {\n JedisPoolConfig config = new JedisPoolConfig();\n config.setMinIdle(poolMinIdle);\n config.setMaxIdle(poolMaxIdle);\n config.setMaxTotal(poolMaxTotal);\n pool = new JedisPool(config, host, port, (int) timeout);\n logger.debug(\"Creando jedisPool@ \" + host + \":\" + port + \". MinIdle/MaxIdle/MaxTotal: \" + poolMinIdle + \"/\" + poolMaxIdle + \"/\" + poolMaxTotal + \". Timeout: \" + timeout);\n }\n return pool;\n }", "public String getName_Class() {\n\t\treturn name;\n\t}", "public short getClazz() {\n return clazz;\n }", "public Integer getClassId() {\r\n return classId;\r\n }", "public SelectorPool getSelectorPool() {\n return selectorPool;\n }", "public String getClassName() {\r\n return className;\r\n }", "public String getBindingClass()\n {\n return bindingClass;\n }", "public int getMinPoolSize() {\n return minPoolSize;\n }", "public Long getClassId() {\n return this.ClassId;\n }", "public final Class<T> getRawClass() {\n if (class_ == null) {\n class_ = getClass(type_);\n }\n return class_;\n }", "public String getClassName()\n {\n return className;\n }", "public String getClassName(){\n\t\treturn classname;\n\t}", "public Integer getClassified_id() {\n\t\treturn classified_id;\n\t}", "public Class getModelClass() {\n return m_Classifier.getClass();\n }", "public ForkJoinPool getPool() {\n return pool;\n }", "@Schema(description = \"Type of the CP instance that is identified by cpInstanceId. Shall be present if \\\"cpInstanceId\\\" is present, and shall be absent otherwise. Permitted values: * VNFC_CP: The link port is connected to a VNFC CP * EXT_CP: The link port is associated to an external CP. \")\n public CpInstanceTypeEnum getCpInstanceType() {\n return cpInstanceType;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }" ]
[ "0.72075766", "0.65011233", "0.59908044", "0.59715", "0.5943216", "0.5907355", "0.57047576", "0.5693804", "0.5676412", "0.56648374", "0.55916214", "0.55799174", "0.55687475", "0.55687475", "0.5563415", "0.554787", "0.5547649", "0.5546598", "0.5534194", "0.5519822", "0.55087465", "0.5486002", "0.5437301", "0.5437301", "0.54338527", "0.5414858", "0.5407412", "0.540654", "0.53910404", "0.5390966", "0.53785366", "0.5363979", "0.53470546", "0.5327433", "0.52954674", "0.52794886", "0.5257928", "0.5252433", "0.5246445", "0.52431434", "0.5237519", "0.5231143", "0.5227055", "0.5224652", "0.52223915", "0.52159804", "0.52106297", "0.5207181", "0.520095", "0.52000564", "0.5198876", "0.51908225", "0.5176721", "0.5171238", "0.5170097", "0.51041937", "0.5104058", "0.5098279", "0.50893", "0.50883377", "0.50856537", "0.50694954", "0.5060846", "0.5060846", "0.5059174", "0.5056122", "0.50541323", "0.5053496", "0.50469816", "0.5046004", "0.50445545", "0.50245714", "0.50238913", "0.5012669", "0.5009431", "0.5008704", "0.49948296", "0.49857384", "0.49821302", "0.49792197", "0.49738964", "0.49717733", "0.4969237", "0.49655867", "0.49652246", "0.49633723", "0.49536303", "0.4950698", "0.494835", "0.4944872", "0.49400964", "0.49400684", "0.49361044", "0.49356717", "0.49335092", "0.49173096", "0.4908118", "0.4908118", "0.4908118", "0.4908118" ]
0.8339994
0
Method getProperty.Returns the contents of the collection in an Array. Note: Just in case the collection contents are changing in another thread, we pass a 0length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public cto.framework.service.schema.Property[] getProperty() { cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0]; return this._propertyList.toArray(array); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Property[] getProperties();", "public void testGetArray() {\n System.out.println(\"getArray\"); // NOI18N\n \n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n PropertyValue arrayPropertyValue = PropertyValue.createValue(primitveDescritor, type, DesignComponentTest.PROPERTY1_VALUE_STRING); // NOI18N\n List<PropertyValue> array = new ArrayList();\n \n array.add(arrayPropertyValue);\n \n PropertyValue result = PropertyValue.createArray(type,array);\n \n type = type.getArrayType();\n assertEquals(type,result.getType());\n assertNotNull(result.getArray());\n }", "public List<TLProperty> getElements();", "public ArrayList<Property> getPropertyList()\r\n {\r\n return m_values;\r\n }", "PropertyArray(Collection<?> collection) {\n if (collection == null) {\n this.myArrayList = new ArrayList<>();\n } else {\n this.myArrayList = new ArrayList<>(collection.size());\n for (Object o : collection) {\n this.myArrayList.add(PropertyObject.wrap(o));\n }\n }\n }", "protected Object[] getArray(){\r\n\t \treturn array;\r\n\t }", "java.util.List<org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement> \n getPropsList();", "@Nullable\n @Generated\n @Selector(\"propertiesToFetch\")\n public native NSArray<?> propertiesToFetch();", "private Object[] getSamplePropertiesAsArray()\n {\n return (swp.get(0)).getPropertyTypes().toArray();\n\n }", "public synchronized String getProperty(String name)\n throws Fault {\n if (props == null) {\n // reconstitute properties\n // this may result in a Fault, which is okay\n reload();\n }\n\n return PropertyArray.get(props, name);\n }", "public abstract DtPropuesta[] getPropuestasPopulares();", "@Kroll.getProperty\n\tpublic Object[] getData()\n\t// clang-format on\n\t{\n\t\treturn this.sections.toArray();\n\t}", "public Polynomial[] getAsArray() {\n Polynomial[] list = new Polynomial[collection.size()];\n\n for (int i = 0; i < collection.size(); i++) {\n list[i] = collection.get(i);\n }\n return list;\n }", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "public ArrayList<Property> getProperties() {\r\n\t\ttry {\r\n\t\t\tproperties.clear();\r\n\t\t\tFileInputStream fis = new FileInputStream(PROPERTY_FILEPATH);\r\n \tObjectInputStream ois = new ObjectInputStream(fis);\r\n \t\r\n \tProperty obj = null;\r\n \twhile ((obj=(Property)ois.readObject())!=null) {\r\n \t\tproperties.add(obj);\r\n \t}\r\n \tois.close();\r\n }\r\n\t\tcatch (EOFException e) {\r\n\t\t\tSystem.out.println(\"End of file reached.\");\r\n }\r\n catch (ClassNotFoundException e) {\r\n \te.printStackTrace();\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n }\r\n\t\treturn properties;\r\n\t}", "ArrayMixedObject getArray() {\n\t\treturn array;\n\t}", "public amdocs.iam.pd.webservices.productattrrel.productdetailsoutput.Value[] getValueArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(VALUE$0, targetList);\n amdocs.iam.pd.webservices.productattrrel.productdetailsoutput.Value[] result = new amdocs.iam.pd.webservices.productattrrel.productdetailsoutput.Value[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public Object getArray() {\n\t\treturn array;\n\t}", "protected String[] getCIMPropertyArrayValue(CIMInstance instance, String propName) {\n String[] value = null;\n try {\n value = (String[]) instance.getPropertyValue(propName);\n } catch (Exception e) {\n _logger.warn(\"Property {} Not found in returned Instance {}\", propName, instance.getObjectPath());\n }\n return value;\n }", "com.google.protobuf.ByteString\n getPropertyBytes();", "public static String[] getPropertyValueOfElements(Node aggregate, String property) {\n if (!aggregate.hasLabel(AGGREGATE))\n throw new IllegalArgumentException(\n \"Node \" + NodeUtilities.getNodePropertiesAsString(aggregate) + \" is not an aggregate.\");\n Iterable<Relationship> elementRels = aggregate.getRelationships(Direction.OUTGOING, ConceptEdgeTypes.HAS_ELEMENT);\n List<String> elementValues = new ArrayList<>();\n for (Relationship elementRel : elementRels) {\n String[] value = NodeUtilities.getNodePropertyAsStringArrayValue(elementRel.getEndNode(), property);\n for (int i = 0; value != null && i < value.length; i++)\n elementValues.add(value[i]);\n }\n return elementValues.isEmpty() ? null : elementValues.toArray(new String[0]);\n }", "public double[] getDoubleArray(String property)\n\tthrows PropertiesPlusException\n\t{\n\t\tString value = getProperty(property);\n\t\tif (value == null)\n\t\t\treturn null;\n\t\ttry\n\t\t{\n\t\t\tScanner in = new Scanner(value.trim().replaceAll(\",\", \" \"));\n\t\t\tArrayListDouble dbl = new ArrayListDouble();\n\t\t\twhile (in.hasNext())\n\t\t\t\tdbl.add(in.nextDouble());\n\t\t\tin.close();\n\n\t\t\treturn dbl.toArray();\n\t\t}\n\t\tcatch (NumberFormatException ex)\n\t\t{\n\t\t\tthrow new PropertiesPlusException(String.format(\n\t\t\t\t\t\"%s = %s cannot be converted to type double[]\", property, value));\n\t\t}\n\t}", "ArrayList<PropertyMetadata> getProperties();", "public abstract String GetProperty(Slice property);", "public com.mozu.api.contracts.content.PropertyTypeCollection getList(com.mozu.api.DataViewMode dataViewMode, Integer pageSize, Integer startIndex, AuthTicket authTicket) throws Exception\n\t{\n\t\tMozuClient<com.mozu.api.contracts.content.PropertyTypeCollection> client = com.mozu.api.clients.content.PropertyTypeClient.getListClient(dataViewMode, pageSize, startIndex, authTicket);\n\t\tclient.setContext(_apiContext);\n\t\tclient.executeRequest();\n\t\treturn client.getResult();\n\n\t}", "public Object[] getList() {\n Object[] list = new Object[size()];\n copyInto(list);\n return list;\n }", "com.google.protobuf.ByteString\n getPropertyBytes();", "public static String[] getStringPlusProperty(Object property) {\n if (property instanceof String) {\n return new String[] {(String)property};\n } else if (property instanceof String[]) {\n return (String[])property;\n } else if (property instanceof Collection) {\n try {\n @SuppressWarnings(\"unchecked\")\n Collection<String> strings = (Collection<String>)property;\n return strings.toArray(new String[strings.size()]);\n } catch (ArrayStoreException ase) {\n // ignore collections with wrong type\n }\n }\n return new String[0];\n }", "List<Object> getListProperty(Object name) throws JMSException;", "ArrayList<String> returnArray() {\n\t\treturn stringArray; // Return just the array and not the Set object\n\t}", "PropertyDesc[] getPropertyDesc()\r\n\t{\r\n\t\tPropertyDesc[] p = new PropertyDesc[properties.size()];\r\n\t\tint i = 0;\r\n\t\tfor (Variable v : properties)\r\n\t\t{\r\n\t\t\tp[i++] = new PropertyDesc(v.name, v.varType, v.classID);\r\n\t\t}\r\n\t\treturn p;\r\n\t}", "public String[] getArrayValue();", "public java.util.List<org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement> getPropsList() {\n if (propsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(props_);\n } else {\n return propsBuilder_.getMessageList();\n }\n }", "T[] getObjects() {\n\t\treturn this.array;\n\t}", "public Object[] getElements() {\r\n\t\treturn data.toArray();\r\n\t}", "public COSArray toList() \n {\n return array;\n }", "public int[] getIntArray(String property)\n\tthrows PropertiesPlusException\n\t{\n\t\tString value = getProperty(property);\n\t\tif (value == null)\n\t\t\treturn null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tScanner in = new Scanner(value.trim().replaceAll(\",\", \" \"));\n\t\t\tArrayListInt ints = new ArrayListInt();\n\t\t\twhile (in.hasNext())\n\t\t\t\tints.add(in.nextInt());\n\t\t\tin.close();\n\n\t\t\treturn ints.toArray();\n\t\t}\n\t\tcatch (NumberFormatException ex)\n\t\t{\n\t\t\tthrow new PropertiesPlusException(String.format(\n\t\t\t\t\t\"%s = %s cannot be converted to type int[]\", property, value));\n\t\t}\n\t}", "public ArrayList<String[]> getArr() {\r\n\t\treturn arr;\r\n\t}", "public String[] getArray(){\n return (String[])this.items.toArray();\n }", "java.lang.String getCollection();", "PropertyArray() {\n this.myArrayList = new ArrayList<>();\n }", "public double[] getArray(){\n\t\t\treturn anArray; //FAIL\n\t\t}", "public ArrayList<pfrnd> get() {\n\t\treturn pro;\r\n\t}", "public E[] getArray() {\n return this.array;\n }", "public Collection<ModuleProperty> getProperties();", "public java.util.List<org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement> getPropsList() {\n return props_;\n }", "@Test\n public void testReadProperty() {\n DoubleArrayPropertyPersistenceHandler handler = new DoubleArrayPropertyPersistenceHandler();\n\n Element propertyTag = new Element(\"anyTag\"); //$NON-NLS-1$\n Element arrayTag = new Element(\n DoubleArrayPropertyPersistenceHandler.XML_ELEMENT_DOUBLE_ARRAY);\n propertyTag.addContent(arrayTag);\n\n arrayTag.addContent(new Element(\n DoubleArrayPropertyPersistenceHandler.XML_ELEMENT_DOUBLE)\n .setAttribute(XmlConstants.XML_ATTRIBUTE_VALUE, \"1.0\")); //$NON-NLS-1$\n arrayTag.addContent(new Element(\n DoubleArrayPropertyPersistenceHandler.XML_ELEMENT_DOUBLE)\n .setAttribute(XmlConstants.XML_ATTRIBUTE_VALUE, \"2.0\")); //$NON-NLS-1$\n arrayTag.addContent(new Element(\n DoubleArrayPropertyPersistenceHandler.XML_ELEMENT_DOUBLE)\n .setAttribute(XmlConstants.XML_ATTRIBUTE_VALUE, \"3.0\")); //$NON-NLS-1$\n arrayTag.addContent(new Element(\n DoubleArrayPropertyPersistenceHandler.XML_ELEMENT_DOUBLE)\n .setAttribute(XmlConstants.XML_ATTRIBUTE_VALUE, \"4.0\")); //$NON-NLS-1$\n\n Object propertyValue = handler.readProperty(propertyTag);\n\n assertTrue(propertyValue instanceof double[]);\n\n double[] doubleArray = (double[]) propertyValue;\n\n assertEquals(4, doubleArray.length);\n assertEquals(1.0, doubleArray[0], 0.001);\n assertEquals(2.0, doubleArray[1], 0.001);\n assertEquals(3.0, doubleArray[2], 0.001);\n assertEquals(4.0, doubleArray[3], 0.001);\n }", "public java.lang.Object[] getPresentationAsArray();", "public final Object[] getArray() {\n return array;\n }", "public com.walgreens.rxit.ch.cda.StrucDocSub[] getSubArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(SUB$2, targetList);\n com.walgreens.rxit.ch.cda.StrucDocSub[] result = new com.walgreens.rxit.ch.cda.StrucDocSub[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "@Override\n\tpublic Object[] toArray() {\n\t\tObject[] result = copyArray(elements, size);\n\n\t\treturn result;\n\t}", "public Double[] get() {\n\t\treturn config;\n\t}", "public byte[] getAsBytes () {\r\n\t \r\n\t //code description\r\n\t \r\n\t Properties p = new Properties();\t\r\n\t return this.getAsBytes(p);\r\n\t \r\n }", "protected Object toPropertyValue(Object value) {\n Iterable it = (Iterable) value;\n Object first = Iterables.firstOrNull(it);\n if (first == null) {\n return EMPTY_ARRAY;\n }\n return Iterables.asArray(first.getClass(), it);\n }", "public String[] getPropertyNames();", "@Test\n public void testGetPropertyAsList() {\n System.out.println(\"getPropertyAsList\");\n Properties props = new Properties();\n String key = \"testProp\";\n props.setProperty(key, \"alpha, beta, gamma\");\n List<String> expResult = Arrays.asList(\"alpha\", \"beta\", \"gamma\");\n List<String> result = EngineConfiguration.getPropertyAsList(props, key);\n assertEquals(expResult, result);\n }", "public java.lang.String getCollection() {\n return instance.getCollection();\n }", "public net.opengis.gml.x32.CoordinateSystemAxisPropertyType[] getAxisArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(AXIS$1, targetList);\n net.opengis.gml.x32.CoordinateSystemAxisPropertyType[] result = new net.opengis.gml.x32.CoordinateSystemAxisPropertyType[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public org.hl7.fhir.ResourceReference[] getMemberArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MEMBER$14, targetList);\n org.hl7.fhir.ResourceReference[] result = new org.hl7.fhir.ResourceReference[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public Properties getProperty() {\r\n return properties;\r\n }", "String getCollection();", "@Override\n public String[] getPropertyNames() {\n final String[] names = new String[this.properties.size()];\n this.properties.keySet().toArray(names);\n return names;\n }", "com.google.protobuf.ByteString\n getCollectionBytes();", "@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn snapshot().toArray();\n\t\t}", "public StaticPropertyOracle[] getPropertyOracles() {\n return orderedPropertyOracles.toArray(new StaticPropertyOracle[orderedPropertyOracles.size()]);\n }", "public entity.APDExposure_Description_L10N getDescription_L10N_ARRAYByLanguage(com.guidewire.commons.entity.type2.IAssociativeArrayPropertyInfo property);", "Collection getData();", "public Object getProperties() {\n return this.properties;\n }", "public Collection<JSONObject> getCollection(String propertyName) {\n Collection<JSONObject> result = null;\n if (this.propertyBag.has(propertyName) && !this.propertyBag.isNull(propertyName)) {\n result = new ArrayList<JSONObject>();\n JSONArray jsonArray = this.propertyBag.getJSONArray(propertyName);\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n result.add(jsonObject);\n }\n }\n\n return result; \n }", "public Object getValueArray(int offset, int length);", "public com.walgreens.rxit.ch.cda.StrucDocCol[] getColArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(COL$2, targetList);\n com.walgreens.rxit.ch.cda.StrucDocCol[] result = new com.walgreens.rxit.ch.cda.StrucDocCol[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "public int[] get() {\n return res;\n }", "public Object[] backingArray()\n {\n return array;\n }", "public Object[] getArray() {\n compress();\n return O;\n }", "public com.mozu.api.contracts.content.PropertyTypeCollection getList(com.mozu.api.DataViewMode dataViewMode) throws Exception\n\t{\n\t\treturn getList(dataViewMode, null, null, null);\n\t}", "public Object[] toArray() {\n Object[] arr = new Object[size];\n for(int i = 0; i < this.size; i++) {\n arr[i] = this.get(i);\n }\n return arr;\n }", "public String[] getValue() {\n return value;\n\t}", "public Expression getArray()\n {\n return getExpression();\n }", "public List<Integer> getListProperty() {\n\t\t\treturn null;\n\t\t}", "PropertyValue<?, ?>[] values();", "@Test\r\n\tpublic void testComplexArrayProperty() throws Exception {\r\n\t\tAdvancedExampleComponent component = new AdvancedExampleComponent();\r\n\t\tXMLBasedPropertyContainer container = new XMLBasedPropertyContainer(XMLBasedPropertyProvider.getInstance()\r\n\t\t\t\t.getMetaPropertiesSet(component.getClass()), component);\r\n\r\n\t\t// Retreiving value of complex property.\r\n\t\tProperty subProperty = container.getProperty(\"complexArrayProperty[0].intProperty\");\r\n\t\tsubProperty.setValue(0);\r\n\t\tassertNotNull(subProperty);\r\n\r\n\t\t// Attaching monitor to the property.\r\n\t\tPropertyMonitorStub monitor = new PropertyMonitorStub();\r\n\t\tcontainer.addPropertyMonitor(\"complexArrayProperty[0].intProperty\", monitor);\r\n\t\tsubProperty.setValue(1);\r\n\t\tassertEquals(1, monitor.getPropertyChangedInvokationCounter());\r\n\t\tcontainer.removePropertyMonitor(\"complexArrayProperty[0].intProperty\", monitor);\r\n\r\n\t\t// Attaching monitor only to \"complexArrayProperty\"\r\n\t\tmonitor = new PropertyMonitorStub();\r\n\t\tcontainer.addPropertyMonitor(\"complexArrayProperty\", monitor);\r\n\t\tsubProperty.setValue(0);\r\n\t\tassertEquals(1, monitor.getPropertyChangedInvokationCounter());\r\n\t\tcontainer.removePropertyMonitor(\"complexArrayProperty\", monitor);\r\n\r\n\t\t// The monitor should not get the message now.\r\n\t\tsubProperty.setValue(1);\r\n\t\tassertEquals(1, monitor.getPropertyChangedInvokationCounter());\r\n\t}", "public GameProperty [] getGameProperties() {\n return this.GameProperties;\n }", "public String getProperty();", "@Override\n\tpublic List<Property> findAll() {\n\t\treturn pr.findAll();\n\t}", "public Object[] getValues();", "PropertyArray getJSONArray(int index) throws PropertyException {\n Object object = this.get(index);\n if (object instanceof PropertyArray) {\n return (PropertyArray) object;\n }\n throw new PropertyException(\"JSONArray[\" + index + \"] is not a JSONArray.\");\n }", "public void testCreateArray() {\n System.out.println(\"createArray\");// NOI18N\n \n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n PrimitiveDescriptor arrayDescriptor = new PrimitiveDescriptor() {\n public Object deserialize(String serialized) {\n return \"array\"; //NOI18N\n }\n public boolean isValidInstance(Object object) {\n return true;\n }\n public String serialize(Object value) {\n return \"array\"; // NOI18N\n }\n };\n \n PropertyValue arrayPropertyValue = PropertyValue.createValue( arrayDescriptor, type, DesignComponentTest.PROPERTY3_VALUE_STRING);// NOI18N\n List<PropertyValue> array = new ArrayList();\n array.add(arrayPropertyValue);\n \n PropertyValue result = PropertyValue.createArray(type, array);\n \n assertEquals(PropertyValue.Kind.ARRAY, result.getKind());\n type = type.getArrayType();\n assertEquals(type,result.getType());\n assertNotNull(result.getArray());\n }", "@Override\r\n\tpublic Object[] toArray() {\n\t\treturn set.toArray();\r\n\t}", "public Object[] toArray() {\n\t\treturn null;\n\t}", "public com.google.protobuf.ByteString\n getCollectionBytes() {\n return instance.getCollectionBytes();\n }", "@Override\n\tpublic Object[] toArray() {\n\t\treturn snapshot().toArray();\n\t}", "Object getProperty(String requestedProperty) {\n return properties.getProperty(requestedProperty);\n }", "public Object getProperty (String index) ;", "public synchronized Object[] toArray() {\r\n ProjectFilePart[] array = toArray(new ProjectFilePart[0]);\r\n return array;\r\n }", "private Object[] elements() {\n return elements.toArray();\n }", "public double[] getDoubleArray(String property, double[] defaultValue)\n\tthrows PropertiesPlusException\n\t{\n\t\tString value = getProperty(property);\n\t\tif (value == null)\n\t\t{\n\t\t\tif (defaultValue == null)\n\t\t\t{\n\t\t\t\taddRequestedProperty(property, \"null\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\taddRequestedProperty(property, Arrays.toString(defaultValue));\n\t\t\treturn defaultValue;\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tScanner in = new Scanner(value.trim().replaceAll(\",\", \" \"));\n\t\t\tArrayListDouble dbl = new ArrayListDouble();\n\t\t\twhile (in.hasNext())\n\t\t\t\tdbl.add(in.nextDouble());\n\t\t\tin.close();\n\n\t\t\treturn dbl.toArray();\n\t\t}\n\t\tcatch (NumberFormatException ex)\n\t\t{\n\t\t\tthrow new PropertiesPlusException(String.format(\n\t\t\t\t\t\"%s = %s cannot be converted to type double[]\", property, value));\n\t\t}\n\t}", "public Object[] getItems()\n {\n return items.toArray();\n }", "@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn null;\n\t\t}", "T[] getContents();", "Object[] getValues();" ]
[ "0.670583", "0.65097123", "0.6440712", "0.63478845", "0.62107277", "0.60009575", "0.5958122", "0.5931167", "0.5930162", "0.59194386", "0.5914391", "0.588428", "0.5870643", "0.5849122", "0.58111715", "0.57820266", "0.5748729", "0.57338625", "0.57205206", "0.57173085", "0.5712797", "0.5692894", "0.5690443", "0.5656559", "0.5655183", "0.5639317", "0.5631817", "0.56317556", "0.56248176", "0.561909", "0.5590894", "0.5577518", "0.5568705", "0.5558765", "0.5543845", "0.55377346", "0.5508858", "0.54972774", "0.54868054", "0.54848236", "0.5481717", "0.54775125", "0.5475808", "0.546878", "0.5468475", "0.546807", "0.5466419", "0.54499376", "0.54409754", "0.54374427", "0.5431426", "0.541413", "0.5406914", "0.5397419", "0.539423", "0.5389801", "0.53868765", "0.5385638", "0.53838223", "0.5379578", "0.5367014", "0.53598744", "0.5353498", "0.53368163", "0.5336707", "0.5327592", "0.53241795", "0.5321654", "0.5319185", "0.53173953", "0.5316873", "0.5314644", "0.5314514", "0.53097415", "0.5308013", "0.53055066", "0.5303045", "0.53013957", "0.52937484", "0.52934617", "0.5292402", "0.52873653", "0.5287034", "0.52864623", "0.5283304", "0.5275712", "0.5275046", "0.5268038", "0.5255804", "0.52506715", "0.52467036", "0.52433056", "0.5240003", "0.52384984", "0.5236983", "0.5227037", "0.5226362", "0.5219597", "0.52160764", "0.5209057" ]
0.77401644
0
Sets the value of field 'description'.
public void setDescription(final java.lang.String description) { this._description = description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void setDescription(String value) {\n this.description = value;\n }", "public void setDescription(java.lang.String value) {\n this.description = value;\n }", "public void setDescription(final String description) {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description.trim();\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\n _description = description;\n }", "public void setDescription(String _description) {\n this._description = _description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void editDescription(String description) {\n this.description = description;\n }", "public void setDescription(final String description) {\n\t\tthis.description = description;\n\t}", "protected void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n\n this.description = description;\n }", "void setdescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n \tthis.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "protected void setDescription(final String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }", "public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }", "public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }", "private void setDescription(String description)\n {\n if (null == description)\n m_description = \"\";\n else\n m_description = description;\n }", "public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n mDescription = description;\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "public void setDescription(String description) {\r\n this.description = description == null ? null : description.trim();\r\n }", "public void setDescription(String description) {\r\n this.description = description == null ? null : description.trim();\r\n }", "public void setDescription(String description) {\r\n this.description = description == null ? null : description.trim();\r\n }", "public void setDescription(String description){\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }" ]
[ "0.8531879", "0.85246503", "0.84558696", "0.8399707", "0.83911514", "0.8378764", "0.8335908", "0.83350384", "0.83317035", "0.83317035", "0.83317035", "0.83317035", "0.83317035", "0.8321687", "0.8321687", "0.8321687", "0.8321687", "0.8321687", "0.8321687", "0.8321687", "0.831944", "0.83164364", "0.8315927", "0.8311408", "0.8303876", "0.8290641", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8286358", "0.8284435", "0.8281447", "0.8281447", "0.8281447", "0.82706743", "0.8270563", "0.8265709", "0.82651794", "0.82651794", "0.82651794", "0.82651794", "0.82651794", "0.82651794", "0.82651794", "0.82651794", "0.82651794", "0.82651794", "0.82651794", "0.82651794", "0.82651794", "0.82606775", "0.8259338", "0.8259338", "0.8259338", "0.8259338", "0.8259338", "0.8259338", "0.8259338", "0.8250694", "0.8250694", "0.8250694", "0.8249328", "0.8247927", "0.8247927" ]
0.8351732
7
Sets the value of field 'id'.
public void setId(final java.lang.String id) { this._id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setId(final int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}", "public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }", "public void setId (java.lang.Integer id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Long id) {\n this.id.set(id);\n }", "public void setId(final Integer id)\n {\n this.id = id;\n }", "public void setId(final int id) {\n mId = id;\n }", "public void setId(final Integer id) {\n this.id = id;\n }", "public void setId(java.lang.Integer id) {\n this.id = id;\n }", "public void setId(final long id) {\n this.id = id;\n }", "public void setId(int id) {\n\t\tif(id > 0)\n\t\t\tthis.id = id;\n\t}", "public final void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Long id) {\n\t\tsetField(\"id\", id);\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\n\t\tthis._id = id;\n\t}", "public void setId(int id) {\n\t\tthis._id = id;\n\t}", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\n \t\tthis.id = id;\n \t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\r\n\t\t_id = id;\r\n\t}", "public void setId(long id) {\n\t\tgetTo(false).setId(id);\n\t}", "protected void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "public void setId(Integer id) {\n\t\tthis.id = id;\n\t}", "protected void setId(long id) {\n if (this.id == -1)\n this.id = id;\n }", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(final Long id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id){\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(final Long id) {\n this.id = id;\n }", "public void setId(final Long id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}", "@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }" ]
[ "0.85542107", "0.8515913", "0.8515913", "0.85140806", "0.84336644", "0.84019923", "0.83919007", "0.83919007", "0.83919007", "0.83919007", "0.83919007", "0.83919007", "0.83919007", "0.83919007", "0.83919007", "0.83919007", "0.83919007", "0.83887726", "0.8382413", "0.8381815", "0.83803916", "0.837659", "0.836748", "0.8364238", "0.83626485", "0.8351268", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8339779", "0.8320116", "0.8320116", "0.8320116", "0.83192277", "0.83192277", "0.83192277", "0.83192277", "0.83192277", "0.83192277", "0.83192277", "0.83192277", "0.83028316", "0.83028316", "0.82938474", "0.8284566", "0.8272909", "0.8272909", "0.8272909", "0.8272909", "0.8272408", "0.82722974", "0.8254179", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.82515806", "0.8250574", "0.8244537", "0.82442826", "0.8235296", "0.8205056", "0.8205056", "0.8205056", "0.8205056", "0.8205056", "0.8203126", "0.8203126", "0.8201085", "0.8201085", "0.81992054", "0.81992054", "0.81992054" ]
0.0
-1
Sets the value of field 'poolClass'.
public void setPoolClass(final cto.framework.service.schema.types.PoolClassType poolClass) { this._poolClass = poolClass; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public cto.framework.service.schema.types.PoolClassType getPoolClass() {\r\n return this._poolClass;\r\n }", "void setPoolNumber(int poolNumber);", "public void setThreadClass(Class threadClass, int totalPoolSize) throws IllegalClassException, IllegalAccessException, InstantiationException{\n\n\tthis.setPoolLocked(true);\n\tthis.initializePools(threadClass, totalPoolSize);\n\tthis.setPoolLocked(false);\n\n }", "void setPoolId(java.lang.String poolId);", "public void setPoolSize(final int poolSize) {\n this.poolSize = poolSize;\n }", "void setPoolName(java.lang.String poolName);", "protected ClassPool getClassPool() {\r\n return pool;\r\n }", "public void setPoolSize(int aPoolSize) {\n poolSize = aPoolSize;\n }", "public void setPool(boolean mPool) {\r\n this.mPool = mPool;\r\n }", "public void setPoolId(Long poolId);", "public ObjectPool(Class javaBeanClass, String poolName) {\n setObjectFactory(javaBeanClass);\n setName(poolName);\n }", "public PlasticClassPool(ClassLoader parentLoader, PlasticManagerDelegate delegate, Set<String> controlledPackages,\n Set<TransformationOption> options)\n {\n loader = new PlasticClassLoader(parentLoader, this);\n this.delegate = delegate;\n this.controlledPackages = controlledPackages;\n this.options = options;\n }", "public static void setPool(Configuration conf, String pool) {\n conf.set(\"mapred.fairscheduler.pool\", pool);\n }", "void setNilPoolName();", "public void setPoolDataSource(ConnectionPoolDataSource poolDataSource)\n throws SQLException\n {\n DriverConfig driver;\n \n if (_driverList.size() > 0)\n driver = _driverList.get(0);\n else\n driver = createDriver();\n \n driver.setPoolDataSource(poolDataSource);\n }", "public void setClass(String godClass)\r\n {\r\n this.mGodClass = godClass;\r\n }", "void xsetPoolName(org.apache.xmlbeans.XmlString poolName);", "public void setClass_(String newValue);", "void xsetPoolNumber(org.apache.xmlbeans.XmlInt poolNumber);", "public static void setConnectionPool(BoneCP connectionPool) {\n\t\tSQLDataBaseConnector.connectionPool = connectionPool;\n\t}", "void setClassType(String classType);", "protected void initializePools(Class threadClass, int totalPoolSize) throws IllegalClassException, IllegalAccessException, InstantiationException{\n\n\tif(threadClass != null && !(Runnable.class.isAssignableFrom(threadClass)))throw new IllegalClassException();\n\telse{\n\n\t this.threadClass=threadClass;\n\t this.totalPoolSize=totalPoolSize;\n\n\t activePool=new ActivePool(threadClass);\n\t passivePool=new PassivePool(threadClass);\n\n\t for(int i=0;i<totalPoolSize;i++){\n\n\t\ttempThreadCapsule=new ThreadCapsule(threadClass);\n\t\ttempThreadCapsule.setActivePool(activePool);\n\t\ttempThreadCapsule.setPassivePool(passivePool);\n\t\tpassivePool.push(tempThreadCapsule);\n\n\t\tactivePoolSize=activePool.getPresentSize();\n\t\tpassivePoolSize=passivePool.getPresentSize();\n\n\t }//for closing\n\n\t}//else closing\n\n }", "void xsetPoolId(org.apache.xmlbeans.XmlString poolId);", "void setNilPoolId();", "void setPoolRaces(int poolRaces);", "@Override\n\tpublic void setConnectionPoolSize(int arg0) {\n\n\t}", "public void setCollectionClass(Class collectionClass) {\n \t\tthis.collectionClass = collectionClass;\n \t}", "public void setClass(UmlClass c) {\n\t\tlogicalClass = c;\n\t}", "public void setClass (\r\n String strClass) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void setConstantPoolGen(ConstantPoolGen cpg){\n\t\tthis.cpg = cpg;\n\t}", "public void setCollectionClass (String collectionClass)\n\t\t\tthrows ModelException;", "public void setPoolLog(String poolLog) { this.poolLog = poolLog; }", "public void setChosenClass(String chosenClass) {\n this.chosenClass = chosenClass;\n }", "public void setWorkerpool(Executor workerpool) {\n\t pool.setWorkerpool(workerpool);\n\t}", "public void setTaskClass(String taskClass) {\n\t\tthis.taskClass = taskClass;\n\t}", "public void setValueClass(Class<? extends Type> valueClass) {\n this.valueClass = valueClass;\n }", "public PoolBoneCpManager() {\n pool = null;\n }", "public void setClass(String sClass) {\n\t\t\tsRuleClassName = sClass;\n\t\t}", "public void setThreadPoolChooser(String componentId, ThreadPoolChooser aThreadPoolChooser);", "void setMainClass(Class<?> mainClass);", "public static void setPoolProvider(PoolProvider provider) {\n SharedRedisPools.poolProvider = provider;\n }", "public void setTotalPoolSize(int totalPoolSize) throws ClientsUnderServiceException, IllegalClassException, IllegalAccessException, InstantiationException{\n\n\tif(totalPoolSize == this.totalPoolSize)return;\n\n\tif(totalPoolSize > this.totalPoolSize){\n\n\t for(int i=0;i<(totalPoolSize-this.totalPoolSize);i++){\n\n\t\ttempThreadCapsule=new ThreadCapsule(threadClass);\n\t\ttempThreadCapsule.setActivePool(activePool);\n\t\ttempThreadCapsule.setPassivePool(passivePool);\n\t\tpassivePool.push(tempThreadCapsule);\n\n\t\tactivePoolSize=activePool.getPresentSize();\n\t\tpassivePoolSize=passivePool.getPresentSize();\n\n\t }//for closing\n\n\t}//if closing\n\n\telse{\n\n\t poolLocked=true;\n\n\t int reduce=this.totalPoolSize-totalPoolSize;\n\n\t if(reduce > passivePoolSize){\n\n\t\tpoolLocked=false; \n\t\tthrow new ClientsUnderServiceException(\"Clients under service, cannot reduce pool size\");\n\n\t }//if closing\n\n\t else if(reduce == passivePoolSize){poolLocked=false; return;}\n\t else {passivePool.setSize(this.totalPoolSize-reduce); poolLocked=false;}\n\n\t}//else closing\n\n }", "@Override\r\n\t\tpublic void setClassName(String className)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setClassName(String className) { this.className=className; }", "protected void setJavaClass(Class type) {\n this._class = type;\n }", "public void setPooledRatingConfiguration(com.vsp.xl.dto.v002.SimpleCode pooledRatingConfiguration) {\n this.pooledRatingConfiguration = pooledRatingConfiguration;\n }", "public void setBaseClass(Class<?> baseClass)\n {\n this.baseClass = baseClass;\n }", "public Pooled(T t, Pool<T> pool, LogTarget logTarget) {\n\t\t\tcontent = t;\n\t\t\tthis.pool = pool;\n\t\t\tthis.logTarget = logTarget;\n\t\t}", "public void setJavaClass(java.lang.String javaClass)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(JAVACLASS$24);\r\n }\r\n target.setStringValue(javaClass);\r\n }\r\n }", "public void setDriverClass(String driverClass) {\n this.driverClass = driverClass;\n }", "public void setConnectionType(Class<? extends Connection> connectionType)\r\n/* 20: */ {\r\n/* 21: 64 */ this.connectionType = connectionType;\r\n/* 22: */ }", "@ZAttr(id=1112)\n public void setGalLdapGroupHandlerClass(String zimbraGalLdapGroupHandlerClass) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalLdapGroupHandlerClass, zimbraGalLdapGroupHandlerClass);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public ObjectPool(PoolObjectFactory factory, String poolName) {\n setObjectFactory(factory);\n setName(poolName);\n }", "public void setCandidateType(Class cls) {\n _candidate = cls;\n }", "public void setParent(PlasticClassPool parent) \n {\n this.parent = parent;\n parent.children.add(this);\n }", "public void setMinPoolSize(int minPoolSize) {\n this.minPoolSize = minPoolSize;\n }", "public void setName(String name) {\n if (name == null || name.length() == 0)\n throw new IllegalArgumentException(\"Cannot set pool name to null or empty!\");\n if (poolName != null && !poolName.equals(name))\n throw new IllegalStateException(\"Cannot change pool name once set!\");\n poolName = name;\n log = Logger.getLogger(ObjectPool.class.getName() + \".\" + name);\n }", "public void setClassId(int value) {\r\n this.classId = value;\r\n }", "public static PoolInfoProvider loadPoolInstance( String poolClass,\n String poolProvider, int lMode ) {\n\n Object argList[] = new Object[2 ];\n argList[ 0 ] = poolProvider;\n argList[ 1 ] = edu.isi.pegasus.common.util.CommonProperties.PROPERTY_FILENAME;\n\n return loadPoolInstance( poolClass, lMode, argList );\n\n }", "public void setSocketFactoryClass(String socketFactoryClass) {\n\t\tthis.socketFactoryClass = socketFactoryClass;\n\t}", "public void setClassType(String classType) {\n this.classType = classType == null ? null : classType.trim();\n }", "public void setRandomClass(String randomClass) {\n _randomClass = randomClass;\n _random = null;\n }", "public void setPropertyClass(Integer propertyClass)\r\n\t{\r\n\t\tthis.propertyClass = propertyClass;\r\n\t}", "public void setClassName(String className) {\n this.className = className;\n }", "public void setClassName(String className) {\n this.className = className;\n }", "public void setClassName(String className) {\n this.className = className;\n }", "public void setClassName(String className) {\n this.className = className;\n }", "public void setDriverClass(String driverClass) throws PropertyVetoException {\n\t\tthis.dataSource.setDriverClass(driverClass);\n\t}", "public void assignClass(Player p, String className)\n {\n petMap.remove(p);\n randoms.remove(p);\n classMap.put(p, className);\n \n MAUtils.clearInventory(p);\n \n // If random, don't give any items yet.\n if (className.equalsIgnoreCase(\"random\"))\n {\n randoms.add(p);\n return;\n }\n \n MAUtils.giveItems(p, classItems.get(className), autoEquip, plugin);\n MAUtils.giveItems(p, classArmor.get(className), autoEquip, plugin);\n \n int pets = MAUtils.getPetAmount(p);\n if (pets > 0) petMap.put(p, pets);\n }", "public void setCallbackHandlerClass(String callbackHandlerClass) {\n this.callbackHandlerClass = callbackHandlerClass;\n LOG.fine(\"Setting callbackHandlerClass: \" + callbackHandlerClass);\n }", "public void setClazz(String clazz);", "public void setMaxPoolTime(Period maxPoolTime)\n {\n long period = maxPoolTime.getPeriod();\n \n if (period < 0)\n _maxPoolTime = Long.MAX_VALUE / 2;\n else if (period == 0)\n _maxPoolTime = 1000L;\n else\n _maxPoolTime = period;\n }", "@JsonProperty(\"processClass\")\r\n public void setProcessClass(String processClass) {\r\n this.processClass = processClass;\r\n }", "public void setProductClass(String value) {\n setAttributeInternal(PRODUCTCLASS, value);\n }", "public static PoolInfoProvider loadPoolInstance( String poolClass,\n String poolProvider, String propFileName, int lMode ) {\n\n Object argList[] = new Object[2 ];\n argList[ 0 ] = poolProvider;\n argList[ 1 ] = propFileName;\n\n return loadPoolInstance( poolClass, lMode, argList );\n\n }", "void unsetPoolNumber();", "@ZAttr(id=1112)\n public Map<String,Object> setGalLdapGroupHandlerClass(String zimbraGalLdapGroupHandlerClass, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalLdapGroupHandlerClass, zimbraGalLdapGroupHandlerClass);\n return attrs;\n }", "public void setDataClass(Class<?> clazz) {\n\t\t\n\t}", "public void setClassData(RPGClass classData) {\n this.classData = classData;\n }", "public void setMainClass(String mainClass) {\n\t\tthis.mainClass = mainClass;\n\t}", "public void setCollectionClass (String collectionClass)\n\t\tthrows ModelException\n\t{\n\t\tgetRelationshipImpl().setCollectionClass(collectionClass);\n\t}", "public void xsetJavaClass(org.apache.xmlbeans.XmlNMTOKEN javaClass)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNMTOKEN target = null;\r\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(JAVACLASS$24);\r\n }\r\n target.set(javaClass);\r\n }\r\n }", "public void setClassid(Integer classid) {\r\n this.classid = classid;\r\n }", "private void setPersonsInPool(ArrayList<Person> personsInPool) {\n this.personsInPool = personsInPool;\n }", "public final void mT__275() throws RecognitionException {\r\n try {\r\n int _type = T__275;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:276:8: ( 'set-class=' )\r\n // InternalSpringConfigDsl.g:276:10: 'set-class='\r\n {\r\n match(\"set-class=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "@JsonProperty(\"processClass\")\r\n @JacksonXmlProperty(localName = \"process_class\", isAttribute = true)\r\n public void setProcessClass(String processClass) {\r\n this.processClass = processClass;\r\n }", "public void setDBInstanceClass(String dBInstanceClass) {\n this.dBInstanceClass = dBInstanceClass;\n }", "public void setCls(String cls) {\n\t\tthis.cls = cls;\n\t\thandleConfig(\"cls\", cls);\n\t}", "public void setClassification(String classification) {\r\n\t\tif (this.compareFields(this.classification, classification)) {\r\n\t\t\tthis.fireUpdatePendingChanged(true);\r\n\t\t}\r\n\t\tthis.classification = classification != null ? classification.trim()\r\n\t\t\t\t: null;\r\n\t}", "public GraphPool() {\n\t\tmMetadataPool = new PoolNodeMetadata();\n\t\tmIdentifierPool = new PoolNodeIdentifier(mMetadataPool);\n\t\tmLinkPool = new PoolExpandedLink(mIdentifierPool, mMetadataPool);\n\t}", "public void setClazzName(String clazz);", "public ConstantPool() {\n super(ActionType.CONSTANT_POOL);\n }", "public void setClassName(String className) {\r\n this.className = className == null ? null : className.trim();\r\n }", "public void setResourceClass(final String resourceClass) {\n this.resourceClass = resourceClass;\n }", "void setClassOfService(ClassOfService serviceClass);", "public void setClassName(java.lang.String className) {\n this._className = className;\n }", "public void useCollectionClass(Class concreteContainerClass) {\n this.setContainerPolicy(ContainerPolicy.buildPolicyFor(concreteContainerClass));\n }", "@objid (\"59808615-06b0-48b7-a027-38d78fc10bd5\")\n void setReferencedClassName(String value);", "public void setClassName(String className) {\n this.className = className == null ? null : className.trim();\n }", "private void setJedisFromPool() {\n\t\tjedis = jedisPool.getResource();\n\t}" ]
[ "0.65698653", "0.6504641", "0.6431913", "0.6253778", "0.61964065", "0.6193751", "0.61308885", "0.6015963", "0.58430004", "0.5832659", "0.5761279", "0.56200284", "0.5607197", "0.55826974", "0.5556395", "0.5512574", "0.5511881", "0.55114377", "0.5461633", "0.54545605", "0.5439537", "0.54355764", "0.54305774", "0.5369988", "0.5369159", "0.5345396", "0.5306304", "0.5290735", "0.5289022", "0.5284052", "0.5280086", "0.5272535", "0.5247125", "0.5242837", "0.5165452", "0.5149524", "0.51485115", "0.51452404", "0.5130985", "0.5104883", "0.50828993", "0.50685513", "0.50412166", "0.50164527", "0.50050366", "0.49929872", "0.49890533", "0.49838296", "0.49766627", "0.4971815", "0.49640313", "0.49629694", "0.495659", "0.49373016", "0.4936885", "0.4932409", "0.49238637", "0.49193433", "0.49110284", "0.48897803", "0.48885643", "0.48590606", "0.48582178", "0.4855396", "0.48336577", "0.48336577", "0.48336577", "0.48224753", "0.48200312", "0.48123768", "0.4808291", "0.47992468", "0.47990212", "0.4790919", "0.47787422", "0.47649816", "0.47546983", "0.47466317", "0.4744638", "0.4741586", "0.47400585", "0.4737136", "0.47285125", "0.47206086", "0.47186714", "0.4717197", "0.47159138", "0.47013006", "0.46890658", "0.46865788", "0.4680992", "0.46805573", "0.46719238", "0.46651518", "0.46625912", "0.46616653", "0.46522427", "0.4652127", "0.46496037", "0.46473804" ]
0.8477129
0
To test the username editText
@Test public void usernameText() { onView(withId(R.id.edUserReg)).perform(typeText("Jade")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testInvalidUserName() {\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"username_edit_text\"))\n .setText(INVALID_USERNAME_TO_BE_TYPED);\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"password_edit_text\"))\n .setText(PASSWORD_TO_BE_TYPED);\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"login_button\"))\n .click();\n\n }", "private boolean checkUsername() {\n if(getUsername.getText().compareTo(\"\") != 0) { return true; }\n else {\n errorMessage.setText(\"Please enter a username.\");\n return false;\n }\n }", "@Test\n public void wrongUsername(){\n solo .sleep (1000);\n solo.assertCurrentActivity(\"Wrong activity\", UserProfileActivity.class);\n TextView view = null ;\n\n String correctUsername = firebaseAuth.getCurrentUser().getDisplayName();\n view = (TextView) solo .getView ( \"user_name\" );\n assertEquals ( correctUsername , view.getText());\n }", "public boolean askForUsername()\r\n\t{\r\n\t\tboolean nameEntered = true;\r\n\r\n\t\tTextInputDialog dialog = new TextInputDialog();\r\n\t\tdialog.setTitle(\"Nom d'utilisateur\");\r\n\t\tdialog.setHeaderText(null);\r\n\t\tdialog.setContentText(\"Entrer un nom d'utilisateur:\");\r\n\t\tOptional<String> result = dialog.showAndWait();\r\n\t\tif (result.isPresent())\r\n\t\t{\r\n\t\t\ttextFieldNomUtilisateur.setText(result.get());\r\n\t\t} else\r\n\t\t{\r\n\t\t\tnameEntered = false;\r\n\t\t}\r\n\r\n\t\treturn nameEntered;\r\n\t}", "@Override\n public String getUsername() {\n String username = mTxtUsername.getText().toString().trim()\n .toLowerCase(Locale.getDefault());\n checkUsername(username);\n return username;\n }", "@Override\n\t\t\tpublic void onTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) {\n\t\t\t\tet_password.setError(null);\n\t\t\t\tet_username.setError(null);\n\t\t\t\tmUser = et_username.getText().toString();\n\t\t\t\tmPass = et_password.getText().toString();\n\t\t\t\tboolean cancel = false;\n\t\t\t\tView focusview = null;\n\t\t\t\tif (TextUtils.isEmpty(mUser)) {\n\t\t\t\t\tet_username.setError(getString(R.string.pleaseEnterUsername));\n\t\t\t\t\tfocusview = et_username;\n\t\t\t\t\tcancel = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (cancel) {\n\t\t\t\t\tfocusview.requestFocus();\n\t\t\t\t} \n\t\t\t}", "private String getUserName() {\n EditText nameEditText = (EditText) findViewById(R.id.name_edit_text);\n return nameEditText.getText().toString().trim();\n }", "@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\tif(!TextUtils.isEmpty(et_username.getText()))\n\t\t\t\t{\n\t\t\t\t\ttv_errortip_username.setVisibility(View.INVISIBLE);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttv_errortip_username.setText(\"*用户名输入不能为空\");\n\t\t\t\t\ttv_errortip_username.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t}", "public void userNameInput()\n {\n if(forgotPasswordModel.userExists(textBox1.getText())) {\n\n user = forgotPasswordModel.getUser(textBox1.getText());\n userName = false;\n secQuestion = true;\n String txt = \"Your secret question is: \" + user.getSecretQ();\n labelHeader.setText(txt);\n textBox1Label.setText(\"Answer\");\n textBox1.promptTextProperty().set(\"Security Question Answer\");\n textBox1.setText(\"\");\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setContentText(\"Username does not exist!\");\n alert.show();\n }\n }", "public void setUsername(java.lang.CharSequence value) {\n this.username = value;\n }", "public void typeUserName(String text) {\n txtUserName().typeText(text);\n }", "@When(\"^The user enter the username$\")\n\tpublic void the_user_enter_the_username() throws Throwable {\n\t\t\n\t lpw.username_textbox();\n\t}", "private boolean isValidUsername(EditText edtDisplayName) {\n boolean isValid = edtDisplayName.getText().length() != 0;\n\n if (!isValid) {\n edtDisplayName.setError(getString(R.string.required_field));\n }\n\n return isValid;\n }", "@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\tu.setUsername(s.toString());\n\t\t\t\n\t\t\t}", "public void checkUsername(ActionEvent actionEvent) {\n String temp= ClientAPI.getForgetPassword(username.getText());\n if(temp==null){\n userExist.setVisible(true);\n } else{\n userExist.setVisible(false);\n question.setText(temp.substring(0, temp.indexOf(\"|\")));\n help=temp.substring(temp.indexOf(\"|\")+1, temp.lastIndexOf(\"|\"));\n password.setText(temp.substring(temp.lastIndexOf(\"|\")+1));\n question.setVisible(true);\n }\n }", "@Test\n public void testValidUserNamePassword() {\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"username_edit_text\"))\n .setText(USERNAME_TO_BE_TYPED);\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"password_edit_text\"))\n .setText(PASSWORD_TO_BE_TYPED);\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"login_button\"))\n .click();\n UiObject2 welcomeText = mDevice\n .wait(Until.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"welcome_text_view\")),\n 500 /* wait 500ms */);\n assertThat(welcomeText.getText(), is(equalTo(WELCOME)));\n\n UiObject2 usernameText = mDevice\n .wait(Until.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"username_value\")),\n 500 /* wait 500ms */);\n assertThat(usernameText.getText(), is(equalTo(USERNAME_TO_BE_TYPED)));\n\n UiObject2 passwordText = mDevice\n .wait(Until.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"password_value\")),\n 500 /* wait 500ms */);\n assertThat(passwordText.getText(), is(equalTo(PASSWORD_TO_BE_TYPED)));\n\n }", "private void login() {\n\t\t \tetUserName.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etUserName);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t \t\n\t\t \t // TextWatcher would let us check validation error on the fly\n\t\t \tetPass.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etPass);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t }", "@When(\"^user should enter the valid username in the loginpage$\")\n\tpublic void user_should_enter_the_valid_username_in_the_loginpage() throws Throwable {\n\t inputValuestoElement(pa.getAp().getUsernamedisplay(), \"Srini1010\");\n\t}", "public void verifyNickname (View view){\n EditText nicknameInput = findViewById(R.id.inscr_nickname_input);\n String nickname = nicknameInput.getText().toString();\n\n\n verifyDatabaseNickname(nickname);\n }", "public boolean checkUsername(String user) {\n\n }", "private void requestUserName() {\n // Show an alert to ask for the name\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Enter name:\");\n\n final EditText input_field = new EditText(this);\n\n builder.setView(input_field);\n\n // If a name is provided, let the user pass after pressing Ok\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n name = input_field.getText().toString();\n }\n });\n // If a no name is provided, prompt again\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n requestUserName();\n }\n });\n\n builder.show();\n }", "public void validateUserName(String name) {\n\t\ttry {\n\t\t\tAssert.assertTrue(userName.getText().equalsIgnoreCase(\"Hi \"+name),\"Username is correctly displayed\");\n\t\t\tLog.addMessage(\"Username correctly displayed\");\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Validation of User Login is failed\");\n\t\t\tLog.addMessage(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to validate User Login\");\n\t\t}\n\t}", "@Override\n public void onClick(View view) {\n inputUsername = usernameInput.getText().toString().trim();\n inputPassword = passwordInput.getText().toString();\n\n if(!inputUsername.contains(\"@gmail.com\")){\n inputUsername = inputUsername.concat(\"@gmail.com\");\n //Toast.makeText(MainActivity.this, \"Email: \" + inputUsername, Toast.LENGTH_SHORT).show();\n }\n\n //Toast.makeText(MainActivity.this, \"Email: \" + inputUsername, Toast.LENGTH_SHORT).show();\n checkEmail(inputUsername);\n }", "public void typeUsername(String username) {\n /*Notice that clearText() implemented before typeText().\n * This is considered to be a 'safe' operation, since in the case there is text already there\n * it will be deleted first, preventing the test from returning a failure for a different scenario.*/\n USERNAME_EDIT.perform(clearText(), typeText(username));\n }", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jtxt_username.getText().contains(\"Type in your username...\")){\n jtxt_username.setText(\"\");\n }\n }", "void checkUserName() {\n usernameChecked = false;\n signInUpController.checkUserName(userNameText.getText().toString(), new OnTaskListeners.Bool() {\n @Override\n public void onSuccess(Boolean result) {\n usernameChecked = true;\n if (result)\n uniqueUsername = false;\n else\n uniqueUsername = true;\n\n\n }\n });\n }", "public static Boolean checkUsername(String username){\n\t\t//String username = txtUsername.getText();\n\t\t//System.out.println(username);\n\t\treturn (username.equals(\"Admin\"));\n\t}", "@Override\n public void onClick(View view) {\n Editable userEditable = userName.getText();\n if (userEditable == null || userEditable.toString().equals(\"\")) {\n toastMessage(getString(R.string.inputYourUserName));\n return;\n }\n userNameStr = userEditable.toString();\n if (!Checker.isUserName(userNameStr)) {\n toastMessage(getString(R.string.inputSuitableUserName));\n return;\n }\n Log.i(TAG, \"get the user name: \" + userNameStr);\n\n\n //************************************************************************//\n //************************************************************************//\n // Get the passwd.\n Editable passwdEditable = passwd.getText();\n if (passwdEditable == null || passwdEditable.toString().equals(\"\")) {\n toastMessage(getString(R.string.inputYourUserPasswd));\n return;\n }\n passwdStr = passwdEditable.toString();\n if (!Checker.isPasswd(passwdStr)) {\n toastMessage(getString(R.string.inputSuitableUserPasswd));\n return;\n }\n\n\n //************************************************************************//\n //************************************************************************//\n // confirm the passwd.\n Editable passwdConfirmEditable = confirm.getText();\n if (passwdConfirmEditable == null\n || passwdConfirmEditable.toString().equals(\"\")) {\n toastMessage(getString(R.string.inputYourUserPasswdAgain));\n return;\n }\n String passwdConfirm = passwdConfirmEditable.toString();\n if (!passwdConfirm.equals(passwdStr)) {\n toastMessage(getString(R.string.inputSamePasswd));\n return;\n }\n Log.i(\"Register\", \"get the userPasswd: \" + passwdStr);\n\n AsyncInetClient.getInstance().addUser(userNameStr, passwdStr, signUpResponseHandler);\n\n }", "private String displayUsername() {\n // Get username entered from the previous page and display in the current page\n Intent myIntent = getIntent();\n String nameEntered = myIntent.getStringExtra(\"EditTextValue\");\n String userName = \"Welcome, \" + nameEntered;\n return userName;\n }", "private boolean checkUsername(String newUsername, Label label)\n {\n label.setText(\"\");\n\n if(newUsername.length() == 0){\n label.setText(\"Please choose a username \");\n return false;\n }\n for(Account account : getListOfAccounts()){\n if(newUsername.equals(account.getUsername())){\n label.setText(\"This field is already taken by another account. Please choose another username\");\n return false;\n }\n }\n return true;\n }", "private String extractUsername() {\n return SwingUtil.extract(usernameJTextField, Boolean.TRUE);\n }", "@Override\n\t\t\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t\t\tif(!hasFocus){\n\t\t\t\t\t\t\tif(register_username.getText().toString().trim().length()<4){\n\t\t\t\t\t\t\t\tToast.makeText(RegisteredActivity.this, \"用户名不能小于4个字符\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private boolean validateUsername() {\n // Get doctor's username\n EditText doctorUsername = (EditText) rootView.findViewById(R.id.doctorField);\n String doctorUsernameString = doctorUsername.getText().toString();\n // Query on server using that username\n try {\n String query = String.format(\"select `username` from `user` inner join `doctor` on user.id=doctor.userid where username='%s'\", doctorUsernameString); // query to check username existence\n Document document = Jsoup.connect(Constants.SERVER + query).get();\n String queryJson = document.body().html();\n if (queryJson.equals(\"0\")) { // Username not existed\n return false;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Get patient's username\n EditText patientUsername = (EditText) rootView.findViewById(R.id.patientField);\n String patientUsernameString = patientUsername.getText().toString();\n // Query on server using that username\n try {\n String query = String.format(\"select `username` from `user` inner join `patient` on user.id=patient.userid where username='%s'\", patientUsernameString); // query to check username existence\n Document document = Jsoup.connect(Constants.SERVER + query).get();\n String queryJson = document.body().html();\n if (queryJson.equals(\"0\")) { // Username not existed\n return false;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return true;\n }", "@Test\n public void GIncorrectNameFormat () {\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //change name to wrong format\n onView(withId(R.id.username)).perform(replaceText(\"34&\"));\n //click the button\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.NotCorrectName))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.NotCorrectName)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif ((!userNameEditText.getText().toString().matches(\"\")) &&\n\t\t\t\t\t(!passwordEditText.getText().toString().matches(\"\")) &&\n\t\t\t\t\t(!numberPlateEditText.getText().toString().matches(\"\"))) {\n\t\t\t\t\t//checking if user is authenticated\n\t\t\t\t\tcheckPassword(userNameEditText.getText(),\n\t\t\t\t\t\t\t\tpasswordEditText.getText(),\n\t\t\t\t\t\t\t\tnumberPlateEditText.getText());\n\t\t\t\t}\t\t\t\n\t\t\t\tuserNameEditText.requestFocus();\n\t\t\t}", "public void setUserName(String text) {\n txtUserName().setText(text);\n }", "private void getUserName() {\n if (mAuth.getCurrentUser() != null) {\n nameOfCurrentUser = mAuth.getCurrentUser().getDisplayName();\n Log.d(TAG, \"getUserName: getDisplayName is not null\");\n if (nameOfCurrentUser != null && nameOfCurrentUser.contains(\" \")) {\n String[] nameArray = nameOfCurrentUser.split(\" \");\n personalWelcomeMessage.setText(\"Hello, \" + nameArray[0]);\n Log.d(TAG, \"Name is: \" + personalWelcomeMessage.getText().toString());\n }\n else if (nameOfCurrentUser != null && !nameOfCurrentUser.contains(\" \")) {\n personalWelcomeMessage.setText(\"Hello, \" + nameOfCurrentUser);\n Log.d(TAG, \"Name is: \" + personalWelcomeMessage.getText().toString());\n }\n else if (nameOfCurrentUser==null){\n personalWelcomeMessage.setText(\"Hello\");\n }\n }\n }", "@Override\n public void displayInvalidUser() {\n Toast.makeText(this, \"Username cannot be blank or contain $\", Toast.LENGTH_LONG).show();\n }", "@Test\n\tpublic void testingLoginUsername() {\n\t\t\n\t\tthis.gettingUserAndPass();\n\t\t\n\t\tusername.sendKeys(\"validUsername\");\n\t\tpassword.sendKeys(\"validPassword\");\n\t\tusername.submit();\n\t\t\n\t\tString welcomeUser = driver.findElement(By.className(\"dashwidget_label\")).getText();\n\t\tassertEquals(\"Welcome to Humanity!\", welcomeUser);\n\t\t\n\t}", "private void validationUsername( String name ) throws Exception {\n\t\t\t if ( name != null && name.trim().length() < 3 ) {\n\t\t\t throw new Exception( \"Le nom d'utilisateur doit contenir au moins 3 caractères.\" );\n\t\t\t }\n\t\t\t}", "public boolean testUser(){\n VallidateUserName validator = new VallidateUserName();\n return validator.isValidUser(UserName);\n }", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "@Test\r\n public void testNotExistUser(){\r\n solo.clickOnView(solo.getView(R.id.nav_view).findViewById(R.id.navigation_notifications));\r\n solo.waitForFragmentById(R.id.navigation_notifications);\r\n solo.clickOnView(solo.getView(R.id.addFollowing));\r\n solo.sleep(3000);\r\n solo.waitForActivity(AddFollowingActivity.class, 2000);\r\n solo.enterText((EditText) solo.getView(R.id.add_following), \"yifan30\");\r\n solo.clickOnView(solo.getView(R.id.confirm));\r\n assertTrue(solo.waitForText(\"The username does not exist!!\", 1,2000));\r\n\r\n }", "void askUsername();", "@Test\n public void testEmptyUserNamePassword() {\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"username_edit_text\"))\n .setText(\"\");\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"password_edit_text\"))\n .setText(\"\");\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"login_button\"))\n .click();\n\n }", "@When(\"^Enter username as \\\"([^\\\"]*)\\\"$\")\n\tpublic void enter_username_as(String arg1) throws Throwable {\n\t\tuserName = arg1;\n\t}", "private void checkIfRedName(TextField nameTextField, KeyEvent event) {\n\n final Tooltip tooltip = new Tooltip();\n tooltip.setText(\"Enter the name \");\n nameTextField.setTooltip(tooltip);\n\n nameTextField.textProperty().addListener((observable, oldValue, newValue) -> {\n if (!newValue.matches(\"\\\\sa-zA-Z*\")) {\n nameTextField.setText(newValue.replaceAll(\"[^\\\\sa-zA-Z]\", \"\")); // Allows only wirte a letters!\n }\n });\n\n\n }", "public void checkForTempUsername() {\r\n\t\t// get my profile, and check for a default username\r\n\t\tUserProfile userProfile = authenticationController.getCurrentUserProfile();\r\n\t\tif (userProfile != null && DisplayUtils.isTemporaryUsername(userProfile.getUserName())) {\r\n\t\t\tgotoChangeUsernamePlace();\r\n\t\t} else {\r\n\t\t\tgoToLastPlace();\r\n\t\t}\r\n\t}", "public void setUsername(String username) {\n mUsernameTv.setText(username);\n }", "@When(\"^user enters \\\"([^\\\"]*)\\\" in username textbox$\")\r\n public void user_enters_in_username_textbox(String arg1) throws Throwable {\n throw new PendingException();\r\n }", "@Test\n void returnsTrueIfOnlyLetters() {\n Assertions.assertTrue(new UserValidator().isValidUsername(null));\n }", "private void getUsernameButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_getUsernameButtonActionPerformed\n\n clearInformation();\n String key = keySearchUserTextField.getText();\n String email = emailSearchUserTestField.getText();\n if (key.equals(EMPTY)) {\n this.displayInformation(PLEASE_EDIT_KEY);\n } else if (email.equals(EMPTY)) {\n this.displayInformation(PLEASE_EDIT_EMAIL);\n } else {\n // get the user and display its username\n Rsp response = flickrService.findByEmail(key, email);\n String result = ((User) response.getAny()).getUsername();\n resultUsernameTextField.setText(result);\n displayInformation(REQUEST_OK);\n }\n }", "public String valiationOfUsernameField()\n\t{\n\t\twaitForVisibility(validationUsername);\n\t\treturn validationUsername.getText();\n\t}", "protected Text getTextUsername() {\n return textUsername;\n }", "@Test(expected = IllegalArgumentException.class)\n public void test_getByUsername_usernameEmpty() throws Exception {\n instance.getByUsername(TestsHelper.EMPTY_STRING);\n }", "private void updateUsernameInFirebase() {\n\n binding.profileActivityProgressBar.setVisibility(View.VISIBLE);\n\n //String username = this.mTextInputEditTextUsername.getText().toString();\n String username = Objects.requireNonNull(binding.profileActivityEditTextUsername.getText()).toString();\n\n\n if (this.getCurrentUser() != null) {\n if (!username.isEmpty() && !username.equals(getString(R.string.info_no_username_found))) {\n UserHelper.updateUsername(username, this.getCurrentUser().getUid()).addOnFailureListener(this.onFailureListener()).addOnSuccessListener(this.updateUIAfterRESTRequestsCompleted(UPDATE_USERNAME));\n\n }\n }\n\n }", "@Override\n public void onChange(String name) {\n userNameText.setText(name);\n }", "public void inputUsername(String userName) {\n txbUsername.type(userName);\n }", "@When(\"user enters username {string}\")\r\n\tpublic void user_enters_username(String string) {\n\t\tdriver.findElement(By.name(\"userName\")).sendKeys(string);\r\n\t}", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "private boolean isUserNameValid(String username) {\n if (username == null) {\n return false;\n } else {\n return !username.trim().isEmpty();\n }\n }", "private void logic_for_username() {\n userID = SCUtils.getUniqueID(getApplicationContext());\n databaseRef.child(\"users\").child(userID).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override public void onDataChange(DataSnapshot dataSnapshot) {\n progressBar.setVisibility(View.GONE);\n if (!dataSnapshot.exists()) {\n show_alert_username();\n } else {\n username = dataSnapshot.getValue(String.class);\n Snackbar.make(findViewById(android.R.id.content), \"Logged in as \" + username, Snackbar.LENGTH_SHORT).show();\n }\n }\n\n @Override public void onCancelled(DatabaseError databaseError) {\n Log.w(\"!!!\", \"username:onCancelled\", databaseError.toException());\n }\n });\n }", "public void getUsername(ActionEvent event) {\n GuiManager.setConnectionType(connectionType);\n try {\n GuiManager.getInstance().startRefresh();\n boolean isValid = GuiManager.getInstance().getConnectionController().restore(username.getText());\n if (isValid) {\n GuiManager.getInstance().setUsernameMainPlayer(username.getText());\n loginToLobby(event);\n } else\n usernameNotValid.setText(GUIParameters.LOGIN_ERROR);\n } catch (NoSuchElementException | ConnectException e) {\n usernameNotValid.setText(GUIParameters.SERVER_ERROR);\n }\n }", "private boolean checkChangeUsernameValidity(String newUsername)\n {\n return (!newUsername.equals(\"\") && !newUsername.equals(controllerComponents.getAccount().getUsername()));\n }", "public boolean isUsernameTaken(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username from \"+ TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname;\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if(uname.equals(username)) {\n return true;\n }\n } while (cursor.moveToNext());\n }\n\n return false;\n }", "private boolean nameEntry() {\n EditText nameField = (EditText) findViewById(R.id.batman_identity);\n String batmanIdentity = nameField.getText().toString();\n\n if (batmanIdentity.equalsIgnoreCase(\"bruce wayne\")) {\n return true;\n }\n\n return false;\n\n }", "public void settxtUsername(String uname) {\n\t\tWebDriverWait wait = new WebDriverWait(ldriver, 25);\n\t\twait.until(ExpectedConditions.visibilityOf(txtUsername));\n\t\ttxtUsername.sendKeys(uname);\n\t}", "@Override\n public void onClick(View v) {\n nick = nickname.getText().toString();\n if ((nick.trim().length() > 0)) {\n new Registro(activity, loginResult).execute();\n progressBar.setVisibility(View.VISIBLE);\n } else {\n dialog.setMessage(\"El nickname no puede ser vacio\");\n }\n }", "public String getUserName() {\n return txtUserName().getText();\n }", "@Test(\tdescription = \"Verify initial focus on the login screen should be in username\",\n\t\t\tgroups = { \"skip-functional\" })\n\tpublic void LoginScreen03() throws HarnessException {\n\t\tapp.zPageLogin.zNavigateTo();\n\t\t\n\t\t// Type a unique string into the browser\n\t\tString value = \"foo\" + ZmailSeleniumProperties.getUniqueString();\n\t\tapp.zPageLogin.zKeyboardTypeString(value);\n\t\t\n\t\t// Get the value of the username field\n\t\tString actual = app.zPageLogin.sGetValue(PageLogin.Locators.zInputUsername);\n\t\t\n\t\t// Verify typed text and the actual text match\n\t\tZAssert.assertEquals(actual, value, \"Verify the username has initial focus\");\n\t\t\n\t}", "private void validationUsername( String username ) throws Exception {\n\n if ( username.length() < 4 ) {\n throw new Exception( \"Longueur du nom d'utilisateur invalide.\" );\n }\n if ( username == null ) {\n throw new Exception( \"Merci de saisir un nom d'utilisateur valide.\" );\n }\n }", "@Override\n\tpublic int validateUsername(User u) {\n\t\treturn 0;\n\t}", "public void testvalidateUserName0002()\n\t{\n\t\tLoginCheck loginCheckTest = new LoginCheck();\n\t\t\n\t\tassertTrue( loginCheckTest.validateUserName(\"username test\"));\n\t}", "public void typeUsername(String text) {\r\n\t\tusernameInput = driver.findElement(usernameSelector);\r\n\t\tusernameInput.sendKeys(text);\r\n\t\t\t\r\n\t}", "@SuppressLint(\"NonConstantResourceId\")\n @Override\n public void onClick(View view) {\n String username, password;\n username = usernameField.getText().toString();\n password = passwordField.getText().toString();\n\n String pwdValidationRegex = \"^(?=.*[0-9])\"\n + \"(?=.*[a-z])\"\n + \"(?=.*[A-Z])\"\n + \"(?=.*[@#$%^&+=])\"\n + \"(?=\\\\S+$).{8,}$\";\n //For ref: https://www.geeksforgeeks.org/how-to-validate-a-password-using-regular-expressions-in-java/\n\n if (username.isEmpty()) {\n makeToast(\"Please don't forget to fill up username...\");\n return;\n }\n if (!password.matches(pwdValidationRegex)) {\n makeToast(\"Password validation failed!\");\n } else {\n Bundle userBundle = new Bundle();\n userBundle.putString(\"userNameKey\", username);\n userBundle.putString(\"passwordKey\", password);\n Intent intent = new Intent(this, SignInActivity.class);\n intent.putExtras(userBundle);\n startActivity(intent);\n }\n }", "private void emailExistCheck() {\n usernameFromEmail(email.getText().toString());\n }", "public void nameChecker(EditText userName, String totalSummary){\n if( TextUtils.isEmpty(userName.getText())){\n\n Toast.makeText(getApplicationContext(), getString(R.string.caffeine), Toast.LENGTH_LONG).show();\n\n userName.setError( getString(R.string.no_name_error) );\n\n }else{\n String nameSaver = userName.getText().toString();\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_EMAIL, \"coffeeOrder@gmail.com\");\n intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.name_in_the_subject) + nameSaver);\n intent.putExtra(Intent.EXTRA_TEXT, totalSummary);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n }", "@Test\n public void FNameEmpty () {\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //change name to empty\n onView(withId(R.id.username)).perform(replaceText(\"\"));\n //click the button\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.EmptyName))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.EmptyName)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "public static String getUsername() { return lblUsername.getText(); }", "public void enterusername(String userName) {\n\t\tWebElement usrname=driver.findElement(username);\n\t\tif (usrname.isDisplayed()) {\n\t\t\tif(usrname.getText()!=\"\")\n\t\t\t\tusrname.clear();\n\t\t\tusrname.sendKeys(userName);\n\t\t}\n\t}", "public static void printUsername() {\n\t\tSystem.out.println(\"Enter the username\");\n\t\tString username = Utility.SCANNER.nextLine();\n\t\tint length = username.length();\n\t\tif(length > 3) {\n\t\t\tSystem.out.println(\"Hello \"+username+\", How are you?\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Invalid username\");\n\t\t}\n\t}", "boolean hasUserName();", "public void loginButton(View view) {\n EditText userNameInput = (EditText) findViewById(R.id.user_name);\n\n if (userNameInput.getText().toString().trim().length() != 0) {\n LinearLayout loginPage = (LinearLayout) findViewById(R.id.login_page);\n loginPage.setVisibility(View.GONE);\n TextView questionsPane = (TextView) findViewById(R.id.questions_pane);\n questionsPane.setVisibility(View.VISIBLE);\n LinearLayout nextAndSubmitButtons = (LinearLayout) findViewById(R.id.next_and_submit_buttons);\n nextAndSubmitButtons.setVisibility(View.VISIBLE);\n Button nextButton = (Button) findViewById(R.id.next_button);\n nextButton.setEnabled(false);\n userName = userNameInput.getText().toString();\n }\n\n //tells the user that he/she need to provides his/her name\n else {\n Toast userIdNeeded = Toast.makeText(getApplicationContext(), \"USERNAME REQUIRED\", Toast.LENGTH_SHORT);\n userIdNeeded.show();\n }\n }", "private boolean validateLogin() {\n final String userName = userText.getText().toString();\n final String userPass = passwordText.getText().toString();\n if (\"\".equals(userName)) {\n userText.setError(\"You must enter a username\");\n return false;\n }\n if (\"\".equals(userPass)) {\n passwordText.setError(\"You must enter a password\");\n return false;\n }\n return true;\n }", "@Test (priority = 0)\n public void test001createUserWithUserNameOnlyTest() {\n close();\n login();\n\n checkLoginIsPerformed();\n //create user with filled user name only\n createUser(SIMPLE_USER_NAME, new HashMap<String, String>());\n checkOperationStatusOk(\"Save (GUI)\");\n\n //search for the created in users list\n searchForElement(SIMPLE_USER_NAME);\n $(By.linkText(SIMPLE_USER_NAME)).shouldBe(visible).click();\n }", "public void fillUsername(String value) {\n setFieldValue(\"username\", value);\n }", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jtxt_userName.getText().contains(\"xxx\")){\n jtxt_userName.setText(\"\");\n }\n }" ]
[ "0.7435521", "0.7379644", "0.7306997", "0.7180335", "0.71049196", "0.70657134", "0.7061384", "0.7056383", "0.70235676", "0.6999747", "0.6902247", "0.6824126", "0.68188787", "0.68088835", "0.68015575", "0.6798596", "0.678295", "0.67741746", "0.67694825", "0.6765226", "0.67638004", "0.67631865", "0.6755244", "0.6717124", "0.6710228", "0.6709318", "0.66786987", "0.66517484", "0.6616156", "0.6602776", "0.6600032", "0.6585997", "0.65754724", "0.6570525", "0.6544924", "0.6528819", "0.65259665", "0.65258557", "0.64877313", "0.64715064", "0.64557767", "0.64382523", "0.64382523", "0.64382523", "0.64382523", "0.64382523", "0.64382523", "0.64279234", "0.64247996", "0.6413416", "0.6398691", "0.63818127", "0.63785213", "0.63595307", "0.63560015", "0.6339391", "0.6329216", "0.6322292", "0.63181466", "0.6315488", "0.6315039", "0.6310349", "0.62894017", "0.6288751", "0.62837076", "0.62837076", "0.62837076", "0.62837076", "0.62837076", "0.62837076", "0.62837076", "0.62837076", "0.62837076", "0.628041", "0.6272206", "0.6262355", "0.6246535", "0.62359744", "0.6226235", "0.62250805", "0.6204146", "0.6190857", "0.61817497", "0.61732525", "0.61699116", "0.6165812", "0.614758", "0.6144831", "0.6144631", "0.6142134", "0.6136484", "0.6131281", "0.61272806", "0.611573", "0.61137855", "0.6104082", "0.6103837", "0.6099849", "0.6094697", "0.6093415" ]
0.7629985
0
To test the student number editText
@Test public void studNoText() { onView(withId(R.id.Stud_id)).perform(typeText("123456")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n if(!txtCampo1.getText().toString().equals(\"\")){\n //transformar o valor do campo1 para INTEIRO\n int num1 = Integer.parseInt(txtCampo1.getText().toString());\n int num2 = Integer.parseInt(txtCampo2.getText().toString());\n\n //String.valueOf(numero aqui) = transformar um número em String\n int resultado;\n int[] numeros = {num1, num2};\n resultado = Tools.somarInteiros(numeros);\n\n lblTexto.setText(String.valueOf(resultado));\n\n Tools.exibirMensagem(context,\"Resultado = \" + resultado);\n }\n }", "@Override\r\n\t\t\tpublic void verifyText(VerifyEvent e) {\n\t\t\t\tText t=(Text) e.widget;\r\n\t\t\t\tString s=e.text;\r\n\t\t\t\tString ct=t.getText();\r\n\t\t\t\tString temps=StringUtils.substring(ct, 0,e.start)+s+StringUtils.substring(ct,e.end);\r\n\t\t\t\tif(!IntegerValidator.getInstance().isValid(temps)){\r\n\t\t\t\t\te.doit=false;\r\n\t\t\t\t}\r\n\t\t\t}", "private int getTextAns() {\n EditText tempAns = findViewById(R.id.answer0);\n if (tempAns.getText().toString().toLowerCase().equals(\"addition\")) {\n return 1;\n } else {\n return 0;\n }\n }", "public void checkNumber(View view){\n Log.i(\"info\", \"button pressed\");\n String message;\n\n // take number from the form\n EditText number=(EditText) findViewById(R.id.editText2);\n if (number.getText().toString().isEmpty()){\n message=\"Please type a number.\";\n } else {\n int numberInt = Integer.parseInt(number.getText().toString());\n\n // use the class Number\n Number testNumber = new Number();\n testNumber.value = numberInt;\n\n // prepare to print message\n message = number.getText().toString();\n\n if (testNumber.isSquared() && testNumber.isTriangular()) {\n message += \" is a square and a triangular number.\";\n } else if (testNumber.isSquared()) {\n message += \" is a square number.\";\n } else if (testNumber.isTriangular()) {\n message += \" is a triangular number.\";\n } else {\n message += \" is neither triangular nor squared.\";\n }\n }\n // show a floating message that desapear after a few seconds\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n // clean the form\n number.setText(\"\");\n\n }", "private boolean checkForWrongInput(){\n if(this.studentCode.getText().isEmpty())\n return true;\n //Check for length\n if(this.studentCode.getText().length() != 3)\n return true;\n //Check for invalid characters\n for(char c: this.studentCode.getText().toCharArray())\n if(!Character.isDigit(c))\n return true;\n\n return false;\n }", "public void onbtnClick(View view){\n EditText edtNum1= (EditText)findViewById(R.id.edtNum1);\n EditText edtNum2= (EditText)findViewById(R.id.edtNum2);\n EditText edtNum3= (EditText)findViewById(R.id.edtNum3);\n\n //get the integer number of string\n int num1=Integer.parseInt(edtNum1.getText().toString());\n int num2=Integer.parseInt(edtNum2.getText().toString());\n int num3=Integer.parseInt(edtNum3.getText().toString());\n\n //calculate the result\n\n //calculate the total of three numbers and assign to TOTAL variable\n int total=num1+num2+num3;\n\n //calculate the average of three numbers and assign to AVERAGE variable\n float average=total/3;\n\n //call getFinalGrade\n char finalGrade=getFinalGrade(average);\n\n //assign the result to the result components\n\n //find txtTotal, txtAverage, txtFinalGrade\n TextView txtTotal=(TextView)findViewById(R.id.txtTotal);\n TextView txtAverage=(TextView)findViewById(R.id.txtAverage);\n TextView txtFinalGrade=\n (TextView)findViewById(R.id.txtFinalGrade);\n\n //assign the total, average, final grade variables to txtTotal, txtAverage, txtFinalGrade\n txtTotal.setText(Integer.toString(total));\n txtAverage.setText(Float.toString(average));\n txtFinalGrade.setText(Character.toString(finalGrade));\n\n}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tboolean isRegularPhoneNumber = phoneEditView.getText()\n\t\t\t\t\t\t.toString().matches(\"[0-9]{10}\");\n\t\t\t\tphoneCheckRes(isRegularPhoneNumber);\n\t\t\t}", "@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\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\tString ITR = txtITR.getText().toString();\n\n\t\t\t\tif (ITR.equals(\"\")) {\n\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Please enter number\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\t\t\t\t\tint ans = 365 / Integer.parseInt(ITR);\n\n\t\t\t\t\ttxtAnswer.setText(Integer.toString(ans));\n\t\t\t\t}\n\n\n\t\t\t}", "@Override\n public void onClick(View v) {\n String textoDigitado = caixaTexto.getText().toString();\n\n if (textoDigitado.isEmpty()) {\n // String vazia\n AlertDialog.Builder dialogo = new AlertDialog.Builder(MainActivity.this);\n dialogo.setMessage(\"Digite a idade do Cachorro!\");\n dialogo.setNeutralButton(\"Ok\", null);\n dialogo.show();\n\n } else {\n\n int valorDigitado = Integer.parseInt(textoDigitado);\n int resultadoFinal = valorDigitado * 7;\n\n resultadoIdade.setText(\"A idade do cachorro em anos humanos é \" + resultadoFinal + \" ano(s)\");\n\n }\n }", "public void restaNumeros(View view){\n\n String valor1=etNum1.getText().toString();\n String valor2=etNum2.getText().toString();\n\n int nro1=Integer.parseInt(valor1);\n int nro2=Integer.parseInt(valor2);\n\n int resta=nro1-nro2;\n\n String resulResta=String.valueOf(resta);\n tvSalida.setText(resulResta);\n\n }", "@Override\n\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\ttry{\n\t\t\t\tperson = Integer.parseInt(s.toString());\n\t\t\t}\n\t\t\tcatch(NumberFormatException e)\n\t\t\t{\n\t\t\t\tperson = 1;\t\t\t\n\t\t\t}\n\t\t\tupdateStandard();\n\t\t\tupdateCustom();\n\t\t}", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (edtCodeNumber6.getText().toString().length() == 1) //size as per your requirement\n {\n\n }\n }", "@Override\n public void afterTextChanged(Editable s) {\n System.out.println(\"STD \" + ageStd.getText() + \" CAN \" + ageCan.getText());\n if (!TextUtils.isEmpty(ageStd.getText()) && !TextUtils.isEmpty(ageCan.getText())) {\n int aStd = Integer.parseInt(ageStd.getText().toString());\n int aCan = Integer.parseInt(ageCan.getText().toString());\n imgStatus.setImageResource((aStd < aCan ? R.drawable.sad : R.drawable.happy));\n }\n }", "public void takeAttendance(View view){\n\n if(_id.getText().toString().isEmpty() || _name.getText().toString().isEmpty()){ //Check if all fields are filled\n Toast.makeText(this, \"Enter all Fields\", Toast.LENGTH_LONG).show();\n return;\n }\n if(_id.getText().toString().length() != 9 ) { //checks if the ID is 9 digits (AUB students' IDs are usually 9-digits)\n Toast.makeText(this, \"Enter a valid ID\", Toast.LENGTH_LONG).show();\n return;\n }\n Intent intent = new Intent(this,Take_Attendance.class );\n setResult(RESULT_OK, intent);\n int id = Integer.parseInt(_id.getText().toString());\n String name = _name.getText().toString();\n intent.putExtra(STUDENT_ID, id);\n intent.putExtra(STUDENT_NAME, name);\n finish();\n }", "public void onClickToJoEllen(View v) {\n SpannableStringBuilder activeValueSpan = (SpannableStringBuilder) mActiveValue.getText();\n String activeValueStr = activeValueSpan.toString();\n SpannableStringBuilder scoreSpan = (SpannableStringBuilder) jeScore.getText();\n String scoreVal1 = scoreSpan.toString();\n int addNum = Integer.parseInt(activeValueStr);\n int oldNum = Integer.parseInt(scoreVal1);\n int newNum = oldNum + addNum;\n int i = 1;\n jeScore.setText(Integer.toString(newNum));\n mActiveValue.setText(R.string.initval);\n db.enterScore(PLAYER1, addNum);\n }", "public void startMobileWithOnlyNumber92(final EditText et_email)\n {\n\n et_email.addTextChangedListener(new TextWatcher()\n {\n public void afterTextChanged(Editable s)\n {\n String x = s.toString();\n\n\n if (x.startsWith(\"1\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"2\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"3\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n\n if (x.startsWith(\"4\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"5\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"6\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"7\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"8\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"9\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n\n if (x.startsWith(\"0\")){\n if (x.length()==11){\n //doctorSignInEmail.setText(x);\n et_email.setFilters(new InputFilter[] {new InputFilter.LengthFilter(11)});\n\n }\n }\n else {\n et_email.setFilters(new InputFilter[] {new InputFilter.LengthFilter(120)});\n }\n\n }\n public void beforeTextChanged(CharSequence s, int start, int count, int after)\n {\n\n }\n public void onTextChanged(CharSequence s, int start, int before, int count)\n {\n\n }\n });//end for login editText\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int i, long l) {\n StudentListDAO student = (StudentListDAO) parent.getAdapter().getItem(i);\n student_id = student.getId();\n if (!student_id.equals(\"\")) {\n\n add_student.setVisibility(View.VISIBLE);\n }\n\n gender = student.getLast_Name();\n Log.d(\"Id---->\", student_id);\n prefEditor.putString(\"student_id\", student_id);\n prefEditor.commit();\n InputMethodManager inputManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n inputManager.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);\n\n }", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (edtCodeNumber1.getText().toString().length() == 1) //size as per your requirement\n {\n edtCodeNumber2.requestFocus();\n }\n }", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (edtCodeNumber5.getText().toString().length() == 1) //size as per your requirement\n {\n edtCodeNumber6.requestFocus();\n }\n }", "public void sumaNumeros(View view){\n\n String valor1=etNum1.getText().toString();\n String valor2=etNum2.getText().toString();\n\n int nro1=Integer.parseInt(valor1);\n int nro2=Integer.parseInt(valor2);\n\n int suma=nro1+nro2;\n\n String resulSuma=String.valueOf(suma);\n tvSalida.setText(resulSuma);\n\n }", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (edtCodeNumber4.getText().toString().length() == 1) //size as per your requirement\n {\n edtCodeNumber5.requestFocus();\n }\n }", "public void onClick(View v) {\n if ((mPinEditText.getText().toString().length() >= 3 &&\n mPinEditText.getText().toString().length() <= 10) &&\n mConfirmEditText.getText().toString().length() != 0 &&\n mNameEditText.getText().toString().trim().length() != 0) {\n\n if (Integer.parseInt(mPinEditText.getText().toString()) == Integer.parseInt(mConfirmEditText.getText().toString())) {\n\n String namestring = mNameEditText.getText().toString().trim();\n String pinstring = mPinEditText.getText().toString().trim();\n\n editor.putString(\"personname\", namestring);\n editor.putString(\"personpin\", pinstring);\n\n editor.apply();\n\n Intent i = new Intent(InfoActivity.this, DaysActivity.class);\n startActivity(i);\n finish();\n } else {\n showToast(R.string.mismatched_pin);\n }\n } else {\n showToast(R.string.invalid_information);\n }\n }", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (edtCodeNumber2.getText().toString().length() == 1) //size as per your requirement\n {\n edtCodeNumber3.requestFocus();\n }\n }", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (edtCodeNumber3.getText().toString().length() == 1) {\n edtCodeNumber4.requestFocus();\n }\n }", "protected void setStudentNumber(Integer studentNum)\n {\n studentNumber = studentNum;\n }", "@Override\n public void afterTextChanged(Editable s) {\n int liczba = 0;\n try {\n liczba = Integer.parseInt(liczbaOcen.getText().toString());\n } catch (Exception e) {\n czyLiczby = false;\n }\n if (liczba >= 5 && liczba <= 15)\n czyLiczby = true;\n else\n czyLiczby = false;\n pokazOblicz();\n\n }", "@Override\n public void afterTextChanged(Editable s) {\n if (s.length() == 0)\n edtCodeNumber5.requestFocus();\n else {\n if (strMobileNumber == null || strMobileNumber.equals(\"\")) return;\n //checkValidationCodeInputs();\n\n confirmYourCode();\n }\n\n }", "@Override\n public void onCheckButtonClick() {\n\n String result;\n try {\n int a = Integer.parseInt(view.getFirstNumberTextViewValue());\n int b = Integer.parseInt(view.getSecondNumberTextViewValue());\n result = model.checkNumbers(a,b);\n } catch (NumberFormatException e) {\n view.showToast(\"You gave wrong input!!!\");\n return;\n } catch (WrongParametersException e) {\n view.showToast(e.getMessage());\n return;\n }\n Intent intent = view.createNewIntent(SecondActivity.class);\n intent.putExtra(\"result\", result);\n view.startNewActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString no1=num1.getText().toString();\n\t\t\t\tfinal int num11=Integer.parseInt(no1);\n\t\t\t\t\n\t\t\t\tString no2=num2.getText().toString();\n\t\t\t\tfinal int num12=Integer.parseInt(no2);\n\t\t\t\tres=num11+num12;\n\t\t\t\tresult.setText(Integer.toString(res));\n\t\t\t\t\n\t\t\t}", "public int getStudentNum(){//return student Number\r\n \treturn studentNum;\r\n }", "private boolean checkUserInputValidity() {\n // Extract Student information from the edit text views\n String studentName = mStudentNameEditText.getText().toString().trim();\n String studentGradeString = mStudentGradeEditText.getText().toString();\n\n // Check for valid student name\n if (TextUtils.isEmpty(studentName)) {\n Toast.makeText(this, R.string.please_enter_valid_name, Toast.LENGTH_SHORT).show();\n mStudentNameEditText.requestFocus();\n return false;\n }\n\n // Check for valid student birthdate\n if (mStudentBirthdate == 0) {\n Toast.makeText(this, R.string.please_enter_valid_birthdate,\n Toast.LENGTH_SHORT).show();\n return false;\n }\n if (DateUtils.isChosenDateAfterToday(mStudentBirthdate)) {\n Toast.makeText(this, R.string.please_enter_valid_birthdate,\n Toast.LENGTH_SHORT).show();\n return false;\n }\n\n // Check for valid student grade\n if (TextUtils.isEmpty(studentGradeString)) {\n Toast.makeText(this, R.string.please_enter_valid_grade, Toast.LENGTH_SHORT).show();\n mStudentGradeEditText.requestFocus();\n return false;\n } else {\n int studentGrade = Integer.parseInt(studentGradeString);\n if (studentGrade <= 0) {\n Toast.makeText(this, R.string.please_enter_valid_grade, Toast.LENGTH_SHORT).show();\n mStudentGradeEditText.requestFocus();\n return false;\n }\n }\n\n return true;\n }", "@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\tu.setRollno(s.toString());\n\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n String phoneNumber = phoneNumberEditText.getText().toString();\n // atata timp cat exista caractere in EditText => ele pot fi sterse\n if (phoneNumber.length() > 0) {\n // se sterge mereu ultima cifra / ultimul caracter\n phoneNumber = phoneNumber.substring(0, phoneNumber.length() - 1);\n phoneNumberEditText.setText(phoneNumber);\n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n raspPiID =(EditText) findViewById(R.id.rasPI1);\n LogIn = (Button) findViewById(R.id.Log_in);\n LogIn.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n validate(raspPiID.getText().toString());\n }\n\n });\n\n\n\n\n\n }", "@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Student ss = dataSnapshot.getValue(Student.class);\n String name = ss.getName();\n int marks = ss.getMarks();\n\n String displayStr = name + \"|\" + marks;\n txt.setText(displayStr);\n\n }", "public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (et_One.getText().length() == 1) {\r\n }\r\n }", "@Test\n public void researchEditTextInputTest() {\n onView(withId(R.id.network_input_research))\n .perform(typeText(INPUT_TEXT))\n .check(matches(withText(INPUT_TEXT)));\n }", "public void afterTextChanged(Editable s) {\n\n if(!String.valueOf(s).matches(\"\")) {\n\n String valStr = String.valueOf(s);\n int valInt = Integer.parseInt(valStr);\n\n if (valInt <= 40000000) {\n\n seekBar.setProgress(valInt / 100000);\n\n Log.d(\"SEEKBAREDITTEXTVALLOG\", \"Value :\" + \" \" + valInt / 100000);\n\n expectedPriceEdtx.setSelection(expectedPriceEdtx.getText().toString().length());\n\n } else {\n\n activity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n expectedPriceEdtx.setText(\"40000000\");\n Toasty.error(activity, \"Cannot add more than 4 Crore\", Toasty.LENGTH_SHORT).show();\n }\n });\n\n }\n }\n }", "private void btnSearch_Clicked() {\n\t\tString input_id=txtStuNum.getText();\n\t\tif(studao.ReturnScore(input_id)!=null) {\n\t\t\tJOptionPane.showMessageDialog(this,\"学生\"+input_id+\",您的成绩是:\"+studao.ReturnScore(input_id));\n\t\t}\n\t\telse if(studao.ReturnScore(input_id)==null){\n\t\t\tJOptionPane.showMessageDialog(this, \"输入栏为空或您还没有考试\");\n\t\t}\n\t}", "public void onClick(View view) {\n if (isEmpty(networthEdit.getText()) || Double.parseDouble(networthEdit.getText().toString()) > 9000000.0 || isEmpty(amountSavedPerYearEdit.getText()) || Double.parseDouble(amountSavedPerYearEdit.getText().toString()) > 9000000.0 || isEmpty(targetRetirementAmountEdit.getText())|| Double.parseDouble(targetRetirementAmountEdit.getText().toString()) > 9000000.0 || Double.parseDouble(spendAmountEdit.getText().toString()) > 9000000.0) {\n\n //System.out.println(\"This is empty\");\n alertDialog.show();\n return;\n }\n\n else\n\n {\n //hide keyboard\n\n InputMethodManager inputManager = (InputMethodManager)\n getSystemService(Context.INPUT_METHOD_SERVICE);\n\n inputManager.hideSoftInputFromWindow((null == getCurrentFocus()) ? null : getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n\n // currency formatter\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n Double networthDouble = Double.parseDouble(networthEdit.getText().toString());\n Double amountSavedPerYearDouble = Double.parseDouble(amountSavedPerYearEdit.getText().toString());\n Double targetRetirementAmountDouble = Double.parseDouble(targetRetirementAmountEdit.getText().toString());\n Double spendAmountDouble = Double.parseDouble(spendAmountEdit.getText().toString());\n\n yearsUntilRetirementDouble = yearsUntilRetirementFunc(networthDouble, returnForSP500 - inflation, targetRetirementAmountDouble, 12.0*amountSavedPerYearDouble);\n\n if (spinner2.getSelectedItemPosition() == 0) { //once\n\n Double newYearsUntilRetirement = yearsUntilRetirementFunc(networthDouble + spendAmountDouble, returnForSP500 - inflation, targetRetirementAmountDouble, 12.0*amountSavedPerYearDouble);\n yearsUntilRetirementDifference = yearsUntilRetirementDouble - newYearsUntilRetirement;\n\n } else { //per month\n Double newYearsUntilRetirement = yearsUntilRetirementFunc(networthDouble, returnForSP500 - inflation, targetRetirementAmountDouble, 12.0*(amountSavedPerYearDouble + spendAmountDouble));\n yearsUntilRetirementDifference = yearsUntilRetirementDouble - newYearsUntilRetirement;\n }\n\n yearsUntilRetirementText.setText(String.format(\"%.2f\", yearsUntilRetirementDouble));\n\n\n summaryText.setText(\"If you saved $\" + spendAmountDouble.toString() + \" instead of spending it, you would be able to retire \" + String.format(\"%.2f\", yearsUntilRetirementDifference) + \" years, or \" + String.format(\"%.2f\", yearsUntilRetirementDifference * 365) + \" days earlier!\");\n return;\n\n\n }\n\n }", "@SmallTest\n\tpublic void testScore_displayed() {\n\t\tassertEquals((Integer) START_SCORE, Integer.valueOf(solo.getText(1).getText().toString()));\n\t}", "@Test\r\n public void regButton(){\r\n onView(withId(R.id.edUserReg)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.Stud_id)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.edPassReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.edPassConReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.btnReg)).perform(click());\r\n }", "private boolean camposNumCorrectos() {\n\t\t return Utilidades.isPositiveNumber(anioText.getText().trim());\n\t}", "@Test\n public void strongestPassword(){\n onView(withId(R.id.editText)).perform(clearText(), typeText(\"Good!123\"),closeSoftKeyboard());\n onView(withId(R.id.button)).perform(click());\n // Assert equals textView text\n onView(withId(R.id.textView)).check(matches(withText(\"Strongest\")));\n }", "public void Incorrect(View view) {\n TextView textview = (TextView) findViewById(R.id.textViewer);\n CharSequence s = textview.getText();\n String temp = s.toString();\n String[] text = temp.split(\" \");\n String n = text[0];\n int prime = Integer.parseInt(n);\n\n Context context = getApplicationContext();\n\n int i, flag = 0;\n if (prime == 1) {\n flag = 1;\n }\n for (i = 2; i <= prime / 2; ++i) {\n // condition for nonprime number\n if (prime % i == 0) {\n flag = 1;\n break;\n }\n }\n\n if (flag != 0 && clicked>=1 && pressed>=1) {\n\n Toast.makeText(context, \"Correct but you have cheated and taken hint\", Toast.LENGTH_SHORT).show();\n }\n else if(flag!=0 && clicked>=1)\n {\n Toast.makeText(context, \"Correct but you have cheated\", Toast.LENGTH_SHORT).show();\n }\n\n else if(flag!=0 && pressed>=1)\n {\n Toast.makeText(context, \"Correct but you have taken hint\", Toast.LENGTH_SHORT).show();\n }\n else if(flag!=0)\n {\n Toast.makeText(context, \"Correct\", Toast.LENGTH_SHORT).show();\n }\n else if(flag==0 && clicked>=1 && pressed>=1)\n {\n Toast.makeText(context, \"Not Correct but you have taken hint and cheated\", Toast.LENGTH_SHORT).show();\n }\n\n else if(flag==0 && pressed>=1) {\n Toast.makeText(context, \"Not Correct but you have taken hint\", Toast.LENGTH_SHORT).show();\n }\n else if(flag==0 && clicked>=1)\n {\n Toast.makeText(context, \"Not Correct but you have cheated\", Toast.LENGTH_SHORT).show();\n }\n\n else if(flag==0)\n {\n Toast.makeText(context, \"Not Correct\", Toast.LENGTH_SHORT).show();\n }\n }", "@OnTextChanged(R.id.number_of_tickets_field)\n public void onTicketsNumberChanged(@Nullable CharSequence text) {\n if (text == null || text.toString().equals(\"\")) {\n numberOfTickets = 0;\n } else {\n try {\n numberOfTickets = Integer.parseInt(text.toString());\n } catch (NumberFormatException e) {\n // theoretically we should never end up here cause I limited the input for this\n // field to be only digits\n Log.e(TAG, \"Failed to parse string to int: \" + text.toString());\n Toast.makeText(getContext(), \"Please enter a valid number of tickets\", Toast.LENGTH_SHORT).show();\n numberOfTickets = 0;\n }\n }\n updatePriceAndSaving();\n }", "private void SaveStudentInfo() {\n EditText _fullName = (EditText) findViewById(R.id.editTextFullName);\n EditText _birthdate = (EditText) findViewById(R.id.dateBirthday);\n EditText _fullStreetAddress = (EditText) findViewById(R.id.editTextFullAddress);\n EditText _contactPhone = (EditText) findViewById(R.id.editTextContactPhone);\n EditText _contactEmail = (EditText) findViewById(R.id.editTextContactEmail);\n EditText _parentNames = (EditText) findViewById(R.id.editTextParentNames);\n EditText _defaultRate = (EditText) findViewById(R.id.numberRate);\n EditText _notes = (EditText) findViewById(R.id.editTextNotes);\n\n // ***** Create the Student Object\n Student _student = new Student();\n\n // ***** Set the field values\n _student.fullName = String.valueOf(_fullName.getText());\n _student.birthDate = String.valueOf(_birthdate.getText());\n _student.fullAddress = String.valueOf(_fullStreetAddress.getText());\n _student.contactPhone = String.valueOf(_contactPhone.getText());\n _student.contactEmail = String.valueOf(_contactEmail.getText());\n _student.parentNames = String.valueOf(_parentNames.getText());\n\n // ***** Convert to a double to store in database for calulations\n _student.defaultRate = Double.valueOf(String.valueOf(_defaultRate.getText()));\n\n _student.notes = String.valueOf(_notes.getText());\n\n // **** Save the student information\n _myDb.setStudentInfo(_student);\n\n\n }", "private boolean checkInput(Student student) {\n return student.getName().equals(nameField.getText()) &&\n student.getMajor().equals(majorField.getText());\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(!edittext_mobNo.getText().toString().equals(\"not available\"))\n\t\t\t\tcalltoMobilenumber(edittext_mobNo.getText().toString());\n\t\t\t}", "private void display() {\n TextView textview = (TextView) findViewById(R.id.textView);\n EditText editText = (EditText) findViewById(R.id.editNumber) ;\n textview.setText(\"TEXT\");\n editText.setText(\"\");\n\n }", "public boolean hasNumber(){\n return (alg.hasNumber(input.getText().toString()));\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString number = editview.getText().toString();\r\n\t\t\t\t\r\n\t\t\t\tSQLiteDatabase db = openOrCreateDatabase(\"doctor\", MODE_PRIVATE, null);\r\n\t\t\t\t\r\n\t\t\t\tSharedPreferences setting = getSharedPreferences(\"Doctor\", 0);\r\n\t\t\t\t\r\n\t\t\t\tString value = setting.getString(\"given\", \"no\");\r\n\r\n\t\t\t\tif(value.endsWith(\"no\")){\r\n\t\t\t\t\tdb.execSQL(\"INSERT INTO numbertable VALUES('\"+number+\"');\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdb.execSQL(\"UPDATE numbertable SET doctornumber='\"+number+\"';\");\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tdb.close();\r\n\t\t\t\t\r\n//\t\t\t\tSharedPreferences setting = getSharedPreferences(\"Doctor\", 0);\r\n\t\t\t\t\r\n\t\t\t\tSharedPreferences.Editor editor = setting.edit();\r\n\t\t\t\t\r\n\t\t\t\teditor.putString(\"given\", \"yes\");\r\n\t\t\t\teditor.commit();\r\n\t\t\t\t\r\n\t\t\t\tIntent intent = new Intent(SugarDoctor.this,Sugar.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\r\n\t\t\t}", "private void validateValue()\r\n {\r\n try\r\n {\r\n Long.parseLong(getText());\r\n }\r\n catch (NumberFormatException ex)\r\n {\r\n setText(\"\");\r\n }\r\n \r\n }", "public void turnScore() {\n\n\n String scoreString = newScore.getText().toString();\n turnScore = Integer.parseInt(scoreString);\n\n }", "@Override\n public void onClick(View v) {\n Cursor c=myDatabase.queryStudent();\n if (c!=null){\n StringBuilder sb=new StringBuilder();\n //that means there\n while (c.moveToNext()){\n int sno=c.getInt(0);\n String sname=c.getString(1);\n String scourse=c.getString(2);\n sb.append(sno+\":\"+sname+\":\"+scourse+\"\\n\");\n }\n //let us apply on textview\n tv.setText(sb.toString());\n }\n }", "private void txtphnoFocusLost(java.awt.event.FocusEvent evt) {\n String ph=txtphno.getText();\n char[]ch=ph.toCharArray();\n int j=0;\n if(ph.length()!=10)\n {\n JOptionPane.showMessageDialog(this, \"You Entered Wrong phone number\");\n }\n \n for(int i=0; i<ph.length(); i++)\n {\n if(ch[i]<48 || ch[i]>57)\n {\n j++;\n }\n }\n \n if(j!=0)\n {\n JOptionPane.showMessageDialog(this, \"Only Numerical Values should be Entered\");\n\n }\n }", "public boolean checkDel (TextView tv){\n String s = expressionView.getText().toString();\n for (int i = 0; i < s.length(); i++) {\n if (Character.isDigit(s.charAt(i))) {\n return true;\n }\n }\n return false;\n }", "@Override\n public void onTextChanged(CharSequence s, int a, int b, int c) {\n EditText firstNameEditText = (EditText) findViewById(R.id.Student_FName);\n String firstNameEnteredText = String.valueOf(firstNameEditText.getText());\n Log.v(\"output\", String.valueOf(s));\n if(firstNameEnteredText.length()<1)\n {\n String lastNameEnteredText = String.valueOf(lastNameEditText.getText());\n\n\n if(lastNameEnteredText.length()<3)\n generatedUserId\n = lastNameEnteredText +\n timestamp.substring(timestampIndexer - 4 , timestampIndexer);\n else\n generatedUserId\n = lastNameEnteredText.substring(0,3)\n + timestamp.substring(timestampIndexer - 3 , timestampIndexer);\n\n }else\n {\n String lastNameEnteredText = String.valueOf(lastNameEditText.getText());\n if(lastNameEnteredText.length()<3)\n generatedUserId\n = firstNameEnteredText.substring(0,1) + lastNameEnteredText +\n timestamp.substring(timestampIndexer - 4 , timestampIndexer);\n else\n generatedUserId\n = firstNameEnteredText.substring(0,1) + lastNameEnteredText.substring(0,3) +\n timestamp.substring(timestampIndexer - 3 , timestampIndexer);\n\n }\n\n EditText userIdEditText = (EditText) findViewById(R.id.User_id);\n userIdEditText.setText(generatedUserId);\n\n\n\n }", "public void checkAnswer(View view) {\n TextView tv=findViewById(R.id.question);\n String question=tv.getText().toString();\n\n //split the question into numbers\n String [] numbers=question.split(\"X\");\n\n\n //convert the numbers into integer\n Integer num1, num2;\n num1=Integer.valueOf(numbers[0]);\n num2=Integer.valueOf(numbers[1]);\n\n\n user=findViewById(R.id.printAns);\n ans=findViewById(R.id.answer);\n Integer uer=Integer.parseInt(ans.getText().toString());\n\n\n\n int total=uer;\n\n\n if (num1*num2==total){\n user.setText(\"Your answer is correct\");\n\n }else{\n user.setText(\"Try Again\");\n }\n\n\n\n }", "@Override\n public void onClick(View view) {\n\n if (false == String.valueOf(texto.getText()).isEmpty() && Integer.valueOf(String.valueOf(texto.getText())) > 0) {\n\n switch (contador) {\n\n case 0:\n case 1:\n\n\n valores[contador] = Integer.valueOf(String.valueOf(texto.getText()));\n\n contador++;\n\n texto.setText(\"\");\n\n texto.setHint(preguntas[contador - 1]);\n\n break;\n\n case 2:\n\n valores[2] = Integer.valueOf(String.valueOf(texto.getText()));\n\n cambiarPantalla(view);\n\n break;\n\n\n }\n\n } else {\n\n Toast.makeText(IntroducirDatosTemporizador.this, getString(R.string.inserteValor), Toast.LENGTH_LONG).show();\n\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(phoneet.getText().toString().length()==11){\r\n\t\t\t\t\tphonell.setVisibility(View.GONE);\r\n\t\t\t\t\tyanzhengmall.setVisibility(View.VISIBLE);\r\n\t\t\t\t\tphonetv.setTextColor(getResources().getColor(R.color.bg_Black));\r\n\t\t\t\t\tyanzhengmatv.setTextColor(getResources().getColor(R.color.top_background));\r\n\t\t\t\t}else{\r\n\t\t\t\t\tToastUtil.showToast(RegisterActivity.this, \"手机号格式不正确\");\r\n\t\t\t\t}\r\n\t\t\t}", "private void increaseNum() {\n String preStr = pre.getText().toString();\n String number = num.getText().toString();\n String increase = inc.getText().toString();\n if (preStr.isEmpty() || number.isEmpty() || increase.isEmpty())\n {\n Toast.makeText(this, \"Complete required data\", Toast.LENGTH_SHORT).show();\n }\n else if (number.startsWith(\"0\") ||number.startsWith(\"+\"))\n {\n Toast.makeText(this, \"Please don't put prefixes in Numbers field\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n // generate the numbers and store them\n numbers = new ArrayList<>();\n for (int i = 0; i < Integer.parseInt(increase); i++)\n {\n Long numN = i + Long.parseLong(number);\n numbers.add(preStr + numN);\n }\n Intent intent = new Intent(MainActivity.this, SMSender.class);\n startActivity(intent);\n\n\n }\n\n }", "public void onClick(DialogInterface dialog,int id) {\n try {\n parseGrade(Integer.parseInt(userInput.getText().toString()));\n }\n catch(Exception e) {\n popUp(\"Please enter an integer, with no letters or symbols.\");\n }\n dialog.cancel();\n }", "public int inputBirthYear() {\n int birthYear = Integer.parseInt(editTextBirth.getText().toString());\n return birthYear;\n }", "private void viewStudent() {\n //Lesen wir die ID\n Scanner sc = new Scanner(System.in);\n System.out.print(\"ID of the student to be viewed: \");\n long ID = sc.nextLong();\n\n Student s = ctrl.getStudent(ID);\n if (s != null)\n System.out.println(s.toString()); //wir zeigen die Student\n else\n System.out.println(\"Student with this ID doesn't exist!\");\n }", "public void displayQuestionNumber(int questionNumber) {\n\n TextView questionView = (TextView) findViewById(R.id.question_number);\n questionView.setText(String.valueOf(questionNumber));\n\n\n }", "void listenerForOnlyDigitsInput(TextField textField) \r\n\t{\r\n\t\ttextField.textProperty().addListener((ChangeListener<? super String>) new ChangeListener<String>() \r\n\t\t{\r\n\t\t\tpublic void changed(ObservableValue<? extends String> observable, String oldValue, String newValue)\r\n\t\t\t{\r\n\t\t\t\tif (!newValue.matches(\"\\\\d*\")) \r\n\t\t\t\t{\r\n\t\t\t\t\ttextField.setText(newValue.replaceAll(\"[^\\\\d]\", \"\"));\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter only digits from 0 to 9.\", \"Notification\",\r\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t});\r\n\t}", "public void onTextChanged(CharSequence s, int start,int before, int count)\n {\n if(et1.getText().toString().length()==1) //size as per your requirement\n {\n et11.requestFocus();\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tif(0 != phone_num_edt.getText().length()){\n\t\t\t\t\t// To delete the last character in edittext\n\t\t\t\t\tphone_num_edt.getText().delete(phone_num_edt.getText().length() - 1,\n\t\t\t\t\t\t\tphone_num_edt.getText().length());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n strFirstNumber = etFirstNumber.getText().toString();\n strSecondNumber = etSecondNumber.getText().toString();\n\n //Convert String to Integer\n int firstNumber = Integer.parseInt(strFirstNumber);\n int secondNumber = Integer.parseInt(strSecondNumber);\n\n int answer;\n\n switch (flag){\n case 1:\n answer = firstNumber + secondNumber;\n tvResult.setText(\"Answer is:: + \"answer);\n break;\n case 2:\n answer = firstNumber - secondNumber;\n tvResult.setText(\"Answer is:: + \"answer);\n break;\n case 3:\n answer = firstNumber * secondNumber;\n tvResult.setText(\"Answer is:: + \"answer);\n break;\n default:\n break;\n }\n\n\n }", "private static boolean setStudentInput(int i, String value, StudentDetails student){\n\t\tswitch (i){\n\t\tcase 0:\n\t\t\tif(Integer.parseInt(value) < 1){//checks if value for student Id is < 1. Students cannot have Id numbers less than 1.\n\t\t\t\tSystem.out.println(\"ERROR: Invalid Student Id! Student Id cannot be less than 1.\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tstudent.setId(Integer.parseInt(value));\n\t\t\treturn true;\n\t\tcase 1:\n\t\t\treturn student.setFirstName(value); //returns false if name input was invalid\n\t\tcase 2:\n\t\t\treturn student.setMiddleName(value); //returns false if name input was invalid\n\t\tcase 3:\n\t\t\treturn student.setLastName(value); //returns false if name input was invalid\n\t\tcase 4:\n\t\t\treturn student.setGrade(Integer.parseInt(value)); //returns false if grade input was invalid\t\t\t\n\t\tcase 5:\n\t\t\t/*check if bookId exists. If bookId exists set student's bookIdBorrowed property to bookId. If student has\n\t\t\tnot borrowed a book, then bookId borrowed should be 0.*/\n\t\t\tif(ALL_BOOKS.containsKey(Integer.parseInt(value)) || Integer.parseInt(value) == 0){\n\t\t\t\tstudent.setBookIdBorrowed(Integer.parseInt(value));\n\t\t\t\treturn true; //indicates no error was encountered when setting bookIdBorrowed\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"ERROR: BookId does not exist!\");\n\t\t\t\treturn false; //indicates error setting bookIdBorrowed\n\t\t\t}\n\t\tcase 6:\n\t\t\tstudent.setTotalFine(Double.parseDouble(value));\n\t\t\treturn true;\n\t\tdefault: //error input, a student can only have up to 7 fields\n\t\t\tSystem.out.println(\"Invalid Property\");\n\t\t\treturn false;\n\t\t}\t\n\t}", "public int getStudentNum() {\n\t\treturn studentNum;\n\t}", "@Override\n public void onClick(View view) {\n String[] scores = new String[4];\n scores[0] = hintArray[0].getText().toString();\n scores[1] = hintArray[1].getText().toString();\n scores[2] = hintArray[2].getText().toString();\n scores[3] = hintArray[3].getText().toString();\n // Total scores for validation section\n int totalScore = 0;\n for (String score : scores){\n if (ScoreKeeper.isValidInteger(score)){\n totalScore += Integer.valueOf(score);\n }\n }\n\n // Validation section\n String validation = ScoreKeeper.editEntries(scores);\n if (validation == \"neg\"){\n Toast.makeText(getApplicationContext(),\"Negative scores not allowed\",\n Toast.LENGTH_LONG).show();\n } else if (validation == \"empty\") {\n Toast.makeText(getApplicationContext(), \"Enter all scores to continue\",\n Toast.LENGTH_LONG).show();\n } else if (validation == \"overage\") {\n Toast.makeText(getApplicationContext(), \"One score is larger than expected\",\n Toast.LENGTH_LONG).show();\n } else if (totalScore < Integer.valueOf(ScoreKeeper.getRound()[0])){\n Toast.makeText(getApplicationContext(), \"Total score is smaller than allowed\",\n Toast.LENGTH_LONG).show();\n } else if (totalScore > Integer.valueOf(ScoreKeeper.getRound()[0])){\n Toast.makeText(getApplicationContext(), \"Total score is larger than allowed\",\n Toast.LENGTH_LONG).show();\n } else {\n ScoreKeeper.putData(\"Scores\",scores);\n ScoreKeeper.scoresTaken();\n ScoreKeeper.incrementRound();\n ScoreKeeper.rotatePlayers();\n finish();\n }\n }", "private void checkTexts() {\n EditText firstText = (EditText) findViewById(R.id.txt_FirstNum);\n EditText secText = (EditText) findViewById(R.id.txt_SecondNum);\n EditText thirdText = (EditText) findViewById(R.id.txt_ThirdNum);\n EditText fourthText = (EditText) findViewById(R.id.txt_FourthNum);\n\n EditText[] allInputTextField = {firstText, secText, thirdText, fourthText};\n inputNum.clear();\n\n try {\n for (int i = 0; i < 4; i++) {\n Integer number = Integer.parseInt(allInputTextField[i].getText().toString());\n inputNum.add(number);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n if (randomNums.size() > 0 && inputNum.size() == 4) {\n for (int i = 0; i < randomNums.size(); i++) {\n int colorID;\n if (inputNum.get(i).equals(randomNums.get(i))) {\n colorID = R.color.green;\n } else if (inputNum.get(i) > 4) {\n colorID = R.color.red;\n } else {\n colorID = R.color.blue;\n }\n allInputTextField[i].setTextColor(getResources().getColor(colorID));\n }\n }\n }", "private void PopulateStudentInfo(int Id) {\n Student _student = _myDb.getStudentInfoById(Id);\n\n // ***** Build the fields for the data to update\n EditText _fullName = (EditText) findViewById(R.id.editTextFullName);\n EditText _birthdate = (EditText) findViewById(R.id.dateBirthday);\n EditText _fullStreetAddress = (EditText) findViewById(R.id.editTextFullAddress);\n EditText _contactPhone = (EditText) findViewById(R.id.editTextContactPhone);\n EditText _contactEmail = (EditText) findViewById(R.id.editTextContactEmail);\n EditText _parentNames = (EditText) findViewById(R.id.editTextParentNames);\n EditText _defaultRate = (EditText) findViewById(R.id.numberRate);\n EditText _notes = (EditText) findViewById(R.id.editTextNotes);\n\n // ***** Set the field values\n _fullName.setText(_student.fullName);\n _birthdate.setText(_student.birthDate);\n _fullStreetAddress.setText(_student.fullAddress);\n _contactPhone.setText(_student.contactPhone);\n _contactEmail.setText(_student.contactEmail);\n _parentNames.setText(_student.parentNames);\n\n // ***** Convert to a string from Display\n _defaultRate.setText(String.valueOf(_student.defaultRate));\n _notes.setText(_student.notes);\n\n }", "private void setTextWatcherListener() {\n\n TextWatcher textWatcher = new TextWatcher() {\n @Override\n public void onTextChanged(CharSequence s, int start, int before,int count) { }\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count,int after) {}\n @Override\n public void afterTextChanged(Editable s) {\n //Due To Pakistan Phone number start with 3\n if (s.toString().length() == 1 && !s.toString().startsWith(\"3\")) {\n s.clear();\n }\n }\n };\n\n //Set Listener\n etPhoneNumber.addTextChangedListener(textWatcher);\n\n }", "public void onTextChanged(CharSequence s, int start,int before, int count)\n {\n if(ett9.getText().toString().length()==1) //size as per your requirement\n {\n ett10.requestFocus();\n }\n }", "private boolean isSSNFourDigits(String toCheck) {\r\n if (toCheck.length() > 0 && toCheck.length() != 4) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have 4 Characters\");\r\n return false;\r\n } else if (toCheck.length() == 0) {\r\n JOptionPane.showMessageDialog\r\n (null, \"No Social Security # entered\");\r\n return false;\r\n } else if (toCheck.length() == 4) {\r\n for (int i = 0; i < 4; i++) {\r\n if (!Character.isDigit(toCheck.charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have Only Numbers\");\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\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(\"9\");\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() + \"9\");\n\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t}", "public String getStudentName(){\n return studentName.getText().trim();\n }", "@Override\n \tpublic void onEditSessionComplete(TextView v) {\n \t\ttry {\n \t\t\tfinal int valueGiven = (Integer.parseInt(v.getText().toString()));\n \t\tif(valueGiven < 0){\n \t\t\tv.setText(Integer.toString(1));\n \t\t}\n \t\telse if(valueGiven > 99){\n \t\t\tv.setText(Integer.toString(99));\n \t\t}\n\t\t\t\t\tLog.d(\"TableEditDialog\", \"adaptDialogTable FALSE\");\n \t\tadaptDialogTable(dialogTable, valueGiven, false);\t\n \t\t}\n \t\tcatch(NumberFormatException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n pump_no.setText(editText.getText().toString().trim());\n } else {\n pump_no.setText(\"\");\n }\n }", "@Test(dependsOnMethods = {\"shouldBeAbleToClick72Months\"})\n public void shouldBeAbleToInputNumericCharactersInInterestRateField() {\n //1. Enter 6 in the Interest Rate Field\n calculatePaymentPage.setInterestRateInput(\"6\");\n //2. Enter 11 in the Interest Rate Field\n calculatePaymentPage.setInterestRateInput(\"11\");\n }", "public void inputGrade() {\n inzoo = false;\n // get prompts.xml view\n LayoutInflater li = LayoutInflater.from(context);\n View promptsView = li.inflate(R.layout.input_dialog, null);\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n context);\n\n // set prompts.xml to alertdialog builder\n alertDialogBuilder.setView(promptsView);\n\n final TextView promptText = (TextView) promptsView\n .findViewById(R.id.textView1);\n promptText.setText(\"Input a Grade\");\n\n final EditText userInput = (EditText) promptsView\n .findViewById(R.id.editTextDialogUserInput);\n\n // set dialog message\n alertDialogBuilder\n .setCancelable(false)\n .setPositiveButton(\"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n // get user input and use it as a grade to calculate lootcrate gain\n try {\n parseGrade(Integer.parseInt(userInput.getText().toString()));\n }\n catch(Exception e) {\n popUp(\"Please enter an integer, with no letters or symbols.\");\n }\n dialog.cancel();\n }\n })\n .setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }\n });\n\n // create alert dialog\n AlertDialog alertDialog = alertDialogBuilder.create();\n\n // show it\n alertDialog.show();\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(\"2\");\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() + \"2\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "private void addStudentButtonActionPerformed(java.awt.event.ActionEvent evt) {\n if(lastName.getText().length()==0 && firstName.getText().length()==0) {\n JOptionPane.showMessageDialog(this, \"Some of the fields are empty!\");\n } else if(isInteger(levelOfStudy.getText())) {\n JOptionPane.showMessageDialog(this, \"Valid infomation, adding student (may take a minute)\");\n controller.addStudent(firstName.getText(),lastName.getText(),degreeName.getSelectedItem().toString(),tutor.getText(),levelOfStudy.getText());\n scrollTable.showStudents();\n JOptionPane.showMessageDialog(this, \"Created with password of '123'\");\n } else {\n JOptionPane.showMessageDialog(this, \"Period of study must be a vaild year!\");\n }\n \n \n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (inputET.length() >= Digits.currentDigit.getFractionalPart().length()) {\n // End the game\n end(inputET.length() - 1, true);\n return;\n }\n // We can now assume that inputET.length() < fractionalPart.length(), so we can safely\n // call Digits.isIncorrect.\n if (Digits.isIncorrect(inputET.getText().toString(), 1)) {\n end(inputET.length() - 1, true);\n } else {\n if (inputET.getText().length() == 1 && before == 0) {\n stopWatch.start();\n highScoresButton.setImageResource(R.drawable.ic_stop_36dp);\n // Lock screen orientation\n int orientation = getContext().getResources().getConfiguration().orientation;\n getActivity().setRequestedOrientation(orientation == Configuration.ORIENTATION_LANDSCAPE ?\n ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE : ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT);\n }\n updateDigitsText();\n }\n }", "public void phone_validate(View v1) {\n Intent A2Intent = new Intent (v1.getContext(), Main2Activity.class);\n EditText phone = (EditText) findViewById(R.id.editText);\n // pass the entered phone number to the next activity\n //A2Intent.putExtra(\"phoneNumber\", tv2.getText());\n String ph = phone.getText().toString();\n A2Intent.putExtra(\"phoneNumber\", ph);\n\n // start the next activity/page\n startActivity(A2Intent);\n\n\n }", "@Override\n public void onClick(View v) {\n TextView tries_tv;\n tries_tv = findViewById(R.id.notries_Textview);\n //check to see if tries is 1\n if (tries_tv.getText().equals(\"1\")){\n //do nothing\n } else{\n // converting value to integer and subtracting 1\n Integer amount_tries = (Integer.parseInt(tries_tv.getText().toString()) - 1);\n // putting it back as a String\n String new_tries = amount_tries.toString();\n // updating the tries textview to decremented value\n tries_tv.setText(new_tries);\n }\n }", "public int getStudentNumber() { return studentNumber; }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (data != null) {\n Uri uri = data.getData();\n if (uri != null) {\n Cursor c = null;\n try {\n c = getContentResolver().query(uri, new String[]{ \n ContactsContract.CommonDataKinds.Phone.NUMBER, \n ContactsContract.CommonDataKinds.Phone.TYPE },\n null, null, null);\n \t\n if (c != null && c.moveToFirst()) {\n // put the number back to the edittext field\n String number = c.getString(0); \n EditText text = (EditText) findViewById(R.id.ToNumberText);\n text.setText(number);\n }\n } finally {\n if (c != null) {\n c.close();\n }\n }\n }\n }\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\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}", "@Override\n public void onClick(View v) {\n Integer amount_tries = (Integer.parseInt(tries_tv.getText().toString()) + 1);\n // putting it back as a String\n String new_tries = amount_tries.toString();\n // updating the tries textview to incremented value\n tries_tv.setText(new_tries);\n\n }", "private boolean checkOdometerNumber(EditText text, TextInputLayout TFB, String massage) {\n if(text.getText().toString().length() > 8)\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if ((mQuantityEditText.getText().toString().isEmpty())) {\n mTemporaryQuantity = 0;\n } else {\n try {\n mTemporaryQuantity = Integer.parseInt(mQuantityEditText.getText().toString());\n } catch (NumberFormatException e) {\n\n }\n }\n }", "public void setText(int str) { this.editText.setText(str); }", "public void onTextChanged(CharSequence s, int start,int before, int count)\n {\n if(et1.getText().toString().length()==1) //size as per your requirement\n {\n et10.requestFocus();\n }\n }", "public void Correct(View view) {\n\n TextView textview = (TextView) findViewById(R.id.textViewer);\n CharSequence text = textview.getText();\n String temp = text.toString(); //extracting the number from question string\n String[] s = temp.split(\" \");\n String n = s[0];\n int prime = Integer.parseInt(n);\n\n Context context = getApplicationContext();\n\n int i, flag = 0;\n if (prime == 1) {\n flag = 1;\n }\n for (i = 2; i <= prime / 2; ++i) {\n // condition for nonprime number\n if (prime % i == 0) {\n flag = 1;\n break;\n }\n }\n\n if(flag==0 && pressed>=1 && clicked>=1)\n {\n Toast.makeText(context, \"Correct but you have taken hint and cheated\", Toast.LENGTH_SHORT).show();\n }\n else if (flag == 0 && pressed>=1) {\n\n Toast.makeText(context, \"Correct but you have taken hint\", Toast.LENGTH_SHORT).show();\n }\n\n else if(flag==0 && clicked>=1)\n {\n Toast.makeText(context, \"Correct but you have cheated\", Toast.LENGTH_SHORT).show();\n }\n else if(flag==0)\n {\n Toast.makeText(context, \"Correct\", Toast.LENGTH_SHORT).show();\n }\n\n else if(flag==1 && clicked>=1 && pressed>=1)\n {\n Toast.makeText(context, \" Not Correct but you have taken hint and cheated\", Toast.LENGTH_SHORT).show();\n }\n\n else if (flag == 1 && pressed>=1) {\n\n Toast.makeText(context, \" Not Correct but you have taken hint\", Toast.LENGTH_SHORT).show();\n }\n\n else if(flag==1 && clicked>=1)\n {\n Toast.makeText(context, \" Not Correct but you have cheated\", Toast.LENGTH_SHORT).show();\n }\n\n\n else if(flag==1)\n {\n Toast.makeText(context, \" Not Correct\", Toast.LENGTH_SHORT).show();\n }\n }", "public void onClick(DialogInterface dialog,int id) {\n if(password.equals(\"\"))\n password = userInput.getText().toString();\n if(userInput.getText().toString().equals(password)) {\n inputGrade();\n }\n }" ]
[ "0.5999645", "0.59949595", "0.5905041", "0.58048546", "0.5763185", "0.57614803", "0.5744648", "0.5720066", "0.57105476", "0.57024074", "0.5694192", "0.5649423", "0.5585164", "0.55804104", "0.55722517", "0.5561141", "0.55546916", "0.55363303", "0.55282414", "0.55182815", "0.5511563", "0.54986113", "0.5490915", "0.54879916", "0.5487092", "0.54815793", "0.54511446", "0.5448843", "0.5444999", "0.54421496", "0.54361814", "0.54328746", "0.5410151", "0.5398414", "0.53916836", "0.53641105", "0.5356697", "0.5355536", "0.53532696", "0.53515995", "0.5344247", "0.5343882", "0.5339882", "0.53388137", "0.5336674", "0.5333622", "0.5332942", "0.53276646", "0.5327327", "0.53228104", "0.53222865", "0.53144336", "0.53059995", "0.5293088", "0.5278808", "0.52722394", "0.5259617", "0.525568", "0.5244532", "0.5236895", "0.5236877", "0.5236312", "0.52285415", "0.52271074", "0.5225347", "0.5219983", "0.5216819", "0.5205691", "0.5202021", "0.5198512", "0.5195769", "0.51797485", "0.517791", "0.5175987", "0.5175322", "0.5167511", "0.5165097", "0.51640296", "0.51610297", "0.51476645", "0.51403666", "0.5137292", "0.5134563", "0.51317763", "0.5128367", "0.5122914", "0.51225764", "0.51202124", "0.5119207", "0.51038444", "0.51036155", "0.5102821", "0.51010966", "0.50999707", "0.5099343", "0.5093982", "0.50924385", "0.50918067", "0.5090608", "0.508791" ]
0.569534
10
To test the password editText
@Test public void passText() { onView(withId(R.id.edPassReg)).perform(typeText("hey")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void weakPassword(){\n onView(withId(R.id.editText)).perform(clearText(), typeText(\"password\"),closeSoftKeyboard());\n onView(withId(R.id.button)).perform(click());\n // Assert equals textView text\n onView(withId(R.id.textView)).check(matches(withText(\"Not strong\")));\n }", "@Test\n public void strongestPassword(){\n onView(withId(R.id.editText)).perform(clearText(), typeText(\"Good!123\"),closeSoftKeyboard());\n onView(withId(R.id.button)).perform(click());\n // Assert equals textView text\n onView(withId(R.id.textView)).check(matches(withText(\"Strongest\")));\n }", "@Test\n public void somewhatStrongPassword(){\n onView(withId(R.id.editText)).perform(clearText(), typeText(\"Good!\"),closeSoftKeyboard());\n onView(withId(R.id.button)).perform(click());\n // Assert equals textView text\n onView(withId(R.id.textView)).check(matches(withText(\"Somewhat strong\")));\n }", "@Test\n public void AshortPass () {\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //enter correct past password\n onView(withId(R.id.oldPassword)).perform(typeText(\"00000000\"));\n //close keyboard\n closeSoftKeyboard();\n //enter new short pass\n onView(withId(R.id.newPassword)).perform(typeText(\"pa00\"));\n //close keyboard\n closeSoftKeyboard();\n //renter again the new short pass\n onView(withId(R.id.reNewPassword)).perform(typeText(\"pa00\"));\n //close keyboard\n closeSoftKeyboard();\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.passwordChar))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.passwordChar)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "@Test\n public void testInvalidPassword() {\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"username_edit_text\"))\n .setText(USERNAME_TO_BE_TYPED);\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"password_edit_text\"))\n .setText(INVALID_PASSWORD_TO_BE_TYPED);\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"login_button\"))\n .click();\n\n }", "private void validatePasswordField() {\n userPassword = passwordEditText.getText().toString();\n if (!isPasswordValid()) {\n passwordEditText.setTextColor(getResources().getColor(R.color.colorWrongText));\n loginButton.setEnabled(false);\n } else {\n passwordEditText.setTextColor(getResources().getColor(R.color.colorRightText));\n loginButton.setEnabled(true);\n }\n }", "@Test\n public void BnotMatchPass () {\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //enter correct past password\n onView(withId(R.id.oldPassword)).perform(typeText(\"00000000\"));\n //close keyboard\n closeSoftKeyboard();\n //enter new pass\n onView(withId(R.id.newPassword)).perform(typeText(\"serene00\"));\n //close keyboard\n closeSoftKeyboard();\n //enter diff new pass\n onView(withId(R.id.reNewPassword)).perform(typeText(\"passwoord77\"));\n //close keyboard\n closeSoftKeyboard();\n //click the save button\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.passwordMatch))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.passwordMatch)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "public void typePassword(String text) {\n txtPassword().typeText(text);\n }", "@Override\n public void setOnPasswordFinished() {\n if (passwordView.getOriginText().length() == passwordView.getMaxPasswordLength()) {\n Toast.makeText(this, \"密码为\" + passwordView.getOriginText(), Toast.LENGTH_LONG).show();\n }\n }", "private boolean checkPassword() {\n String password = Objects.requireNonNull(password1.getEditText()).getText().toString();\n\n return password.length() >= 8 && ContainSpecial(password) && noUpper(password);\n }", "private boolean isPasswordValid(String password) {\n if(password.length() < 4){\n TextView tv = findViewById(R.id.wrongPassError);\n tv.setText(getResources().getString(R.string.error_invalid_password));\n return false;\n }\n return true;\n }", "@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\tu.setPassword(s.toString());\n\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n passwordEt.setInputType(InputType.TYPE_CLASS_TEXT |\n InputType.TYPE_TEXT_VARIATION_PASSWORD);\n passwordEt.setText(\"\");\n\n }", "public void afterTextChanged(Editable s) {\n Validate.isPassword(editTextPassword, true);\n }", "@When(\"^password$\")\n public void password() throws Throwable {\n \tSystem.out.println(\"input password\");\n \t//Assert.assertEquals(34, 40);\n \t\n \t\n \n }", "@Test\n public void CsamePass () {\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //enter correct past password\n onView(withId(R.id.oldPassword)).perform(typeText(\"00000000\"));\n //close keyboard\n closeSoftKeyboard();\n //enter new pass that same as old\n onView(withId(R.id.newPassword)).perform(typeText(\"00000000\"));\n //close keyboard\n closeSoftKeyboard();\n //renter again the new pass that same as old\n onView(withId(R.id.reNewPassword)).perform(typeText(\"00000000\"));\n //close keyboard\n closeSoftKeyboard();\n //click the button\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.passwordSame))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.passwordSame)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "public boolean validatePassword() {\r\n\t\tif (txtPassword.getValue() == null || txtPassword.getValue().length() == 0 || !txtPassword.getValue().equals(txtRetypePassword.getValue()))\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif(passtog.isChecked())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttextField3.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);\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\ttextField3.setInputType(InputType.TYPE_CLASS_TEXT);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "private boolean validatePassword() {\n\t\tEditText pw = (EditText)view.findViewById(R.id.et_enter_new_password);\n\t\tEditText confPW = (EditText)view.findViewById(R.id.et_reenter_new_password);\n\t\t\t\n\t\tString passwd = pw.getText().toString();\n\t\tString confpw = confPW.getText().toString();\n\t\t\n\t\t// Check for nulls\n\t\tif (passwd == null || confpw == null) {\n\t\t\tToast.makeText(view.getContext(), \"Passwords are required\", Toast.LENGTH_LONG).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Ensure password and retypted passwords match\n\t\tif (!passwd.contentEquals(confpw)) {\n\t\t\tToast.makeText(view.getContext(), \"Passwords must match\", Toast.LENGTH_LONG).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Ensure password meets complexity\n\t\tif (passwd.length() < 7) { // min length of 7 chars\n\t\t\tToast.makeText(view.getContext(), \"Password must be at least 7 characters long\", \n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Not really sure what the requirements are for private key password complexity yet\n\t\tnewPassword = passwd; // Set class variable with new password\n\t\treturn true;\n\t}", "public void setPassword(String text) {\n txtPassword().setText(text);\n }", "@Override\n\t\t\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t\t\tif(!hasFocus){\n\t\t\t\t\t\t\tif(register_passwd.getText().toString().trim().length()<6){\n\t\t\t\t\t\t\t\tToast.makeText(RegisteredActivity.this, \"密码不能小于8个字符\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n passwordEt.setInputType(InputType.TYPE_CLASS_NUMBER |\n InputType.TYPE_NUMBER_VARIATION_PASSWORD);\n passwordEt.setText(\"\");\n }", "public void testCorrectPassword() {\n Password p = new Password(\"jesus\".toCharArray());\n assertTrue(p.checkPassword(\"jesus\".toCharArray()));\n }", "private boolean cekPassword(String password){\n return password.equals(Preferences.getRegisteredPass(getBaseContext()));\n }", "@Override\n public void onClick(View v) {\n valOldPassword(edPass1);\n valNewPassword(edPass2);\n if (valOldPassword(edPass1) && valNewPassword(edPass2)){\n String antPass = edPass1.getText().toString();\n String sigPass = edPass2.getText().toString();\n //Validar que la password anterior edPass1 sea correcta.\n valPassword(antPass);\n if (valPassword(antPass)){\n //Se cambiará la password\n dialogUpdatePass(sigPass);\n }else{\n Toast.makeText(CambiarPassword.this, \"La contraseña ingresada no es correcta\", Toast.LENGTH_SHORT).show();\n }\n }else{\n Toast.makeText(CambiarPassword.this, \"Debe llenar todos los campos\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\r\n\t\t\tpublic void afterTextChanged(Editable edit) {\n\t\t\t\tpassword = edit.toString();\r\n\t\t\t}", "@When(\"^The user enters the password$\")\n\tpublic void the_user_enters_the_password() throws Throwable {\n\t\t\n\t lpw.password_textbox();\n\t}", "public static Boolean checkPassowd(String password){\n\t\t//String password = txtPassword.getText();\n\t\t//System.out.println(password);\n\t\treturn password.equals(\"password\");\n\t}", "boolean getPasswordValid();", "@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\r\n\t\t case R.id.modifypwd_ensure:\r\n\t\t \tstrNewPasswd = CEnewPasswd.getText().toString();\r\n\t\t \tstrRenewPasswd = CErenewPasswd.getText().toString();\r\n\t\t \t\r\n\t\t \tif (strOldPasswd == null || strNewPasswd == null || strRenewPasswd == null){\r\n\t\t \t\tToast.makeText(ModifyPassword.this, \"请输入密码!\", Toast.LENGTH_SHORT).show();\r\n\t\t \t\treturn;\r\n\t\t \t}\r\n\t\t \tif (!strNewPasswd.equals(strRenewPasswd)){\r\n\t\t \t\tToast.makeText(ModifyPassword.this, \"两次输入的密码不一致,请重新输入!\", Toast.LENGTH_SHORT).show();\r\n\t\t \t\treturn;\r\n\t\t \t}\r\n\t\t \tif (strOldPasswd.equals(strNewPasswd)){\r\n\t\t \t\tToast.makeText(ModifyPassword.this, \"新旧密码一样,请重新输入!\", Toast.LENGTH_SHORT).show();\r\n\t\t \t\treturn;\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \tif ((strNewPasswd.length() < 6) || (strNewPasswd.length() > 16)){\r\n\t\t\t\t\tToast.makeText(ModifyPassword.this, \"密码应为6-16位字母和数字组合!\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else{\r\n\t\t\t\t\tPattern pN = Pattern.compile(\"[0-9]{6,16}\");\r\n\t\t\t\t Matcher mN = pN.matcher(strNewPasswd);\r\n\t\t\t\t Pattern pS = Pattern.compile(\"[a-zA-Z]{6,16}\");\r\n\t\t\t\t Matcher mS = pS.matcher(strNewPasswd);\r\n\t\t\t\t if((mN.matches()) || (mS.matches())){\r\n\t\t\t\t Toast.makeText(ModifyPassword.this,\"密码应为6-16位字母和数字组合!\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t return;\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\r\n\t\t \tif (new ConnectionDetector(ModifyPassword.this).isConnectingTOInternet()) {\r\n\t\t \t\tpd = ProgressDialog.show(ModifyPassword.this, \"\", \"正在加载....\");\r\n\t\t \t\tnew RequestTask().execute();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tToast.makeText(ModifyPassword.this, \"网络连接不可用,请检查网络后再试\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\t\t \tbreak;\r\n\t\t case R.id.modify_pwd_back:\r\n\t\t \tstartActivity(new Intent(ModifyPassword.this, ShowUserMessage.class));\r\n\t\t \tthis.finish();\r\n\t\t \tbreak;\r\n\t\t default:\r\n\t\t \tbreak;\r\n\t\t}\r\n\t}", "public String getPassword() {\n return txtPassword().getText();\n }", "@When(\"^user should enter the valid password in the loginpage$\")\n\tpublic void user_should_enter_the_valid_password_in_the_loginpage() throws Throwable {\n\t\tinputValuestoElement(pa.getAp().getPasswordinput(), \"superman@1010\");\n\t\n\t \n\t}", "public void showPasswordPrompt();", "@Test\n\t void testPassword() {\n\t\tString expected=passwordEncoder.encode(\"faizan@123\");\n\t\tString actual=user.getPassword();\n\t\tassertNotEquals(expected, actual);\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString pass = sp.getString(\"pass\", \"\");\r\n\t\t\t\tLog.d(\"pass\", pass);\r\n\t\t\t\tif(edtPass.getText().toString().equals(pass)){\r\n\t\t\t\t\tstartActivity(new Intent(PasswordMain.this, MainActivity.class));\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\tToast.makeText(PasswordMain.this, \"Password Is Invalid\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\tedtPass.setText(\"\");\r\n\t\t\t\t}\r\n\t\t\t}", "private boolean checkPassword(){\n Pattern p = Pattern.compile(\"^[A-z0-9]*$\");\n Matcher m = p.matcher(newPass.getText());\n boolean b = m.matches();\n if(newPass.getText().compareTo(repeatPass.getText()) != 0 || newPass.getText().isEmpty() || repeatPass.getText().isEmpty()){\n repeatPass.setBackground(Color.red);\n JOptionPane.showMessageDialog(null, \"Password Error\");\n return false;\n }\n else if(newPass.getText().length() > 10 || b == false){\n newPass.setBackground(Color.red);\n JOptionPane.showMessageDialog(null, \"Password Error\");\n return false;\n }\n newPass.setBackground(Color.green);\n repeatPass.setBackground(Color.green);\n return true;\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\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}", "private void validatePassword() {\n mPassWordValidator.processResult(\n mPassWordValidator.apply(binding.registerPassword.getText().toString()),\n this::verifyAuthWithServer,\n result -> binding.registerPassword.setError(\"Please enter a valid Password.\"));\n }", "@Override\n public void onClick(View v) {\n String newPass=et_newPassword.getText().toString().trim();\n String oldPass=et_oldPassword.getText().toString().trim();\n String prefpass=SharedPrefManager.getInstance(getApplicationContext()).getPass();\n if(newPass.equals(\"\")||oldPass.equals(\"\"))\n {\n Toast.makeText(MainActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else if(!prefpass.equals(oldPass))\n {\n Toast.makeText(MainActivity.this, \"Incorrect Old Password\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updatePass(oldPass,newPass,\"User\");\n Toast.makeText(MainActivity.this, \"Password Successfully Changed\", Toast.LENGTH_SHORT).show();\n logout();\n dialog.dismiss();\n }\n }", "@Override\r\n public void onClick(View view) {\n showDialog(PASSWORD_DIALOG_ID);\r\n }", "boolean hasPassword2();", "@Override\n public void onClick(View view) {\n if (!flag) {\n\n check_passwd_text.setTransformationMethod(SingleLineTransformationMethod.getInstance());\n flag = !flag;\n } else {\n check_passwd_text.setTransformationMethod(PasswordTransformationMethod.getInstance());\n flag = !flag;\n }\n }", "@SuppressLint(\"NonConstantResourceId\")\n @Override\n public void onClick(View view) {\n String username, password;\n username = usernameField.getText().toString();\n password = passwordField.getText().toString();\n\n String pwdValidationRegex = \"^(?=.*[0-9])\"\n + \"(?=.*[a-z])\"\n + \"(?=.*[A-Z])\"\n + \"(?=.*[@#$%^&+=])\"\n + \"(?=\\\\S+$).{8,}$\";\n //For ref: https://www.geeksforgeeks.org/how-to-validate-a-password-using-regular-expressions-in-java/\n\n if (username.isEmpty()) {\n makeToast(\"Please don't forget to fill up username...\");\n return;\n }\n if (!password.matches(pwdValidationRegex)) {\n makeToast(\"Password validation failed!\");\n } else {\n Bundle userBundle = new Bundle();\n userBundle.putString(\"userNameKey\", username);\n userBundle.putString(\"passwordKey\", password);\n Intent intent = new Intent(this, SignInActivity.class);\n intent.putExtras(userBundle);\n startActivity(intent);\n }\n }", "public boolean verifyPassword(int input){\n return input==password;\n }", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "public void testIncorrectPassword() {\n Password p = new Password(\"jesus\".toCharArray());\n assertFalse(p.checkPassword(\"buddha\".toCharArray()));\n }", "@Test\r\n\tpublic void testIsValidPasswordSuccessful()\r\n\t{\r\n\t\tassertTrue(PasswordCheckerUtility.isValidPassword(\"#SuperMan1\"));\r\n\t}", "@Override\n public boolean onTouch (View v, MotionEvent event){\n switch (event.getAction()){\n case MotionEvent.ACTION_DOWN:\n\n //Pressed. Show password\n //mEditPassw.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);\n //new code\n mEditPassw.setTransformationMethod(null);\n break;\n case MotionEvent.ACTION_UP:\n\n //Released. Hide password\n //mEditPassw.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);\n //New code\n mEditPassw.setTransformationMethod(new PasswordTransformationMethod());\n break;\n }\n return true; //Not handles action_cancel, cause I on\n }", "@Test\n public void testValidUserNamePassword() {\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"username_edit_text\"))\n .setText(USERNAME_TO_BE_TYPED);\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"password_edit_text\"))\n .setText(PASSWORD_TO_BE_TYPED);\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"login_button\"))\n .click();\n UiObject2 welcomeText = mDevice\n .wait(Until.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"welcome_text_view\")),\n 500 /* wait 500ms */);\n assertThat(welcomeText.getText(), is(equalTo(WELCOME)));\n\n UiObject2 usernameText = mDevice\n .wait(Until.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"username_value\")),\n 500 /* wait 500ms */);\n assertThat(usernameText.getText(), is(equalTo(USERNAME_TO_BE_TYPED)));\n\n UiObject2 passwordText = mDevice\n .wait(Until.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"password_value\")),\n 500 /* wait 500ms */);\n assertThat(passwordText.getText(), is(equalTo(PASSWORD_TO_BE_TYPED)));\n\n }", "public static boolean checkPassword()\n {\n String pw = SmartDashboard.getString(\"Password\");\n SmartDashboard.putString(\"Password\", \"\"); //Clear the password field so that it must be reentered\n\n if(pw.equals(ADMIN_PASSWORD))\n return true;\n else\n {\n log(\"Password invalid\"); //The user gave an incorrect password, inform them.\n return false;\n }\n }", "@Override\n\t\t\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t\t\tif(!hasFocus){\n\t\t\t\t\t\t\tif(!reregister_passwd.getText().toString().trim().equals(register_passwd.getText().toString().trim())){\n\t\t\t\t\t\t\t\tToast.makeText(RegisteredActivity.this, \"两次密码输入不一致\", Toast.LENGTH_SHORT).show(); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "@Test(priority=1)\n\tpublic void testPasswordValidity() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"jane@doe.com\");\n\t\tsignup.enterPassword(\"1234567\");\n\t\tsignup.reenterPassword(\"1234567\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\t\n\t\t// is String Present looks for the presence of expected error message from all of errors present on current screen. \n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Passwords do not match; please enter a password and reenter to confirm.\\nPasswords must contain at least 6 characters and no spaces.\"));\n\t}", "@Test\n public void passUpdateWrong () {\n //check the display name as expected\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //enter wrong past password\n onView(withId(R.id.oldPassword)).perform(typeText(\"serene88\"));\n //close keyboard\n closeSoftKeyboard();\n //enter new pass\n onView(withId(R.id.newPassword)).perform(typeText(\"serene99\"));\n //close keyboard\n closeSoftKeyboard();\n //reenter new pass\n onView(withId(R.id.reNewPassword)).perform(typeText(\"serene99\"));\n //close keyboard\n closeSoftKeyboard();\n //click the button\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.wrongPassword))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.wrongPassword)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "@Override\r\n\tpublic boolean validatePassword(String arg0, String arg1) {\n\t\treturn false;\r\n\t}", "@Override\n public void onClick(View v) {\n String newPass=et_newPassword.getText().toString().trim();\n String oldPass=et_oldPassword.getText().toString().trim();\n String prefpass=SharedPrefManager.getInstance(getApplicationContext()).getPass();\n if(newPass.equals(\"\")||oldPass.equals(\"\"))\n {\n Toast.makeText(AdminHomeActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else if(!prefpass.equals(oldPass))\n {\n Toast.makeText(AdminHomeActivity.this, \"Incorrect Old Password\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updatePass(oldPass,newPass,\"Admin\");\n Toast.makeText(AdminHomeActivity.this, \"Password Successfully Changed\", Toast.LENGTH_SHORT).show();\n logout();\n dialog.dismiss();\n }\n }", "public boolean isValidPassword(TextInputLayout tiPassword, EditText etPassword) {\n String password = etPassword.getText().toString().trim();\n boolean result = false;\n\n if (password.length() == 0)\n tiPassword.setError(c.getString(R.string.required));\n else if (password.length() < PASSWORD_MIN_SIZE)\n tiPassword.setError(c.getString(R.string.minLength, Integer.toString(PASSWORD_MIN_SIZE)));\n else if (password.length() > PASSWORD_MAX_SIZE)\n tiPassword.setError(c.getString(R.string.maxLength, Integer.toString(PASSWORD_MAX_SIZE)));\n else {\n tiPassword.setError(null);\n result = true;\n }\n\n return result;\n }", "@Test\n\tpublic void checkconfirmpassword_characters()\n\t{\n\t\t\n\t\tPageFactory.initElements(driver, Resetpassword.class);\n\t\tResetpassword.confirm_password.sendKeys(\"co12!@\");\n\t\tString user_text=Resetpassword.error_message.getText();\n\t\tAssert.assertEquals(user_text,\"co12!@\");\n\t\t\n\t}", "@Override\n\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\tif(!TextUtils.isEmpty(et_password.getText()))\n\t\t\t{\n\t\t\t\ttv_error_password.setVisibility(View.INVISIBLE);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttv_error_password.setText(\"*密码不能为空\");\n\t\t\t\ttv_error_password.setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t}", "@Override\r\n\t\t\tpublic void afterTextChanged(Editable edit) {\n\t\t\t\tconfirmPassword = edit.toString();\r\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n String pass = pass_edit.getText().toString();\n if (pass.equals(real_pass)) {\n //Enter the room\n Toast.makeText(RoomSelecter.this, \"Correct password\", Toast.LENGTH_SHORT).show();\n ReturnRoomName(room);\n } else {\n Toast.makeText(RoomSelecter.this, \"Wrong password\", Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif ((!userNameEditText.getText().toString().matches(\"\")) &&\n\t\t\t\t\t(!passwordEditText.getText().toString().matches(\"\")) &&\n\t\t\t\t\t(!numberPlateEditText.getText().toString().matches(\"\"))) {\n\t\t\t\t\t//checking if user is authenticated\n\t\t\t\t\tcheckPassword(userNameEditText.getText(),\n\t\t\t\t\t\t\t\tpasswordEditText.getText(),\n\t\t\t\t\t\t\t\tnumberPlateEditText.getText());\n\t\t\t\t}\t\t\t\n\t\t\t\tuserNameEditText.requestFocus();\n\t\t\t}", "public boolean isPasswordCorrect() {\n return (CustomerModel.passwordTest(new String(newPasswordTextField.getPassword())));\n }", "void onPasswordSuccess();", "@Test\n public void _1passwordPasswordTest() {\n // TODO: test _1passwordPassword\n }", "@Test\n public void passwordTestTrue () {\n Accounts test = null;\n test.createAccounts();\n test = Accounts.getByPassword(\"bob123\");\n assertNotNull(test);\n }", "public void onPressFinish(View view) {\n final String newPass1 = txtNewPass1.getText().toString();\n final String newPass2 = txtNewPass2.getText().toString();\n final String answer1 = txtAnswer1.getText().toString();\n final String answer2 = txtAnswer2.getText().toString();\n final String answer3 = txtAnswer3.getText().toString();\n if (answer1.length() == 0) {\n txtAnswer1.requestFocus();\n txtAnswer1.setError(\"Field cannot be empty\");\n } else if (answer2.length() == 0) {\n txtAnswer2.requestFocus();\n txtAnswer2.setError(\"Field cannot be empty\");\n } else if (answer3.length() == 0) {//Makes sure both password fields entered are equal\n txtAnswer3.requestFocus();\n txtAnswer3.setError(\"Field cannot be empty\");\n }\n if (newPass1.length() == 0) {\n txtNewPass1.requestFocus();\n txtNewPass1.setError(\"Field cannot be empty\");\n } else if (newPass2.length() == 0) {\n txtNewPass2.requestFocus();\n txtNewPass2.setError(\"Field cannot be empty\");\n } else if (!newPass2.equals(newPass1)) {//Makes sure both password fields entered are equal\n txtNewPass2.requestFocus();\n txtNewPass2.setError(\"Passwords must match\");\n }\n else if (!newPass1.matches(\"^(?=.*[A-Za-z])(?=.*\\\\d)[A-Za-z\\\\d]{8,64}$\")) //Ensures the password contains 8 characters and at least 1 number\n {\n txtNewPass1.requestFocus();\n txtNewPass1.setError(\"Invalid password, must contain 8 characters and at least 1 number\");\n }\n else{\n validateAnswers(answer1, answer2, answer3, newPass1, newPass2);\n }\n }", "private boolean isPasswordValid(String password){\n return password.length() > 2; //mot de passe de longueur sup à 2\n }", "@Override\n public void onClick(View v) {\n String num1 = Integer.toString(pin1.getValue());\n String num2 = Integer.toString(pin2.getValue());\n String num3 = Integer.toString(pin3.getValue());\n String num4 = Integer.toString(pin4.getValue());\n StringBuilder passBuilder = new StringBuilder();\n passBuilder.append(num1);\n passBuilder.append(num2);\n passBuilder.append(num3);\n passBuilder.append(num4);\n String password = passBuilder.toString();\n\n if(password.equals(selected_user.getPassword())) {\n changeUser(position);\n dialog.dismiss();\n } else {\n Toast.makeText(activity, \"Wrong password, you've entered : \" + password, Toast.LENGTH_SHORT).show();\n }\n }", "public String valiationOfPasswordField()\n\t{\n\t\twaitForVisibility(validationPassword);\n\t\treturn validationPassword.getText();\n\t}", "@Override\n public void onClick(View view) {\n\n String nombre = etNombre.getText().toString();\n String password = etPassword.getText().toString();\n String nombreVolteado = \"\";\n\n //Mostrar el dato\n for (int i = nombre.length()-1; i>=0; i--){\n nombreVolteado += nombre.charAt(i);\n }\n\n if (password.equals(nombreVolteado)){\n tvCrearCuenta.setText(\"Correcto\");\n }else{\n tvCrearCuenta.setText(\"La contraseña debe ser el nombre de usuario volteado\");\n }\n\n //Segunda, mostrar dato al usuario, temporal\n Toast.makeText(getApplicationContext(), \"Su nombre es \" + nombre, Toast.LENGTH_SHORT).show();\n\n //Tercera, mostrar datos al desarrollador (Logcat)\n Log.i(\"PRUEBA\", \"El nombre de usuario es \" + nombre);\n\n }", "@Test\n public void testGetPassword() {\n System.out.println(\"getPassword Test (Passing value)\");\n String expResult = \"$2a$10$EblZqNptyYvcLm/VwDCVAuBjzZOI7khzdyGPBr08PpIi0na624b8.\";\n String result = user.getPassword();\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertEquals(expResult, result);\n }", "public void setPasswordValue(String value) {\r\n\t\ttxtPassword.setValue(value);\r\n\t}", "public String getPassword();", "public String getPassword();", "private void changePasswordListener() {\n String newPassword = changePasswordField.getText().toString();\n if (newPassword.length() < MIN_PASSWORD_LENGTH) {\n Toast.makeText(ProfileSettingsActivity.this, INVALID_PASSWORD_ERROR, Toast.LENGTH_LONG).show();\n } else {\n changePassword(newPassword);\n }\n }", "public void onClick(DialogInterface dialog,int id) {\n if(password.equals(\"\"))\n password = userInput.getText().toString();\n if(userInput.getText().toString().equals(password)) {\n inputGrade();\n }\n }", "@Test\n public void testIsValidPassword() {\n System.out.println(\"isValidPassword\");\n String input = \".%6gwdye\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidPassword(input);\n assertEquals(expResult, result);\n }", "public boolean isValidPassword(EditText edtPaswd) {\n FIELD_STATUS status = validatePassword(edtPaswd.getText().toString());\n\n switch (status) {\n case EMPTY:\n edtPaswd.setError(getString(R.string.required_field));\n return false;\n case TOO_SHORT:\n edtPaswd.setError(getString(R.string.password_too_short));\n return false;\n case VALID:\n return true;\n default:\n return false;\n }\n }" ]
[ "0.7786021", "0.7460636", "0.74229634", "0.7379771", "0.7374386", "0.7266804", "0.7134264", "0.7080704", "0.7051881", "0.70373863", "0.70205116", "0.70143974", "0.6945372", "0.6926759", "0.68964285", "0.6875358", "0.6867862", "0.68534106", "0.6820088", "0.6820088", "0.6820088", "0.6820088", "0.6820088", "0.6820088", "0.6820088", "0.6820088", "0.68113995", "0.6792849", "0.6784838", "0.678425", "0.676966", "0.67649156", "0.6759176", "0.6746641", "0.6741927", "0.6697636", "0.66871756", "0.6667459", "0.66460216", "0.6639041", "0.6635441", "0.66153187", "0.66120917", "0.660663", "0.65977293", "0.65975535", "0.65947235", "0.6587103", "0.6584242", "0.6579769", "0.65736836", "0.65497756", "0.65489817", "0.65489817", "0.65489817", "0.65489817", "0.65489817", "0.65489817", "0.65489817", "0.65489817", "0.65489817", "0.65288854", "0.6524062", "0.65211844", "0.6508719", "0.6504159", "0.6501459", "0.64979184", "0.64979184", "0.64979184", "0.64979184", "0.64979184", "0.64979184", "0.64979184", "0.6497592", "0.6495775", "0.64944077", "0.64926624", "0.6485694", "0.64756095", "0.6451146", "0.6449787", "0.64390993", "0.6424362", "0.64225525", "0.6421621", "0.6416274", "0.6389342", "0.6383837", "0.63775694", "0.6375364", "0.6368381", "0.6359656", "0.63451123", "0.63310254", "0.63295716", "0.63295716", "0.6320746", "0.6317264", "0.63075376", "0.6304409" ]
0.0
-1
To test the confirm password editText
@Test public void passConText() { onView(withId(R.id.edPassConReg)).perform(typeText("hey")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void weakPassword(){\n onView(withId(R.id.editText)).perform(clearText(), typeText(\"password\"),closeSoftKeyboard());\n onView(withId(R.id.button)).perform(click());\n // Assert equals textView text\n onView(withId(R.id.textView)).check(matches(withText(\"Not strong\")));\n }", "@Test\n public void somewhatStrongPassword(){\n onView(withId(R.id.editText)).perform(clearText(), typeText(\"Good!\"),closeSoftKeyboard());\n onView(withId(R.id.button)).perform(click());\n // Assert equals textView text\n onView(withId(R.id.textView)).check(matches(withText(\"Somewhat strong\")));\n }", "@Test\n public void strongestPassword(){\n onView(withId(R.id.editText)).perform(clearText(), typeText(\"Good!123\"),closeSoftKeyboard());\n onView(withId(R.id.button)).perform(click());\n // Assert equals textView text\n onView(withId(R.id.textView)).check(matches(withText(\"Strongest\")));\n }", "@Test\n public void AshortPass () {\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //enter correct past password\n onView(withId(R.id.oldPassword)).perform(typeText(\"00000000\"));\n //close keyboard\n closeSoftKeyboard();\n //enter new short pass\n onView(withId(R.id.newPassword)).perform(typeText(\"pa00\"));\n //close keyboard\n closeSoftKeyboard();\n //renter again the new short pass\n onView(withId(R.id.reNewPassword)).perform(typeText(\"pa00\"));\n //close keyboard\n closeSoftKeyboard();\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.passwordChar))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.passwordChar)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "@Override\r\n\t\t\tpublic void afterTextChanged(Editable edit) {\n\t\t\t\tconfirmPassword = edit.toString();\r\n\t\t\t}", "@Test\n\tpublic void checkconfirmpassword_characters()\n\t{\n\t\t\n\t\tPageFactory.initElements(driver, Resetpassword.class);\n\t\tResetpassword.confirm_password.sendKeys(\"co12!@\");\n\t\tString user_text=Resetpassword.error_message.getText();\n\t\tAssert.assertEquals(user_text,\"co12!@\");\n\t\t\n\t}", "@Test\n public void BnotMatchPass () {\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //enter correct past password\n onView(withId(R.id.oldPassword)).perform(typeText(\"00000000\"));\n //close keyboard\n closeSoftKeyboard();\n //enter new pass\n onView(withId(R.id.newPassword)).perform(typeText(\"serene00\"));\n //close keyboard\n closeSoftKeyboard();\n //enter diff new pass\n onView(withId(R.id.reNewPassword)).perform(typeText(\"passwoord77\"));\n //close keyboard\n closeSoftKeyboard();\n //click the save button\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.passwordMatch))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.passwordMatch)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "@Test\n public void CsamePass () {\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //enter correct past password\n onView(withId(R.id.oldPassword)).perform(typeText(\"00000000\"));\n //close keyboard\n closeSoftKeyboard();\n //enter new pass that same as old\n onView(withId(R.id.newPassword)).perform(typeText(\"00000000\"));\n //close keyboard\n closeSoftKeyboard();\n //renter again the new pass that same as old\n onView(withId(R.id.reNewPassword)).perform(typeText(\"00000000\"));\n //close keyboard\n closeSoftKeyboard();\n //click the button\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.passwordSame))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.passwordSame)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "private String confirmPassword()\n {\n JPasswordField tf_password = new JPasswordField();\n int response = JOptionPane.showConfirmDialog(null,\n tf_password, \"Confirm Password: \",\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);\n\n // Debug: System.out.println(\"Dialog\" + tf_password.getPassword());\n if (response == JOptionPane.OK_OPTION)\n {\n return new String(tf_password.getPassword());\n }\n return null;\n }", "@Override\n public void onClick(View v) {\n valOldPassword(edPass1);\n valNewPassword(edPass2);\n if (valOldPassword(edPass1) && valNewPassword(edPass2)){\n String antPass = edPass1.getText().toString();\n String sigPass = edPass2.getText().toString();\n //Validar que la password anterior edPass1 sea correcta.\n valPassword(antPass);\n if (valPassword(antPass)){\n //Se cambiará la password\n dialogUpdatePass(sigPass);\n }else{\n Toast.makeText(CambiarPassword.this, \"La contraseña ingresada no es correcta\", Toast.LENGTH_SHORT).show();\n }\n }else{\n Toast.makeText(CambiarPassword.this, \"Debe llenar todos los campos\", Toast.LENGTH_SHORT).show();\n }\n }", "public void onClick(View view){\n if(password.getText().toString().equals(confirm.getText().toString()))\n creatAccount(email.getText().toString(), password.getText().toString(), username.getText().toString());\n else\n showMessage(\"Confirmed Password is not the same as Password\");\n }", "@Override\n public void onClick(View v) {\n String newPass=et_newPassword.getText().toString().trim();\n String oldPass=et_oldPassword.getText().toString().trim();\n String prefpass=SharedPrefManager.getInstance(getApplicationContext()).getPass();\n if(newPass.equals(\"\")||oldPass.equals(\"\"))\n {\n Toast.makeText(MainActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else if(!prefpass.equals(oldPass))\n {\n Toast.makeText(MainActivity.this, \"Incorrect Old Password\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updatePass(oldPass,newPass,\"User\");\n Toast.makeText(MainActivity.this, \"Password Successfully Changed\", Toast.LENGTH_SHORT).show();\n logout();\n dialog.dismiss();\n }\n }", "@Override\n public void onClick(View v) {\n String newPass=et_newPassword.getText().toString().trim();\n String oldPass=et_oldPassword.getText().toString().trim();\n String prefpass=SharedPrefManager.getInstance(getApplicationContext()).getPass();\n if(newPass.equals(\"\")||oldPass.equals(\"\"))\n {\n Toast.makeText(AdminHomeActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else if(!prefpass.equals(oldPass))\n {\n Toast.makeText(AdminHomeActivity.this, \"Incorrect Old Password\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updatePass(oldPass,newPass,\"Admin\");\n Toast.makeText(AdminHomeActivity.this, \"Password Successfully Changed\", Toast.LENGTH_SHORT).show();\n logout();\n dialog.dismiss();\n }\n }", "@Test\n\tpublic void checkconfirmpasswordfieldpresent()\n\t{\n\t\t\n\t\tPageFactory.initElements(driver, Resetpassword.class);\n\t\tResetpassword.password.sendKeys(\"password\");\n\t\tResetpassword.confirm_password.sendKeys(\"confirm password\");\n\t\tString user_text=Resetpassword.error_message.getText();\n\t\tAssert.assertEquals(user_text,\"Password should match with confirm password.\");\n\t\t\n\t}", "@Override\n public void setOnPasswordFinished() {\n if (passwordView.getOriginText().length() == passwordView.getMaxPasswordLength()) {\n Toast.makeText(this, \"密码为\" + passwordView.getOriginText(), Toast.LENGTH_LONG).show();\n }\n }", "@Test\n public void testInvalidPassword() {\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"username_edit_text\"))\n .setText(USERNAME_TO_BE_TYPED);\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"password_edit_text\"))\n .setText(INVALID_PASSWORD_TO_BE_TYPED);\n mDevice.findObject(By.res(BASIC_SAMPLE_PACKAGE, \"login_button\"))\n .click();\n\n }", "public boolean isValidConfirmPassword(TextInputLayout tiConfirmPassword, EditText etConfirmPassword, EditText etPassword) {\n String password = etPassword.getText().toString().trim();\n String confirmPassword = etConfirmPassword.getText().toString().trim();\n boolean result = false;\n\n if (confirmPassword.length() == 0)\n tiConfirmPassword.setError(c.getString(R.string.required));\n else if (password.compareTo(confirmPassword) != 0)\n tiConfirmPassword.setError(c.getString(R.string.confirmPasswordNotMatch));\n else {\n result = true;\n tiConfirmPassword.setError(null);\n }\n\n return result;\n }", "@Override\r\n public void onClick(View view) {\n showDialog(PASSWORD_DIALOG_ID);\r\n }", "@Override\n public void onClick(View v) {\n passwordEt.setInputType(InputType.TYPE_CLASS_TEXT |\n InputType.TYPE_TEXT_VARIATION_PASSWORD);\n passwordEt.setText(\"\");\n\n }", "@Override\n\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\tif (!etConfirmPassword.hasFocus())\n\t\t\t\t\tif (!etConfirmPassword.getText().toString().equals(etPassword.getText().toString())) {\n\t\t\t\t\t\tAlertDialogManager alert = new AlertDialogManager();\n\t\t\t\t\t\talert.showAlertDialog(SignUpActivity.this, \"Error\", \"Password mismatch\", false);\n\t\t\t\t\t}\n\t\t\t}", "public void confirmPassword(FacesContext context, UIComponent confirmInputText, Object value){\n\t\tcheckHibernateAnnotations(context, confirmInputText, value);\n\t\tUIComponent passwordInputText = findComponent(\":registerActionForm:passwordField:password\");\n\t\tif (passwordInputText!=null){\n\t\t\tEditableValueHolder password = (EditableValueHolder)passwordInputText;\n\t\t\tEditableValueHolder confirmed= (EditableValueHolder)confirmInputText;\t\t\t\n//\t\t\tlog.info(\"submittedValue for password =\"+password.getSubmittedValue()+\" for confirmed=\"+confirmed.getSubmittedValue());\t\n//\t\t\tlog.info(\"value for password =\"+password.getValue()+\" for confirmed=\"+confirmed.getValue());\t\t\n\t\t\tString passwordString = (String)(password.getSubmittedValue()!=null ? password.getSubmittedValue(): password.getValue());\n\t\t\tString confirmString = (String)(confirmed.getSubmittedValue()!=null ? confirmed.getSubmittedValue(): confirmed.getValue());\n\t\t\tif (passwordString.equals(confirmString)){\n\t\t\t\tpasswordValid=true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tFacesMessage msg = new FacesMessage(\"ice password not same as original\");\n\t\t\t\tcontext.addMessage(confirmInputText.getClientId(context), msg);\n\t\t\t\tpasswordValid=false;\n\t\t\t}\n\t\t} else {\n\t\t\tpasswordValid=false;\n\t\t}\n/*\t\t\n\t\tString confirm=(String)value; \n \t\tlog.info(\"confirm=\"+confirm);\n \t\tif (passwordBean!=null)log.info(\"passwordBean.password=\"+passwordBean.getPassword());\n\t\tif (!confirm.equals(passwordBean.getPassword())){\n\t\t\t\tFacesMessage msg = new FacesMessage(\"ice password not same as original\");\n\t\t\t\tcontext.addMessage(confirmInputText.getClientId(context), msg);\n\t\t\t\tpasswordValid=false;\n\t\t}else passwordValid=true; */\n\t}", "private String extractConfirmPassword() {\n return SwingUtil.extract(confirmPasswordJPasswordField, Boolean.TRUE);\n }", "@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\r\n\t\t case R.id.modifypwd_ensure:\r\n\t\t \tstrNewPasswd = CEnewPasswd.getText().toString();\r\n\t\t \tstrRenewPasswd = CErenewPasswd.getText().toString();\r\n\t\t \t\r\n\t\t \tif (strOldPasswd == null || strNewPasswd == null || strRenewPasswd == null){\r\n\t\t \t\tToast.makeText(ModifyPassword.this, \"请输入密码!\", Toast.LENGTH_SHORT).show();\r\n\t\t \t\treturn;\r\n\t\t \t}\r\n\t\t \tif (!strNewPasswd.equals(strRenewPasswd)){\r\n\t\t \t\tToast.makeText(ModifyPassword.this, \"两次输入的密码不一致,请重新输入!\", Toast.LENGTH_SHORT).show();\r\n\t\t \t\treturn;\r\n\t\t \t}\r\n\t\t \tif (strOldPasswd.equals(strNewPasswd)){\r\n\t\t \t\tToast.makeText(ModifyPassword.this, \"新旧密码一样,请重新输入!\", Toast.LENGTH_SHORT).show();\r\n\t\t \t\treturn;\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \tif ((strNewPasswd.length() < 6) || (strNewPasswd.length() > 16)){\r\n\t\t\t\t\tToast.makeText(ModifyPassword.this, \"密码应为6-16位字母和数字组合!\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else{\r\n\t\t\t\t\tPattern pN = Pattern.compile(\"[0-9]{6,16}\");\r\n\t\t\t\t Matcher mN = pN.matcher(strNewPasswd);\r\n\t\t\t\t Pattern pS = Pattern.compile(\"[a-zA-Z]{6,16}\");\r\n\t\t\t\t Matcher mS = pS.matcher(strNewPasswd);\r\n\t\t\t\t if((mN.matches()) || (mS.matches())){\r\n\t\t\t\t Toast.makeText(ModifyPassword.this,\"密码应为6-16位字母和数字组合!\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t return;\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\r\n\t\t \tif (new ConnectionDetector(ModifyPassword.this).isConnectingTOInternet()) {\r\n\t\t \t\tpd = ProgressDialog.show(ModifyPassword.this, \"\", \"正在加载....\");\r\n\t\t \t\tnew RequestTask().execute();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tToast.makeText(ModifyPassword.this, \"网络连接不可用,请检查网络后再试\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\t\t \tbreak;\r\n\t\t case R.id.modify_pwd_back:\r\n\t\t \tstartActivity(new Intent(ModifyPassword.this, ShowUserMessage.class));\r\n\t\t \tthis.finish();\r\n\t\t \tbreak;\r\n\t\t default:\r\n\t\t \tbreak;\r\n\t\t}\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String hAnsFill = hintPut.getText().toString();\n Log.i(easyShort.TAG,hAnsFill);\n Log.i(easyShort.TAG,hintAns);\n if (hAnsFill.equals(hintAns)) {\n // New dialog box showing password\n\n AlertDialog.Builder myBuilder = new AlertDialog.Builder(entryApp.this);\n myBuilder.setTitle(\"Your password\").setMessage(\"Your password: \"+userPass).setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n myBuilder.create();\n myBuilder.show();\n } else {\n Toast.makeText(entryApp.this,\"Wrong answer!!\",Toast.LENGTH_SHORT).show();\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString pass = sp.getString(\"pass\", \"\");\r\n\t\t\t\tLog.d(\"pass\", pass);\r\n\t\t\t\tif(edtPass.getText().toString().equals(pass)){\r\n\t\t\t\t\tstartActivity(new Intent(PasswordMain.this, MainActivity.class));\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\tToast.makeText(PasswordMain.this, \"Password Is Invalid\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\tedtPass.setText(\"\");\r\n\t\t\t\t}\r\n\t\t\t}", "public void afterTextChanged(Editable s) {\n Validate.isPassword(editTextPassword, true);\n }", "@Override\n public void onClick(View v) {\n passwordEt.setInputType(InputType.TYPE_CLASS_NUMBER |\n InputType.TYPE_NUMBER_VARIATION_PASSWORD);\n passwordEt.setText(\"\");\n }", "@Test\n public void passUpdateWrong () {\n //check the display name as expected\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //enter wrong past password\n onView(withId(R.id.oldPassword)).perform(typeText(\"serene88\"));\n //close keyboard\n closeSoftKeyboard();\n //enter new pass\n onView(withId(R.id.newPassword)).perform(typeText(\"serene99\"));\n //close keyboard\n closeSoftKeyboard();\n //reenter new pass\n onView(withId(R.id.reNewPassword)).perform(typeText(\"serene99\"));\n //close keyboard\n closeSoftKeyboard();\n //click the button\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.wrongPassword))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.wrongPassword)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "private void confirmOtp(String OTP) {\n verifyOTP=OTP;\n LayoutInflater li = LayoutInflater.from(this);\n //Creating a view to get the dialog box\n View confirmDialog = li.inflate(R.layout.dailogconfirm, null);\n AppCompatButton buttonConfirm = (AppCompatButton) confirmDialog.findViewById(R.id.buttonConfirm);\n editTextConfirmOtp = (EditText) confirmDialog.findViewById(R.id.editTextOtp);\n\n alert = new AlertDialog.Builder(this);\n alert.setView(confirmDialog);\n\n\n alertDialog = alert.create();\n alertDialog.show();\n\n\n }", "@Override\n public void onClick(View v) {\n AlertDialog alertDialog = new AlertDialog.Builder(MyAccount.this).create();\n\n //Put edit text into the alert dialog\n alertDialog.setTitle(\"Change Password\");\n\n LinearLayout linearLayout = new LinearLayout(getApplicationContext());\n linearLayout.setOrientation(LinearLayout.VERTICAL);\n final EditText editTextPassword = new EditText(getApplication());\n editTextPassword.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n editTextPassword.setHint(\"Enter current password\");\n editTextPassword.setHintTextColor(getResources().getColor(R.color.alpha_gray));\n editTextPassword.setTextColor(getResources().getColor(R.color.black));\n\n final EditText editTextNewPassword = new EditText(getApplication());\n editTextNewPassword.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n editTextNewPassword.setTextColor(getResources().getColor(R.color.black));\n editTextNewPassword.setHintTextColor(getResources().getColor(R.color.alpha_gray));\n editTextNewPassword.setHint(\"Enter new password\");\n\n final EditText editTextReenterNewPassword = new EditText(getApplication());\n editTextReenterNewPassword.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n editTextReenterNewPassword.setTextColor(getResources().getColor(R.color.black));\n editTextReenterNewPassword.setHintTextColor(getResources().getColor(R.color.alpha_gray));\n editTextReenterNewPassword.setHint(\"Reenter new password\");\n\n linearLayout.addView(editTextPassword);\n linearLayout.addView(editTextNewPassword);\n linearLayout.addView(editTextReenterNewPassword);\n\n alertDialog.setView(linearLayout);\n //Set positive button (submit)\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE,\"Enter\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String currentPassword = editTextPassword.getText().toString();\n\n if(currentPassword.contentEquals(user.getPassword())) {\n //Check if the reentered password matches\n String newPassword = editTextNewPassword.getText().toString();\n String reenterNewPassword = editTextReenterNewPassword.getText().toString();\n\n if(newPassword.equals(reenterNewPassword) && !newPassword.equals(user.getPassword())\n && !currentPassword.equals(\"\") &&!newPassword.equals(\"\")&&!reenterNewPassword.equals(\"\")) {\n //Update password\n dialog.dismiss();\n BackgroundUpdatePasswordTask backgroundUpdatePasswordTask = new BackgroundUpdatePasswordTask();\n backgroundUpdatePasswordTask.execute(user.getUsername(), newPassword);\n\n } else if(newPassword.equals(user.getPassword())){\n Toast.makeText(getApplicationContext(),\"new password cannot be current password\", Toast.LENGTH_LONG).show();\n }else if(currentPassword.equals(\"\")||newPassword.equals(\"\")||reenterNewPassword.equals(\"\")){\n Toast.makeText(getApplicationContext(),\"All fields must be entered\", Toast.LENGTH_LONG).show();\n }\n else {\n //New passwords don't match\n editTextReenterNewPassword.setError(\"Reentered new password does not match new password\");\n Toast.makeText(getApplicationContext(),\"Passwords do not match\", Toast.LENGTH_LONG).show();\n }\n\n } else {\n //Incorrect user password\n //Don't let them update password\n dialog.dismiss();\n Toast.makeText(getApplicationContext(),\"Wrong password\",Toast.LENGTH_LONG).show();\n }\n\n\n }\n });\n //Set negative button (cancel)\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE,\"Cancel\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n alertDialog.show();\n\n }", "private void validatePasswordField() {\n userPassword = passwordEditText.getText().toString();\n if (!isPasswordValid()) {\n passwordEditText.setTextColor(getResources().getColor(R.color.colorWrongText));\n loginButton.setEnabled(false);\n } else {\n passwordEditText.setTextColor(getResources().getColor(R.color.colorRightText));\n loginButton.setEnabled(true);\n }\n }", "public boolean validate()\n {\n String pass= et_pass.getText().toString().trim();\n String confirm_pass = et_confirm_pass.getText().toString().trim();\n boolean temp=true;\n\n if(!pass.equals(confirm_pass)){\n Toast.makeText(JSPassword.this,\"Password Not matching\",Toast.LENGTH_SHORT).show();\n temp=false;\n }\n else if (pass.isEmpty())\n {\n Toast.makeText(JSPassword.this,\"Enter a password\",Toast.LENGTH_SHORT).show();\n temp=false;\n }\n else\n {\n temp=false;\n et_pass.setText(\"\");\n et_confirm_pass.setText(\"\");\n Intent intent = new Intent(getApplicationContext(),JSDetails.class);\n startActivity(intent);\n }\n return temp;\n }", "@Override\n public void onClick(View v) {\n if(!isEmpty(mUserRegBinding.editTextPrivEmail.getText().toString())\n && !isEmpty(mUserRegBinding.editTextPrivPassword.getText().toString())\n && !isEmpty(mUserRegBinding.editTextPrivConfirmPassword.getText().toString())){\n\n //check if passwords match\n if(doStringsMatch(mUserRegBinding.editTextPrivPassword.getText().toString(),\n mUserRegBinding.editTextPrivConfirmPassword.getText().toString())){\n\n //Initiate user registration task\n registerNewEmail(mUserRegBinding.editTextPrivEmail.getText().toString(),\n mUserRegBinding.editTextPrivPassword.getText().toString());\n }else{\n Snackbar.make(getCurrentFocus().getRootView(), \"Passwords do not Match\", Snackbar.LENGTH_SHORT).show();\n }\n\n }else{\n Snackbar.make(getCurrentFocus().getRootView(), \"You must fill out all the fields\", Snackbar.LENGTH_SHORT).show();\n }\n }", "private boolean validatePassword() {\n\t\tEditText pw = (EditText)view.findViewById(R.id.et_enter_new_password);\n\t\tEditText confPW = (EditText)view.findViewById(R.id.et_reenter_new_password);\n\t\t\t\n\t\tString passwd = pw.getText().toString();\n\t\tString confpw = confPW.getText().toString();\n\t\t\n\t\t// Check for nulls\n\t\tif (passwd == null || confpw == null) {\n\t\t\tToast.makeText(view.getContext(), \"Passwords are required\", Toast.LENGTH_LONG).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Ensure password and retypted passwords match\n\t\tif (!passwd.contentEquals(confpw)) {\n\t\t\tToast.makeText(view.getContext(), \"Passwords must match\", Toast.LENGTH_LONG).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Ensure password meets complexity\n\t\tif (passwd.length() < 7) { // min length of 7 chars\n\t\t\tToast.makeText(view.getContext(), \"Password must be at least 7 characters long\", \n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Not really sure what the requirements are for private key password complexity yet\n\t\tnewPassword = passwd; // Set class variable with new password\n\t\treturn true;\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\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}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif(passtog.isChecked())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttextField3.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);\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\ttextField3.setInputType(InputType.TYPE_CLASS_TEXT);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void showPasswordPrompt();", "private boolean doGetConfirmPassword() {\n\t\tcurrentStep = OPERATION_NAME+\": getting confirm password\";\n\t\tif (!_atmssHandler.doDisDisplayUpper(PROMPT_FOR_CONFIRM_PASSWORD)) {\n\t\t\trecord(\"Dis\");\n\t\t\treturn false;\n\t\t}\n\t\tconfirmPassword = _atmssHandler.doKPGetPasswd(TIME_LIMIT);\n\t\tif (confirmPassword == null) {\n\t\t\trecord(\"KP\");\n\t\t\tif (!_atmssHandler.doDisDisplayUpper(FAILED_FROM_KEYPAD)) {\n\t\t\t\trecord(\"Dis\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tpause(3);\n\t\t\treturn false;\n\t\t} else if (confirmPassword.equals(KP_CANCEL)) {\n\t\t\trecord(\"USER\");\n\t\t\tif (!_atmssHandler.doDisDisplayUpper(FAILED_FROM_USER_CANCELLING)) {\n\t\t\t\trecord(\"Dis\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tpause(3);\n\t\t\treturn false;\n\t\t}\n\t\trecord(\"confirm password typed\");\n\t\treturn true;\n\t}", "private boolean cekPassword(String password){\n return password.equals(Preferences.getRegisteredPass(getBaseContext()));\n }", "public void enterPasswordInConfirmPassword(String confirmPassword) throws UIAutomationException{\r\n\t\r\n\t\telementController.requireElementSmart(fileName,\"Confirm Password Text Field\",GlobalVariables.configuration.getAttrSearchList(), \"Confirm Password\");\r\n\t\tUIActions.click(fileName,\"Confirm Password Text Field\",GlobalVariables.configuration.getAttrSearchList(), \"Confirm Password\");\r\n\t\tUIActions.clearTextBox(fileName,\"Confirm Password Text Field\",GlobalVariables.configuration.getAttrSearchList(), \"Confirm Password\");\r\n\t\tUIActions.enterValueInTextBox(confirmPassword,fileName,\"Confirm Password Text Field\",GlobalVariables.configuration.getAttrSearchList(), \"Confirm Password\");\r\n\t\tUIActions.enterKey(Keys.TAB);\r\n\t\r\n\t}", "@Override\n\t\t\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t\t\tif(!hasFocus){\n\t\t\t\t\t\t\tif(!reregister_passwd.getText().toString().trim().equals(register_passwd.getText().toString().trim())){\n\t\t\t\t\t\t\t\tToast.makeText(RegisteredActivity.this, \"两次密码输入不一致\", Toast.LENGTH_SHORT).show(); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n String pass = pass_edit.getText().toString();\n if (pass.equals(real_pass)) {\n //Enter the room\n Toast.makeText(RoomSelecter.this, \"Correct password\", Toast.LENGTH_SHORT).show();\n ReturnRoomName(room);\n } else {\n Toast.makeText(RoomSelecter.this, \"Wrong password\", Toast.LENGTH_SHORT).show();\n }\n\n }", "public void onPressFinish(View view) {\n final String newPass1 = txtNewPass1.getText().toString();\n final String newPass2 = txtNewPass2.getText().toString();\n final String answer1 = txtAnswer1.getText().toString();\n final String answer2 = txtAnswer2.getText().toString();\n final String answer3 = txtAnswer3.getText().toString();\n if (answer1.length() == 0) {\n txtAnswer1.requestFocus();\n txtAnswer1.setError(\"Field cannot be empty\");\n } else if (answer2.length() == 0) {\n txtAnswer2.requestFocus();\n txtAnswer2.setError(\"Field cannot be empty\");\n } else if (answer3.length() == 0) {//Makes sure both password fields entered are equal\n txtAnswer3.requestFocus();\n txtAnswer3.setError(\"Field cannot be empty\");\n }\n if (newPass1.length() == 0) {\n txtNewPass1.requestFocus();\n txtNewPass1.setError(\"Field cannot be empty\");\n } else if (newPass2.length() == 0) {\n txtNewPass2.requestFocus();\n txtNewPass2.setError(\"Field cannot be empty\");\n } else if (!newPass2.equals(newPass1)) {//Makes sure both password fields entered are equal\n txtNewPass2.requestFocus();\n txtNewPass2.setError(\"Passwords must match\");\n }\n else if (!newPass1.matches(\"^(?=.*[A-Za-z])(?=.*\\\\d)[A-Za-z\\\\d]{8,64}$\")) //Ensures the password contains 8 characters and at least 1 number\n {\n txtNewPass1.requestFocus();\n txtNewPass1.setError(\"Invalid password, must contain 8 characters and at least 1 number\");\n }\n else{\n validateAnswers(answer1, answer2, answer3, newPass1, newPass2);\n }\n }", "public void inputToConfirmPasswordTextbox(String password) {\n\t\twaitToElementVisible(driver,RegisterPageUI.CONFIRM_PASSWORD_TEXTBOX);\n\t\tsendkeyToElement(driver, RegisterPageUI.CONFIRM_PASSWORD_TEXTBOX, password);\n\t}", "@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\tu.setPassword(s.toString());\n\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(passwordet.getText().toString().equals(querenpasswordet.getText().toString())){\r\n\t\t\t\t\tnew SetPassWordTask().execute(Consts.URL);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tToastUtil.showToast(RegisterActivity.this, \"两次输入的密码不同\");\r\n\t\t\t\t}\r\n\t\t\t}", "public boolean isPasswordCorrect() {\n return (CustomerModel.passwordTest(new String(newPasswordTextField.getPassword())));\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString oldpwdtxt = oldpwd.getText().toString();\r\n\t\t\t\tString newpwdettxt = newpwdet.getText().toString();\r\n\t\t\t\tString pwdconfirmettxt = pwdconfirmet.getText().toString();\r\n\t\t\t\tif (TextUtils.isEmpty(oldpwdtxt)) {\r\n\t\t\t\t\tShowMsg(\"请输入原密码\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (TextUtils.isEmpty(newpwdettxt)) {\r\n\t\t\t\t\tShowMsg(\"请输入新密码\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (TextUtils.isEmpty(pwdconfirmettxt)) {\r\n\t\t\t\t\tShowMsg(\"请再次输入新密码\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!newpwdettxt.equals(pwdconfirmettxt)) {\r\n\t\t\t\t\tShowMsg(\"两次输入密码不一致\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tmodifyPwd(oldpwdtxt, newpwdettxt, oldpwdtxt);\r\n\t\t\t}", "@Override\n public void afterTextChanged(Editable s) {\n editStart = passwordEditText.getSelectionStart();\n editEnd = passwordEditText.getSelectionEnd();\n if (temp.length() > 5) {\n tvConfirm.setClickable(true);\n tvConfirm.setBackgroundResource(R.mipmap.bg_confirm);\n }else {\n tvConfirm.setBackgroundResource(R.mipmap.bg_confirm_diasble);\n tvConfirm.setClickable(false);\n }\n }", "@Override\n public void onClick(View view) {\n\n String nombre = etNombre.getText().toString();\n String password = etPassword.getText().toString();\n String nombreVolteado = \"\";\n\n //Mostrar el dato\n for (int i = nombre.length()-1; i>=0; i--){\n nombreVolteado += nombre.charAt(i);\n }\n\n if (password.equals(nombreVolteado)){\n tvCrearCuenta.setText(\"Correcto\");\n }else{\n tvCrearCuenta.setText(\"La contraseña debe ser el nombre de usuario volteado\");\n }\n\n //Segunda, mostrar dato al usuario, temporal\n Toast.makeText(getApplicationContext(), \"Su nombre es \" + nombre, Toast.LENGTH_SHORT).show();\n\n //Tercera, mostrar datos al desarrollador (Logcat)\n Log.i(\"PRUEBA\", \"El nombre de usuario es \" + nombre);\n\n }", "@Override\n\t\t\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t\t\tif(!hasFocus){\n\t\t\t\t\t\t\tif(register_passwd.getText().toString().trim().length()<6){\n\t\t\t\t\t\t\t\tToast.makeText(RegisteredActivity.this, \"密码不能小于8个字符\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public void onClick(View view) {\n if (!flag) {\n\n check_passwd_text.setTransformationMethod(SingleLineTransformationMethod.getInstance());\n flag = !flag;\n } else {\n check_passwd_text.setTransformationMethod(PasswordTransformationMethod.getInstance());\n flag = !flag;\n }\n }", "@Override\n public void onClick(View view) {\n\n final Dialog dialog = new Dialog(LoginActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.forgot_password_mobile_email_dialog);\n final EditText etForgotPass = (EditText) dialog.findViewById(R.id.et_forgot_pass_email);\n Button btForgotPassSubmit = (Button) dialog.findViewById(R.id.bt_submit_for_forgot_pass);\n startMobileWithOnlyNumber92(etForgotPass);\n btForgotPassSubmit.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String textFromEt = etForgotPass.getText().toString();\n if (textFromEt.startsWith(\"03\")){\n if (textFromEt.length()<10){\n Toast.makeText(LoginActivity.this, \"Please enter valid number\", Toast.LENGTH_SHORT).show();\n }\n else {\n if (textFromEt.startsWith(\"03\")){\n textFromEt = textFromEt.substring(1);\n textFromEt = \"+92\"+textFromEt;\n }\n dialog.dismiss();\n Log.e(\"TAG\", \"the use text is \" + textFromEt);\n forgotPassword(textFromEt);\n }\n\n }\n else if (!textFromEt.startsWith(\"03\")){\n if (!emailValidator(textFromEt)){\n Toast.makeText(LoginActivity.this, \"Invalid Email\", Toast.LENGTH_SHORT).show();\n }else {\n dialog.dismiss();\n Log.e(\"TAG\", \"the use text is \" + textFromEt);\n forgotPassword(textFromEt);\n }\n }\n }\n });\n dialog.getWindow().getAttributes().windowAnimations = R.style.DialogAnimationTooDouen;\n dialog.show();\n\n }", "public void testCorrectPassword() {\n Password p = new Password(\"jesus\".toCharArray());\n assertTrue(p.checkPassword(\"jesus\".toCharArray()));\n }", "void onPasswordSuccess();", "public boolean validatePassword() {\r\n\t\tif (txtPassword.getValue() == null || txtPassword.getValue().length() == 0 || !txtPassword.getValue().equals(txtRetypePassword.getValue()))\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "@Override\n public void onClick(View view) {\n\n if(etName.getText().toString().isEmpty()){\n nameWrapper.setError(getResources().getString(R.string.nameEmpty));\n }else{\n if (etPass.getText().toString().matches(PASSWORD)){\n\n SharedPreferences preferencias = getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = preferencias.edit();\n\n editor.putString(\"userName\", etName.getText().toString());\n editor.putBoolean(\"autenticado\", !preferencias.getBoolean(\"autenticado\", false));\n\n editor.commit();\n\n ComprobarCredenciales(preferencias);\n\n }else{\n etPass.setText(\"\");\n passwordWrapper.setError(getResources().getString(R.string.passError));\n }\n }\n\n getCurrentFocus().clearFocus();\n }", "@Override\n public boolean onTouch (View v, MotionEvent event){\n switch (event.getAction()){\n case MotionEvent.ACTION_DOWN:\n\n //Pressed. Show password\n //mEditPassw.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);\n //new code\n mEditPassw.setTransformationMethod(null);\n break;\n case MotionEvent.ACTION_UP:\n\n //Released. Hide password\n //mEditPassw.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);\n //New code\n mEditPassw.setTransformationMethod(new PasswordTransformationMethod());\n break;\n }\n return true; //Not handles action_cancel, cause I on\n }", "private boolean checkPassword() {\n String password = Objects.requireNonNull(password1.getEditText()).getText().toString();\n\n return password.length() >= 8 && ContainSpecial(password) && noUpper(password);\n }", "@Override\n public void onClick(View v) {\n String num1 = Integer.toString(pin1.getValue());\n String num2 = Integer.toString(pin2.getValue());\n String num3 = Integer.toString(pin3.getValue());\n String num4 = Integer.toString(pin4.getValue());\n StringBuilder passBuilder = new StringBuilder();\n passBuilder.append(num1);\n passBuilder.append(num2);\n passBuilder.append(num3);\n passBuilder.append(num4);\n String password = passBuilder.toString();\n\n if(password.equals(selected_user.getPassword())) {\n changeUser(position);\n dialog.dismiss();\n } else {\n Toast.makeText(activity, \"Wrong password, you've entered : \" + password, Toast.LENGTH_SHORT).show();\n }\n }", "@Override\r\n\t\t\tpublic void afterTextChanged(Editable edit) {\n\t\t\t\tpassword = edit.toString();\r\n\t\t\t}", "public void confirmPasswordRequest() {\n\t\tStreamObserver<BoolValue> responseObserver = new StreamObserver<BoolValue>() {\t//\tUsed for sending orreceiving stream messages\n\t\t\t\n\t\t\t//\tStreamObserver methods\n\t\t\tpublic void onNext(BoolValue boolValue) {\t//\tReceives value from stream\n\t\t\t\tif (boolValue.getValue()) {\n\t\t\t\t\tlogger.info(\"Entered password is correct\");\n\t\t\t\t} else {\n\t\t\t\t\tlogger.info(\"Entered password is incorrect\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tpublic void onError(Throwable throwable) {\n\t\t\t\tlogger.info(throwable.getLocalizedMessage());\n\t\t\t}\n\n\t\t\tpublic void onCompleted() {\n\t\t\t\tlogger.info(\"Completed\");\n\t\t\t}\n\t\t};\n\n\t\t\tasyncPasswordStub.validate(ConfirmPasswordRequest.newBuilder()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .setPassword(password)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .setSalt(salt)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .setHashedPassword(hashedPassword)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .build(), responseObserver);\t\n\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tString pass = password.getText().toString();\n\t\t\t\tif (!adminPass.equalsIgnoreCase(pass)) {\n\t\t\t\t\ttoastMessage(\"You're not a ADMIN\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsetup();\n\t\t\t}", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "void onDialogPositiveClick(ChangePasswordFragment dialog);", "public void changePassword(View view) {\n }", "private void setUpRecoverPassword() {\n binding.textViewRecoverPassword.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Open the fragment\n Timber.d(\"Forgot password clicked\");\n ForgotPasswordDialog forgotPasswordDialog = new ForgotPasswordDialog();\n forgotPasswordDialog.show(getChildFragmentManager(), ForgotPasswordDialog.class.getSimpleName());\n\n }\n });\n }", "@Override\n public void onClick(View v) {\n String emailUser,userPassword,userConfirm;\n emailUser = email.getText().toString().trim();\n userPassword = password.getText().toString().trim();\n userConfirm = confirmPassword.getText().toString().trim();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String newpass = resetpass.getText().toString();\n user.updatePassword(newpass).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(Profile.this, \"Password reset successfully\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Profile.this, \"Password reset failed\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "private void showChangePasswordDialog() {\n if(dialog != null && dialog.isShowing()) return;\n\n LayoutInflater inflater = LayoutInflater.from(this);\n View view = inflater.inflate(R.layout.dialog_change_password, null);\n\n // The dialog that will appear\n AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.CustomDialogTheme)\n .setView(view)\n .setCancelable(true);\n\n ImageButton closeButton = (ImageButton) view.findViewById(R.id.closeDialogButton);\n final AppCompatButton confirmChangeButton = (AppCompatButton) view.findViewById(R.id.confirmChangePasswordBtn);\n\n Typeface tf = ResourcesCompat.getFont(getApplicationContext(), R.font.catamaran);\n\n TextInputLayout tilPassword = view.findViewById(R.id.tilPassword);\n TextInputLayout tilNewPassword = view.findViewById(R.id.tilNewPassword);\n TextInputLayout tilReEnterNewPassword = view.findViewById(R.id.tilReEnterNewPassword);\n passwordEditText = view.findViewById(R.id.input_password);\n newPasswordEditText = view.findViewById(R.id.input_newPassword);\n reEnterNewPasswordEditText = view.findViewById(R.id.input_reEnterNewPassword);\n\n // Setting custom font to dialog\n tilPassword.setTypeface(tf);\n tilNewPassword.setTypeface(tf);\n tilReEnterNewPassword.setTypeface(tf);\n passwordEditText.setTypeface(tf);\n newPasswordEditText.setTypeface(tf);\n reEnterNewPasswordEditText.setTypeface(tf);\n\n // Creating dialog and adjusting size\n dialog = builder.create();\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.show();\n\n closeButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n // Override the button handler to check if data is valid\n confirmChangeButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n confirmChangeButton.setEnabled(false);\n boolean valid = true;\n\n String password = passwordEditText.getText().toString();\n String newPassword = newPasswordEditText.getText().toString();\n String reEnterNewPassword = reEnterNewPasswordEditText.getText().toString();\n\n // check password\n if (password.isEmpty() || password.trim().isEmpty() || password.length() < 4 || password.length() > 10) {\n passwordEditText.setError(getString(R.string.error_password));\n valid = false;\n } else {\n passwordEditText.setError(null);\n }\n\n // check password\n if (newPassword.isEmpty() || newPassword.trim().isEmpty() || newPassword.length() < 4 || newPassword.length() > 10) {\n newPasswordEditText.setError(getString(R.string.error_password));\n valid = false;\n } else if(newPassword.equals(password)) {\n newPasswordEditText.setError(getString(R.string.error_password_change_equal));\n valid = false;\n } else {\n newPasswordEditText.setError(null);\n }\n\n // check password\n if (reEnterNewPassword.isEmpty() || reEnterNewPassword.trim().isEmpty() || reEnterNewPassword.length() < 4 ||\n reEnterNewPassword.length() > 10) {\n reEnterNewPasswordEditText.setError(getString(R.string.error_password));\n valid = false;\n } else if(reEnterNewPassword.equals(password)) {\n reEnterNewPasswordEditText.setError(getString(R.string.error_password_change_equal));\n valid = false;\n } else if(!reEnterNewPassword.equals(newPassword)) {\n reEnterNewPasswordEditText.setError(getString(R.string.error_password_match));\n valid = false;\n } else {\n reEnterNewPasswordEditText.setError(null);\n }\n\n if(valid)\n onChangePassword(password, newPassword, reEnterNewPassword);\n else\n confirmChangeButton.setEnabled(true);\n }\n });\n\n WindowManager.LayoutParams lp = new WindowManager.LayoutParams();\n lp.copyFrom(dialog.getWindow().getAttributes());\n lp.width = 900;\n if(lp.height > 1300)\n lp.height = 1300;\n else\n lp.height = WindowManager.LayoutParams.WRAP_CONTENT;\n lp.gravity = Gravity.CENTER;\n dialog.getWindow().setAttributes(lp);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n TextView textView = (TextView) dialog.findViewById(android.R.id.message);\n textView.setTypeface(tf);\n }", "@Override\r\n\tprotected boolean validationCriteria(JPasswordField textFieldpasswordConfirm) {\n\t\treturn false;\r\n\t}", "@Override\n public void onClick(View v) {\n NoticeDialog dialog = builder.create();\n dialog.show();\n builder.setPositiveButton(\"确定\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (builder.getBoolean_pass()) {\n\n new LockPatternUtils(getApplicationContext()).clearLock();\n Intent intent = new Intent(UnlockGesturePasswordActivity.this, VsMainActivity.class);\n startActivity(intent);\n finish();\n } else {\n Toast.makeText(mContext, \"密码错误\", Toast.LENGTH_SHORT).show();\n }\n\n }\n });\n }", "public String getPasswordConfirm() {\n return passwordConfirm;\n }", "public static boolean checkPassword()\n {\n String pw = SmartDashboard.getString(\"Password\");\n SmartDashboard.putString(\"Password\", \"\"); //Clear the password field so that it must be reentered\n\n if(pw.equals(ADMIN_PASSWORD))\n return true;\n else\n {\n log(\"Password invalid\"); //The user gave an incorrect password, inform them.\n return false;\n }\n }", "@Test(priority=1)\n\tpublic void testPasswordValidity() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"jane@doe.com\");\n\t\tsignup.enterPassword(\"1234567\");\n\t\tsignup.reenterPassword(\"1234567\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\t\n\t\t// is String Present looks for the presence of expected error message from all of errors present on current screen. \n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Passwords do not match; please enter a password and reenter to confirm.\\nPasswords must contain at least 6 characters and no spaces.\"));\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif ((!userNameEditText.getText().toString().matches(\"\")) &&\n\t\t\t\t\t(!passwordEditText.getText().toString().matches(\"\")) &&\n\t\t\t\t\t(!numberPlateEditText.getText().toString().matches(\"\"))) {\n\t\t\t\t\t//checking if user is authenticated\n\t\t\t\t\tcheckPassword(userNameEditText.getText(),\n\t\t\t\t\t\t\t\tpasswordEditText.getText(),\n\t\t\t\t\t\t\t\tnumberPlateEditText.getText());\n\t\t\t\t}\t\t\t\n\t\t\t\tuserNameEditText.requestFocus();\n\t\t\t}", "public void forgotPassword()\n {\n new MaterialDialog.Builder(activity)\n .title(R.string.dialog_forgot_password_title)\n .content(R.string.dialog_forgot_password_content)\n .inputType(InputType.TYPE_CLASS_TEXT |\n InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS)\n .theme(Theme.LIGHT)\n .positiveText(R.string.dialog_forgot_password_positive_button)\n .negativeText(R.string.dialog_forgot_password_negative_button)\n .widgetColorRes(R.color.colorPrimary)\n .positiveColorRes(R.color.colorPrimary)\n .negativeColorRes(R.color.colorPrimary)\n .autoDismiss(false)\n .cancelable(false)\n .onAny(new MaterialDialog.SingleButtonCallback()\n {\n @Override\n public void onClick(@NonNull MaterialDialog dialog,\n @NonNull DialogAction which)\n {\n if(which == DialogAction.POSITIVE)\n {\n try\n {\n //Check if the email is valid.\n String email = dialog.getInputEditText().getText().toString();\n if(!Patterns.EMAIL_ADDRESS.matcher(email).matches())\n {\n //TODO send recovery instructions to reset password.\n dialog.dismiss();\n }\n else\n {\n dialog.getInputEditText().setText(\"\");\n dialog.getInputEditText().setError(\n activity.getResources().getString\n (R.string.dialog_forgot_password_invalid_email));\n }\n }\n catch(NullPointerException ex)\n {\n ex.printStackTrace();\n dialog.dismiss();\n }\n }\n else if(which == DialogAction.NEGATIVE) { dialog.dismiss(); }\n }\n })\n .input(R.string.dialog_edit_text_forgot_password_hint,\n R.string.dialog_edit_text_forgot_password_prefill,\n new MaterialDialog.InputCallback()\n {\n @Override\n public void onInput(@NonNull MaterialDialog dialog,\n CharSequence input) { }\n }).show();\n }", "public String getConfirmPassword() {\n return confirmPassword;\n }", "private boolean isPasswordValid(String password) {\n if(password.length() < 4){\n TextView tv = findViewById(R.id.wrongPassError);\n tv.setText(getResources().getString(R.string.error_invalid_password));\n return false;\n }\n return true;\n }", "@Test(priority=1)\n\tpublic void verifyPasswordsMatch() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"jane@doe.com\");\n\t\tsignup.enterPassword(\"abcd\");\n\t\tsignup.reenterPassword(\"1235\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Passwords do not match; please enter a password and reenter to confirm.\\nPasswords must contain at least 6 characters and no spaces.\"));\n\t}", "boolean hasPassword2();", "@When(\"^password$\")\n public void password() throws Throwable {\n \tSystem.out.println(\"input password\");\n \t//Assert.assertEquals(34, 40);\n \t\n \t\n \n }", "@Override\n public void onClick(View v) {\n String inputPassword=passView.getText().toString();\n if(inputPassword != null && inputPassword.equals(password)){\n Intent intent=new Intent(MainActivity.this,LocationListActivity.class);\n startActivity(intent);\n finish();\n }else {\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setIcon(R.drawable.emo_im_yelling);\n builder.setTitle(\"알림\");\n builder.setMessage(\"비밀번호가 다릅니다. 다시 시도해 주세요\");\n builder.setCancelable(false);\n builder.setPositiveButton(\"확인\",\n new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog,\n int which) {\n\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n\n }", "@Override\n public void onClick(View view) {\n changePassword();\n }", "@Override\n public void onClick(View view) {\n String pwNew = mUserPasswordNew.getText().toString().trim();\n String pwNewWdh = mUserPasswordNewWdh.getText().toString().trim();\n\n //TODO logs entfernen\n if(mUserPasswordNew.getText().toString().equals(mUserPasswordNewWdh.getText().toString())){\n ParseUser currentUser = ParseUser.getCurrentUser();\n currentUser.setPassword(pwNew);\n currentUser.saveInBackground();\n Toast.makeText(ProfilActivity.this,\"Guter Code! Passwort geändert\", Toast.LENGTH_LONG).show();\n Log.d(\"TAG\", pwNew);\n Log.d(\"TAG\", pwNewWdh);\n } else {\n Toast.makeText(ProfilActivity.this, \"Noob! Bitte 2 gleiche passwörter eingeben\", Toast.LENGTH_LONG).show();\n Log.d(\"TAG\", pwNew);\n Log.d(\"TAG\", pwNewWdh);\n }\n\n }", "@When(\"^The user enters the password$\")\n\tpublic void the_user_enters_the_password() throws Throwable {\n\t\t\n\t lpw.password_textbox();\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String newPassword = resetPassword.getText().toString();\n user.updatePassword(newPassword).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void unused) {\n Toast.makeText(profile.this, \"Password Reset Successfully\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(profile.this, \"Password Reset Failed.\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "private boolean checkPassword(){\n Pattern p = Pattern.compile(\"^[A-z0-9]*$\");\n Matcher m = p.matcher(newPass.getText());\n boolean b = m.matches();\n if(newPass.getText().compareTo(repeatPass.getText()) != 0 || newPass.getText().isEmpty() || repeatPass.getText().isEmpty()){\n repeatPass.setBackground(Color.red);\n JOptionPane.showMessageDialog(null, \"Password Error\");\n return false;\n }\n else if(newPass.getText().length() > 10 || b == false){\n newPass.setBackground(Color.red);\n JOptionPane.showMessageDialog(null, \"Password Error\");\n return false;\n }\n newPass.setBackground(Color.green);\n repeatPass.setBackground(Color.green);\n return true;\n }", "private void displayConfirmPassword() {\n FieldRelatedLabel confirmPasswordLabel = new FieldRelatedLabel(\"Confirm Password\", 750, 370);\n\n invalidConfirmPasswordLabel = new InvalidFormEntryLabel(\"Does not match with the other password\", 910, 400, false);\n\n confirmPasswordTF = new PasswordField();\n confirmPasswordTF.relocate(750, 400);\n confirmPasswordTF.textProperty().addListener(e->FormValidatorPokeMongo.handleConfirmField(passwordTF, confirmPasswordTF, invalidConfirmPasswordLabel));\n\n sceneNodes.getChildren().addAll(confirmPasswordLabel, invalidConfirmPasswordLabel, confirmPasswordTF);\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Please Enter Correct User Name And Password\", Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Please Enter Correct User Name And Password\", Toast.LENGTH_SHORT).show();\n }", "private boolean doCheckNewPassword() {\n\t\tif (!newPassword.equals(confirmPassword)) return false;\n\t\trecord(\"new password checked\");\n\t\treturn true;\n\t}", "public void enterConfirmPassword(String confirmPassword) {\n Reporter.addStepLog(\" Enter confirm password \" + confirmPassword + \" to confirm password field \" + _confirmPasswordField.toString());\n sendTextToElement(_confirmPasswordField, confirmPassword);\n log.info(\" Enter confirm password\" + confirmPassword + \" to confirm password field \" + _confirmPasswordField.toString());\n }", "private void showChangePasswordtDialog() {\n //creating aleart dialog builder object\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n //setting cancelable to false\n builder.setCancelable(false);\n //set title\n builder.setTitle(\"CHANGE PASSWORD\");\n //set message\n builder.setMessage(\"Please Enter All Required Fields !\");\n /**\n * getting layoutinflater object\n *\n */\n final LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);\n //convert xml file into corespondings views objects\n final View view = inflater.inflate(R.layout.change_password, null);\n //intialize old pass edit text\n final AppCompatEditText oldPass = view.findViewById(R.id.old_pass_edit);\n //intialize new pass edit text\n final AppCompatEditText newPass = view.findViewById(R.id.new_pass_edit);\n //intialize repeat pass edit text\n final AppCompatEditText newRepeatPass = view.findViewById(R.id.repeat_pass_edit);\n //setting cancel button\n builder.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //hide the dailog\n dialogInterface.dismiss();\n }\n });\n //seeting reset button\n builder.setPositiveButton(\"CHANGE\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //showing spots dialog\n final SpotsDialog dialog = new SpotsDialog(DriverHome.this, \"Please Wait...\");\n dialog.show();\n //getting old pass form uberDriver\n String mOldPass = oldPass.getText().toString();\n //getting old pass form uberDriver\n final String mNewPass = newPass.getText().toString();\n //getting old pass form uberDriver\n final String mRepeatPass = newRepeatPass.getText().toString();\n //checking if the email is empty\n if (TextUtils.isEmpty(mOldPass) && TextUtils.isEmpty(mNewPass) && TextUtils.isEmpty(mRepeatPass)) {\n dialog.dismiss();\n showChangePasswordtDialog();\n Snackbar.make(supportMapFragment.getView(), \"Please Enter All Fields !\", Snackbar.LENGTH_LONG).show();\n } else if (TextUtils.isEmpty(mOldPass)) {\n dialog.dismiss();\n showChangePasswordtDialog();\n Snackbar.make(supportMapFragment.getView(), \"Please Enter Your old Password\", Snackbar.LENGTH_LONG).show();\n } else if (TextUtils.isEmpty(mNewPass)) {\n dialog.dismiss();\n showChangePasswordtDialog();\n Snackbar.make(supportMapFragment.getView(), \"Please Enter Your new Password\", Snackbar.LENGTH_LONG).show();\n } else if (TextUtils.isEmpty(mRepeatPass)) {\n dialog.dismiss();\n showChangePasswordtDialog();\n Snackbar.make(supportMapFragment.getView(), \"Please Repeat Your new Password\", Snackbar.LENGTH_LONG).show();\n } else {\n if (mNewPass.equals(mRepeatPass)) {\n final FirebaseUser user = mAuth.getCurrentUser();\n AuthCredential credential = EmailAuthProvider.getCredential(user.getEmail(), mOldPass);\n user.reauthenticate(credential).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n user.updatePassword(mNewPass).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n dialog.dismiss();\n Toast.makeText(DriverHome.this, \"password updated successfully!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(DriverHome.this, \"\" + task.getException().getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n } else {\n dialog.dismiss();\n // Toast.makeText(DriverHome.this, \"\"+task.getException().getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n Toast.makeText(DriverHome.this, \"The old password is incorrect!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n } else {\n Toast.makeText(DriverHome.this, \"passwoed doesn't match\", Toast.LENGTH_SHORT).show();\n }\n\n\n }\n }\n });\n //set the custom view\n builder.setView(view);\n //show the dialog\n builder.show();\n }" ]
[ "0.7744174", "0.7395192", "0.73255074", "0.7207701", "0.71746933", "0.7166209", "0.70910597", "0.7042682", "0.69761765", "0.6939258", "0.6924419", "0.6910247", "0.6882108", "0.6864933", "0.6862756", "0.67743474", "0.67624795", "0.6732101", "0.67295635", "0.6719294", "0.66962147", "0.6676727", "0.663232", "0.66292673", "0.66215557", "0.65916663", "0.65908146", "0.65840524", "0.6572339", "0.6565029", "0.6561972", "0.6561028", "0.6524974", "0.6509903", "0.65089744", "0.6503905", "0.6500898", "0.6498616", "0.6486467", "0.6480167", "0.6479986", "0.645048", "0.6443254", "0.6424084", "0.64144194", "0.6403154", "0.640241", "0.64018124", "0.63948596", "0.6393425", "0.63844895", "0.6384396", "0.6358148", "0.6355546", "0.63528997", "0.6340034", "0.633656", "0.6323794", "0.63222265", "0.6318039", "0.6313456", "0.63096917", "0.6308374", "0.6305711", "0.6305711", "0.6305711", "0.6305711", "0.6305711", "0.6305711", "0.6305711", "0.6305711", "0.6298005", "0.6289848", "0.6286627", "0.62728053", "0.6265645", "0.6255581", "0.6254165", "0.6238865", "0.622296", "0.62225145", "0.62223256", "0.6211222", "0.62037617", "0.61991894", "0.61946905", "0.6188607", "0.6179681", "0.6179384", "0.6164555", "0.6158561", "0.6157352", "0.6155242", "0.614306", "0.6142794", "0.61382174", "0.61357784", "0.61357784", "0.61292994", "0.6120895", "0.61186516" ]
0.0
-1
To test the back button
@Test public void backButton(){ onView(withId(R.id.btnBack1)).perform(click()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "@Override\r\n\tpublic void beforeNavigateBack(WebDriver arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void beforeNavigateBack(WebDriver arg0) {\n\n\t}", "void onGoBackButtonClick();", "@Test\n public void navigateBack() throws Exception {\n }", "public void clickBackButton() {\n\t\tbackButton.click();\n\n\t}", "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "@Override\r\n public void beforeNavigateBack(final WebDriver arg0) {\n\r\n }", "public void goBack() {\n goBackBtn();\n }", "boolean onBackPressed();", "boolean onBackPressed();", "public void navigateToBack() {\n WebDriverManager.getDriver().navigate().back();\n }", "@Override\n\tpublic void backButton() {\n\n\t}", "public static void clickBackBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"backquest\\\"]\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Back button doesnt work\");\n\t\t}\n\t}", "public static void checkAndClickBackButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"backquest\", \"\\\"Back\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"backquest\", \"\\\"Back\\\" button\");\r\n\t}", "@Override\n\tpublic void beforeNavigateBack(WebDriver driver) {\n\t\t\n\t}", "public void backToHome(){\n logger.debug(\"click on Back to Home button\");\n driver.findElement(oBackToHome).click();\n }", "public abstract boolean onBackPressed();", "@Override\n public void backButton() {\n\n\n }", "public static void back() {\n driver.navigate().back();\n }", "public void clickbtnBack() {\n\t\tdriver.findElement(btnBack).click();\n\t}", "@Override\n\tpublic void afterNavigateBack(WebDriver arg0) {\n\n\t}", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "public void back() {\n driver.navigate().back();\n }", "@Override\r\n public void afterNavigateBack(final WebDriver arg0) {\n\r\n }", "public void back() {\n Views.goBack();\n }", "public Finland_HomePage clickbsrBackBtn() throws Throwable {\r\n\t\ttry {\r\n\t\t\tclickBrowserBackButton();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn new Finland_HomePage();\r\n\t}", "@Override\r\npublic void beforeNavigateBack(WebDriver arg0) {\n\tSystem.out.println(\"as\");\r\n}", "public static void navigateBack() {\n\t\tLOG.info(\"Navigate to back page from current page.\");\n\t\tConstants.driver.navigate().back();\n\n\t}", "@Override\n public void onBackPressed() {\n if(web.canGoBack()){\n web.goBack();\n } else {\n super.onBackPressed();\n }\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "default public void clickBack() {\n\t\tclickMenu();\n\t}", "public void beforeNavigateBack(WebDriver driver) {\n\t\t\r\n\t}", "public void beforeNavigateBack(WebDriver driver) {\n\t\t\r\n\t}", "private void navBack() {\n Intent intent = new Intent(this, standard_home.class);\n startActivity(intent);\n }", "@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n\n // Let the system handle the back button\n\n super.onBackPressed();\n\n }", "public void onBackPressed() {\n backbutton();\n }", "public void beforeNavigateBack(WebDriver driver) {\n\t\t\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}", "public void onBackPressed() {\r\n }", "@Override\n\tpublic void onBackPressed()\n\t{\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tdoBack();\r\n\t}", "@Override\n public void onBackPressed() {\n backToHome();\n }", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n \tpublic void onBackPressed() {\n \t}", "public static void onBackPressed()\n {\n }", "public MoviesPage navigateBack()\n\t{\n\t\ttry {\n\t\t\tclick(navBackBtn, \"Back From History page\");\n\t\t} catch (Exception e) {TestUtilities.logReportFailure(e);}\n\t\treturn new MoviesPage();\n\t}", "@Override\r\n public void onBackPressed() {\n }", "@Override\n public void goBack() {\n\n }", "@Override\n\tpublic void onBackPressed() {\n\n\t}", "@Override\n public void onBackPressed() {}", "private void pressBack() {\n mActivityTestRule.waitForActivityNativeInitializationComplete();\n TestThreadUtils.runOnUiThreadBlocking(\n () -> mActivityTestRule.getActivity().onBackPressed());\n }", "public Dist_Germany_HomePage clickbsrBackBtn() throws Throwable {\n\t\ttry {\n\t\t\tclickBrowserBackButton();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new Dist_Germany_HomePage();\n\t}", "private void backPage()\n {\n page--;\n open();\n }", "@Override\r\n\tpublic void onBackPressed() {\n\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\r\n\t}", "@Override\n\tpublic void afterNavigateBack(WebDriver driver) {\n\t\t\n\t}", "@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}", "public static void clickBackBtnGame() {\t\n\t\t\ttry {\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"btnback\\\"]\")).click();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\tSystem.out.println(\"Back button doesnt work in trivia game\");\n\t\t\t}\n\t\t}", "public abstract boolean onBackPressed(boolean isSystemBackKey);", "@Override\n public void backPressed(){\n }", "@Override\n public void onBackPressed() { }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "@Override\n public void onBackPressed() {\n }", "public void onBackPressed()\n {\n }", "@Override\n\tpublic boolean onNaviBackClick() {\n\t\treturn false;\n\t}", "private void setupBack() {\n\t\tmakeButton(\"Back\", (ActionEvent e) -> {\n\t\t\tchangeView(\"login\");\n\t\t});\n\t}", "@Override\n public void onBackPressed() {\n logBackPressed();\n finishOk();\n }", "@Override\r\npublic void afterNavigateBack(WebDriver arg0) {\n\tSystem.out.println(\"as\");\r\n}", "public void click_defineSetupPage_backBtn() throws InterruptedException {\r\n\t\tclickOn(DefineSetup_backBtn);\r\n\t\tThread.sleep(1000);\r\n\t}", "public void goBackToAppHome() {\n UiObject topNavigationBar = mDevice.findObject(new UiSelector().text(\"mytaxi demo\"));\n int backpressCounter = 0; //to avoid infinite loops\n while(!topNavigationBar.exists()) {\n mDevice.pressBack();\n backpressCounter++;\n if(backpressCounter>10)\n break;\n }\n }", "@Override\n public void onBackPressed()\n {\n\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "void actionBack();", "public void testGetBackButtonEnabled() {\n System.out.println(\"getBackButtonEnabled\");\n Wizard instance = new Wizard();\n boolean expResult = false;\n boolean result = instance.getBackButtonEnabled();\n assertEquals(expResult, result);\n }", "public void backButtonPressed(View view) {\n onBackPressed();\n }", "protected void goBack() {\r\n\t\tfinish();\r\n\t}", "@Override\n public void onBackPressed() {\n LogHelper.logD(TAG, \"onBackPressed called\");\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\n public void onBackPressed(){\n System.out.println(\"---------------- No debe hacer nada -------------------------------\");\n }" ]
[ "0.79055905", "0.7815244", "0.7745486", "0.77389073", "0.7731199", "0.7661183", "0.76432544", "0.7631127", "0.75414586", "0.7536721", "0.7536721", "0.7530392", "0.7524717", "0.7515507", "0.7512712", "0.744064", "0.743006", "0.7423409", "0.74110633", "0.7406068", "0.7396285", "0.73847014", "0.737227", "0.73651993", "0.7346759", "0.73408633", "0.7329829", "0.730822", "0.72940016", "0.7289158", "0.7249033", "0.7225112", "0.72223735", "0.72223735", "0.7220962", "0.72144514", "0.7210774", "0.7197833", "0.7184535", "0.71582407", "0.7151977", "0.71494466", "0.71365875", "0.71205175", "0.71205175", "0.71205175", "0.71205175", "0.71203023", "0.71183884", "0.7111397", "0.7111017", "0.7106673", "0.7098178", "0.7095621", "0.70949954", "0.7091852", "0.70880634", "0.7073331", "0.7073331", "0.70732313", "0.70682335", "0.7064972", "0.70528233", "0.70514965", "0.7032227", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.6997997", "0.69934595", "0.698573", "0.6982536", "0.69778854", "0.69724214", "0.6953139", "0.6951465", "0.69453067", "0.69270325", "0.691924", "0.691924", "0.6902584", "0.6896053", "0.6894513", "0.6885399", "0.6881369", "0.6880952", "0.6880952", "0.68793595" ]
0.7938108
0
To test the register button
@Test public void regButton(){ onView(withId(R.id.edUserReg)).perform(typeText("Jade")); onView(withId(R.id.Stud_id)).perform(typeText("Jade")); onView(withId(R.id.edPassReg)).perform(typeText("hey")); onView(withId(R.id.edPassConReg)).perform(typeText("hey")); onView(withId(R.id.btnReg)).perform(click()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SmallTest\n public void testForOpenRegisterScreen() {\n solo.clickOnButton(solo.getString(R.string.register));\n if (solo.waitForActivity(WelcomeActivity.class)) {\n // select Register button\n solo.clickOnButton(0);\n\n // add user name/password/confirmed password, then create account\n if (solo.waitForActivity(RegisterActivity.class)) {\n solo.enterText(0, \"wchoosilp\");\n solo.enterText(1, \"123\");\n solo.enterText(2, \"123\");\n solo.clickOnButton(1);\n }\n }\n }", "@Test\n\tpublic void TC01_Register() {\n\t\tclickToElemnet(registerLinkX);\n\t\tSystem.out.println(\"TC01 : 1. Register Page Display Status : \" + checkElementDisplayed(registerPageX));\n\n\t\t// Register new accout\n\t\tclickToElemnet(genderMaleRadioBtnX);\n\t\tsendkeysToElement(firstNameTxtX, regFirstName);\n\t\tsendkeysToElement(lastNameTxtX, regLastName);\n\t\tselectElementFromDropDown(dateOfBirthDropDownX, regDateOfBirth);\n\t\tselectElementFromDropDown(dateOfMonthDropDownX, regDateOfMonth);\n\t\tselectElementFromDropDown(dateOfYearDropDownX, regDateOfYear);\n\t\tsendkeysToElement(emailTxtX, regEmail);\n\t\tsendkeysToElement(companyNameTxtX, regCompanyName);\n\t\tsendkeysToElement(passwordTxtX, regPassword);\n\t\tsendkeysToElement(confirmPasswordTxtX, regPassword);\n\t\tclickToElemnet(registerBtnX);\n\n\t\t// Verify Account is Created Successfully\n\t\tSystem.out.println(\"TC01 : 2. Register message : \" + getTextFromElement(registerSuccessMsgX));\n\n\t\t// Click Log Out Link\n\t\tSystem.out.println(\"TC01 : 3. Click Log Out Link\");\n\t\tclickToElemnet(logOutLinkX);\n\n\t\t// Verify navigate to Home Page\n\t\tSystem.out.println(\"TC01 : 4. Navigate to Home Page : \" + driver.getCurrentUrl());\n\n\t}", "@Test\n public void registerUser() {\n //TODO 1,2\n onView(ViewMatchers.withId(pl.lizardproject.qe2017.R.id.registerButton)).perform(click());\n onView(ViewMatchers.withId(pl.lizardproject.qe2017.R.id.newUsernameEditText)).check(matches(isDisplayed()));\n\n //TODO 3,4,5\n onView(ViewMatchers.withId(pl.lizardproject.qe2017.R.id.newUsernameEditText)).perform(typeText(\"user\"));\n onView(ViewMatchers.withId(pl.lizardproject.qe2017.R.id.newPasswordEditText)).perform(typeText(\"pass\"));\n onView(ViewMatchers.withId(pl.lizardproject.qe2017.R.id.registerButton)).perform(click());\n\n //TODO 6\n onView(ViewMatchers.withId(pl.lizardproject.qe2017.R.id.fabAdd)).check(matches(isDisplayed()));\n }", "@Then(\"^click on the Register button$\")\r\n\tpublic void click_on_the_Register_button() throws Throwable {\n\t register.submitRegistration();\r\n\t}", "@Test\n public void openRegisterScreen() {\n //TODO 1,2,3\n onView(ViewMatchers.withId(pl.lizardproject.qe2017.R.id.registerButton)).perform(click());\n onView(ViewMatchers.withId(pl.lizardproject.qe2017.R.id.newUsernameEditText)).check(matches(isDisplayed()));\n\n //TODO 4,5\n Espresso.closeSoftKeyboard();\n Espresso.pressBack();\n onView(ViewMatchers.withId(pl.lizardproject.qe2017.R.id.usernameEditText)).check(matches(isDisplayed()));\n }", "public void clickToRegisterButton() {\n\t\twaitToElementClickable(driver,RegisterPageUI.REGISTER_BUTTON);\n\t\tclickToElement(driver,RegisterPageUI.REGISTER_BUTTON);\n\t}", "public void clickOnRegisterButton() {\n Reporter.addStepLog(\" Click on register button \" + _registerBtn.toString());\n clickOnElement(_registerBtn);\n log.info(\" Click on register button \" + _registerBtn.toString());\n }", "public void userShouldBeAbleToRegisterSuccessfully() {\n clickElement(reg_link);\n //Select gender\n clickElement(gender);\n //Enter Firstname\n enterText(firstName, readTestDataFile(\"FirstName\"));\n //Enter Lastname\n enterText(lastName, readTestDataFile(\"LastName\"));\n //Select date of birth\n int num=Integer.valueOf(readTestDataFile(\"DateDay\"));\n selectByIndex(dateDay,num);\n //Select date of month\n selectbyVisibleText(month, readTestDataFile(\"Month\"));\n //Select date of Year\n selectByValue(year, readTestDataFile(\"Year\"));\n //Enter Email\n enterText(email, readTestDataFile(\"Email\")+dateStamp()+\"@test.com\");\n //Enter Company name\n enterText(company, readTestDataFile(\"Company\"));\n //Enter Newsletter option\n driver.findElement(newsletter).isSelected();\n //Enter Password\n enterText(password, readTestDataFile(\"Password\"));\n //Enter ConfirmPassword\n enterText(confirmPassword, readTestDataFile(\"ConfirmPassword\"));\n //Click Register button\n clickElement(registerButton);\n //Expected Result\n String expectedRegisterSuccessMessage = \"Your registration completed\";\n String actualRegisterSuccessMessage=getText(actualMessage);\n //assert use to compare expected and actual result are same or not\n softAssert.assertEquals(expectedRegisterSuccessMessage,actualRegisterSuccessMessage,\"Registration Fail\");\n softAssert.assertAll();\n //Click logout button\n clickElement(logOut);\n }", "@When(\"^Click on Register Button$\")\npublic void click_on_Register_Button() throws Throwable {\n\tdriver.findElement(By.id(\"registration_submit\")).click();\n\tSystem.out.println(\"Successfuly completed the regitration process\");\n \n}", "@Test\n public void testRegisterSuccessfully() {\n SignUpRequest request = new SignUpRequest(UNIQUE, \"Secret\");\n\n dao.register(request);\n\n verify(controller).registered();\n }", "@Test\r\n public void positiveRegistration() {\r\n driver.get(\"http://127.0.0.1:8888/wp-login.php?action=register\");\r\n StringBuilder sb = new StringBuilder(len);\r\n for (int i = 0; i < len; i++) {\r\n sb.append(AB.charAt(rnd.nextInt(AB.length())));\r\n }\r\n String charSequence = \"\";\r\n charSequence = sb.toString();\r\n WebElement loginField = driver.findElement(By.xpath(\"//input[@id='user_login']\"));\r\n loginField.sendKeys(charSequence);\r\n WebElement passwdField = driver.findElement(By.xpath(\"//input[@id='user_email']\"));\r\n passwdField.sendKeys(charSequence+\"@gmail.com\");\r\n\r\n WebElement registerButton = driver.findElement(By.xpath(\"//input[@name='wp-submit']\"));\r\n registerButton.click();\r\n\r\n WebElement registrationMessage = driver.findElement(By.xpath(\"//p[@class='message']\"));\r\n Assert.assertEquals(registrationMessage.getText(),\"Регистрация завершена. Проверьте вашу почту.\");\r\n }", "protected GuiTestObject button_registerNowsubmit() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"button_registerNowsubmit\"));\n\t}", "@Test\r\n\t public void register1() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \t\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t \r\n\t }", "@Test(priority = 1, alwaysRun = true)\n\n\tpublic void usercanregistersuccessfully() {\n\t\thomeobject = new HomePage(driver);\n\t\thomeobject.openregisterpage();\n\t\t// take object mn el method elmowgoda fy home page\n\t\tregistrationobject = new UserRegisteration(driver);\n\t\tregistrationobject.userregisteration( firstname, lastname, email, password);\n\n\t\t// validate the scenario\n\t\tAssert.assertTrue(registrationobject.successmessage.getText().contains(\"Your registration completed\"));\n\t}", "@Test\r\n public void positiveIfThereIsRegistration() {\r\n driver.get(\"http://127.0.0.1:8888/wp-login.php?action=register\");\r\n Assert.assertEquals( driver.getTitle(),\"EPAM TAT 2016 ‹ Регистрационная форма\");\r\n }", "@Test\n\tpublic void StartRegistration() throws Exception {\n\n\t\t// Enter the text in textbox\n\n\t\tdriver.findElement(By.xpath(\"//android.widget.EditText[@content-desc='my_text_fieldCD']\"))\n\t\t\t\t.sendKeys(\"Wunder Test\");\n\n\t\t// click on registration button\n\n\t\tdriver.findElement(By.id(\"io.selendroid.testapp:id/startUserRegistration\")).click();\n\n\t\t// Wait for 10 second\n\n\t\tThread.sleep(10000);\n\n\t\t// Fill registration form data\n\n\t\tWebElement element;\n\n\t\t// Username\n\t\telement = driver.findElement(By.id(\"io.selendroid.testapp:id/inputUsername\"));\n\t\telement.sendKeys(\"Wunder Test\");\n\n\t\t// E-mail\n\t\telement = driver.findElement(By.id(\"io.selendroid.testapp:id/inputEmail\"));\n\t\telement.sendKeys(\"rshw8487@gmail.com\");\n\n\t\t// Password\n\t\telement = driver.findElement(By.id(\"io.selendroid.testapp:id/inputPassword\"));\n\t\telement.clear();\n\t\telement.sendKeys(\"Travel123\");\n\n\t\t// Name\n\t\telement = driver.findElement(By.id(\"io.selendroid.testapp:id/inputName\"));\n\t\telement.clear();\n\t\telement.sendKeys(\"Rahul\");\n\n\t\t// Select Programming language\n\t\telement = driver.findElement(By.id(\"io.selendroid.testapp:id/input_preferedProgrammingLanguage\"));\n\t\telement.click();\n\n\t\telement = driver.findElement(By.id(\"android:id/text1\"));\n\t\telement.click();\n\n\t\t// Accept adds\n\t\telement = driver.findElement(By.id(\"io.selendroid.testapp:id/input_adds\"));\n\t\telement.click();\n\n\t\t// Register user\n\t\telement = driver.findElement(By.id(\"io.selendroid.testapp:id/btnRegisterUser\"));\n\t\telement.click();\n\n\t\t// Confirm registration\n\t\telement = driver.findElement(By.id(\"io.selendroid.testapp:id/buttonRegisterUser\"));\n\t\telement.click();\n\n\t}", "private void attemptRegister(final View button) {\n validateFirst();\n }", "@Test\n public void triggerIntentTestButtonToRegister() {\n onView(withId(R.id.btnLinkToRegisterScreen)).check(matches(isClickable()));\n onView(withId(R.id.btnLinkToRegisterScreen)).check(matches(notNullValue()));\n }", "@Test\n public void aTestRegister() {\n given()\n .param(\"username\", \"playlist\")\n .param(\"password\", \"playlist\")\n .post(\"/register\")\n .then()\n .statusCode(201);\n }", "@When(\"^user clicks on Register button$\")\r\n public void user_clicks_on_Register_button() throws Throwable {\n throw new PendingException();\r\n }", "void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }", "@Test \n\tpublic void testRegisterValidUser() throws Exception {\n\t\tapp.getMailinatorHelper().getEmailsNumber();\n//\t\tbasePage.fillInRegistrationForm();\n\t\t\n\t\t//Step 1: Register valid user\n\t\t//\t\tStep 1-1: Fill and send form\n\t\t//\t\tStep 1-2: Get confirm email\n\t\t//\t\tStep 1-3: Confirm registration\n\t\t//\t\tStep 1-4: Check relogin\n\t\t//\t\tStep 1-1: Register valid user\n\t\t//\t\tStep 1-1: Register valid user\n\t\t//Step 2: Check that user successfully registered\n\t\t\n\t}", "public static void waitForRegistrationButton(){\n DriverManager.waitForElement(Constans.REGISTRATION_BUTTON_LOCATOR);\n }", "@Test\n\tvoid validRegisterTest() throws Exception {\n\t\tUser userObj = new User();\n\t\tuserObj.setName(\"Siva Murugan\");\n\t\tuserObj.setEmail(\"valid@gmail.com\");\n\t\tuserObj.setGender(\"M\");\n\t\tuserObj.setMobileNumber(9878909878L);\n\t\tuserObj.setRole(\"C\");\n\t\tuserObj.setUsername(\"sivanew\");\n\t\tuserObj.setPassword(\"Siva123@\");\n\t\tString userJson = new ObjectMapper().writeValueAsString(userObj);\n\t\twhen(userService.registerUser(any(User.class))).thenReturn(true);\n\t\tmockMvc.perform(post(\"/vegapp/v1/users/register\").contentType(MediaType.APPLICATION_JSON).content(userJson))\n\t\t\t\t.andExpect(status().isOk()).andExpect(content().string(\"true\"));\n\t}", "@Test\r\n\tpublic void TC_01_verifyRegistrationPage() {\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t}", "@Test\n public void testRegisterUser() throws AuthenticationException, IllegalAccessException {\n facade.registerUser(\"fiske\", \"JuiceIsLoose123/\");\n assertEquals(\"fiske\", facade.getVeryfiedUser(\"fiske\", \"JuiceIsLoose123/\").getUserName(), \"Expects user exist after register\");\n }", "@Step\n public void clickRegistrationButton(){\n actionWithWebElements.clickOnElement(registrationButton);\n }", "@Test(priority=1, dataProvider=\"User Details\")\n\t\tpublic void registration(String firstname,String lastname,String emailAddress,\n\t\t\t\tString telephoneNum,String address1,String cityName,String postcodeNum,\n\t\t\t\tString country,String zone,String pwd,String confirm_pwd) throws Exception{\n\t\t\t\n\t\t\thomePage = new HomePage(driver);\n//'**********************************************************\t\t\t\n//Calling method to click on 'Create Account' link\n\t\t\tregistraionPageOC = homePage.clickCreateAccount();\n//'**********************************************************\t\t\t\n//Calling method to fill user details in Registration page and verify account is created\n\t\t\tregistraionPageOC.inputDetails(firstname,lastname,emailAddress,telephoneNum,address1,cityName,postcodeNum,country,zone,pwd,confirm_pwd);\n\t\t\ttry{\n\t\t\tAssert.assertEquals(\"Your Account Has Been Created!\", driver.getTitle(),\"Titles Not Matched: New Account Not Created\");\n\t\t\textentTest.log(LogStatus.PASS, \"Registration: New User Account is created\");\n\t\t\t}catch(Exception e){\n\t\t\t\textentTest.log(LogStatus.FAIL, \"Registration is not successful\");\n\t\t\t}\n\t\t}", "@Test(enabled = false, priority = 6)\n\tpublic void newUserRegistrationTest04() {\n\t\tdriver.findElement(By.cssSelector(\".cms-newuser-reg\")).click();\n\n\t}", "@Test(enabled = true)\n public void registraionPage() throws InterruptedException {\n driver.findElement(By.xpath(\"//a[contains(.,'Sign up, it’s free')]\")).click();\n Thread.sleep(2000);\n\n\n String expected = \"Show us your human side...\";\n String actual = driver.findElement(By.xpath(\"//h1[contains(.,'Show us your human side')]\")).getText();\n\n Assert.assertEquals(actual, expected, \"Test Failed. Registration page could not be reached.\");\n\n\n }", "@Test\n public void testTegisterPatient(){\n register.registerPatient(\"Donald\", \"Trump\",\"16019112345\", \"Doctor Proctor\");\n assertEquals(1, register.getRegisterSize());\n }", "@Test\n public void UserCreation() throws Exception {\n openDemoSite(driver);\n driver.findElement(By.xpath(\"//li/a[@title=\\\"Admin area\\\"]\")).click();\n driver.findElement(By.xpath(\"//input[@name='login']\")).sendKeys(\"Email\");\n driver.findElement(By.xpath(\"//input[@name='password']\")).sendKeys(\"Password\");\n driver.findElement(By.xpath(\"//button[@type='submit']\")).click();\n Assert.assertTrue(\"Admin should be logged in\", false);\n driver.findElement(By.xpath(\"//a[@title=\\\"Users list\\\"]\")).click();\n driver.findElement(By.xpath(\"//button[@class='btn regular-button']\")).click();\n driver.findElement(By.xpath(\"//input[@id='login']\")).sendKeys(\"Email\");\n driver.findElement(By.xpath(\"//input[@id='password']\")).sendKeys(\"Password\");\n driver.findElement(By.xpath(\"//input[@id='password-conf']\")).sendKeys(\"Confirm password\");\n driver.findElement(By.xpath(\"//div/button[@type='submit']/span[text()='Create account']\")).click();\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tattempt_register();\n\t\t\t}", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "@Test\n\tpublic void registerUserTest4() throws Exception {\n\t\tSignUpRequest signUpRequest = new SignUpRequest(\"Marko\", \"Troskot\", \"MTro\", \"marko@gotmail.com\", \"pass123\", \"pass1234\");\n\n\t\tMockito.when(userService.existsByUsername(ArgumentMatchers.anyString())).thenReturn(false);\n\t\tMockito.when(userService.existsByEmail(ArgumentMatchers.anyString())).thenReturn(false);\n\n\t\tmockMvc.perform(post(\"/api/auth/signup\").contentType(MediaType.APPLICATION_JSON).content(objectMapper.writeValueAsString(signUpRequest)).characterEncoding(\"UTF-8\"))\n\t\t\t\t.andDo(print()).andExpect(status().is(400)).andExpect(status().reason(passwordsNoMatch));\n\t}", "@Test\n public void testUserNotifiedOnRegistrationSubmission() throws Exception {\n ResponseEntity<String> response = registerUser(username, password);\n assertNotNull(userService.getUser(username));\n assertEquals(successUrl, response.getHeaders().get(\"Location\").get(0));\n }", "public void verifyRegisterLink() {\n registerLink.assertState().enabled();\n registerLink.assertContains().text(\"Register\");\n }", "@Test\r\n\t public void register2() {\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t \r\n\t }", "@Test\n\tpublic void Authentication_04() throws InterruptedException\n\t{\n\t\tRegisterPage rp = PageFactory.initElements(driver, RegisterPage.class);\n\t\t\n\t\trp.inputField(\"wesley\", \"11\", \"wesley11\", \"12345678\");\n\t\t\n\t\t\n\t\t//verify validation is displayed\n\t\tassertEquals(rp.messageValidationIsExist(\"Username is not a valid email address\"), true,\"Message validation is not displayed\");\n\t\t\n\t\trp.clickOkMessageValidationButton();\n\t\t//rp.clearField();\n\t\t\n\t\t\n\t}", "@Test\n\tpublic void Authentication_02() throws InterruptedException\n\t{\n\t\tRegisterPage rp = PageFactory.initElements(driver, RegisterPage.class);\n\t\t\n\t\trp.inputField(\"wesley\", \"01\", \"wesley01@yopmail.com\", \"12345678\");\n\t\t\n\t\t//verify validation is displayed\n\t\tassertEquals(rp.messageValidationIsExist(\"Username already exists\"), true,\"Message validation is not displayed\");\n\t\t\n\t\trp.clickOkMessageValidationButton();\n\t\t//rp.clearField();\n\t}", "@Test(priority=3)\n\tpublic void verifySignUpBtn() {\n\t\tboolean signUpBtn = driver.findElement(By.name(\"websubmit\")).isEnabled();\n\t\tAssert.assertTrue(signUpBtn);\n\t}", "@Test\r\n\tpublic void TC_02_verify_Registration_ValidData() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\t\r\n\t\t// Step 2: Enter valid registration details including first name,last name,email address, password and confirm password\r\n\t\t\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", email);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should be able to register themselves by verifying their credentials on registration page\r\n\t\t\r\n\t\tregUserInfo = Page_Registration.getRegisteredUserInfo();\r\n\t\tif (regUserInfo.toLowerCase().contains(firstName.toLowerCase())\r\n\t\t\t\t&& regUserInfo.toLowerCase().contains(lastName.toLowerCase()))\r\n\t\t\tSystem.out.println(\"User registered successfully\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"User could not be registered\");\r\n\r\n\t}", "public void openRegister() {\n\n }", "@Test\r\n\t public void register3() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",2);\r\n\t\t \tthis.student.registerForClass(\"gurender1\", \"ecs60\", 2017);\r\n\t\t \tthis.student.registerForClass(\"gurender2\", \"ecs60\", 2017);\r\n\t \tthis.student.registerForClass(\"gurender3\", \"ecs60\", 2017);\r\n\t \tthis.student.registerForClass(\"gurender4\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender4\", \"ecs60\", 2017)); \r\n\t }", "@Test\r\n\t public void register4() {\n\t\t \tthis.admin.createClass(\"ecs61\",2017,\"sean\",2);\r\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs61\", 2017));\r\n\t \r\n\t }", "@Test(groups = {\n\t\t\t\"Register Suite\" }, description = \"TestCase_02_Validate register button should be enabled if password field blank\")\n\tpublic void validateRegisterButtonShouldBeEnabledIfPasswordFieldBlank() throws InterruptedException {\n\n\t\topenURL(\"testSiteURL\");\n\t\ttype(\"register_email_field_CSS\", \"qa@orioncs.com\");\n\t\t// Assert.assertTrue(driver.findElement(By.xpath(OR.getProperty(\"register_button_XPATH\"))).isEnabled(),\n\t\t// \"Register Button is disabled\");\n\t\t// Assert.assertTrue(isElementPresent(by, locator));\n\n\t\tThread.sleep(3000);\n\t\tAssert.assertTrue(isElementEnabled(\"register_button_XPATH\"));\n\t}", "@Test\r\n\t public void isRegisterIfdroped2() {\n\t\t \tthis.admin.createClass(\"ecs60\",2016,\"sean\",4);\r\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2016);\r\n\t\t \tthis.student.dropClass(\"gurender\", \"ecs60\", 2016);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2016));\r\n\t // assertTrue(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017));\r\n\t \r\n\t }", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "@Test\r\n\t public void registerBaseCase() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertTrue(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t //this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017);\r\n\t \r\n\t }", "@Test\n\tpublic void registerUserTest2() throws Exception {\n\t\tSignUpRequest signUpRequest = new SignUpRequest(\"Marko\", \"Troskot\", \"MTro\", \"marko@gotmail.com\", \"pass123\", \"pass123\");\n\n\t\tMockito.when(userService.existsByUsername(ArgumentMatchers.anyString())).thenReturn(true);\n\n\t\tmockMvc.perform(post(\"/api/auth/signup\").contentType(MediaType.APPLICATION_JSON).content(objectMapper.writeValueAsString(signUpRequest)).characterEncoding(\"UTF-8\"))\n\t\t\t\t.andDo(print()).andExpect(status().is(400)).andExpect(status().reason(usernameTaken));\n\t}", "public void testRegisterWizardPanel() {\n System.out.println(\"registerWizardPanel\");\n Object id = null;\n WizardPanelDescriptor panel = null;\n Wizard instance = new Wizard();\n instance.registerWizardPanel(id, panel);\n }", "@Test\n public void registerUser() {\n String emailStr = \"ivanstest23@is.com\";\n String pinCode = \"0000\";\n String password = \"123456\";\n String secret = \"qwerty\";\n String fullName = \"IvanSTest23\";\n String phone = \"123456\";\n onView(withId(R.id.btnChangeServer)).perform(click());\n onView(withId(R.id.radioTest)).perform(click());\n onView(withId(R.id.saveBtn)).perform(click());\n onView(withId(R.id.emailEditText)).perform(typeText(emailStr));\n Espresso.closeSoftKeyboard();\n onView(withId(R.id.registerButton)).perform(click());\n onView(withId(R.id.emailEditText)).check(matches(withText(emailStr)));\n onView(withId(R.id.confirmEmailButton)).perform(click());\n onView(withId(R.id.codeEditText)).perform(typeText(pinCode));\n Espresso.closeSoftKeyboard();\n onView(withId(R.id.tvNext)).perform(click());\n sleepThread();\n\n onView(withId(R.id.hintPassword)).perform(typeText(secret));\n Espresso.closeSoftKeyboard();\n onView(withId(R.id.passwordEditText)).perform(typeText(password));\n Espresso.closeSoftKeyboard();\n onView(withId(R.id.confirmPasswordEditText)).perform(typeText(password));\n Espresso.closeSoftKeyboard();\n onView(withId(R.id.tvNext)).perform(click());\n sleepThread(5000);\n\n onView(withId(R.id.editPhone)).perform(typeText(phone));\n Espresso.closeSoftKeyboard();\n onView(withId(R.id.fullNameEditText)).perform(typeText(fullName));\n Espresso.closeSoftKeyboard();\n onView(withId(R.id.tvNext)).perform(click());\n sleepThread(3000);\n\n onView(withId(R.id.codeEditText)).perform(typeText(pinCode));\n Espresso.closeSoftKeyboard();\n onView(withId(R.id.tvNext)).perform(click());\n sleepThread();\n\n onView(withId(R.id.btnOne)).perform(click());\n onView(withId(R.id.btnTwo)).perform(click());\n onView(withId(R.id.btnThree)).perform(click());\n onView(withId(R.id.btnFour)).perform(click());\n\n onView(withId(R.id.btnOne)).perform(click());\n onView(withId(R.id.btnTwo)).perform(click());\n onView(withId(R.id.btnThree)).perform(click());\n onView(withId(R.id.btnFour)).perform(click());\n\n\n }", "@Test\n\tpublic void createAccount() {\t\n\t\t\n\t\tRediffOR.setCreateAccoutLinkClick();\n\t\tRediffOR.getFullNameTextField().sendKeys(\"Kim Smith\");\n\t\tRediffOR.getEmailIDTextField().sendKeys(\"Kim Smith\");\n\t\t\t\t\t\n\t\t\n\t}", "public void clickRegisterLink() {\n $(registerLink).click();\n }", "@Test\r\n public void negativeRegistration() {\r\n driver.get(\"http://127.0.0.1:8888/wp-login.php?action=register\");\r\n WebElement loginField = driver.findElement(By.xpath(\"//input[@id='user_login']\"));\r\n loginField.sendKeys(\"admin\");\r\n WebElement passwdField = driver.findElement(By.xpath(\"//input[@id='user_email']\"));\r\n passwdField.sendKeys(\"test@gmail.com\");\r\n\r\n WebElement registrationButton = driver.findElement(By.xpath(\"//input[@name='wp-submit']\"));\r\n registrationButton.click();\r\n\r\n WebElement registrationError = driver.findElement(By.xpath(\"//div[@id='login_error']\"));\r\n\r\n Assert.assertNotNull(registrationError);\r\n }", "@Test\n\tpublic void registerUserTest7() throws Exception {\n\t\tSignUpRequest signUpRequest = new SignUpRequest(\"Marko\", \"Troskot\", \"MTro\", \"marko@gotmail.com\", \"pass123\", \"pass123\");\n\n\t\tMockito.when(userService.existsByUsername(ArgumentMatchers.anyString())).thenReturn(false);\n\t\tMockito.when(userService.existsByEmail(ArgumentMatchers.anyString())).thenReturn(false);\n\t\tRole role = new Role();\n\t\trole.setType(RoleType.USER);\n\t\tMockito.when(roleService.findByType(ArgumentMatchers.any(RoleType.class))).thenReturn(Optional.of(role));\n\t\tUser user = new User();\n\t\tMockito.when(userService.save(ArgumentMatchers.any(User.class), ArgumentMatchers.anyBoolean())).thenReturn(user);\n\n\t\tmockMvc.perform(post(\"/api/auth/signup\").contentType(MediaType.APPLICATION_JSON).content(objectMapper.writeValueAsString(signUpRequest)).characterEncoding(\"UTF-8\"))\n\t\t\t\t.andDo(print()).andExpect(status().is(201)).andExpect(content().json(objectMapper.writeValueAsString(user)));\n\t}", "@Test\r\n public void startSignUpOptionTest()\r\n {\r\n presenter.onClickSignUp();\r\n\r\n Assert.assertEquals(stub.getSignUpCounter(), 1);\r\n }", "@Test\npublic void testRegister() throws Exception { \n//TODO: Test goes here...\n System.out.println(\"testRegister\");\n}", "@Test (priority = 1)\n\tpublic void TC1_CheckCreateNewuser_Exists ()\n\n\t{\n\t\tCreateUserPage UserObj = new CreateUserPage (driver);\n\n\t\t// This is to Validate If Create user button exists to Create a new User\n\t\tUserObj.Validate_CreateUserButton_Exsist();\n\n\t}", "private void submitForm() {\n Toast.makeText(this, \"Registering...\", Toast.LENGTH_LONG).show();\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew Register().execute();\r\n\r\n\t\t\t}", "@Test(priority=2)\n\tpublic void completeSignUpProcess(){\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"manish.vr111@gmail.com\");\n\t\tsignup.enterFirstName(\"Manish Kumar\");\n\t\tsignup.enterLastName(\"Vuttunoori\");\n\t\tsignup.enterPassword(\"qwerty126\");\n\t\tsignup.reenterPassword(\"qwerty126\");\n\t\tsignup.clickSubmit();\n\t\t// must go to home page but wont as the mail id used here is already registered for an account, \n\t\t//so just checking for single error i.e. Email is already registered.\n\t\tAssert.assertEquals(1, signup.getErrors().size());\n\t}", "@When(\"^Click on Sign Up Button$\")\npublic void click_on_Sign_Up_Button() throws Throwable \n{\n\tdriver.findElement(By.xpath(\"//*[@id=\\\"login-block\\\"]/div/ul/li[1]/a\")).click();\n\tSystem.out.println(\"User is successfully navigated to Registration screen\");\n \n}", "@Test\n\tpublic void registerUserTest() throws RemoteException, NoSuchAlgorithmException, InvalidKeySpecException, IOException, InvalidKeyException, SignatureException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnrecoverableKeyException, KeyStoreException, CertificateException {\n\t\t\n\t\t// Creation of the server\n\t\tPasswordManager pm = new PasswordManager(8080);\n\n\t\t// Normal register\n\t\tString response = pm.registerUser(DatatypeConverter.printBase64Binary(cliPubKey.getEncoded()), \n\t\t\t\tDigitalSignature.getSignature(cliPubKey.getEncoded(),cliPrivKey));\n\n\t\t// Analyse the correctness of the answer\n\t\tAssert.assertNotSame(response, \"Error: Could not validate signature.\");\n\t}", "@Test\n\tpublic void Authentication_03() throws InterruptedException\n\t{\n\t\tRegisterPage rp = PageFactory.initElements(driver, RegisterPage.class);\n\t\t\n\t\trp.inputField(\"wesley\", \"100\", \"wesley01@yopmail.com\", \"12345\");\n\t\t\n\t\t//verify validation is displayed\n\t\tassertEquals(rp.messageValidationIsExist(\"Password length must be 6 or more\"), true,\"Message validation is not displayed\");\n\t\t\n\t\trp.clickOkMessageValidationButton();\n\t\t//rp.clearField();\n\t\t\n\t}", "private void register() {\n Intent intent = new Intent(LoginActivity.this, RegisterActivity.class);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Register();\n\t\t\t\tsetVisible(false);\n\t\t\t}", "public void testRegister() throws InterruptedException {\n\t\tdriver.get(\"http://automationpractice.com/index.php?controller=authentication&back=my-account#account-creation\");\r\n\t\t\r\n\t\t\r\n\t\tString emailAddr = \"alokjunk@hotmail.co.uk\";//will have to change it when making another account\r\n\t\tString firstname = \"Bob\";\r\n\t\tString seconname = \"Marley\";\r\n\t\tString password = \"Testing123\";\r\n\t\tString Address =\"13 Court Street\";\r\n\t\tString Address2 = \"\";\r\n\t\tString City = \"Z-City\";\r\n\t\tString PostCode =\"66441\";\r\n\t\tString PhoneMobile =\"07833888211\";\r\n\t\t\r\n\t\tWebElement email = driver.findElement(By.name(\"email_create\"));//returns box to write the email address on.\r\n\t\tWebElement btn = driver.findElement(By.xpath(\"//*[@id=\\\"SubmitCreate\\\"]/span\"));//get the button\r\n\t\temail.sendKeys(emailAddr);//writes the email address \r\n\t\tbtn.click();//clicks the buttons\r\n\t\t\r\n\t\tThread.sleep(3000);\r\n\t\tWebElement rbutton = driver.findElement(By.xpath(\"//*[@id=\\\"id_gender1\\\"]\"));//set value as 1 for male value or 2 for female.\r\n\t\trbutton.click();\r\n\t\tWebElement customerFirstname = driver.findElement(By.name(\"customer_firstname\"));//first name on the register pagw\r\n\t\tcustomerFirstname.sendKeys(firstname);\r\n\t\tWebElement customerLastname = driver.findElement(By.name(\"customer_lastname\"));//last name on the register page\r\n\t\tcustomerLastname.sendKeys(seconname);\r\n\t\tWebElement passwordBox = driver.findElement(By.name(\"passwd\"));//password\r\n\t\tpasswordBox.sendKeys(password);\r\n\t\t\r\n\t\tWebElement days = driver.findElement(By.xpath(\"//*[@id=\\\"days\\\"]\"));\r\n\t\tdays.findElement(By.xpath(\"//*[@id=\\\"days\\\"]/option[10]\")).click();//find xpath for the value. click to get the dates out and click on the xpath of the value you want the date to be on.\r\n\t\tWebElement month = driver.findElement(By.xpath(\"//*[@id=\\\"months\\\"]\"));\r\n\t\tmonth.findElement(By.xpath(\"//*[@id=\\\"months\\\"]/option[5]\")).click();\r\n\t\tWebElement year = driver.findElement(By.xpath(\"//*[@id=\\\"years\\\"]\"));\r\n\t\tyear.findElement(By.xpath(\"//*[@id=\\\"years\\\"]/option[13]\")).click();\r\n\t\t\r\n\t\t\r\n\t\tWebElement address1 = driver.findElement(By.name(\"address1\"));//address bit\r\n\t\taddress1.sendKeys(Address);\r\n\t\t\r\n\t\tWebElement city = driver.findElement(By.name(\"city\"));//where city is\r\n\t\tcity.sendKeys(City);\r\n\t\tWebElement state = driver.findElement(By.xpath(\"//*[@id=\\\"id_state\\\"]/option[45]\"));state.click();//state\r\n\t\t\t\t\r\n\t\tWebElement postcode = driver.findElement(By.name(\"postcode\"));//post code\r\n\t\tpostcode.sendKeys(PostCode);\r\n\t\tWebElement country = driver.findElement(By.xpath(\"//*[@id=\\\"id_country\\\"]/option[2]\"));country.click();//country\r\n\t\t\r\n\r\n\t\tWebElement phoneMobile = driver.findElement(By.name(\"phone_mobile\"));//mobile number\r\n\t\tphoneMobile.sendKeys(PhoneMobile);\r\n\t\tWebElement submitBtn = driver.findElement(By.xpath(\"//*[@id=\\\"submitAccount\\\"]/span\"));submitBtn.click();//signup button\r\n\t\tThread.sleep(2000);\r\n\t\t\r\n\r\n\r\n\t\t\r\n\t\ttry{\r\n\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"header\\\"]/div[2]/div/div/nav/div[1]/a\"));\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t\tSystem.out.println(\"You're not logged in\");\r\n\t\t}\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"header\\\"]/div[2]/div/div/nav/div[2]/a\")).click();\r\n\t\t\r\n\t\t\r\n\t}", "private void register(String username,String password){\n\n }", "@Test\n public void whenAccountCreationSucceeds() throws Exception {\n Mockito.when(view.getName()).thenReturn(USERNAME);\n Mockito.when(view.getEmail()).thenReturn(VALID_EMAIL);\n Mockito.when(view.getPassword()).thenReturn(VALID_PASSWORD);\n Mockito.when(view.getPasswordConfirmation()).thenReturn(VALID_PASSWORD);\n\n presenter.onCreateAccountClick();\n\n Mockito.verify(view).startProfilePageActivity();\n }", "public void createnewusersubmitbutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Create new user button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"createnewuserbutton\"));\r\n\t\t\tclick(locator_split(\"createnewuserbutton\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- create new user button clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- create new user button is not clicked \"+elementProperties.getProperty(\"createnewuserbutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"createnewuserbutton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "@Test\r\n\t public void isRegisterIfdroped1() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",4);\r\n\t\t \tthis.student.dropClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t \r\n\t }", "@Test\n\tpublic void registerUserTest3() throws Exception {\n\t\tSignUpRequest signUpRequest = new SignUpRequest(\"Marko\", \"Troskot\", \"MTro\", \"marko@gotmail.com\", \"pass123\", \"pass123\");\n\n\t\tMockito.when(userService.existsByUsername(ArgumentMatchers.anyString())).thenReturn(false);\n\t\tMockito.when(userService.existsByEmail(ArgumentMatchers.anyString())).thenReturn(true);\n\n\t\tmockMvc.perform(post(\"/api/auth/signup\").contentType(MediaType.APPLICATION_JSON).content(objectMapper.writeValueAsString(signUpRequest)).characterEncoding(\"UTF-8\"))\n\t\t\t\t.andDo(print()).andExpect(status().is(400)).andExpect(status().reason(emailTaken));\n\t}", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "@Test\r\n\t public void register5() {\n\t\t \tthis.admin.createClass(\"ecs60\",2018,\"sean\",4);\r\n\t\t \tthis.student.registerForClass(\"gurender1\", \"ecs60\", 2018);\r\n\t assertTrue(this.student.isRegisteredFor(\"gurender1\", \"ecs60\", 2018));\r\n\t \r\n\t }", "@Test\n\tpublic void checkValidLoginRegistrator() {\n\t\ttest = report.createTest(\"CheckValidLoginRegistrator\");\n\t\t\n\t\tregistratorhomepage = loginpage.successfullLoginRegistrator(UserContainer.getRegistrator());\n\t\ttest.log(Status.INFO, \"Signed in\");\n\t\t\n\t\tAssert.assertEquals(registratorhomepage.getUserNameText(), UserContainer.getRegistrator().getLogin());\n\t\ttest.log(Status.PASS, \"Checked if the right page is opened.\");\n\t\t\n\t\tloginpage = registratorhomepage.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "@Test\n\tpublic void registerUserTest1() throws Exception {\n\n\t\tmockMvc.perform(post(\"/api/auth/signup\").contentType(MediaType.APPLICATION_JSON).characterEncoding(\"UTF-8\")).andDo(print()).andExpect(status().is(400));\n\n\t}", "public void RegisterClick(View view) {\n Intent intent = new Intent(this, RegisterActivity.class);\n startActivity(intent);\n Toast.makeText(getApplicationContext(), \"Register as a new user\", Toast.LENGTH_SHORT).show();\n }", "public void handleRegister() {\n\t\tmainApp.showRegistrationPage();\n\t}", "@Test(enabled = false, priority = 5)\n\tpublic void newUserRegistrationTest03() {\n\t\tdriver.findElement(By.partialLinkText(\"New User R\")).click();\n\n\t}", "public static WebElement btn_PACatfishBanner_ClickRegister() throws Exception{\r\n \ttry{\r\n \t//\telement = driver.findElement(By.xpath(\"//*[@id='catfishAd']//a[contains(text(),'Subscribe')]\"));\r\n \t\t\r\n \t\t// UI changed on Date 07-Jan-2016\r\n \t\telement = driver.findElement(By.xpath(\"//*[@name='PAemail']//input[@value='Register']\"));\r\n \t\tAdd_Log.info(\"Register button is click on the page.\");\r\n \t\t\r\n \t}catch(Exception e){\r\n \t\tAdd_Log.error(\"Register button is NOT found on the page.\");\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }", "public void onRegisterPressed(View v) {\n String username = ((EditText) findViewById(R.id.usernameNew)).getText().toString();\n String password = ((EditText) findViewById(R.id.passwordNew)).getText().toString();\n String checkPassword = ((EditText) findViewById(R.id.passwordNew2)).getText().toString();\n Register register = new Register(username, password, checkPassword);\n TextView passwordCheck = findViewById(R.id.passwordCheck);\n TextView errorUsername = findViewById(R.id.errorUsername);\n\n if(!register.assertPassword()) {\n passwordCheck.setVisibility(View.VISIBLE);\n } else {\n passwordCheck.setVisibility(View.GONE);\n }\n if (!register.assertUsername()) {\n errorUsername.setVisibility(View.VISIBLE);\n } else {\n errorUsername.setVisibility(View.GONE);\n }\n if(register.assertUsername() && register.assertPassword()) {\n User user = new User(username, password, (UserTypes)userTypeSpinner.getSelectedItem());\n\n Toast.makeText(this, \"Account Added\", Toast.LENGTH_SHORT).show();\n\n Persistence.getInstance().write(User.SAVE_FILE, getApplicationContext(), user);\n\n Intent mainIntent = new Intent(this, MainActivity.class);\n mainIntent.putExtra(\"EXTRA_USER_TYPE\", user.getAccountType());\n startActivity(mainIntent);\n\n finish();\n }\n }", "@Test\n public void testRedButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"ilias\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"redButton4\").requireVisible();\n }", "@Test\n public void testLaunch(){\n View view = mRegisterActivity.findViewById(R.id.register_button);\n assertNotNull(view);\n }", "public void Navigate_to_Registration_Page(){\n\n waitForVisibilityOfElement(RegistrationPageLocator.Registration_Tab_Home_Screen_Link_Text);\n Assert.assertTrue(getRegistrationTab_InHomeScreen().getText().equals(StringUtils.Registration_Tab_Text));\n getRegistrationTab_InHomeScreen().click();\n waitForVisibilityOfElement(RegistrationPageLocator.Registration_Form_Submit_Button);\n\n }", "@Test(groups ={Slingshot,Regression,CsaAgent})\t\n\t\tpublic void verifyPartnerServiceAgentRegisterUser() throws Exception {\n\t\t\tReport.createTestLogHeader(\"PSA Journey\", \"To verify whether the Partner service agent is able to register a Broker through Partner service agent journey\");\n\t\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"PSABroker\");\n\t\t\tCrmUserProfile crmuserProfile = new TestDataHelper().getCrmUserProfile(\"SlingshotCrmDetails\"); \n\t\t\tnew PartnerServiceAgentAction()\n\t\t\t.navigateToPSARegistration()\n\t\t\t.clickRegisteraUser(userProfile);\n\t\t\t/*new SapCrmAction()\n\t\t\t .loginDetails(crmuserProfile)\n\t\t\t .searchByAccountId(crmuserProfile, userProfile);*/\n\t\t\tnew RegistrationAction()\n\t\t\t.openEncryptURL(userProfile)\n\t\t\t.fillRegistrationDetails(userProfile)\n\t\t\t.verifyThankYouPage()\n\t\t\t.clickLoginLink()\n\t\t\t.verifyAuditEntry(userProfile)\n\t\t\t.verifyEmailIdInDb(userProfile);\n\t\t\t}", "public RegisterPage goRegisterPage () {\n return topBar.goRegisterPage();\n }", "private void initSignUpButton() {\n TextButton signUpButton = new TextButton(\"Sign up\", skin);\n signUpButton.setPosition(320, 125);\n signUpButton.addListener(new InputListener() {\n @Override\n public void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n AuthService authService = new AuthService();\n RegistrationResponse response\n = authService.register(usernameField.getText(), passwordField.getText());\n switch (response) {\n case OCCUPIED_NAME:\n usernameTakenDialog();\n break;\n case SHORT_PASSWORD:\n passwordTooShortDialog();\n break;\n case SUCCESS:\n stateManager.setState(new LoginState(stateManager));\n break;\n default:\n }\n }\n\n @Override\n public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n System.out.println(\"pressed sign up\");\n return true;\n }\n });\n stage.addActor(signUpButton);\n }", "public static void createAccount3() {\n\n\n System.setProperty(\"webdriver.chrome.driver\",\"resources/chromedriver.exe\");\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"https://fasttrackit.org/selenium-test/\");\n driver.findElement(By.cssSelector(\"a[href*=\\\"account\\\"] .label\")).click();\n driver.findElement(By.cssSelector(\"a[title=\\\"Register\\\"]\")).click();\n\n driver.findElement(By.cssSelector(\"#middlename\")).sendKeys(\"test\");\n driver.findElement(By.cssSelector(\"#lastname\")).sendKeys(\"chris\");\n driver.findElement(By.cssSelector(\"#email_address\")).sendKeys(\"test12@yahoo.com\");\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"test1212\");\n driver.findElement(By.cssSelector(\"#confirmation\")).sendKeys(\"test1212\");\n driver.findElement(By.cssSelector(\"button[title=\\\"Register\\\"]\")).click();\n\n driver.quit();\n\n\n\n }", "public String createRegisterForm(Register reg)\n {\n DBConnect db = new DBConnect();\n Connection con;\n \n try\n {\n con = (Connection) db.establishConnection();\n String q = \"insert into registerUser (register_name, register_email, register_phone, register_pass)\"\n + \"values (?, ?, ?, ?)\";\n \n PreparedStatement prepareState = con.prepareStatement(q);\n \n prepareState.setString(1, reg.getRegisterName());\n prepareState.setString(2, reg.getRegisterEmail());\n prepareState.setString(3, reg.getRegisterPhone());\n prepareState.setString(4, reg.getRegisterPassword());\n \n prepareState.execute();\n con.close();\n \n return \"Successfully Registered..!!\";\n }\n \n catch(Exception ex)\n {\n System.err.println(\"Exception..!!\");\n System.err.println(\"Message: \" + ex.getMessage());\n \n return \"Data Not Registered..!!\";\n }\n \n }", "private void Register()\n {\n Intent registerIntent = new Intent (LoginActivity.this, RegisterActivity.class);\n startActivity(registerIntent);\n finish();\n }", "@Test\n\tpublic void registerUserTest5() throws Exception {\n\t\tSignUpRequest signUpRequest = new SignUpRequest(\"Marko\", \"Troskot\", \"MTro\", \"marko@gotmail.com\", \"pass123\", \"pass123\");\n\n\t\tMockito.when(userService.existsByUsername(ArgumentMatchers.anyString())).thenReturn(false);\n\t\tMockito.when(userService.existsByEmail(ArgumentMatchers.anyString())).thenReturn(false);\n\t\tMockito.when(roleService.findByType(ArgumentMatchers.any(RoleType.class))).thenReturn(Optional.ofNullable(null));\n\n\t\tmockMvc.perform(post(\"/api/auth/signup\").contentType(MediaType.APPLICATION_JSON).content(objectMapper.writeValueAsString(signUpRequest)).characterEncoding(\"UTF-8\"))\n\t\t\t\t.andDo(print()).andExpect(status().is(500));\n\t}", "@Test\n @InSequence(1)\n public void testRegister(){\n Customer customer = createCustomerInstance(\"Jane Doe\", \"jane@mailinator.com\", \"07744754955\");\n //Customer customer = storeCustomer(customer0);\n Taxi taxi0 = createTaxiInstance(\"JK66AKB\",6);\n Taxi taxi = storeTaxi(taxi0);\n //create a GuestBooking with a future date.\n GuestBooking guestBooking = createGuestBookingInstance(customer, taxi.getId(), futureDate1);\n Response response = guestBookingRestService.createBooking(guestBooking);\n\n assertEquals(\"Unexpected response status\", 201, response.getStatus());\n log.info(\" New booking via GuestBookingService.createBooking was persisted and returned status \" + response.getStatus());\n }", "@Test(alwaysRun=true)\n public void addUser() {\n driver.findElement(By.xpath(\"//ul[contains(@class, 'nav-tabs')]//li[2]\")).click();\n assertThat(driver.getTitle(), equalTo(\"Manage Users - MantisBT\"));\n //Check \"Create New Account\" button\n String nameOfButton = driver.findElement(By.xpath(\"//div[@id='manage-user-div']//a[contains(@class, 'btn')]\")).getText();\n assertThat(\"Create New Account\", equalTo(nameOfButton));\n //Click \"Create New Account\" button\n driver.findElement(By.xpath(\"//div[contains(@class, 'pull-left')]\")).click();\n //Check fields on the \"Create New Account\" view\n List<String> expCategory = Arrays.asList(new String[]{\"Username\",\n \"Real Name\",\n \"E-mail\",\n \"Password\",\n \"Verify Password\",\n \"Access Level\",\n \"Enabled\",\n \"Protected\"});\n List<WebElement> category = driver.findElements(By.className(\"category\"));\n List<String> actCategory = new ArrayList<>();\n for (WebElement categories : category) {\n actCategory.add(categories.getText());\n }\n assertThat(actCategory, equalTo(expCategory));\n //Fill user inforamtion Username: any Real Name: any E-Mail: any Password: any Verify Password: any Access Level: reporter Enabled: true Protected: false\n driver.findElement(By.id(\"user-username\")).sendKeys(\"vova\");\n driver.findElement(By.id(\"user-realname\")).sendKeys(\"vovochka\");\n driver.findElement(By.id(\"email-field\")).sendKeys(\"vova@kkk.ru\");\n driver.findElement(By.id(\"user-password\")).sendKeys(\"vova\");\n driver.findElement(By.id(\"user-verify-password\")).sendKeys(\"vova\");\n //driver.findElement(By.xpath(\"//select[@id='user-access-level']//option[@value='25']\")).click();\n //driver.findElement(By.xpath(\"//input[@id='user-protected']\")).click();\n //Click \"Create User\" button\n driver.findElement(By.xpath(\"//input[@value='Create User']\")).click();\n //Logout\n driver.findElement(By.xpath(\"//span[contains(@class, 'user-info')]\")).click();\n driver.findElement(By.xpath(\"//ul[contains(@class, 'nav')]//i[contains(@class, 'fa-sign-out')]\")).click();\n //Login under created user\n driver.findElement(By.id(\"username\")).sendKeys(\"vova\");\n driver.findElement(By.xpath(\"//input[@type='submit']\")).click();\n driver.findElement(By.xpath(\"//input[@type='password']\")).sendKeys(\"vova\");\n driver.findElement(By.className(\"btn-success\")).click();\n //Assert User name in the right-top side of screen that user is loggined\n String nameOfCreatedUser = driver.findElement(By.className(\"user-info\")).getText();\n assertThat(\"vova\",equalTo(nameOfCreatedUser));\n\n }", "@Test\n public void testUserCanBeRegistered() {\n assert username.length() > 3 && username.length() < 16;\n registerUser(username, password);\n assertNotNull(userService.getUser(username));\n }", "@Test\n public void processRegistration() throws Exception {\n String newUserName = \"goodusername\";\n long numberOfExpectedUsers = userRepository.count() + 1;\n mockMvc.perform(post(RegistrationController.BASE_URL)\n .contentType(MediaType.APPLICATION_FORM_URLENCODED)\n .param(userNameField, newUserName)\n .param(passwordField, samplePasswordValue)\n .param(verifyPasswordField, samplePasswordValue))\n .andExpect(view().name(SearchController.REDIRECT + IndexController.URL_PATH_SEPARATOR))\n .andExpect(status().is3xxRedirection());\n long updatedNumberOfUsers = userRepository.count();\n assertEquals(numberOfExpectedUsers, updatedNumberOfUsers);\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyNewUserDetailsactivation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Super User Overlay Yes Button Selection\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.SuperUserCreation()\n\t\t.SuperUserOverlayyes(); \t \t \t \t \n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tEditText emailText = (EditText)findViewById(R.id.reg_email);\n\t\t\t\tEditText firstNameText = (EditText)findViewById(R.id.reg_first_name);\n\t\t\t\tEditText lastNameText = (EditText)findViewById(R.id.reg_last_name);\n\t\t\t\tEditText userNameText = (EditText)findViewById(R.id.reg_username);\n\t\t\t\tEditText passwordText = (EditText)findViewById(R.id.reg_password);\n\t\t\t\tEditText phoneNumberText = (EditText)findViewById(R.id.reg_phone);\n\t\t\t\t\n\t\t\t\tregister(firstNameText.getText().toString(), lastNameText.getText().toString(), userNameText.getText().toString(), passwordText.getText().toString(), emailText.getText().toString(), phoneNumberText.getText().toString());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@OnClick(R.id.register_button)\n public void register () {\n InputMethodManager imm = (InputMethodManager) context\n .getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromInputMethod(usernameField.getWindowToken(), 0);\n imm.hideSoftInputFromInputMethod(passwordField.getWindowToken(), 0);\n imm.hideSoftInputFromInputMethod(confirmField.getWindowToken(), 0);\n imm.hideSoftInputFromInputMethod(emailField.getWindowToken(), 0);\n\n\n\n\n String username = usernameField.getText().toString();\n String password = passwordField.getText().toString();\n String confirm = confirmField.getText().toString();\n String email = emailField.getText().toString();\n String avatarBase64 = \"string\";\n\n if (username.isEmpty() || password.isEmpty() || confirm.isEmpty() || email.isEmpty()) {\n\n Toast.makeText(context, R.string.field_empty, Toast.LENGTH_LONG).show();\n } else if(!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n\n Toast.makeText(context, R.string.provide_vaild_email, Toast.LENGTH_SHORT).show();\n\n } else if (!password.equals(confirm)) {\n\n Toast.makeText(context, R.string.passwords_dont_match, Toast.LENGTH_SHORT).show();\n } else {\n\n registerButton.setEnabled(false);\n spinner.setVisibility(VISIBLE);\n }\n Account account = new Account(email, username, avatarBase64, password);\n RestClient restClient = new RestClient();\n restClient.getApiService().register(account).enqueue(new Callback<Void>() {\n @Override\n public void onResponse(Call<Void> call, Response<Void> response) {\n\n if (response.isSuccessful()) {\n Toast.makeText(context, R.string.registration_successful, Toast.LENGTH_LONG).show();\n //This will run if everything comes back good and sets the users token and expiration\n// User regUser = response.body();\n// UserStore.getInstance().setToken(regUser.getToken());\n// UserStore.getInstance().setTokenExpiration(regUser.getExpiration());\n\n //This will set up the flow of the application to show the next view upon successful registration\n Flow flow = PeoplemonApplication.getMainFlow();\n flow.goBack();\n } else {\n\n //This will return if the user has entered info but they have registered before\n resetView();\n Toast.makeText(context, R.string.registration_failed + \": \" + response.code(), Toast.LENGTH_LONG).show();\n }\n }\n @Override\n public void onFailure(Call<Void> call, Throwable t) {\n\n //This will show up if the data didn't come back from the server correctly or there is a timeout.\n resetView();\n Toast.makeText(context, R.string.registration_failed, Toast.LENGTH_LONG).show();\n }\n });\n }" ]
[ "0.8094564", "0.7891584", "0.78226376", "0.78160214", "0.7739718", "0.7656094", "0.7650747", "0.7505841", "0.74865115", "0.7449096", "0.7354148", "0.7333182", "0.72982186", "0.7280069", "0.724384", "0.7233077", "0.7231044", "0.72244954", "0.7165103", "0.7145733", "0.71038115", "0.70576054", "0.7009925", "0.6917929", "0.6900351", "0.68846005", "0.68241465", "0.6820937", "0.6772282", "0.6748395", "0.6739854", "0.6729376", "0.6728494", "0.6711212", "0.67094713", "0.669593", "0.6688689", "0.6688429", "0.66843575", "0.6669739", "0.6660549", "0.6660094", "0.66368693", "0.6635528", "0.6629916", "0.660706", "0.65802073", "0.6568491", "0.6567174", "0.6559164", "0.6557153", "0.6555224", "0.65507615", "0.6541584", "0.65406954", "0.65403384", "0.65314764", "0.65206575", "0.6518215", "0.6509946", "0.65076643", "0.64999557", "0.64940745", "0.6492678", "0.64916563", "0.6490099", "0.64873946", "0.64861333", "0.6486076", "0.6472581", "0.6468448", "0.64673156", "0.64636564", "0.64605874", "0.6458995", "0.6451904", "0.64495546", "0.6446847", "0.6440682", "0.64337903", "0.6430634", "0.6428784", "0.64236355", "0.64195913", "0.6416042", "0.64118433", "0.6405648", "0.64037335", "0.6400147", "0.6399397", "0.63964355", "0.6396356", "0.63920265", "0.63916117", "0.6386559", "0.63738674", "0.6370722", "0.63517094", "0.63510746", "0.63455606" ]
0.66295975
45
BDjdbc conexao = new BDjdbc();
public static void main(String args[])throws Exception { String driver = "com.mysql.jdbc.Driver"; Class.forName(driver); String url = "jdbc:mysql://127.0.0.1:3306/doc"; Connection c= DriverManager.getConnection(url, "root", "" ); System.out.println(c.getCatalog()); //conexao.setDataSource(url); //conexao.setConexao(); //conexao.getConexao().setCatalog("sae"); // System.out.println(conexao.getConexao().getCatalog()); // conexao.setDataSource("jdbc:interbase://localhost/"+ // Persistencia.CAMINHO+"Noticia.gdb"); //d:\\IPT-Web\\escola\\ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ConnexionBD() throws ClassNotFoundException, SQLException {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\") ;\n\t\tconnexion = DriverManager.getConnection(dbURL,user,password) ;\n\t}", "public ConnexioBD() {\n try {\n Class.forName(driver);\n connection = DriverManager.getConnection(url, user, password);\n\n\n } catch (ClassNotFoundException | SQLException e) {\n System.out.println(\"Error al connectar amb la base de dades:\" + e);\n }\n }", "public Conexion() throws ClassNotFoundException, SQLException {\n Class.forName(DRIVER);//Cargamos las clases\n conn = DriverManager.getConnection(URL, \"root\", \"\");//Obtenemos la conexion\n System.out.println(\"Conectado a la base de datos\");//Confirmamos que todo salio bien\n }", "public void conectar_bd() throws SQLException, ClassNotFoundException {\n\t\t\n\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\tconn = DriverManager.getConnection(url, user,pass);\n\n\t}", "private void connectDatabase(){\n }", "public static Connection CrearConexion(){\n String clave=\"inacap\";\r\n String usuario=\"inacap\";\r\n String url=\"jdbc:derby://localhost:1527/aereopuerto\";\r\n \r\n //crear conexion a la Base de datos\r\n \r\n try{\r\n Connection conn=DriverManager.getConnection(url,usuario,clave);\r\n return conn;\r\n }\r\n catch(SQLException e){\r\n System.out.println(\"Excepcion de sql:\"+e);\r\n return null;\r\n }\r\n \r\n \r\n }", "public void conexaoL() {\n try {\n System.setProperty(\"jdbc.Drivers\", driver);\n con = DriverManager.getConnection(caminho, usuario, senha);\n //JOptionPane.showMessageDialog(null, \"Conectou\");\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha ao se conectar com banco de Dados:\\n\" + ex);\n new ArquivoLog(\"...Erros 1\"+ex);\n }\n }", "public Connection conectar(){//Con com.mysql.dbc\r\n try { \r\n Class.forName(\"com.mysql.jdbc.Driver\"); //Seleccionamos los packetes de la libreria que se cargo\r\n conect= DriverManager.getConnection(\"jdbc:mysql://localhost/viaje\",\"root\",\"\"); //Si en la vida real va la ip de servidor\r\n //JOptionPane.showMessageDialog(null, \"Se conectó correctamente\");\r\n } catch (Exception ex) {// Recoge todas las exepcipnes\r\n JOptionPane.showMessageDialog(null, \"Sin conexión\");\r\n }\r\n return conect;\r\n }", "void getConnectiondb() throws SQLException, ClassNotFoundException{\n // TODO code application logic here\n \n String user = \"root\";\n String pass = \"test\";\n\n myConn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/aud_jdbms\", user, pass);\n \n\n \n }", "public libroBean() throws SQLException\r\n {\r\n variables = new VariablesConexion();\r\n variables.iniciarConexion();\r\n conexion=variables.getConexion();\r\n \r\n }", "public AdminDAO()\n {\n con = DataBase.getConnection();//crear una conexión al crear un objeto AdminDAO\n }", "private Database() throws SQLException, ClassNotFoundException {\r\n Class.forName(\"org.postgresql.Driver\");\r\n con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/postgres\", \"postgres\", \"kuka\");\r\n }", "public paciente()\n {\n con = new bdconexion(); //instancia la clase bdconexion\n }", "public Connection connect(){\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n System.out.println(\"Berhasil koneksi ke JDBC Driver MySQL\");\n }catch(ClassNotFoundException ex){\n System.out.println(\"Tidak Berhasil Koneksi ke JDBC Driver MySQL\");\n }\n //koneksi ke data base\n try{\n String url=\"jdbc:mysql://localhost:3306/enginemounting\";\n koneksi=DriverManager.getConnection(url,\"root\",\"\");\n System.out.println(\"Berhasil koneksi ke Database\");\n }catch(SQLException e){\n System.out.println(\"Tidak Berhasil Koneksi ke Database\");\n }\n return koneksi;\n}", "public void conectarABD() throws SQLException, Exception\r\n\t{\r\n\t\tString driver = config.getProperty( \"admin.db.driver\" );\r\n\t\tClass.forName( driver ).newInstance();\r\n\r\n\t\tString url = config.getProperty( \"admin.db.url\" );\r\n\t\tconexion = DriverManager.getConnection( url );\r\n\t\tverificarInvariante();\r\n\r\n\t}", "private GestionBD(){\r\n\t\tlineConnection=SingleDBConnection.getConexionBD().conectarBD();\r\n\t}", "private static Connection connect() throws SQLException {\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\t \r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tcon = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"1234\");\r\n\t\t\treturn con;\r\n\t\t\r\n\t\t\t \r\n\t\t }\r\n\t catch (ClassNotFoundException 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\nreturn con;\r\n}", "public DBManager(){\r\n connect(DBConstant.driver,DBConstant.connetionstring);\r\n }", "public AccesoBD(String driver,String url, String user, String password) throws ClassNotFoundException, SQLException {\n //Class.forName(driver);\n conn = DriverManager.getConnection(url,user,password);\n stmt = conn.createStatement();\n }", "public void connectToDB(){\n\ttry {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tconnection=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/patient\",\"root\",\"7417899737\");\n\t} catch (ClassNotFoundException e) {\n\t\t\n\t\te.printStackTrace();\n\t} catch (SQLException e) {\n\t\t\n\t\te.printStackTrace();\n\t}\n\t\n}", "public Connection DbConnection() throws Exception {\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n // Creating a new connection\n // String myDB = \"jdbc:sqlite:C:\\\\Users\\\\kapersky\\\\Documents\\\\NetBeansProjects\\\\Library Management System\\\\src\\\\librarydb.db\";\n String myDB = \"jdbc:mysql://localhost:3306/librarydb\";\n con = DriverManager.getConnection(myDB, \"root\", \"\");\n return con;\n\n }", "public ConnectDB(){\r\n\r\n\t}", "public BeneficiaireDAO() {\n\t\t// chargement du pilote de bases de donn闂佹唶\n\t\t\n\t\ttry {\n\t\t\t Class.forName( \"com.mysql.jdbc.Driver\" );\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(\"Impossible de charger le pilote de BDD, ne pas oublier d'importer le fichier .jar dans le projet\");\n\t\t}\n\n\t}", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "public Connection conexion(){\n try {\r\n Class.forName(\"org.gjt.mm.mysql.Driver\");\r\n conectar=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/poo\",\"root\",\"19931017\");\r\n \r\n } catch (ClassNotFoundException | SQLException e) {\r\n System.out.println(\"Error ┐\"+e);\r\n }\r\n return conectar; \r\n }", "public void conectar() {\r\n try {\r\n Class.forName(driver); //se carga el driver en memoria\r\n conexionDB = DriverManager.getConnection(connectString, user, password);//conexion a la base de datos\r\n System.out.println(\"SE CONECTA\");\r\n sentenciaSQL = conexionDB.createStatement();//variable que permite ejecutar las sentencias SQL \r\n System.out.println(\"SE CREA STATEMENT\");\r\n } catch (ClassNotFoundException | SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public void conectionSql(){\n conection = connectSql.connectDataBase(dataBase);\n }", "public void conectar() throws Exception\r\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n //obtenemos la conexión\r\n connection = DriverManager.getConnection(url,usuario,contraseña);\r\n \r\n if (connection==null){\r\n throw new Exception(\"Problemas con la conexión\");\r\n }\r\n }", "public DbConnection() throws SQLException, ClassNotFoundException {\r\n\t\tClass.forName (DRIVER);\r\n\t\tconn = DriverManager.getConnection(CONNECTION, \"JavaDev\", \"password\");\r\n\t\tstmt = conn.createStatement();\r\n\t}", "public static Connection getConnexion() throws ClassNotFoundException, SQLException{\n\t\tif(connexion == null){\n\t\t\tnew ConnexionBD() ;\n\t\t}\n\t\treturn connexion ;\n\t}", "public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }", "public static Connection con(){\n \n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n con=(Connection)DriverManager.getConnection(\"jdbc:mysql://localhost:3306/nsbm?\",\"root\",\"\");\n // our SQL SELECT query. \n // if you only need a few columns, specify them by name instead of using \"*\"\n \n }catch(ClassNotFoundException | SQLException e){\n }\n return con;\n }", "private DBConnection() \n {\n initConnection();\n }", "public DataHandlerDBMS() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tDBMS = DriverManager.getConnection(url);\n\t\t\tSystem.out.println(\"DBSM inizializzato\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Errore apertura DBMS\");\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Assenza driver mySQL\");\n\t\t}\n\t}", "public StudentDAO() throws SQLException {\n studentConn = DriverManager.getConnection(jdbcURL, jdbcUsername, jdbcPassword);\n }", "@SuppressWarnings(\"unchecked\")\npublic final void initDatabase()throws SQLException {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n con =(Connection) DriverManager.getConnection(\"jdbc:mysql://localhost:3306/yajnab?zeroDateTimeBehavior=convertToNull\",\"root\",\"11\"); \n } \n catch (ClassNotFoundException | SQLException e) {\n }\n }", "private void baueVerbindung() throws SQLException, ClassNotFoundException\n\t{\n\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\tconnec = DriverManager.getConnection(url+datenbank,user,password);\n\t}", "public void conectar() {\n try {\n //Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n Class.forName(\"org.mariadb.jdbc.Driver\"); \n\n //con = DriverManager.getConnection(\"jdbc:mariadb://192.168.194.131:3306/arquitectura\", \"root\", \"duocadmin\"); \n con = DriverManager.getConnection(\"jdbc:mariadb://192.168.194.131:3306/arquitectura\", \"root\", \"duocadmin\");\n state = con.createStatement();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public Connection getConnection() throws ClassNotFoundException, SQLException\n\t{\n\t /* Class.forName(\"org.postgresql.Driver\");*/\n\t\tcon=dataSource.getConnection();\n\t\treturn con;\t\n\t}", "public ConexionDB() {\n\n\t\tconn = null;\n\n\t}", "public Connection OpenConnection() {\n try {\n //obtenemos el driver para SQLSERVER\n Class.forName(driver);\n //obtenemos la conexion\n con = DriverManager.getConnection(url, user, pass);\n if (con != null) {\n System.out.println(\"OK base de datos \" + bd + \" listo\");\n }\n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n }\n return con;\n }", "public DataConnection() {\n\t\ttry {\n\t\t\tString dbClass = \"com.mysql.jdbc.Driver\";\n\t\t\tClass.forName(dbClass).newInstance();\n\t\t\tConnection con = DriverManager.getConnection(DIR_DB, USER_DB, PASS_DB);\n\t\t\tstatement = con.createStatement();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static Connection fetchDBConnection() throws ClassNotFoundException,SQLException\n\t{\n\t//load type IV MySql supplies JDBC driver class, under method area(meta space)\n\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t//get the fix connection to DB\n\t\tString url=\"jdbc:mysql://localhost:3306/acts?useSSl=false\";\n\t\treturn DriverManager.getConnection(url, \"root\", \"manoj1997\");\n\t}", "private static Connection connectToDB() {\n\t\t\tConnection con = null;\n\t\t\ttry {\n\t\t\t\t// Carichiamo un driver di tipo 1 (bridge jdbc-odbc).\n\t\t\t\t//String driver = \"sun.jdbc.odbc.JdbcOdbcDriver\";\n\t\t\t\tClass.forName(DRIVER);\n\t\t\t\t// Creiamo la stringa di connessione.\n\t\t\t\t// Otteniamo una connessione con username e password.\n\t\t\t\tcon = DriverManager.getConnection (URL, USER, PSW);\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn con;\n\t\t}", "public Connection connect(){\n try{\n \n Class.forName(\"org.apache.derby.jdbc.ClientDriver\").newInstance();\n conn = DriverManager.getConnection(dbUrl, name, pass);\n System.out.println(\"connected\");\n }\n catch(Exception e){\n System.out.println(\"connection problem\");\n }\n return conn;\n }", "private Connection database() {\n Connection con = null;\n String db_url = \"jdbc:mysql://localhost:3306/hospitalms\";\n String db_driver = \"com.mysql.jdbc.Driver\";\n String db_username = \"root\";\n String db_password = \"\";\n \n try {\n Class.forName(db_driver);\n con = DriverManager.getConnection(db_url,db_username,db_password);\n } \n catch (SQLException | ClassNotFoundException ex) { JOptionPane.showMessageDialog(null,ex); }\n return con;\n }", "public Connection conectarBD() {\n\t\tConnection con = null;\t\t\n\t\t\n\t\ttry {\n\t\t\tProperties p = new Properties();\n\t\t\tp.load(new FileInputStream(\"config/parametros.txt\"));\n\t\t\tdriver = p.getProperty(\"driver\");\n\t\t\tClass.forName(driver);\n\t\t\t//System.out.println(\"driver: \" + driver);\n\t\t\t\n\t\t\tusername = p.getProperty(\"usuario\");\n\t\t\tpass = p.getProperty(\"password\");\n\t\t\turl = p.getProperty(\"url\");\n\t\t\tbase = p.getProperty(\"bdatos\");\n\t\t\t\n\t\t\tcon = DriverManager.getConnection(url + base, username, pass);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\treturn con;\n\t}", "private void open_db() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\"); \n Con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/projectlaundry\",\"root\",\"\");\n stm = Con.createStatement();\n }\n catch (Exception e){\n JOptionPane.showMessageDialog(null,\"Koneksi gagal\");\n System.out.println(e.getMessage());\n }\n }", "private void apriConnessione() throws SQLException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException {\n\t\tString password, user;\n\t\tDatabaseProps dbConf = config.getDb();\n\n\t\tClass.forName(dbConf.getDriver()).getDeclaredConstructor().newInstance();\n\n\t\tuser = dbConf.getUsername();\n\t\tpassword = dbConf.getPassword();\n\n\t\tString uri = String.format(\"jdbc:%s://%s:%d/%s\", dbConf.getDbms(), dbConf.getHost(), dbConf.getPort(), dbConf.getName());\n\n\t\tconnessioneDB = DriverManager.getConnection(uri, user, password);\n\t}", "public static Connection getConnection() {\n Connection conn = null;\n try {\n Class.forName(\"org.hsqldb.jdbcDriver\");\n //conn = DriverManager.getConnection(\"jdbc:hsqldb:hsql://localhost/bancodb\", \"sa\", \"\");\n conn = DriverManager.getConnection(\"jdbc:hsqldb:hsql://localhost/paciente2db\", \"sa\", \"\");\n } catch (SQLException e) {\n System.out.println(\"Problemas ao conectar no banco de dados\");\n } catch (ClassNotFoundException e) {\n System.out.println(\"O driver não foi configurado corretamente\");\n }\n\n return conn;\n }", "public static Connection createConnection() throws ClassNotFoundException, SQLException {\n\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\tconnection=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:XE\",\"system\",\"bhanu\");\n\t\treturn connection;\n\t}", "public static void abrirConexao() throws SQLException {\n\t\tDriverManager.registerDriver(new FBDriver());\n\t\tobjcon = DriverManager.getConnection(\n\t\t\t\t\"jdbc:firebirdsql:server1b/3050:D:/PROGRAM FILES/FIREBIRD/LTP4/BDPRODUTOS.GDB\", \n\t\t\t\t\"SYSDBA\", \"masterkey\");\n\t}", "public DatabaseConnection newConnection();", "private static void getConnection() throws ClassNotFoundException, SQLException {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/yuechu\", \"root\", \"1\");\n\t}", "public static void initConnection() throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException{\r\n\t\t//create database connection only once\r\n\t\tif(dbCon == null){\t\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tdbCon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/wip?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\",\"root\",\"\");\r\n\t\t}\r\n\t}", "private ConexionBD() {\n\t\testablecerConexion();\n\t}", "public static Connection getConnection() throws Exception{\r\n\t\t\tConnection dbConn = null;\r\n\t try{\r\n\t\tString url = \"jdbc:mysql://localhost:3307/durgadb\";\r\n\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\r\n\t\tdbConn = DriverManager.getConnection(url, \"root\", \"root\");\r\n\t\t}\r\n\t catch (SQLException sqle) {\r\n\t\t sqle.printStackTrace();\r\n\t\t throw sqle;\r\n\t\t}\r\n catch(Exception e) {\r\n\t\t e.printStackTrace();\r\n\t\t throw e;\r\n\t\t}\r\n\treturn dbConn;\r\n\t}", "private Conexao() {\r\n\t\ttry {\r\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:mem:.\", \"sa\", \"\");\r\n\t\t\tnew LoadTables().creatScherma(connection);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Erro ao conectar com o banco: \"+e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public Connection connectToDb() throws Exception\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tString url= \"jdbc:mysql://83.212.122.254:3306/travlos\";\r\n\t\t\tString username=\"travlos\";\r\n\t\t\tString password=\"travlos\";\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"found\");\r\n\t\t\t\r\n\t\t\t\r\n\t\tConnection con=null;\t\r\n\t\t\tcon=DriverManager.getConnection(url, username, password);\r\n\t\t\tStatement statement= con.createStatement();\r\n\t\t\t\r\n\t System.out.println(\"egine syndesh!\");\r\n\t return con;\r\n\t\t\r\n\t\t}\r\n\t\tcatch (SQLException ee)\r\n\t\t{\r\n\t\t\tthrow new RuntimeException(\"cannot connect the database!\", ee);\r\n\t\t}\r\n\t\r\n\t\r\n\t}", "public static Connection initializeDatabase()\n throws SQLException, ClassNotFoundException\n {\n \t\n \tString dbDriver = \"com.mysql.cj.jdbc.Driver\";\n String dbURL = \"jdbc:mysql://localhost:3306/\";\n // Database name, database user and password to access\n String dbName = \"jaltantra_db\";\n String dbUsername = \"root\";\n String dbPassword = \"jaldb@2050\";\n \n Class.forName(dbDriver);\n Connection conn = DriverManager.getConnection(dbURL + dbName ,dbUsername, dbPassword);\n return conn;\n }", "public static void abrirConexao() throws SQLException {\n\t\tDriverManager.registerDriver(new FBDriver());\n\t\tobjcon = DriverManager.getConnection(\n\t\t\t\t\"jdbc:firebirdsql:server1b/3050:D:/PROGRAM FILES/FIREBIRD/LTP4/BDVendas.GDB\", \n\t\t\t\t\"SYSDBA\", \"masterkey\");\n\t}", "public void init(){\n\n stmt = null;\n\n try{\n\n Class.forName(\"com.mysql.jdbc.Driver\");\n myConnection=DriverManager.getConnection(DBUrl,userName,password);\n stmt=myConnection.createStatement();\n }\n catch(ClassNotFoundException | SQLException e){\n System.out.println(\"Failed to get connection\");\n }\n return;\n }", "public static Connection obtener() \n {\n try\n {\n //sentencia de driver que se va a manejar\n Class.forName(\"com.mysql.jdbc.Driver\");\n \n String url = \"jdbc:mysql://127.0.0.1:3306/biblioteca?serverTimezone=\" + TimeZone.getDefault().getID();\n cnx = DriverManager.getConnection(url, \"root\", \"625387\");\n } \n catch (SQLException ex) {\n \n JOptionPane.showMessageDialog(null, \"Se presento error al conectar a la base de datos \"+ex.getMessage());\n } catch (ClassNotFoundException ex) {\n JOptionPane.showMessageDialog(null, \"Se presento error al conectar a la base de datos \"+ex.getMessage());\n }\n return cnx;\n }", "public static Connection conectDB(){\r\n \r\n \r\n try {\r\n Class.forName(\"org.sqlite.JDBC\");\r\n Connection conn = DriverManager.getConnection(\"jdbc:sqlite:Users.sqlite\"); //povezava \r\n System.out.println(\"Povezano z sql\"); // to sm naredu zato da vidim ce dela oz ce se je pravilno connectalo \r\n return conn;\r\n \r\n \r\n \r\n \r\n } catch (Exception e) {\r\n JOptionPane.showMessageDialog(null, e);\r\n return null;\r\n \r\n \r\n }\r\n }", "public GudangDao(Connection con){\r\n this.conn=con;\r\n }", "public PujaDAO() {\n con = null;\n st = null;\n rs = null;\n }", "private Database() throws SQLException {\n con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:MusicAlbums\", \"c##dba\", \"sql\");\n }", "public Conectar() {//creamos un constructor\n conn = null;//iniciamos la variable conn en null\n try {//en caso de error creamos un try/catch\n Class.forName(driver);//carga la clase con el nombre indicado\n conn = (Connection) DriverManager.getConnection(url, user, password);//se le envian los datos\n if (conn != null) {//para saber si se realizo la coneccion\n //JOptionPane.showMessageDialog(null,\"Conexion establecida..\");//genera un cuadro de dialogo con el mensaje establecido\n //System.out.println(\"Conexion establecida..\");//genera un mensaje por consola \n }\n } catch (ClassNotFoundException | SQLException e) {//capturo los errores posibles\n JOptionPane.showMessageDialog(null, \"Error al conectar \" + e);//genera un cuadro de dialogo con el mensaje establecido\n System.out.println(\"Error al conectar \" + e);//genera un mensaje por consola \n\n }\n }", "public static Connection getInstance (){\n\tString url =\"jdbc:informix-sqli://192.168.10.18:4526/teun0020:informixserver=aix2;DB_LOCALE=zh_tw.utf8;CLIENT_LOCALE=zh_tw.utf8;GL_USEGLU=1\";\r\n\tString username = \"srismapp\";\r\n\tString password =\"ris31123\";\r\n\tString driver = \"com.informix.jdbc.IfxDriver\";\t\r\n\tConnection conn=null;\r\n\ttry {\r\n\t Class.forName(driver);\r\n\t conn = DriverManager.getConnection(url, username, password);\r\n\t} catch (SQLException e) {\r\n\t e.printStackTrace();\r\n\t} catch (ClassNotFoundException e) {\r\n\t e.printStackTrace();\r\n\t}\r\n\treturn conn;\r\n }", "public Connection getConnection(){\n Connection conn = null;\n System.out.println(\"connection called\");\n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn=(Connection)DriverManager.getConnection(\"jdbc:mysql://localhost/online_bidding_system\",\"root\",\"\");\n } catch(ClassNotFoundException | SQLException e){\n e.printStackTrace();\n }\n \n return conn;\n }", "@SuppressWarnings(\"finally\")\n\tpublic static Connection createConnection() throws Exception {\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tClass.forName(Constants.dbClass);\n\t\t\tcon = DriverManager.getConnection(Constants.dbUrl, Constants.dbUser,Constants.dbPwd);\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\treturn con;\n\t\t}\n\t}", "public Connection connectdb(){\n Connection con = null;\n try {\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n con = DriverManager.getConnection(url, user, pass);\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(ILocker.class.getName()).log(Level.SEVERE, null, ex);\n }\n return con;\n }", "public Connection abrirOracle(){\r\n \r\n \r\n try{\r\n \r\n DriverManager.registerDriver(new oracle.jdbc.OracleDriver()); //usando el JDBC de oracle\r\n con=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:orcl\",\"system\",\"system\");//consiguiendo una conexion en el localhost\r\n ts=con.createStatement(rs.TYPE_SCROLL_INSENSITIVE,rs.CONCUR_UPDATABLE);\r\n System.out.println(\"La conexion se realizon con exito\");//mensaje de demostraciòn de una conexiòn existosa\r\n \r\n \r\n }catch(Exception e){\r\n System.out.println(\"error de conexion: \"+e.toString());\r\n }\r\n return con;\r\n }", "public Statement connection() throws SQLException {\n\t\tjava.sql.Connection conn = null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost/leboncoin?user=root&password=\");\r\n\t\t\tConnexionDao.statement = conn.createStatement();\r\n\r\n\t\t} catch (ClassNotFoundException e) {\r\n\r\n\t\t\tSystem.out.println(\"Connextion avec la base de données impossible\");\r\n\t\t}\r\n\t\treturn ConnexionDao.statement;\r\n\t}", "public void initConnection() throws DatabaseConnectionException, SQLException {\n\t\t\tString connectionString = DBMS+\"://\" + SERVER + \":\" + PORT + \"/\" + DATABASE;\n\t\t\ttry{\n\t\t\t\tClass.forName(DRIVER_CLASS_NAME).newInstance();\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.err.println(\"IMPOSSIBILE TROVARE DRIVER\");\n\t\t\t\n\t\t\t}\n\t\t\ttry{\n\t\t\t\tconn=DriverManager.getConnection(connectionString, USER_ID, PASSWORD);\n\t\t\t\t\n\t\t\t}catch(SQLException e){\n\t\t\t\tSystem.err.println(\"IMPOSSIBILE STABILIRE CONNESSIONE DATABASE\");\n\t\t\t\t\n\t\t\t}\n\t\t}", "public DBConnection()\n {\n\n }", "public DatabaseManager() {\n try {\n con = DriverManager.getConnection(DB_URL, \"root\", \"marko\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public DaoConnection() {\n\t\t\n\t}", "public void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Connection\");\n //characterEncoding=latin1&\n //Class.forName(\"org.apache.derby.jdbc.EmbeddedDriver\");\n //Connection conn = new Connection();\n url += \"?characterEncoding=latin1&useConfigs=maxPerformance&useSSL=false\";\n conn = DriverManager.getConnection(url, userName, password);\n if (conn != null) {\n System.out.println(\"Established connection to \"+url+\" Database\");\n }\n }\n catch(SQLException e) {\n throw new IllegalStateException(\"Cannot connect the database \"+url, e);\n }\n catch(ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n }", "public Connection getConnection() throws ClassNotFoundException, SQLException {\n logger.info(\"Create DB connection\");\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n return DriverManager.getConnection(\n \"jdbc:mysql://localhost:3306/prod\",\"root\",\"rootroot\");\n }", "public void createCon(){\n\t\ttry {\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\t\tcon=DriverManager.getConnection(\"jdbc:oracle:thin:@172.26.132.40:1521:ORCLILP\", \"a63d\", \"a63d\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\n\t\t\te.printStackTrace();\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\n\n\t}", "private void setupDB(){\n try {\n Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n String url = \"jdbc:oracle:thin:@localhost:1521:orcl\";\n String username = \"sys as sysdba\"; //Provide username for your database\n String password = \"oracle\"; //provide password for your database\n\n con = DriverManager.getConnection(url, username, password);\n }\n catch(Exception e){\n System.out.println(e);\n }\n }", "DBConnect() {\n \n }", "private Connection openConnection() throws SQLException, ClassNotFoundException {\n DriverManager.registerDriver(new oracle.jdbc.OracleDriver());\n\n String host = \"localhost\";\n String port = \"1521\";\n String dbName = \"xe\"; //\"coen280\";\n String userName = \"temp\";\n String password = \"temp\";\n\n // Construct the JDBC URL \n String dbURL = \"jdbc:oracle:thin:@\" + host + \":\" + port + \":\" + dbName;\n return DriverManager.getConnection(dbURL, userName, password);\n }", "public void establecerConexion() {\n\n\t\ttry {\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"conexion de driver no establecida\");\n\t\t}\n\n\t\ttry {\n\n\t\t\tconexion = DriverManager.getConnection(\"jdbc:sqlite:\" + nombreBD);\n\t\t\tstmt = conexion.createStatement();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"problema con conexion\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void connectToDB() throws Exception\n\t{\n\t\tcloseConnection();\n\t\t\n\t\tcon = Env.getConnectionBradawl();\n\t}", "public DBConn(){\n\t\t//Create a variable for the connection string.\n\t\tthis.connectionUrl = \"jdbc:sqlserver://localhost:1433;\" +\n\t\t \"databaseName=CSE132B; username=sa; password=cse132b\";\t\t//Daniel: integratedSecurity=true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Kalvin: username=sa; password=cse132b\n\n\t\t// Declare the JDBC objects.\n\t\tthis.conn = null;\n\t\tthis.stmt = null;\n\t\tthis.rs = null;\n\t}", "public Connection getConnection() throws SQLException, ClassNotFoundException{\n\t\t\t Class.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t System.out.println(\"MySQL JDBC Driver Registered\");\n\t\t\t return connection = DriverManager.getConnection(\"jdbc:mysql://www.papademas.net:3306/510labs?\", \"db510\",\"510\");\n\t}", "public void createConnection()\n\t{\n\t\ttry\n {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n // Get a connection\n conn = DriverManager.getConnection(dbURL, \"root\", \"root\"); \n System.out.println(\"Connected...\");\n }\n catch (Exception except)\n {\n except.printStackTrace();\n }\n\t}", "private Connection getConnection() throws SQLException, Exception {\r\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\r\n\t\t\t\r\n\t\t\tString sURL = URL + DB_NAME;\r\n\t\t\tcon = DriverManager.getConnection(sURL, USUARIO, PASSWORD);\r\n\t\t\t\r\n\t\t\treturn con;\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}", "public Login() throws SQLException, ClassNotFoundException {\n DriverManager.registerDriver(new com.mysql.jdbc.Driver());\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = DriverManager.getConnection(\"jdbc:mysql://localhost/adminDB\", \"root\", \"\");\n }", "private void ucitajDrajver()throws Exception{\r\n db.loadDriver();\r\n }", "public AddressBookDB() throws SQLException, ClassNotFoundException{ }", "public Connection connectDB (){\n try{\n Class.forName(\"org.sqlite.JDBC\");\n Connection conn = DriverManager.getConnection(\"jdbc:sqlite:awesomexDB.db\");\n //System.out.println(\"connection estd...\");\n return conn;\n } catch(Exception e){\n System.out.println(\"unable to connect\");\n return null;\n }\n }", "public DataBase(String jdbc,String type,String link,String port,String db,String username, String password) throws SQLException{\r\n\t\tcon = null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"org.postgresql.Driver\");\r\n\t\t\tcon = DriverManager.getConnection(jdbc+\":\"+type+\"://\"+link+\":\"+port+\"/\"+db,username, password);\r\n\t\t\tcon.setAutoCommit(false);\r\n\t\t\tSystem.out.println(\"Opened database successfully\");\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}", "private void makeSQLConn() {\n\t\ttry {\n\t\t\tmyDB = new MySQLAccess();\n\t\t} catch (Exception e) { e.printStackTrace(); }\n\t}", "private Connection connect() {\n\t String url = \"jdbc:sqlite:\" + this.db;\r\n\t Connection conn = null;\r\n\t try {\r\n\t \t// Incercam conexiunea la baza de date\r\n\t conn = DriverManager.getConnection(url);\r\n\t } catch (SQLException e) {\r\n\t System.out.println(e.getMessage());\r\n\t }\r\n\t return conn; // returnam conexiunea, daca aceasta s-a facut fara erori\r\n\t }", "public MyGameDatabaseHandler() throws SQLException, ClassNotFoundException{\n Class.forName(DRIVER);\n con = DriverManager.getConnection(DATABASE_URL);\n connected = true;\n }", "public Connection createConnection(){\n Connection conn = null;\n registerDriver();\n createURL();\n\n try {\n conn = DriverManager.getConnection(urlDB,username,password);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n System.out.println((conn != null)?\"You made it, take control your database now!\":\"Failed to make connection!\");\n\n return conn;\n}", "public Connection getConnection()\r\n {\r\n this.cn = null;\r\n \r\n try\r\n {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n this.cn = DriverManager.getConnection(\"jdbc:mysql://localhost/surtiplas\", \"root\", \"12345\");\r\n }\r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n return cn; \r\n }", "public Connection connectToDB() throws SQLException {\n\n\t if (conn == null) try {\n\n\t Class.forName(DRIVERCLASS);\n\t \n\t //system.out.println(\"驱动加载成功\");\n\t \n\t //system.out.println(\"数据库连接建立成功\");\n\t \n\t conn = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n\n\t connset.add(conn);\n\n\t } \n\n\t catch (ClassNotFoundException ex) {\n\t \t\n\t //system.out.println(\"加载数据库驱动程序异常\");\n\t \n\t ex.printStackTrace();\n\n\t }\n\n\t return conn;\n\n\t }" ]
[ "0.7880311", "0.77105", "0.74616426", "0.743364", "0.7343", "0.73012906", "0.7298078", "0.72458464", "0.72429067", "0.7238808", "0.72366446", "0.7227407", "0.71940476", "0.7184262", "0.71738905", "0.7128465", "0.7107622", "0.7099199", "0.70886886", "0.7081358", "0.707747", "0.7077233", "0.7068693", "0.70601624", "0.7036373", "0.7029687", "0.7025696", "0.7023446", "0.69958997", "0.69902074", "0.6983319", "0.69625837", "0.6943633", "0.6942149", "0.6941379", "0.6939205", "0.6934655", "0.6932903", "0.6926036", "0.6923535", "0.69140214", "0.6910966", "0.69088215", "0.68906933", "0.68892324", "0.68842846", "0.6876787", "0.68713164", "0.68636185", "0.68613917", "0.6849516", "0.68206716", "0.6817698", "0.68144643", "0.6813416", "0.68030006", "0.6800099", "0.67945844", "0.6793055", "0.67825323", "0.6766736", "0.6762441", "0.6761464", "0.6750107", "0.67430496", "0.6742422", "0.67292386", "0.67273676", "0.6727146", "0.6722152", "0.67210966", "0.671347", "0.67062074", "0.67054164", "0.66988784", "0.6686989", "0.66857535", "0.66857255", "0.6679103", "0.6678529", "0.6677777", "0.6677462", "0.6676681", "0.66746503", "0.6668899", "0.66687316", "0.66639197", "0.6661144", "0.66600287", "0.664875", "0.6647588", "0.6645666", "0.6643573", "0.6626905", "0.6626253", "0.6625076", "0.66246706", "0.66204286", "0.66196555", "0.6619111", "0.66173506" ]
0.0
-1
TODO Autogenerated method stub
@Override public int compareTo(MatchAllo o) { return this.allo - o.getAllo(); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Define All The Sprites
private static Sprite makeHuman() { Sprite torso = new RectangleSprite(0, 0, 200, 350, 20.0F, false, "torso"); Sprite head = new RectangleSprite(0, 0, 150, 200, 200.0F, true, "head"); Sprite leftUpperLeg = new RectangleSprite(0, 0, 50, 225, 20.0F, true, "leftupperleg"); Sprite rightUpperLeg = new RectangleSprite(0, 0, 50, 225, 20.0F, true, "rightupperleg"); Sprite leftLowerLeg = new RectangleSprite(0, 0, 50, 200, 20.0F, true, "leftlowerleg"); Sprite rightLowerLeg = new RectangleSprite(0, 0, 50, 200, 20.0F, true, "rightlowerleg"); Sprite leftFoot = new RectangleSprite(0, 0, 80, 35, 20.0F, true, "leftfoot"); Sprite rightFoot = new RectangleSprite(0, 0, 80, 35, 20.0F, true, "rightfoot"); Sprite leftUpperArm = new RectangleSprite(0,0, 200, 50, 20.0F, true,"leftupperarm"); Sprite rightUpperArm = new RectangleSprite(0,0, 200, 50, 20.0F, true,"rightupperarm"); Sprite leftLowerArm = new RectangleSprite(0,0, 175, 50, 20.0F, true,"leftlowerarm"); Sprite rightLowerArm = new RectangleSprite(0,0, 175, 50, 20.0F, true,"rightlowerarm"); Sprite leftHand = new RectangleSprite(0, 0, 50, 50, 20.0F, true, "lefthand");; Sprite rightHand = new RectangleSprite(0, 0, 50, 50, 20.0F, true, "righthand");; // Translate Torso Matrix torsoMatrix = new Matrix(); torsoMatrix.postTranslate(700, 500); torso.transform(torsoMatrix); // Translate Head Matrix headMatrix = new Matrix(); headMatrix.postTranslate(30, -200); head.transform(headMatrix); // Translate Left hand Matrix leftHandMatrix = new Matrix(); leftHandMatrix.postTranslate(-50, 0); leftHand.transform(leftHandMatrix); // Translate Right hand Matrix rightHandMatrix = new Matrix(); rightHandMatrix.postTranslate(175, 0); rightHand.transform(rightHandMatrix); // Translate Left Upper Arm Matrix leftUpperArmMatrix = new Matrix(); leftUpperArmMatrix.postTranslate(-200, 0); leftUpperArm.transform(leftUpperArmMatrix); // Translate Right Upper Arm Matrix rightUpperArmMatrix = new Matrix(); rightUpperArmMatrix.postTranslate(200, 0); rightUpperArm.transform(rightUpperArmMatrix); // Translate Left Lower Arm Matrix leftLowerArmMatrix = new Matrix(); leftLowerArmMatrix.postTranslate(-175, 0); leftLowerArm.transform(leftLowerArmMatrix); // Translate Right Lower Arm Matrix rightLowerArmMatrix = new Matrix(); rightLowerArmMatrix.postTranslate(200, 0); rightLowerArm.transform(rightLowerArmMatrix); // Translate Left Upper Leg Matrix leftUpperLegMatrix = new Matrix(); leftUpperLegMatrix.postTranslate(10, 350); leftUpperLeg.transform(leftUpperLegMatrix); // Translate Right Upper Leg Matrix rightUpperLegMatrix = new Matrix(); rightUpperLegMatrix.postTranslate(140, 350); rightUpperLeg.transform(rightUpperLegMatrix); // Translate Left Lower Leg Matrix leftLowerLegMatrix = new Matrix(); leftLowerLegMatrix.postTranslate(0, 225); leftLowerLeg.transform(leftLowerLegMatrix); // Translate Right Lower Leg Matrix rightLowerLegMatrix = new Matrix(); rightLowerLegMatrix.postTranslate(0, 225); rightLowerLeg.transform(rightLowerLegMatrix); // Translate Left Foot Matrix leftFootMatrix = new Matrix(); leftFootMatrix.postTranslate(-50, 190); leftFoot.transform(leftFootMatrix); // Translate Right Foot Matrix rightFootMatrix = new Matrix(); rightFootMatrix.postTranslate(20, 190); rightFoot.transform(rightFootMatrix); // Set Min/Max Rotation for all body parts head.max_degree = 50; head.min_degree = -50; leftUpperLeg.min_degree = -90; leftUpperLeg.max_degree = 90; rightUpperLeg.min_degree = -90; rightUpperLeg.max_degree = 90; leftLowerLeg.min_degree = -90; leftLowerLeg.max_degree = 90; rightLowerLeg.min_degree = -90; rightLowerLeg.max_degree = 90; leftFoot.min_degree = -35; leftFoot.max_degree = 35; rightFoot.max_degree = 35; rightFoot.min_degree = -35; leftLowerArm.min_degree = -135; leftLowerArm.max_degree = 135; rightLowerArm.min_degree = -135; rightLowerArm.max_degree = 135; leftHand.min_degree = -35; leftHand.max_degree = 35; rightHand.min_degree = -35; rightHand.max_degree = 35; //leftUpperArm.min_degree = -360; //leftUpperArm.max_degree = 360; // Define Torso's children torso.addChild(head); torso.addChild(leftUpperArm); torso.addChild(rightUpperArm); torso.addChild(leftUpperLeg); torso.addChild(rightUpperLeg); // Define Upper Arm Children leftUpperArm.addChild(leftLowerArm); rightUpperArm.addChild(rightLowerArm); // Define hand Relationship leftLowerArm.addChild(leftHand); rightLowerArm.addChild(rightHand); // Define Upper Leg Children leftUpperLeg.addChild(leftLowerLeg); rightUpperLeg.addChild(rightLowerLeg); leftLowerLeg.addChild(leftFoot); rightLowerLeg.addChild(rightFoot); return torso; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ini_Sprites()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_Sprites\");\r\n\t\tResourceCache.LoadSprites(false);\r\n\t}", "private static void loadSprites(){\n \t\tshipSprites.put(\"SCOUT_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/scout.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"HUNTER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/hunter.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"DESTROYER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/destroyer.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"COLONIZER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/colonizer.png\"), 0.5f, 0.5f));\n \t\t\n \t\t/*\n \t\t * Ships Red Player\n \t\t */\n \t\tshipSprites.put(\"SCOUT_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/scout.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"HUNTER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/hunter.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"DESTROYER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/destroyer.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"COLONIZER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/colonizer.png\"), 0.5f, 0.5f));\n \n \t\t/*\n \t\t * Path Arrows\n \t\t */\n\t\tpathTextures.put(\"HEAD\", Toolkit.getDefaultToolkit().getImage(\"res/path/head.png\"));\n\t\tpathTextures.put(\"START\", Toolkit.getDefaultToolkit().getImage(\"res/path/start.png\"));\n\t\tpathTextures.put(\"STRAIGHT\", Toolkit.getDefaultToolkit().getImage(\"res/path/straight.png\"));\n\t\tpathTextures.put(\"TURN\", Toolkit.getDefaultToolkit().getImage(\"res/path/turn.png\"));\n \t\t\n \t\t/*\n \t\t * Planets\n \t\t */\n \t\tmetalplanets.put(0, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_0.png\"), 0.5f, 0));\n \t\tmetalplanets.put(1, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_1.png\"), 0.5f, 0));\n \t\tmetalplanets.put(2, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_2.png\"), 0.5f, 0));\n \t\tmetalplanets.put(3, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_3.png\"), 0.5f, 0));\n \t\tgasplanets.put(0, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_0.png\"), 0.5f, 0));\n \t\tgasplanets.put(1, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_1.png\"), 0.5f, 0));\n \t\tgasplanets.put(2, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_2.png\"), 0.5f, 0));\n \t\t\n \t\t/*\n \t\t * Colony Sprite\n \t\t */\n \t\tloadColonySprites(Color.RED, \"RED\");\n \t\tloadColonySprites(Color.BLUE, \"BLUE\");\n \t}", "private void buildSprites() {\n\t\tSpriteRotatable sprite = new SpriteRotatable(new Vec2f(0, 0), 1);\n\t\tsprite.setCentered(true);\n\t\tspriteManager.addSprite(sprite, \"avenger.png\");\n\t\tsprite.setVisible(true);\n\t\ttarget = new SpriteRotatable(new Vec2f(2, 2), 1);\n\t\ttarget.setCentered(true);\n\t\tspriteManager.addSprite(target, \"fighter.png\");\n\t\ttarget.setVisible(true);\n\n\t}", "private void loadSpritesheet() {\n\t\tobjects = new SpriteSheet(\"res\\\\pong.png\");\n\t\tobjects_hires = new SpriteSheet(\"res\\\\ponghires.png\",\n\t\t\t\tSpriteSheet.LINEAR);\n\t}", "abstract public void loadSprite();", "public static void load(){\r\n\t \ttry {\r\n\t \t\t// load and set all sprites\r\n\t\t\t\tsetBlueGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/blueGarbage.png\")));\r\n\t\t\t\tsetRank(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/rank.png\")));\r\n\t\t\t\tsetRedGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/redGarbage.png\")));\r\n\t\t\t\tsetYellowGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowGarbage.png\")));\r\n\t\t\t\tsetGreenGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/greenGarbage.png\")));\r\n\t\t\t\tsetBlueSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/blueSnakeBodyPart.png\")));\r\n\t\t\t\tsetRedSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/redSnakeBodyPart.png\")));\r\n\t\t\t\tsetYellowSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowSnakeBodyPart.png\")));\r\n\t\t\t\tsetGreenSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/greenSnakeBodyPart.png\")));\r\n\t\t\t\tsetHeart(ImageIO.read(classPath.getResourceAsStream(\"/images/heart.png\")));\r\n\t\t\t\tsetGameScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenBackground.png\")));\r\n\t\t\t\tsetGameScreenHeader(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenHeader.png\")));\r\n\t\t\t\tsetGameOver(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameOver.png\")));\r\n\t\t\t\tsetHitsOwnBody(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsOwnBody.png\")));\r\n\t\t\t\tsetHitsWall(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsWall.png\")));\r\n\t\t\t\tsetWrongColor(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/wrongColor.png\")));\r\n\t\t\t\tsetHelpScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpScreenBackground.png\")));\r\n\t\t\t \tsetWarningScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/warningScreenBackground.png\")));\r\n\t\t\t \tsetOkButton(ImageIO.read(classPath.getClass().getResource(\"/images/okButton.png\")));\r\n\t\t\t \tsetMenuScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/menuScreenBackground.png\")));\r\n\t\t\t\tsetStartButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/startButton.png\")));\r\n\t\t\t\tsetExitButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/exitButton.png\")));\r\n\t\t\t\tsetHelpButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpButton.png\")));\r\n\t\t\t\t\r\n\t \t} \r\n\t \tcatch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getStackTrace(), \"Erro ao carregar imagens\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\r\n\t\t\t}\t\r\n \t\r\n \t}", "private void initSprites(){\r\n try\r\n {\r\n spriteSheet = ImageIO.read (spriteSheetFile);\r\n }\r\n catch (IOException e)\r\n {\r\n System.out.println(\"SPRITE spritesheet not found\");\r\n } \r\n try\r\n {\r\n iconSheet=ImageIO.read(playerIconFile);\r\n }\r\n catch (IOException e)\r\n {\r\n System.out.println(\"PLAYERICON spritesheet not found\");\r\n } \r\n\r\n // saves images to array\r\n for(int i=0;i<3;i++){\r\n bomb[i]=new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB); \r\n bomb[i]=spriteSheet.getSubimage(i*32,6,32,32);\r\n }\r\n for(int i=0;i<4;i++){\r\n icons[i] = new BufferedImage(30,30,BufferedImage.TYPE_INT_ARGB);\r\n icons[i] = iconSheet.getSubimage(0, 31*i, 30, 30);\r\n }\r\n }", "private void initSubSprites() {\n\n subSprites = new Hashtable<>();\n\n for (BrushType cT : BrushType.values()) {\n\n int x = cT.subSpr.x;\n int y = cT.subSpr.y;\n\n BufferedImage sprite = spriteSheet.getSubimage(x, y, 8, 8);\n\n subSprites.put(cT, sprite);\n }\n }", "public static void load() {\n\t\tspritesheet = new Spritesheet(\"src/de/kaffeeliebhaber/assets/pyxel/voland_spritesheet_new.png\", 32, 32);\n\t\tspritesheet.load();\n\t\t\n\t\t// load player\n\t\tAssetsLoader.loadPlayerAssets();\n\t\t\n\t\t// load crate\n\t\tAssetsLoader.loadCrates();\n\t\t\n\t\t// load item spritesheet \n\t\tspritesheetInventory = new Spritesheet(Config.ITEM_SPRITESHEET, Config.ITEM_SIZE, Config.ITEM_SIZE);\n\t\tspritesheetInventory.load();\n\t\t\n\t\t// load font \n\t\tloadFonts();\n\t\t\n\t\t// ui\n\t\timageUI = ImageLoader.loadImage(\"src/de/kaffeeliebhaber/assets/ui/ui.png\");\n\t\t\n\t\tAssetsLoader.loadInfoPaneAssets();\n\t\t\n\t\t// npc\n\t\tspritesheetNPC = new Spritesheet(\"src/de/kaffeeliebhaber/assets/AH_SpriteSheet_People1.png\", 16, 16);\n\t\tspritesheetNPC.load();\n\t\t\n\t\t// fox\n\t\tspritesheetNPCFox = new Spritesheet(\"src/de/kaffeeliebhaber/assets/imgs/72c68863962b7a6b5a9f5f5bcc5afb16.png\", 32, 32);\n\t\tspritesheetNPCFox.load();\n\n\t\t// *** LOAD NPCs\n\t\tAssetsLoader.loadFoxAssets();\n\t\t\n\t\tAssetsLoader.loadNPCs();\n\t\t\n\t\tspritesheetFemale = new Spritesheet(\"src/de/kaffeeliebhaber/assets/imgs/Female 01-1.png\", 32, 32);\n\t\tspritesheetFemale.load();\n\t}", "private static void initResources() {\n\t\tString[] res = new String[4];\r\n\t\tres[0] = \"res/entity/spaceshipv1.png\";\r\n\t\tres[1] = \"res/entity/prob.png\";\r\n\t\tres[2] = \"res/dot.png\";\r\n\t\tres[3] = \"res/entity/spaceshipv2.png\";\r\n\t\tSResLoader.addSpriteArray(res);\r\n\t}", "public void removeSprites(){\r\n\r\n\t}", "public void resetSprites() {\n\t\tSPRITE_LIST.clear();\n\t}", "public void updateSprites() {\n this.model.getSprites().values().forEach(x -> x.setPosition(this.x, this.y));\n }", "private void loadSprites() throws IOException {\n \t\tsprites.put(\"fullBin\", ImageIO.read(new File(\"user-trash-full64.png\")));\n \t\tsprites.put(\"emptyBin\", ImageIO.read(new File(\"user-trash64.png\")));\n \t\tsprites.put(\"sysfileLarge\", ImageIO.read(new File(\"sysfile1-48.png\")));\n \t\tsprites.put(\"sysfileMedium\", ImageIO.read(new File(\"sysfile2-32.png\")));\n \t\tsprites.put(\"sysfileSmall\", ImageIO.read(new File(\"sysfile3-16.png\")));\n \t\tsprites.put(\"junk\", ImageIO.read(new File(\"junk.png\")));\n \t\tsprites.put(\"grass\", ImageIO.read(new File(\"grass.jpg\")));\n \t}", "private void initTextures() {\n\n\t\ttextureManager.loadTexture(\"PNG\", \"menu_bg\", \"res/menu_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"mountain_bg\", \"res/mountain_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"ball\", \"res/ball_sm.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"inner_bg1\", \"res/inner_bg1.png\");\r\n\t\ttextureManager.loadSheet(\"stand_still\", \"res/stand_still.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"testAnim\", \"res/testAnim.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"tileSet\", \"res/tileset_small.png\", 32, 32);\n\t\ttextureManager.loadSheet(\"walking\", \"res/walking.png\", 32, 64);\r\n\t\ttextureManager.loadSheet(\"jumping\", \"res/jumping.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"slime_still\", \"res/slime_still_small.png\", 32, 32);\n\t}", "public void act() \n {\n setImage(\"1up.png\");\n setImage(\"acrate.png\");\n setImage(\"Betacactus.png\");\n setImage(\"bullet1.png\");\n setImage(\"bullet2.png\");\n setImage(\"burst.png\");\n setImage(\"cowboy.png\");\n setImage(\"fOxen1.png\");\n setImage(\"fOxen2.png\");\n setImage(\"fOxen3.png\");\n setImage(\"fOxen4.png\");\n setImage(\"fOxenH.png\");\n setImage(\"fWagon1.png\");\n setImage(\"fWagon2.png\");\n setImage(\"fWagon3.png\");\n setImage(\"fWagon4.png\");\n setImage(\"fWagonH.png\");\n setImage(\"health.png\");\n setImage(\"indian.png\");\n setImage(\"normal.png\");\n setImage(\"oxen.png\");\n setImage(\"oxen2.png\");\n setImage(\"oxen3.png\");\n setImage(\"oxen4.png\");\n setImage(\"oxen-hit.png\");\n setImage(\"plasma.png\");\n setImage(\"rapid.png\");\n setImage(\"snake1.png\");\n setImage(\"snake2.png\");\n setImage(\"snake3.png\");\n setImage(\"snake4.png\");\n setImage(\"spread.png\");\n setImage(\"theif.png\");\n setImage(\"train1.png\");\n setImage(\"train-hit.png\");\n setImage(\"wagon.png\");\n setImage(\"wagonhit.png\");\n setImage(\"wave.png\");\n getWorld().removeObject(this);\n }", "@Override\r\n\tpublic void createSprites(World world) {\r\n \t// the height of the map since 0,0 in Tiled is in the top left\r\n // compared to the TiledMap's 0,0 in the bottom left\r\n int height = 2400;\r\n\r\n // file locations of different trees\r\n TextureAtlas atlas = new TextureAtlas(\"Game Tilesets/Trees/Trees.pack\");\r\n Skin skin = new Skin();\r\n skin.addRegions(atlas);\r\n TextureRegion T2 = skin.getRegion(\"T2\");\r\n TextureRegion T3 = skin.getRegion(\"T3\");\r\n TextureRegion T7 = skin.getRegion(\"T7\");\r\n TextureRegion T9 = skin.getRegion(\"T9\");\r\n TextureRegion T10 = skin.getRegion(\"T10\");\r\n \r\n // add all of the trees\r\n \tthis.addSprite(new ObjectSprites(T2, 236, height - 1490));\r\n \r\n this.addSprite(new ObjectSprites(T9, 622, height - 1907));\r\n this.addSprite(new ObjectSprites(T9, 683, height - 1687));\r\n this.addSprite(new ObjectSprites(T9, 174, height - 1851));\r\n this.addSprite(new ObjectSprites(T9, 361, height - 1643));\r\n \r\n this.addSprite(new ObjectSprites(T10, 572, height - 1354));\r\n this.addSprite(new ObjectSprites(T10, 0, height - 1475));\r\n this.addSprite(new ObjectSprites(T10, -9, height - 1707));\r\n this.addSprite(new ObjectSprites(T10, 675, height - 1479));\r\n this.addSprite(new ObjectSprites(T10, 416, height - 1903));\r\n\r\n this.addSprite(new ObjectSprites(T3, 428, height - 1453));\r\n this.addSprite(new ObjectSprites(T3, 596, height - 1122));\r\n this.addSprite(new ObjectSprites(T3, -32, height - 988));\r\n this.addSprite(new ObjectSprites(T3, 476, height - 864));\r\n this.addSprite(new ObjectSprites(T3, 640, height - 725));\r\n this.addSprite(new ObjectSprites(T3, 424, height - 2123));\r\n \r\n this.addSprite(new ObjectSprites(T7, 145, height - 1347));\r\n this.addSprite(new ObjectSprites(T7, 83, height - 1935));\r\n this.addSprite(new ObjectSprites(T7, 585, height - 2031));\r\n this.addSprite(new ObjectSprites(T7, 290, height - 2304));\r\n \r\n Bandit b1 = new Bandit();\r\n b1.defineBody(world, 215, 1305);\r\n super.addSprite(b1);\r\n \r\n Bandit b2 = new Bandit();\r\n b2.defineBody(world, 60, 1445);\r\n super.addSprite(b2);\r\n \r\n Bandit b3 = new Bandit();\r\n b3.defineBody(world, 90, 1640);\r\n super.addSprite(b3);\r\n \r\n Bandit b4 = new Bandit();\r\n b4.defineBody(world, 530, 1740);\r\n super.addSprite(b4);\r\n \r\n Bandit b5 = new Bandit();\r\n b5.defineBody(world, 730, 1655);\r\n super.addSprite(b5);\r\n \r\n Bandit b6 = new Bandit();\r\n b6.defineBody(world, 90, 2235);\r\n super.addSprite(b6);\r\n \r\n Bandit b7 = new Bandit();\r\n b7.defineBody(world, 715, 1490);\r\n super.addSprite(b7);\r\n \r\n Bandit b8 = new Bandit();\r\n b8.defineBody(world, 318, 1605);\r\n super.addSprite(b8);\r\n }", "@Override\n\tpublic void loadUnits() {\n\t\tsprites.put(\"axeman\", RES.getSprite(\"axeman\"));\n\t\tsprites.put(\"warg\", RES.getSprite(\"warg_right\"));\n\t}", "private void initEntities() {\n\t\tship = new ShipEntity(this,\"ship.gif\",370,550);\n\t\tentities.add(ship);\n\t\tscore = 0;\n\t\t// create a block of aliens (5 rows, by 12 aliens, spaced evenly)\n\t\talienCount = 0;\n\t\tfor (int row=0;row<5;row++) {\n\t\t\tfor (int x=0;x<12;x++) {\n\t\t\t\tEntity alien = new AlienEntity(this,\"alien.gif\",100+(x*50),(50)+row*30);\n\t\t\t\tentities.add(alien);\n\t\t\t\talienCount++;\n\t\t\t}\n\t\t}\n\t}", "private void loadMap(ArrayList<Sprite> allSprites) {\n\t\tint numTargets = 0;\n\t\t\n\t\tfor (Sprite thisSprite : allSprites) {\n\t\t\tif(!(thisSprite instanceof Explosion)) {\n\t\t\t\tputInCell(thisSprite.getX(), thisSprite.getY(), thisSprite);\n\t\t\t}\n\t\t\tif (thisSprite instanceof Target) {\n\t\t\t\tnumTargets++;\n\t\t\t}\n\t\t\tif(thisSprite instanceof Door) {\n\t\t\t\tthis.theDoor = (Door)thisSprite;\n\t\t\t}\n\t\t\tif(thisSprite instanceof Player) {\n\t\t\t\tthis.thePlayer = (Player)thisSprite;\n\t\t\t}\n\t\t}\n\t\tthis.numTargets = numTargets;\n\t}", "public static void init()\n {\n \tSpriteSheet sheet = new SpriteSheet(ImageLoader.loadImage(\"/sprites/spritesheet.png\"));\n BufferedImage img;\n /*for(int y = 0;y<4;y++)\n \t{\n \t\t\n \timg = sheet.crop(width*y,0,width,height);\n \t\t\n \t\tplayer.add(img);\n \t}*/\n hero = sheet.crop(0,0,width,height);\n heroUp = sheet.crop(width,0,width,height);\n heroLeft = sheet.crop(width*2,0,width,height);\n heroRight = sheet.crop(width*3,0,width,height);\n \n heroDown1 = sheet.crop(0,height+32,width+1,height);\n heroDown2 = sheet.crop(width+1,height+32,width+1,height);\n heroUp1 = sheet.crop(width*2+2,height+32,width,height);\n heroUp2 = sheet.crop(width*3+2,height+32,width,height);\n heroLeft1 = sheet.crop(width*4+2,height+32,width,height);\n heroLeft2 = sheet.crop(width*5+2,height+32,width,height);\n heroRight1 = sheet.crop(width*6+2,height+32,width,height);\n heroRight2 = sheet.crop(width*7+2,height+32,width,height);\n \n /*for(int i = 0;i<4;i++)\n {\n \tfor(int y = 0;y<4;y++)\n \t{\n \t\tif(y==1)\n \t\t{\n \t\t\timg = sheet.crop(width*y,height*i,width,height);\n \t\t}\n \t\telse\n \t\t{\n \t\t\timg = sheet.crop(width*y+1,height*i+1,width,height);\n \t\t}\n \t\tplayer.add(img);\n \t}\n }*/\n sheet = new SpriteSheet(ImageLoader.loadImage(\"/sprites/PokemonTileSet.png\"));\n for(int i = 0;i<50;i++)\n {\n \tfor(int y = 0;y<8;y++)\n \t{\n \t\timg = sheet.crop(tileW*y,tileH*i,tileW,tileH);\n \t\tassets.add(img);\n \t}\n }\n \n /*\n hero = sheet.crop(0,0,width,height);\n heroUp = sheet.crop(width,0,width,height);\n heroLeft = sheet.crop(width*2,0,width,height);\n heroRight = sheet.crop(width*3,0,width,height);\n \n treeTopLeft = sheet.crop(0,firstRow,tWidth,tHeight);\n treeTopRight = sheet.crop(tWidth,firstRow,tWidth,tHeight);\n treeMidLeft = sheet.crop(tWidth*2,firstRow,tWidth,tHeight);\n treeMidRight = sheet.crop(tWidth*3,firstRow,tWidth,tHeight);\n treeBotLeft = sheet.crop(tWidth*4,firstRow,tWidth,tHeight);\n treeBotRight = sheet.crop(tWidth*5,firstRow,tWidth,tHeight);\n treeTopLeftGrass = sheet.crop(tWidth*6,firstRow,tWidth,tHeight);\n treeTopRightGrass = sheet.crop(tWidth*7,firstRow,tWidth,tHeight);\n treeTopLeftMushroom = sheet.crop(tWidth*8,firstRow,tWidth,tHeight);\n grass = sheet.crop(tWidth*9,firstRow,tWidth,tHeight);\n \n wildGrass = sheet.crop(0,secondRow,tWidth,tHeight);\n mushroom = sheet.crop(tWidth,secondRow,tWidth,tHeight);\n logLeft = sheet.crop(tWidth*2,secondRow,tWidth,tHeight);\n logRight = sheet.crop(tWidth*3,secondRow,tWidth,tHeight);\n ledgeLeft = sheet.crop(tWidth*4,secondRow,tWidth,tHeight);\n ledgeMid = sheet.crop(tWidth*5,secondRow,tWidth,tHeight);\n ledgeRight = sheet.crop(tWidth*6,secondRow,tWidth,tHeight);\n treeLeftOverlap = sheet.crop(tWidth*7,secondRow,tWidth,tHeight);\n treeRightOverlap = sheet.crop(tWidth*8,secondRow,tWidth,tHeight);\n \n heroWalkingDown1 = sheet.crop(0,thirdRow,width+1,height);\n heroWalkingDown2 = sheet.crop(width+1,thirdRow,width+1,height);\n heroWalkingUp1 = sheet.crop(width*2+1,thirdRow,width,height);\n heroWalkingUp2 = sheet.crop(width*3+1,thirdRow,width,height);\n heroWalkingLeft1 = sheet.crop(width*4+1,thirdRow,width,height);\n heroWalkingLeft2 = sheet.crop(width*5+1,thirdRow,width,height);\n heroWalkingRight1 = sheet.crop(width*6+1,thirdRow,width,height);\n heroWalkingRight2 = sheet.crop(width*7+1,thirdRow,width,height);\n */\n }", "void smallgunHandler() {\n for (Sprite smb: smBullets) {\n \n smb.display();\n if(usingCoil){\n smb.forward(120);\n }else{\n smb.forward(40);\n }\n\n }\n}", "public static void loadImages(){\n\t\tsetPath(main.getShop().inventory.getEquipID());\n\t\ttry {\n\t\t\tbackground = ImageIO.read(new File(\"res/world/bg.png\"));\n\t\t\tterrain = ImageIO.read(new File(\"res/world/solids.png\"));\n\t\t\t// Character and Armour\n\t\t\tcharacters = ImageIO.read(new File(\"res/world/char3.png\"));\n\t\t\tcharactersHead =ImageIO.read(new File(\"res/world/charhead\"+path[0]+\".png\"));\n\t\t\tcharactersTop = ImageIO.read(new File(\"res/world/chartop\"+path[2]+\".png\"));\n\t\t\tcharactersShoulder = ImageIO.read(new File(\"res/world/charshoulders\"+path[3]+\".png\"));\n\t\t\tcharactersHand = ImageIO.read(new File(\"res/world/charhands\"+path[5]+\".png\"));\n\t\t\tcharactersBottom = ImageIO.read(new File(\"res/world/charbottom\"+path[8]+\".png\"));\n\t\t\tcharactersShoes = ImageIO.read(new File(\"res/world/charshoes\"+path[9]+\".png\"));\n\t\t\tcharactersBelt = ImageIO.read(new File(\"res/world/charBelt\"+path[4]+\".png\"));\n\n\t\t\tweaponBow = ImageIO.read(new File(\"res/world/bow.png\"));\n\t\t\tweaponArrow = ImageIO.read(new File(\"res/world/arrow.png\"));\n\t\t\tweaponSword = ImageIO.read(new File(\"res/world/sword.png\"));\n\t\t\titems = ImageIO.read(new File(\"res/world/items.png\"));\n\t\t\tnpc = ImageIO.read(new File(\"res/world/npc.png\"));\n\t\t\thealth = ImageIO.read(new File(\"res/world/health.png\"));\n\t\t\tenemies = ImageIO.read(new File(\"res/world/enemies.png\"));\n\t\t\tcoin = ImageIO.read(new File(\"res/world/coin.png\"));\n\t\t\tmana = ImageIO.read(new File(\"res/world/mana.gif\"));\n\t\t\tarrowP = ImageIO.read(new File(\"res/world/arrowP.png\"));\n\t\t\tbutton = ImageIO.read(new File(\"res/world/button.png\"));\n\t\t\tblood = ImageIO.read(new File(\"res/world/blood.png\"));\n\t\t\tarrowDisp = ImageIO.read(new File(\"res/world/arrowDisp.png\"));\n\t\t\tboss1 = ImageIO.read(new File(\"res/world/boss1.png\"));\n\t\t\tmagic = ImageIO.read(new File(\"res/world/magic.png\"));\n\t\t\tmainMenu = ImageIO.read(new File(\"res/world/MainMenu.png\"));\n\t\t\tinstructions = ImageIO.read(new File(\"res/world/instructions.png\"));\n\t\t\trespawn = ImageIO.read(new File(\"res/world/respawn.png\"));\n\t\t\tinventory = ImageIO.read(new File(\"res/world/inventory.png\"));\n shop = ImageIO.read(new File(\"res/world/shop.png\"));\n dizzy = ImageIO.read(new File(\"res/world/dizzy.png\"));\n pet = ImageIO.read(new File(\"res/world/pet.png\"));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error Loading Images\");\n\t\t}\n\t}", "public void initialize() {\n\t\tImageIcon bg = new ImageIcon(\"bg.png\");\n\t\tBackground = (bg.getImage().getScaledInstance(bg.getIconWidth(), bg.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tImageIcon[] in1 = new ImageIcon[12];\n\t\tin1[0] = new ImageIcon(\"Hero1 Normal.png\");\n\t\tin1[1] = new ImageIcon(\"20ed.png\");\n\t\tin1[2] = new ImageIcon(\"50ed.png\");\n\t\tin1[3] = new ImageIcon(\"100ed.png\");\n\t\tin1[4] = new ImageIcon(\"200ed.png\");\n\t\tin1[5] = new ImageIcon(\"500ed.png\");\n\t\tin1[6] = new ImageIcon(\"Hero1 Att200.png\");\n\t\tin1[7] = new ImageIcon(\"Hero1 Att500.png\");\n\t\tin1[8] = new ImageIcon(\"Hero1 Defence01.png\");\n\t\tin1[9] = new ImageIcon(\"Hero1Defence02.png\");\n\t\tin1[10] = new ImageIcon(\"Hero1 to fire.png\");\n\t\tin1[11] = new ImageIcon(\"Hero1 die.png\");\n\t\tImageIcon[] in2 = new ImageIcon[12];\n\t\tin2[0] = new ImageIcon(\"Hero02.png\");\n\t\tin2[1] = new ImageIcon(\"20ed02.png\");\n\t\tin2[2] = new ImageIcon(\"50ed02.png\");\n\t\tin2[3] = new ImageIcon(\"100ed02.png\");\n\t\tin2[4] = new ImageIcon(\"200ed02.png\");\n\t\tin2[5] = new ImageIcon(\"500ed02.png\");\n\t\tin2[6] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[7] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[8] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[9] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[10] = new ImageIcon(\"Hero02 Attack01.png\");\n\t\tin2[11] = new ImageIcon(\"Hero02 Die.png\");\n\t\tImageIcon[] inBullet1 = new ImageIcon[3];\n\t\tinBullet1[0] = new ImageIcon(\"B1fire02.png\");\n\t\tinBullet1[1] = new ImageIcon(\"B1fire03.png\");\n\t\tinBullet1[2] = new ImageIcon(\"B1fire05.png\");\n\t\tImageIcon[] inBullet2 = new ImageIcon[5];\n\t\tinBullet2[0] = new ImageIcon(\"20.png\");\n\t\tinBullet2[1]= new ImageIcon(\"50.png\");\n\t\tinBullet2[2]= new ImageIcon(\"100.png\");\n\t\tinBullet2[3]= new ImageIcon(\"200.png\");\n\t\tinBullet2[4]= new ImageIcon(\"500.png\");\n\t\tHero1.settemplate(in2);\n\t\tHero2.settemplate(in1);\n\t\tBullet1.settemplate(inBullet2);\n\t\tBullet2.settemplate(inBullet1);\n\t\tHero1.setstatus(0);\n\t\tHero2.setstatus(0);\n\t}", "private void generateSprites() {\n final int PIXEL_ZOMBIE_SKIN = 0xa0ff90;\n final int PIXEL_SKIN = 0xFF9993;\n\n int pix = 0;\n for (int i = 0; i < 18; i++) {\n int skin = PIXEL_SKIN;\n int clothes = 0xFFffff;\n\n if (i > 0) {\n skin = PIXEL_ZOMBIE_SKIN;\n clothes = (random.nextInt(0x1000000) & 0x7f7f7f);\n }\n for (int t = 0; t < 4; t++) {\n for (int d = 0; d < 16; d++) {\n double dir = d * Math.PI * 2 / 16.0;\n\n if (t == 1)\n dir += 0.5 * Math.PI * 2 / 16.0;\n if (t == 3)\n dir -= 0.5 * Math.PI * 2 / 16.0;\n\n // if (i == 17)\n // {\n // dir = d * Math.PI * 2 / 64;\n // }\n\n double cos = Math.cos(dir);\n double sin = Math.sin(dir);\n\n for (int y = 0; y < 12; y++) {\n int col = 0x000000;\n for (int x = 0; x < 12; x++) {\n int xPix = (int) (cos * (x - 6) + sin * (y - 6) + 6.5);\n int yPix = (int) (cos * (y - 6) - sin * (x - 6) + 6.5);\n\n if (i == 17) {\n if (xPix > 3 && xPix < 9 && yPix > 3 && yPix < 9) {\n col = 0xff0000 + (t & 1) * 0xff00;\n }\n } else {\n if (t == 1 && xPix > 1 && xPix < 4 && yPix > 3 && yPix < 8)\n col = skin;\n if (t == 3 && xPix > 8 && xPix < 11 && yPix > 3 && yPix < 8)\n col = skin;\n\n if (xPix > 1 && xPix < 11 && yPix > 5 && yPix < 8) {\n col = clothes;\n }\n if (xPix > 4 && xPix < 8 && yPix > 4 && yPix < 8) {\n col = skin;\n }\n }\n sprites[pix++] = col;\n\n // If we just drew a pixel, make the next one an almost-black\n // pixel, and if it's already an almost-black one, make it\n // transparent (full black). (This is all honored only if the\n // next pixel isn't actually set to something else.) This takes\n // advantage of the left-to-right scanning of the sprite\n // generation to create a slight shadow effect on each sprite.\n if (col > 1) {\n col = 1;\n } else {\n col = 0;\n }\n }\n }\n }\n }\n }\n }", "public void init(){\n\t\n\t\t//background init\n\t\tthis.background = new Sprite(this.scene, \"space-backdrop.png\", 1280 * 5, 800 * 5);\n\t\tthis.background.setBoundAction(\"background\");\n\t\tthis.background.setSpeedScale(0.2);\n\t\tthis.background.setSpeed(0);\n\t\tthis.sprites.add(this.background);\n\t\t\n\t\t//compass init\n\t\tthis.compass = new Sprite(this.scene, \"compass.png\", 100, 100);\n\t\tthis.compass.setSpeed(0);\n\t\tthis.compass.setPosition(this.compass.getWidth() / 2, this.scene.getHeight() - this.compass.getHeight() / 2);\n\t\t\n\t\t//earth init\n\t\tthis.earth = new Planet(this.scene, \"earth.png\", 4800, 4800);\n\t\tthis.earth.setSpeed(0);\n\t\tthis.earth.setPosition(0, 7000);\n\t\tthis.earth.setBoundAction(\"continue\");\n\t\tthis.sprites.add(this.earth);\n\t\t\n\t\t//ship init\n\t\tthis.mainSprite = new Ship(this.scene, \"cannon.png\", 50, 50, this.k);\n\t\tthis.mainSprite.keyListen = true;\n\t\tthis.mainSprite.setSpeed(0);\n\t\tthis.mainSprite.setPosition(this.scene.getWidth() / 2, this.scene.getHeight() / 2);\n\t\t\n\t\t//asteroids init\n\t\tthis.asteroids.add(new Body(this.scene, \"asteroid.png\", 250, 250, this));\n\t\tthis.asteroids.get(0).setBoundAction(\"continue\");\n\t\tthis.asteroids.get(0).setSpeed(0);\n\t\tthis.asteroids.get(0).setPosition(0, 0);\n\t\tthis.sprites.add(this.asteroids.get(0));\n\t\t\n\t\tfor(int i = 1; i < 200; i++){\n\t\t\t\n\t\t\tint size = (int) Math.round(Math.random() * 400 + 50);\n\t\t\tlong x = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\tlong y = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\n\t\t\twhile(x > 0 && x < this.scene.getWidth()){\n\t\t\t\tx = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t}\n\t\t\t\n\t\t\twhile(y > 0 && y < this.scene.getHeight()){\n\t\t\t\ty = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t}\n\t\t\t\n\t\t\tthis.asteroids.add(new Body(this.scene, \"asteroid.png\", size, size, this));\n\t\t\tthis.asteroids.get(i).setBoundAction(\"continue\");\n\t\t\tthis.asteroids.get(i).setSpeed(0);\n\t\t\tthis.asteroids.get(i).setPosition(x, y);\n\t\t\t\n\t\t\tthis.sprites.add(this.asteroids.get(i));\n\t\t}\n\t\t\n\t\t\n\t\t//chest init\n\t\tthis.chests.add(new Chest(this.scene, \"chest.png\", 100, 50));\n\t\tthis.chests.get(0).setBoundAction(\"continue\");\n\t\tthis.chests.get(0).setSpeed(0);\n\t\tthis.chests.get(0).setPosition(500, 500);\n\t\tthis.sprites.add(this.chests.get(0));\n\t\t\n\t\tfor(int i = 1; i < this.numChests; i++){\n\t\t\t\n\t\t\tthis.chests.add(new Chest(this.scene, \"chest.png\", 100, 50));\n\t\t\tthis.chests.get(i).setBoundAction(\"continue\");\n\t\t\tthis.chests.get(i).setSpeed(0);\n\t\t\t\n\t\t\tboolean keepGoing = true;\n\t\t\tdo{\n\t\t\t\t\n\t\t\t\tlong x = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t\tlong y = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\t\n\t\t\t\twhile(x > 0 && x < this.scene.getWidth()){\n\t\t\t\t\tx = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twhile(y > 0 && y < this.scene.getHeight()){\n\t\t\t\t\ty = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tthis.chests.get(i).setPosition(x, y);\n\t\t\t\t\n\t\t\t\t//check for collisions with asteroids\n\t\t\t\tboolean colliding = false;\n\t\t\t\tfor(int j = 0; j < this.asteroids.size() && colliding == false; j++){\n\t\t\t\t\tif(this.asteroids.get(j).collidesWith(this.chests.get(i))){\n\t\t\t\t\t\tcolliding = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tkeepGoing = colliding;\n\t\t\t\t\n\t\t\t}while(keepGoing);\n\t\t\t\n\t\t\tthis.sprites.add(this.chests.get(i));\n\t\t\t\n\t\t}//end for\n\t\n\t\tthis.scene.start();\n\t\t\n\t\tSystem.out.println(\"==== Welcome to Space Smuggler! ====\");\n\t\tSystem.out.println(\"(WASD to move)\");\n\t\tSystem.out.println(\"Follow your compass in the bottom left corner to find treasure.\");\n\t\tSystem.out.println(\"Collect all of the treasure, then follow your compass to Earth!\");\n\t\tSystem.out.println(\"Watch out for the asteroids though, their gravitational pull is strong!\");\n\t\tSystem.out.println(\"Crashing into one will certainly kill you! D:\");\n\t\tSystem.out.println(\"Good Luck!\");\n\t\t\n\t}", "public void initSpriteSheet() {\n\t\tString url = \"https://amiealbrecht.files.wordpress.com/2016/08/set-cards.jpg?w=1250\";\n\n\t\tcimg = loadImage(url, \"png\");\n\t}", "public static void LoadSpritesIntoArray() {\r\n\t\t// Get all nodes for the settings\r\n\t\t// Node main = document.getElementById(\"main\");\r\n\t\t// Node textures = document.getElementById(\"textures\");\r\n\t\t// NodeList nList = document.getElementsByTagName(\"TexturePath\");\r\n\r\n\t\t// for (Element texPath : texturePathElements) {\r\n\t\t// System.out.println(texPath.getAttribute(\"name\") + \" \" +\r\n\t\t// texPath.getAttribute(\"name\"));\r\n\t\t// sprites.add(new Sprite(texPath.getAttribute(\"name\"),\r\n\t\t// texPath.getAttribute(\"path\")));\r\n\t\t// }\r\n\r\n\t\tsprites = ImageTools.LoadAllSpriteTexturesFromSpriteSheet(\"In_Game\");\r\n\r\n\t\t/*\r\n\t\t * This method i got from a stack overflow question\r\n\t\t * https://stackoverflow.com/questions/22610526/how-to-append-elements-\r\n\t\t * at-the-end-of-arraylist-in-java\r\n\t\t */\r\n\t\tint endOfList = sprites.size();\r\n\t\tsprites.addAll(endOfList, ImageTools.LoadAllSpriteTexturesFromSpriteSheet(\"In_Game_HUD\"));\r\n\t\tendOfList = sprites.size();\r\n\t\tsprites.addAll(endOfList, ImageTools.LoadAllSpriteTexturesFromSpriteSheet(\"In_Game_Custom\"));\r\n\t\tSystem.out.println(endOfList);\r\n\r\n\t\tfor (Element el : texturePathElements) {\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsprites.add(new Sprite(el.getAttribute(\"name\"), el.getAttribute(\"path\")));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tisTexturesDone = true;\r\n\t}", "public zombie_bg()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1010,900, 1); \n setPaintOrder(ScoreBoard.class, player.class, zomb_gen.class, options.class);\n populate();\n \n }", "private void addAllSprites(String heroName) throws IOException {\n BufferedReader reader = new BufferedReader(\n new FileReader(\"assets/config/characters/\"+heroName+\"Sprites.txt\")\n );\n String line = reader.readLine();\n String[] data;\n BufferedImage[] sprites;\n while (line != null) {\n data = line.split(\"\\\\s+\"); //regex for spliting all spaces\n sprites = new BufferedImage[data.length-1];\n for (int i = 1; i < data.length; i++) {\n sprites[i-1] = Util.urlToImage(\"characters/\"+heroName+\"/\"+data[i]);\n \n }\n this.sprites.put(data[0], sprites);\n line = reader.readLine();\n }\n reader.close();\n }", "protected void setSprite(Image i){\n sprites = new HashMap<Facing,Image>();\n sprites.put(Facing.RIGHT, i);\n sprites.put(Facing.LEFT , i.getFlippedCopy(true, false));\n }", "Ground(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\", \"3015\");}", "@Override\n\tpublic void init() {\n\t\tEffect().registerEffect(40, 40, 3, \"ExplosionSheet.png\");\n\t\tbg = new Background();\n\t\tobj = new TestObj();\n\t\tobj.init();\n\t\ttest = new Test2[50];\n\t\tfor(int x = 0; x < test.length; x++ )\n\t\t\ttest[x] = new Test2(x*30-600,30 *(float)Math.pow(-1, x), \"g.png\");\n\t\t\n\t\ttest2 = new Test2[50000];\n\t\tfor(int x = 0; x < test2.length; x++ )\n\t\t\ttest2[x] = new Test2(x*30-600,150+30 *(float)Math.pow(-1, x), \"AlienPawn.png\");\n\t\t\n\t\ttest3 = new Test2[50000];\n\t\tfor(int x = 0; x < test3.length; x++ )\n\t\t\ttest3[x] = new Test2(x*30-600,-200+30 *(float)Math.pow(-1, x), \"AlienPawn - Copy.png\");\n\t\n\t}", "private void setSpritesPosition()\r\n\t{\r\n\t\tfloat w = Gdx.graphics.getWidth();\r\n\t\tfloat h = Gdx.graphics.getHeight();\r\n\t\t\r\n\t\tsetX(camera.position.x-camera.viewportWidth/2 + 0.1f * camera.viewportWidth/2);\r\n\t\tsetY(camera.position.y + camera.viewportHeight/2 - 0.15f*w/h* camera.viewportHeight/2);\r\n\t\theroHealth.setX(getX());\r\n\t\theroHealth.setY(getY());\r\n\t\t\r\n\t\tcover.setX(getX() + 10f/270f * heroHealth.getWidth());\r\n\t\tcover.setY(getY());\r\n\t\t\r\n\t}", "public StoneSummon() {\n// ArrayList<BufferedImage> images = SprssssssaasssssaddddddddwiteUtils.loadImages(\"\"\n createStones();\n\n }", "private void loadTextures() {\n\t\tspriteSheet01 = new Texture(\"data/buttonsspritesheet02.png\");\n\n\t\tnew TextureRegion(spriteSheet01, BROKEN_COLUMN * SQUARE_SIZE,\n\t\t\t\tBROKEN_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, EMPTY_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tEMPTY_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, ACTIVATED_COLUMN * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, DEPRESSED_BUTTON * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, HIGHLIGHTED_COLUMN * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, CAROUSEL_COLUMN * SQUARE_SIZE,\n\t\t\t\t(CAROUSEL_ROW * SQUARE_SIZE) + CAROUSEL_PIXELS, SQUARE_SIZE,\n\t\t\t\tCAROUSEL_PIXELS);\n\n\t\tnew TextureRegion(spriteSheet01, FIX_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tFIX_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, WILD_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tWILD_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tcarousel = new TextureRegion[MAIN_COLOUR_AMOUNT];\n\t\tfor (int i = 0; i < MAIN_COLOUR_AMOUNT; i++) {\n\t\t\tcarousel[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(CAROUSEL_COLUMN * SQUARE_SIZE) + (i * CAROUSEL_PIXELS),\n\t\t\t\t\tCAROUSEL_ROW * SQUARE_SIZE, CAROUSEL_PIXELS,\n\t\t\t\t\tCAROUSEL_PIXELS);\n\t\t}\n\n\t\trings = new TextureRegion[RING_AMOUNT];\n\t\tfor (int i = 0; i < RING_AMOUNT; i++) {\n\t\t\trings[i] = new TextureRegion(spriteSheet01, i * SQUARE_SIZE,\n\t\t\t\t\tRING_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tmainColour = new TextureRegion[MAIN_COLOUR_AMOUNT];\n\t\tfor (int i = 0; i < MAIN_COLOUR_AMOUNT; i++) {\n\t\t\tmainColour[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i + MAIN_COLOUR_COLUMN) * SQUARE_SIZE, MAIN_COLOUR_ROW,\n\t\t\t\t\tSQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tspecials = new TextureRegion[SPECIALS_AMOUNT];\n\t\tfor (int i = 0; i < SPECIALS_ROW_ONE_AMOUNT; i++) {\n\t\t\tspecials[i] = new TextureRegion(spriteSheet01, i * SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\t\tfor (int i = SPECIALS_ROW_ONE_AMOUNT; i < SPECIALS_AMOUNT; i++) {\n\t\t\tspecials[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i - SPECIALS_ROW_ONE_AMOUNT) * SQUARE_SIZE,\n\t\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tenemyBaseColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyBaseColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_BASE_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyHalfColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyHalfColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_HALF_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyThirdColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyThirdColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_THIRD_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyRimColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyRimColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_RIM_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyConnectors = new TextureRegion[ENEMY_CONNECTORS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_CONNECTORS_AMOUNT; i++) {\n\t\t\tenemyConnectors[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i + ENEMY_CONNECTORS_COLUMN) * SQUARE_SIZE,\n\t\t\t\t\tENEMY_CONNECTORS_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\t}", "public HashMap<String, BufferedImage> getSprites() {\n \t\treturn sprites;\n \t}", "public abstract void createSprites() throws FileNotFoundException;", "private void setSpritesCount(int count) {\n this.count = count;\n }", "private void generate() {\n preGenerate();\n\n SpriteGrid grid = new SpriteGrid(specState);\n IOHelper.pixelsToBitmap(grid.draw(), sprite);\n\n }", "ArrayList<Sprite> getSpriteArray();", "public Sprite() {}", "private void loadSprites(String s){\n try {\n BufferedImage spriteSheet = ImageIO.read(\n getClass().getResourceAsStream(s));\n sprites = new BufferedImage[1];\n sprites[0] = spriteSheet.getSubimage(0, 0, width, height);\n\n } catch (Exception e){\n e.printStackTrace();\n }\n\n }", "public void Boom()\r\n {\r\n image1 = new GreenfootImage(\"Explosion1.png\");\r\n image2 = new GreenfootImage(\"Explosion2.png\");\r\n image3 = new GreenfootImage(\"Explosion3.png\");\r\n image4 = new GreenfootImage(\"Explosion4.png\");\r\n image5 = new GreenfootImage(\"Explosion5.png\");\r\n image6 = new GreenfootImage(\"Explosion6.png\");\r\n setImage(image1);\r\n\r\n }", "@Override\n public void chooseSprite() {\n switch(direction){\n case 0:\n sprite=Sprite.python_down;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_down,Sprite.python_down_1,Sprite.python_down_2,Sprite.python_down_3,animate,40);\n break;\n case 1:\n sprite=Sprite.python_right;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_right,Sprite.python_right_1,Sprite.python_right_2,animate,40);\n break;\n case 2:\n sprite=Sprite.python_up;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_up,Sprite.python_up_1,Sprite.python_up_2,animate,40);\n break;\n case 3:\n sprite=Sprite.python_left;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_left,Sprite.python_left_1,Sprite.python_left_2,animate,40);\n break;\n\n\n }\n\n }", "public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public void drawEnemies(){\n for (Object e : world.getEnemies()) {\n Enemy enemy = (Enemy) e;\n if (enemy instanceof EnemyPistol) {\n spriteBatch.draw(enemyPistolTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyAwp){\n spriteBatch.draw(enemyAWPTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyStalker){\n spriteBatch.draw(enemyStalkerTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyBoss){\n spriteBatch.draw(enemyBossTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }\n }\n }", "public void initTiles()\n {\n PropertiesManager props = PropertiesManager.getPropertiesManager(); \n String imgPath = props.getProperty(MahjongSolitairePropertyType.IMG_PATH);\n int spriteTypeID = 0;\n SpriteType sT;\n \n // WE'LL RENDER ALL THE TILES ON TOP OF THE BLANK TILE\n String blankTileFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_IMAGE_NAME);\n BufferedImage blankTileImage = miniGame.loadImageWithColorKey(imgPath + blankTileFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileImage(blankTileImage);\n \n // THIS IS A HIGHLIGHTED BLANK TILE FOR WHEN THE PLAYER SELECTS ONE\n String blankTileSelectedFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_SELECTED_IMAGE_NAME);\n BufferedImage blankTileSelectedImage = miniGame.loadImageWithColorKey(imgPath + blankTileSelectedFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileSelectedImage(blankTileSelectedImage);\n \n // FIRST THE TYPE A TILES, OF WHICH THERE IS ONLY ONE OF EACH\n // THIS IS ANALOGOUS TO THE SEASON TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeATiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_A_TILES);\n for (int i = 0; i < typeATiles.size(); i++)\n {\n String imgFile = imgPath + typeATiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_A_TYPE);\n spriteTypeID++;\n }\n \n // THEN THE TYPE B TILES, WHICH ALSO ONLY HAVE ONE OF EACH\n // THIS IS ANALOGOUS TO THE FLOWER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeBTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_B_TILES);\n for (int i = 0; i < typeBTiles.size(); i++)\n {\n String imgFile = imgPath + typeBTiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_B_TYPE);\n spriteTypeID++;\n }\n \n // AND THEN TYPE C, FOR WHICH THERE ARE 4 OF EACH \n // THIS IS ANALOGOUS TO THE CHARACTER AND NUMBER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeCTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_C_TILES);\n for (int i = 0; i < typeCTiles.size(); i++)\n {\n String imgFile = imgPath + typeCTiles.get(i);\n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID); \n for (int j = 0; j < 4; j++)\n {\n initTile(sT, TILE_C_TYPE);\n }\n spriteTypeID++;\n }\n }", "@Override\n public void init() {\n GetSprite(\"/images/bullet.png\");\n MusicUtils.StopASounds(\"/music/Laser_Shoot.wav\");\n Level().play(\"/music/Laser_Shoot.wav\");\n }", "public void setAnimaciones( ){\n\n int x= 0;\n Array<TextureRegion> frames = new Array<TextureRegion>();\n for(int i=1;i<=8;i++){\n frames.add(new TextureRegion(atlas.findRegion(\"demon01\"), x, 15, 16, 15));\n x+=18;\n }\n this.parado = new Animation(1 / 10f, frames);//5 frames por segundo\n setBounds(0, 0, 18, 15);\n\n }", "public void move(){\n\t\tswitch(state){\r\n\t\t\tcase ATField.SPRITE_STAND:\r\n\t\t\t\tspriteX = 0;\r\n\t\t\t\tcoords = standbySprite.get(spriteX);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\r\n\t\t\tcase ATField.SPRITE_WALK:\r\n\t\t\t\tif(spriteX >walkSprite.size() - 1){\r\n\t\t\t\t\tspriteX = 0;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcoords = walkSprite.get(spriteX);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tspriteX++;\r\n\t\t\t\t\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase ATField.SPRITE_RUN:\r\n\t\t\t\t\r\n\t\t\t\tif(spriteX >runSprite.size() - 1){\r\n\t\t\t\t\tspriteX = 0;\r\n\t\t\t\t\tsetState(STAND);\r\n\t\t\t\t}\r\n\t\t\t\tcoords = runSprite.get(spriteX);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tspriteX++;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase ATField.SPRITE_JUMP:\r\n\t\t\t\tif(spriteX >5){\r\n\t\t\t\t\tsetState(STAND);\r\n\t\t\t\t}\r\n\t\t\t\tcoords = jumpSprite.get(0);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tspriteX++;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }", "protected abstract void chooseSprite();", "public void setSprites(final int playerID) {\n idleSprite = CharacterSprites.getIdleSprite(playerID);\n runningSprite = CharacterSprites.getRunningSprite(playerID);\n }", "public Map(SpriteLoader sprites) {\n\n this.sprites = sprites;\n\n }", "private void init() {\n display = new Display(title, getWidth(), getHeight());\n Assets.init();\n player = new Player(getWidth() / 2, getHeight() - 100, 1, 60, 40, this);\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 6; j++) {\n aliens.add(new Alien(150 + 50 * j, 50 + 50 * i, 1, 40, 40, this));\n }\n }\n display.getJframe().addKeyListener(keyManager);\n }", "public void init() {\n\t\tbg = new MyImg(\"gamepage/endgame/bg.png\");\n\t\tbut0 = new MyImg(\"paygame/qdbut.png\");\n\t\tbut1 = new MyImg(\"paygame/qxbut.png\");\n\t}", "@Override\n\tpublic void create () {\n\t\tmBatch = new SpriteBatch();\n mFont = new BitmapFont();\n\t\tmCamera = new OrthographicCamera();\n\t\tmCamera.setToOrtho(false, 800, 480); // Regardless of resolution, project screen onto 800 x 480 orthographic matrix\n\n\t\tmGameBackgrounds = new Texture[6]; // Six frames describing six states of damage to the castle, from pristine to broken\n\t\tmGameBackgrounds[0] = new Texture(\"castle_v1.png\");\n\t\tmGameBackgrounds[1] = new Texture(\"castle_v1_dam1.png\");\n\t\tmGameBackgrounds[2] = new Texture(\"castle_v1_dam2.png\");\n\t\tmGameBackgrounds[3] = new Texture(\"castle_v1_dam3.png\");\n\t\tmGameBackgrounds[4] = new Texture(\"castle_v1_dam4.png\");\n\t\tmGameBackgrounds[5] = new Texture(\"castle_v1_dam5.png\");\n\n\t\t// Assign value to list so it may be given objects to store\n\t\tmAttackers = new Attacker[ATTACKER_ARRAY_SIZE];\n\t\tmButtons = new DefenderButtons[7];\n\t\tmButtons[0] = new DefenderButtons(DefenderButtons.TYPE_NEW_GAME);\n\t\tmButtons[1] = new DefenderButtons(DefenderButtons.TYPE_RESUME_SAVED_GAME);\n\t\tmButtons[2] = new DefenderButtons(DefenderButtons.TYPE_PAUSE_GAME);\n\t\tmButtons[3] = new DefenderButtons(DefenderButtons.TYPE_RESUME_PAUSED_GAME);\n\t\tmButtons[4] = new DefenderButtons(DefenderButtons.TYPE_REPAIR_CASTLE);\n\t\tmButtons[5] = new DefenderButtons(DefenderButtons.TYPE_CONTINUE_NEXT_ROUND);\n\t\tmButtons[6] = new DefenderButtons(DefenderButtons.TYPE_SAVE_GAME);\n\n\t\tmButtons[0].setTexture(new Texture(\"button1.png\"));\n\t\tmButtons[1].setTexture(new Texture(\"button1.png\"));\n\t\tmButtons[2].setTexture(new Texture(\"button2.png\"));\n\t\tmButtons[3].setTexture(new Texture(\"button2.png\"));\n\t\tmButtons[4].setTexture(new Texture(\"button3.png\"));\n\t\tmButtons[5].setTexture(new Texture(\"button3.png\"));\n\t\tmButtons[6].setTexture(new Texture(\"button3.png\"));\n\n\t\t// Create the object that tracks the touch coordinates\n\t\tmLastTouch = new Vector3();\n\n // Assign value to miscellaneous game variables\n mRoundTimeElapsed = 0;\n mRoundMaxTime = 25f; // Counted in SECONDS\n\t\tmCastleMaxHealth = 1000f;\n mCastleHealth = mCastleMaxHealth; // Will last 1,000 frames if attacked by one single standard attacker constantly\n\t\tmCastleDamageStage = 0;\n mRoundScore = 0f;\n mTotalScore = 0f;\n mRoundNumber = 1;\n\t\tmGameState = STATE_PRE_GAME;\n\t\tmAttackerDelay = 0;\n mRoundMaxAttackers = 5;\n\t\tmRepairCost = 1000f;\n\t\tmLivingAttackerCount = 0;\n\t\tmKnightSpawnChance = 0.35f; // 35% chance to spawn a knight instead of normal under regular circumstances\n mPaused = false;\n\t\tmRoundSaved = false;\n mHealthText = \"Castle Strength: \" + mCastleHealth;\n mRoundScoreText = \"This Round Score: \" + mRoundScore;\n\t\tmTotalScoreText = \"Total Game Score: \" + mTotalScore;\n\t\tmGameTitle = \"Castle Defender\";\n\t\tmGameSavedText = \"Game Saved!\";\n\t\tmRoundText = \"Round :\" + mRoundNumber;\n\t\tmRandom = new Random();\n\t\t//TEMPORARY! Will change the logic later\n mSpawnTime = 100;\n\t\tmMonsterHouseSpawn = 10;\n\n\t\t// Pull out the normal attacker's frames through temporary objects\n\t\tTexture walkTexture = new Texture(\"attackerSheet.png\");\n\t\tTextureRegion[][] walkTempArray = TextureRegion.split(walkTexture, 64, 64);\n\t\tTextureRegion[] walkFrames = new TextureRegion[16];\n\n\t\tint index = 0; // Cut the animation's frames up using this temporary jagged array (8 by 2 matches the image file rows / cols)\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tfor (int j = 0; j < 8; j++) {\n\t\t\t\twalkFrames[index++] = walkTempArray[i][j];\n\t\t\t}\n\t\t}\n\n\t\tmStandardAttackerWalk = new Animation(0.055f, walkFrames);\n\n\t\t// Do the same process for the knight animations\n\t\tTexture knightWalk = new Texture(\"knight_sheet_walk.png\");\n\t\tTexture knightAttack = new Texture(\"knight_sheet_attack.png\");\n\n\t\tTextureRegion[][] knightWalkTemp = TextureRegion.split(knightWalk, 64, 128);\n\t\tTextureRegion[][] knightAtkTemp = TextureRegion.split(knightAttack, 64, 128);\n\n\t\tTextureRegion[] knightWalkFrames = new TextureRegion[8];\n\t\tTextureRegion[] knightAtkFrames = new TextureRegion[4];\n\n\t\tindex = 0;\n\t\tfor(int i = 0; i < 2; i++) {\n\t\t\tfor(int j = 0; j < 4; j++) {\n\t\t\t\tknightWalkFrames[index++] = knightWalkTemp[i][j];\n\t\t\t}\n\t\t}\n\n\t\tindex = 0;\n\t\tfor(int i = 0; i < 4; i++) {\n\t\t\tknightAtkFrames[index++] = knightAtkTemp[0][i];\n\t\t}\n\n\t\tmKnightAttackerAttack = new Animation(0.25f, knightAtkFrames);\n\t\tmKnightAttackerWalk = new Animation(0.125f, knightWalkFrames);\n\n\t\t// Populate the mAttackers array with 50 total attackers, 25 of each\n\t\tfor(int i = 0; i < ATTACKER_ARRAY_SIZE; i++){\n\t\t\t// Grab a walk speed between constant minimum and maximum\n\t\t\tfloat walkSpeed = mRandom.nextFloat() * MAX_SPEED_VARIANCE;\n\t\t\twalkSpeed += MIN_SPEED; // Ensures the speed is AT LEAST 60 \"units\"\n\t\t\t// Spawn at a random y coordinate starting at MIN_SPAWN_Y, varying by MAX_SPAWN_Y_VARIANCE\n\t\t\tfloat spawnY = mRandom.nextFloat() * MAX_SPAWN_Y_VARIANCE;\n\t\t\tspawnY += MIN_SPAWN_Y;\n\n\t\t\tif(i < ATTACKER_HALF_SIZE) {\n\t\t\t\t// The first half of the array are normal attackers\n\t\t\t\tmAttackers[i] = new Attacker(1f, walkSpeed, -100f, spawnY, 64f, 64f, \"normal\");\n\t\t\t\tmAttackers[i].addAnimation(mStandardAttackerWalk, \"walk\");\n\t\t\t} else {\n\t\t\t\t// The second half of the array are \"knight\" attackers\n\t\t\t\tmAttackers[i] = new Attacker(2f, walkSpeed * 0.75f, -100f, spawnY, 64f, 128f, \"knight\");\n\t\t\t\tmAttackers[i].addAnimation(mKnightAttackerWalk, \"walk\");\n\t\t\t\tmAttackers[i].addAnimation(mKnightAttackerAttack, \"attack\");\n\t\t\t}\n\t\t}\n\t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n for( int i = 0; i < IMAGE_COUNT; i++)\n {\n images[i] = new GreenfootImage(\"frame_\" + i + \"_delay-0.06s.gif\");\n }\n \n setBackground(images [0]); \n \n }", "public void render(){\r\n if(getLives() >= 10){\r\n StdDraw.picture(super.xCoord,super.yCoord,\"EnemyPurple.png\",super.radius*2,super.radius*2);\r\n }\r\n if(getLives() < 10){\r\n StdDraw.picture(super.xCoord,super.yCoord,\"EnemyPink.png\",super.radius*2,super.radius*2);\r\n }\r\n }", "public void mostrarSprites() throws MalformedURLException, IOException, InterruptedException{\n URL url = new URL(miPokemon.getSprites().get(\"front_default\").toString());\n Image img = ImageIO.read(url);\n lblSprites.setIcon(new ImageIcon(img));\n // 1 segundo para cada cambio de sprite\n Thread.sleep(1000);\n \n url = new URL(miPokemon.getSprites().get(\"back_default\").toString());\n img = ImageIO.read(url);\n lblSprites.setIcon(new ImageIcon(img));\n Thread.sleep(1000);\n \n url = new URL(miPokemon.getSprites().get(\"front_shiny\").toString());\n img = ImageIO.read(url);\n lblSprites.setIcon(new ImageIcon(img));\n Thread.sleep(1000);\n \n url = new URL(miPokemon.getSprites().get(\"back_shiny\").toString());\n img = ImageIO.read(url);\n lblSprites.setIcon(new ImageIcon(img));\n Thread.sleep(1000);\n }", "public void loadTextures(){\n switch (playerCarColor){\n case \"Black\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlack.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlackFaded.png\"));\n break;\n case \"White\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhite.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhiteFaded.png\"));\n break;\n }\n\n enemyPistolTexture = new Texture(Gdx.files.internal(\"images/enemyPistol.png\"));\n enemyAWPTexture = new Texture(Gdx.files.internal(\"images/enemyAWP.png\"));\n enemyStalkerTexture = new Texture(Gdx.files.internal(\"images/enemyStalker.png\"));\n bulletTexture = new Texture(Gdx.files.internal(\"images/bullet.png\"));\n enemyBossTexture = new Texture(Gdx.files.internal(\"images/enemyBoss.png\"));\n }", "private void muerte(){\r\n\t\t for(Icon i:sprites.elementAt(4))\r\n\t \t {\r\n\t \t\t grafico.setIcon(i);\r\n\t \t\t try {\r\n\t\t\t\tThread.sleep(300);\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 grafico.setIcon(null);\r\n\t}", "public static void loadItemTextures() {\n\t\tspriteTItem = ModLoader.addOverride(\"/gui/items.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteRItem = ModLoader.addOverride(\"/gui/items.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t}", "private void populateFromSprite() {\n long start = System.currentTimeMillis();\n int bitSetIndex = 0;\n BufferedImage bImage = (BufferedImage) sprite.m_image;\n //BufferedImage img = ImageIO.read(new File(\"assets/LoopBitmap.bmp\"));\n int color;\n // Loop through image according to scale\n for(int i = 0; i < sprite.getWidth(); i+=scale) {\n for(int j = 0; j < sprite.getHeight(); j+= scale) {\n // Get color at pixel i, j, if black set Bitmap index to true.\n color = bImage.getRGB(i, j);\n if(color == Color.BLACK.getRGB()) { //tempColor.equals(Color.black)) {\n this.set(bitSetIndex, true);\n //System.out.println(\"'BLACK' Color = \"+color + \" i=\"+ i + \", j=\"+j);\n }\n bitSetIndex++;\n }\n }\n long end = System.currentTimeMillis();\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n// System.out.println(\"BITMAP DONE :)\");\n// System.out.println(\"Time to build = \"+(end-start)+\"ms\");\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n }", "@Override\n\tpublic void render() {\n\t\tupdate();\n\n\t\tGdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); // clear the screen\n\t\tbatch.begin();\n\n\t\tTextureRegion tmpRegion = null;\n\t\t\n\t\t// Draw the terrain!\n\t\tfor (int x = 0; x < 30; ++x) {\n\t\t\tfor (int y = 0; y < 20; ++y) {\n\t\t\t\ttmpRegion = new TextureRegion( tileset32Texture, (tiles[x][y] - 4) * 32, 0, 32, 32);\n\t\t\t\t//pause_button_region = new TextureRegion( spriteSheet, tiles[x][y] - 4, 0, 32, 32);\n\t\t\t\t// switch to 32x32 sprite\n\t\t\t\t//batch.draw(spriteSheet, x * 16, y * 16, tiles[x][y] * 16, 0, 16, 16);\n\t\t\t\tbatch.draw(tmpRegion, x * SQUARE_WIDTH, y * SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH);\n\n\t\t\t\t// Temporary, copy pasta\n\t\t\t\t/*\n\t\t\t\t * switch( movementDirs[x][y] ) { case 'N': batch.draw(\n\t\t\t\t * spriteSheet, x*16, y*16, 11*16, 0, 16, 16 ); break; case 'E':\n\t\t\t\t * batch.draw( spriteSheet, x*16, y*16, 12*16, 0, 16, 16 );\n\t\t\t\t * break; case 'W': batch.draw( spriteSheet, x*16, y*16, 13*16,\n\t\t\t\t * 0, 16, 16 ); break; case 'S': batch.draw( spriteSheet, x*16,\n\t\t\t\t * y*16, 14*16, 0, 16, 16 ); break; }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t// Draw the towers\n\t\tfor( int i = 0; i < towers.size(); ++i )\n\t\t{\n\t\t\tbatch.draw(towers.get(i).m_type.getTextureRegion(), towers.get(i).m_x * SQUARE_WIDTH, (towers.get(i).m_y) * SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH);\n\t\t\t//drawSprite(towers.get( i ).getIconNum(), towers.get(i).m_x, towers.get(i).m_y);\n\t\t\tif (towers.get(i).selected) {\n\t\t\t\t//batch.draw(spriteSheet, towers.get(i).m_x * SQUARE_WIDTH, towers.get(i).m_y * SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, towers.get(i).m_type.getSpriteLocX(), towers.get(i).m_type.getSpriteLocY(), 16, 16, false, true);\n\t\t\t\t//drawSprite(towers.get( i ).getIconNum(), towers.get(i).m_x, towers.get(i).m_y);\n\t\t\t\tbatch.draw(selectionImg, towers.get(i).m_x * SQUARE_WIDTH, towers.get(i).m_y * SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 0, 0, 32, 32, false, true);\n\t\t\t}\n\n\t\t\t\n\t\t}\n\n\t\t// Draw the creeps!\n\t\tfor( int i = 0; i < creeps.size(); ++i)\n\t\t{\n\n\t\t\tif( creeps.get(i).active ) {\n\t\t\t\tTextureRegion toUse = null;\n\t\t\t\t//TextureRegion toUse = new TextureRegion(corporateCreepTexture);\n\t\t\t\tif (creeps.get(i).m_type == CreepType.GLOBAL_CORP) {\n\t\t\t\t\ttoUse = new TextureRegion(corporateCreepTexture);\n\t\t\t\t} else if (creeps.get(i).m_type == CreepType.SEARCHER) {\n\t\t\t\t\ttoUse = new TextureRegion(defconZeplinTexture);\n\t\t\t\t} else if (creeps.get(i).m_type == CreepType.GOVERNMENT) {\n\t\t\t\t\ttoUse = new TextureRegion(govHeliTexture);\n\t\t\t\t} else {\n\t\t\t\t\t// TODO: Change this to difference art.\n\t\t\t\t\ttoUse = new TextureRegion(corporateCreepTexture);\n\t\t\t\t}\n\t\t\t\tbatch.draw(toUse, creeps.get(i).x * SQUARE_WIDTH + creeps.get(i).xOffset, creeps.get(i).y * SQUARE_WIDTH + creeps.get(i).yOffset, SQUARE_WIDTH, SQUARE_WIDTH);\n\t\t\t\t//batch.draw(toUse, creeps.get(i).x * SQUARE_WIDTH + creeps.get(i).xOffset, creeps.get(i).y * SQUARE_WIDTH + creeps.get(i).yOffset, SQUARE_WIDTH, SQUARE_WIDTH, 0, 32, 32, 32, false, false);\n\t\t\t}\n\t\t}\n\n\t\t// Draw the projectiles!\n\t\tfor( int i = 0; i < maxProjectiles; ++i )\n\t\t{\n\t\t\tif( projectiles[i].active )\n\t\t\t{\n//\t\t\t\tbatch.draw( spriteSheet, projectiles[i].my_coords.x*SQUARE_WIDTH, projectiles[i].my_coords.y*SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 0, 16*3, 16, 16, false, false);\n\t\t\t\tif (projectiles[i].towertype == \"judge\"){\n\t\t\t\t\tbatch.draw( spriteSheet, projectiles[i].my_coords.x*SQUARE_WIDTH, projectiles[i].my_coords.y*SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 0, 16*3, 16, 16, false, false);\n\t\t\t\t} else if (projectiles[i].towertype == \"teacher\"){\n\t\t\t\t\tbatch.draw( spriteSheet, projectiles[i].my_coords.x*SQUARE_WIDTH, projectiles[i].my_coords.y*SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 16, 16*3, 16, 16, false, false);\n\t\t\t\t} else if (projectiles[i].towertype == \"lawyer\"){\n\t\t\t\t\tbatch.draw( spriteSheet, projectiles[i].my_coords.x*SQUARE_WIDTH, projectiles[i].my_coords.y*SQUARE_WIDTH, SQUARE_WIDTH, SQUARE_WIDTH, 32, 16*3, 16, 16, false, false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Draw the UI!\n\n\t\t// Background\n\n\t\tbatch.draw(blackBox, 0, 0, uiPanelWidth , screenHeight);\n\n\t\t// Draw the menu bar\n\t\tbatch.draw(menuTexture,-4,-190);\n\t\t//batch.draw(menu_region, 0, -100);\n\t\t\n\t\t// Draw the free towers.\n\t\t\n\t\tfor (int i = 1; i <= 3; i++) \n\t\t{\n\t\t\tif (free_towers.get(i-1) != null) \n\t\t\t{\n\t\t\t\t//tower_region.setRegion( free_towers.get(i-1).getSpriteLocX(), free_towers.get(i-1).getSpriteLocY(), 16, 16 );\n\t\t\t\tbatch.draw(free_towers.get(i-1).getTextureRegion(), 29, (screenHeight - 60 * i) + 5, SQUARE_WIDTH, SQUARE_WIDTH);\n\t\t\t\t//batch.draw(tower_region, 33, screenHeight - 57 * i, 16, 16);\n\t\t\t\t\n\t\t\t\tString towerPrice = \"$\" + free_towers.get(i-1).getPrice();\n\t\t\t\tTextBounds priceBounds = mFont.getBounds(towerPrice);\n\t\t\t\tColor oldColor = mFont.getColor();\n\t\t\t\tmFont.setColor(Color.GREEN);\n\t\t\t\tmFont.drawWrapped(batch, towerPrice, 10, 33 + screenHeight - 58*i + priceBounds.height, priceBounds.width);\n\t\t\t\tmFont.setColor(oldColor);\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t// Keep the GC in its cage as long as possible. \n\t\tif( oldMoney != money || oldLife != life )\n\t\t{\n\t\t\tuiString = \"+: \" + life + '\\n' + \"$: \" + money;\n\t\t\tuiBounds = mFont.getMultiLineBounds(uiString);\n\t\t}\n\t\toldMoney = money;\n\t\toldLife = life;\n\t\t\t\t\n\t\t// Draw droid pause button if on an android device.\n\t\tif (runningDrd) {\n\t\t\t\n\t\t\tpause_button_region.setRegion(7*17, 23, 2, 2);\n\t\t\tbatch.draw(pause_button_region, DRD_PAUSE_RECT.x, DRD_PAUSE_RECT.y, DRD_PAUSE_RECT.width, DRD_PAUSE_RECT.height);\n\t\t\t\n\t\t\tString pause_button_string = \"Pause\";\n\t\t\tTextBounds pauseButtonBounds = mFont.getBounds(pause_button_string);\n\t\t\tmFont.drawWrapped(batch, pause_button_string,\n\t\t\t\t\t\t\t(32 - (pauseButtonBounds.width / 2)),\n\t\t\t\t\t\t\tDRD_PAUSE_RECT.y + pauseButtonBounds.height + 4, pauseButtonBounds.width);\n\t\t}\n\t\t\n\t\t// Draw the restart button if paused or game over.\n\t\tif (life <= 0 || isPaused) {\n\t\t\t\n\t\t\trestart_button_region.setRegion(7*17, 23, 2, 2);\n\t\t\tbatch.draw(restart_button_region, RESTART_RECT.x, RESTART_RECT.y, RESTART_RECT.width, RESTART_RECT.height);\n\t\t\t\n\t\t\tString restart_button_string = \"Restart\";\n\t\t\tTextBounds restartButtonBounds = mFont.getBounds(restart_button_string);\n\t\t\tmFont.drawWrapped(batch, restart_button_string,\n\t\t\t\t\t\t\t(32 - (restartButtonBounds.width / 2)),\n\t\t\t\t\t\t\tRESTART_RECT.y + restartButtonBounds.height + 4, restartButtonBounds.width);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// Draw the start button if we are in build mode.\n\t\tif (buildMode) {\n\t\t\t\n\t\t\tstart_button_region.setRegion(7*17, 23, 2, 2);\n\t\t\tbatch.draw(start_button_region, START_RECT.x, START_RECT.y, START_RECT.width, START_RECT.height);\n\t\t\t\n\t\t\tString start_button_string = \"Start\";\n\t\t\tTextBounds startButtonBounds = mFont.getBounds(start_button_string);\n\t\t\tmFont.drawWrapped(batch, start_button_string,\n\t\t\t\t\t\t\t(32 - (startButtonBounds.width / 2)),\n\t\t\t\t\t\t\tSTART_RECT.y + startButtonBounds.height + 4, startButtonBounds.width);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// Draw the sell button if we are not paused or in build mode and a tower is selected.\n\t\tif (!isPaused && !buildMode && selected != null) {\n\t\t\t\n\t\t\tsell_button_region.setRegion(7*17, 23, 2, 2);\n\t\t\tbatch.draw(sell_button_region, SELL_RECT.x, SELL_RECT.y, SELL_RECT.width, SELL_RECT.height);\n\t\t\t\n\t\t\tString sell_button_string = \"Sell\";\n\t\t\tTextBounds sellButtonBounds = mFont.getBounds(sell_button_string);\n\t\t\tmFont.drawWrapped(batch, sell_button_string,\n\t\t\t\t\t\t\t(32 - (sellButtonBounds.width / 2)),\n\t\t\t\t\t\t\tSTART_RECT.y + sellButtonBounds.height + 4, sellButtonBounds.width);\n\t\t}\n\t\t\n\t\t// Text\n\t\tString uiString = \"+ \" + life + '\\n' + \"$ \" + money;\n\t\tTextBounds uiBounds = mFont.getMultiLineBounds(uiString);\n\t\tColor oldColor = mFont.getColor();\n\t\tmFont.setColor(Color.RED);\n\t\tmFont.drawWrapped(batch, uiString, 3, uiBounds.height + 3, uiBounds.width);\n\t\tmFont.setColor(oldColor);\n\n\t\t// DEBUG TEXT\n\t\t//mFont.drawWrapped(batch, debugtext, 60, uiBounds.height + 3, 1000);\t\t\n\n\t\t// Draw the cursorTexture\n\t\tif (cursorState != null && cursorTexture != null) {\n\t\t\tbatch.draw(cursorTexture, cursorLocX - 8, screenHeight - cursorLocY - 8);\n\t\t}\n\t\t\n\t\t// Render Paused String if needed in bottom right corner.\n\t\tString center_string = null;\n\t\tif (isPaused) {\n\t\t\tcenter_string = \"PAUSED\";\n\t\t} else if (life <= 0) {\n\t\t\tcenter_string = \"GAME OVER\";\n\t\t}\n\t\t\n\t\tif (center_string != null) {\n\t\t\tTextBounds pausedBounds = mFont.getMultiLineBounds(center_string);\n\t\t\tColor oldColor2 = mFont.getColor();\n\t\t\tmFont.setColor(Color.RED);\n\t\t\tmFont.drawWrapped(batch, center_string,\n\t\t\t\t\t(screenWidth / 2) - (pausedBounds.width / 2),\n\t\t\t\t\t(screenHeight / 2) - (pausedBounds.height / 2), pausedBounds.width );\n\t\t\tmFont.setColor(oldColor2);\n\t\t}\n\t\t\n\t\tbatch.end();\n\t}", "public static void loadBlockTextures() {\n\t\tspriteTopOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOn.png\");\n\t\tspriteTopOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOff.png\");\n\t\tspriteROn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t\tspriteROff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOff.png\");\n\t\tspriteTOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteTOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOff.png\");\n\t}", "public void addSprite(Scene pScene, int x, int y) {\n\t\t\r\n\t}", "public void initialize()\r\n {\r\n ceresImage = new Image(\"Ceres.png\");\r\n erisImage = new Image(\"Eris.png\");\r\n haumeaImage = new Image(\"Haumea.png\");\r\n makemakeImage = new Image(\"MakeMake.png\");\r\n plutoImage = new Image(\"Pluto.png\");\r\n }", "public Mario(){\n setImage(\"06.png\");\n \n }", "public DumbEnemy(){\n setImage(new GreenfootImage(SPRITE_W,SPRITE_H));\n }", "public void findImages() {\n URL imgURL = ImageLoader.class.getResource(\"/BackgroundMenu.jpg\");\n this.backgroundImages.put(MenuP.TITLE, loadImage(imgURL));\n\n imgURL = ImageLoader.class.getResource(\"/backgroundGame.png\");\n this.backgroundImages.put(ArenaView.TITLE, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/gameOver.jpg\");\n this.backgroundImages.put(GameOverView.TITLE, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Player.png\");\n this.entityImages.put(ID.PLAYER, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Enemy1.png\");\n this.entityImages.put(ID.BASIC_ENEMY, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/boss.png\");\n this.entityImages.put(ID.BOSS_ENEMY, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/meteorBrown_big1.png\");\n this.entityImages.put(ID.METEOR, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/BlueBullet.png\");\n this.bulletImages.put(new Pair<>(ID.PLAYER_BULLET, ID.PLAYER), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/redBullet.png\");\n this.entityImages.put(ID.ENEMY_BULLET, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_FireBoost.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.FIRE_BOOST), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_Freeze.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.FREEZE), loadImage(imgURL)); \n \n imgURL = ImageLoader.class.getResource(\"/powerup_Health.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.HEALTH), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_Shield.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.SHIELD), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/bulletSpeedUp.png\");\n this.AnimationsPowerUp.put(new Pair<>(ID.POWER_UP, PowerUpT.FIRE_BOOST), loadEffect(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Explosion.png\");\n this.AnimationsEffect.put(new Pair<>(ID.EFFECT, SpecialEffectT.EXPLOSION), loadEffect(imgURL));\n\n imgURL = ImageLoader.class.getResource(\"/freeze.png\");\n this.AnimationsPowerUp.put(new Pair<>(ID.POWER_UP, PowerUpT.FREEZE), loadImage(imgURL));\n }", "private void initialiseMap(ArrayList<Sprite> allSprites){\n\t\tint x = (allSprites.get(0).getXOffset()*-2) + App.COLUMNS;\n\t\tint y = (allSprites.get(0).getYOffset()*-2) + App.ROWS;\n\t\t\n\t\tgameMap = new MapCell[x][y];\n\t\t\n\t\t//initialise the gameMap\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\tfor( int j = 0; j < y; j++) {\n\t\t\t\tthis.gameMap[i][j] = new MapCell();\n\t\t\t}\n\t\t}\n\t}", "private void drawSprite(int x, int y, int u, int v)\n {\n GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);\n this.mc.getTextureManager().bindTexture(STAT_ICONS);\n float f = 0.0078125F;\n float f1 = 0.0078125F;\n int i = 18;\n int j = 18;\n Tessellator tessellator = Tessellator.getInstance();\n BufferBuilder bufferbuilder = tessellator.getBuffer();\n bufferbuilder.begin(7, DefaultVertexFormats.POSITION_TEX);\n bufferbuilder.pos((double)(x + 0), (double)(y + 18), (double)this.zLevel).tex((double)((float)(u + 0) * 0.0078125F), (double)((float)(v + 18) * 0.0078125F)).endVertex();\n bufferbuilder.pos((double)(x + 18), (double)(y + 18), (double)this.zLevel).tex((double)((float)(u + 18) * 0.0078125F), (double)((float)(v + 18) * 0.0078125F)).endVertex();\n bufferbuilder.pos((double)(x + 18), (double)(y + 0), (double)this.zLevel).tex((double)((float)(u + 18) * 0.0078125F), (double)((float)(v + 0) * 0.0078125F)).endVertex();\n bufferbuilder.pos((double)(x + 0), (double)(y + 0), (double)this.zLevel).tex((double)((float)(u + 0) * 0.0078125F), (double)((float)(v + 0) * 0.0078125F)).endVertex();\n tessellator.draw();\n }", "public Sprite(String pathname) throws IOException {\n\t\tBufferedImage img = ImageIO.read(new File(pathname));\n\t\tint nbcol = img.getWidth() / SPRITE_WIDTH;\n\t\tint nblig = img.getHeight() / SPRITE_HEIGHT;\n\t\tm_length = nblig * nbcol;\n\t\tm_sprites = new BufferedImage[m_length];\n\t\tfor (int i = 0; i < m_length; i++) {\n\t\t\tint x = i % nbcol;\n\t\t\tint y = i / nbcol;\n\t\t\tm_sprites[i] = img.getSubimage(x * SPRITE_WIDTH, y * SPRITE_HEIGHT, SPRITE_WIDTH, SPRITE_HEIGHT);\n\t\t}\n\t}", "private void updateSprite(){\n //facing front\n getImage().clear();\n getImage().drawImage(SHEET,-(frame%SHEET_W)*SPRITE_W,0);\n if(!goLeft) getImage().mirrorHorizontally();\n if (iframes>0&&iframes%10<5) setImage(SpriteHelper.makeWhite( getImage()));\n else frame = frame + 1 % (SHEET_H* SHEET_W);\n }", "@Override\n\tpublic void onLoadResources() {\n\t\tBitmapTextureAtlasTextureRegionFactory.setAssetBasePath(\"gfx/\");\t\t\n\t\tmBitmapParralaxTextureAtlas=new BitmapTextureAtlas(1024,1024);\n\t\tmBitmapTextureAtlas=new BitmapTextureAtlas(512, 512);\n\t\tmTextureRegion=BitmapTextureAtlasTextureRegionFactory.createFromAsset(mBitmapParralaxTextureAtlas, this, \"parallax_background_layer_back.png\", 0, 0);\n\t\tbananaRegion=BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(mBitmapTextureAtlas, this, \"banana_tiled.png\", 0, 0, 4,2);\n\t\tmEngine.getTextureManager().loadTextures(mBitmapParralaxTextureAtlas,mBitmapTextureAtlas);\n\t}", "public void evaluateSprite(){\n if(this.orientation == Orientation.FACING_NORTH) {\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingNorth.png\"));\n }\n if(this.orientation == Orientation.FACING_WEST){\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingWest.png\"));\n }\n if(this.orientation == Orientation.FACING_SOUTH){\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingSouth.png\"));\n }\n if(this.orientation == Orientation.FACING_EAST){\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingEast.png\"));\n }\n\n this.sprite = new Sprite(texture);\n }", "@Override\r\n public void init() {\n Image bgImage = assets().getImage(\"images/bg.png\");\r\n ImageLayer bgLayer = graphics().createImageLayer(bgImage);\r\n graphics().rootLayer().add(bgLayer);\r\n\r\n // Create tiles\r\n tiles = new int[BOARD_MAX_WIDTH][BOARD_MAX_HEIGHT];\r\n printTiles();\r\n\r\n // Place mines at random positions\r\n int placedMines = 0;\r\n Random r = new Random();\r\n while (placedMines < MINES) {\r\n int row = r.nextInt(BOARD_MAX_WIDTH);\r\n int col = r.nextInt(BOARD_MAX_HEIGHT);\r\n if (tiles[row][col] == TILE_EMPTY) {\r\n tiles[row][col] = TILE_MINE;\r\n placedMines++;\r\n }\r\n }\r\n printTiles();\r\n\r\n // Count number of mines around blank tiles\r\n for (int row = 0; row < BOARD_MAX_WIDTH; row++) {\r\n for (int col = 0; col < BOARD_MAX_WIDTH; col++) {\r\n // Check surrounding tiles if mine\r\n if (tiles[row][col] == TILE_MINE) {\r\n for (int rowCheck = -1; rowCheck <= 1; rowCheck++) {\r\n for (int colCheck = -1; colCheck <= 1; colCheck++) {\r\n if (tileExistAndNotMine(row+rowCheck, col+colCheck)) {\r\n tiles[row+rowCheck][col+colCheck]++;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n printTiles();\r\n\r\n // Create tile map\r\n Map<Integer, TileType> tileMap = new HashMap<Integer, TileType>();\r\n tileMap.put(0, TileType.EMPTY);\r\n tileMap.put(1, TileType.ONE);\r\n tileMap.put(2, TileType.TWO);\r\n tileMap.put(3, TileType.THREE);\r\n tileMap.put(4, TileType.FOUR);\r\n tileMap.put(5, TileType.FIVE);\r\n tileMap.put(6, TileType.SIX);\r\n tileMap.put(7, TileType.SEVEN);\r\n tileMap.put(8, TileType.EIGHT);\r\n tileMap.put(9, TileType.MINE);\r\n\r\n // Create a GroupLayer to hold the sprites\r\n GroupLayer groupLayer = graphics().createGroupLayer();\r\n graphics().rootLayer().add(groupLayer);\r\n\r\n // Create graphic tiles\r\n tileList = new ArrayList<Tile>();\r\n for (int row = 0; row < BOARD_MAX_WIDTH; row++) {\r\n for (int col = 0; col < BOARD_MAX_WIDTH; col++) {\r\n Tile tile = new Tile(groupLayer, col*Tile.SIZE, row*Tile.SIZE, tileMap.get(tiles[row][col]), row, col);\r\n tileList.add(tile);\r\n }\r\n }\r\n\r\n // Timer text\r\n CanvasImage canvasImage = graphics().createImage(160, 70);\r\n timerLabel = canvasImage.canvas();\r\n ImageLayer countDownLayer = graphics().createImageLayer(canvasImage);\r\n countDownLayer.setTranslation(180, 10);\r\n graphics().rootLayer().add(countDownLayer);\r\n\r\n // Cleared tiles text\r\n CanvasImage clearedTilesImage = graphics().createImage(160, 70);\r\n clearedTilesLabel = clearedTilesImage.canvas();\r\n ImageLayer clearedTilesLayer = graphics().createImageLayer(clearedTilesImage);\r\n clearedTilesLayer.setTranslation(180, 30);\r\n graphics().rootLayer().add(clearedTilesLayer);\r\n updateClearedTiles();\r\n }", "public BoardFactory(PacManSprites spriteStore) {Collect.Hit(\"BoardFactory.java\",\"BoardFactory(PacManSprites spriteStore)\");this.sprites = spriteStore; Collect.Hit(\"BoardFactory.java\",\"BoardFactory(PacManSprites spriteStore)\", \"689\");}", "public Boat() {\n batch = new SpriteBatch();\n }", "@Override\n\tpublic void init() {\n\t\tloadSpritesheet();\n\t\tloadSounds();\n\t\tinitIntro();\n\t}", "@Override\n\tpublic void create() {\n\t\tthis.batch = new SpriteBatch();\n\t\t\n//\t\tgame.batch.begin();\n// player.draw(game.batch);\n// \n// game.batch.end();\n\t\t\n\t\tmanager = new AssetManager();\n\t\tmanager.setLoader(TiledMap.class, new TmxMapLoader(new InternalFileHandleResolver()));\n\t\tmanager.load(\"data/level1.tmx\", TiledMap.class);\n\t\tmanager.load(\"data/background.png\", Texture.class);\n//\t\tmanager.load(\"level1.tsx\", TiledMapTileSet.class);\n\t\tmanager.finishLoading();\n\t\tscreen = new GameScreen(this);\n\t\tsetScreen(screen);\n\t\t\n\t}", "Wall(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\", \"2420\");}", "private void graphicsLoader() {\n\t\tff2Logo = new Texture(Gdx.files.internal(uiName + \"/ff2logo.png\"));\n\t\tff2LogoHit = new Texture(Gdx.files.internal(uiName + \"/ff2logohit.png\"));\n\t\tplayerword = new Texture(Gdx.files.internal(uiName + \"/playerword.png\"));\n\t\tplayerwordHit = new Texture(Gdx.files.internal(uiName + \"/playerwordhit.png\"));\n\t\tturretword = new Texture(Gdx.files.internal(uiName + \"/turretword.png\"));\n\t\tturretwordHit = new Texture(Gdx.files.internal(uiName + \"/turretwordhit.png\"));\n\t\tfenceword = new Texture(Gdx.files.internal(uiName + \"/fenceword.png\"));\n\t\tfencewordHit = new Texture(Gdx.files.internal(uiName + \"/fencewordhit.png\"));\n\t\tbarrierword = new Texture(Gdx.files.internal(uiName + \"/barrierword.png\"));\n\t\tbarrierwordHit = new Texture(Gdx.files.internal(uiName + \"/barrierwordhit.png\"));\n\t\tgatewayword = new Texture(Gdx.files.internal(uiName + \"/gatewayword.png\"));\n\t\tgatewaywordHit = new Texture(Gdx.files.internal(uiName + \"/gatewaywordhit.png\"));\n\t\tpowerupword = new Texture(Gdx.files.internal(uiName + \"/powerupword.png\"));\n\t\tpowerupwordHit = new Texture(Gdx.files.internal(uiName + \"/powerupwordhit.png\"));\n\t\tswitchword = new Texture(Gdx.files.internal(uiName + \"/switchword.png\"));\n\t\tswitchwordHit = new Texture(Gdx.files.internal(uiName + \"/switchwordhit.png\"));\n\t\tenemyfighterword = new Texture(Gdx.files.internal(uiName + \"/enemyfighterword.png\"));\n\t\tenemyfighterwordHit = new Texture(Gdx.files.internal(uiName + \"/enemyfighterwordhit.png\"));\n\t\tmineword = new Texture(Gdx.files.internal(uiName + \"/mineword.png\"));\n\t\tminewordHit = new Texture(Gdx.files.internal(uiName + \"/minewordhit.png\"));\n\t\tpushblockword = new Texture(Gdx.files.internal(uiName + \"/pushblockword.png\"));\n\t\tpushblockwordHit = new Texture(Gdx.files.internal(uiName + \"/pushblockwordhit.png\"));\n\t\tbombupword = new Texture(Gdx.files.internal(uiName + \"/bombupword.png\"));\n\t\tbombupwordHit = new Texture(Gdx.files.internal(uiName + \"/bombupwordhit.png\"));\n\t\t\n\t\t// ui\n\t\tsoundonbutton = new Texture(Gdx.files.internal(uiName + \"/soundon.png\"));\n\t\tsoundoffbutton = new Texture(Gdx.files.internal(uiName + \"/soundoff.png\"));\n\t\tcreatebutton = new Texture(Gdx.files.internal(uiName + \"/createbutton.png\"));\n\t\tnocreatebutton = new Texture(Gdx.files.internal(uiName + \"/nocreatebutton.png\"));\n\t\tloaderTexture = new Texture(Gdx.files.internal(uiName + \"/ff2loader.png\"));\n\t\tgameOverTexture = new Texture(Gdx.files.internal(uiName + \"/gameover.png\"));\n\t\tnextFieldTexture = new Texture(Gdx.files.internal(uiName + \"/nextfield.png\"));\n\t\t\n\t\tmenubutton = new Texture(Gdx.files.internal(uiName + \"/menubutton.png\"));\n\t\tnomenubutton = new Texture(Gdx.files.internal(uiName + \"/nomenubutton.png\"));\n\t\tdiffEasyButton = new Texture(Gdx.files.internal(uiName + \"/diffeasybutton.png\"));\n\t\tdiffNormButton = new Texture(Gdx.files.internal(uiName + \"/diffnormbutton.png\"));\n\t\tdiffHardButton = new Texture(Gdx.files.internal(uiName + \"/diffhardbutton.png\"));\n\t\tosdButton = new Texture(Gdx.files.internal(uiName + \"/osdbutton.png\"));\n\t\t\n\t\texoFFfont = new BitmapFont(Gdx.files.internal(uiName + \"/font/exo-ff.fnt\"), true);\n\t\t\n\t\t// creator\n\t\texitbutton = new Texture(Gdx.files.internal(creatorName + \"/exitbutton.png\"));\n\t\tfilebutton = new Texture(Gdx.files.internal(creatorName + \"/filebutton.png\"));\n\t\ttoolsbutton = new Texture(Gdx.files.internal(creatorName + \"/toolsbutton.png\"));\n\t\tnextbutton = new Texture(Gdx.files.internal(creatorName + \"/nextbutton.png\"));\n\t\tprevbutton = new Texture(Gdx.files.internal(creatorName + \"/prevbutton.png\"));\n\t\tdeletebutton = new Texture(Gdx.files.internal(creatorName + \"/deletebutton.png\"));\n\t\tyesbutton = new Texture(Gdx.files.internal(creatorName + \"/yesbutton.png\"));\n\t\tnobutton = new Texture(Gdx.files.internal(creatorName + \"/nobutton.png\"));\n\t\tbuildbutton = new Texture(Gdx.files.internal(creatorName + \"/buildbutton.png\"));\n\t\tprocbutton = new Texture(Gdx.files.internal(creatorName + \"/procbutton.png\"));\n\t\trandbutton = new Texture(Gdx.files.internal(creatorName + \"/randbutton.png\"));\n\t\tgroupsbutton = new Texture(Gdx.files.internal(creatorName + \"/groupsbutton.png\"));\n\t\tarenabutton = new Texture(Gdx.files.internal(creatorName + \"/arenabutton.png\"));\n\t\tfileExitButton = new Texture(Gdx.files.internal(creatorName + \"/fileexitbutton.png\"));\n\t\tfileLoadButton = new Texture(Gdx.files.internal(creatorName + \"/loadbutton.png\"));\n\t\tfileSaveButton = new Texture(Gdx.files.internal(creatorName + \"/savebutton.png\"));\n\t\tfilePlayButton = new Texture(Gdx.files.internal(creatorName + \"/playbutton.png\"));\n\t\tfileNoPlayButton = new Texture(Gdx.files.internal(creatorName + \"/noplaybutton.png\"));\n\t\tfileSendButton = new Texture(Gdx.files.internal(creatorName + \"/sendbutton.png\"));\n\t\ttoasterBack = new Texture(Gdx.files.internal(creatorName + \"/toasterback.png\"));\n\t\twindowBack = new Texture(Gdx.files.internal(creatorName + \"/windowback.png\"));\n\t\temptyCellTexture = new Texture(Gdx.files.internal(creatorName + \"/emptycell.png\"));\n\t\tcreateSplashTexture = new Texture(Gdx.files.internal(creatorName + \"/createsplash.png\"));\n\t\t\n\t\tplayerDef = new Texture(Gdx.files.internal(creatorName + \"/player_def.png\"));\n\t\tgatewayDef = new Texture(Gdx.files.internal(creatorName + \"/gateway_def.png\"));\n\t\tpowerupDef = new Texture(Gdx.files.internal(creatorName + \"/powerup_def.png\"));\n\t\tbombupDef = new Texture(Gdx.files.internal(creatorName + \"/bombup_def.png\"));\n\t\tswitchDef = new Texture(Gdx.files.internal(creatorName + \"/switch_def.png\"));\n\t\tscaffoldDef = new Texture(Gdx.files.internal(creatorName + \"/scaffold_def.png\"));\n\t\tbarrierDef = new Texture(Gdx.files.internal(creatorName + \"/barrier_def.png\"));\n\t\tfenceDef = new Texture(Gdx.files.internal(creatorName + \"/fence_def.png\"));\n\t\tturretDef = new Texture(Gdx.files.internal(creatorName + \"/turret_def.png\"));\n\t\tenemyDef = new Texture(Gdx.files.internal(creatorName + \"/enemy_def.png\"));\n\t\tmineDef = new Texture(Gdx.files.internal(creatorName + \"/mine_def.png\"));\n\t\tpushblockDef = new Texture(Gdx.files.internal(creatorName + \"/pushblock_def.png\"));\n\t\thangerDef = new Texture(Gdx.files.internal(creatorName + \"/hanger_def.png\"));\n\t\t\n\t\tdeleteDef = new Texture(Gdx.files.internal(creatorName + \"/delete_def.png\"));\n\t\tdeleteSel = new Texture(Gdx.files.internal(creatorName + \"/delete_sel.png\"));\n\t\tlockUnlock = new Texture(Gdx.files.internal(creatorName + \"/lock_unlock.png\"));\n\t\tlockLock = new Texture(Gdx.files.internal(creatorName + \"/lock_lock.png\"));\n\t\ttoolSelect = new Texture(Gdx.files.internal(creatorName + \"/toolselect.png\"));\n\t\t\n\t\t// game stuff\n\t\tplayerShipTexture = new Texture(Gdx.files.internal(gameName + \"/player2ship.png\"));\n\t\tplayerShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shippowerup.png\"));\n\t\tplayerShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shipbombup.png\"));\n\t\tenemyShipTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2ship.png\"));\n\t\tenemyShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shippowerup.png\"));\n\t\tenemyShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipbombup.png\"));\n\t\tenemyShipOrderedTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipordered.png\"));\n\t\tplayerBulletTexture = new Texture(Gdx.files.internal(gameName + \"/playerlaser.png\"));\n\t\tplayerCableTexture = new Texture(Gdx.files.internal(gameName + \"/playercable.png\"));\n\t\tenemyBulletTexture = new Texture(Gdx.files.internal(gameName + \"/enemylaser.png\"));\n\t\tenemyCableTexture = new Texture(Gdx.files.internal(gameName + \"/enemycable.png\"));\n\t\tbombCableTexture = new Texture(Gdx.files.internal(gameName + \"/bombcable.png\"));\n\t\tturretTexture = new Texture(Gdx.files.internal(gameName + \"/turret.png\"));\n\t\tturrethitTexture = new Texture(Gdx.files.internal(gameName + \"/turrethit.png\"));\t\n\t\tfenceTexture = new Texture(Gdx.files.internal(gameName + \"/fence.png\"));\n\t\tfencehitTexture = new Texture(Gdx.files.internal(gameName + \"/fencehit.png\"));\n\t\tbarrierTexture = new Texture(Gdx.files.internal(gameName + \"/barrier.png\"));\n\t\tbarrierhitTexture = new Texture(Gdx.files.internal(gameName + \"/barrierhit.png\"));\n\t\tgatewayonTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayon.png\"));\n\t\tgatewayoffTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayoff.png\"));\n\t\tpowerupTexture = new Texture(Gdx.files.internal(gameName + \"/powerup.png\"));\n\t\tbombupTexture = new Texture(Gdx.files.internal(gameName + \"/bombup.png\"));\n\t\tbombupCharge = new Texture(Gdx.files.internal(gameName + \"/bombupcharge.png\"));\n\t\texplosion = new Texture(Gdx.files.internal(gameName + \"/explosion.png\"));\n\t\tdeath = new Texture(Gdx.files.internal(gameName + \"/death.png\"));\n\t\tpowerupCharge = new Texture(Gdx.files.internal(gameName + \"/powerupcharge.png\"));\n\t\tswitchonTexture = new Texture(Gdx.files.internal(gameName + \"/switchon.png\"));\n\t\tswitchoffTexture = new Texture(Gdx.files.internal(gameName + \"/switchoff.png\"));\n\t\tscaffoldTexture = new Texture(Gdx.files.internal(gameName + \"/scaffold.png\"));\n\t\tmineTexture = new Texture(Gdx.files.internal(gameName + \"/mine.png\"));\n\t\tminehitTexture = new Texture(Gdx.files.internal(gameName + \"/minehit.png\"));\n\t\tmineDebrisTexture = new Texture(Gdx.files.internal(gameName + \"/minedebris.png\"));\n\t\tpushblockTexture = new Texture(Gdx.files.internal(gameName + \"/pushblock.png\"));\n\t\thangerTexture = new Texture(Gdx.files.internal(gameName + \"/hanger.png\"));\n\t\thangerhitTexture = new Texture(Gdx.files.internal(gameName + \"/hangerhit.png\"));\n\t\t// have a catch here for the loaded=true?\n\t\tloaded = true;\n\t}", "public void initTiles() {\n\t\ttileList.add(new Go());\n\n\t\t// Brown properties\n\t\tProperty mediterranean = new Property(\"Mediterranean\");\n\t\tProperty balticAve = new Property(\"Baltic Avenue\");\n\n\t\t// Light blue properties\n\t\tProperty orientalAve = new Property(\"Oriental Avenue\");\n\t\tProperty vermontAve = new Property(\"Vermont Avenue\");\n\t\tProperty connecticutAve = new Property(\"Connecticut Avenue\");\n\n\t\t// Magenta properties\n\t\tProperty stCharles = new Property(\"St. Charles Place\");\n\t\tProperty statesAve = new Property(\"States Avenue\");\n\t\tProperty virginiaAve = new Property(\"Virginia Avenue\");\n\n\t\t// Orange properties\n\t\tProperty stJames = new Property(\"St. James Place\");\n\t\tProperty tennesseeAve = new Property(\"Tennessee Avenue\");\n\t\tProperty newYorkAve = new Property(\"New York Avenue\");\n\n\t\t// Red properties\n\t\tProperty kentuckyAve = new Property(\"Kentucky Avenue\");\n\t\tProperty indianaAve = new Property(\"Indiana Avenue\");\n\t\tProperty illinoisAve = new Property(\"Illinois Avenue\");\n\n\t\t// Yellow Properties\n\t\tProperty atlanticAve = new Property(\"Atlantic Avenue\");\n\t\tProperty ventnorAve = new Property(\"Ventnor Avenue\");\n\t\tProperty marvinGard = new Property(\"Marvin Gardins\");\n\n\t\t// Green Properties\n\t\tProperty pacificAve = new Property(\"Pacific Avenue\");\n\t\tProperty northCar = new Property(\"North Carolina Avenue\");\n\t\tProperty pennsylvannia = new Property(\"Pennsylvania Avenue\");\n\n\t\t// Dark blue properties\n\t\tProperty parkPlace = new Property(\"Park Place\");\n\t\tProperty boardWalk = new Property(\"Boardwalk\");\n\n\t\t// Tax tiles\n\t\tTaxTile incomeTax = new TaxTile(\"Income Tax\", 200);\n\t\tTaxTile luxuryTax = new TaxTile(\"Luxury Tax\", 100);\n\n\t\t// Utilities\n\t\tUtility electric = new Utility(\"Electric Company\");\n\t\tUtility water = new Utility(\"Water Works\");\n\n\t\t// Railroads\n\t\tRailroad reading = new Railroad(\"Reading\");\n\t\tRailroad pennRail = new Railroad(\"Pennsylvania\");\n\t\tRailroad bno = new Railroad(\"B & O\");\n\t\tRailroad shortLine = new Railroad(\"Short Line\");\n\n\t\t// Chance and community chest\n\t\tChance chance = new Chance();\n\t\tCommunity chest = new Community();\n\n\t\t// Adds the properties by color in accordance with their position on the board\n\t\t// adds color + placement of piece to a list of their respective colors\n\t\tbrown.add(1);\n\t\tbrown.add(3);\n\t\trailroads.add(5);\n\t\tlightBlue.add(6);\n\t\tlightBlue.add(8);\n\t\tlightBlue.add(9);\n\t\tmagenta.add(11);\n\t\tutilities.add(12);\n\t\tmagenta.add(13);\n\t\tmagenta.add(14);\n\t\trailroads.add(15);\n\t\torange.add(16);\n\t\torange.add(18);\n\t\torange.add(19);\n\t\tred.add(21);\n\t\tred.add(23);\n\t\tred.add(24);\n\t\trailroads.add(25);\n\t\tyellow.add(26);\n\t\tyellow.add(27);\n\t\tutilities.add(28);\n\t\tyellow.add(29);\n\t\tgreen.add(31);\n\t\tgreen.add(32);\n\t\tgreen.add(34);\n\t\trailroads.add(35);\n\t\tdarkBlue.add(37);\n\t\tdarkBlue.add(39);\n\n\t\t// tileList is the list of tiles of the board where each tile is representative of a place on the board\n\t\t// adds each tile is chronological order beginning of the board \"go\"\n\t\t//this list includes: properties, taxes, railroads, chance, community chest\n\t\t\n\t\ttileList.add(new Go());\n\n\t\ttileList.add(mediterranean);\n\t\ttileList.add(chest);\n\t\ttileList.add(balticAve);\n\t\ttileList.add(incomeTax);\n\t\ttileList.add(reading);\n\t\ttileList.add(orientalAve);\n\t\ttileList.add(chance);\t\n\t\ttileList.add(vermontAve);\n\t\ttileList.add(connecticutAve);\n\n\t\ttileList.add(new Jail());\n\t\t\t\n\t\ttileList.add(stCharles);\n\t\ttileList.add(electric);\t\t\t\n\t\ttileList.add(statesAve);\t\t\t\n\t\ttileList.add(virginiaAve);\n\t\ttileList.add(pennRail);\n\t\ttileList.add(stJames);\t\n\t\ttileList.add(chest);\n\t\ttileList.add(tennesseeAve);\t\t\t\n\t\ttileList.add(newYorkAve);\n\n\t\ttileList.add(new FreeParking());\n\t\t\t\n\t\ttileList.add(kentuckyAve);\t\t\n\t\ttileList.add(chance);\t\n\t\ttileList.add(indianaAve);\t\t\t\n\t\ttileList.add(illinoisAve);\n\t\ttileList.add(bno);\n\t\ttileList.add(atlanticAve);\t\t\t\n\t\ttileList.add(ventnorAve);\n\t\ttileList.add(water);\n\t\ttileList.add(marvinGard);\n\n\t\ttileList.add(new GoToJail());\n\t\t\t\t\t\n\t\ttileList.add(pacificAve);\t\t\t\n\t\ttileList.add(northCar);\n\t\ttileList.add(chest);\t\t\t\n\t\ttileList.add(pennsylvannia);\n\t\ttileList.add(shortLine);\n\t\ttileList.add(chance);\n\t\ttileList.add(parkPlace);\n\t\ttileList.add(luxuryTax);\n\t\ttileList.add(boardWalk);\n\t}", "public static void load(){\n for(TextureHandler t : textures){\n if(t.texture!=null)t.texture.dispose();\n }\n textures.clear();\n \n //if the textures are corrupt or just arent there then the error TextureHandler will\n //be a placeholder which is generated programatically so it is always there\n int size = 64;\n Pixmap pixmap = new Pixmap(size,size, Format.RGBA8888 );\n pixmap.setColor(1f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,size/2);\n pixmap.setColor(0f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,(size/2)-2);\n pixmap.setColor(1f,0f,0f,1f);\n int offset = size/6;\n int length = (size+size)/3;\n pixmap.drawLine(offset,offset,offset+length,offset+length);\n pixmap.drawLine(offset+length,offset,offset,offset+length);\n error = new Texture(pixmap);\n pixmap.dispose();\n //things that get rendered the most get put at the top so theyre the first in the list\n textures.add(new TextureHandler(\"Block\" ,\"Block.png\",true));\n textures.add(new TextureHandler(\"Block1\",\"Block1.png\",true));\n textures.add(new TextureHandler(\"Block2\",\"Block2.png\",true));\n textures.add(new TextureHandler(\"Block3\",\"Block3.png\",true));\n textures.add(new TextureHandler(\"Block4\",\"Block4.png\",true));\n textures.add(new TextureHandler(\"GameBackground\",\"GameBackground.png\",true));\n \n textures.add(new TextureHandler(\"Hints\",\"Hints.png\",false));\n textures.add(new TextureHandler(\"Left\" ,\"ButtonLeft.png\",true));\n textures.add(new TextureHandler(\"Right\" ,\"ButtonRight.png\",true));\n textures.add(new TextureHandler(\"Rotate\",\"ButtonRotate.png\",true));\n textures.add(new TextureHandler(\"Pause\" ,\"ButtonPause.png\",true));\n textures.add(new TextureHandler(\"Label\" ,\"TextBox.png\",true));\n \n textures.add(new TextureHandler(\"Locked\",\"levels/Locked.png\",false));\n textures.add(new TextureHandler(\"Timer\",\"levels/Clock.png\",false));\n \n textures.add(new TextureHandler(\"PauseSelected\",\"SelectedPause.png\",true));\n textures.add(new TextureHandler(\"LeftSelected\",\"SelectedLeft.png\",true));\n textures.add(new TextureHandler(\"RightSelected\",\"SelectedRight.png\",true));\n textures.add(new TextureHandler(\"RotateSelected\",\"SelectedRotate.png\",true));\n \n textures.add(new TextureHandler(\"Background\",\"Background.png\",false));\n textures.add(new TextureHandler(\"Title\",\"MainMenuTitle.png\",false));\n\n }", "protected void load(SpriteInfo[] arr) {\n\t\tassert arr != null;\n\t\tassert arr.length > 0;\n\n\t\tfor (SpriteInfo s : arr) {\n\t\t\tassert s != null;\n\t\t\tsprites.put(s.name, sheet.getSubimage(s.getX(), s.getY(), s.getWidth(), s.getHeight()));\n\t\t}\n\t}", "public void render(){\n spriteBatch.begin();\n drawEnemies();\n drawPlayer();\n drawBullets();\n spriteBatch.end();\n if(debug){\n drawDebug();\n }\n }", "@Override\n public void updateStates() {\n mySprite.update();\n }", "Sprite(float x, float y, float w, float h) {\n _img = createImage(1, 1, RGB);\n _x = x;\n _y = y;\n _w = w;\n _h = h;\n _rotVector = new PVector(1, 0, 0);\n resetRectHitbox();\n }", "public void updateLavaTiles() {\n for (Tile tile : getTiles()) {\n Random random = new Random();\n if (tile.getType().matches(\"BurnTile\")) {\n tile.setTexture(\"Volcano_\" + (random.nextInt(4) + 5));\n }\n }\n }", "private void createIdleRegions(Texture spriteSheet) {\n\n TextureRegion downRegion = new TextureRegion(spriteSheet, 0, 0, TILESIZE, TILESIZE);\n\n idleSprites.add(new TextureRegion(spriteSheet, 0, TILESIZE * 3, TILESIZE, TILESIZE));\n idleSprites.add(new TextureRegion(spriteSheet, 0, TILESIZE, TILESIZE, TILESIZE));\n idleSprites.add(downRegion);\n idleSprites.add(new TextureRegion(spriteSheet, 0, TILESIZE * 2, TILESIZE, TILESIZE));\n idleSprites.add(downRegion);\n }", "private void addCharacters() {\r\n\t\tplayer = new GImage(\"PlayerEast.png\");\r\n\t\tplayer.scale(.75);\r\n\t\tadd(player, player.getWidth() / 2.0, level1.getY() - player.getHeight());\r\n\t\t\r\n\t\tdragon1 = new GImage(\"Dragon1.png\");\r\n\t\tadd(dragon1, getWidth() - dragon1.getWidth() * 1.5, level1.getY() - dragon1.getHeight());\r\n\t\t\r\n\t\tdragon2 = new GImage(\"Dragon2.png\");\r\n\t\tadd(dragon2, dragon2.getWidth() / 2.0, level2.getY() - dragon2.getHeight());\r\n\t\t\r\n\t\tGObject karel = new GImage(\"karel.png\");\r\n\t\tadd(karel, getWidth() - karel.getWidth(), level3.getY() - karel.getHeight());\r\n\t\t\r\n\t\tmehran = new GImage(\"EvilMehran1.png\");\r\n\t\tadd(mehran, getWidth() - mehran.getWidth() - karel.getWidth(), level3.getY() - mehran.getHeight());\r\n\t}", "void defaultsetup(int phi) \n {// The Images should be loded here... Also add labels here\n System.out.println(\"IN DEFAULT SETUP..\");\n if( phi == 0) \n whiteToPlay = true;\n else if (phi == 1) \n whiteToPlay = false;\n // White Chess Pieces\n whiteHorse1.position = 1; whiteHorse1.color = 0;\n whiteHorse2.position = 6; whiteHorse2.color = 0;\n whiteQueen.position = 3; whiteQueen.color = 0;\n whiteKing.position =4 ; whiteKing.color = 0;\n whiteCastle1.position = 0; whiteCastle1.color = 0;\n whiteCastle2.position = 7; whiteCastle2.color = 0;\n whiteBishop1.position = 2; whiteBishop1.color = 0;\n whiteBishop2.position = 5; whiteBishop2.color = 0;\n int y = 8;\n for(int x = 0 ; x < 8; x++)\n {\n whitePawn[x] = new pawn();\n whitePawn[x].position = 8+x;\n whitePawn[x].color = 0;\n }\n //Black Chess Pieces\n blackHorse1.position = 57; blackHorse1.color = 1;\n blackHorse2.position = 62; blackHorse2.color = 1;\n blackQueen.position = 59; blackQueen.color = 1;\n blackKing.position = 60; blackKing.color = 1;\n blackCastle1.position = 56;blackCastle1.color = 1;\n blackCastle2.position = 63;blackCastle2.color = 1;\n blackBishop1.position = 58;blackBishop1.color = 1;\n blackBishop2.position = 61;blackBishop2.color = 1;\n y = 8;\n for(int x = 0 ; x < 8; x++)\n {\n blackPawn[x] = new pawn();\n blackPawn[x].position = 48+x;\n blackPawn[x].color = 1;\n }\n \n this.updatePositions();\n }", "public void init(GameContainer container) throws SlickException {\n\t\t\n\t\tswitch (species) {\n\t\tcase AQUA:\n\t\t\tmovmentUp = new SpriteSheet(\"data/Aqua_1S_U.png\", 25, 25);\n\t\t\tmovmentDown = new SpriteSheet(\"data/Aqua_1S_D.png\", 25, 25);\n\t\t\tmovmentLeft = new SpriteSheet(\"data/Aqua_1S_L.png\", 25, 25);\n\t\t\tmovmentRight = new SpriteSheet(\"data/Aqua_1S_R.png\", 25, 25);\n\t\t\tbreak;\n\t\tcase HERBA:\n\t\t\tmovmentUp = new SpriteSheet(\"data/Terra_S1_U.png\", 25, 25);\n\t\t\tmovmentDown = new SpriteSheet(\"data/Terra_S1_D.png\", 25, 25);\n\t\t\tmovmentLeft = new SpriteSheet(\"data/Terra_S1_L.png\", 25, 25);\n\t\t\tmovmentRight = new SpriteSheet(\"data/Terra_S1_R.png\", 25, 25);\n\t\t\tbreak;\n\t\tcase LITUS:\n\t\t\tmovmentUp = new SpriteSheet(\"data/Up.png\", 25, 25);\n\t\t\tmovmentDown = new SpriteSheet(\"data/Down.png\", 25, 25);\n\t\t\tmovmentLeft = new SpriteSheet(\"data/Left.png\", 25, 25);\n\t\t\tmovmentRight = new SpriteSheet(\"data/Right.png\", 25, 25);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmovmentUp = new SpriteSheet(\"data/Up.png\", 25, 25);\n\t\t\tmovmentDown = new SpriteSheet(\"data/Down.png\", 25, 25);\n\t\t\tmovmentLeft = new SpriteSheet(\"data/Left.png\", 25, 25);\n\t\t\tmovmentRight = new SpriteSheet(\"data/Right.png\", 25, 25);\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tup = new Animation(movmentUp, 200);\n\t\tdown = new Animation(movmentDown, 200);\n\t\tleft = new Animation(movmentLeft, 200);\n\t\tright = new Animation(movmentRight, 200);\n\t\t\n\t\tsprite = right;\n\t}", "public void init() {\n\t\t// Image init\n\t\tcharacter_static = MainClass.getImage(\"\\\\data\\\\character.png\");\n\t\tcharacter_static2 = MainClass.getImage(\"\\\\data\\\\character2.png\");\n\t\tcharacter_static3 = MainClass.getImage(\"\\\\data\\\\character3.png\");\n\t\t\n\t\tcharacterCover = MainClass.getImage(\"\\\\data\\\\cover.png\");\n\t\tcharacterJumped = MainClass.getImage(\"\\\\data\\\\jumped.png\");\n\t\t\n\t\t// Animated when static.\n\t\tthis.addFrame(character_static, 2000);\n\t\tthis.addFrame(character_static2, 50);\n\t\tthis.addFrame(character_static3, 100);\n\t\tthis.addFrame(character_static2, 50);\n\t\t\n\t\tthis.currentImage = super.getCurrentImage();\n\t}", "private void createSpritesList() {\n\t\tArrayList<PartyMember> pmList = player.getPartyMembers();\n\t\tfor (int i = 0; i < pmList.size(); i++) {\n\t\t\tSprite as = pmList.get(i);\n\t\t\tsprites.put(as.hashCode(), as);\n\t\t}\n\t\telements = new SortingElement[sprites.size()];\n\t\tIterator<Integer> it = sprites.keySet().iterator();\n\t\tint i = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tint index = it.next();\n\t\t\tSprite as = sprites.get(index);\n\t\t\telements[i++] = new SortingElement(as.pos[Values.Y], index);\n\t\t}\n\t}", "public void initialize2() {\n\t\txHero1 = 10;\n\t\tinsecondmode=true;\n\t\tImageIcon bg = new ImageIcon(\"bg for one player.png\");\n\t\tBackground = (bg.getImage().getScaledInstance(bg.getIconWidth(), bg.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tImageIcon[] in1 = new ImageIcon[12];\n\t\tin1[0] = new ImageIcon(\"\");\n\t\tin1[1] = new ImageIcon(\"\");\n\t\tin1[2] = new ImageIcon(\"\");\n\t\tin1[3] = new ImageIcon(\"\");\n\t\tin1[4] = new ImageIcon(\"\");\n\t\tin1[5] = new ImageIcon(\"\");\n\t\tin1[6] = new ImageIcon(\"\");\n\t\tin1[7] = new ImageIcon(\"\");\n\t\tin1[8] = new ImageIcon(\"\");\n\t\tin1[9] = new ImageIcon(\"\");\n\t\tin1[10] = new ImageIcon(\"\");\n\t\tin1[11] = new ImageIcon(\"\");\n\t\tImageIcon[] in2 = new ImageIcon[12];\n\t\tin2[0] = new ImageIcon(\"Hero02.png\");\n\t\tin2[1] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[2] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[3] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[4] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[5] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[6] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[7] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[8] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[9] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[10] = new ImageIcon(\"Hero02 Attack01.png\");\n\t\tin2[11] = new ImageIcon(\"Hero02 Die.png\");\n\t\tImageIcon[] inBullet1 = new ImageIcon[3];\n\t\tinBullet1[0] = new ImageIcon(\"\");\n\t\tinBullet1[1] = new ImageIcon(\"\");\n\t\tinBullet1[2] = new ImageIcon(\"\");\n\t\tImageIcon[] inBullet2 = new ImageIcon[5];\n\t\tinBullet2[0] = new ImageIcon(\"20.png\");\n\t\tinBullet2[1]= new ImageIcon(\"50.png\");\n\t\tinBullet2[2]= new ImageIcon(\"100.png\");\n\t\tinBullet2[3]= new ImageIcon(\"200.png\");\n\t\tinBullet2[4]= new ImageIcon(\"500.png\");\n\t\tcannotdefend(1);\n\t\tHero1.settemplate(in2);\n\t\tHero2.settemplate(in1);\n\t\tBullet1.settemplate(inBullet2);\n\t\tBullet2.settemplate(inBullet1);\n\t\tHero1.setstatus(0);\n\t\tHero2.setstatus(0);\n\t}", "public void Define() {\n manager = new Manager(); // Initialize other classes\n save = new Save();\n store = new Store();\n menu = new Menu();\n postgame = new PostGame();\n\n map = new ImageIcon(\"res/map.png\").getImage(); // Load background image\n \t\n \n // Load the track image\n track = new ImageIcon(\"res/TrackCorner.png\").getImage(); // Initialize the track image file\n \n // Load images for the towers\n tileset_towers[0] = new ImageIcon(\"res/redlasertower.png\").getImage();\n tileset_towers[1] = new ImageIcon(\"res/blueLaserTower.png\").getImage();\n tileset_towers[2] = new ImageIcon(\"res/goldLaserTower.png\").getImage();\n \n // Load images for the indicators\n tileset_indicators[0] = new ImageIcon(\"res/button.png\").getImage();\n tileset_indicators[1] = new ImageIcon(\"res/money.png\").getImage();\n tileset_indicators[2] = new ImageIcon(\"res/heart.png\").getImage();\n \n // Load images for the buttons\n tileset_buttons[0] = new ImageIcon(\"res/redLaserTower.png\").getImage();\n tileset_buttons[1] = new ImageIcon(\"res/blueLaserTower.png\").getImage();\n tileset_buttons[2] = new ImageIcon(\"res/goldLaserTower.png\").getImage();\n tileset_buttons[3] = new ImageIcon(\"res/trash.png\").getImage();\n \n // Load images for the solider\n tileset_soldier[0] = new ImageIcon(\"res/enemyD1.png\").getImage();\n tileset_soldier[1] = new ImageIcon(\"res/enemyD2.png\").getImage();\n \n tileset_soldier[2] = new ImageIcon(\"res/enemyR1.png\").getImage();\n tileset_soldier[3] = new ImageIcon(\"res/enemyR2.png\").getImage();\n \n tileset_soldier[4] = new ImageIcon(\"res/enemyL1.png\").getImage();\n tileset_soldier[5] = new ImageIcon(\"res/enemyL2.png\").getImage();\n \n tileset_soldier[6] = new ImageIcon(\"res/enemyU1.png\").getImage();\n tileset_soldier[7] = new ImageIcon(\"res/enemyU2.png\").getImage();\n \n // Save the configuration of the track\n save.loadSave(new File(\"save/mission.txt\"));\n save.loadHighScore();\n \n // Initialize enemy objects\n for(int i = 0; i < enemies.length; i++) {\n \tenemies[i] = new Enemy();\n }\n \n }", "public Sprite(String newSpriteLocation){\n\t\timages = new Texture[1];\n\t\timages[0] = new Texture(newSpriteLocation);\n\t}" ]
[ "0.73631483", "0.7164798", "0.7028851", "0.68722075", "0.6736679", "0.6730188", "0.6710099", "0.66872454", "0.66420645", "0.6593736", "0.65498424", "0.6446482", "0.6442757", "0.643326", "0.63968164", "0.6358798", "0.63508606", "0.63325405", "0.63309884", "0.6327887", "0.6320714", "0.6319615", "0.63163334", "0.6294311", "0.6292791", "0.62892807", "0.62731785", "0.626971", "0.6269597", "0.62537277", "0.6252576", "0.6240665", "0.6231683", "0.6220979", "0.6207253", "0.61935514", "0.61715543", "0.6155183", "0.61525965", "0.6150142", "0.6147524", "0.61456835", "0.61308026", "0.6113082", "0.61045206", "0.61012197", "0.60968864", "0.6089494", "0.60854244", "0.60846853", "0.6070811", "0.60696644", "0.6046685", "0.6023279", "0.60193044", "0.6016158", "0.6013605", "0.60041434", "0.6001529", "0.59989464", "0.5984959", "0.59820914", "0.5979696", "0.59718937", "0.5970846", "0.59671307", "0.5965563", "0.59538466", "0.5947412", "0.5940859", "0.59278435", "0.59272707", "0.59222436", "0.5922083", "0.5916398", "0.5915989", "0.59157294", "0.5915339", "0.5914983", "0.591491", "0.5914562", "0.5913787", "0.591377", "0.5905126", "0.59044224", "0.58917975", "0.5879362", "0.5875897", "0.58717483", "0.5870462", "0.5866566", "0.5852827", "0.58503103", "0.5849633", "0.5847765", "0.5847602", "0.5846243", "0.5844396", "0.5837476", "0.5829226", "0.5827427" ]
0.0
-1
Constructor Creates the instance of AdminAggregationReviewBean class.
public AdminAggregationReviewBean(Project project, User reviewer, AggregationReview[] reviews) { this.reviewer = reviewer; if (reviews != null) { for (int i = 0; i < reviews.length; i++) { if (reviews[i].getReviewer().getId() == reviewer.getId()) { review = reviews[i]; } } } mapping.put(Constants.ID_KEY, new Long(project.getId())); mapping.put(Constants.REVIEWER_ID_KEY, new Long(reviewer.getId())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ReviewBean() {\n\n }", "protected Review() {}", "public ReviewBean(String bid, String review, int rating) {\n\t\tsuper();\n\t\tthis.bid = bid;\n\t\tthis.review = review;\n\t\tthis.rating = rating;\n\t}", "public PostViewBean() {\n }", "public ReviewsAdapter() {\n\t\tmovieReviews = new ArrayList<MovieReview>();\n\t}", "public ProductSearchCriteriaBean() {\n }", "public AggregationReview getReview() {\n return review;\n }", "public Reviews() { }", "public ReviewBanner(AdapterReviewBinding view) {\n super(view.getRoot());\n binding = view;\n }", "public UIUserLogginMangementBean() {\n }", "public BookingBean() {\n }", "public EquipmentSetAccessBean () {\n super();\n }", "public RestBean() {\n System.out.println(\"made RestBean\");\n movieData = new ArrayList<Movie>();\n }", "public Review() {\n this.review_id = \"\";\n this.user_id = \"\";\n this.business_id = \"\";\n this.stars = 0;\n this.useful = 0;\n this.funny = 0;\n this.cool = 0;\n this.date = LocalDateTime.now();\n this.text = \"\";\n }", "public ProposalSpecialReviewForm() {\r\n }", "public GroupCreateBean() {\n\t\tsuper();\n\t\tthis.initializeNumbers();\t\t\n\t}", "public ProductosBean() {\r\n }", "public OfferBean() {\n\n }", "public AdmissionsBean() {\n }", "public DebtorsAgingBean() {\n }", "public HawtDBAggregationRepository() {\n }", "private AggregatorBeanAssistant() { }", "RoomstlogBean()\n {\n }", "private void initializeReviewsAdapter() {\n mReviewsAdapter = new ReviewsAdapter(mUserReviewDataArrayList, this, this, TRUE);\n mBinding.rvPdpProductReviews.setAdapter(mReviewsAdapter);\n }", "public ShoppingCartBean(){\n super();\n }", "public UserRating() {\n }", "public milkVariationBean(){}", "public CrkProductExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public DatasetSearchBean() {\n }", "public Reviews (ArrayList<Review> list)\n\t{\n\t\tthis.list = list;\n\t}", "public CalificacionBean() {\n }", "public CustomerManagedBean() {\r\n }", "public BlogUserExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public CategoryratingcriteriaResource() {\n }", "public DonusturucuBean() {\n }", "public CartBean() {\n }", "public PapelBean() {\n }", "public CustomerSummary() {\n initComponents();\n }", "public ReviewServices(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tsuper();\r\n\t\tthis.request = request;\r\n\t\tthis.response = response;\r\n\t\tthis.reviewDAO = new ReviewDAO();\r\n\t}", "public TbProductOperatorExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public CentreBean() {\r\n if(centreToAdd == null){\r\n centreToAdd = new Centres();\r\n }\r\n \r\n }", "public Review(String myReview, String myReviewer, String myReviewed, String myDatePosted, String myRole,\n int myReviewID, double myRating) {\n this.myReview = myReview;\n this.myReviewer = myReviewer;\n this.myReviewed = myReviewed;\n this.myDatePosted = myDatePosted;\n this.myRole = myRole;\n this.myReviewID = myReviewID;\n this.myRating = myRating;\n }", "public EmpdetailExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public ReviewInfo()\n {\n m_nReviewValue = REVIEW_VALUE_POSITIVE;\n m_nID = 1;\n m_type = EntityType.kPolices;\n m_strReviewText = \"\";\n }", "public Repo_Receipt() {\n initComponents();\n }", "public ClasificacionBean() {\r\n }", "public void setReviewRatingStatistics(final ReviewRatingStatistics reviewRatingStatistics);", "public Bean_article() {\n }", "public ChequesSearchBean() {\n }", "public PerfilActBean() {\r\n }", "public ProductoAbm() {\n initComponents();\n }", "public IrpUserMedalExample() {\r\n oredCriteria = new ArrayList();\r\n }", "public ItemmatlBean() {\n }", "public ProjectOfferPOExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public CarAccessBean () {\n super();\n }", "public UpdateStockDetailBean() {\n }", "public ReviewDefault(AdapterSeriesReviewBinding view) {\n super(view.getRoot());\n binding = view;\n }", "public EditorialBean() {\r\n editorialDAOImp = new EditorialDAOImp();\r\n editorial = new Editorial();\r\n }", "public userBean() {\r\n }", "public CrudBean() {\n }", "public CampingBean() {\n }", "public AgregarAlumnoAdmin() {\n initComponents();\n }", "public RolesUserGroupRelpo()\n {\n }", "public void setReview(final Review review);", "public ReviewDTO(ReviewEntity entity) {\n\n this.id = entity.getId();\n this.name = entity.getName();\n this.source = entity.getSource();\n this.description = entity.getDescription();\n }", "public NewsCustomerSurveyExample() {\r\n oredCriteria = new ArrayList();\r\n }", "public OfficerWS() {\n officerDao = new OfficerDaoBd();\n }", "public DDEBaseDescStatusBean() {\n }", "public VAdmin() {\n initComponents();\n }", "public ProductoListarBean() {\r\n }", "public AjaxBean() {\n }", "public QuotationDetailProStaffManagedBean() {\n }", "@JsonCreator\n ReviewImpl(@JsonProperty(\"id\") final String id, @JsonProperty(\"version\") final Long version,\n @JsonProperty(\"createdAt\") final java.time.ZonedDateTime createdAt,\n @JsonProperty(\"lastModifiedAt\") final java.time.ZonedDateTime lastModifiedAt,\n @JsonProperty(\"lastModifiedBy\") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy,\n @JsonProperty(\"createdBy\") final com.commercetools.api.models.common.CreatedBy createdBy,\n @JsonProperty(\"key\") final String key, @JsonProperty(\"uniquenessValue\") final String uniquenessValue,\n @JsonProperty(\"locale\") final String locale, @JsonProperty(\"authorName\") final String authorName,\n @JsonProperty(\"title\") final String title, @JsonProperty(\"text\") final String text,\n @JsonProperty(\"target\") final com.commercetools.api.models.common.Reference target,\n @JsonProperty(\"includedInStatistics\") final Boolean includedInStatistics,\n @JsonProperty(\"rating\") final Integer rating,\n @JsonProperty(\"state\") final com.commercetools.api.models.state.StateReference state,\n @JsonProperty(\"customer\") final com.commercetools.api.models.customer.CustomerReference customer,\n @JsonProperty(\"custom\") final com.commercetools.api.models.type.CustomFields custom) {\n this.id = id;\n this.version = version;\n this.createdAt = createdAt;\n this.lastModifiedAt = lastModifiedAt;\n this.lastModifiedBy = lastModifiedBy;\n this.createdBy = createdBy;\n this.key = key;\n this.uniquenessValue = uniquenessValue;\n this.locale = locale;\n this.authorName = authorName;\n this.title = title;\n this.text = text;\n this.target = target;\n this.includedInStatistics = includedInStatistics;\n this.rating = rating;\n this.state = state;\n this.customer = customer;\n this.custom = custom;\n }", "public FacBuyerExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public ModificarPerfilBean() {\r\n }", "public CreditRating() {\n }", "public EmployeBean() {\r\n\t\tpersonneFactory = new PersonneFactoryImpl();\r\n\t\tinitFields();\r\n\t\tidHotel = 0L;\r\n\t\tLOGGER.info(\"<=============== EmployeBean Initialization ===============>\");\r\n\t}", "public PostOffice() {\n }", "public SearchBooksBean() {\r\n \t\tclearFilter();\r\n \t}", "public RevenueList() {\n }", "public RecSupplierListBusiness()\n {\n super();\n }", "public SampleBean() {\n }", "public void setReview(List<ReviewType> review) {\n\t this.review = review;\n\t}", "public Updater()\n { \n }", "private Recommendation() {\r\n }", "public TreeviewBean() {\n \n }", "public AddressBookExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public PopulationfosaController() {\n }", "public FinalOrderBeanCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public DataBean() {\r\n \r\n }", "public TbaccountExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public ReviewActivityFragment() {\n }", "public SuperUserExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public DDSViewCollectionForm() {\n\t}", "public MovieDtoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public SuperRegionAccAccessBean () {\n super();\n }", "public RhSubsidioBean ()\n {\n }", "public designeeListByMQVOImpl() {\r\n }", "public InstanciaProductoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public BeanRole() {\r\n }" ]
[ "0.7014717", "0.5863987", "0.5665315", "0.5614247", "0.5483389", "0.54575527", "0.536264", "0.5349542", "0.52286905", "0.52069", "0.51785487", "0.5167316", "0.51585317", "0.51557577", "0.5148157", "0.51428884", "0.51300883", "0.5068244", "0.5057374", "0.5015521", "0.4996893", "0.4995964", "0.49932846", "0.49836242", "0.49702325", "0.49524447", "0.49505028", "0.49449828", "0.49351436", "0.4934963", "0.49197948", "0.49189454", "0.49124363", "0.49063998", "0.4903841", "0.49025953", "0.48855343", "0.48847124", "0.4877328", "0.48684925", "0.48501074", "0.4848029", "0.48443598", "0.4833251", "0.48267084", "0.48112652", "0.480252", "0.47924638", "0.4780197", "0.47752202", "0.47751603", "0.4756258", "0.47549796", "0.47522762", "0.47494954", "0.4739904", "0.47345242", "0.4733002", "0.47288364", "0.4724305", "0.47184137", "0.47182903", "0.47169417", "0.4711939", "0.4694239", "0.4682929", "0.46779928", "0.46760413", "0.46731022", "0.46684986", "0.46679994", "0.46662095", "0.46649477", "0.46549934", "0.46475944", "0.4647301", "0.46468872", "0.46460807", "0.46363604", "0.46304768", "0.4629761", "0.46278802", "0.46224985", "0.46186277", "0.46077794", "0.46077374", "0.4605483", "0.46008673", "0.45983872", "0.45791483", "0.4578635", "0.45765892", "0.45734537", "0.45578483", "0.45545292", "0.45502874", "0.45495155", "0.45457038", "0.45436487", "0.4541053" ]
0.65950197
1
Public Methods Return the mapping for generating the URL parameters.
public Map getMapping() { return mapping; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<UrlParameterName, List<String>> urlParameters() {\n return this.url().query().parameters();\n }", "Map<String, String[]> getParameterMap();", "Map<String, String> getParameters();", "public Map getParameters();", "@Override\n\t\tpublic Map getParameterMap() {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\treturn null;\n\t}", "ParamMap createParamMap();", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"latitude\", latitude_file);\n params.put(\"longitude\", longitude_file);\n params.put(\"link\", link);\n\n return params;\n }", "Map<String, Object> getParameters();", "Map<String, Object> getParameters();", "public Map getParameterMap() {\n return params;\n }", "public Map<String, Object> uriToValueMap();", "public Map<String, Object> getParameterMap() {\n\t\treturn queryParameters;\n\t}", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "public abstract String toURLParam();", "private static URLMapping[] getParamsURLMappings(String params) {\n\n if (StringUtils.isBlank(params)) {\n return null;\n }\n\n String[] ps = StringUtils.split(params, '&');\n\n URLMapping[] urlMappings = new URLMapping[ps.length];\n\n for (int i = 0; i < ps.length; i++) {\n\n String[] pArr = StringUtils.split(ps[i], '=');\n\n URLMapping urlMapping = getURLMappingByValue(pArr[0], URLMappingEnum.PARAM);\n\n if (urlMapping == null) {\n urlMapping = new URLMapping();\n urlMapping.setSplitKey(StringUtils.split(\"url$param$1000$\" + pArr[0], '$'));\n }\n\n if (pArr.length > 1) {\n\n urlMapping.setFinalValue(pArr[1]);\n\n } else {\n\n urlMapping.setFinalValue(PARAM_NO_VALUE);\n }\n\n urlMappings[i] = urlMapping;\n }\n\n for (int i = 0; i < urlMappings.length; i++) {\n\n for (int j = 0; j < urlMappings.length - i - 1; j++) {\n\n if (urlMappings[j].getSplitKey() == null) {\n continue;\n }\n\n if (Integer.valueOf(urlMappings[j].getSplitKey()[2]) > Integer\n .valueOf(urlMappings[j + 1].getSplitKey()[2])) {\n\n URLMapping temp = urlMappings[j];\n urlMappings[j] = urlMappings[j + 1];\n urlMappings[j + 1] = temp;\n }\n }\n }\n\n return urlMappings;\n\n }", "public Map<String, String[]> getParaMap() {\n\t\treturn request.getParameterMap();\n\t}", "private VariableMap getParamMappingAsVariableMap() {\n paramValueEncodings.put(fileNameToIndex.keySet().toString(), \" FileNames\");\n paramValueEncodings.put(functionNameToIndex.keySet().toString(), \" FunctionNames\");\n paramValueEncodings.put(typeToIndex.keySet().toString(), \" Types\");\n\n VariableMap preInversedMap = new VariableMap(paramValueEncodings);\n ImmutableMap<String, String> inversedMap = preInversedMap.getNewNameToOriginalNameMap();\n return new VariableMap(inversedMap);\n }", "@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\tMap<String, String[]> paramMap = super.getParameterMap();\n\t Set<String> keySet = paramMap.keySet();\n\t for (Iterator<String> iterator = keySet.iterator(); iterator.hasNext();) {\n\t String key = (String) iterator.next();\n\t String[] str = paramMap.get(key);\n\t\t\t\tfor(int i=0; i<str.length; i++) {\n\t\t\t\t\tstr[i] = encodeXSS(str[i]);\n\t//这里可以对页面传入的所有值进行过滤了,你想怎么处理就怎么处理。比如对出入的值进行html危险字符过滤\n\t }\n\t }\n\t return paramMap ;\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 }", "public abstract ImmutableMap<String, ParamInfo> getParamInfos();", "@Override\n\tpublic Map getParameterMap() {\n\t\treturn null;\n\t}", "protected Map<String,String> getParametersMap(HttpServletRequest request) {\n\t\tMap<String,String> map = new HashMap<String,String>();\n\t\t\n\t\tEnumeration<String> paramNames = request.getParameterNames() ;\n\t\t\n\t\twhile ( paramNames.hasMoreElements() ) {\n\t\t\tString name = paramNames.nextElement() ;\n\t\t\tString value = request.getParameter(name) ;\n\t\t\tmap.put(name, value);\n\t\t}\n\t\treturn map ;\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", id);\n\n\n\n\n return params;\n }", "@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 }", "private Map<String, String> getParameterMappings(ServletRequestDataBinder binder) {\n Class<?> targetClass = binder.getTarget().getClass();\n Map<String, String> map = definitionsCache.get(targetClass);\n if (map == null) {\n Field[] fields = targetClass.getDeclaredFields();\n map = new HashMap<>();\n for (Field field : fields) {\n BindParameter annotation = field.getAnnotation(BindParameter.class);\n if (annotation != null && !annotation.value().isEmpty()) {\n map.put(annotation.value(), field.getName());\n }\n }\n definitionsCache.putIfAbsent(targetClass, map);\n return map;\n } else {\n return map;\n }\n }", "public String generateQueryParams() {\n if (petition.getParamsMap().entrySet().size() == 0)\n return \"\";\n else {\n boolean first = true;\n StringBuffer queryParams = new StringBuffer(\"?\");\n Iterator<Map.Entry<String, String>> it = petition.getParamsMap()\n .entrySet().iterator();\n // just iterate the map and fill the httpParams with its content\n while (it.hasNext()) {\n if (!first)\n queryParams.append(\"&\");\n else\n first = false;\n Map.Entry<String, String> e = (Entry<String, String>) it.next();\n String key = URLEncoder.encode(e.getKey());\n String value = URLEncoder.encode(e.getValue());\n queryParams.append(String.format(\"%s=%s\", key, value));\n\n }\n return queryParams.toString();\n }\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"uid\", uid);\n params.put(\"title\", title);\n params.put(\"suggest\", suggest);\n\n return params;\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 getQueryParameterMap() {\n return queryParams;\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 }", "public Map getParameters()\n\t{\n\t\tMap returnValue = null;\n\n\t\tif (params == null)\n\t\t{\n\t\t\treturnValue = new HashMap();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = params;\n\t\t}\n\n\t\treturn returnValue;\n\t}", "public URIParameters() {\r\n this._parameters = new HashMap<String, String[]>();\r\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"oid\", oid);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Dname\", DegreeName);\n params.put(\"iName\", InsName);\n params.put(\"UserId\", uId);\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(\"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 Map<String, String> params = new HashMap<String, String>();\n// params.put(\"ead_tokan\", AppConfig.EAD_TOKEN);\n// params.put(\"ead_email\", email);\n params.put(\"npl_token\", \"a\");\n params.put(\"npl_aid\", mediaId);\n params.put(\"npl_id\", userId);\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"id\", id);\n params.put(\"type\", type);\n\n Log.d(TAG, \"getParams: \"+params);\n\n\n\n return params;\n }", "public Map<String, String> params() {\n return Collections.unmodifiableMap(params);\n }", "List<Parameter> uriParameters();", "public Map getParams() {\n\t\treturn _params;\n\t}", "public Map getRenderParameterMap(PortletWindow window) {\n Map result = new HashMap();\n int nsSize = RENDER.length() + window.getId().toString().length() + 1;\n for (Iterator iter = pathParams.keySet().iterator(); iter.hasNext();) {\n String name = (String) iter.next();\n if (name.startsWith(RENDER + window.getId())) {\n String paramName = name.substring(nsSize);\n result.put(paramName, pathParams.get(name));\n }\n }\n return result;\n }", "public Map<String, List<String>> parameters() {\n return parameters;\n }", "public Map<String,String[]> getParameterMap() {\n if (isMultipart()) {\n Map parameterMap = new HashMap();\n Enumeration names = this.multipart.getParameterNames();\n \n while (names.hasMoreElements()) {\n String name = (String) names.nextElement();\n parameterMap.put(name, getParameterValues(name));\n }\n \n return parameterMap;\n }\n else {\n return super.getParameterMap();\n }\n }", "public abstract Map<String,List<Parameter>> getWorkflowParameters();", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Eid\", id + \"\");\n\n\n return params;\n }", "protected Map<String, Object> paserRequetToHashMap(HttpServletRequest req){\n\t\t\n\t\tMap<String,Object> params = new HashMap<>();\n\t\t\n\t\tEnumeration<?> enumber = req.getParameterNames();\n\n\t\twhile (enumber.hasMoreElements()) {\n\t\t\tString key = enumber.nextElement().toString();\n\t\t\tObject value = req.getParameter(key);\n\t\t\tparams.put(key, value); \n\t\t}\n\t\t\n\t\t\n\t\treturn params;\n\t}", "public Map getParameterMap()\r\n {\r\n Map copyMap = new HashMap(this.parameters.size());\r\n copyMap.putAll(this.parameters);\r\n return copyMap;\r\n }", "public static Map<String, String> getParameters() {\r\n return null;\r\n }", "private Map<String, String> paramHandler(Map<String, String> params){\n\t\t\n\t\treturn params;\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"is_like\", is_like);\n params.put(\"p_name\", p_name);\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"location\");\n params.put(\"username\", username);\n params.put(\"latitude\", latitude);\n params.put(\"longitude\", longitude);\n\n return params;\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 }", "private String generateUrlParameters(HashMap<String, String> parameters) {\n\n\t\tString urlAttachment = \"?\";\n\n\t\tObject[] keys = parameters.keySet().toArray();\n\n\t\tfor(Object key : keys)\n\n\t\t\turlAttachment += key.toString() + \"=\" + parameters.get(key) + \"&\";\n\n\t\treturn urlAttachment;\n\t}", "@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }", "@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }", "List<Parameter> baseUriParameters();", "public Map getQueryParameterMap(PortletWindow window) {\n return queryParams;\n }", "public Map<String, AccessPoint> createParameters() {\r\n\t\tMap<String, AccessPoint> pm = new TreeMap<String, AccessPoint>();\r\n\t\tpm.put(\"vcNumber\", new MutableFieldAccessPoint(\"vcNumber\", this));\r\n\t\treturn pm;\r\n\t}", "public Map<String, String> getParameters() {\r\n return _parameters;\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(\"ubaid\", globalVar.getUbaid());\n\n return params;\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 }", "public Map<String, String> paramap(String...params) {\n\t\t\tMap<String, String> map = new HashMap<String, String>();\n\t\n\t\t\tfor(String p : params) {\n\t\t\t\tmap.put(p, parameters.get(p));\n\t\t\t}\n\n\t\t\treturn map;\n\t}", "public Map<String, ?> getUrlMap()\r\n/* 27: */ {\r\n/* 28: 93 */ return this.urlMap;\r\n/* 29: */ }", "@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 }", "public HashMap<String, Object> toParamMAP() {\n\t\tHashMap<String, Object> requestBody = new HashMap<String, Object>();\n\n\t\tif ((Long) folderId != null && folderId > 0) {\n\t\t\trequestBody.put(\"folder_id\", folderId);\n\t\t}\n\t\tif (description != null) {\n\t\t\trequestBody.put(\"description\", description);\n\t\t}\n\t\tif (tags != null) {\n\t\t\trequestBody.put(\"tags\", tags);\n\t\t}\n\t\tif ((Long) notify != null && notify > 0) {\n\t\t\trequestBody.put(\"notify\", notify);\n\t\t}\n\n\t\treturn requestBody;\n\t}", "public Map getParameters() {\r\n\t\treturn parameters;\r\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"complex_id\",complex_id);\n Log.d(TAG, \"complex_id: \"+params);\n\n return params;\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 }", "protected static Map<String, List<String>> decodeParameters(String queryString) {\n\t\tMap<String, List<String>> parms = new HashMap<String, List<String>>();\n\t\tif (queryString != null) {\n\t\t\tStringTokenizer st = new StringTokenizer(queryString, \"&\");\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString e = st.nextToken();\n\t\t\t\tint sep = e.indexOf('=');\n\t\t\t\tString propertyName = sep >= 0 ? decodePercent(e.substring(0, sep)).trim()\n\t\t\t\t\t\t: decodePercent(e).trim();\n\t\t\t\tif (!parms.containsKey(propertyName)) {\n\t\t\t\t\tparms.put(propertyName, new ArrayList<String>());\n\t\t\t\t}\n\t\t\t\tString propertyValue = sep >= 0 ? decodePercent(e.substring(sep + 1)) : null;\n\t\t\t\tif (propertyValue != null) {\n\t\t\t\t\tparms.get(propertyName).add(propertyValue);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn parms;\n\t}", "@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() {\n Map<String, String> params = new HashMap<>();\n\n\n\n params.put(\"city_id\",city_id);\n Log.d(TAG, \"city_id: \"+params);\n\n return params;\n }", "public Map<String, AccessPoint> createParameters() {\n Map<String, AccessPoint> pm = new TreeMap<>();\n pm.put(\"Minimum funds of the visitors in EUR\", new MutableFieldAccessPoint(\"fundsMinimum\", this));\n pm.put(\"Maximum funds of the visitors in EUR\", new MutableFieldAccessPoint(\"fundsMaximum\", this));\n pm.put(\"Tourist arrival time to Venice\", new MutableFieldAccessPoint(\"visitorArrivalVenice\", this));\n pm.put(\"Tourist arrival time to Milan\", new MutableFieldAccessPoint(\"visitorArrivalMilan\", this));\n pm.put(\"Tourist arrival time to Ravenna\", new MutableFieldAccessPoint(\"visitorArrivalRavenna\", this));\n return pm;\n }", "public Map<String, Object> getParams() {\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(\"id\", idb);\n params.put(\"correo\", correob);\n return params;\n }", "@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 }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> parameters = new HashMap<String, String>();\n return parameters;\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 }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id_pelanggan\", id_pelanggan);\n params.put(\"isi_pengaduan\", isi);\n return params;\n }", "@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() {\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 }", "private Map<String, String> getParams(final HttpServletRequest request) {\n final Map<String, String> params = new HashMap<>();\n for (final Map.Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\n params.put(entry.getKey(), entry.getValue()[0]);\n }\n return params;\n }", "@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 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 }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"todo\");\n params.put(\"task\", task);\n params.put(\"startTime\", startTime);\n params.put(\"endTime\", endTime);\n params.put(\"created_for\", created_for);\n params.put(\"created_by\",created_by);\n\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"ViewList\");\n params.put(\"created_by\", created_by);\n params.put(\"created_for\",created_for);\n\n\n return params;\n }", "@Override\r\n protected Map<String, String> getParams() {\n\r\n Map<String, String> params = new HashMap<String, String>();\r\n params.put(\"userID\", LoginActivity.USER_ID);\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(\"email\", email);\n// params.put(\"password\", password);\n\n params.put(\"user_id\",session.getStringSessionData(\"uid\"));\n\n return params;\n }", "@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}", "public Map<String, List<String>> getParameters() {\n\t\t\treturn parameters;\n\t\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"idCliente\", idCliente);\n\n\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"nosambungan\", nosambungan);\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 }", "@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 public String toString() {\n if (this.map.getMap().isEmpty()) return \"\";\n final StringBuilder param = new StringBuilder(this.map.getMap().size() * 40);\n for (final Map.Entry<String, String> entry: entrySet()) {\n param.append(MultiProtocolURL.escape(entry.getKey()))\n .append('=')\n .append(MultiProtocolURL.escape(entry.getValue()))\n .append('&');\n }\n param.setLength(param.length() - 1);\n return param.toString();\n }", "@Override\r\n public MultivaluedMap<String, String> getQueryParameters() {\n return queryParameters;\r\n }", "public Map<String, Object> getInfoMap() {\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\n\t\tthis.putInMap(paramMap);\n\t\treturn paramMap;\n\t}", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n\n return params;\n }" ]
[ "0.6981642", "0.68204033", "0.66458595", "0.6597662", "0.6538573", "0.6521575", "0.6518995", "0.6473222", "0.64703965", "0.64703965", "0.64552546", "0.6450186", "0.64375263", "0.641395", "0.64061457", "0.63988143", "0.6393963", "0.6392029", "0.6381565", "0.6332008", "0.62867016", "0.6226323", "0.62257904", "0.62256193", "0.62232053", "0.6210031", "0.6168716", "0.6166023", "0.6155928", "0.615332", "0.61532414", "0.61517525", "0.6150921", "0.61482865", "0.6143369", "0.6136102", "0.61308587", "0.6107338", "0.6102253", "0.6101317", "0.60967577", "0.60560465", "0.6044274", "0.60297215", "0.6022765", "0.6018174", "0.60076344", "0.5989839", "0.59892", "0.59888256", "0.59793055", "0.59727883", "0.5972591", "0.5972222", "0.5964397", "0.59643203", "0.59643203", "0.5955875", "0.59408504", "0.5935535", "0.59331375", "0.59309393", "0.5927713", "0.5906834", "0.590101", "0.5889022", "0.5887856", "0.5880128", "0.5873604", "0.58709466", "0.5864889", "0.5862354", "0.5849993", "0.5842229", "0.58341056", "0.5832351", "0.5823372", "0.5818349", "0.581412", "0.58026063", "0.57996535", "0.578647", "0.578484", "0.5753817", "0.57476354", "0.5742013", "0.57412213", "0.5738076", "0.57337666", "0.5733549", "0.57335275", "0.5716119", "0.5712498", "0.5709409", "0.5704952", "0.5699863", "0.5697171", "0.5695858", "0.56952345", "0.56915164", "0.56915164" ]
0.0
-1
Return the aggregation review.
public AggregationReview getReview() { return review; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n return review;\n }", "public double getReview() {\r\n return review;\r\n }", "public String getReview(){\n\t\treturn this.review;\n\t}", "public List<ReviewType> getReview() {\n\t return this.review;\n\t}", "String getReviewrate();", "public java.lang.String[] getReview() {\n return review;\n }", "public double getSpecReview() {\r\n return specReview;\r\n }", "@Valid\n @JsonProperty(\"reviewRatingStatistics\")\n public ReviewRatingStatistics getReviewRatingStatistics();", "public PersonReviewData getTotals() {\n return totals;\n }", "public String getMyReviewed() {\n return myReviewed;\n }", "public String getReviewText() {\n\t\treturn reviewText;\n\t}", "private Map<Profile, String> review(){\n\t\treturn allReviews;\n\t}", "public String getReviewText() {\n\t\treturn this.reviewText;\n\t}", "public Set<Review> getReviews() {\n return reviews;\n }", "public ArrayList<String> getReviews() {\n return reviews;\n }", "public com.commercetools.api.models.review.ReviewRatingStatistics getReviewRatingStatistics() {\n return this.reviewRatingStatistics;\n }", "public ArrayList<Review> getReviews() {\n\t\treturn reviews;\n\t}", "@Override\n\tpublic String toString() {\n\t\tStringBuilder result = new StringBuilder();\n\t\tresult.append(\"Author: \" + authorUsername + \"; \");\n\t\tresult.append(\"Given Rating: \" + givenRating + \"%; \");\n\t\tresult.append(\"Text: \" + reviewText + \"; \");\n\t\tresult.append(\"Date: \" + reviewDate + \";\");\n\t\treturn result.toString();\n\t}", "public ArrayList<Review> getReviewsList() {\n return reviews;\n }", "public GiftCardProductQuery ratingSummary() {\n startField(\"rating_summary\");\n\n return this;\n }", "@Override\n public String toString() {\n return \"{rating = \" + averageRating + \", count \" + count + \"}\";\n }", "public int getReviewId()\r\n {\r\n return this.reviewId;\r\n }", "public int getReviewValue()\n {\n \treturn m_nReviewValue;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getReviewType();", "public List<ReviewStat> getReviewStat() {\n\t\t\treturn reviewRepositorystatR.findReviewStat();\n\t\t}", "public AggregationPeriod aggregation() {\n\t\treturn message.getAggregation();\n\t}", "public double getOgRating() {\n return ogRating;\n }", "public String getAggregationType() {\n return this.aggregationType;\n }", "ImmutableList<SchemaOrgType> getReviewsList();", "public String getReview_id() {\n return this.review_id;\n }", "ImmutableList<SchemaOrgType> getReviewList();", "public double getRating() {\n return rating_;\n }", "ImmutableList<SchemaOrgType> getAggregateRatingList();", "public java.lang.String getReviewid() {\n return reviewid;\n }", "private void getReview() {\r\n String newReviewText = reviewText.getText().toString();\r\n float stars = ratingStars.getRating();\r\n if (newReviewText != null) {\r\n String filename = \"review_yo.csv\";\r\n Write.writeReview(newReviewText, stars, filename);\r\n } else {\r\n newReviewText = \"No reviews available\";\r\n String filename = \"review_yo.csv\";\r\n Write.writeReview(newReviewText, stars, filename);\r\n\r\n }\r\n }", "public String getReviewProcess() {\n\t\tString t = doc.get(\"reviewprocess\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "public GiftCardProductQuery reviews(ProductReviewsQueryDefinition queryDef) {\n return reviews(args -> {}, queryDef);\n }", "public double getTotalRating() {\n return totalRating;\n }", "public double getRatingAverage() {\n return average;\n }", "public double getRating() {\n return rating_;\n }", "public boolean getReviewed() {\n\t\treturn this.reviewed;\n\t}", "public Integer getRating() {\n return this.rating;\n }", "public double getAverageRating() {\n int[] ratings = new int[reviews.length];\n for(int i = 0; i < reviews.length; i++) {\n ratings[i] = reviews[i].getRating();\n }\n double average = (double) sumIntegerArray(ratings) / reviews.length;\n return Double.parseDouble(new DecimalFormat(\"#.#\").format(average));\n }", "double getRating();", "public List<Review> getReviews() {\r\n\t\tList<Review> returnReviews = new ArrayList<Review>();\r\n\t\tfor(int i = 0; i < myManuscripts.size(); i++){\r\n\t\t\tif(myManuscripts.get(i).getStatus() != STATUS_DECISION_HAS_NOT_BEEN_MADE) {\r\n\t\t\t\treturnReviews.addAll(myManuscripts.get(i).getReviews());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn returnReviews;\r\n\t}", "@Override\n public String toString() {\n return \"REVIEW FOR: \" +\n \"Book Title: '\" + title + '\\'' +\n \" Author: '\" + author + '\\'';\n\n }", "public String getRatingText() {\n return ratingText;\n }", "public GiftCardProductQuery reviewCount() {\n startField(\"review_count\");\n\n return this;\n }", "public java.lang.String getRating() {\n return rating;\n }", "public int getRating()\n {\n return this.rating;\n }", "public ReviewAdExtension getReviewAdExtension() {\n return getAdExtension();\n }", "@Override\r\n\tpublic int reviewCount() throws Exception {\n\t\treturn 0;\r\n\t}", "public int getMyReviewID() {\n return myReviewID;\n }", "@Override\n\tpublic Object getAverageOfPetReviewRatings(Pet pet) {\n\t\treturn null;\n\t}", "public double getAverageRating() {\n return averageRating;\n }", "public double getAverageRating() {\n return averageRating;\n }", "public Timestamp getReviewDate() {\n\t\treturn reviewDate;\n\t}", "public double setAvg(Review reviewp) {\n\t\tint number=0;\n\t\tint mark=0;\n\t\tdouble br=0;\n\t\tfor(Review review: reviews) {\n\t\t\tif(review.getRestaurant().getName().equals(reviewp.getRestaurant().getName()) &&\n\t\t\t\t\treview.getStatus().equals(ReviewStatus.ACCEPTED)) {\n\t\t\t\t\t\tnumber++;\n\t\t\t\t\t\tmark+=review.getRating();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tif(mark==0) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn mark/number;\n\t}", "public double getRating(){\n\t\treturn this.rating;\n\t}", "@Override\n public void showReview() {\n }", "public String getUserRating() {\n return userRating;\n }", "public int getSumratings() {\n\treturn sumratings;\n}", "public Map<String, Set<Review>> getReviewMap(){\n\t\treturn reviewMap;\n\t}", "public BoundCodeDt<AggregationModeEnum> getAggregationFirstRep() {\n\t\tif (getAggregation().size() == 0) {\n\t\t\taddAggregation();\n\t\t}\n\t\treturn getAggregation().get(0);\n\t}", "public double getRating() {\n\t\treturn rating;\n\t}", "public Review[] seeReview(String TEmail) {\n\t\t\n\t\tRateAndReview r = new RateAndReview();\n\t\tint rate = r.getRating(TEmail);\n\t\tReview[] VRev = r.getVerifiedReviews(TEmail);\n\t\t\n\t\treturn VRev;\n\t}", "public int getRating();", "public double getReputation() {\n return reputation;\n }", "public synchronized String getReviewJSON(String rID) {\n Review r = this.reviewMap.get(rID);\n if (r == null) {\n return \"ERR: NO_SUCH_REVIEW\";\n } else {\n return gson.toJson(r);\n }\n }", "@NotNull\n @Valid\n @JsonProperty(\"review\")\n public Review getReview();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getReviewedBy();", "public float getRating() {\n return rating;\n }", "public float getRating() {\n return rating;\n }", "public String getReviewer() {\n return reviewer;\n }", "public AggregateOperator getAggregation(){\n for(Operator op:_operators){\n if (op instanceof AggregateOperator) return (AggregateOperator) op;\n }\n return null;\n }", "public void setReview(double review) {\r\n this.review = review;\r\n }", "public com.microsoft.schemas.sharepoint.soap.UpdateViewAggregations getAggregations() {\r\n return aggregations;\r\n }", "public Integer getRating() {\r\n if (recipe != null && ui.isIsUserAuthenticated()) {\r\n RecipeRating temp = ratingEJB.findByUserAndRecipe(ui.getUser(), recipe);\r\n if (temp != null) {\r\n rating = temp.getRatingValue().getValue();\r\n }\r\n }\r\n return rating;\r\n }", "public PersonReviewData[] getRebateReviewData() {\n return this.rebateReviewData;\n }", "private Review parseReview(HttpServletRequest req) {\n\t\tString name = req.getParameter(\"name\");\n\t\tString reviewer = req.getParameter(\"reviewer\");\n\t\tString date = (String) req.getParameter(\"date\") + \" \" + req.getParameter(\"time\");\n\t\tString promotion = req.getParameter(\"promotion\");\n\t\tString description = req.getParameter(\"description\");\t\t\n\t\treturn new Review(name, date, promotion, description, reviewer);\n\t}", "public Fields getAggregatedFields()\n {\n return aggregatedFields;\n }", "public int getRating() {\n\t\treturn this.rating;\n\t}", "public float getRating() {\n return this.rating;\n }", "public double getRating(){\n\t\treturn this.user_rating;\n\t}", "java.lang.String getSummary();", "public Review() {\n this.review_id = \"\";\n this.user_id = \"\";\n this.business_id = \"\";\n this.stars = 0;\n this.useful = 0;\n this.funny = 0;\n this.cool = 0;\n this.date = LocalDateTime.now();\n this.text = \"\";\n }", "public List<Review> getAllReview() \n\t{\n\t\tList<Review> reviews = new ArrayList<Review>();\n\t\treviewRepository.findAll().forEach(review -> reviews.add(review));\n\t\treturn reviews;\n\t}", "public int getRatings() {\n return ratings;\n }", "@ApiModelProperty(value = \"The id of the service user that reviewed the submission.\")\n\n\n public String getReviewedBy() {\n return reviewedBy;\n }", "public double getParseRating() {\n return getDouble(KEY_RATING);\n }", "public Integer getRating()\n\t{\n\t\treturn null;\n\t}", "public String getReassessment() {\r\n return reassessment;\r\n }", "public float calcAverage(){\n if(totalReviews > 0)\n return (float) (totalScore*1.0/totalReviews);\n else return 0;\n }", "public float getRating() {\n\t\treturn rating;\n\t}", "@Override\r\n\tpublic List<ReviewVO> reviewListAll() {\n\t\treturn sqlSession.selectList(namespace + \".reviewListAll\");\r\n\t}", "public BigDecimal getTotalGprs() {\r\n return totalGprs;\r\n }", "public static Collection<BookReview> getALL() {\n }", "private double getAverageRating(Hotel hotel) {\n return hotel.getReviews().stream()\n .filter(review -> !review.isDeleted())\n .collect(Collectors.summarizingDouble(Review::getRatingValue))\n .getAverage();\n }", "@Override\r\n\tpublic ReviewDTO review_detail(int r_idx) throws Exception {\n\t\treturn null;\r\n\t}", "public int getSeekerRating() {\n return getIntegerProperty(\"Rating\");\n }" ]
[ "0.6887613", "0.6838218", "0.6595215", "0.6265382", "0.618689", "0.6184765", "0.6110515", "0.6069833", "0.59872687", "0.59200037", "0.58766145", "0.58605313", "0.5833866", "0.5794699", "0.57680213", "0.57456803", "0.56791645", "0.56702274", "0.5652904", "0.5622717", "0.5621259", "0.5605818", "0.559954", "0.55667776", "0.55600923", "0.5538433", "0.55364656", "0.5536261", "0.553494", "0.5533456", "0.55334383", "0.5498676", "0.54853827", "0.5462597", "0.5461378", "0.5446672", "0.5445903", "0.5426406", "0.54262197", "0.5420853", "0.5412913", "0.5410408", "0.54086816", "0.5394513", "0.53936994", "0.5389707", "0.5381754", "0.53815097", "0.5379753", "0.5374981", "0.536732", "0.5351094", "0.53433007", "0.5339642", "0.5333399", "0.5333399", "0.53316545", "0.5325298", "0.5319118", "0.53080577", "0.5302387", "0.5298414", "0.5283949", "0.5276891", "0.5269464", "0.52321434", "0.52262443", "0.5224337", "0.52185315", "0.5218322", "0.52118313", "0.5201884", "0.5201884", "0.5197853", "0.5197784", "0.5192295", "0.5174172", "0.5165585", "0.51578695", "0.51553094", "0.5152802", "0.5145959", "0.5145218", "0.5142089", "0.5141443", "0.513707", "0.5130499", "0.512044", "0.5095418", "0.5088284", "0.50672483", "0.5064975", "0.5053507", "0.50491226", "0.5041207", "0.50383836", "0.5033513", "0.5025122", "0.5012218", "0.50117207" ]
0.81629336
0
Return whether the aggregation review exists.
public boolean getExists() { return (review != null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean exists(ReviewRecord review) {\n\t\treturn super.doExists(review);\n\t}", "public boolean isHasAlreadyReviewed() {\r\n boolean result = false;\r\n if (ui.isIsUserAuthenticated() && professionalStatus.isIsProfessional()) {\r\n Users user = ui.getUser();\r\n if (recipe != null) {\r\n for (Review rev : recipe.getReviews()) {\r\n if (rev.getReviewer().getUserName().equals(user.getUserName())) {\r\n result = true;\r\n break;\r\n }\r\n }//end for\r\n }\r\n }// end value != null\r\n return result;\r\n }", "public boolean isSetAggregationType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(AGGREGATIONTYPE$2) != null;\n }\n }", "boolean hasProductGroupView();", "boolean hasAdGroupFeed();", "boolean hasPublisherGroupID();", "boolean hasAdGroup();", "boolean hasRecommendation();", "public boolean getIsPMReviewed() {\n if (review != null) {\n return review.isPMReviewed();\n } else {\n return false;\n }\n }", "boolean hasAdGroupCriterion();", "boolean hasHasRecommendation();", "boolean hasHotelGroupView();", "public boolean isSetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(RELEASE$4) != 0;\r\n }\r\n }", "boolean hasFeedItemSet();", "public boolean isSetSummary()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SUMMARY$18) != null;\n }\n }", "public boolean hasProduct() {\n return product_ != null;\n }", "public boolean hasProduct() {\n return productBuilder_ != null || product_ != null;\n }", "public boolean isSetCount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(COUNT$8) != null;\n }\n }", "public boolean hasSummary() {\n\tif (this.results == null) return false;\n\treturn ((ScenarioResults)this.results).hasSummary();\n}", "boolean hasAdGroupAd();", "boolean hasFeedItem();", "boolean hasKeywordPlanAdGroup();", "boolean hasAdGroupAdAssetView();", "public boolean isSetIs_preaggregation() {\n return EncodingUtils.testBit(__isset_bitfield, __IS_PREAGGREGATION_ISSET_ID);\n }", "boolean isPresent(ExamPackage examPackage);", "public boolean hasProductsRS() {\n return productsRS_ != null;\n }", "public boolean isReviewPositive()\n {\n return (m_nReviewValue == REVIEW_VALUE_POSITIVE) ? true : false ;\n }", "boolean hasMaterialization(Object groupID) throws Exception;", "boolean hasAdGroupCriterionSimulation();", "boolean hasAdGroupAudienceView();", "public boolean hasCaloriesData() {\n return calories.isPresent();\n }", "public boolean hasProductsRS() {\n return productsRSBuilder_ != null || productsRS_ != null;\n }", "boolean hasCount();", "boolean hasCampaignExperiment();", "public AggregationReview getReview() {\n return review;\n }", "boolean hasAdGroupSimulation();", "public boolean isSetMedication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MEDICATION$10) != 0;\n }\n }", "public boolean isRatingGivenByUserExist(long movieId){\n SQLiteDatabase sqLiteDatabase = this.getReadableDatabase();\n String query = \"SELECT \" + MoviesDetailsEntry.COLUMN_USER_RATING + \" FROM \" + MoviesDetailsEntry.TABLE_NAME + \" WHERE \" +\n MoviesDetailsEntry._ID + \" = \" + movieId;\n Cursor cursor = sqLiteDatabase.rawQuery(query,null);\n if (cursor.getCount()<=0){\n cursor.close();\n return false;\n } else {\n cursor.close();\n return true;\n }\n }", "boolean hasConceptGroup();", "boolean isSetProductGroup();", "public boolean isSetExperience() {\n return this.experience != null;\n }", "protected Boolean exists() {\n return nonNull(getModified()) && nonNull(getInteractionModel());\n }", "public boolean hasAd() {\n return ad != null;\n }", "@Override\n public Publisher<Boolean> exists() {\n ImmutableQuery query = this.query;\n if (!query.limit().isPresent()) {\n // for exists operation we need at most one (1) element (if limit is not set already)\n query = query.withLimit(1);\n }\n Publisher<Long> countPublisher = of(query, session).count();\n return Publishers.map(countPublisher, count -> count > 0);\n }", "boolean hasGroupByCategory();", "public boolean isSetPopularity() {\n return EncodingUtils.testBit(__isset_bitfield, __POPULARITY_ISSET_ID);\n }", "public boolean isPresent() {\n return exists();\n }", "public boolean isSetRevenue() {\n return EncodingUtils.testBit(__isset_bitfield, __REVENUE_ISSET_ID);\n }", "public boolean isSetShowNarration()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SHOWNARRATION$18) != null;\n }\n }", "public boolean isSetTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TPG$30) != 0;\r\n }\r\n }", "public boolean isExists() {\n\t\treturn exists();\n\t}", "boolean hasDocument();", "boolean hasDocument();", "boolean hasDocument();", "boolean hasCollectionName();", "public boolean isSetSldRg()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SLDRG$8) != 0;\n }\n }", "public boolean isAmendmentExists(Amendment amendment);", "public boolean isSetGrant_group() {\n return this.grant_group != null;\n }", "boolean hasKeywordPlanAdGroupKeyword();", "public boolean hasCount() {\n return result.hasCount();\n }", "boolean hasRemarketingAction();", "public boolean isExistingPaper(String title) {\n\t\treturn this.papers.containsVertex(title);\n\t}", "boolean hasAccountBudgetProposal();", "public boolean isCreated() {\n\t\treturn this.viewer != null;\n\t}", "boolean hasProduces();", "boolean hasBadge();", "public boolean isUsefulReport() {\n if (metadata_ == null) {\n return false;\n }\n return capturedLogContent_ != null && !capturedLogContent_.isEmpty();\n }", "public boolean isSetGroup() {\n return this.group != null;\n }", "boolean hasShoppingPerformanceView();", "boolean hasArtilleryFactorySelected();", "boolean hasPictureGenre();", "boolean hasHotelPerformanceView();", "public boolean docIteratorHasMatch (RetrievalModel r) {\n return this.docIteratorHasMatchMin (r);\n }", "public static boolean checkInAppReviewDialog(Activity activity) {\n\t\tif (CookbookConfig.INAPP_REVIEW_DIALOG_FREQUENCY == 0) return false;\n\n\t\t// get counter\n\t\tfinal Preferences preferences = new Preferences();\n\t\tfinal int counter = preferences.getInAppReviewDialogCounter();\n\t\tLogcat.d(\"\" + counter);\n\n\t\t// check counter\n\t\tboolean showDialog = false;\n\t\tif (counter != -1) {\n\t\t\tif (counter >= CookbookConfig.INAPP_REVIEW_DIALOG_FREQUENCY && counter % CookbookConfig.INAPP_REVIEW_DIALOG_FREQUENCY == 0) {\n\t\t\t\tshowDialog = true;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t\t// show in-app review dialog\n\t\tif (showDialog) {\n\t\t\tshowInAppReviewDialog(activity);\n\t\t}\n\n\t\t// increment counter\n\t\tpreferences.setInAppReviewDialogCounter(counter + 1);\n\t\treturn showDialog;\n\t}", "public boolean isEmpty() {\r\n\t\treturn objectCollection.isEmpty();\r\n\t}", "boolean hasGroupPlacementView();", "public boolean isSetExam_records() {\n return this.exam_records != null;\n }", "public boolean isSetPresent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(PRESENT$0) != 0;\n }\n }", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "public boolean isSetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PRF$26) != 0;\r\n }\r\n }", "boolean hasCustomerFeed();", "boolean hasRelation();", "boolean hasCategory();", "public boolean containsDrugPerturbation() {\n\t\t\n\t\tif (experiments_.size() < 0)\n\t\t\tthrow new RuntimeException(\"There are no experiments in this batch\");\n\t\t\n\t\tfor (int i=0; i<experiments_.size(); i++)\n\t\t\tif (experiments_.get(i).getDefinition().isDrugPerturbation())\n\t\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "boolean isSetScoreAnalysis();", "public boolean isSetIdentifiedRisks() {\n return this.IdentifiedRisks != null;\n }", "public boolean hasImage(){\n return imageResourceID != NO_IMAGE_PROVIED;\n\n }", "boolean isEmpty(){\n return (book == null);\n }", "public boolean hasPublisherGroupID() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "public boolean getReviewed() {\n\t\treturn this.reviewed;\n\t}", "Boolean getIsSummary();", "public boolean isSetAvgScore() {\n return __isset_bit_vector.get(__AVGSCORE_ISSET_ID);\n }", "boolean hasRetentionPolicy();", "public boolean isApplied() {\n return selectedDatasetNumbers.size() > 1;\n }" ]
[ "0.6912206", "0.68342394", "0.6567212", "0.6081958", "0.58743656", "0.58670765", "0.5757153", "0.57529885", "0.57147765", "0.5699086", "0.5652555", "0.5635365", "0.5614486", "0.559884", "0.55758184", "0.55387765", "0.55142236", "0.5506344", "0.5501491", "0.5469819", "0.54657197", "0.54641527", "0.54510325", "0.5421637", "0.5421248", "0.54054767", "0.5402155", "0.5390185", "0.5389294", "0.53817844", "0.5369484", "0.53591657", "0.53565943", "0.52939606", "0.52919656", "0.529108", "0.5290811", "0.52854973", "0.5285274", "0.5276114", "0.52759755", "0.5265418", "0.5257096", "0.5249485", "0.5244836", "0.5240354", "0.523654", "0.52312994", "0.52186865", "0.521307", "0.5191028", "0.5186215", "0.5186215", "0.5186215", "0.5178074", "0.5174057", "0.51624393", "0.5159405", "0.5157861", "0.51536435", "0.5140055", "0.51332366", "0.51317465", "0.5124466", "0.5122769", "0.51199096", "0.51187736", "0.5108159", "0.5104925", "0.50891465", "0.5087305", "0.50861424", "0.5085804", "0.5076661", "0.50730425", "0.50726396", "0.5072619", "0.50724393", "0.5062117", "0.5062117", "0.5062117", "0.5062117", "0.5062117", "0.5062117", "0.5062117", "0.5061668", "0.50532526", "0.50417596", "0.50416213", "0.5037972", "0.503765", "0.50293595", "0.5027205", "0.5026152", "0.50248253", "0.50233805", "0.502289", "0.50221723", "0.5019381", "0.50189656" ]
0.7210728
0
Return whether the PM has reviewed.
public boolean getIsPMReviewed() { if (review != null) { return review.isPMReviewed(); } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getReviewed() {\n\t\treturn this.reviewed;\n\t}", "public boolean isHasAlreadyReviewed() {\r\n boolean result = false;\r\n if (ui.isIsUserAuthenticated() && professionalStatus.isIsProfessional()) {\r\n Users user = ui.getUser();\r\n if (recipe != null) {\r\n for (Review rev : recipe.getReviews()) {\r\n if (rev.getReviewer().getUserName().equals(user.getUserName())) {\r\n result = true;\r\n break;\r\n }\r\n }//end for\r\n }\r\n }// end value != null\r\n return result;\r\n }", "public boolean isReviewPositive()\n {\n return (m_nReviewValue == REVIEW_VALUE_POSITIVE) ? true : false ;\n }", "public Boolean isReviewState() {\n return this.isReviewState;\n }", "public boolean getExists() {\n return (review != null);\n }", "public boolean isMatchPOPosted()\n\t{\n\t\tMMatchPO[] po = getMatchPO();\n\t\tfor (MMatchPO matchPO : po) {\n\t\t\tif (!matchPO.isPosted())\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isReviewMode() {\n return mIsReviewMode;\n }", "@Override\n\tpublic boolean isApproved() {\n\t\treturn _scienceApp.isApproved();\n\t}", "public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isApproved();", "public boolean isApproved();", "boolean hasIsRedeemed();", "boolean hasPlainApprove();", "@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}", "boolean hasRecommendation();", "protected boolean isPreview()\n\t{\n\t\treturn sessionService.getAttribute(PREVIEW_TICKET_ID_PARAM) != null;\n\t}", "public boolean isApproved() {\n return approved;\n }", "boolean hasCampaignDraft();", "public boolean isMatchRated() {\n return getBooleanProperty(\"IsRated\");\n }", "public boolean isUserApproval() {\n\n if (!ACTION_UserChoice.equals(getAction())) {\n return false;\n }\n\n return (getColumn() != null) && \"IsApproved\".equals(getColumn().getColumnName());\n\n }", "boolean hasRemarketingAction();", "boolean hasSubmitTime();", "public boolean IsPayed(){\n\t\treturn payed;\n\t}", "public boolean isDecided() {\n return decided;\n }", "Boolean getIsAnswered();", "boolean isAllInview();", "public boolean checkToProceed(){\n return getGame().getCurrentPlayer().getRemainingActions() > 0;\n }", "private boolean isApproved() {\r\n if (rnd.nextInt(10) < 5) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n\r\n }", "public boolean isApproved() {\n\t\treturn isApproved;\n\t}", "boolean hasPokers();", "boolean hasPokers();", "public boolean isAsked() {\n\t\treturn isAsked;\n\t}", "boolean hasFeedback();", "boolean getMortgaged();", "public boolean amIWinning() {\n return myCommitment != null && winning;\n }", "public boolean isProved() {\n\t\treturn proveState == PROVED;\n\t}", "public boolean isReviewed(int index) {\n if (index % 2 != 0) {\n index -= 1;\n }\n index = index / 2;\n if ( ( (Integer) clusters[index][3]).intValue() == 1) {\n return true;\n }\n else {\n return false;\n }\n }", "boolean isDisplayMessageOnRedeem();", "@Override\n\tpublic boolean isApproved();", "public boolean hasPlainApprove() {\n return dataCase_ == 4;\n }", "boolean hasHasRecommendation();", "public boolean requiresPostApproval() {\n return true;\n }", "public boolean hasPlainApprove() {\n return dataCase_ == 4;\n }", "boolean hasPlainRedeem();", "boolean hasMent();", "public boolean hasPendingQuestions() {\r\n try {\r\n Task[] tasks = getTasks();\r\n if (tasks == null || tasks.length == 0)\r\n return false;\r\n \r\n for (int i = 0; i < tasks.length; i++) {\r\n if (tasks[i].getPendingQuestions() != null\r\n && tasks[i].getPendingQuestions().length > 0)\r\n return true;\r\n }\r\n \r\n return false;\r\n } catch (ProcessManagerException pme) {\r\n return false;\r\n }\r\n }", "public boolean isLiked();", "public boolean isSetExperience() {\n return this.experience != null;\n }", "public boolean isGivingInformation();", "boolean isPresent(ExamPackage examPackage);", "public String getMyReviewed() {\n return myReviewed;\n }", "public boolean isSetPreRepayAmt() {\n return EncodingUtils.testBit(__isset_bitfield, __PREREPAYAMT_ISSET_ID);\n }", "public static boolean checkInAppReviewDialog(Activity activity) {\n\t\tif (CookbookConfig.INAPP_REVIEW_DIALOG_FREQUENCY == 0) return false;\n\n\t\t// get counter\n\t\tfinal Preferences preferences = new Preferences();\n\t\tfinal int counter = preferences.getInAppReviewDialogCounter();\n\t\tLogcat.d(\"\" + counter);\n\n\t\t// check counter\n\t\tboolean showDialog = false;\n\t\tif (counter != -1) {\n\t\t\tif (counter >= CookbookConfig.INAPP_REVIEW_DIALOG_FREQUENCY && counter % CookbookConfig.INAPP_REVIEW_DIALOG_FREQUENCY == 0) {\n\t\t\t\tshowDialog = true;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t\t// show in-app review dialog\n\t\tif (showDialog) {\n\t\t\tshowInAppReviewDialog(activity);\n\t\t}\n\n\t\t// increment counter\n\t\tpreferences.setInAppReviewDialogCounter(counter + 1);\n\t\treturn showDialog;\n\t}", "public boolean isPost();", "public boolean isPost();", "public boolean isMatchInvPosted()\n\t{\n\t\tMMatchInv[] inv = getMatchInv();\n\t\tfor (MMatchInv matchInv : inv) {\n\t\t\tif (!matchInv.isPosted())\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isPaid(){\n return this.totalPaid>=this.getGrandTotal();\n }", "boolean isPostive();", "public boolean isEdited() {\n return (_spItem.getAvEditState() == SpAvEditState.EDITED);\n }", "public boolean hasPresentation();", "boolean hasResidentYn();", "boolean hasVotingStartTime();", "boolean hasMinExperience();", "public boolean isAnswered() {\n\t\tfor (boolean b : this.checked) {\n\t\t\tif (b)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean getAllowNewTimeProposal() throws ServiceLocalException {\n\t\treturn (Boolean) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.AllowNewTimeProposal);\n\t}", "public boolean approveAppointment() {\n\t\tIHealthCareDAO dao = new HealthCareDAO();\r\n\t\treturn dao.approveAppointment();\r\n\t}", "boolean hasVotingEndTime();", "public boolean isPerPerson() {\n return perPerson;\n }", "boolean isAccepting();", "boolean hasPokemonDisplay();", "boolean hasPatStatus();", "boolean hasPatStatus();", "public synchronized boolean canWatch() {\n\t\t//boolean to keep track of theater vacancy \n\t\tboolean enterStatus;\n\t\t//when the movie is in session or the theater is full we can't enter\n\t\tif(Clock.isInSession ||Driver.currentVisitors == 8) { \n\t\t\tenterStatus = false;\n\t\t}else {\n\t\t\tenterStatus = true;\n\t\t}\n\t\treturn enterStatus;\n\t}", "public boolean isEditableByUser() {\r\n if ((this.currentStatusChange == null) ||\r\n (this.currentStatusChange.equals(PoStatusCode.PROPOSED)))\r\n return true;\r\n return false;\r\n }", "private boolean modifiable() {\n // Only allow un-answered tests/surveys to be modified\n return this.completed.size() == 0;\n }", "public boolean hasReward() {\n return result.hasReward();\n }", "public Boolean exec(Context context) {\n return Boolean.valueOf(((AppRatingService) this.appRatingService.get()).shouldShowDialog());\n }", "public boolean isChiefCaptured(){\n Chief chief = establishChief();\n return chief == null;\n }", "boolean isIncludeOverdueReminders() {\n \n return this.includeOverdueCheckBox.isSelected();\n \n }", "public boolean checkProbleem() {\n\t\tif (object.getProbleem() != null\n\t\t\t\t&& object.getProbleem().getCommentaar() != null\n\t\t\t\t&& !object.getProbleem().getCommentaar().isEmpty()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean hasAccountBudgetProposal();", "public boolean isSetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PRF$26) != 0;\r\n }\r\n }", "public boolean isSuccessful()\n\t{\n\t\tif (response.get(\"Result\").equals(\"APPROVED\") && !response.get(\"MESSAGE\").equals(\"DUPLICATE\")) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean repOK(){\n if(passenger == null) return false;\n if(car == null) return false;\n return true;\n }", "boolean hasGemReward();", "public Boolean isValid() {\n if (modApptTitle.getText().isEmpty() || modApptTitle.getText() == null) {\n return false;\n } else if (modApptDescript.getText().isEmpty() || modApptDescript.getText() == null) {\n return false;\n } else if (modApptLocale.getText().isEmpty() || modApptLocale.getText() == null) {\n return false;\n }\n return true;\n }", "@SystemAPI\n\tboolean needsApproval();", "public boolean checkShowSubmitPolicy(Integer ctId,Integer snId){\n\n //check if participator first\n String handle = (String)httpSession.getAttribute(Constants.CURRENT_LOGIN_USER_HANDLE);\n boolean flag = false;\n List<AuthorityDTO> lstAuthority = authorityMapper.getContestAuthority(ctId, handle);\n for (AuthorityDTO curAuth : lstAuthority) {\n if (curAuth.getId().equals(Constants.AUTH_VIEW_CONTEST_ID)) {\n return true;\n }\n if (curAuth.getId().equals(Constants.AUTH_PARTICIPATE_CONTEST_ID)) {\n flag = true;\n }\n }\n if (!flag){\n return false;\n }\n\n //then check policy\n ContestEntity contestEntity = getContestById(ctId);\n if (contestEntity.getShowSubmit().equals(Constants.SHOW_SUBMIT_ALL)){\n return true;\n }\n\n SubmissionEntity submissionEntity = new SubmissionEntity();\n submissionEntity.setId(snId);\n List<SubmissionEntity> lstSubmission = submissionMapper.selectWithExample(submissionEntity);\n if (lstSubmission.size() != 1){\n throw new NoSuchPageException(\"Submission not found!\");\n }\n\n //check if submission is from current user\n submissionEntity = lstSubmission.get(0);\n Integer currentUserId = (Integer)httpSession.getAttribute(Constants.CURRENT_LOGIN_USER_ID);\n if (submissionEntity.getUrId().equals(currentUserId)){\n return true;\n }\n\n //else check current user has solved this problem and this contests allow to view solved problem's solutions\n if (contestEntity.getShowSubmit().equals(Constants.SHOW_SUBMIT_SOLVED)){\n Integer solveCnt = submissionMapper.checkSolvedStatusInContest(ctId,submissionEntity.getPmId(),submissionEntity.getUrId());\n return solveCnt > 0;\n }\n return false;\n }", "public boolean isSatisfied() {\r\n\t\tif (isParked() == true || wasParked() == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static boolean getPm() {\n\t\treturn false;\n\t}", "public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }", "public boolean isDecided()\n {\n return m_decided;\n }", "boolean isSetParlay();", "public boolean isAnswerCorrect() {\n\t\treturn isElementPresent(By.xpath(\"//body/div[5]\"));\n\t}", "public boolean isSetPostsid() {\n return this.postsid != null;\n }", "public boolean isProcessed() {\n\t\tObject oo = get_Value(\"Processed\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}", "public boolean isProcessed() {\n\t\tObject oo = get_Value(\"Processed\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}", "public boolean isSetShowNarration()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SHOWNARRATION$18) != null;\n }\n }", "public boolean isPostingAllowed() {\n if (currentUser == null || activeTopic == null) {\n return false;\n }\n if (currentUser.isPublicAccount()) {\n return false;\n }\n return activeTopic.isEditable();\n }", "boolean isSetComments();" ]
[ "0.7024905", "0.69550747", "0.6623204", "0.66073513", "0.64919513", "0.64355403", "0.64290565", "0.6384841", "0.6371213", "0.63334167", "0.63334167", "0.6295945", "0.62375873", "0.60651296", "0.6061224", "0.6035442", "0.60225475", "0.59981364", "0.5981136", "0.59343576", "0.5916402", "0.5885231", "0.5866954", "0.58479875", "0.5845058", "0.5841762", "0.5828733", "0.5825268", "0.5795564", "0.5785614", "0.5785614", "0.5775809", "0.57708704", "0.57661295", "0.5753782", "0.5747674", "0.57407814", "0.5737442", "0.57017356", "0.56927574", "0.5675188", "0.5674725", "0.5663971", "0.5656264", "0.5655578", "0.5627413", "0.56179464", "0.561651", "0.56127816", "0.56085414", "0.56048566", "0.560151", "0.5595894", "0.55950344", "0.55950344", "0.55917305", "0.5588758", "0.55881935", "0.5586483", "0.55697703", "0.5559728", "0.55592674", "0.555667", "0.55464077", "0.552724", "0.55204576", "0.5516025", "0.55144787", "0.55130744", "0.54974854", "0.5496994", "0.5496994", "0.54958737", "0.548677", "0.54842496", "0.5483194", "0.5477236", "0.5473601", "0.5472833", "0.5470044", "0.5469776", "0.5469443", "0.54677325", "0.54630935", "0.5455006", "0.5454838", "0.5442607", "0.5442475", "0.54424417", "0.54420376", "0.54398066", "0.54393804", "0.54344416", "0.54251575", "0.54202443", "0.54140556", "0.54140556", "0.54075617", "0.54033077", "0.54013664" ]
0.866582
0
This class was generated by Apache CXF 2.5.1 20120523T21:26:11.105+06:00 Generated source version: 2.5.1
@WebService(targetNamespace = "http://ws.jinouts.org/", name = "AndProxyClientRespTestWS") @XmlSeeAlso({ObjectFactory.class}) public interface AndProxyClientRespTestWS { @WebResult(name = "return", targetNamespace = "") @RequestWrapper(localName = "testPrimitiveResponse", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestPrimitiveResponse") @WebMethod @ResponseWrapper(localName = "testPrimitiveResponseResponse", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestPrimitiveResponseResponse") public java.lang.String testPrimitiveResponse( @WebParam(name = "user", targetNamespace = "") java.lang.String user, @WebParam(name = "pass", targetNamespace = "") java.lang.String pass ); @WebResult(name = "return", targetNamespace = "") @RequestWrapper(localName = "testComplexResponseObject", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestComplexResponseObject") @WebMethod @ResponseWrapper(localName = "testComplexResponseObjectResponse", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestComplexResponseObjectResponse") public org.jinouts.ws.TestComplexResponse testComplexResponseObject( @WebParam(name = "user", targetNamespace = "") java.lang.String user ); @WebResult(name = "return", targetNamespace = "") @RequestWrapper(localName = "testListResponse", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestListResponse") @WebMethod @ResponseWrapper(localName = "testListResponseResponse", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestListResponseResponse") public java.util.List<java.lang.String> testListResponse( @WebParam(name = "user", targetNamespace = "") java.lang.String user ); @WebResult(name = "return", targetNamespace = "") @RequestWrapper(localName = "testDateResponse", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestDateResponse") @WebMethod @ResponseWrapper(localName = "testDateResponseResponse", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestDateResponseResponse") public javax.xml.datatype.XMLGregorianCalendar testDateResponse( @WebParam(name = "user", targetNamespace = "") java.lang.String user ); @WebResult(name = "return", targetNamespace = "") @RequestWrapper(localName = "testListOfComplexResponseObject", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestListOfComplexResponseObject") @WebMethod @ResponseWrapper(localName = "testListOfComplexResponseObjectResponse", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestListOfComplexResponseObjectResponse") public java.util.List<org.jinouts.ws.TestComplexResponse> testListOfComplexResponseObject( @WebParam(name = "user", targetNamespace = "") java.lang.String user ); @WebResult(name = "return", targetNamespace = "") @RequestWrapper(localName = "testArrayResponse", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestArrayResponse") @WebMethod @ResponseWrapper(localName = "testArrayResponseResponse", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestArrayResponseResponse") public java.util.List<java.lang.String> testArrayResponse( @WebParam(name = "user", targetNamespace = "") java.lang.String user ); @WebResult(name = "return", targetNamespace = "") @RequestWrapper(localName = "testListOfObjResponse", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestListOfObjResponse") @WebMethod @ResponseWrapper(localName = "testListOfObjResponseResponse", targetNamespace = "http://ws.jinouts.org/", className = "org.jinouts.ws.TestListOfObjResponseResponse") public java.util.List<org.jinouts.ws.MbrDetail> testListOfObjResponse( @WebParam(name = "user", targetNamespace = "") java.lang.String user ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(targetNamespace = \"http://demo.cxf.com/\", name = \"SampleService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface SampleService {\n\n @WebMethod\n @RequestWrapper(localName = \"serviceMethod\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethod\")\n @ResponseWrapper(localName = \"serviceMethodResponse\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethodResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String serviceMethod();\n}", "@WebService(targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", name = \"NotificationPort\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface NotificationPort {\n\n /**\n * Process a number of notifications.\n */\n @WebResult(name = \"Ack\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n @RequestWrapper(localName = \"notifications\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.Notifications\")\n @WebMethod\n @ResponseWrapper(localName = \"notificationsResponse\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.NotificationsResponse\")\n public boolean notifications(\n @WebParam(name = \"OrganizationId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String organizationId,\n @WebParam(name = \"ActionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String actionId,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String sessionId,\n @WebParam(name = \"EnterpriseUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String enterpriseUrl,\n @WebParam(name = \"PartnerUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String partnerUrl,\n @WebParam(name = \"Notification\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.util.List<com.barryku.cloud.cxf.BookCNotification> notification\n );\n}", "@WebService(targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", name = \"Baeldung\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Baeldung {\n\n @WebMethod\n @RequestWrapper(localName = \"helloStudent\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudent\")\n @ResponseWrapper(localName = \"helloStudentResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudentResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String helloStudent(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n com.uwefuchs.demo.soap.apachecxf.endpoint.Student arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"getStudents\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudents\")\n @ResponseWrapper(localName = \"getStudentsResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudentsResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public com.uwefuchs.demo.soap.apachecxf.endpoint.StudentMap getStudents();\n}", "@WebService(name = \"HelloService\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface HelloService {\r\n\r\n\r\n /**\r\n * \r\n * @param name\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"say\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.Say\")\r\n @ResponseWrapper(localName = \"sayResponse\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.SayResponse\")\r\n public String say(\r\n @WebParam(name = \"name\", targetNamespace = \"\")\r\n String name);\r\n\r\n}", "@WebService(targetNamespace = \"http://interfaces.webService.xxdai.com/\", name = \"BaseInfoCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BaseInfoCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"alterBaseInfo\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfo\")\n @WebMethod\n @ResponseWrapper(localName = \"alterBaseInfoResponse\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfoResponse\")\n public java.lang.String alterBaseInfo(\n @WebParam(name = \"alterBaseInfoJson\", targetNamespace = \"\")\n java.lang.String alterBaseInfoJson\n );\n}", "@WebService(name = \"CustomerSoapType\", targetNamespace = \"http://test.co.id/ws/customer/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CustomerSoapType {\n\n\n /**\n * Request All Customer\n * \n * @return\n * returns id.co.bca.ws.mbs.soap.customer.ListOfCustomerType\n */\n @WebMethod(operationName = \"GetAllCustomer\")\n @WebResult(name = \"GetAllCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public ListOfCustomerType getAllCustomer();\n\n /**\n * Insert Customer\n * \n * @param parameters\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"InsertCustomer\")\n @WebResult(name = \"InsertCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public String insertCustomer(\n @WebParam(name = \"InsertCustomer\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n CustomerType parameters);\n\n}", "@WebService(targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", name = \"ZSDRFC_AMC_CONTRACT_VALIDATION\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface ZSDRFCAMCCONTRACTVALIDATION {\n\n @WebMethod(operationName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", action = \"urn:sap-com:document:sap:rfc:functions:ZSDRFC_AMC_CONTRACT_VALIDATION:ZSDRFC_AMC_CONTRACT_VALIDATIONRequest\")\n @RequestWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATION_Type\")\n @ResponseWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATIONResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATIONResponse\")\n public void zsdrfcAMCCONTRACTVALIDATION(\n @WebParam(name = \"CHASSIS_NO\", targetNamespace = \"\")\n java.lang.String chassisNO,\n @WebParam(name = \"CHASSIS_PL\", targetNamespace = \"\")\n java.lang.String chassisPL,\n @WebParam(name = \"CONTRACT_NO\", targetNamespace = \"\")\n java.lang.String contractNO,\n @WebParam(name = \"CRM_SALE_DATE\", targetNamespace = \"\")\n java.lang.String crmSALEDATE,\n @WebParam(mode = WebParam.Mode.INOUT, name = \"IT_AMC\", targetNamespace = \"\")\n javax.xml.ws.Holder<TABLEOFZSDAMCLINEITEM> itAMC,\n @WebParam(name = \"KMS\", targetNamespace = \"\")\n int kms,\n @WebParam(mode = WebParam.Mode.OUT, name = \"REMARKS\", targetNamespace = \"\")\n javax.xml.ws.Holder<java.lang.String> remarks\n );\n}", "@WebService(wsdlLocation=\"https://salescloud-hostname/crmCommonSalesParties/AccountService?WSDL\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/\",\n name=\"AccountService\")\n@XmlSeeAlso(\n { ObjectFactory.class })\npublic interface AccountService\n{\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processCSAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processCSAccountResponse\")\n @ResponseWrapper(localName=\"processCSAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccountResponse\")\n @RequestWrapper(localName=\"processCSAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public ProcessData processCSAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processData\")\n ProcessData processData, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccountAsync\")\n @RequestWrapper(localName=\"processCSAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccountAsync\")\n @Oneway\n public void processCSAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processData\")\n ProcessData processData, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHints\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHints\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getDfltObjAttrHints/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getDfltObjAttrHintsResponse\")\n @ResponseWrapper(localName=\"getDfltObjAttrHintsResponse\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHintsResponse\")\n @RequestWrapper(localName=\"getDfltObjAttrHints\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHints\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public ObjAttrHints getDfltObjAttrHints(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"viewName\")\n String viewName, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"localeName\")\n String localeName)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTime\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTime\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getServiceLastUpdateTime/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getServiceLastUpdateTimeResponse\")\n @ResponseWrapper(localName=\"getServiceLastUpdateTimeResponse\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTimeResponse\")\n @RequestWrapper(localName=\"getServiceLastUpdateTime\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTime\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public XMLGregorianCalendar getServiceLastUpdateTime()\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityList\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityList\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getEntityList/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getEntityListResponse\")\n @ResponseWrapper(localName=\"getEntityListResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityListResponse\")\n @RequestWrapper(localName=\"getEntityList\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityList\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public List<ServiceViewInfo> getEntityList()\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityListAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityListAsync\")\n @RequestWrapper(localName=\"getEntityListAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityListAsync\")\n @Oneway\n public void getEntityListAsync();\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHintsAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHintsAsync\")\n @RequestWrapper(localName=\"getDfltObjAttrHintsAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHintsAsync\")\n @Oneway\n public void getDfltObjAttrHintsAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"viewName\")\n String viewName, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"localeName\")\n String localeName);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTimeAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTimeAsync\")\n @RequestWrapper(localName=\"getServiceLastUpdateTimeAsync\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTimeAsync\")\n @Oneway\n public void getServiceLastUpdateTimeAsync();\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getAccountResponse\")\n @ResponseWrapper(localName=\"getAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccountResponse\")\n @RequestWrapper(localName=\"getAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult getAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"PartyId\")\n long partyId)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/createAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/createAccountResponse\")\n @ResponseWrapper(localName=\"createAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccountResponse\")\n @RequestWrapper(localName=\"createAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult createAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/updateAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/updateAccountResponse\")\n @ResponseWrapper(localName=\"updateAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccountResponse\")\n @RequestWrapper(localName=\"updateAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult updateAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/deleteAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/deleteAccountResponse\")\n @ResponseWrapper(localName=\"deleteAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccountResponse\")\n @RequestWrapper(localName=\"deleteAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public MethodResult deleteAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/mergeAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/mergeAccountResponse\")\n @ResponseWrapper(localName=\"mergeAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccountResponse\")\n @RequestWrapper(localName=\"mergeAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult mergeAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/findAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/findAccountResponse\")\n @ResponseWrapper(localName=\"findAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccountResponse\")\n @RequestWrapper(localName=\"findAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult findAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findCriteria\")\n FindCriteria findCriteria, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findControl\")\n FindControl findControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processAccountResponse\")\n @ResponseWrapper(localName=\"processAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccountResponse\")\n @RequestWrapper(localName=\"processAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult processAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"changeOperation\")\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n List<Account> account, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccountAsync\")\n @RequestWrapper(localName=\"findAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccountAsync\")\n @Oneway\n public void findAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findCriteria\")\n FindCriteria findCriteria, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findControl\")\n FindControl findControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccountAsync\")\n @RequestWrapper(localName=\"updateAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccountAsync\")\n @Oneway\n public void updateAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccountAsync\")\n @RequestWrapper(localName=\"createAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccountAsync\")\n @Oneway\n public void createAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccountAsync\")\n @RequestWrapper(localName=\"mergeAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccountAsync\")\n @Oneway\n public void mergeAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccountAsync\")\n @RequestWrapper(localName=\"getAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccountAsync\")\n @Oneway\n public void getAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"PartyId\")\n long partyId);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccountAsync\")\n @RequestWrapper(localName=\"processAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccountAsync\")\n @Oneway\n public void processAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"changeOperation\")\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n List<Account> account, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccountAsync\")\n @RequestWrapper(localName=\"deleteAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccountAsync\")\n @Oneway\n public void deleteAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n}", "@WebService(name = \"zperson_communic\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZpersonCommunic {\n\n\n /**\n * \n * @param employeeId\n * @param lastnameM\n * @param fstnameM\n * @param telAts\n * @param orgtxt\n * @param job\n * @param orgUnit\n * @param jobtxt\n * @param checkCommunities\n * @param outTab\n * @return\n * returns test.Bapireturn\n */\n @WebMethod(operationName = \"ZPersonalSearch\")\n @WebResult(name = \"Return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZPersonalSearch\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearch\")\n @ResponseWrapper(localName = \"ZPersonalSearchResponse\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearchResponse\")\n public Bapireturn zPersonalSearch(\n @WebParam(name = \"CheckCommunities\", targetNamespace = \"\")\n String checkCommunities,\n @WebParam(name = \"EmployeeId\", targetNamespace = \"\")\n String employeeId,\n @WebParam(name = \"FstnameM\", targetNamespace = \"\")\n String fstnameM,\n @WebParam(name = \"Job\", targetNamespace = \"\")\n String job,\n @WebParam(name = \"Jobtxt\", targetNamespace = \"\")\n String jobtxt,\n @WebParam(name = \"LastnameM\", targetNamespace = \"\")\n String lastnameM,\n @WebParam(name = \"OrgUnit\", targetNamespace = \"\")\n String orgUnit,\n @WebParam(name = \"Orgtxt\", targetNamespace = \"\")\n String orgtxt,\n @WebParam(name = \"OutTab\", targetNamespace = \"\", mode = WebParam.Mode.INOUT)\n Holder<TableOfZpernComm> outTab,\n @WebParam(name = \"TelAts\", targetNamespace = \"\")\n String telAts);\n\n}", "@WebService(targetNamespace = \"http://cxf.poc.ideo.com/\", name = \"OperationService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface OperationService {\n\n @WebResult(name = \"additionResponse\", targetNamespace = \"http://cxf.poc.ideo.com/\", partName = \"additionResponse\")\n @WebMethod\n public AdditionResponse addition(\n @WebParam(partName = \"additionRequest\", name = \"additionRequest\", targetNamespace = \"http://cxf.poc.ideo.com/\")\n AdditionRequest additionRequest\n );\n}", "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"WebService1Soap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface WebService1Soap {\r\n\r\n @WebResult(name = \"SendMessageResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"SendMessage\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessage\")\r\n @WebMethod(operationName = \"SendMessage\", action = \"http://tempuri.org/SendMessage\")\r\n @ResponseWrapper(localName = \"SendMessageResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessageResponse\")\r\n public java.lang.String sendMessage(\r\n @WebParam(name = \"strConnectorName\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strConnectorName,\r\n @WebParam(name = \"strDisServerHost\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strDisServerHost,\r\n @WebParam(name = \"strMessage\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessage,\r\n @WebParam(name = \"strMessageType\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageType,\r\n @WebParam(name = \"strMessageSchema\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageSchema,\r\n @WebParam(name = \"strNull\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strNull\r\n );\r\n}", "@WebService(name = \"HelloWS\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HelloWS {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHello\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHello\")\n @ResponseWrapper(localName = \"getHelloResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloResponse\")\n public String getHello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHelloWithAuth\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuth\")\n @ResponseWrapper(localName = \"getHelloWithAuthResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuthResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthResponse\")\n public String getHelloWithAuth(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n}", "@WebService(targetNamespace = \"http://webservice.account.xxdai.com/\", name = \"AccountQueryCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface AccountQueryCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectAccountLog2ByIdAndType\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLog2ByIdAndType\")\n @WebMethod\n @ResponseWrapper(localName = \"selectAccountLog2ByIdAndTypeResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLog2ByIdAndTypeResponse\")\n public java.lang.String selectAccountLog2ByIdAndType(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectMoneyRecord\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectMoneyRecord\")\n @WebMethod\n @ResponseWrapper(localName = \"selectMoneyRecordResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectMoneyRecordResponse\")\n public java.lang.String selectMoneyRecord(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectAccountByIdAndType\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountByIdAndType\")\n @WebMethod\n @ResponseWrapper(localName = \"selectAccountByIdAndTypeResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountByIdAndTypeResponse\")\n public java.lang.String selectAccountByIdAndType(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"increaseAccountUsable\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.IncreaseAccountUsable\")\n @WebMethod\n @ResponseWrapper(localName = \"increaseAccountUsableResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.IncreaseAccountUsableResponse\")\n public java.lang.String increaseAccountUsable(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"counttMoneyRecord\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CounttMoneyRecord\")\n @WebMethod\n @ResponseWrapper(localName = \"counttMoneyRecordResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CounttMoneyRecordResponse\")\n public java.lang.String counttMoneyRecord(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"freezeAccount\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.FreezeAccount\")\n @WebMethod\n @ResponseWrapper(localName = \"freezeAccountResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.FreezeAccountResponse\")\n public java.lang.String freezeAccount(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"coinExchange\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CoinExchange\")\n @WebMethod\n @ResponseWrapper(localName = \"coinExchangeResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CoinExchangeResponse\")\n public java.lang.String coinExchange(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectOverdueRepaymentByUserId\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectOverdueRepaymentByUserId\")\n @WebMethod\n @ResponseWrapper(localName = \"selectOverdueRepaymentByUserIdResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectOverdueRepaymentByUserIdResponse\")\n public java.lang.String selectOverdueRepaymentByUserId(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getAccountLogSum\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountLogSum\")\n @WebMethod\n @ResponseWrapper(localName = \"getAccountLogSumResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountLogSumResponse\")\n public java.lang.String getAccountLogSum(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectUserAccountAndCoupon\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectUserAccountAndCoupon\")\n @WebMethod\n @ResponseWrapper(localName = \"selectUserAccountAndCouponResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectUserAccountAndCouponResponse\")\n public java.lang.String selectUserAccountAndCoupon(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectPageAccountMoneyRecord\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectPageAccountMoneyRecord\")\n @WebMethod\n @ResponseWrapper(localName = \"selectPageAccountMoneyRecordResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectPageAccountMoneyRecordResponse\")\n public java.lang.String selectPageAccountMoneyRecord(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectSixAccountLogByUserId\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectSixAccountLogByUserId\")\n @WebMethod\n @ResponseWrapper(localName = \"selectSixAccountLogByUserIdResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectSixAccountLogByUserIdResponse\")\n public java.lang.String selectSixAccountLogByUserId(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryLevelLogList\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.QueryLevelLogList\")\n @WebMethod\n @ResponseWrapper(localName = \"queryLevelLogListResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.QueryLevelLogListResponse\")\n public java.lang.String queryLevelLogList(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getAccountSum\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountSum\")\n @WebMethod\n @ResponseWrapper(localName = \"getAccountSumResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountSumResponse\")\n public java.lang.String getAccountSum(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"saveAccountLog\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SaveAccountLog\")\n @WebMethod\n @ResponseWrapper(localName = \"saveAccountLogResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SaveAccountLogResponse\")\n public java.lang.String saveAccountLog(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectAccountLogByUserId\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLogByUserId\")\n @WebMethod\n @ResponseWrapper(localName = \"selectAccountLogByUserIdResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLogByUserIdResponse\")\n public java.lang.String selectAccountLogByUserId(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectIsUserOverdue\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectIsUserOverdue\")\n @WebMethod\n @ResponseWrapper(localName = \"selectIsUserOverdueResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectIsUserOverdueResponse\")\n public java.lang.String selectIsUserOverdue(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n}", "@WebService(targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", name = \"BillingProcessWebServices\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BillingProcessWebServices {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"billingProcess\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcess\")\n @WebMethod\n @ResponseWrapper(localName = \"billingProcessResponse\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcessResponse\")\n public co.nz.pizzashack.client.integration.ws.client.stub.BillingResponse billingProcess(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n co.nz.pizzashack.client.integration.ws.client.stub.BillingDto arg0\n ) throws FaultMessage;\n}", "@WebService(targetNamespace = \"http://webservice.question.xxdai.com/\", name = \"QuestionCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface QuestionCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"saveUseQuestionAnswer\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.SaveUseQuestionAnswer\")\n @WebMethod\n @ResponseWrapper(localName = \"saveUseQuestionAnswerResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.SaveUseQuestionAnswerResponse\")\n public java.lang.String saveUseQuestionAnswer(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryQuestionNaire\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryQuestionNaire\")\n @WebMethod\n @ResponseWrapper(localName = \"queryQuestionNaireResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryQuestionNaireResponse\")\n public java.lang.String queryQuestionNaire(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"saveQuestionUser\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.SaveQuestionUser\")\n @WebMethod\n @ResponseWrapper(localName = \"saveQuestionUserResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.SaveQuestionUserResponse\")\n public java.lang.String saveQuestionUser(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryQuestion\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryQuestion\")\n @WebMethod\n @ResponseWrapper(localName = \"queryQuestionResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryQuestionResponse\")\n public java.lang.String queryQuestion(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryNaireByCode\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryNaireByCode\")\n @WebMethod\n @ResponseWrapper(localName = \"queryNaireByCodeResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryNaireByCodeResponse\")\n public java.lang.String queryNaireByCode(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n}", "@WebService(name = \"ZWSVUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\r\npublic interface ZWSVURUPDSTATUS {\r\n\r\n\r\n /**\r\n * \r\n * @param iNROLIQ\r\n * @param eRETURN\r\n * @param iESTADO\r\n * @param eMESSAGE\r\n */\r\n @WebMethod(operationName = \"ZPSCDFM_VUR_UPDSTATUS\")\r\n @RequestWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUS\")\r\n @ResponseWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUSResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUSResponse\")\r\n public void zpscdfmVURUPDSTATUS(\r\n @WebParam(name = \"I_ESTADO\", targetNamespace = \"\")\r\n String iESTADO,\r\n @WebParam(name = \"I_NROLIQ\", targetNamespace = \"\")\r\n String iNROLIQ,\r\n @WebParam(name = \"E_MESSAGE\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<String> eMESSAGE,\r\n @WebParam(name = \"E_RETURN\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<Integer> eRETURN);\r\n\r\n}", "@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService\", name = \"RoutePointConnectionService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.routepointconnectionservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface RoutePointConnectionService {\r\n\r\n @WebMethod(operationName = \"RoutePointRetrieve\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/RoutePointRetrieve\")\r\n public void routePointRetrieve(\r\n @WebParam(partName = \"parameters\", name = \"RoutePointRetrieveRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RoutePointRetrieveRequest parameters\r\n ) throws RoutePointRetrieveException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"RouteResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"result\")\r\n @WebMethod(operationName = \"Route\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/Route\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteResponse route(\r\n @WebParam(partName = \"parameters\", name = \"RouteRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteRequest parameters\r\n ) throws RouteException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GiveMediaTreatmentResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GiveMediaTreatment\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GiveMediaTreatment\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentResponse giveMediaTreatment(\r\n @WebParam(partName = \"parameters\", name = \"GiveMediaTreatmentRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentRequest parameters\r\n ) throws GiveMediaTreatmentException, SessionNotCreatedException;\r\n}", "@WebService(name = \"DocumentValidationSchemaService\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\")\n@XmlSeeAlso({\n pl.softfly.integ.doc.entity.ObjectFactory.class,\n pl.softfly.integ.endpoint.entity.ObjectFactory.class,\n pl.softfly.integ.entity.ObjectFactory.class,\n pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ObjectFactory.class,\n pl.softfly.integ.shipment.entity.ObjectFactory.class\n})\npublic interface DocumentValidationSchemaService {\n\n\n /**\n * @param arg0\n * @return returns pl.softfly.integ.doc.entity.DocumentHeader\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ValidateResponse\")\n public DocumentHeader validate(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n DocumentHeader arg0);\n\n}", "@WebService(targetNamespace = \"http://iso8583.org/payload\", name = \"CoreServicePortType\")\n@XmlSeeAlso({ObjectFactory.class, org.team5.bank.core.server.service.model.xsd.ObjectFactory.class})\npublic interface CoreServicePortType {\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getTransactionHistory\", output = \"urn:getTransactionHistoryResponse\")\n @RequestWrapper(localName = \"getTransactionHistory\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistory\")\n @WebMethod(action = \"urn:getTransactionHistory\")\n @ResponseWrapper(localName = \"getTransactionHistoryResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistoryResponse\")\n public java.util.List<org.team5.bank.core.server.service.model.xsd.Transaction> getTransactionHistory(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getBalance\", output = \"urn:getBalanceResponse\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalance\")\n @WebMethod(action = \"urn:getBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalanceResponse\")\n public java.lang.String getBalance(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getAccount\", output = \"urn:getAccountResponse\")\n @RequestWrapper(localName = \"getAccount\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccount\")\n @WebMethod(action = \"urn:getAccount\")\n @ResponseWrapper(localName = \"getAccountResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccountResponse\")\n public org.team5.bank.core.server.service.model.xsd.Account getAccount(\n @WebParam(name = \"userId\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Long userId\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:withdraw\", output = \"urn:withdrawResponse\")\n @RequestWrapper(localName = \"withdraw\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Withdraw\")\n @WebMethod(action = \"urn:withdraw\")\n @ResponseWrapper(localName = \"withdrawResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.WithdrawResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse withdraw(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:fundTransfer\", output = \"urn:fundTransferResponse\")\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransfer\")\n @WebMethod(action = \"urn:fundTransfer\")\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransferResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse fundTransfer(\n @WebParam(name = \"from\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String from,\n @WebParam(name = \"to\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String to,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:deposit\", output = \"urn:depositResponse\")\n @RequestWrapper(localName = \"deposit\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Deposit\")\n @WebMethod(action = \"urn:deposit\")\n @ResponseWrapper(localName = \"depositResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.DepositResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse deposit(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n}", "@WebService(name = \"infra_PortType\", targetNamespace = PepConfig.TARGET_NAMESPACE)\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n sk.gov.ekolky.estamp.fo10.nominal.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.aponet.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.assessment.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.cashdesk.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.infra.ObjectFactory.class,\n sk.gov.ekolky.estamp.xsd10.ObjectFactory.class,\n com.jump_soft.estamp.fo10.common.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.estamp.ObjectFactory.class\n})\npublic interface InfraPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.IncidentRegisterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"incidentRegisterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public IncidentRegisterResponse incidentRegister(\n @WebParam(name = \"incidentRegisterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n IncidentRegisterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.DeviceStateCheckResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"deviceStateCheckResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public DeviceStateCheckResponse deviceStateCheck(\n @WebParam(name = \"deviceStateCheckRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n DeviceStateCheckRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListParameterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listParameterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListParameterResponse listParameter(\n @WebParam(name = \"listParameterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListParameterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListServiceResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listServiceResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListServiceResponse listService(\n @WebParam(name = \"listServiceRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListServiceRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeeResponse listFee(\n @WebParam(name = \"listFeeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListOfficeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listOfficeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListOfficeResponse listOffice(\n @WebParam(name = \"listOfficeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListOfficeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListSWPResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listSWPResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListSWPResponse listSWP(\n @WebParam(name = \"listSWPRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListSWPRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListCountryResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listCountryResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListCountryResponse listCountry(\n @WebParam(name = \"listCountryRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListCountryRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListDeviceInfoResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listDeviceInfoResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListDeviceInfoResponse listDeviceInfo(\n @WebParam(name = \"listDeviceInfoRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListDeviceInfoRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeDevicesResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeDevicesResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeDevicesResponse listFeDevices(\n @WebParam(name = \"listFeDevicesRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeDevicesRequest parameters)\n throws BloxFaultMessage\n ;\n\n}", "@WebService(name = \"wsFoo\", targetNamespace = \"http://helloworldws.yv84.me/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface WsFoo {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEcho\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEcho\")\n @ResponseWrapper(localName = \"getEchoResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEchoResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getEchoRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getEchoResponse\")\n public String getEcho(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetListResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getListRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getListResponse\")\n public List<String> getList();\n\n}", "@WebService(targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/requester\", name = \"ConnectionRequesterPort\")\n@XmlSeeAlso({net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.ObjectFactory.class, net.es.nsi.lib.soap.gen.saml.assertion.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmlenc.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmldsig.ObjectFactory.class})\npublic interface ConnectionRequesterPort {\n\n /**\n * This reserveFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a reserve failure. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveFailed\")\n @RequestWrapper(localName = \"reserveFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This querySummaryConfirmed message is sent from the target NSA to\n * requesting NSA as an indication of a successful querySummary\n * operation. This is in response to an original querySummary request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/querySummaryConfirmed\")\n @RequestWrapper(localName = \"querySummaryConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void querySummaryConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This provisionConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful provision operation.\n * This is in response to an original provision request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/provisionConfirmed\")\n @RequestWrapper(localName = \"provisionConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void provisionConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * The error message is sent from a Provider NSA to Requester\n * NSA as an indication of the occurence of an error condition.\n * This is in response to an original request from the associated\n * Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/error\")\n @RequestWrapper(localName = \"error\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericErrorType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void error(\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This terminateConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful terminate operation.\n * This is in response to an original terminate request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/terminateConfirmed\")\n @RequestWrapper(localName = \"terminateConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void terminateConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This releaseConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful release operation.\n * This is in response to an original release request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/releaseConfirmed\")\n @RequestWrapper(localName = \"releaseConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void releaseConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous error message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/errorEvent\")\n @RequestWrapper(localName = \"errorEvent\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ErrorEventType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void errorEvent(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"event\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.EventEnumType event,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"additionalInfo\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.TypeValuePairListType additionalInfo,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/dataPlaneStateChange\")\n @RequestWrapper(localName = \"dataPlaneStateChange\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStateChangeRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void dataPlaneStateChange(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"dataPlaneStatus\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStatusType dataPlaneStatus,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveAbortConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveAbort.\n * This is in response to an original reserveAbort request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveAbortConfirmed\")\n @RequestWrapper(localName = \"reserveAbortConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveAbortConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/messageDeliveryTimeout\")\n @RequestWrapper(localName = \"messageDeliveryTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.MessageDeliveryTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void messageDeliveryTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"correlationId\", targetNamespace = \"\")\n java.lang.String correlationId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a modify failure. This\n * is in response to an original modify request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitFailed\")\n @RequestWrapper(localName = \"reserveCommitFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryNotificationConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryNotification\n * operation. This is in response to an original queryNotification request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryNotificationConfirmed\")\n @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n @WebResult(name = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", partName = \"acknowledgment\")\n public net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType queryNotificationConfirmed(\n @WebParam(partName = \"queryNotificationConfirmed\", name = \"queryNotificationConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryNotificationConfirmedType queryNotificationConfirmed,\n @WebParam(partName = \"header\", mode = WebParam.Mode.INOUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryResultConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryResult operation.\n * This is in response to an original queryResult request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryResultConfirmed\")\n @RequestWrapper(localName = \"queryResultConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryResultConfirmed(\n @WebParam(name = \"result\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultResponseType> result,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveCommit request.\n * This is in response to an original reserveCommit request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitConfirmed\")\n @RequestWrapper(localName = \"reserveCommitConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveTimeout\")\n @RequestWrapper(localName = \"reserveTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"timeoutValue\", targetNamespace = \"\")\n int timeoutValue,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reservation. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveConfirmed\")\n @RequestWrapper(localName = \"reserveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"globalReservationId\", targetNamespace = \"\")\n java.lang.String globalReservationId,\n @WebParam(name = \"description\", targetNamespace = \"\")\n java.lang.String description,\n @WebParam(name = \"criteria\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReservationConfirmCriteriaType criteria,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryRecursiveConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryRecursive\n * operation. This is in response to an original queryRecursive request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryRecursiveConfirmed\")\n @RequestWrapper(localName = \"queryRecursiveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryRecursiveConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n}", "@WebService(targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", name = \"MDMTableConditionDataNew\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface MDMTableConditionDataNew {\n\n @WebMethod(action = \"process\")\n @RequestWrapper(localName = \"process\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.Process\")\n @ResponseWrapper(localName = \"processResponse\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.ProcessResponse\")\n public void process(\n\n @WebParam(name = \"IN_SYS_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inSYSNAME,\n @WebParam(name = \"IN_MASTER_TYPE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inMASTERTYPE,\n @WebParam(name = \"IN_TABLE_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inTABLENAME,\n @WebParam(name = \"IN_FIELDS_VALUE_TABLE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n HAIERMDMFIELDSVALUETABLE inFIELDSVALUETABLE,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RESULT\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRESULT,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETMSG\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETMSG,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETCODE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETCODE\n );\n}", "@WebService(name = \"SharesBrokeringSystem\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharesBrokeringSystem {\n\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"sellShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SellShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/sellShares\")\n public void sellShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"companyList\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyList\")\n @ResponseWrapper(localName = \"companyListResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyListResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListResponse\")\n public List<Company> companyList();\n\n /**\n * \n * @param company\n * @return\n * returns org.me.sharesbrokeringsystem.Company\n * @throws CertificateException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"moreCompanyInfo\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfo\")\n @ResponseWrapper(localName = \"moreCompanyInfoResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfoResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoResponse\", fault = {\n @FaultAction(className = CertificateException_Exception.class, value = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfo/Fault/CertificateException\")\n })\n public Company moreCompanyInfo(\n @WebParam(name = \"_company\", targetNamespace = \"\")\n Company company)\n throws CertificateException_Exception\n ;\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns org.me.sharesbrokeringsystem.Client\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logIn\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogIn\")\n @ResponseWrapper(localName = \"logInResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogInResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInResponse\")\n public Client logIn(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param currentTrades\n * @return\n * returns org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompanies\")\n @ResponseWrapper(localName = \"updateCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesResponse\")\n public org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return updateCompanies(\n @WebParam(name = \"_currentTrades\", targetNamespace = \"\")\n org.me.sharesbrokeringsystem.UpdateCompanies.CurrentTrades currentTrades);\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"signUp\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUp\")\n @ResponseWrapper(localName = \"signUpResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUpResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpResponse\")\n public int signUp(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param client\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logOut\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOut\")\n @ResponseWrapper(localName = \"logOutResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOutResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutResponse\")\n public int logOut(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client);\n\n /**\n * \n * @param amount\n * @param client\n * @param currency\n * @return\n * returns double\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"depositAmount\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmount\")\n @ResponseWrapper(localName = \"depositAmountResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmountResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountResponse\")\n public double depositAmount(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"amount\", targetNamespace = \"\")\n double amount,\n @WebParam(name = \"currency\", targetNamespace = \"\")\n String currency);\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"buyShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.BuyShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/buyShares\")\n public void buyShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompanies\")\n @ResponseWrapper(localName = \"getCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesResponse\")\n public List<Company> getCompanies();\n\n}", "@WebService(name = \"ProfilePort\", targetNamespace = \"http://ws.clkio.com\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n com.clkio.schemas.ObjectFactory.class,\n com.clkio.schemas.adjusting.ObjectFactory.class,\n com.clkio.schemas.clockinclockout.ObjectFactory.class,\n com.clkio.schemas.common.ObjectFactory.class,\n com.clkio.schemas.day.ObjectFactory.class,\n com.clkio.schemas.email.ObjectFactory.class,\n com.clkio.schemas.login.ObjectFactory.class,\n com.clkio.schemas.manualentering.ObjectFactory.class,\n com.clkio.schemas.profile.ObjectFactory.class,\n com.clkio.schemas.reason.ObjectFactory.class,\n com.clkio.schemas.resetpassword.ObjectFactory.class,\n com.clkio.schemas.timecard.ObjectFactory.class,\n com.clkio.schemas.user.ObjectFactory.class\n})\npublic interface ProfilePort {\n\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.profile.ListProfileResponse\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"listProfileResponse\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public ListProfileResponse list(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"listProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n ListProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.ResponseCreated\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"responseCreated\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public ResponseCreated insert(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"insertProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n InsertProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.Response\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"response\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public Response update(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"updateProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n UpdateProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.Response\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"response\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public Response delete(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"deleteProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n DeleteProfileRequest request)\n throws ResponseException\n ;\n\n}", "@WebService(name = \"GetAllProductsSoap\", targetNamespace = \"http://tempuri.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetAllProductsSoap {\n\n\n /**\n * \n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetAllProductsList\", action = \"http://tempuri.org/GetAllProductsList\")\n @WebResult(name = \"GetAllProductsListResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetAllProductsList\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAllProductsList\")\n @ResponseWrapper(localName = \"GetAllProductsListResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAllProductsListResponse\")\n public ArrayOfProductClass getAllProductsList();\n\n /**\n * \n * @param serviceid\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetProductsByServiceID\", action = \"http://tempuri.org/GetProductsByServiceID\")\n @WebResult(name = \"GetProductsByServiceIDResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductsByServiceID\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByServiceID\")\n @ResponseWrapper(localName = \"GetProductsByServiceIDResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByServiceIDResponse\")\n public ArrayOfProductClass getProductsByServiceID(\n @WebParam(name = \"serviceid\", targetNamespace = \"http://tempuri.org/\")\n String serviceid);\n\n /**\n * \n * @param zip\n * @param serviceid\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetProductsByZipAndServiceID\", action = \"http://tempuri.org/GetProductsByZipAndServiceID\")\n @WebResult(name = \"GetProductsByZipAndServiceIDResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductsByZipAndServiceID\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByZipAndServiceID\")\n @ResponseWrapper(localName = \"GetProductsByZipAndServiceIDResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByZipAndServiceIDResponse\")\n public ArrayOfProductClass getProductsByZipAndServiceID(\n @WebParam(name = \"serviceid\", targetNamespace = \"http://tempuri.org/\")\n String serviceid,\n @WebParam(name = \"zip\", targetNamespace = \"http://tempuri.org/\")\n int zip);\n\n /**\n * \n * @param zip\n * @param stateCode\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetEnterpriseProducts\", action = \"http://tempuri.org/GetEnterpriseProducts\")\n @WebResult(name = \"GetEnterpriseProductsResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetEnterpriseProducts\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetEnterpriseProducts\")\n @ResponseWrapper(localName = \"GetEnterpriseProductsResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetEnterpriseProductsResponse\")\n public ArrayOfProductClass getEnterpriseProducts(\n @WebParam(name = \"state_code\", targetNamespace = \"http://tempuri.org/\")\n String stateCode,\n @WebParam(name = \"zip\", targetNamespace = \"http://tempuri.org/\")\n int zip);\n\n /**\n * \n * @return\n * returns org.tempuri.ArrayOfProductRate\n */\n @WebMethod(operationName = \"GetProductRates\", action = \"http://tempuri.org/GetProductRates\")\n @WebResult(name = \"GetProductRatesResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductRates\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductRates\")\n @ResponseWrapper(localName = \"GetProductRatesResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductRatesResponse\")\n public ArrayOfProductRate getProductRates();\n\n}", "@WebService(targetNamespace = \"http://demo.grails.org/\", name = \"CustomerService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface CustomerService {\n\n @WebResult(name = \"Customer\", targetNamespace = \"\")\n @RequestWrapper(localName = \"GetCustomer\", targetNamespace = \"http://demo.grails.org/\", className = \"org.grails.demo.soap.customer.GetCustomer\")\n @WebMethod(operationName = \"GetCustomer\")\n @ResponseWrapper(localName = \"GetCustomerResponse\", targetNamespace = \"http://demo.grails.org\", className = \"org.grails.demo.soap.customer.GetCustomerResponse\")\n public org.grails.demo.soap.customer.Customer getCustomer(\n @WebParam(name = \"CustomerId\", targetNamespace = \"\")\n int customerId,\n @WebParam(name = \"FirstName\", targetNamespace = \"\")\n java.lang.String firstName\n );\n\n @WebResult(name = \"Customers\", targetNamespace = \"\")\n @RequestWrapper(localName = \"GetCustomers\", targetNamespace = \"http://demo.grails.org/\", className = \"org.grails.demo.soap.customer.GetCustomers\")\n @WebMethod(operationName = \"GetCustomers\")\n @ResponseWrapper(localName = \"GetCustomersResponse\", targetNamespace = \"http://demo.grails.org\", className = \"org.grails.demo.soap.customer.GetCustomersResponse\")\n public java.util.List<org.grails.demo.soap.customer.Customer> getCustomers();\n\n @WebResult(name = \"Customer\", targetNamespace = \"\")\n @RequestWrapper(localName = \"MakePayment\", targetNamespace = \"http://demo.grails.org/\", className = \"org.grails.demo.soap.customer.MakePayment\")\n @WebMethod(operationName = \"MakePayment\")\n @ResponseWrapper(localName = \"MakePaymentResponse\", targetNamespace = \"http://demo.grails.org\", className = \"org.grails.demo.soap.customer.MakePaymentResponse\")\n public org.grails.demo.soap.customer.Customer makePayment(\n @WebParam(name = \"CustomerId\", targetNamespace = \"\")\n int customerId,\n @WebParam(name = \"PaymentDate\", targetNamespace = \"\")\n java.util.Date paymentDate,\n @WebParam(name = \"PaymentAmount\", targetNamespace = \"\")\n java.lang.Double paymentAmount\n );\n}", "@WebService(name = \"ListSubscriptions\", targetNamespace = \"http://soap/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ListSubscriptions {\n\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetListResponse\")\n public String getList();\n\n}", "@WebService(name = \"CardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CardWS {\n\n\n /**\n * \n * @param plastic\n * @param fechaCorte\n * @param fechaAsignacion\n * @param client\n * @param canal\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"assignCardToClientWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWS\")\n @ResponseWrapper(localName = \"assignCardToClientWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSResponse\")\n public RespuestaDTO assignCardToClientWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"plastic\", targetNamespace = \"\")\n Plastic plastic,\n @WebParam(name = \"fechaCorte\", targetNamespace = \"\")\n String fechaCorte,\n @WebParam(name = \"fechaAsignacion\", targetNamespace = \"\")\n String fechaAsignacion,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param client\n * @param canal\n * @param status\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"cancelCardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWS\")\n @ResponseWrapper(localName = \"cancelCardWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSResponse\")\n public RespuestaDTO cancelCardWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"status\", targetNamespace = \"\")\n String status,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param plasticNumber\n * @return\n * returns com.cbp1.ws.cbp.service.Plastic\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"consultPlasticByNumberWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWS\")\n @ResponseWrapper(localName = \"consultPlasticByNumberWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSResponse\")\n public Plastic consultPlasticByNumberWS(\n @WebParam(name = \"plasticNumber\", targetNamespace = \"\")\n String plasticNumber);\n\n}", "@WebService(targetNamespace = \"http://service.cxf.rain6.com/\", name = \"TestWebService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface TestWebService {\n\n @WebMethod\n @RequestWrapper(localName = \"selectByPrimaryKey\", targetNamespace = \"http://service.cxf.rain6.com/\", className = \"com.rain6.cxf.service.SelectByPrimaryKey\")\n @ResponseWrapper(localName = \"selectByPrimaryKeyResponse\", targetNamespace = \"http://service.cxf.rain6.com/\", className = \"com.rain6.cxf.service.SelectByPrimaryKeyResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public Lawyer selectByPrimaryKey(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0\n );\n}", "@WebService(name = \"ConfigurationService\", targetNamespace = \"http://ws.coverity.com/v7\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ConfigurationService {\n\n\n /**\n * \n * @param message\n * @param usernames\n * @param subject\n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"notify\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.Notify\")\n @ResponseWrapper(localName = \"notifyResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.NotifyResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/notifyRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/notifyResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/notify/Fault/CovRemoteServiceException\")\n })\n public List<String> notify(\n @WebParam(name = \"usernames\", targetNamespace = \"\")\n List<String> usernames,\n @WebParam(name = \"subject\", targetNamespace = \"\")\n String subject,\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.AttributeDefinitionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttributes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributes\")\n @ResponseWrapper(localName = \"getAttributesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesResponse\")\n public List<AttributeDefinitionDataObj> getAttributes();\n\n /**\n * \n * @param attributeDefinitionId\n * @return\n * returns com.coverity.ws.v7.AttributeDefinitionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttribute\")\n @ResponseWrapper(localName = \"getAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAttribute/Fault/CovRemoteServiceException\")\n })\n public AttributeDefinitionDataObj getAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.VersionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersionResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getVersionRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getVersionResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getVersion/Fault/CovRemoteServiceException\")\n })\n public VersionDataObj getVersion()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.GroupsPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroups\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroups\")\n @ResponseWrapper(localName = \"getGroupsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroups/Fault/CovRemoteServiceException\")\n })\n public GroupsPageDataObj getGroups(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n GroupFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.UsersPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUsers\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsers\")\n @ResponseWrapper(localName = \"getUsersResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsersResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUsersRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUsersResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUsers/Fault/CovRemoteServiceException\")\n })\n public UsersPageDataObj getUsers(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n UserFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @return\n * returns com.coverity.ws.v7.GroupDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroup\")\n @ResponseWrapper(localName = \"getGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroup/Fault/CovRemoteServiceException\")\n })\n public GroupDataObj getGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @return\n * returns com.coverity.ws.v7.RoleDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRole\")\n @ResponseWrapper(localName = \"getRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getRole/Fault/CovRemoteServiceException\")\n })\n public RoleDataObj getRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttribute\")\n @ResponseWrapper(localName = \"createAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createAttribute/Fault/CovRemoteServiceException\")\n })\n public void createAttribute(\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.RoleDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllRoles\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRoles\")\n @ResponseWrapper(localName = \"getAllRolesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRolesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesResponse\")\n public List<RoleDataObj> getAllRoles();\n\n /**\n * \n * @param groupSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroup\")\n @ResponseWrapper(localName = \"createGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createGroup/Fault/CovRemoteServiceException\")\n })\n public void createGroup(\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRole\")\n @ResponseWrapper(localName = \"createRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createRole/Fault/CovRemoteServiceException\")\n })\n public void createRole(\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroup\")\n @ResponseWrapper(localName = \"deleteGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroup/Fault/CovRemoteServiceException\")\n })\n public void deleteGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupSpec\n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroup\")\n @ResponseWrapper(localName = \"updateGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateGroup/Fault/CovRemoteServiceException\")\n })\n public void updateGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId,\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRole\")\n @ResponseWrapper(localName = \"updateRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateRole/Fault/CovRemoteServiceException\")\n })\n public void updateRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId,\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRole\")\n @ResponseWrapper(localName = \"deleteRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteRole/Fault/CovRemoteServiceException\")\n })\n public void deleteRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStream\")\n @ResponseWrapper(localName = \"createStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStream/Fault/CovRemoteServiceException\")\n })\n public void createStream(\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStream\")\n @ResponseWrapper(localName = \"updateStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateStream/Fault/CovRemoteServiceException\")\n })\n public void updateStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param onlyIfEmpty\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStream\")\n @ResponseWrapper(localName = \"deleteStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteStream/Fault/CovRemoteServiceException\")\n })\n public void deleteStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"onlyIfEmpty\", targetNamespace = \"\")\n boolean onlyIfEmpty)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUser\")\n @ResponseWrapper(localName = \"createUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createUser/Fault/CovRemoteServiceException\")\n })\n public void createUser(\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUser\")\n @ResponseWrapper(localName = \"updateUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateUser/Fault/CovRemoteServiceException\")\n })\n public void updateUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUser\")\n @ResponseWrapper(localName = \"deleteUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteUser/Fault/CovRemoteServiceException\")\n })\n public void deleteUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllIntegrityControlPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissions\")\n @ResponseWrapper(localName = \"getAllIntegrityControlPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissions/Fault/CovRemoteServiceException\")\n })\n public List<PermissionDataObj> getAllIntegrityControlPermissions(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttribute\")\n @ResponseWrapper(localName = \"updateAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateAttribute/Fault/CovRemoteServiceException\")\n })\n public void updateAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId,\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttribute\")\n @ResponseWrapper(localName = \"deleteAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttribute/Fault/CovRemoteServiceException\")\n })\n public void deleteAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMap\")\n @ResponseWrapper(localName = \"createComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMap/Fault/CovRemoteServiceException\")\n })\n public void createComponentMap(\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMap\")\n @ResponseWrapper(localName = \"updateComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMap/Fault/CovRemoteServiceException\")\n })\n public void updateComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId,\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMap\")\n @ResponseWrapper(localName = \"deleteComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMap/Fault/CovRemoteServiceException\")\n })\n public void deleteComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProject\")\n @ResponseWrapper(localName = \"createProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createProject/Fault/CovRemoteServiceException\")\n })\n public void createProject(\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProject\")\n @ResponseWrapper(localName = \"updateProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateProject/Fault/CovRemoteServiceException\")\n })\n public void updateProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProject\")\n @ResponseWrapper(localName = \"deleteProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteProject/Fault/CovRemoteServiceException\")\n })\n public void deleteProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStore\")\n @ResponseWrapper(localName = \"createTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStore/Fault/CovRemoteServiceException\")\n })\n public void createTriageStore(\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStore\")\n @ResponseWrapper(localName = \"updateTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStore/Fault/CovRemoteServiceException\")\n })\n public void updateTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStore\")\n @ResponseWrapper(localName = \"deleteTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStore/Fault/CovRemoteServiceException\")\n })\n public void deleteTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentId\n * @return\n * returns com.coverity.ws.v7.ComponentDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponent\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponent\")\n @ResponseWrapper(localName = \"getComponentResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponent/Fault/CovRemoteServiceException\")\n })\n public ComponentDataObj getComponent(\n @WebParam(name = \"componentId\", targetNamespace = \"\")\n ComponentIdDataObj componentId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns com.coverity.ws.v7.UserDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUser\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUser/Fault/CovRemoteServiceException\")\n })\n public UserDataObj getUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.StreamDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStreams\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreams\")\n @ResponseWrapper(localName = \"getStreamsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreamsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getStreams/Fault/CovRemoteServiceException\")\n })\n public List<StreamDataObj> getStreams(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n StreamFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.CheckerPropertyDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCheckerProperties\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerProperties\")\n @ResponseWrapper(localName = \"getCheckerPropertiesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerPropertiesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerProperties/Fault/CovRemoteServiceException\")\n })\n public List<CheckerPropertyDataObj> getCheckerProperties(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n CheckerPropertyFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteSnapshot\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshot\")\n @ResponseWrapper(localName = \"deleteSnapshotResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshotResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshot/Fault/CovRemoteServiceException\")\n })\n public void deleteSnapshot(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param viewname\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"executeNotification\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotification\")\n @ResponseWrapper(localName = \"executeNotificationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotificationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/executeNotification/Fault/CovRemoteServiceException\")\n })\n public void executeNotification(\n @WebParam(name = \"viewname\", targetNamespace = \"\")\n String viewname)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ProjectDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProjects\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjects\")\n @ResponseWrapper(localName = \"getProjectsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjectsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getProjects/Fault/CovRemoteServiceException\")\n })\n public List<ProjectDataObj> getProjects(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ProjectFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @param sourceStreamId\n * @return\n * returns com.coverity.ws.v7.StreamDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"copyStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStream\")\n @ResponseWrapper(localName = \"copyStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/copyStream/Fault/CovRemoteServiceException\")\n })\n public StreamDataObj copyStream(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"sourceStreamId\", targetNamespace = \"\")\n StreamIdDataObj sourceStreamId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStreamInProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProject\")\n @ResponseWrapper(localName = \"createStreamInProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProject/Fault/CovRemoteServiceException\")\n })\n public void createStreamInProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"setAcceptingNewCommits\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommits\")\n @ResponseWrapper(localName = \"setAcceptingNewCommitsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommitsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsResponse\")\n public void setAcceptingNewCommits(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n boolean arg0);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDay\")\n @ResponseWrapper(localName = \"getMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayResponse\")\n public String getMessageOfTheDay();\n\n /**\n * \n * @param message\n */\n @WebMethod\n @RequestWrapper(localName = \"setMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDay\")\n @ResponseWrapper(localName = \"setMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayResponse\")\n public void setMessageOfTheDay(\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message);\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.TriageStoreDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStores\")\n @ResponseWrapper(localName = \"getTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStores/Fault/CovRemoteServiceException\")\n })\n public List<TriageStoreDataObj> getTriageStores(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n TriageStoreFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.CommitStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCommitState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitState\")\n @ResponseWrapper(localName = \"getCommitStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateResponse\")\n public CommitStateDataObj getCommitState();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.ServerDomainIdDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLdapServerDomains\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomains\")\n @ResponseWrapper(localName = \"getLdapServerDomainsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomainsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsResponse\")\n public List<ServerDomainIdDataObj> getLdapServerDomains();\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.LicenseStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLicenseState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseState\")\n @ResponseWrapper(localName = \"getLicenseStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateResponse\")\n public LicenseStateDataObj getLicenseState();\n\n /**\n * \n * @param snapshotId\n * @param snapshotData\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateSnapshotInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfo\")\n @ResponseWrapper(localName = \"updateSnapshotInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfo/Fault/CovRemoteServiceException\")\n })\n public void updateSnapshotInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n SnapshotIdDataObj snapshotId,\n @WebParam(name = \"snapshotData\", targetNamespace = \"\")\n SnapshotInfoDataObj snapshotData)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.FeatureUpdateTimeDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLastUpdateTimes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimes\")\n @ResponseWrapper(localName = \"getLastUpdateTimesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesResponse\")\n public List<FeatureUpdateTimeDataObj> getLastUpdateTimes();\n\n /**\n * \n * @param ldapConfigurationSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfiguration\")\n @ResponseWrapper(localName = \"createLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void createLdapConfiguration(\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param ldapConfigurationSpec\n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfiguration\")\n @ResponseWrapper(localName = \"updateLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void updateLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj,\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.SnapshotPurgeDetailsObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"getSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public SnapshotPurgeDetailsObj getSnapshotPurgeDetails()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param purgeDetailsSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"setSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"setSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public void setSnapshotPurgeDetails(\n @WebParam(name = \"purgeDetailsSpec\", targetNamespace = \"\")\n SnapshotPurgeDetailsObj purgeDetailsSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param srcTriageStoreIds\n * @param triageStoreId\n * @param deleteSourceStores\n * @param assignStreamsToTargetStore\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"mergeTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStores\")\n @ResponseWrapper(localName = \"mergeTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStores/Fault/CovRemoteServiceException\")\n })\n public void mergeTriageStores(\n @WebParam(name = \"srcTriageStoreIds\", targetNamespace = \"\")\n List<TriageStoreIdDataObj> srcTriageStoreIds,\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"deleteSourceStores\", targetNamespace = \"\")\n boolean deleteSourceStores,\n @WebParam(name = \"assignStreamsToTargetStore\", targetNamespace = \"\")\n boolean assignStreamsToTargetStore)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissions\")\n @ResponseWrapper(localName = \"getAllPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsResponse\")\n public List<PermissionDataObj> getAllPermissions();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.LdapConfigurationDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllLdapConfigurations\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurations\")\n @ResponseWrapper(localName = \"getAllLdapConfigurationsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurationsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurations/Fault/CovRemoteServiceException\")\n })\n public List<LdapConfigurationDataObj> getAllLdapConfigurations()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @return\n * returns java.util.List<com.coverity.ws.v7.DeleteSnapshotJobInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDeleteSnapshotJobInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfo\")\n @ResponseWrapper(localName = \"getDeleteSnapshotJobInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfo/Fault/CovRemoteServiceException\")\n })\n public List<DeleteSnapshotJobInfoDataObj> getDeleteSnapshotJobInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotIdDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotsForStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStream\")\n @ResponseWrapper(localName = \"getSnapshotsForStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStream/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotIdDataObj> getSnapshotsForStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n SnapshotFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfiguration\")\n @ResponseWrapper(localName = \"deleteLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void deleteLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ComponentMapDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponentMaps\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMaps\")\n @ResponseWrapper(localName = \"getComponentMapsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMapsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMaps/Fault/CovRemoteServiceException\")\n })\n public List<ComponentMapDataObj> getComponentMaps(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ComponentMapFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDefectStatuses\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatuses\")\n @ResponseWrapper(localName = \"getDefectStatusesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatusesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatuses/Fault/CovRemoteServiceException\")\n })\n public List<String> getDefectStatuses()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotIds\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotInformation\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformation\")\n @ResponseWrapper(localName = \"getSnapshotInformationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformation/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotInfoDataObj> getSnapshotInformation(\n @WebParam(name = \"snapshotIds\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotIds)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getServerTime\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTime\")\n @ResponseWrapper(localName = \"getServerTimeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTimeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getServerTime/Fault/CovRemoteServiceException\")\n })\n public XMLGregorianCalendar getServerTime()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.ConfigurationDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSystemConfig\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfig\")\n @ResponseWrapper(localName = \"getSystemConfigResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfigResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigResponse\")\n public ConfigurationDataObj getSystemConfig();\n\n}", "@WebService(name = \"memberWs\", targetNamespace = \"http://webservice.cereme.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MemberWs {\r\n\r\n\r\n /**\r\n * \r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"init\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.Init\")\r\n @ResponseWrapper(localName = \"initResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.InitResponse\")\r\n public void init();\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.util.List<org.cereme.digital.library.clientws.Member>\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findAll\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAll\")\r\n @ResponseWrapper(localName = \"findAllResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAllResponse\")\r\n public List<Member> findAll();\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns org.cereme.digital.library.clientws.Member\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findByUsername\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsername\")\r\n @ResponseWrapper(localName = \"findByUsernameResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsernameResponse\")\r\n public Member findByUsername(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"updateMember\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMember\")\r\n @ResponseWrapper(localName = \"updateMemberResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMemberResponse\")\r\n public String updateMember(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Member arg0);\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @return\r\n * returns boolean\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"isValidUser\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUser\")\r\n @ResponseWrapper(localName = \"isValidUserResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUserResponse\")\r\n public boolean isValidUser(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1);\r\n\r\n}", "@WebService(targetNamespace = \"http://jaxws.intergrupo.com.co/\", name = \"InterfaceWebService\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface InterfaceWebService {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoReportado\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportado\")\r\n @WebMethod(action = \"urn:vehiculoReportado\")\r\n @ResponseWrapper(localName = \"vehiculoReportadoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportadoResponse\")\r\n public boolean vehiculoReportado(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"saludo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.Saludo\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"saludoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.SaludoResponse\")\r\n public java.lang.String saludo(\r\n @WebParam(name = \"nombre\", targetNamespace = \"\")\r\n java.lang.String nombre\r\n );\r\n\r\n @WebResult(name = \"vehiculo\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"consultarVehiculo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculo\")\r\n @WebMethod(action = \"urn:consultarVehiculo\")\r\n @ResponseWrapper(localName = \"consultarVehiculoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculoResponse\")\r\n public co.com.intergrupo.cxf.Vehiculo consultarVehiculo(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoAlDiaConImpuesto\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuesto\")\r\n @WebMethod(action = \"urn:vehiculoAlDiaConImpuesto\")\r\n @ResponseWrapper(localName = \"vehiculoAlDiaConImpuestoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuestoResponse\")\r\n public boolean vehiculoAlDiaConImpuesto(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"registradoRunt\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRunt\")\r\n @WebMethod(action = \"urn:registradoRunt\")\r\n @ResponseWrapper(localName = \"registradoRuntResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRuntResponse\")\r\n public boolean registradoRunt(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n}", "@WebService(name = \"InformacionClientePort\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface InformacionClientePort {\n\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.ListaCLienteType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/consultarClientes\")\n @WebResult(name = \"consultarClientesRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public ListaCLienteType consultarClientes(@WebParam(name = \"consultarClientesRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.MoraType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/clientePoseeMora\")\n @WebResult(name = \"clientePoseeMoraRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public MoraType clientePoseeMora(@WebParam(name = \"clientePoseeMoraRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n}", "@WebService(name = \"Repositorio\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Repositorio {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaEstatusComprobante\n * @throws RepositorioEstatusComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioEstatusComprobanteFallaSesionFaultFaultMessage\n * @throws RepositorioEstatusComprobanteFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"EstatusComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/ServicioRepositorio/EstatusComprobante\")\n @WebResult(name = \"RespuestaEstatusComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaEstatusComprobante estatusComprobante(\n @WebParam(name = \"SolicitudEstatusComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudEstatusComprobante parameters)\n throws RepositorioEstatusComprobanteFallaServicioFaultFaultMessage, RepositorioEstatusComprobanteFallaSesionFaultFaultMessage, RepositorioEstatusComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaObtenerComprobante\n * @throws RepositorioObtenerComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioObtenerComprobanteFallaServicioFaultFaultMessage\n * @throws RepositorioObtenerComprobanteFallaSesionFaultFaultMessage\n */\n @WebMethod(operationName = \"ObtenerComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/Repositorio/ObtenerComprobante\")\n @WebResult(name = \"RespuestaObtenerComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaObtenerComprobante obtenerComprobante(\n @WebParam(name = \"SolicitudObtenerComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudObtenerComprobante parameters)\n throws RepositorioObtenerComprobanteFallaServicioFaultFaultMessage, RepositorioObtenerComprobanteFallaSesionFaultFaultMessage, RepositorioObtenerComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaCancelaComprobante\n * @throws RepositorioCancelaComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioCancelaComprobanteFallaSesionFaultFaultMessage\n * @throws RepositorioCancelaComprobanteFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"CancelaComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/ServicioRepositorio/CancelaComprobante\")\n @WebResult(name = \"RespuestaCancelaComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaCancelaComprobante cancelaComprobante(\n @WebParam(name = \"SolicitudCancelaComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudCancelaComprobante parameters)\n throws RepositorioCancelaComprobanteFallaServicioFaultFaultMessage, RepositorioCancelaComprobanteFallaSesionFaultFaultMessage, RepositorioCancelaComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaObtenerQR\n * @throws RepositorioObtenerQRFallaValidacionFaultFaultMessage\n * @throws RepositorioObtenerQRFallaSesionFaultFaultMessage\n * @throws RepositorioObtenerQRFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"ObtenerQR\", action = \"http://Ecodex.WS.Model/2011/CFDI/Repositorio/ObtenerQR\")\n @WebResult(name = \"RespuestaObtenerQR\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaObtenerQR obtenerQR(\n @WebParam(name = \"SolicitudObtenerQR\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudObtenerQR parameters)\n throws RepositorioObtenerQRFallaServicioFaultFaultMessage, RepositorioObtenerQRFallaSesionFaultFaultMessage, RepositorioObtenerQRFallaValidacionFaultFaultMessage\n ;\n\n}", "@WebService(targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", name = \"TestJaxWs\")\n@XmlSeeAlso({ObjectFactory.class})\n//@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)\n@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) //28.12.2018 forum advice\npublic interface TestJaxWs {\n\n @WebMethod(operationName = \"jaxWsTest1\", action = \"http://sap.com/xi/WebService/soap1.1\")\n @RequestWrapper(localName = \"jaxWsTest1\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1\")\n @ResponseWrapper(localName = \"jaxWsTest1Response\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1Response\")\n //@WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String jaxWsTest1(\n @WebParam(name = \"information\", targetNamespace = \"\")\n java.lang.String information,\n @WebParam(name = \"count\", targetNamespace = \"\")\n int count\n //@WebParam(name=\"jaxWsTest1\", targetNamespace = \"\")\n //JaxWsTest1 jaxWsTest1\n ) throws UserDefinedException;\n}", "@WebService(wsdlLocation=\"https://jcs.my-oraclecloudapps.com/HealthCare/HealthCarePort?WSDL\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", name=\"HealthCare\")\n@XmlSeeAlso(\n { com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.ObjectFactory.class })\npublic interface HealthCare\n{\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupResponse\")\n @ResponseWrapper(localName=\"isMedicationReadyToPickupResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickupResponse\")\n @RequestWrapper(localName=\"isMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickup\")\n @WebResult(targetNamespace=\"\")\n public boolean isMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusResponse\")\n @ResponseWrapper(localName=\"requestOrderStatusResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatusResponse\")\n @RequestWrapper(localName=\"requestOrderStatus\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatus\")\n @WebResult(targetNamespace=\"\")\n public String requestOrderStatus(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/setMedicationReadyToPickup\")\n @RequestWrapper(localName=\"setMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.SetMedicationReadyToPickup\")\n @Oneway\n public void setMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionResponse\")\n @ResponseWrapper(localName=\"loadPrescriptionResponse\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescriptionResponse\")\n @RequestWrapper(localName=\"loadPrescription\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescription\")\n @WebResult(targetNamespace=\"\")\n public String loadPrescription(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n}", "public sample.ws.HelloWorldWSStub.HelloAuthenticatedResponse helloAuthenticated(\n\n sample.ws.HelloWorldWSStub.HelloAuthenticated helloAuthenticated8)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\n _operationClient.getOptions().setAction(\"helloAuthenticated\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n helloAuthenticated8,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"helloAuthenticated\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n sample.ws.HelloWorldWSStub.HelloAuthenticatedResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (sample.ws.HelloWorldWSStub.HelloAuthenticatedResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "public sample.ws.HelloWorldWSStub.HelloResponse hello(\n\n sample.ws.HelloWorldWSStub.Hello hello4)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions().setAction(\"hello\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n hello4,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"hello\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n sample.ws.HelloWorldWSStub.HelloResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (sample.ws.HelloWorldWSStub.HelloResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "@WebService(targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", name = \"PasswordGeneratorWSServer\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface PasswordGeneratorWSServer {\n\n @WebMethod(action = \"urn:GeneratePasswordAction\")\n @RequestWrapper(localName = \"generatePassword\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePassword\")\n @ResponseWrapper(localName = \"generatePasswordResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePasswordResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String generatePassword(\n @WebParam(name = \"length\", targetNamespace = \"\")\n java.lang.String length\n );\n\n @WebMethod(action = \"urn:VersionAction\")\n @RequestWrapper(localName = \"version\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.Version\")\n @ResponseWrapper(localName = \"versionResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.VersionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String version();\n}", "@WebService(name = \"BankInterface\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BankInterface {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByID\")\n @ResponseWrapper(localName = \"getOperationByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByIDResponse\")\n public String getOperationByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.SET\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConti\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetConti\")\n @ResponseWrapper(localName = \"getContiResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetContiResponse\")\n public SET getConti();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationsByClientID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientID\")\n @ResponseWrapper(localName = \"getOperationsByClientIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientIDResponse\")\n public List<String> getOperationsByClientID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientIDs\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDs\")\n @ResponseWrapper(localName = \"getClientIDsResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDsResponse\")\n public List<String> getClientIDs();\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.MAP\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDbop\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbop\")\n @ResponseWrapper(localName = \"getDbopResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbopResponse\")\n public MAP getDbop();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByID\")\n @ResponseWrapper(localName = \"getClientByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByIDResponse\")\n public String getClientByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}", "@WebService(name = \"BonusOperationWebService\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BonusOperationWebService {\n\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundResponse tranformFrznBonusFund(\n @WebParam(name = \"tranformFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundCompensationResponse tranformBonusFundCompensation(\n @WebParam(name = \"tranformBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundResponse tranformBonusFund(\n @WebParam(name = \"tranformBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundResponse tranformUnFrznBonusFund(\n @WebParam(name = \"tranformUnFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundCompensationResponse tranformUnFrznBonusFundCompensation(\n @WebParam(name = \"tranformUnFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundCompensationResponse tranformFrznBonusFundCompensation(\n @WebParam(name = \"tranformFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n}", "@WebService(targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", name = \"CartWebService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface CartWebService {\n\n @WebMethod\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.ValidateResponse\")\n @WebResult(name = \"order_id\", targetNamespace = \"\")\n public java.lang.String validate(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName\n ) throws PaymentException_Exception, UnknownCustomerException_Exception, EmptyCartException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"removeItemToCustomerCart\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.RemoveItemToCustomerCart\")\n @ResponseWrapper(localName = \"removeItemToCustomerCartResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.RemoveItemToCustomerCartResponse\")\n public void removeItemToCustomerCart(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName,\n @WebParam(name = \"item\", targetNamespace = \"\")\n stubs.cart.Item item\n ) throws UnknownCustomerException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"addItemToCustomerCart\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.AddItemToCustomerCart\")\n @ResponseWrapper(localName = \"addItemToCustomerCartResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.AddItemToCustomerCartResponse\")\n public void addItemToCustomerCart(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName,\n @WebParam(name = \"item\", targetNamespace = \"\")\n stubs.cart.Item item\n ) throws UnknownCustomerException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"getCustomerCartContents\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.GetCustomerCartContents\")\n @ResponseWrapper(localName = \"getCustomerCartContentsResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.GetCustomerCartContentsResponse\")\n @WebResult(name = \"cart_contents\", targetNamespace = \"\")\n public java.util.List<stubs.cart.Item> getCustomerCartContents(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName\n ) throws UnknownCustomerException_Exception;\n}", "@WebService(name = \"SoapService\", targetNamespace = \"http://test/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SoapService {\n\n\n /**\n * \n * @param fileName\n * @return\n * returns java.lang.Integer\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResult\", targetNamespace = \"http://test/\", className = \"test.GetResult\")\n @ResponseWrapper(localName = \"getResultResponse\", targetNamespace = \"http://test/\", className = \"test.GetResultResponse\")\n @Action(input = \"http://test/SoapService/getResultRequest\", output = \"http://test/SoapService/getResultResponse\")\n public Integer getResult(\n @WebParam(name = \"fileName\", targetNamespace = \"\")\n String fileName);\n\n /**\n * \n * @param path\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"getFilePath\", targetNamespace = \"http://test/\", className = \"test.GetFilePath\")\n @Action(input = \"http://test/SoapService/getFilePath\")\n public void getFilePath(\n @WebParam(name = \"path\", targetNamespace = \"\")\n String path);\n\n}", "@WebService(name = \"CreditReportServiceDelegate\", targetNamespace = \"http://webservice.icrqs.cfcc.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CreditReportServiceDelegate {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns com.cfcc.icrqs.webservice.CuResult\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public CuResult sendCuRequest(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n CuSingleRequest arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.cfcc.icrqs.webservice.CuSingleResult\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public CuSingleResult getCuResult(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n CuGetResult arg0);\n\n}", "@WebService(name = \"Authentication\", targetNamespace = \"urn:authws.services.ecm.opentext.com\")\r\n@XmlSeeAlso({\r\n com.opentext.ecm.api.ObjectFactory.class,\r\n com.opentext.ecm.services.authws.ObjectFactory.class\r\n})\r\npublic interface Authentication {\r\n\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"GetResourceId\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetResourceId\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetResourceId\")\r\n @ResponseWrapper(localName = \"GetResourceIdResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetResourceIdResponse\")\r\n public String getResourceId()\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param resourceId\r\n * @param username\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"GetTicketForUser\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetTicketForUser\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetTicketForUser\")\r\n @ResponseWrapper(localName = \"GetTicketForUserResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetTicketForUserResponse\")\r\n public String getTicketForUser(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"resourceId\", targetNamespace = \"\")\r\n String resourceId)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param password\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"Authenticate\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"Authenticate\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.Authenticate\")\r\n @ResponseWrapper(localName = \"AuthenticateResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateResponse\")\r\n public String authenticate(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateCurrentUser\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateCurrentUser\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUser\")\r\n @ResponseWrapper(localName = \"AuthenticateCurrentUserResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserResponse\")\r\n public String authenticateCurrentUser()\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param code\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateCurrentUserWithCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateCurrentUserWithCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserWithCode\")\r\n @ResponseWrapper(localName = \"AuthenticateCurrentUserWithCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserWithCodeResponse\")\r\n public String authenticateCurrentUserWithCode(\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param code\r\n * @param password\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithPasswordAndCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithPasswordAndCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithPasswordAndCode\")\r\n @ResponseWrapper(localName = \"AuthenticateWithPasswordAndCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithPasswordAndCodeResponse\")\r\n public String authenticateWithPasswordAndCode(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password,\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param token\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithToken\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithToken\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithToken\")\r\n @ResponseWrapper(localName = \"AuthenticateWithTokenResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenResponse\")\r\n public String authenticateWithToken(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"token\", targetNamespace = \"\")\r\n byte[] token)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param token\r\n * @param code\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithTokenAndCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithTokenAndCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenAndCode\")\r\n @ResponseWrapper(localName = \"AuthenticateWithTokenAndCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenAndCodeResponse\")\r\n public String authenticateWithTokenAndCode(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"token\", targetNamespace = \"\")\r\n byte[] token,\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n}", "@WebService(name = \"databaseInfoService\", targetNamespace = \"urn:Vidal\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DatabaseInfoService {\n\n\n /**\n * \n * @param lapVersion\n * @param codeAdeli\n * @param userType\n * @param codeRpps\n * @param codeUserLap\n * @param codeLap\n * @return\n * returns com.whatever.DatabaseInfoService.VIDALAuthStatus\n */\n @WebMethod\n @WebResult(name = \"checkUser\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"checkUser\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.CheckUser\")\n @ResponseWrapper(localName = \"checkUserResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.CheckUserResponse\")\n public VIDALAuthStatus checkUser(\n @WebParam(name = \"codeUserLap\", targetNamespace = \"urn:Vidal\")\n String codeUserLap,\n @WebParam(name = \"codeLap\", targetNamespace = \"urn:Vidal\")\n String codeLap,\n @WebParam(name = \"lapVersion\", targetNamespace = \"urn:Vidal\")\n String lapVersion,\n @WebParam(name = \"userType\", targetNamespace = \"urn:Vidal\")\n String userType,\n @WebParam(name = \"codeRpps\", targetNamespace = \"urn:Vidal\")\n String codeRpps,\n @WebParam(name = \"codeAdeli\", targetNamespace = \"urn:Vidal\")\n String codeAdeli);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"CeMarkingLabel\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getCEMarkingLabel\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetCEMarkingLabel\")\n @ResponseWrapper(localName = \"getCEMarkingLabelResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetCEMarkingLabelResponse\")\n public String getCEMarkingLabel();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"expiryDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getDataExpiryDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetDataExpiryDate\")\n @ResponseWrapper(localName = \"getDataExpiryDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetDataExpiryDateResponse\")\n public XMLGregorianCalendar getDataExpiryDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"extractionDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getExtractionDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetExtractionDate\")\n @ResponseWrapper(localName = \"getExtractionDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetExtractionDateResponse\")\n public XMLGregorianCalendar getExtractionDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"graceEndDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getGraceEndDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetGraceEndDate\")\n @ResponseWrapper(localName = \"getGraceEndDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetGraceEndDateResponse\")\n public XMLGregorianCalendar getGraceEndDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"licenceEndDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceEndDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceEndDate\")\n @ResponseWrapper(localName = \"getLicenceEndDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceEndDateResponse\")\n public XMLGregorianCalendar getLicenceEndDate();\n\n /**\n * \n * @return\n * returns com.whatever.DatabaseInfoService.LicencingStatus\n */\n @WebMethod\n @WebResult(name = \"licenceOrGraceStatus\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceOrGraceStatus\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceOrGraceStatus\")\n @ResponseWrapper(localName = \"getLicenceOrGraceStatusResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceOrGraceStatusResponse\")\n public LicencingStatus getLicenceOrGraceStatus();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"licenceStartDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceStartDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceStartDate\")\n @ResponseWrapper(localName = \"getLicenceStartDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceStartDateResponse\")\n public XMLGregorianCalendar getLicenceStartDate();\n\n /**\n * \n * @return\n * returns com.whatever.DatabaseInfoService.ProductLineType\n */\n @WebMethod\n @WebResult(name = \"productLine\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getProductLine\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetProductLine\")\n @ResponseWrapper(localName = \"getProductLineResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetProductLineResponse\")\n public ProductLineType getProductLine();\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"version\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetVersionResponse\")\n public String getVersion();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"warningDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getWarningDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetWarningDate\")\n @ResponseWrapper(localName = \"getWarningDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetWarningDateResponse\")\n public XMLGregorianCalendar getWarningDate();\n\n}", "@WebService(name = \"OrderPortType\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface OrderPortType {\n\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"getDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType getDish(\n @WebParam(name = \"getDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"addDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType addDish(\n @WebParam(name = \"addDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetDishListResponse\n */\n @WebMethod\n @WebResult(name = \"getDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetDishListResponse getDishList(\n @WebParam(name = \"getDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"getOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType getOrder(\n @WebParam(name = \"getOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"addOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType addOrder(\n @WebParam(name = \"addOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetOrderListResponse\n */\n @WebMethod\n @WebResult(name = \"getOrderListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetOrderListResponse getOrderList(\n @WebParam(name = \"getOrderListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishListType\n */\n @WebMethod\n @WebResult(name = \"getOrderDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishListType getOrderDishList(\n @WebParam(name = \"getOrderDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishType\n */\n @WebMethod\n @WebResult(name = \"addOrderDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishType addOrderDish(\n @WebParam(name = \"addOrderDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderDishRequest parameter);\n\n}", "@WebService(name = \"FileService\", targetNamespace = \"http://soap.web.lab/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface FileService extends lab.web.FileService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n * @throws ServiceException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"writeFile\", targetNamespace = \"http://soap.web.lab/\", className = \"WriteFile\")\n @ResponseWrapper(localName = \"writeFileResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"WriteFileResponse\")\n public boolean writeFile(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0)\n throws ServiceException\n ;\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListAllFiles\", targetNamespace = \"http://soap.web.lab/\", className = \"GetListAllFiles\")\n @ResponseWrapper(localName = \"getListAllFilesResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"GetListAllFilesResponse\")\n public List<String> getListAllFiles();\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n * @throws ServiceException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteFile\", targetNamespace = \"http://soap.web.lab/\", className = \"DeleteFile\")\n @ResponseWrapper(localName = \"deleteFileResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"DeleteFileResponse\")\n public boolean deleteFile(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0)\n throws ServiceException\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns boolean\n * @throws ServiceException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"downloadFile\", targetNamespace = \"http://soap.web.lab/\", className = \"DownloadFile\")\n @ResponseWrapper(localName = \"downloadFileResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"DownloadFileResponse\")\n public boolean downloadFile(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1)\n throws ServiceException\n ;\n\n}", "@WebService(name = \"Servicio\", targetNamespace = \"http://Servicio/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Servicio {\n\n\n /**\n * \n * @return\n * returns java.util.List<servicio.Persona>\n */\n @WebMethod(operationName = \"ListPersons\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ListPersons\", targetNamespace = \"http://Servicio/\", className = \"servicio.ListPersons\")\n @ResponseWrapper(localName = \"ListPersonsResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.ListPersonsResponse\")\n @Action(input = \"http://Servicio/Servicio/ListPersonsRequest\", output = \"http://Servicio/Servicio/ListPersonsResponse\")\n public List<Persona> listPersons();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Object\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"readPerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.ReadPerson\")\n @ResponseWrapper(localName = \"readPersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.ReadPersonResponse\")\n @Action(input = \"http://Servicio/Servicio/readPersonRequest\", output = \"http://Servicio/Servicio/readPersonResponse\")\n public Object readPerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg5\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.UpdatePersonResponse\")\n @Action(input = \"http://Servicio/Servicio/updatePersonRequest\", output = \"http://Servicio/Servicio/updatePersonResponse\")\n public String updatePerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.DeletePersonResponse\")\n @Action(input = \"http://Servicio/Servicio/deletePersonRequest\", output = \"http://Servicio/Servicio/deletePersonResponse\")\n public String deletePerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg5\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertPerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.InsertPerson\")\n @ResponseWrapper(localName = \"insertPersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.InsertPersonResponse\")\n @Action(input = \"http://Servicio/Servicio/insertPersonRequest\", output = \"http://Servicio/Servicio/insertPersonResponse\")\n public String insertPerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5);\n\n}", "@WebService(name = \"PopuplistDtoServicewsEndpoint\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n@XmlSeeAlso({\n ObjectFactoryPopuplist.class\n})\npublic interface PopuplistDtoServicewsEndpoint {\n\n\n /**\n * \n * @param popuplistDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.PopuplistDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"updatePopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdatePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"updatePopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdatePopuplistDtoServicewsResponse\")\n public PopuplistDto updatePopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n /**\n * \n * @param entite\n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.PopuplistDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"searchPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPopuplistDtoServicews\")\n @ResponseWrapper(localName = \"searchPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPopuplistDtoServicewsResponse\")\n public List<PopuplistDto> searchPopuplistDtoServicews(\n @WebParam(name = \"entite\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n String entite);\n\n /**\n * \n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.PopuplistDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"getAllPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllPopuplistDtoServicews\")\n @ResponseWrapper(localName = \"getAllPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllPopuplistDtoServicewsResponse\")\n public List<PopuplistDto> getAllPopuplistDtoServicews();\n\n /**\n * \n * @param popuplistDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.PopuplistDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"createPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreatePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"createPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreatePopuplistDtoServicewsResponse\")\n public PopuplistDto createPopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n /**\n * \n * @param popuplistDto\n */\n @WebMethod\n @RequestWrapper(localName = \"deletePopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeletePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"deletePopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeletePopuplistDtoServicewsResponse\")\n public void deletePopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n}", "@WebService(name = \"BVAC_AGENCYSoap\", targetNamespace = \"http://tempuri.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BVACAGENCYSoap {\r\n\r\n\r\n /**\r\n * L\\u1ea5y danh sách lo\\u1ea1i \\u1ea5n ch\\u1ec9 theo mã \\u0111\\u1ea1i lý\r\n * \r\n * @param maDaiLy\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"GetDMLoaiAnChi\", action = \"http://tempuri.org/GetDMLoaiAnChi\")\r\n @WebResult(name = \"GetDMLoaiAnChiResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetDMLoaiAnChi\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetDMLoaiAnChi\")\r\n @ResponseWrapper(localName = \"GetDMLoaiAnChiResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetDMLoaiAnChiResponse\")\r\n public String getDMLoaiAnChi(\r\n @WebParam(name = \"maDaiLy\", targetNamespace = \"http://tempuri.org/\")\r\n String maDaiLy);\r\n\r\n /**\r\n * L\\u1ea5y danh sách \\u1ea5n ch\\u1ec9 theo mã \\u0111\\u1ea1i lý\r\n * \r\n * @param maDaiLy\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"GetAnChiByAgency\", action = \"http://tempuri.org/GetAnChiByAgency\")\r\n @WebResult(name = \"GetAnChiByAgencyResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetAnChiByAgency\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAnChiByAgency\")\r\n @ResponseWrapper(localName = \"GetAnChiByAgencyResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAnChiByAgencyResponse\")\r\n public String getAnChiByAgency(\r\n @WebParam(name = \"maDaiLy\", targetNamespace = \"http://tempuri.org/\")\r\n String maDaiLy);\r\n\r\n /**\r\n * C\\u1eadp nh\\u1eadt danh sách \\u1ea5n ch\\u1ec9 \\u0111ã s\\u1eed d\\u1ee5ng\r\n * \r\n * @param anChis\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"UpdateListAnChi\", action = \"http://tempuri.org/UpdateListAnChi\")\r\n @WebResult(name = \"UpdateListAnChiResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"UpdateListAnChi\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateListAnChi\")\r\n @ResponseWrapper(localName = \"UpdateListAnChiResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateListAnChiResponse\")\r\n public String updateListAnChi(\r\n @WebParam(name = \"anChis\", targetNamespace = \"http://tempuri.org/\")\r\n String anChis);\r\n\r\n}", "@WebService(name = \"GetUser\", targetNamespace = \"http://Eshan/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetUser {\n\n\n /**\n * \n * @param userID\n * @return\n * returns java.util.List<java.lang.Object>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUser_Type\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUserResponse\")\n @Action(input = \"http://Eshan/GetUser/getUserRequest\", output = \"http://Eshan/GetUser/getUserResponse\")\n public List<Object> getUser(\n @WebParam(name = \"UserID\", targetNamespace = \"\")\n int userID);\n\n}", "@WebService(name = \"AppWebService\", targetNamespace = \"http://pingan.cn/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface AppWebService {\n\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceCompareResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceCompare\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompare\")\n @ResponseWrapper(localName = \"faceCompareResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompareResponse\")\n public String faceCompare(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getReturngoodsResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getReturngoods\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoods\")\n @ResponseWrapper(localName = \"getReturngoodsResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoodsResponse\")\n public String getReturngoods(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/boundBankcard\")\n @WebResult(name = \"boundBankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"boundBankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcard\")\n @ResponseWrapper(localName = \"boundBankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcardResponse\")\n public String boundBankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/returnBtvOrder\")\n @WebResult(name = \"returnBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"returnBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrder\")\n @ResponseWrapper(localName = \"returnBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrderResponse\")\n public String returnBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"bankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"bankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Bankcard\")\n @ResponseWrapper(localName = \"bankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BankcardResponse\")\n public String bankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/updateLogisticsinfo\")\n @WebResult(name = \"updateLogisticsinfoResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"updateLogisticsinfo\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfo\")\n @ResponseWrapper(localName = \"updateLogisticsinfoResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfoResponse\")\n public String updateLogisticsinfo(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceDetectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceDetect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetect\")\n @ResponseWrapper(localName = \"faceDetectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetectResponse\")\n public String faceDetect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws SQLException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getCreditline\")\n @WebResult(name = \"getCreditlineResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getCreditline\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditline\")\n @ResponseWrapper(localName = \"getCreditlineResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditlineResponse\")\n public String getCreditline(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws SQLException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"signCheckResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"signCheck\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheck\")\n @ResponseWrapper(localName = \"signCheckResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheckResponse\")\n public String signCheck(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansSelect\")\n @WebResult(name = \"repayPlansSelectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansSelect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelect\")\n @ResponseWrapper(localName = \"repayPlansSelectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelectResponse\")\n public String repayPlansSelect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansQuery\")\n @WebResult(name = \"repayPlansQueryResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansQuery\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQuery\")\n @ResponseWrapper(localName = \"repayPlansQueryResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQueryResponse\")\n public String repayPlansQuery(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"queryPhoneZHHSResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"queryPhoneZHHS\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHS\")\n @ResponseWrapper(localName = \"queryPhoneZHHSResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHSResponse\")\n public String queryPhoneZHHS(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansTrialResult\")\n @WebResult(name = \"repayPlansTrialResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansTrial\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrial\")\n @ResponseWrapper(localName = \"repayPlansTrialResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrialResponse\")\n public String repayPlansTrial(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(operationName = \"Idcard\", action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"IdcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"Idcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Idcard\")\n @ResponseWrapper(localName = \"IdcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.IdcardResponse\")\n public String idcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrder\")\n @ResponseWrapper(localName = \"getOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrderResponse\")\n public String getOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/registerBtvOrder\")\n @WebResult(name = \"registerBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"registerBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrder\")\n @ResponseWrapper(localName = \"registerBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrderResponse\")\n public String registerBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/pubTransLog\")\n @WebResult(name = \"pubTransLogResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"pubTransLog\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLog\")\n @ResponseWrapper(localName = \"pubTransLogResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLogResponse\")\n public String pubTransLog(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n}", "@WebService(name = \"SharedGalleryServerSOAP\", targetNamespace = \"http://SOAP.svr.tp1.sd/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharedGalleryServerSOAP {\n\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfAlbums\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbums\")\n @ResponseWrapper(localName = \"getListOfAlbumsResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbumsResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsResponse\")\n public List<String> getListOfAlbums();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfPictures\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPictures\")\n @ResponseWrapper(localName = \"getListOfPicturesResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPicturesResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesResponse\")\n public List<String> getListOfPictures(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns byte[]\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPictureData\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureData\")\n @ResponseWrapper(localName = \"getPictureDataResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureDataResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataResponse\")\n public byte[] getPictureData(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"createAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbum\")\n @ResponseWrapper(localName = \"createAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumResponse\")\n public String createAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbum\")\n @ResponseWrapper(localName = \"deleteAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumResponse\")\n public Boolean deleteAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"uploadPicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPicture\")\n @ResponseWrapper(localName = \"uploadPictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureResponse\")\n public String uploadPicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n byte[] arg2);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePicture\")\n @ResponseWrapper(localName = \"deletePictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureResponse\")\n public Boolean deletePicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n}", "@WebService(name = \"RPCLitSWA\", targetNamespace = \"http://org/apache/axis2/jaxws/proxy/rpclitswa\", wsdlLocation = \"RPCLitSWA.wsdl\")\r\n@SOAPBinding(style = Style.RPC)\r\npublic interface RPCLitSWA {\r\n\r\n\r\n /**\r\n * \r\n * @param request\r\n * @param dummyAttachmentINOUT\r\n * @param dummyAttachmentOUT\r\n * @param response\r\n * @param dummyAttachmentIN\r\n */\r\n @WebMethod\r\n public void echo(\r\n @WebParam(name = \"request\", partName = \"request\")\r\n String request,\r\n @WebParam(name = \"dummyAttachmentIN\", partName = \"dummyAttachmentIN\")\r\n String dummyAttachmentIN,\r\n @WebParam(name = \"dummyAttachmentINOUT\", mode = Mode.INOUT, partName = \"dummyAttachmentINOUT\")\r\n Holder<DataHandler> dummyAttachmentINOUT,\r\n @WebParam(name = \"response\", mode = Mode.OUT, partName = \"response\")\r\n Holder<String> response,\r\n @WebParam(name = \"dummyAttachmentOUT\", mode = Mode.OUT, partName = \"dummyAttachmentOUT\")\r\n Holder<String> dummyAttachmentOUT);\r\n\r\n}", "@WebService(name = \"People\", targetNamespace = \"http://ws.soap.finalproject.introsde/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface People {\n\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePerson\")\n @ResponseWrapper(localName = \"createPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/createPersonResponse\")\n public int createPerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.Person\n */\n @WebMethod\n @WebResult(name = \"person\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPerson\")\n @ResponseWrapper(localName = \"getPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonResponse\")\n public Person getPerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updatePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/updatePersonResponse\")\n public int updatePerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responsePersonCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deletePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/deletePersonResponse\")\n public int deletePerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"people\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPeopleList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleList\")\n @ResponseWrapper(localName = \"getPeopleListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPeopleListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPeopleListResponse\")\n public ListPersonWrapper getPeopleList();\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"currentHealth\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getCurrentHealth\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealth\")\n @ResponseWrapper(localName = \"getCurrentHealthResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealthResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthRequest\", output = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthResponse\")\n public ListMeasureWrapper getCurrentHealth(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"vitalSigns\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getVitalSigns\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSigns\")\n @ResponseWrapper(localName = \"getVitalSignsResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSignsResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getVitalSignsRequest\", output = \"http://ws.soap.finalproject.introsde/People/getVitalSignsResponse\")\n public ListMeasureWrapper getVitalSigns(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctor\")\n @ResponseWrapper(localName = \"createDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/createDoctorResponse\")\n public int createDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns introsde.finalproject.soap.ws.Doctor\n */\n @WebMethod\n @WebResult(name = \"doctor\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctor\")\n @ResponseWrapper(localName = \"getDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getDoctorResponse\")\n public Doctor getDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctor\")\n @ResponseWrapper(localName = \"updateDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateDoctorResponse\")\n public int updateDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseDoctorCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctor\")\n @ResponseWrapper(localName = \"deleteDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteDoctorResponse\")\n public int deleteDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param idDoctor\n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"patientList\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPersonByDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctor\")\n @ResponseWrapper(localName = \"getPersonByDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorResponse\")\n public ListPersonWrapper getPersonByDoctor(\n @WebParam(name = \"idDoctor\", targetNamespace = \"\")\n int idDoctor);\n\n /**\n * \n * @param familyId\n * @return\n * returns introsde.finalproject.soap.ws.Family\n */\n @WebMethod\n @WebResult(name = \"family\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getFamily\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamily\")\n @ResponseWrapper(localName = \"getFamilyResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamilyResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getFamilyRequest\", output = \"http://ws.soap.finalproject.introsde/People/getFamilyResponse\")\n public Family getFamily(\n @WebParam(name = \"familyId\", targetNamespace = \"\")\n int familyId);\n\n /**\n * \n * @param idPerson\n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminder\")\n @ResponseWrapper(localName = \"createReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/createReminderResponse\")\n public int createReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListReminderWrapper\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminder\")\n @ResponseWrapper(localName = \"getReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/getReminderResponse\")\n public ListReminderWrapper getReminder(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"updateReminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminder\")\n @ResponseWrapper(localName = \"updateReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateReminderResponse\")\n public int updateReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder);\n\n /**\n * \n * @param idReminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseReminderCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminder\")\n @ResponseWrapper(localName = \"deleteReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteReminderResponse\")\n public int deleteReminder(\n @WebParam(name = \"idReminder\", targetNamespace = \"\")\n int idReminder);\n\n /**\n * \n * @param idPerson\n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTarget\")\n @ResponseWrapper(localName = \"createTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/createTargetResponse\")\n public int createTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTargetList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetList\")\n @ResponseWrapper(localName = \"getTargetListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetListResponse\")\n public ListTargetWrapper getTargetList(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targetId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTarget\")\n @ResponseWrapper(localName = \"updateTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateTargetResponse\")\n public int updateTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target);\n\n /**\n * \n * @param idTarget\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseTargetCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTarget\")\n @ResponseWrapper(localName = \"deleteTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteTargetResponse\")\n public int deleteTarget(\n @WebParam(name = \"idTarget\", targetNamespace = \"\")\n int idTarget);\n\n /**\n * \n * @param idMeasureDef\n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTarget\")\n @ResponseWrapper(localName = \"getTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetResponse\")\n public ListTargetWrapper getTarget(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId,\n @WebParam(name = \"idMeasureDef\", targetNamespace = \"\")\n int idMeasureDef);\n\n /**\n * \n * @param measure\n * @param idPerson\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasure\")\n @ResponseWrapper(localName = \"createMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/createMeasureResponse\")\n public int createMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasure\")\n @ResponseWrapper(localName = \"getMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureResponse\")\n public ListMeasureWrapper getMeasure(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param measure\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(name = \"idUpdatedMeasure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasure\")\n @ResponseWrapper(localName = \"updateMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateMeasureResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://ws.soap.finalproject.introsde/People/updateMeasure/Fault/ParseException\")\n })\n public int updateMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure)\n throws ParseException_Exception\n ;\n\n /**\n * \n * @param idMeasure\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseMeasureCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasure\")\n @ResponseWrapper(localName = \"deleteMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteMeasureResponse\")\n public int deleteMeasure(\n @WebParam(name = \"idMeasure\", targetNamespace = \"\")\n int idMeasure);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureDefinitionWrapper\n */\n @WebMethod\n @WebResult(name = \"measureDefinition\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasureDefinition\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinition\")\n @ResponseWrapper(localName = \"getMeasureDefinitionResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinitionResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionResponse\")\n public ListMeasureDefinitionWrapper getMeasureDefinition();\n\n}", "@WebService(name = \"NumberGeneratorServiceSoap\", targetNamespace = \"NS_NumGen\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface NumberGeneratorServiceSoap {\n\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/primeRange\")\n @WebResult(name = \"primeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"primeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRange\")\n @ResponseWrapper(localName = \"primeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRangeResponse\")\n public String primeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/compositeRange\")\n @WebResult(name = \"compositeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"compositeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRange\")\n @ResponseWrapper(localName = \"compositeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRangeResponse\")\n public String compositeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/perfectSquaresRange\")\n @WebResult(name = \"perfectSquaresRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"perfectSquaresRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRange\")\n @ResponseWrapper(localName = \"perfectSquaresRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRangeResponse\")\n public String perfectSquaresRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/fibonacciRange\")\n @WebResult(name = \"fibonacciRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"fibonacciRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRange\")\n @ResponseWrapper(localName = \"fibonacciRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRangeResponse\")\n public String fibonacciRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @param n\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/randomNumbers\")\n @WebResult(name = \"randomNumbersResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"randomNumbers\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbers\")\n @ResponseWrapper(localName = \"randomNumbersResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbersResponse\")\n public String randomNumbers(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high,\n @WebParam(name = \"n\", targetNamespace = \"NS_NumGen\")\n int n);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/powersofTwo\")\n @WebResult(name = \"powersofTwoResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"powersofTwo\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwo\")\n @ResponseWrapper(localName = \"powersofTwoResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwoResponse\")\n public String powersofTwo(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/evenRange\")\n @WebResult(name = \"evenRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"evenRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRange\")\n @ResponseWrapper(localName = \"evenRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRangeResponse\")\n public String evenRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/oddRange\")\n @WebResult(name = \"oddRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"oddRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRange\")\n @ResponseWrapper(localName = \"oddRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRangeResponse\")\n public String oddRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/palindromeRange\")\n @WebResult(name = \"palindromeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"palindromeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRange\")\n @ResponseWrapper(localName = \"palindromeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRangeResponse\")\n public String palindromeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n}", "@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/AddressService\", name = \"AddressService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.addressservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface AddressService {\r\n\r\n @WebResult(name = \"GetDoNotDisturbResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetDoNotDisturb\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetDoNotDisturbResponse getDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"GetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetDoNotDisturbException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetAddressCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"OriginateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"Originate\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/Originate\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ContactResponse originate(\r\n @WebParam(partName = \"parameters\", name = \"OriginateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressOriginateRequest parameters\r\n ) throws OriginateException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetDoNotDisturb\")\r\n public void setDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"SetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetDoNotDisturbRequest parameters\r\n ) throws SessionNotCreatedException, SetDoNotDisturbException;\r\n\r\n @WebResult(name = \"IsForwardedResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsForwarded\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsForwarded\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsForwardedResponse isForwarded(\r\n @WebParam(partName = \"parameters\", name = \"IsForwardedRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsForwardedException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetForwarding\")\r\n public void setForwarding(\r\n @WebParam(partName = \"parameters\", name = \"SetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetForwardingRequest parameters\r\n ) throws SetForwardingException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"CancelForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/CancelForwarding\")\r\n public void cancelForwarding(\r\n @WebParam(partName = \"parameters\", name = \"CancelForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, CancelForwardingException;\r\n\r\n @WebResult(name = \"GetStateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetState\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetState\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetStateResponse getState(\r\n @WebParam(partName = \"parameters\", name = \"GetStateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetStateException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminals\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminals\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalsResponse getTerminals(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetTerminalsException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetPresenceResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetPresence\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetPresence\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetPresenceResponse getPresence(\r\n @WebParam(partName = \"parameters\", name = \"GetPresenceRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetPresenceException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnection\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnection\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ConnectionResponse getConnection(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.ConnectionRequest parameters\r\n ) throws GetConnectionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetMessageWaitingResponse getMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"GetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalStatusResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminalStatus\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminalStatus\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalStatusResponse getTerminalStatus(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalStatusRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetTerminalStatusException;\r\n\r\n @WebMethod(operationName = \"PresenceSubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceSubscribe\")\r\n public void presenceSubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceSubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.PresenceSubscribeRequest parameters\r\n ) throws PresenceSubscribeException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnections\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnections\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetConnectionsResponse getConnections(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetConnectionsException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SendInstantMessage\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SendInstantMessage\")\r\n public void sendInstantMessage(\r\n @WebParam(partName = \"parameters\", name = \"SendInstantMessage\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.InstantMessageRequest parameters\r\n ) throws SessionNotCreatedException, SendInstantMessageException;\r\n\r\n @WebResult(name = \"GetUriResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetUri\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetUri\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetUriResponse getUri(\r\n @WebParam(partName = \"parameters\", name = \"GetUriRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetUriException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetForwardingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetForwarding\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetForwardingResponse getForwarding(\r\n @WebParam(partName = \"parameters\", name = \"GetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetForwardingException;\r\n\r\n @WebMethod(operationName = \"PresenceUnsubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceUnsubscribe\")\r\n public void presenceUnsubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceUnsubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws PresenceUnsubscribeException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetMessageWaiting\")\r\n public void setMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"SetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetMessageWaitingRequest parameters\r\n ) throws SetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"IsMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsMessageWaitingResponse isMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"IsMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsMessageWaitingException, SessionNotCreatedException;\r\n}", "public interface ClientService {\r\n\r\n String fpkj(String wsdlUrl);\r\n}", "@WebService(name = \"serverPortType\", targetNamespace = \"urn:server\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ServerPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns server.CreateRequestResponseType\n */\n @WebMethod(operationName = \"CreateRequest\", action = \"urn:server#CreateRequest\")\n @WebResult(name = \"CreateRequestResponse\", partName = \"parameters\")\n public CreateRequestResponseType createRequest(\n @WebParam(name = \"CreateRequest\", partName = \"parameters\")\n CreateRequestRequestType parameters);\n\n /**\n * \n * @param parameters\n * @return\n * returns server.CreateIncidentResponseType\n */\n @WebMethod(operationName = \"CreateIncident\", action = \"urn:server#CreateIncident\")\n @WebResult(name = \"CreateIncidentResponse\", partName = \"parameters\")\n public CreateIncidentResponseType createIncident(\n @WebParam(name = \"CreateIncident\", partName = \"parameters\")\n CreateIncidentRequestType parameters);\n\n}", "@WebService(name = \"EntityServer\", targetNamespace=\"http://activitiderbysoapservice.spqr.de/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface EntityServer {\n @WebMethod @WebResult(partName = \"return\")String getTimeAsString();\n @WebMethod @WebResult(partName = \"return\")long getTimeAsElapsed();\n @WebMethod @WebResult(partName = \"return\")long orderParts(String part);\n @WebMethod @WebResult(partName = \"return\")boolean changeBackWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeDoorAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeFronWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeEngineAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeTireAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeWheelAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")long amountOfParts(String part);\n \n}", "@WebService(name = \"EiccToKgdUniversalPortType\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EiccToKgdUniversalPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns ResponseMessage\n * @throws SendMessageException\n */\n @WebMethod(operationName = \"SendMessage\", action = \"http://10.8.255.50:1274/EiccToKgdUniversal/SendMessage\")\n @WebResult(name = \"sendMessageResponse\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n public ResponseMessage sendMessage(\n @WebParam(name = \"sendMessageRequest\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n RequestMessage parameters)\n throws SendMessageException\n ;\n\n}", "@WebService(name = \"WebServiceSoap\", targetNamespace = \"http://tempuri.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface WebServiceSoap {\n\n\n /**\n * \n * @param password\n * @param login\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"Login\", action = \"http://tempuri.org/Login\")\n @WebResult(name = \"LoginResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"Login\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.Login\")\n @ResponseWrapper(localName = \"LoginResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginResponse\")\n public String login(\n @WebParam(name = \"login\", targetNamespace = \"http://tempuri.org/\")\n String login,\n @WebParam(name = \"password\", targetNamespace = \"http://tempuri.org/\")\n String password);\n\n /**\n * \n * @param password\n * @param login\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"LoginEx\", action = \"http://tempuri.org/LoginEx\")\n @WebResult(name = \"LoginExResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"LoginEx\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginEx\")\n @ResponseWrapper(localName = \"LoginExResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginExResponse\")\n public String loginEx(\n @WebParam(name = \"login\", targetNamespace = \"http://tempuri.org/\")\n String login,\n @WebParam(name = \"password\", targetNamespace = \"http://tempuri.org/\")\n String password);\n\n /**\n * \n * @param value\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"LoginByCookies\", action = \"http://tempuri.org/LoginByCookies\")\n @WebResult(name = \"LoginByCookiesResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"LoginByCookies\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginByCookies\")\n @ResponseWrapper(localName = \"LoginByCookiesResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginByCookiesResponse\")\n public String loginByCookies(\n @WebParam(name = \"value\", targetNamespace = \"http://tempuri.org/\")\n String value);\n\n /**\n * \n */\n @WebMethod(operationName = \"SignOut\", action = \"http://tempuri.org/SignOut\")\n @RequestWrapper(localName = \"SignOut\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SignOut\")\n @ResponseWrapper(localName = \"SignOutResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SignOutResponse\")\n public void signOut();\n\n /**\n * \n * @return\n * returns boolean\n */\n @WebMethod(operationName = \"IsAuthenticated\", action = \"http://tempuri.org/IsAuthenticated\")\n @WebResult(name = \"IsAuthenticatedResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"IsAuthenticated\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.IsAuthenticated\")\n @ResponseWrapper(localName = \"IsAuthenticatedResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.IsAuthenticatedResponse\")\n public boolean isAuthenticated();\n\n /**\n * \n * @param token\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"LoginByGoogleId\", action = \"http://tempuri.org/LoginByGoogleId\")\n @WebResult(name = \"LoginByGoogleIdResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"LoginByGoogleId\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginByGoogleId\")\n @ResponseWrapper(localName = \"LoginByGoogleIdResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginByGoogleIdResponse\")\n public String loginByGoogleId(\n @WebParam(name = \"token\", targetNamespace = \"http://tempuri.org/\")\n String token);\n\n /**\n * \n * @param args\n * @param calcId\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"Execute\", action = \"http://tempuri.org/Execute\")\n @WebResult(name = \"ExecuteResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"Execute\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.Execute\")\n @ResponseWrapper(localName = \"ExecuteResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteResponse\")\n public String execute(\n @WebParam(name = \"calcId\", targetNamespace = \"http://tempuri.org/\")\n String calcId,\n @WebParam(name = \"args\", targetNamespace = \"http://tempuri.org/\")\n String args);\n\n /**\n * \n * @param args\n * @param ticket\n * @param calcId\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"ExecuteEx\", action = \"http://tempuri.org/ExecuteEx\")\n @WebResult(name = \"ExecuteExResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"ExecuteEx\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteEx\")\n @ResponseWrapper(localName = \"ExecuteExResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteExResponse\")\n public String executeEx(\n @WebParam(name = \"calcId\", targetNamespace = \"http://tempuri.org/\")\n String calcId,\n @WebParam(name = \"args\", targetNamespace = \"http://tempuri.org/\")\n String args,\n @WebParam(name = \"ticket\", targetNamespace = \"http://tempuri.org/\")\n String ticket);\n\n /**\n * \n * @param args\n * @param ticket\n * @param calcId\n * @param timeout\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"ExecuteWithTimeout\", action = \"http://tempuri.org/ExecuteWithTimeout\")\n @WebResult(name = \"ExecuteWithTimeoutResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"ExecuteWithTimeout\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteWithTimeout\")\n @ResponseWrapper(localName = \"ExecuteWithTimeoutResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteWithTimeoutResponse\")\n public String executeWithTimeout(\n @WebParam(name = \"calcId\", targetNamespace = \"http://tempuri.org/\")\n String calcId,\n @WebParam(name = \"args\", targetNamespace = \"http://tempuri.org/\")\n String args,\n @WebParam(name = \"ticket\", targetNamespace = \"http://tempuri.org/\")\n String ticket,\n @WebParam(name = \"timeout\", targetNamespace = \"http://tempuri.org/\")\n int timeout);\n\n /**\n * \n * @param ticket\n * @param sessionId\n */\n @WebMethod(operationName = \"UpdateSession\", action = \"http://tempuri.org/UpdateSession\")\n @RequestWrapper(localName = \"UpdateSession\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateSession\")\n @ResponseWrapper(localName = \"UpdateSessionResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateSessionResponse\")\n public void updateSession(\n @WebParam(name = \"ticket\", targetNamespace = \"http://tempuri.org/\")\n String ticket,\n @WebParam(name = \"sessionId\", targetNamespace = \"http://tempuri.org/\")\n String sessionId);\n\n /**\n * \n * @param ticket\n * @param oldPassword\n * @param newPassword\n * @param login\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"ChangePassword\", action = \"http://tempuri.org/ChangePassword\")\n @WebResult(name = \"ChangePasswordResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"ChangePassword\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ChangePassword\")\n @ResponseWrapper(localName = \"ChangePasswordResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ChangePasswordResponse\")\n public String changePassword(\n @WebParam(name = \"login\", targetNamespace = \"http://tempuri.org/\")\n String login,\n @WebParam(name = \"oldPassword\", targetNamespace = \"http://tempuri.org/\")\n String oldPassword,\n @WebParam(name = \"newPassword\", targetNamespace = \"http://tempuri.org/\")\n String newPassword,\n @WebParam(name = \"ticket\", targetNamespace = \"http://tempuri.org/\")\n String ticket);\n\n /**\n * \n * @return\n * returns java.lang.Object\n */\n @WebMethod(operationName = \"IsEnabled\", action = \"http://tempuri.org/IsEnabled\")\n @WebResult(name = \"IsEnabledResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"IsEnabled\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.IsEnabled\")\n @ResponseWrapper(localName = \"IsEnabledResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.IsEnabledResponse\")\n public Object isEnabled();\n\n}", "@WebService(name = \"DomesticRemittanceByPartnerService\", targetNamespace = \"http://www.quantiguous.com/services\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DomesticRemittanceByPartnerService {\n\n\n /**\n * \n * @param beneficiaryAccountNo\n * @param remitterToBeneficiaryInfo\n * @param remitterAddress\n * @param remitterIFSC\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param remitterName\n * @param beneficiaryAddress\n * @param uniqueResponseNo\n * @param version\n * @param requestReferenceNo\n * @param beneficiaryIFSC\n * @param debitAccountNo\n * @param uniqueRequestNo\n * @param beneficiaryName\n * @param customerID\n * @param beneficiaryContact\n * @param transferType\n * @param attemptNo\n * @param transferCurrencyCode\n * @param remitterContact\n * @param remitterAccountNo\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/remit\")\n @RequestWrapper(localName = \"remit\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.Remit\")\n @ResponseWrapper(localName = \"remitResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.RemitResponse\")\n public void remit(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"uniqueRequestNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String uniqueRequestNo,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"debitAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String debitAccountNo,\n @WebParam(name = \"remitterAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterAccountNo,\n @WebParam(name = \"remitterIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterIFSC,\n @WebParam(name = \"remitterName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterName,\n @WebParam(name = \"remitterAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType remitterAddress,\n @WebParam(name = \"remitterContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType remitterContact,\n @WebParam(name = \"beneficiaryName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryName,\n @WebParam(name = \"beneficiaryAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType beneficiaryAddress,\n @WebParam(name = \"beneficiaryContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType beneficiaryContact,\n @WebParam(name = \"beneficiaryAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryAccountNo,\n @WebParam(name = \"beneficiaryIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryIFSC,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n CurrencyCodeType transferCurrencyCode,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\")\n BigDecimal transferAmount,\n @WebParam(name = \"remitterToBeneficiaryInfo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterToBeneficiaryInfo,\n @WebParam(name = \"uniqueResponseNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> uniqueResponseNo,\n @WebParam(name = \"attemptNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> attemptNo,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> requestReferenceNo,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param accountCurrencyCode\n * @param partnerCode\n * @param accountNo\n * @param accountBalanceAmount\n * @param customerID\n * @param version\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getBalance\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalanceResponse\")\n public void getBalance(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"accountCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> accountCurrencyCode,\n @WebParam(name = \"accountBalanceAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> accountBalanceAmount,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert);\n\n /**\n * \n * @param reqTransferType\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param transferType\n * @param transactionDate\n * @param version\n * @param transferCurrencyCode\n * @param requestReferenceNo\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getRemittanceStatus\")\n @RequestWrapper(localName = \"getRemittanceStatus\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatus\")\n @ResponseWrapper(localName = \"getRemittanceStatusResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatusResponse\")\n public void getRemittanceStatus(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String requestReferenceNo,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"reqTransferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> reqTransferType,\n @WebParam(name = \"transactionDate\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<XMLGregorianCalendar> transactionDate,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> transferAmount,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> transferCurrencyCode,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param numDebits\n * @param partnerCode\n * @param dateRange\n * @param accountNo\n * @param customerID\n * @param closingBalance\n * @param numTransactions\n * @param numCredits\n * @param version\n * @param openingBalance\n * @param transactionsArray\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getTransactions\")\n @RequestWrapper(localName = \"getTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactions\")\n @ResponseWrapper(localName = \"getTransactionsResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactionsResponse\")\n public void getTransactions(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"dateRange\", targetNamespace = \"http://www.quantiguous.com/services\")\n DateRangeType dateRange,\n @WebParam(name = \"openingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> openingBalance,\n @WebParam(name = \"numDebits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numDebits,\n @WebParam(name = \"numCredits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numCredits,\n @WebParam(name = \"closingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> closingBalance,\n @WebParam(name = \"numTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numTransactions,\n @WebParam(name = \"transactionsArray\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionsArrayType> transactionsArray);\n\n}", "@WebService(name = \"SendMTPortType\", targetNamespace = \"http://sms.neo\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SendMTPortType {\n\n\n /**\n * \n * @param rtype\n * @param timeend\n * @param password\n * @param receiver\n * @param repeat\n * @param brandname\n * @param timestart\n * @param loaisp\n * @param content\n * @param timesend\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendMessage\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendMessage\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessage\")\n @ResponseWrapper(localName = \"sendMessageResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessageResponse\")\n public String sendMessage(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"repeat\", targetNamespace = \"http://sms.neo\")\n Integer repeat,\n @WebParam(name = \"rtype\", targetNamespace = \"http://sms.neo\")\n Integer rtype,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"timestart\", targetNamespace = \"http://sms.neo\")\n String timestart,\n @WebParam(name = \"timeend\", targetNamespace = \"http://sms.neo\")\n String timeend,\n @WebParam(name = \"timesend\", targetNamespace = \"http://sms.neo\")\n String timesend,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromServiceNumber\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromServiceNumber\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumber\")\n @ResponseWrapper(localName = \"sendFromServiceNumberResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumberResponse\")\n public String sendFromServiceNumber(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromBrandname\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromBrandname\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandname\")\n @ResponseWrapper(localName = \"sendFromBrandnameResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandnameResponse\")\n public String sendFromBrandname(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param cardSerial\n * @param cardCode\n * @param issure\n * @param username\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:useCard\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"useCard\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCard\")\n @ResponseWrapper(localName = \"useCardResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCardResponse\")\n public String useCard(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"issure\", targetNamespace = \"http://sms.neo\")\n String issure,\n @WebParam(name = \"cardCode\", targetNamespace = \"http://sms.neo\")\n String cardCode,\n @WebParam(name = \"cardSerial\", targetNamespace = \"http://sms.neo\")\n String cardSerial);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param loaisp\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendSMS\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendSMS\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMS\")\n @ResponseWrapper(localName = \"sendSMSResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMSResponse\")\n public String sendSMS(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n}", "public sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse initializeHelloWorldWS(\n\n sample.ws.HelloWorldWSStub.InitializeHelloWorldWS initializeHelloWorldWS10)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\n _operationClient.getOptions().setAction(\"initializeCourseWS\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n initializeHelloWorldWS10,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"initializeHelloWorldWS\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "@WebService(name = \"BilesikKutukSorgulaKimlikNoServis\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BilesikKutukSorgulaKimlikNoServis {\n\n\n /**\n * \n * @param kriterListesi\n * @return\n * returns services.kps.bilesikkutuk.BilesikKutukBilgileriSonucu\n */\n @WebMethod(operationName = \"Sorgula\", action = \"http://kps.nvi.gov.tr/2017/08/01/BilesikKutukSorgulaKimlikNoServis/Sorgula\")\n @WebResult(name = \"SorgulaResult\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n @RequestWrapper(localName = \"Sorgula\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.Sorgula\")\n @ResponseWrapper(localName = \"SorgulaResponse\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.SorgulaResponse\")\n public BilesikKutukBilgileriSonucu sorgula(\n @WebParam(name = \"kriterListesi\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n ArrayOfBilesikKutukSorgulaKimlikNoSorguKriteri kriterListesi);\n\n}", "@WebService(name = \"UserService\", targetNamespace = \"http://services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UserService {\n\n\n /**\n * \n * @param id\n * @return\n * returns services.Anagrafica\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUserById\", targetNamespace = \"http://services/\", className = \"services.GetUserById\")\n @ResponseWrapper(localName = \"getUserByIdResponse\", targetNamespace = \"http://services/\", className = \"services.GetUserByIdResponse\")\n public Anagrafica getUserById(\n @WebParam(name = \"id\", targetNamespace = \"\")\n int id);\n\n /**\n * \n * @param id\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteUser\", targetNamespace = \"http://services/\", className = \"services.DeleteUser\")\n @ResponseWrapper(localName = \"deleteUserResponse\", targetNamespace = \"http://services/\", className = \"services.DeleteUserResponse\")\n public void deleteUser(\n @WebParam(name = \"id\", targetNamespace = \"\")\n int id);\n\n /**\n * \n * @param anagrafica\n */\n @WebMethod\n @RequestWrapper(localName = \"updateUser\", targetNamespace = \"http://services/\", className = \"services.UpdateUser\")\n @ResponseWrapper(localName = \"updateUserResponse\", targetNamespace = \"http://services/\", className = \"services.UpdateUserResponse\")\n public void updateUser(\n @WebParam(name = \"anagrafica\", targetNamespace = \"http://services/\")\n Anagrafica anagrafica);\n\n /**\n * \n * @param cf\n * @param cognome\n * @param cellulare\n * @param nome\n * @param telefono\n * @param email\n */\n @WebMethod\n @RequestWrapper(localName = \"addUser\", targetNamespace = \"http://services/\", className = \"services.AddUser\")\n @ResponseWrapper(localName = \"addUserResponse\", targetNamespace = \"http://services/\", className = \"services.AddUserResponse\")\n public void addUser(\n @WebParam(name = \"nome\", targetNamespace = \"\")\n String nome,\n @WebParam(name = \"cognome\", targetNamespace = \"\")\n String cognome,\n @WebParam(name = \"cf\", targetNamespace = \"\")\n String cf,\n @WebParam(name = \"telefono\", targetNamespace = \"\")\n String telefono,\n @WebParam(name = \"cellulare\", targetNamespace = \"\")\n String cellulare,\n @WebParam(name = \"email\", targetNamespace = \"\")\n String email);\n\n /**\n * \n * @return\n * returns java.util.List<services.Anagrafica>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listUsers\", targetNamespace = \"http://services/\", className = \"services.ListUsers\")\n @ResponseWrapper(localName = \"listUsersResponse\", targetNamespace = \"http://services/\", className = \"services.ListUsersResponse\")\n public List<Anagrafica> listUsers();\n\n}", "@WebService(name = \"HandSoapWeb\", targetNamespace = \"http://soapmanagement.jpdc.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HandSoapWeb {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSoapsNyBrand\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrand\")\n @ResponseWrapper(localName = \"getSoapsNyBrandResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrandResponse\")\n public List<HandSoap> getSoapsNyBrand(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"addNewSoap\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoap\")\n @ResponseWrapper(localName = \"addNewSoapResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoapResponse\")\n public void addNewSoap(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n HandSoap arg0);\n\n /**\n * \n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSoaps\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoaps\")\n @ResponseWrapper(localName = \"getAllSoapsResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoapsResponse\")\n public List<HandSoap> getAllSoaps();\n\n}", "@WebService(targetNamespace = \"http://services.bookservice.atatorus.fr/\", name = \"Hello\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Hello {\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.Hello_Type\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"nom\", targetNamespace = \"\")\n java.lang.String nom\n );\n}", "@WebService(targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", name = \"ClassifierZip\")\n@XmlSeeAlso({ObjectFactory.class, iac.cud.infosweb.ws.classif.common.ObjectFactory.class})\npublic interface ClassifierZip {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getClassifierByClassifierNameCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierByClassifierName\")\n @WebMethod\n @ResponseWrapper(localName = \"getClassifierByClassifierNameResponseCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierByClassifierNameResponse\")\n public iac.cud.infosweb.ws.classifierzip.ResponseElement52 getClassifierByClassifierName(\n @WebParam(name = \"login\", targetNamespace = \"\")\n java.lang.String login,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n java.lang.String pass,\n @WebParam(name = \"Fullname\", targetNamespace = \"\")\n java.lang.String fullname,\n @WebParam(name = \"ActualDoc\", targetNamespace = \"\")\n int actualDoc\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getClassifierZipListByClassifierNameCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierZipListByClassifierName\")\n @WebMethod\n @ResponseWrapper(localName = \"getClassifierZipListByClassifierNameResponseCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierZipListByClassifierNameResponse\")\n public iac.cud.infosweb.ws.classifierzip.ResponseElement54 getClassifierZipListByClassifierName(\n @WebParam(name = \"login\", targetNamespace = \"\")\n java.lang.String login,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n java.lang.String pass,\n @WebParam(name = \"Fullname\", targetNamespace = \"\")\n java.lang.String fullname\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getClassifierZipListByClassifierNumberCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierZipListByClassifierNumber\")\n @WebMethod\n @ResponseWrapper(localName = \"getClassifierZipListByClassifierNumberResponseCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierZipListByClassifierNumberResponse\")\n public iac.cud.infosweb.ws.classifierzip.ResponseElement53 getClassifierZipListByClassifierNumber(\n @WebParam(name = \"login\", targetNamespace = \"\")\n java.lang.String login,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n java.lang.String pass,\n @WebParam(name = \"RegNumber\", targetNamespace = \"\")\n int regNumber\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getClassifierByClassifierNumberCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierByClassifierNumber\")\n @WebMethod\n @ResponseWrapper(localName = \"getClassifierByClassifierNumberResponseCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierByClassifierNumberResponse\")\n public iac.cud.infosweb.ws.classifierzip.ResponseElement51 getClassifierByClassifierNumber(\n @WebParam(name = \"login\", targetNamespace = \"\")\n java.lang.String login,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n java.lang.String pass,\n @WebParam(name = \"RegNumber\", targetNamespace = \"\")\n int regNumber,\n @WebParam(name = \"ActualDoc\", targetNamespace = \"\")\n int actualDoc\n );\n}", "@WebService(name = \"CajaUnificadaWeb\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CajaUnificadaWeb {\n\n\n /**\n * \n * @param profileCode\n * @param stationName\n * @param userCode\n * @return\n * returns cl.imperial.cajaunificada.ws.StartupResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"startupResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"startup\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.Startup\")\n @ResponseWrapper(localName = \"startupResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.StartupResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startupRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startupResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startup/Fault/CajaUnificadaWebException\")\n })\n public StartupResult startup(\n @WebParam(name = \"userCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String userCode,\n @WebParam(name = \"profileCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n BigDecimal profileCode,\n @WebParam(name = \"stationName\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String stationName)\n throws CajaUnificadaWebException\n ;\n\n /**\n * \n * @param profileCode\n * @param stationName\n * @param nroInterno\n * @param codEmp\n * @param userCode\n * @return\n * returns cl.imperial.cajaunificada.ws.ValeGetResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"valeGetResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"valeGet\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.ValeGet\")\n @ResponseWrapper(localName = \"valeGetResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.ValeGetResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGetRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGetResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGet/Fault/CajaUnificadaWebException\")\n })\n public ValeGetResult valeGet(\n @WebParam(name = \"userCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String userCode,\n @WebParam(name = \"profileCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n BigDecimal profileCode,\n @WebParam(name = \"stationName\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String stationName,\n @WebParam(name = \"nroInterno\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n int nroInterno,\n @WebParam(name = \"codEmp\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String codEmp)\n throws CajaUnificadaWebException\n ;\n\n /**\n * \n * @param nroInterno\n * @return\n * returns cl.imperial.cajaunificada.ws.RegistraPagoResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"registraPagoResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"registraPago\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.RegistraPago\")\n @ResponseWrapper(localName = \"registraPagoResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.RegistraPagoResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPagoRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPagoResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPago/Fault/CajaUnificadaWebException\")\n })\n public RegistraPagoResult registraPago(\n @WebParam(name = \"nroInterno\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n int nroInterno)\n throws CajaUnificadaWebException\n ;\n\n}", "@WebService(targetNamespace = \"http://www.example.org/BuyMart/\", name = \"BuyMartPortType\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface BuyMartPortType {\n\n @WebMethod(operationName = \"GetOrders\")\n @WebResult(name = \"GetOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public GetOrdersResponse getOrders(\n @WebParam(partName = \"parameters\", name = \"GetOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n GetOrdersRequest parameters\n );\n\n @WebMethod(operationName = \"UpdateOrders\")\n @WebResult(name = \"UpdateOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public UpdateOrdersResponse updateOrders(\n @WebParam(partName = \"parameters\", name = \"UpdateOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n UpdateOrdersRequest parameters\n );\n\n @WebMethod(operationName = \"CreateOrders\")\n @WebResult(name = \"CreateOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public CreateOrdersResponse createOrders(\n @WebParam(partName = \"parameters\", name = \"CreateOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n CreateOrdersRequest parameters\n );\n\n @WebMethod(operationName = \"DeleteOrders\")\n @WebResult(name = \"DeleteOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public DeleteOrdersResponse deleteOrders(\n @WebParam(partName = \"parameters\", name = \"DeleteOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n DeleteOrdersRequest parameters\n );\n}", "@WebService(targetNamespace = \"http://www.pm.company.com/service/Pawel/\", name = \"Pawel\")\n@XmlSeeAlso({com.company.pm.schema.pawelschema.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface Pawel {\n\n @WebResult(name = \"firstOperationResponse\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\", partName = \"firstOperationResponse\")\n @WebMethod(operationName = \"FirstOperation\", action = \"http://www.pm.company.com/service/Pawel/FirstOperation\")\n public com.company.pm.schema.pawelschema.FirstOperationResponseType firstOperation(\n @WebParam(partName = \"firstOperationRequest\", name = \"firstOperationRequest\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\")\n com.company.pm.schema.pawelschema.FirstOperationRequestType firstOperationRequest\n );\n}", "@WebService(name = \"BillingService\", targetNamespace = \"http://billing.jaxws.bt.com/\")\n@HandlerChain(file = \"BillingService_handler.xml\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n com.bt.jaxb.model.ObjectFactory.class,\n com.bt.jaxws.billing.ObjectFactory.class\n})\npublic interface BillingService {\n\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns javax.xml.ws.Response<com.bt.jaxws.billing.Invoice>\n */\n @WebMethod(operationName = \"getInvoice\")\n public Response<Invoice> getInvoiceAsync(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Customer arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n String arg1);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @param asyncHandler\n * @return\n * returns java.util.concurrent.Future<? extends java.lang.Object>\n */\n @WebMethod(operationName = \"getInvoice\")\n public Future<?> getInvoiceAsync(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Customer arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n String arg1,\n @WebParam(name = \"asyncHandler\", partName = \"asyncHandler\")\n AsyncHandler<Invoice> asyncHandler);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.bt.jaxws.billing.Invoice\n * @throws InvalidCustomerException_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n @Action(input = \"http://billing.jaxws.bt.com/BillingService/getInvoiceRequest\", output = \"http://billing.jaxws.bt.com/BillingService/getInvoiceResponse\", fault = {\n @FaultAction(className = InvalidCustomerException_Exception.class, value = \"http://billing.jaxws.bt.com/BillingService/getInvoice/Fault/InvalidCustomerException\")\n })\n public Invoice getInvoice(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Customer arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n String arg1)\n throws InvalidCustomerException_Exception\n ;\n\n}", "@WebService(name = \"WebServiceEntry\", targetNamespace = \"http://ws.adapter.bsoft.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface WebServiceEntry {\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String invoke(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") StringArray arg4)\n\t\t\tthrows Exception_Exception;\n\n\t/**\n * \n */\n\t@WebMethod\n\tpublic void startWs();\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String transportData(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") int arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows Exception_Exception;\n\n}", "@WebService(name = \"GodinezLunchPort\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/wsdl/1.0/GodinezLunchWS\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface GodinezLunchWS {\r\n\r\n\r\n /**\r\n * \r\n * @param calculateDistanceRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.CalculateDistanceResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/calculateDistance\")\r\n @WebResult(name = \"calculateDistanceResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceResponse\")\r\n public CalculateDistanceResponse calculateDistance(\r\n @WebParam(name = \"calculateDistanceRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceRequest\")\r\n CalculateDistanceRequest calculateDistanceRequest);\r\n\r\n /**\r\n * \r\n * @param getNearbyPlacesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetNearbyPlacesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getNearbyPlaces\")\r\n @WebResult(name = \"getNearbyPlacesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesResponse\")\r\n public GetNearbyPlacesResponse getNearbyPlaces(\r\n @WebParam(name = \"getNearbyPlacesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesRequest\")\r\n GetNearbyPlacesRequest getNearbyPlacesRequest);\r\n\r\n /**\r\n * \r\n * @param getAllCategoriesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetAllCategoriesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getAllCategories\")\r\n @WebResult(name = \"getAllCategoriesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesResponse\")\r\n public GetAllCategoriesResponse getAllCategories(\r\n @WebParam(name = \"getAllCategoriesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesRequest\")\r\n GetAllCategoriesRequest getAllCategoriesRequest);\r\n\r\n /**\r\n * \r\n * @param getMyFavoritesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetMyFavoritesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getMyFavorites\")\r\n @WebResult(name = \"getMyFavoritesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesResponse\")\r\n public GetMyFavoritesResponse getMyFavorites(\r\n @WebParam(name = \"getMyFavoritesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesRequest\")\r\n GetMyFavoritesRequest getMyFavoritesRequest);\r\n\r\n}", "@WebService(name = \"LDBSVServiceSoap\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2012_01_13.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2013_11_28.token.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2014_02_20.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2016_02_16.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2007_10_10.ldb.commontypes.ObjectFactory.class\r\n})\r\npublic interface LDBSVServiceSoap {\r\n\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByCRS\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByCRS(\r\n @WebParam(name = \"GetArrivalDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByCRS\")\r\n @WebResult(name = \"GetArrivalBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByCRS(\r\n @WebParam(name = \"GetArrivalBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByCRS\")\r\n @WebResult(name = \"GetDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByCRS(\r\n @WebParam(name = \"GetDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetServiceDetailsByRID\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetServiceDetailsByRID\")\r\n @WebResult(name = \"GetServiceDetailsByRIDResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetServiceDetailsResponseType getServiceDetailsByRID(\r\n @WebParam(name = \"GetServiceDetailsByRIDRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetServiceDetailsByRIDParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryServices\")\r\n @WebResult(name = \"QueryServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryServicesResponseType queryServices(\r\n @WebParam(name = \"QueryServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCode\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCode\")\r\n @WebResult(name = \"GetReasonCodeResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeResponseType getReasonCode(\r\n @WebParam(name = \"GetReasonCodeRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetReasonCodeRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeListResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCodeList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCodeList\")\r\n @WebResult(name = \"GetReasonCodeListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeListResponseType getReasonCodeList(\r\n @WebParam(name = \"GetReasonCodeListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetDisruptionListResponseType\r\n */\r\n @WebMethod(operationName = \"GetDisruptionList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDisruptionList\")\r\n @WebResult(name = \"GetDisruptionListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetDisruptionListResponseType getDisruptionList(\r\n @WebParam(name = \"GetDisruptionListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDisruptionListRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetSourceInstanceNamesResponseType\r\n */\r\n @WebMethod(operationName = \"GetSourceInstanceNames\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetSourceInstanceNames\")\r\n @WebResult(name = \"GetSourceInstanceNamesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetSourceInstanceNamesResponseType getSourceInstanceNames(\r\n @WebParam(name = \"GetSourceInstanceNamesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricDepartureBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricDepartureBoard\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricDepartureBoard\")\r\n @WebResult(name = \"GetHistoricDepartureBoardResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricDepartureBoardResponseType getHistoricDepartureBoard(\r\n @WebParam(name = \"GetHistoricDepartureBoardRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricDepartureBoardRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricServiceDetails\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricServiceDetails\")\r\n @WebResult(name = \"GetHistoricServiceDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricServiceDetailsResponseType getHistoricServiceDetails(\r\n @WebParam(name = \"GetHistoricServiceDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricServiceDetailsRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricTimeLineResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricTimeLine\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricTimeLine\")\r\n @WebResult(name = \"GetHistoricTimeLineResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricTimeLineResponseType getHistoricTimeLine(\r\n @WebParam(name = \"GetHistoricTimeLineRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricTimeLineRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryHistoricServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryHistoricServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryHistoricServices\")\r\n @WebResult(name = \"QueryHistoricServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryHistoricServicesResponseType queryHistoricServices(\r\n @WebParam(name = \"QueryHistoricServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryHistoricServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrDepBoardWithDetails\")\r\n @WebResult(name = \"GetArrDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrDepBoardWithDetails(\r\n @WebParam(name = \"GetArrDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrBoardWithDetails\")\r\n @WebResult(name = \"GetArrBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrBoardWithDetails(\r\n @WebParam(name = \"GetArrBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetDepBoardWithDetails\")\r\n @WebResult(name = \"GetDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getDepBoardWithDetails(\r\n @WebParam(name = \"GetDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDepartures\")\r\n @WebResult(name = \"GetNextDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getNextDepartures(\r\n @WebParam(name = \"GetNextDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDepartures\")\r\n @WebResult(name = \"GetFastestDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getFastestDepartures(\r\n @WebParam(name = \"GetFastestDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDeparturesWithDetails\")\r\n @WebResult(name = \"GetNextDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getNextDeparturesWithDetails(\r\n @WebParam(name = \"GetNextDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDeparturesWithDetails\")\r\n @WebResult(name = \"GetFastestDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getFastestDeparturesWithDetails(\r\n @WebParam(name = \"GetFastestDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n}", "public interface AcSentEdiInterchangeDomesticCandidateRouteMessageServiceIF\n extends AcModelServiceIF\n{\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessageByWebKey(String webKey);\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAll();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllAvailable();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllWhere(String whereClause, Integer rowLimit);\n void insert(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void update(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void delete(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n}", "@WebService(targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", name = \"MembershipService\")\n@XmlSeeAlso({com.z2systems.schemas.membership.ObjectFactory.class, com.z2systems.schemas.common.ObjectFactory.class, com.z2systems.schemas.account.ObjectFactory.class, com.z2systems.schemas.donation.ObjectFactory.class, com.z2systems.schemas.store.ObjectFactory.class, ObjectFactory.class, com.z2systems.schemas.event.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface MembershipService {\n\n @WebResult(name = \"listMembershipsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipsResponse listMemberships(\n @WebParam(partName = \"request\", name = \"listMembershipsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipsRequest request\n );\n\n @WebResult(name = \"retrieveMembershipStatsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.RetrieveMembershipStatsResponse retrieveMembershipStats(\n @WebParam(partName = \"request\", name = \"retrieveMembershipStatsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.RetrieveMembershipStatsRequest request\n );\n\n @WebResult(name = \"listMembershipHistoryResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipHistoryResponse listMembershipHistory(\n @WebParam(partName = \"request\", name = \"listMembershipHistoryRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipHistoryRequest request\n );\n\n @WebResult(name = \"listMembershipTermsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipTermsResponse listMembershipTerms(\n @WebParam(partName = \"request\", name = \"listMembershipTermsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipTermsRequest request\n );\n\n @WebResult(name = \"addMembershipToAccountResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.AddMembershipToAccountResponse addMembershipToAccount(\n @WebParam(partName = \"request\", name = \"addMembershipToAccountRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.AddMembershipToAccountRequest request\n );\n}", "@WebService(name = \"BillPayServiceAT\", targetNamespace = \"http://jaxws.billpay.wsat.edu.unf.com/\")\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BillPayServiceAT {\r\n\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @throws BillPayException\r\n */\r\n @WebMethod\r\n public void paybillamount(\r\n @WebParam(name = \"arg0\", partName = \"arg0\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", partName = \"arg1\")\r\n long arg1)\r\n throws BillPayException\r\n ;\r\n\r\n}", "@WebService(name = \"ZBC_EVENT_RAISE_WEB\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZBCEVENTRAISEWEB {\n\n\n /**\n * \n * @param eventparm\n * @param eventid\n * @param targetINSTANCE\n * @return\n * returns java.lang.String\n * @throws ZBCEVENTRAISEException\n */\n @WebMethod(operationName = \"ZBC_EVENT_RAISE\", action = \"urn:sap-com:document:sap:rfc:functions:ZBC_EVENT_RAISE_WEB:ZBC_EVENT_RAISERequest\")\n @WebResult(name = \"EV_SUCCESS\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZBC_EVENT_RAISE\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZBCEVENTRAISE\")\n @ResponseWrapper(localName = \"ZBC_EVENT_RAISEResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZBCEVENTRAISEResponse\")\n public String zbcEVENTRAISE(\n @WebParam(name = \"EVENTID\", targetNamespace = \"\")\n String eventid,\n @WebParam(name = \"EVENTPARM\", targetNamespace = \"\")\n String eventparm,\n @WebParam(name = \"TARGET_INSTANCE\", targetNamespace = \"\")\n String targetINSTANCE)\n throws ZBCEVENTRAISEException\n ;\n\n}", "@WebService(targetNamespace = \"http://ven.ws.pms.dhcc.com/\", name = \"OrderStateWServiceInterface\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\npublic interface OrderStateWServiceInterface {\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult deliver(\r\n @WebParam(partName = \"deliveritms\", name = \"deliveritms\")\r\n VenDeliveritmArray deliveritms\r\n );\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult getVenInc(\r\n @WebParam(partName = \"venIncWeb\", name = \"venIncWeb\")\r\n VenIncWeb venIncWeb\r\n );\r\n\r\n @WebResult(name = \"orderWebVos\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"orderWebVos\")\r\n @WebMethod\r\n public OrderWebVoArray listOrderWS(\r\n @WebParam(partName = \"passWord\", name = \"passWord\")\r\n java.lang.String passWord,\r\n @WebParam(partName = \"userName\", name = \"userName\")\r\n java.lang.String userName\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"return\")\r\n @WebMethod\r\n public OperateResult recievedMsg(\r\n @WebParam(partName = \"orderId\", name = \"orderId\")\r\n long orderId\r\n );\r\n}", "private WebServicesFabrica(){}", "@WebService(targetNamespace = \"http://payment.services.adyen.com\", name = \"PaymentPortType\")\r\n@XmlSeeAlso({com.adyen.services.common.ObjectFactory.class, ObjectFactory.class})\r\npublic interface PaymentPortType {\r\n\r\n @WebResult(name = \"captureResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"capture\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Capture\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"captureResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CaptureResponse\")\r\n public com.adyen.services.payment.ModificationResult capture(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"refundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Refund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundResponse\")\r\n public com.adyen.services.payment.ModificationResult refund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransfer\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransferResponse\")\r\n public com.adyen.services.payment.FundTransferResult fundTransfer(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.FundTransferRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"authoriseReferralResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authoriseReferral\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferral\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseReferralResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferralResponse\")\r\n public com.adyen.services.payment.ModificationResult authoriseReferral(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refundWithData\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithData\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundWithDataResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithDataResponse\")\r\n public com.adyen.services.payment.PaymentResult refundWithData(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancel\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Cancel\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelResponse\")\r\n public com.adyen.services.payment.ModificationResult cancel(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise3d\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3D\")\r\n @WebMethod(operationName = \"authorise3d\")\r\n @ResponseWrapper(localName = \"authorise3dResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3DResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise3D(\r\n @WebParam(name = \"paymentRequest3d\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest3D paymentRequest3D\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"balanceCheck\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheck\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"balanceCheckResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheckResponse\")\r\n public com.adyen.services.payment.BalanceCheckResult balanceCheck(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.BalanceCheckRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"directdebit\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Directdebit\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"directdebitResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.DirectdebitResponse\")\r\n public com.adyen.services.payment.DirectDebitResponse2 directdebit(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.DirectDebitRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelOrRefundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancelOrRefund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelOrRefundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefundResponse\")\r\n public com.adyen.services.payment.ModificationResult cancelOrRefund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"checkFraud\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraud\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"checkFraudResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraudResponse\")\r\n public com.adyen.services.payment.PaymentResult checkFraud(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n}", "public interface OperationServiceService extends javax.xml.rpc.Service {\n public java.lang.String getOperationServiceAddress();\n\n public fr.uphf.service.OperationService getOperationService() throws javax.xml.rpc.ServiceException;\n\n public fr.uphf.service.OperationService getOperationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;\n}", "@WebService(name = \"TempWs\", targetNamespace = \"http://temperature.ws.com\")\r\npublic interface TempWs {\r\n\r\n\r\n /**\r\n * \r\n * @param fahrenheit\r\n * @return\r\n * returns float\r\n */\r\n @WebMethod(action = \"http://temperature.ws.com/toCelsius\")\r\n @WebResult(name = \"returnFahrenheit\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"toCelsius\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToCelsius\")\r\n @ResponseWrapper(localName = \"toCelsiusResponse\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToCelsiusResponse\")\r\n public float toCelsius(\r\n @WebParam(name = \"fahrenheit\", targetNamespace = \"\")\r\n float fahrenheit);\r\n\r\n /**\r\n * \r\n * @param celsius\r\n * @return\r\n * returns float\r\n */\r\n @WebMethod(action = \"http://temperature.ws.com/toFahrenheit\")\r\n @WebResult(name = \"returnCelsius\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"toFahrenheit\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToFahrenheit\")\r\n @ResponseWrapper(localName = \"toFahrenheitResponse\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToFahrenheitResponse\")\r\n public float toFahrenheit(\r\n @WebParam(name = \"celsius\", targetNamespace = \"\")\r\n float celsius);\r\n\r\n}", "@WebService(name = \"TerminationCoordinatorPortType\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface TerminationCoordinatorPortType {\n\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CompleteOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Complete\")\n @Oneway\n public void completeOperation(\n @WebParam(name = \"Complete\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CloseOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Close\")\n @Oneway\n public void closeOperation(\n @WebParam(name = \"Close\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CancelOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Cancel\")\n @Oneway\n public void cancelOperation(\n @WebParam(name = \"Cancel\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n}", "@WebService(targetNamespace = \"urn:hl7-org:v3\", name = \"HL7MessageServerService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HL7MessageServerService {\n\n @WebMethod(operationName = \"HIPMessageServer\", action = \"HIPMessageServer\")\n @RequestWrapper(localName = \"HIPMessageServer\", targetNamespace = \"urn:hl7-org:v3\", className = \"org.hl7.v3.HIPMessageServer\")\n @ResponseWrapper(localName = \"HIPMessageServerResponse\", targetNamespace = \"urn:hl7-org:v3\", className = \"org.hl7.v3.HIPMessageServerResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hipMessageServer(\n @WebParam(name = \"action\", targetNamespace = \"urn:hl7-org:v3\")\n java.lang.String action,\n @WebParam(name = \"message\", targetNamespace = \"urn:hl7-org:v3\")\n java.lang.String message\n );\n}", "@WebService(name = \"XMXUTIL2Inmsg2\", targetNamespace = \"http://vistaevolution.va.gov\")\npublic interface XMXUTIL2Inmsg2Endpoint {\n \n \n \n /**\n * <pre>\n * \n * This RPC returns message information (Part 2).\n * \n * </pre>\n * \n * @param request -\n * \n * Domain Object that contains All Inmsg2^XMXUTIL2 input\n * Parameters\n * \n * @return XMXUTIL2Inmsg2Response -\n * \n * Domain Object that contains Inmsg2^XMXUTIL2 output data\n * \n * @throws VistaWebServiceFault\n */\n @WebMethod(action = \"XMXUTIL2Inmsg2Action\", operationName = \"XMXUTIL2Inmsg2\")\n public XMXUTIL2Inmsg2Response inmsg2(@WebParam(name = \"XMXUTIL2Inmsg2Request\") XMXUTIL2Inmsg2Request request)\n throws VistaWebServiceFault;\n}", "@WebService(targetNamespace = \"http://soa.agh.edu.pl/\", name = \"HelloWorld\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HelloWorld {\n\n @WebMethod(operationName = \"Hi\")\n @RequestWrapper(localName = \"Hi\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hi\")\n @ResponseWrapper(localName = \"HiResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HiResponse\")\n @WebResult(name = \"ElementsWraper\", targetNamespace = \"\")\n public pl.edu.agh.soa.HiResponse.ElementsWraper hi(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n\n @WebMethod(action = \"Hello\")\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n}", "@WebService(name = \"TTTWebService\", targetNamespace = \"http://server.james.ttt/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface TTTWebService {\n\n\n /**\n * \n * @param password\n * @param surname\n * @param name\n * @param username\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"register\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.Register\")\n @ResponseWrapper(localName = \"registerResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.RegisterResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/registerRequest\", output = \"http://server.james.ttt/TTTWebService/registerResponse\")\n public String register(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"name\", targetNamespace = \"\")\n String name,\n @WebParam(name = \"surname\", targetNamespace = \"\")\n String surname);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"test\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.Test\")\n @ResponseWrapper(localName = \"testResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.TestResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/testRequest\", output = \"http://server.james.ttt/TTTWebService/testResponse\")\n public String test();\n\n /**\n * \n * @param uid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"newGame\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.NewGame\")\n @ResponseWrapper(localName = \"newGameResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.NewGameResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/newGameRequest\", output = \"http://server.james.ttt/TTTWebService/newGameResponse\")\n public String newGame(\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid);\n\n /**\n * \n * @param uid\n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"joinGame\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.JoinGame\")\n @ResponseWrapper(localName = \"joinGameResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.JoinGameResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/joinGameRequest\", output = \"http://server.james.ttt/TTTWebService/joinGameResponse\")\n public String joinGame(\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid,\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGameState\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.GetGameState\")\n @ResponseWrapper(localName = \"getGameStateResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.GetGameStateResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/getGameStateRequest\", output = \"http://server.james.ttt/TTTWebService/getGameStateResponse\")\n public String getGameState(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getBoard\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.GetBoard\")\n @ResponseWrapper(localName = \"getBoardResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.GetBoardResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/getBoardRequest\", output = \"http://server.james.ttt/TTTWebService/getBoardResponse\")\n public String getBoard(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @param gid\n * @param gstate\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"setGameState\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.SetGameState\")\n @ResponseWrapper(localName = \"setGameStateResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.SetGameStateResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/setGameStateRequest\", output = \"http://server.james.ttt/TTTWebService/setGameStateResponse\")\n public String setGameState(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid,\n @WebParam(name = \"gstate\", targetNamespace = \"\")\n int gstate);\n\n /**\n * \n * @param uid\n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteGame\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.DeleteGame\")\n @ResponseWrapper(localName = \"deleteGameResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.DeleteGameResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/deleteGameRequest\", output = \"http://server.james.ttt/TTTWebService/deleteGameResponse\")\n public String deleteGame(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid,\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid);\n\n /**\n * \n * @param uid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"showMyOpenGames\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowMyOpenGames\")\n @ResponseWrapper(localName = \"showMyOpenGamesResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowMyOpenGamesResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/showMyOpenGamesRequest\", output = \"http://server.james.ttt/TTTWebService/showMyOpenGamesResponse\")\n public String showMyOpenGames(\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid);\n\n /**\n * \n * @param gid\n * @param x\n * @param y\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"checkSquare\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.CheckSquare\")\n @ResponseWrapper(localName = \"checkSquareResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.CheckSquareResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/checkSquareRequest\", output = \"http://server.james.ttt/TTTWebService/checkSquareResponse\")\n public String checkSquare(\n @WebParam(name = \"x\", targetNamespace = \"\")\n int x,\n @WebParam(name = \"y\", targetNamespace = \"\")\n int y,\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @param gid\n * @param x\n * @param y\n * @param pid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"takeSquare\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.TakeSquare\")\n @ResponseWrapper(localName = \"takeSquareResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.TakeSquareResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/takeSquareRequest\", output = \"http://server.james.ttt/TTTWebService/takeSquareResponse\")\n public String takeSquare(\n @WebParam(name = \"x\", targetNamespace = \"\")\n int x,\n @WebParam(name = \"y\", targetNamespace = \"\")\n int y,\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid,\n @WebParam(name = \"pid\", targetNamespace = \"\")\n int pid);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"leagueTable\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.LeagueTable\")\n @ResponseWrapper(localName = \"leagueTableResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.LeagueTableResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/leagueTableRequest\", output = \"http://server.james.ttt/TTTWebService/leagueTableResponse\")\n public String leagueTable();\n\n /**\n * \n * @param uid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"showAllMyGames\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowAllMyGames\")\n @ResponseWrapper(localName = \"showAllMyGamesResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowAllMyGamesResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/showAllMyGamesRequest\", output = \"http://server.james.ttt/TTTWebService/showAllMyGamesResponse\")\n public String showAllMyGames(\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid);\n\n /**\n * \n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"checkWin\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.CheckWin\")\n @ResponseWrapper(localName = \"checkWinResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.CheckWinResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/checkWinRequest\", output = \"http://server.james.ttt/TTTWebService/checkWinResponse\")\n public String checkWin(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"showOpenGames\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowOpenGames\")\n @ResponseWrapper(localName = \"showOpenGamesResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowOpenGamesResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/showOpenGamesRequest\", output = \"http://server.james.ttt/TTTWebService/showOpenGamesResponse\")\n public String showOpenGames();\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"login\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.Login\")\n @ResponseWrapper(localName = \"loginResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.LoginResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/loginRequest\", output = \"http://server.james.ttt/TTTWebService/loginResponse\")\n public int login(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n}", "@WebService(name = \"LegislationSearch\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface LegislationSearch {\n\n\n /**\n * \n * @param startIndex\n * @param pageSize\n * @param constraints\n * @return\n * returns gov.ga.legis.legislation.LegislationSearchResultsPaged\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n */\n @WebMethod(operationName = \"GetLegislationSearchResultsPaged\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationSearchResultsPaged\")\n @WebResult(name = \"GetLegislationSearchResultsPagedResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationSearchResultsPaged\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPaged\")\n @ResponseWrapper(localName = \"GetLegislationSearchResultsPagedResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPagedResponse\")\n public LegislationSearchResultsPaged getLegislationSearchResultsPaged(\n @WebParam(name = \"Constraints\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationSearchConstraints constraints,\n @WebParam(name = \"PageSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer pageSize,\n @WebParam(name = \"StartIndex\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer startIndex)\n throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage, LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n ;\n\n /**\n * \n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndex\n */\n @WebMethod(operationName = \"GetLegislationForSession\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationForSession\")\n @WebResult(name = \"GetLegislationForSessionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationForSession\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSession\")\n @ResponseWrapper(localName = \"GetLegislationForSessionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSessionResponse\")\n public ArrayOfLegislationIndex getLegislationForSession(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @param documentType\n * @param sessionId\n * @param rangeSize\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndexRangeSet\n */\n @WebMethod(operationName = \"GetLegislationRanges\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRanges\")\n @WebResult(name = \"GetLegislationRangesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRanges\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRanges\")\n @ResponseWrapper(localName = \"GetLegislationRangesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangesResponse\")\n public ArrayOfLegislationIndexRangeSet getLegislationRanges(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId,\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"RangeSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer rangeSize);\n\n /**\n * \n * @param range\n * @return\n * returns gov.ga.legis.legislation.LegislationIndexRange\n */\n @WebMethod(operationName = \"GetLegislationRange\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRange\")\n @WebResult(name = \"GetLegislationRangeResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRange\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRange\")\n @ResponseWrapper(localName = \"GetLegislationRangeResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangeResponse\")\n public LegislationIndexRange getLegislationRange(\n @WebParam(name = \"Range\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationIndexRangeSet range);\n\n /**\n * \n * @param legislationId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetail\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetail\")\n @WebResult(name = \"GetLegislationDetailResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetail\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetail\")\n @ResponseWrapper(localName = \"GetLegislationDetailResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailResponse\")\n public LegislationDetail getLegislationDetail(\n @WebParam(name = \"LegislationId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer legislationId);\n\n /**\n * \n * @param number\n * @param documentType\n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetailByDescription\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetailByDescription\")\n @WebResult(name = \"GetLegislationDetailByDescriptionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetailByDescription\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescription\")\n @ResponseWrapper(localName = \"GetLegislationDetailByDescriptionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescriptionResponse\")\n public LegislationDetail getLegislationDetailByDescription(\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"Number\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer number,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @return\n * returns gov.ga.legis.legislation.ArrayOfSubject\n */\n @WebMethod(operationName = \"GetTitles\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetTitles\")\n @WebResult(name = \"GetTitlesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetTitles\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitles\")\n @ResponseWrapper(localName = \"GetTitlesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitlesResponse\")\n public ArrayOfSubject getTitles();\n\n}", "@WebService\npublic interface MessageService extends Serializable{\n\n /**\n * Sends messages to registered patients\n *\n * @param messages List of messages to be sent\n */\n @WebMethod\n public void sendPatientMessages(@WebParam(name=\"messages\") PatientMessage[] messages);\n\t\n /**\n * Sends a message to a registered patient\n *\n * @param messageId Id of the message to send\n * @param personalInfo List of name value pairs containing patient information\n * @param patientNumber Patient mobile contact number\n * @param patientNumberType Type of contact number. Possible values include PERSONAL, SHARED\n * @param langCode Code representing preferred communication language\n * @param mediaType Patient's preferred communication medium\n * @param notificationType Type of message to send to patient\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @param recipientId String unique identifier of the recipient\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendPatientMessage(@WebParam(name=\"messageId\") String messageId, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"personalInfo\") NameValuePair[] personalInfo, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"patientNumber\") String patientNumber, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"patientNumberType\") ContactNumberType patientNumberType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"langCode\") String langCode, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"mediaType\") MediaType mediaType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"notificationType\") Long notificationType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"startDate\")Date startDate, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"endDate\")Date endDate,\n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"recipientId\")String recipientId);\n\n /**\n * Sends a message to a registered CHPS worker\n *\n * @param messageId Id of the message to send\n * @param personalInfo List of name value pairs containing patient information\n * @param workerNumber CHPS worker's mobile contact number\n * @param patients A List of patients requiring service from CHPS worker\n * @param langCode Code representing preferred communication language\n * @param mediaType Patient's preferred communication medium\n * @param notificationType Type of message to send to patient\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendCHPSMessage(@WebParam(name=\"messageId\") String messageId, @WebParam(name=\"personalInfo\") NameValuePair[] personalInfo, @WebParam(name=\"workerNumber\") String workerNumber, @WebParam(name=\"patients\") Patient[] patients, @WebParam(name=\"langCode\") String langCode, @WebParam(name=\"mediaType\") MediaType mediaType, @WebParam(name=\"notificationType\") Long notificationType, @WebParam(name=\"startDate\")Date startDate, @WebParam(name=\"endDate\")Date endDate);\n\n /**\n * Sends a list of care defaulters to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param cares List of patient care options which have defaulters\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendDefaulterMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"cares\") Care[] cares,\n @WebParam(name = \"media\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends a list of patients within a delivery schedule to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param patients List of patients with matching delivery status\n * @param deliveryStatus Status of patient delivery. Expected values are 'Upcoming', 'Recent' and 'Overdue'\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendDeliveriesMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patients\") Patient[] patients,\n @WebParam(name = \"deliveryStatus\") String deliveryStatus,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends a list of upcoming care for a particular patient to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param patient patient due for care\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendUpcomingCaresMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patient\") Patient patient,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends an SMS message\n *\n * @param content the message to send\n * @param recipient the phone number to receive the message\n * @return\n */\n @WebMethod\n public MessageStatus sendMessage(@WebParam(name = \"content\") String content,\n @WebParam(name = \"recipient\") String recipient);\n\n /**\n * Sends multiple upcoming care messages to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param cares List of upcoming care\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendBulkCaresMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patient\") Care[] cares,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n}", "@WebService(targetNamespace = \"http://www.example.org/s2/\", name = \"s2\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface S2 {\n\n @WebMethod(operationName = \"S2Operation\", action = \"http://www.example.org/s2/S2Operation\")\n @WebResult(name = \"FulfillmentResponse\", targetNamespace = \"http://www.example.org/s2/\", partName = \"parameters\")\n public FulfillmentResponse s2Operation(\n @WebParam(partName = \"parameters\", name = \"FulfillmentRequest\", targetNamespace = \"http://www.example.org/s2/\")\n FulfillmentRequest parameters\n );\n}", "@WebService(name = \"BookService\", targetNamespace = \"http://webservices.arabie.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BookService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.DeleteBook\")\n @ResponseWrapper(localName = \"deleteBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.DeleteBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/deleteBookRequest\", output = \"http://webservices.arabie.com/BookService/deleteBookResponse\")\n public boolean deleteBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.arabie.myservice.Book\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.GetBook\")\n @ResponseWrapper(localName = \"getBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.GetBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/getBookRequest\", output = \"http://webservices.arabie.com/BookService/getBookResponse\")\n public Book getBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.arabie.myservice.Book\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"addBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.AddBook\")\n @ResponseWrapper(localName = \"addBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.AddBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/addBookRequest\", output = \"http://webservices.arabie.com/BookService/addBookResponse\")\n public Book addBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n double arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.arabie.myservice.Book\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.UpdateBook\")\n @ResponseWrapper(localName = \"updateBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.UpdateBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/updateBookRequest\", output = \"http://webservices.arabie.com/BookService/updateBookResponse\")\n public Book updateBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n}", "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"YCJKServiceSoap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface YCJKServiceSoap {\r\n\r\n @WebMethod(action = \"http://tempuri.org/saveYCJC\")\r\n @RequestWrapper(localName = \"saveYCJC\", targetNamespace = \"http://tempuri.org/\", className = \"com.webservice.xxxq.ws.SaveYCJC\")\r\n @ResponseWrapper(localName = \"saveYCJCResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.webservice.xxxq.ws.SaveYCJCResponse\")\r\n @WebResult(name = \"saveYCJCResult\", targetNamespace = \"http://tempuri.org/\")\r\n public java.lang.String saveYCJC(\r\n @WebParam(name = \"elements\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String elements\r\n );\r\n\r\n @WebMethod(action = \"http://tempuri.org/saveYCJCArray\")\r\n @RequestWrapper(localName = \"saveYCJCArray\", targetNamespace = \"http://tempuri.org/\", className = \"com.webservice.xxxq.ws.SaveYCJCArray\")\r\n @ResponseWrapper(localName = \"saveYCJCArrayResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.webservice.xxxq.ws.SaveYCJCArrayResponse\")\r\n @WebResult(name = \"saveYCJCArrayResult\", targetNamespace = \"http://tempuri.org/\")\r\n public java.lang.String saveYCJCArray(\r\n @WebParam(name = \"elements\", targetNamespace = \"http://tempuri.org/\")\r\n com.webservice.xxxq.ws.ArrayOfArrayOfString elements\r\n );\r\n}", "@WebService(name = \"EmployeeManagementWebService\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EmployeeManagementWebService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns com.virtualpairprogrammers.employeemanagement.Employee\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEmployeeById\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetEmployeeById\")\n @ResponseWrapper(localName = \"getEmployeeByIdResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetEmployeeByIdResponse\")\n public Employee getEmployeeById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.virtualpairprogrammers.employeemanagement.Employee>\n * @throws ServiceUnavailableException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllEmployees\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetAllEmployees\")\n @ResponseWrapper(localName = \"getAllEmployeesResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetAllEmployeesResponse\")\n public List<Employee> getAllEmployees()\n throws ServiceUnavailableException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"registerEmployee\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.RegisterEmployee\")\n @ResponseWrapper(localName = \"registerEmployeeResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.RegisterEmployeeResponse\")\n public void registerEmployee(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Employee arg0);\n\n}", "@WebService(name = \"MyServ\", targetNamespace = \"http://myServ\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MyServ {\r\n\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns double\r\n */\r\n @WebMethod(operationName = \"ConvertMtoKm\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"ConvertMtoKm\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKm\")\r\n @ResponseWrapper(localName = \"ConvertMtoKmResponse\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKmResponse\")\r\n public double convertMtoKm(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n double arg0);\r\n\r\n}" ]
[ "0.6686478", "0.6535217", "0.64760965", "0.6419642", "0.6414335", "0.6412797", "0.63111675", "0.62639683", "0.6205266", "0.61975527", "0.616667", "0.61616355", "0.6133242", "0.6128374", "0.61237335", "0.6112802", "0.61056966", "0.6094233", "0.60797554", "0.6075644", "0.60515666", "0.6017401", "0.60042405", "0.59986407", "0.5994577", "0.5980954", "0.59742355", "0.5969769", "0.59673244", "0.5948757", "0.59408045", "0.5934612", "0.5929493", "0.59274393", "0.5924464", "0.59191465", "0.59115297", "0.5882251", "0.58683926", "0.5868135", "0.5860479", "0.58514345", "0.58506763", "0.5835697", "0.5827292", "0.5824663", "0.5807363", "0.58060664", "0.58043194", "0.5801517", "0.5801173", "0.57999563", "0.5799811", "0.57964736", "0.57914037", "0.5789401", "0.57876086", "0.57865924", "0.5785958", "0.5782817", "0.57574713", "0.5739229", "0.57303363", "0.57269114", "0.57263005", "0.57085127", "0.5705418", "0.5701976", "0.5693306", "0.56925184", "0.5691965", "0.5689506", "0.56838375", "0.5675882", "0.5672185", "0.56665325", "0.5665749", "0.56529665", "0.56526357", "0.5652298", "0.56503534", "0.5647458", "0.5646747", "0.5643571", "0.5636855", "0.5623525", "0.562337", "0.5618798", "0.56168026", "0.5608045", "0.5607983", "0.5601777", "0.56011087", "0.56005555", "0.5597789", "0.55920446", "0.5589984", "0.55871814", "0.5580701", "0.5563493" ]
0.5869339
38
The constructor sets the fields.
public Museum(String museumId, String museumName, String[] loc, double[] coords, double p, double rate, double reviewCount) { id = museumId; name = museumName; location = loc; coordinates = coords; price = p; rating = rate; cost = Double.POSITIVE_INFINITY; value = 0; numReviews = reviewCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public Field() {\r\n\t}", "@Override public void init()\n\t\t{\n\t\t}", "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 }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void initializeFields() {\n\n\t}", "private TigerData() {\n initFields();\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 AirField() {\n\n\t}", "public InitialData(){}", "@Override\n\t\tpublic void init() {\n\t\t}", "protected Settlement() {\n // empty constructor\n }", "public PSRelation()\n {\n }", "public Student() {\r\n\t\t\r\n\t\t//populating country options\r\n\t\t//can also be done using a properties file\r\n\t\t\r\n\t\t/*\r\n\t\t * countryOptions = new LinkedHashMap<String, String>();\r\n\t\t * \r\n\t\t * countryOptions.put(\"BR\", \"Brazil\"); countryOptions.put(\"IN\", \"India\");\r\n\t\t * countryOptions.put(\"US\", \"United States\"); countryOptions.put(\"CA\",\r\n\t\t * \"Canada\");\r\n\t\t */\r\n\t\t\r\n\t\t\r\n\t}", "protected Book() {\n this.title = \"Init\";\n this.author = \"Init\";\n this.bookCategories = new HashSet<>(10);\n }", "public void init() {\n \n }", "public NewBooking() {\n initComponents();\n setDate();\n setTime();\n loadcmbOrigin();\n loadcmbDestination();\n }", "private Request() {\n initFields();\n }", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public FormFieldsReport() {}", "public Pasien() {\r\n }", "protected void init() {\n setUUIDString();\n setNoteCreatedAt();\n setNoteUpdatedAt();\n setCreator(ParseUser.getCurrentUser());\n addAuthor(ParseUser.getCurrentUser());\n setACL(new ParseACL(ParseUser.getCurrentUser()));\n }", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\n protected void init() {\n }", "public void initialize()\n {\n }", "private FundInfo() {\n initFields();\n }", "public Field(String watermark,\n String showfieldname,\n String saveRequired,\n String jfunction,\n String onChange,\n String onKeyDown,\n String defaultValue,\n String type,\n String sqlValue,\n String field_name,\n String relation,\n String states,\n String relationField,\n String onClickVList,\n String jIdList,\n String name,\n String searchRequired,\n String id,\n String placeholder,\n String value,\n String fieldType,\n String onclicksummary,\n String newRecord,\n List<Field> dListArray,\n List<OptionModel> mOptionsArrayList,\n String onclickrightbutton,\n String webSaveRequired,\n String field_type) {\n\n this.watermark = watermark;\n this.showfieldname = showfieldname;\n this.saveRequired = saveRequired;\n this.jfunction = jfunction;\n this.onChange = onChange;\n this.onKeyDown = onKeyDown;\n this.defaultValue = defaultValue;\n this.type = type;\n this.sqlValue = sqlValue;\n this.field_name = field_name;\n this.relation = relation;\n this.states = states;\n this.relationField = relationField;\n this.onClickVList = onClickVList;\n this.jIdList = jIdList;\n this.name = name;\n this.searchRequired = searchRequired;\n this.id = id;\n this.placeholder = placeholder;\n this.value = value;\n this.fieldType = fieldType;\n this.onclicksummary = onclicksummary;\n this.newRecord = newRecord;\n this.dListArray = dListArray;\n this.optionsArrayList = mOptionsArrayList;\n this.onclickrightbutton = onclickrightbutton;\n this.webSaveRequired = webSaveRequired;\n this.field_type = field_type;\n\n// this( watermark, showfieldname, saveRequired, jfunction,\n// onChange, onKeyDown, defaultValue, type, sqlValue,\n// field_name, relation, states, relationField,\n// onClickVList, jIdList, name, \"\",\n// searchRequired, id, placeholder, value,\n// fieldType, onclicksummary, newRecord, \"\",\n// dListArray,mOptionsArrayList,onclickrightbutton);\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void init() {\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 }", "public mapper3c() { super(); }", "public Parameters() {\n\t}", "public FieldScrapper() \r\n {\r\n }", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "public DesastreData() { //\r\n\t}", "@Override\r\n\tpublic void init() {}", "public AirAndPollen() {\n\n\t}", "public BaseParameters(){\r\n\t}", "@Override\n public void init() {\n\n super.init();\n\n }", "public Chauffeur() {\r\n\t}", "private Response() {\n initFields();\n }", "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "@Override\n public void init() {}", "@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }", "public Aanbieder() {\r\n\t\t}", "public void init() {\n\t\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public RequestValues() {\n //mUserId = userId;\n }", "private FieldInfo() {\r\n\t}", "protected void initialize() {\n \t\n }", "public _355() {\n\n }", "@Override\n\t\tprotected void initialise() {\n\n\t\t}", "public IntegerField() {\r this(3, 0, 0, 0);\r }", "public Pitonyak_09_02() {\r\n }", "public SalesRecords() {\n super();\n }", "protected ParameterList(){\n //title = t;\n //cellWorld = cw;\n }", "private FundList() {\n initFields();\n }", "public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void initialize() {\n this.product = new Product(this.productId,this.productName,this.productPrice,this.productInv,this.productMin,this.productMax);\n productTitleLabel.setText(\"Modify Product\");\n }", "public Tbdtokhaihq3() {\n super();\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}", "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 PaymentDetails () {\n\t}", "public Car()\n {\n \tsuper();\n bodyType = null;\n noOfDoors = 0;\n noOfSeats = 0;\n }", "public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\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 }", "public Requisition() {\n\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "private TextReader() {\n // There are no fields required to initialize\n }", "public CalccustoRequest()\r\n\t{\r\n\t}", "public Catelog() {\n super();\n }", "@Override\n public void init() {\n }", "public CommAreaRecord() {\n\t}", "private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public Record() {\n data = new int[DatabaseManager.fieldNames.length];\n }", "protected Asignatura()\r\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}", "public Item()\r\n {\r\n // Initialize instance variables\r\n \r\n }", "public SceneFurniRecord ()\n {\n }", "protected void init() {\n }", "protected void init() {\n // to override and use this method\n }", "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}", "public BacInfo() {\n }", "public void initialize(){\n\t\t//TODO: put initialization code here\n\t\tsuper.initialize();\n\t\t\n\t}", "@Override\n void init() {\n }" ]
[ "0.7597546", "0.7193991", "0.68537104", "0.68290764", "0.67945206", "0.67796755", "0.6752324", "0.6727794", "0.66942203", "0.66794634", "0.6645366", "0.6643336", "0.662458", "0.66199684", "0.6612799", "0.6602683", "0.6602111", "0.65937644", "0.65737206", "0.6565456", "0.6532346", "0.6520113", "0.6518021", "0.65110654", "0.65041673", "0.64934736", "0.648637", "0.64794725", "0.64782", "0.64641666", "0.64641666", "0.64641666", "0.64563227", "0.64506155", "0.64380836", "0.6437427", "0.6434798", "0.6427289", "0.6423766", "0.64235777", "0.6422053", "0.6410538", "0.64067745", "0.6403778", "0.63905305", "0.6377648", "0.63776076", "0.63775474", "0.6375906", "0.6374359", "0.63661647", "0.6363219", "0.63630855", "0.6361156", "0.6359114", "0.63564414", "0.6346381", "0.63444465", "0.63394487", "0.6338261", "0.6332837", "0.63268214", "0.6325661", "0.6325203", "0.6316117", "0.63098836", "0.63069975", "0.6305117", "0.6302284", "0.6302284", "0.6302284", "0.62995195", "0.62937933", "0.6291985", "0.62917536", "0.62889266", "0.6286497", "0.6283987", "0.62836915", "0.628258", "0.62762797", "0.6276128", "0.6275817", "0.6268326", "0.6267606", "0.6267606", "0.62601066", "0.62595356", "0.62566423", "0.62566423", "0.62566423", "0.62566423", "0.62566423", "0.62527084", "0.62519985", "0.6251751", "0.6251125", "0.6248549", "0.62468433", "0.624678", "0.62414575" ]
0.0
-1
Launch the application. Create the frame.
public OrderPanel() { setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); setBounds(100, 100, 800, 600); contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); contentPane.setLayout(new BorderLayout(0, 0)); setContentPane(contentPane); panel = new JPanel(); panel.setBounds(0, 0, 800, 600); contentPane.add(panel); panel.setLayout(null); this.initDisplayPanel(); this.initFields(); panel.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void launch() {\n m_frame.pack();\n m_frame.setVisible(true);\n }", "public launchFrame() {\n \n initComponents();\n \n }", "public void launchFrame() {\n\t\tf.getContentPane().add(sbrText);\n\t\tf.getContentPane().add(btnQuit);\n\n\t\t// Close when the close button is clicked\n\t\tf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t// Display Frame\n\t\tf.pack(); // Adjusts frame to size of components\n\t\tf.setVisible(true);\n\t}", "private void prepareFrame() {\n logger.debug(\"prepareFrame : enter\");\n\n // initialize the actions :\n registerActions();\n final Container container;\n\n if (Bootstrapper.isHeadless()) {\n container = null;\n } else {\n final JFrame frame = new JFrame(ApplicationDescription.getInstance().getProgramName());\n\n // handle frame icon\n final Image jmmcFavImage = ResourceImage.JMMC_FAVICON.icon().getImage();\n frame.setIconImage(jmmcFavImage);\n\n // get screen size to adjust minimum window size :\n final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n logger.info(\"screen size = {} x {}\", screenSize.getWidth(), screenSize.getHeight());\n // hack for screens smaller than 1024x768 screens:\n final int appWidth = 950;\n final int appHeightMin = (screenSize.getHeight() >= 850) ? 800 : 700;\n\n final Dimension dim = new Dimension(appWidth, appHeightMin);\n frame.setMinimumSize(dim);\n frame.addComponentListener(new ComponentResizeAdapter(dim));\n frame.setPreferredSize(INITIAL_DIMENSION);\n\n App.setFrame(frame);\n\n container = frame.getContentPane();\n }\n // init the main panel:\n createContent(container);\n\n StatusBar.show(\"application started.\");\n\n logger.debug(\"prepareFrame : exit\");\n }", "public void run() {\n\t\t\t\tLayoutFrame frame = new LayoutFrame();\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\tframe.setVisible(true);\n\t\t\t}", "void launchApp();", "private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }", "public void start() {\n\t\tSystem.out.println(\"Starting new application\");\n\t\texec.init(this);\n\t\tthread = new Thread(this);\n\t\trunning = true;\n\t\tgd.setFullScreenWindow(screen.getFrame());\n\t\tscreen.getFrame().setVisible(true);\n\t\tthread.start();\n\t}", "@Override\n public void run() {\n JFrame frame = new JFrame(\"Survey\");\n frame.setPreferredSize(new Dimension(300, 400));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n createComponents(frame.getContentPane());\n frame.pack();\n frame.setVisible(true);\n }", "private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }", "public void start(){\n JmeFormatter formatter = new JmeFormatter();\n\n Handler consoleHandler = new ConsoleHandler();\n consoleHandler.setFormatter(formatter);\n\n Logger.getLogger(\"\").removeHandler(Logger.getLogger(\"\").getHandlers()[0]);\n Logger.getLogger(\"\").addHandler(consoleHandler);\n \n createCanvas(appClass);\n \n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n \n SwingUtilities.invokeLater(new Runnable(){\n public void run(){\n JPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\n createFrame();\n \n //currentPanel.add(canvas, BorderLayout.CENTER);\n mMainFrame.pack();\n startApp();\n mMainFrame.setLocationRelativeTo(null);\n mMainFrame.setVisible(true);\n }\n });\n \n \n }", "private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tframe = new JFrame(\"Captura 977R\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Set up the content pane.\r\n\t\taddComponentsToPane(frame.getContentPane());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tDimension windowSize = frame.getSize();\r\n\r\n\t\tint windowX = Math.max(0, (screenSize.width - windowSize.width) / 2);\r\n\t\tint windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);\r\n\r\n\t\tframe.setLocation(windowX, windowY); // Don't use \"f.\" inside\r\n\t\t// constructor.\r\n\t\tframe.setVisible(true);\r\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }", "public static void run(){\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n PlanHomeCoach frame = new PlanHomeCoach();\n frame.init();\n Dimension screenSize =Toolkit.getDefaultToolkit().getScreenSize();\n frame.setLocation(screenSize.width/2-400/2,screenSize.height/2-700/2);\n frame.setResizable(false);\n frame.setVisible(true);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }", "public static void start()\n\t{\n teamFrame = new JFrame(\"Team Setup\");\n teamFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n JComponent newContentPane = new BasicTeamConfiguration();\n newContentPane.setOpaque(true); //content panes must be opaque\n teamFrame.setContentPane(newContentPane);\n teamFrame.setLocationRelativeTo(null);\n \n //Display the window.\n teamFrame.pack();\n teamFrame.setVisible(true);\n\t}", "public static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t// Display the window\r\n\t\tframe.setVisible(true);\r\n\t}", "public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public static void launchingBrowser() throws Exception {\n\n\t\tString applicationURL = merchEnv.getProtocol() + \"://\"\n\t\t\t\t+ merchEnv.getHost() + \":\" + merchEnv.getPort() + \"/\";\n\t\tselectedBrowser = merchEnv.getBrowser();\n\t\ttry {\n\t\t\tbaseScreen = new BaseScreen(selectedBrowser, applicationURL,\n\t\t\t\t\tmerchEnv.getContext(), merchEnv, merchUserInfo, merchUI);\n\t\t} catch (ScreenException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }", "public static void main(String[] args) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tFrame app = new Frame(\"Santa on Christmas Eve\"); \n\t\t\t}\n\t\t}\n\t\t);\n\t}", "public void launch() {\r\n\t\tthis.setLocation(200, 200);\r\n\t\tthis.setSize(COLS * BLOCK_SIZE, ROWS * BLOCK_SIZE);\r\n\t\tthis.addKeyListener(new KeyMonitor());\r\n\t\tthis.addWindowListener(new WindowAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t\tthis.setVisible(true);\r\n\t\t\r\n\t\tnew Thread(PaintThread).start();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tAppFrame mf = new AppFrame();\n\t}", "public void run() \n {\n final JFrame frame = new JFrame(); \n frame.setMinimumSize(new Dimension(640, 480)); \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); \n \n // Add the Swing JPanel and make visible\n frame.getContentPane().add(new SwingFX2()); \n frame.setVisible(true); \n }", "public WhereIsAppCreator(JFrame frame) {\n this.frame = frame;\n initComponents();\n }", "public StartProgramFrame() {\n initComponents();\n }", "public static void main(String[] args) {\n\t\tFrame window= new Frame(); \n\t}", "@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}", "public void startApplication() {\n\t\tgameView = new GameGUI(this);\n\t\t\n\t\t/*\n\t\t * Create bonus GUI now.\n\t\t * TODO: Use swing worker thread to create bonus GUI\n\t\t * \t\t that way if GUI had more bells and whistles to it\n\t\t * \t\t the bonus GUI creation wouldn't take up processing time\n\t\t * \t\t on the main thread.\n\t\t */\n\t\tcreateBonusGUI();\n\t\t\n\t\t//GUI created and ready to show to the user\n\t\tgameView.allowVisibility();\n\t\tGameSounds.startBackgroundMusic();\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tEx02 frame=new Ex02();\r\n\t\t\t\t\tframe.setVisible(true);\r\n\t\t\t\t}catch(Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "Frame createFrame();", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Initialize shell frame\r\n\t\t\tShellFrame = new ShellFrame(360,200,\"Menu principal\",null);\t\t\r\n\t\t\t//Content charge\r\n\t\t\tcontentCharge ();\r\n\t\t\t//ShellFrame standby\r\n\t\t\tShellFrame.StandBy();\r\n\t\t} catch (Exception e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Error. GUI initialization failure\", \"Java Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void buildFrame(){\n this.setVisible(true);\n this.getContentPane();\n this.setSize(backgrondP.getIconWidth(),backgrondP.getIconHeight());\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\t \n\t }", "public MainApp() {\r\n\t\tsuper();\r\n\t\tthis.setSize(642, 455);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public MainFrame() {\n initComponents();\n\n mAlmondUI.addWindowWatcher(this);\n mAlmondUI.initoptions();\n\n initActions();\n init();\n\n if (IS_MAC) {\n initMac();\n }\n\n initMenus();\n mActionManager.setEnabledDocumentActions(false);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void run() {\n\t\t\t\t\tHelloWorldGUI frame = new HelloWorldGUI();\n\t\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t}", "public void run() {\r\n frame = new MainFrame(this);\r\n newAccountFrame = new NewAccountPage(this);\r\n \r\n frame.setVisible(true);\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t try {\n\t\t\t\t\tUIManager.setLookAndFeel(\"com.seaglasslookandfeel.SeaGlassLookAndFeel\");\n\t\t\t\t} catch (ClassNotFoundException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (InstantiationException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IllegalAccessException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (UnsupportedLookAndFeelException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tsetupLibVLC();\n\t\t\t\t} catch (LibraryNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tNative.loadLibrary(RuntimeUtil.getLibVlcLibraryName(), LibVlc.class);\n\t\t\t\t\n\t\t\t\tExtendedFrame frame = new ExtendedFrame();\n\t\t\t\tframe.setResizable(true);\n\t\t\t\tframe.setSize(800, 600);\n\t\t\t\tframe.setMinimumSize(new Dimension(500, 400));\n\t\t\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\t\tframe.setLocationRelativeTo(null);\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\tframe.setVisible(true);\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Welcome to Vamix!\\n\\nHope you enjoy using vamix!\\nFor help, please click in the Help menu.\\nRefer to user manual for detailed help.\\n\");\n\t\t\t}", "private static void createAndShowGUI() {\n Font f = new Font(\"微软雅黑\", 0, 12);\n String names[] = {\"Label\", \"CheckBox\", \"PopupMenu\", \"MenuItem\", \"CheckBoxMenuItem\",\n \"JRadioButtonMenuItem\", \"ComboBox\", \"Button\", \"Tree\", \"ScrollPane\",\n \"TabbedPane\", \"EditorPane\", \"TitledBorder\", \"Menu\", \"TextArea\",\n \"OptionPane\", \"MenuBar\", \"ToolBar\", \"ToggleButton\", \"ToolTip\",\n \"ProgressBar\", \"TableHeader\", \"Panel\", \"List\", \"ColorChooser\",\n \"PasswordField\", \"TextField\", \"Table\", \"Label\", \"Viewport\",\n \"RadioButtonMenuItem\", \"RadioButton\", \"DesktopPane\", \"InternalFrame\"\n };\n for (String item : names) {\n UIManager.put(item + \".font\", f);\n }\n //Create and set up the window.\n JFrame frame = new JFrame(\"AutoCapturePackagesTool\");\n\n String src = \"/optimizationprogram/GUICode/u5.png\";\n Image image = null;\n try {\n image = ImageIO.read(new CaptureGUI().getClass().getResource(src));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n frame.setIconImage(image);\n //frame.setIconImage(Toolkit.getDefaultToolkit().getImage(src));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false);\n frame.setLocation(Toolkit.getDefaultToolkit().getScreenSize().width / 2 - 520 / 2,\n Toolkit.getDefaultToolkit().getScreenSize().height / 2 - 420 / 2);\n frame.getContentPane().add(new CaptureGUI());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public static void main(String[] args) {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n new LaunchGame().setVisible(true);\n } catch (IOException ex) {\n Logger.getLogger(LaunchGame.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n });\n }", "public static void main(String args[]){\r\n JFrame frame = new JFrame();\r\n frame.getContentPane().add(new S2SSubmissionDetailForm());\r\n// frame.setSize(690,420);\r\n frame.pack();\r\n frame.show();\r\n// frame.setVisible(true);\r\n }", "public static void main( String args[] )\n\t{\n\t\tmainFrame = getInstance();\n\t\tmainFrame.setVisible( true );\n\t\t\n\t}", "private void startGUI() {\r\n myFrame.setTitle(\"Media Library\");\r\n myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n myFrame.setLocationByPlatform(true);\r\n myFrame.pack();\r\n\r\n myFrame.setVisible(true);\r\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResourceTestFrame frame=new ResourceTestFrame();\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\tframe.setVisible(true);\n\t\t\t}", "public void runCoursesApp() {\n frame = new JFrame(\"Courses\");\n frame.setFont(new Font(\"Proxima Nova\", Font.PLAIN, 13));\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frame.setForeground(myColor);\n frame.setBackground(myColor);\n frame.setLayout(new BorderLayout());\n\n frame.add(makeUpperPanel(), BorderLayout.NORTH);\n frame.add(makeLowerPanel(), BorderLayout.CENTER);\n\n frame.pack();\n frame.getContentPane().requestFocusInWindow();\n frame.setSize(800, 770);\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }", "private void buildAndDisplayFrame() {\n\n\t\tframe.add(panelForIncomingCall, BorderLayout.NORTH);\n\t\tpanelForIncomingCall.add(welcomeThenDisplayCallInfo);\n\n\t\tframe.add(backgroundPanel, BorderLayout.CENTER);\n\t\tbackgroundPanel.add(userInstructions);\n\t\tbackgroundPanel.add(startButton);\n\t\tbackgroundPanel.add(declineDisplay);\n\n\t\tframe.add(acceptDeclineBlockBottomPanel, BorderLayout.SOUTH);\n\t\tacceptDeclineBlockBottomPanel.add(acceptButton);\n\t\tacceptDeclineBlockBottomPanel.add(declineButton);\n\t\tacceptDeclineBlockBottomPanel.add(blockButton);\n\n\t\tframe.setSize(650, 700); // sizes frame to whatever we want\n\t\tframe.setLocationRelativeTo(null); // puts at center of screen\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "static public void make() {\n\t\tif (window != null)\n\t\t\treturn;\n\n\t\twindow = new JFrame();\n\t\twindow.setTitle(\"Finecraft\");\n\t\twindow.setMinimumSize(new Dimension(500, 300));\n\t\twindow.setSize(asInteger(WINDOW_WIDTH), asInteger(WINDOW_HEIGHT));\n\t\twindow.setResizable(asBoolean(WINDOW_RESIZE));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "public void start() {\r\n\t\tfinal Element frame = this.createFrame();\r\n\t\tthis.setFrame(frame);\r\n\r\n\t\tthis.getSupport().start(this, frame);\r\n\r\n\t\t// the reason for the query string is to avoid caching problems...the\r\n\t\t// src attribute is set before the frame is attached this also\r\n\t\t// avoids the nasty clicking noises in ie.\r\n\t\tDOM.setElementProperty(frame, \"src\", this.getServiceEntryPoint() + \"?serializationEngine=Gwt&\" + System.currentTimeMillis());\r\n\r\n\t\tfinal Element body = RootPanel.getBodyElement();\r\n\t\tDOM.appendChild(body, frame);\r\n\t}", "public void main(String[] args) {\n // TODO code application logic here\n MF= new MainFrame();\n }", "public static void main(String[] args) {\n \n MyFrame myFrame = new MyFrame();\n \n }", "private void createFrame() {\n System.out.println(\"Assembling \" + name + \" frame\");\n }", "public void createAndShowGUI() {\n\n setTitle(title);\n // Sets what to do when frame closes\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n setIconImage(new ImageIcon(ClassLoader.getSystemResource(ICON_PATH)).getImage());\n\n //shows the frame\n pack();\n setLocationRelativeTo(null); //centers frame\n setVisible(true);\n }", "private static void createAndShowGUI() {\n\t\t/*\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorldSwing\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the ubiquitous \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World\");\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n */\n\t\tfinal AC_GUI currentGUI = new AC_GUI();\n\t\t//currentGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcurrentGUI.setSize(900, 800);\n\t\t// make the frame full screen\n\t\t// currentGUI.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }", "public void buildFrame();", "public void createAndShowGUI() {\n\t\tcontroller = new ControllerClass(); \r\n\r\n\t\t// Create and set up the window\r\n\t\twindowLookAndFeel();\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetTitle(\"Media Works - Add Screen\");\r\n\t\tsetResizable(false);\r\n\t\tadd(componentSetup());\r\n\t\tpack();\r\n\t\tsetSize(720,540);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t}", "public Main(){\n \tsetSize(new Dimension(1024, 768));\n \t\n \t//setUndecorated(true); // borderless (fullscreen) window\n \tsetExtendedState(getExtendedState() | JFrame.MAXIMIZED_BOTH); // maximize window\n \t\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setTitle(\"Game\");\n setLocationRelativeTo(null); // center on screen\n\n \tContentLoader.LoadContent();\n init();\n start();\n }", "private void createFrame(){\n System.out.println(\"Assembling \" + name + \" frame.\");\n }", "public static void main(String[] args) {\n\t\t\n\t\tBasicComponentJFrame frame = new BasicComponentJFrame();\n\t\tframe.setSize(800, 600);\n\t\t\n\t\tframe.setComponents();\n\t\tGuiUtil.setLookNFeel(frame, GuiUtil.THEME_SWING);\n\t\tframe.setMenus();\n\t\tframe.eventReigst();\n\t\t\n\t\tframe.setVisible(true);\n\n\t}", "private static void createAndShowGUI() {\n //\n // Use the normal window decorations as defined by the look-and-feel\n // schema\n //\n JFrame.setDefaultLookAndFeelDecorated(true);\n //\n // Create the main application window\n //\n mainWindow = new MainWindow();\n //\n // Show the application window\n //\n mainWindow.pack();\n mainWindow.setVisible(true);\n }", "private static void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n frame = new JFrame(\"ATC simulator\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n atcscreen = new AtcScreen();\r\n atcscreen.setOpaque(true);\r\n frame.setContentPane(atcscreen);\r\n \r\n //Display the window.\r\n frame.setSize(1000,1000);\r\n //atcscreen.setSize(300,300);\r\n //frame.pack();\r\n frame.setVisible(true);\r\n }", "private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"WAR OF MINE\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new Gameframe();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.setSize(800,1000);\n frame.setVisible(true);\n }", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public Badminton()\n { \n frame.add(new Board()); \n frame.setSize(900, 900);\n frame.setResizable(false);\n frame.setTitle(\"PE Class\");\n //frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "public void run() {\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t\t\tframe.setJMenuBar((new MyJMenuBar(frame)).menuBar);\n\t\t\t\t\n\t\t\t\t//Display the window.\n\t\t\t\t//frame.pack();\n\n\t\t\t\t//Set up the content pane.\n\t\t\t\tframe.addLoadingMessage(frame.getContentPane());\n\t\t\t\tframe.pack();\n\t\t\t\tframe.setSize(new Dimension((int)(frame.getSize().getWidth()), 300));\n\t\t\t\tframe.setResizable(false);\n\t\t\t\tframe.setVisible(true);\n\t\t\t\tframe.update(frame.getGraphics());\n }", "public void start() {\n\t\tthis.setSize(500, 500);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "public static void main(String[] args) {\n\t Bodlogo2 frame= new Bodlogo2();\n\t frame.setSize(500,400);\n\t frame.setTitle(\"Cars \");\n\t frame.setVisible(true);\n\t frame.setLocationRelativeTo(null);\n\t frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public JFrameApp() {\n initComponents();\n }", "public void launchProcWindow() {\n\t\t\n\t\ttry {\n\t\t\tdbProcRoot = new ProcController(this);\n\t\t\tScene scene = new Scene(dbProcRoot.getRootView(), 640, 480);\n\t\t\tmainStage.setScene(scene);\n\t\t} catch(IOException e ) {\n\t\t\tsendConnectionError(e.toString(), true);\n\t\t}\n\t}", "public static void main(String[] arguments){\r\n TicTac frame = new TicTac(); //runs the screen layout class.\r\n }", "private void initFrame() {\r\n\tframe = new JFrame( \"Dammen\" );\r\n\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\tframe.setSize(ScreenSize.WIDTH + 25, ScreenSize.HEIGHT + 50);\r\n\r\n\tframe.setVisible(true);\r\n\t\r\n\tframe.setLocationRelativeTo(null);\r\n }", "public static void main(String[] args) {\n frame.setVisible(true);\n\n // Setting Dimensions\n frame.setSize(screen_width, screen_height);\n\n // Title of the Main Frame\n frame.setTitle(\"Clouds Binary\");\n\n // The close method\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n // Adding game Panel into the frame\n frame.add(clouds);\n\n // Setting image Icon\n ImageIcon img_icon = new ImageIcon(\"src\\\\Cloud_Binary\\\\clouds.png\");\n\n // Getting the image preview from the ImageIcon and setting it up\n frame.setIconImage(img_icon.getImage());\n\n // Setting Window resizable to false\n\n }", "public static void main(String[] args)\n\t{\n\t\tgo = new GUI();\n\t\tgo.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tgo.setExtendedState(JFrame.MAXIMIZED_BOTH); // Method to make auto-full screen\n\n\t\tgo.setVisible(true); // Basic frame stuff\n\t\tgo.init();\n\t\tr = new Runner();\n\t}", "public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tABOXBuilder window = new ABOXBuilder();\n\t\t\t\t\twindow.frame.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public static void main (String[] args){\n\n\t JFrame frame = new JFrame (\"LAWN ZOMBIES\");\n\t frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);\n\t Screen screen = new Screen();\n\t screen.setLayout(new FlowLayout()); //sets a split layout\n\t frame.setLocation(500, 0);\n\t // screen.setLayout(new BorderLayout()); //sets non-split layout\n\t frame.setSize(w,h);\n\t screen.setSize(w,h);\n\t frame.add(screen);\n\t //frame.pack();\n\t frame.setVisible(true);\n\t }", "private void createWindow() throws Exception {\r\n Display.setFullscreen(false);\r\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\r\n Display.setTitle(\"Program 2\");\r\n Display.create();\r\n }", "public static void main(String[] args) {\n\t\tjf= new JFrame(\"四川大学人脸识别自助借书系统\");\n jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jf.setLayout(null);\n jf.setSize(Toolkit.getDefaultToolkit().getScreenSize().width, Toolkit.getDefaultToolkit().getScreenSize().height);\n jf.setVisible(true);\n jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n Image icon = Toolkit.getDefaultToolkit().getImage(\"img/title.png\"); // 图片的具体位置\n\t\tjf.setIconImage(icon); //设置窗口的logo\n\n label_initial_title = new JLabel(\" 图书馆人脸借阅系统\"); \n label_initial_title.setFont(new Font(\"黑体\", Font.BOLD, 50));\n label_initial_title.setForeground(Color.white);\n label_initial_title.setBounds(0, 0, (int) (Toolkit.getDefaultToolkit().getScreenSize().width), (int) (Toolkit.getDefaultToolkit().getScreenSize().height * 0.2));\n label_initial_title.setOpaque(true);\n \n\t\tInitialView i1=new InitialView(jf,label_initial_title);\n\t}", "public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\txemBDFrame frame = new xemBDFrame();\n\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t}\n\t\t});\n\t}", "public static void main(String[] args)\n {\n EventQueue.invokeLater(() ->\n {\n try\n {\n App app = new App();\n app.frame.setVisible(true);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n });\n }", "public static void main(String[] args) {\n star frame = new star();\n frame.setSize(1000, 1000);\n frame.createGUI();\n frame.setVisible(true);\n frame.setResizable(false);\n }", "private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}", "public void run() {\n\t\t\t\ttry {\r\n\t\t\t\t\tWindo frame = new Windo();\r\n\t\t\t\t\tframe.setVisible(true);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "public static void main(String[] args) {\n Frame testFrame = new MyGUIProgram();\n testFrame.setVisible(true);\n \n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 640, 480);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJDesktopPane desktopPane = new JDesktopPane();\t\t//Creates desktop pane\n\t\tdesktopPane.setBounds(-7, -30, 640, 480);\t\t\t// Sets location to be outside of window\n\t\tframe.getContentPane().add(desktopPane);\t\t\t// adds desktop pane to frame\n\t\t\n//\t\tMainMenu MainMenu = new MainMenu();\t\t// Creates new MainMenu\n//\t\tMainMenu.setVisible(true);\t\t\t\t// Sets MainMenu Visible\n//\t\tdesktopPane.add(MainMenu);\t\t\t\t// Adds MainMenu to DesktopPane\n\t\t\n\t\t\n\t\t MainMenu nw = MainMenu.getInstance();\n\t\t nw.pack();\n//\t\t if (nw.isVisible()) {\n//\t\t } else {\n\t\t\tnw.setBounds(100, 100, 400, 200);\n\t\t desktopPane.add(nw);\n\t\t nw.setVisible(true);\n\t\t \n//\t\t }\n\t\t try {\n\t\t nw.setMaximum(true);\n\t\t } catch (Exception e1) {\n\t\t \tSystem.out.println(e1);\n\t\t }\n\t}", "public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tStartingFrame window = new StartingFrame();\n\t\t\t\t\twindow.frame.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 621, 453);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblBlackjackVersion = new JLabel(\"BlackJack Version .01\");\r\n\t\tlblBlackjackVersion.setFont(new Font(\"Tahoma\", Font.PLAIN, 29));\r\n\t\tlblBlackjackVersion.setBounds(155, 55, 305, 59);\r\n\t\tframe.getContentPane().add(lblBlackjackVersion);\r\n\t\t\r\n\t\tJButton btnStart = new JButton(\"Start\");\r\n\t\tbtnStart.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tkontroll1.start();\r\n\t\t\t\t\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnStart.setBackground(Color.WHITE);\r\n\t\tbtnStart.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\r\n\t\tbtnStart.setToolTipText(\"Start Blackjack\");\r\n\t\tbtnStart.setBounds(201, 185, 163, 47);\r\n\t\tframe.getContentPane().add(btnStart);\r\n\t}", "public static void main(String[] args) {\n // Create the system.\n Application.launch( args );\n }", "public void run()\r\n\t{\r\n\t\tthis.mainFrame.setVisible(true);\r\n\t}", "public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }", "public void run ()\r\n {\r\n JFrame f = new JFrame(\"RuneScape Tower Defense\");\r\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n f.setContentPane(this);\r\n f.pack();\r\n f.setLocationRelativeTo(null); // Centers window\r\n f.setVisible(true);\r\n f.setResizable(true);\r\n }", "private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(500, 500);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tResultLeftView view = new ResultLeftView();\n\t\tframe.setContentPane(view);\n\t\t//Display the window.\n\t\tframe.setVisible(true);\n\t}", "public void run() {\n\t\tframe.setVisible(true);\n\t}", "public static void main( String[] args )\n {\n\n new Frame();\n new ThreeDiceApp();\n }", "public static void main(String[] args) {\n new GameJFrame();\n // new DigitalWatch();\n }", "public static void main(String[] args) {\n new MainFrameClass();\n\n }" ]
[ "0.77221966", "0.7671566", "0.7566642", "0.7010743", "0.6786391", "0.6758449", "0.6731484", "0.6725848", "0.6674147", "0.6652964", "0.66313213", "0.6585902", "0.6559991", "0.6493677", "0.6491634", "0.6486364", "0.647283", "0.64501333", "0.64120126", "0.6390849", "0.63699013", "0.636589", "0.6352261", "0.6346094", "0.63384086", "0.63377225", "0.6337364", "0.633531", "0.6329281", "0.63245785", "0.63233244", "0.632269", "0.6309959", "0.6303441", "0.62981606", "0.6296862", "0.6296343", "0.6295169", "0.62852764", "0.6282843", "0.6281579", "0.6278789", "0.6277473", "0.6270371", "0.62631536", "0.6261104", "0.62610924", "0.6257204", "0.6245285", "0.624442", "0.62405276", "0.62237835", "0.6215245", "0.62102205", "0.6207855", "0.6205158", "0.6205095", "0.61996543", "0.6195072", "0.619468", "0.6188111", "0.61815035", "0.6175251", "0.6173359", "0.6173076", "0.61724865", "0.6167241", "0.6163714", "0.61552507", "0.6153186", "0.6151934", "0.61427826", "0.6142132", "0.6141434", "0.61389124", "0.6135928", "0.61348534", "0.61247265", "0.6124698", "0.61123335", "0.61030674", "0.6094168", "0.6088542", "0.60885274", "0.6084615", "0.60843205", "0.6072453", "0.6070473", "0.607031", "0.6067388", "0.60598594", "0.60588086", "0.60514474", "0.6050569", "0.6042391", "0.6040187", "0.60273904", "0.6025844", "0.60247785", "0.6021724", "0.60180277" ]
0.0
-1