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
Sets up the GUI for the server.
private void setup() { JTextArea jta = new JTextArea(); setLayout(new BorderLayout()); add(new JScrollPane(jta), BorderLayout.CENTER); setTitle(SERVER_NAME); jta.setEditable(false); setSize(500, 300); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); jta.append(new Date().toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ServerGUI() {\n\t\t\n\t\tinitialize();\n\n\t}", "private void setUpGUI()\n\t{\n\t\tgetContentPane().setLayout(new BorderLayout());\n\n\t\t//center panel (project and developer dropdown lists, and state of\n\t\t//server label)\n\t\tJPanel centerPanel = new JPanel();\n\t\tcenterPanel.setLayout(new GridLayout(3, 2));\n\n\t\tcenterPanel.add(new JLabel(\"Choose a project\"));\n\t\tprojectsComboBox = new JComboBox<String>(selectADBString);\n\t\tcenterPanel.add(projectsComboBox);\n\n\t\tcenterPanel.add(new JLabel(\"Choose a developer group\"));\n\t\tdevNamesComboBox = new JComboBox<String>(selectADBString);\n\t\tcenterPanel.add(devNamesComboBox);\n\n\t\tstateOfServerLabel = new JLabel(\"The server is NOT running\");\n\t\tcenterPanel.add(stateOfServerLabel);\n\n\t\tgetContentPane().add(centerPanel, BorderLayout.CENTER);\n\n\t\t//south panel (start the server)\n\t\tJPanel southPanel = new JPanel();\n\t\tsouthPanel.setLayout(new FlowLayout());\n\n\t\tstartStopServerButton = new JButton(START_SERVER_BUTTON_TEXT);\n\t\tstartStopServerButton.addActionListener(this);\n\n\t\topenPlaybackInBrowserCheckbox = new JCheckBox(\"Open the playback in the browser?\");\n\n\t\tsouthPanel.add(startStopServerButton);\n\t\tsouthPanel.add(openPlaybackInBrowserCheckbox);\n\n\t\tgetContentPane().add(southPanel, BorderLayout.SOUTH);\n\n\t\t//create the north panel by looking for the last used db file\n\t\tJPanel northPanel = createNorthPanel();\n\n\t\tgetContentPane().add(northPanel, BorderLayout.NORTH);\n\n\t\t//window controls\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetSize(800, 250);\n\t\tsetVisible(true);\n\t}", "private void setupGUI() {\r\n\t\tPaperToolkit.initializeLookAndFeel();\r\n\t\tgetMainFrame();\r\n\t}", "public ConnectToServerGUI() {\n super(\"Connect to Server\");\n initComponents();\n setVisible(true);\n }", "public KKServerGui(){\n\t\t\n\t\tsuper(\"Knock Knock Server\");\n\t\t\t\t\n\t\tloadData();\n\t\torganizeUI();\n\t\taddListeners();\n\t\t\t\n\t\tsetDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);\n\t}", "public void createAndShowGUI() {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n super.windowClosing(e);\n System.out.println(\"closing server...\");\n }\n });\n this.addComponentsToPane(this.getContentPane());\n this.pack();\n this.centreFrameInScreen();\n this.setVisible(true);\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJTextPane txtpnDictionaryServer = new JTextPane();\n\t\ttxtpnDictionaryServer.setText(\"Dictionary Server\");\n\t\ttxtpnDictionaryServer.setForeground(Color.WHITE);\n\t\ttxtpnDictionaryServer.setFont(new Font(\"American Typewriter\", Font.PLAIN, 20));\n\t\ttxtpnDictionaryServer.setBackground(new Color(25, 25, 112));\n\t\ttxtpnDictionaryServer.setBounds(0, 0, 231, 62);\n\t\tframe.getContentPane().add(txtpnDictionaryServer);\n\t\t\n\t\tJTextPane author = new JTextPane();\n\t\tauthor.setText(\" created by: Christina Xu\");\n\t\tauthor.setForeground(Color.LIGHT_GRAY);\n\t\tauthor.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 12));\n\t\tauthor.setBackground(new Color(25, 25, 112));\n\t\tauthor.setBounds(230, 0, 220, 62);\n\t\tframe.getContentPane().add(author);\n\t\t\n\t\tJTextPane addressPane = new JTextPane();\n\t\taddressPane.setText(\"address:\");\n\t\taddressPane.setBackground(SystemColor.window);\n\t\taddressPane.setBounds(25, 90, 56, 21);\n\t\tframe.getContentPane().add(addressPane);\n\t\t\n\t\taddressField = new JTextField();\n\t\taddressField.setColumns(10);\n\t\taddressField.setBounds(81, 85, 130, 26);\n\t\tframe.getContentPane().add(addressField);\n\t\t\n\t\tJTextPane textPane_2 = new JTextPane();\n\t\ttextPane_2.setText(\"port:\");\n\t\ttextPane_2.setBackground(SystemColor.window);\n\t\ttextPane_2.setBounds(264, 90, 37, 21);\n\t\tframe.getContentPane().add(textPane_2);\n\t\t\n\t\tportField = new JTextField();\n\t\tportField.setColumns(10);\n\t\tportField.setBounds(297, 85, 130, 26);\n\t\tframe.getContentPane().add(portField);\n\t\t\n\t\t//when the connect button is pressed, the server will be ready.\n\t\tbtnConnect = new JButton(\"Connect\");\n\t\tbtnConnect.addActionListener(new ConnectActionListener());\n\t\tbtnConnect.setBounds(62, 152, 149, 29);\n\t\tframe.getContentPane().add(btnConnect);\n\t\t\n\t\t//when the disconnect button is pressed, the server will be unavailable.\n\t\tbtnDisconnect = new JButton(\"Disconnect\");\n\t\tbtnDisconnect.addActionListener(new DisconnectActionListener()); \n\t\tbtnDisconnect.setBounds(264, 152, 149, 29);\n\t\tframe.getContentPane().add(btnDisconnect);\n\t\t\n\t\tJTextPane filePane = new JTextPane();\n\t\tfilePane.setText(\"filePath:\");\n\t\tfilePane.setBackground(SystemColor.window);\n\t\tfilePane.setBounds(25, 200, 56, 21);\n\t\tframe.getContentPane().add(filePane);\n\t\t\n\t\tfileField = new JTextField();\n\t\t//set default path of the dictionary\n\t\tfileField.setText(PATH);\n\t\tfileField.setColumns(10);\n\t\tfileField.setBounds(81, 200, 300, 26);\n\t\tframe.getContentPane().add(fileField);\n\t\t\n\t\t\n\t}", "public void setupServerSettings() {\r\n\t\tmnuServerSettings.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew EmailSettingsGUI();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private static void initAndShowGUI() {\n }", "public ServerGUI() {\n initComponents();\n setVisible(true);\n user.append(\"Máy chủ đã được mở\\n\");\n }", "public static void initializeServer() {\n\t\tServer.initializeServerGUI();\n\t}", "public NewSessionGui() {\n initComponents();\n client = new HttpBraimClient();\n setLocationRelativeTo(null);\n }", "public void gui() {\n\t\tint WIDTH = 400;\n\t\tint HEIGHT = 400;\n\t\tJTabbedPane tab = new JTabbedPane();\n\t\tsetTitle(\"Server Information\");\n\t\tsetSize(WIDTH, HEIGHT);\n\n\t\tpanelClient = new JPanel();\n\t\tpanelClient.setSize(getWidth(), getHeight());\n\t\tpanelClient.setLayout(null);\n\n\t\tpanelServer = new JPanel();\n\t\tpanelServer.setSize(getWidth(), getHeight());\n\t\tpanelServer.setLayout(null);\n\n\t\t// TextArea for server\n\t\ttextAreaMain = new JTextArea();\n\t\ttextAreaMain.setEditable(false);\n\t\ttextAreaMain.setSize(getWidth(), getHeight());\n\n\t\t// TextArea for clients\n\t\ttextClient = new JTextArea();\n\t\ttextClient.setEditable(false);\n\t\ttextClient.setSize(getWidth(), getHeight());\n\n\t\t// Scrolepane for clients\n\t\tJScrollPane spClient = new JScrollPane(textClient,\n\t\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\t\tspClient.setSize(getWidth(), HEIGHT);\n\t\tspClient.setLocation(0, 0);\n\t\tpanelClient.add(spClient);\n\n\t\t// Scrolepane for server\n\t\tJScrollPane spMain = new JScrollPane(textAreaMain,\n\t\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\t\tspMain.setSize(getWidth(), getHeight());\n\t\tspMain.setLocation(0, 0);\n\t\tpanelServer.add(spMain);\n\n\t\ttab.add(\"Server\", panelServer);\n\t\ttab.add(\"Client\", panelClient);\n\t\tadd(tab, BorderLayout.CENTER);\n\t\tsetVisible(true);\n\t\tsetResizable(false);\n\t\tsetDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\taddWindowListener(new WindowAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tserver.close();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "protected void initializeGUI() {\n\n\t}", "public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.add(new GuiButton(1, this.width / 2 - 100, var4 + 24 * 1, \"Offline Mode\"));\n this.controlList.add(new GuiButton(2, this.width / 2 - 100, var4, \"Online Mode\"));\n\n this.controlList.add(new GuiButton(3, this.width / 2 - 100, var4 + 48, var2.translateKey(\"menu.mods\")));\n\t\tthis.controlList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.options\")));\n\t\tthis.controlList.add(new GuiButton(4, this.width / 2 + 2, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.quit\")));\n this.controlList.add(new GuiButtonLanguage(5, this.width / 2 - 124, var4 + 72 + 12));\n }", "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 ServerForm() throws Exception {\n myServer = new Server(2525);\n\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Não foi possível alterar o LookAndFeel: \" + e);\n }\n setResizable(false);\n initComponents();\n }", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "private void setGUI()\r\n\t{\r\n\t\tbubblePB = setProgressBar(bubblePB);\r\n\t\tinsertionPB = setProgressBar(insertionPB);\r\n\t\tmergePB = setProgressBar(mergePB);\r\n\t\tquickPB = setProgressBar(quickPB);\r\n\t\tradixPB = setProgressBar(radixPB);\r\n\t\t\r\n\t\tsetLabels();\r\n\t\tsetPanel();\r\n\t\tsetLabels();\r\n\t\tsetFrame();\r\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 800, 600);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\tJSplitPane splitPane = new JSplitPane();\r\n\t\tsplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);\r\n\t\tframe.getContentPane().add(splitPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tJPanel control_panel = new JPanel();\r\n\t\tsplitPane.setLeftComponent(control_panel);\r\n\t\tcontrol_panel.setLayout(new GridLayout(1, 0, 0, 0));\r\n\t\t\r\n\t\tJLabel lblUsername = new JLabel(\"Username: \");\r\n\t\tcontrol_panel.add(lblUsername);\r\n\t\t\r\n\t\ttxtUsername = new JTextField();\r\n\t\ttxtUsername.setText(\"User\");\r\n\t\tcontrol_panel.add(txtUsername);\r\n\t\ttxtUsername.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblServerIP = new JLabel(\"Server IP: \");\r\n\t\tcontrol_panel.add(lblServerIP);\r\n\t\t\r\n\t\ttxtServerIP = new JTextField();\r\n\t\ttxtServerIP.setToolTipText(\"IP Address to server\");\r\n\t\ttxtServerIP.setText(\"127.0.0.1\");\r\n\t\tcontrol_panel.add(txtServerIP);\r\n\t\ttxtServerIP.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblServerPort = new JLabel(\"Server Port: \");\r\n\t\tcontrol_panel.add(lblServerPort);\r\n\t\t\r\n\t\ttxtServerPort = new JTextField();\r\n\t\ttxtServerPort.setText(\"4242\");\r\n\t\tcontrol_panel.add(txtServerPort);\r\n\t\ttxtServerPort.setColumns(10);\r\n\t\t\r\n\t\tJButton btnConnect = new JButton(\"Connect\");\r\n\t\tbtnConnect.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tInetAddress ipAddress = InetAddress.getByName(txtServerIP.getText().trim());\r\n\t\t\t\t\tint port = Integer.parseInt(txtServerPort.getText().trim());\r\n\t\t\t\t\tString username = txtUsername.getText().trim();\r\n\t\t\t\t\tclient = new Client(new Socket(ipAddress, port), username, currentInstance);\r\n\t\t\t\t\tupdateStatus(\"Attempting to connect to \"+txtServerIP.getText().trim()+\"\\n\");\r\n\t\t\t\t} catch (ConnectException ex) {\r\n\t\t\t\t\tupdateStatus(\"ERROR: Could not connect to specified address/port pair.\\n\");\r\n\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tif (client.isConnected()) {\r\n\t\t\t\t\tupdateStatus(\"Connected to \"+txtServerIP.getText().trim()+\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tcontrol_panel.add(btnConnect);\r\n\t\t\r\n\t\tJSplitPane messages_splitPane = new JSplitPane();\r\n\t\tmessages_splitPane.setResizeWeight(0.9);\r\n\t\tmessages_splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);\r\n\t\tsplitPane.setRightComponent(messages_splitPane);\r\n\t\t\r\n\t\tJPanel messagedisplay_panel = new JPanel();\r\n\t\tmessages_splitPane.setLeftComponent(messagedisplay_panel);\r\n\t\tmessagedisplay_panel.setLayout(new BorderLayout(0, 0));\r\n\t\t\r\n\t\tJSplitPane messagedisplay_splitPane = new JSplitPane();\r\n\t\tmessagedisplay_splitPane.setResizeWeight(0.78);\r\n\t\tmessagedisplay_splitPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\r\n\t\tmessagedisplay_panel.add(messagedisplay_splitPane);\r\n\t\t\r\n\t\t\r\n\t\ttxtpnMessages = new JTextPane();\r\n\t\ttxtpnMessages.setText(\" \");\r\n\t\tscrlpnMessages = new JScrollPane(txtpnMessages);\r\n\t\tmessagedisplay_splitPane.setLeftComponent(scrlpnMessages);\r\n\t\t\r\n\t\tclientList = new JList<String>();\r\n\t\tmessagedisplay_splitPane.setRightComponent(clientList);\r\n\t\t\r\n\t\tJPanel messageEntry_panel = new JPanel();\r\n\t\tmessages_splitPane.setRightComponent(messageEntry_panel);\r\n\t\tmessageEntry_panel.setLayout(new BorderLayout(0, 0));\r\n\t\t\r\n\t\tJSplitPane messageEntry_splitPane = new JSplitPane();\r\n\t\tmessageEntry_splitPane.setResizeWeight(0.8);\r\n\t\tmessageEntry_panel.add(messageEntry_splitPane);\r\n\t\t\r\n\t\ttxtUserInput = new JTextField();\r\n\t\ttxtUserInput.setText(\"Type your message here.\");\r\n\t\tmessageEntry_splitPane.setLeftComponent(txtUserInput);\r\n\t\ttxtUserInput.setColumns(10);\r\n\t\ttxtUserInput.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t//TODO: send message to the server\r\n\t\t\t\tclient.sendMessage(txtUserInput.getText().trim());\r\n\t\t\t\ttxtUserInput.setText(\"\");\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJButton btnSend = new JButton(\"Send\");\r\n\t\tbtnSend.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t//TODO: send message to the server\r\n\t\t\t\tclient.sendMessage(txtUserInput.getText().trim()+\".\");\r\n\t\t\t\ttxtUserInput.setText(\"\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tmessageEntry_splitPane.setRightComponent(btnSend);\r\n\t}", "private void initGUI() {\r\n\t\tsetTitle(\"Clients\");\r\n\t\tsetPreferredSize(new Dimension(800, 600));\r\n\t\t\r\n\t\t// buttons\r\n\t\tJButton btnFind = new JButton(\"Find\");\r\n\t\tbtnFind.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tcontroller.filter();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJButton btnAddClient = new JButton(\"Add Client\"); \r\n\t\tbtnAddClient.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tcontroller.addClient();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\tJButton btnRefresh = new JButton(\"Refresh\");\r\n\t\tbtnRefresh.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tcontroller.refresh();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// toolbar\r\n\t\tlblSession = new JLabel();\r\n\t\tlblSession.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\t\r\n\t\tJToolBar toolbar = new JToolBar();\r\n\t\ttoolbar.add(btnFind);\r\n\t\ttoolbar.add(btnAddClient);\r\n\t\ttoolbar.add(btnRefresh);\r\n\t\ttoolbar.add(Box.createHorizontalGlue());\r\n\t\ttoolbar.add(lblSession);\r\n\t\tadd(toolbar, BorderLayout.NORTH);\r\n\t\t\r\n\t\t// table\r\n\t\ttblInventory = new JTable();\r\n\t\ttblInventory.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\t\r\n\t\tadd(new JScrollPane(tblInventory), BorderLayout.CENTER);\r\n\t\t\r\n\t\tpack();\r\n\t\tsetLocationRelativeTo(null);\r\n\t}", "public ClientGUI() {\n initComponents();\n }", "public ClientGUI() {\n initComponents();\n }", "public mainGUI() {\n initComponents();\n setSize(Toolkit.getDefaultToolkit().getScreenSize());\n }", "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}", "public GUI() {\n initComponents();\n this.setVisible(true);\n }", "public BBDJPAAdminGUI() {\n initComponents();\n\n myInit();\n }", "void initGUI(){\n\t\t// use border layout for our main frame\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t// create a new TitlePage and add it to the GUI. This is initially the only instantiated item\n\t\ttitlePage = new TitlePage(this);\n\t\tadd(titlePage);\n\t\t\n\t\tsetBackground( new Color(30, 130, 76) );\t// set a green background\n\t\tsetResizable(false); \t\t\t\t\t\t// User can't change the window's size.\n\t\tsetDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\t// exit when we close\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\t\t\t\t\t// set size of JFrame\n\t\t// set it to visible\n\t\tsetVisible(true);\n\t}", "public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }", "private void initializeGUI() {\n\n\t\t// system's main frame and its properties\n\t\tframeSystem = new JFrame(\"NBodies System Configuration\");\n\t\tframeSystem.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframeSystem.setResizable(false);\n\t\tframeSystem.setBackground(Color.white);\n\n\t\t// number of bodies controls and their properties\n\t\tlblNBodies = new JLabel(\" Insert the system bodies's number: \");\n\t\tlblNBodies.setAlignmentX(JLabel.CENTER_ALIGNMENT);\n\t\ttxtNBodies = new JTextField(\"0\");\n\t\ttxtNBodies.setAlignmentX(JTextField.CENTER_ALIGNMENT);\n\n\t\t// time controls and their properties\n\t\tlblTime = new JLabel(\" Insert the system's evolution time: \");\n\t\tlblTime.setAlignmentX(JLabel.CENTER_ALIGNMENT);\n\t\ttxtTime = new JTextField(\"0\");\n\t\ttxtTime.setAlignmentX(JTextField.CENTER_ALIGNMENT);\n\n\t\t// number of bodies console and its properties and internal controls\n\t\tnumberBodiesControlConsole = new JPanel();\n\t\tnumberBodiesControlConsole.setBounds(0, 0, 550, 28);\n\t\tnumberBodiesControlConsole.setBackground(Color.white);\n\t\tLayoutManager numberLayout = new BorderLayout();\n\t\tnumberBodiesControlConsole.setLayout(numberLayout);\n\t\tnumberBodiesControlConsole.add(lblNBodies, BorderLayout.WEST);\n\t\tnumberBodiesControlConsole.add(txtNBodies, BorderLayout.CENTER);\n\n\t\t// time console and its properties and internal controls\n\t\ttimeControlConsole = new JPanel();\n\t\ttimeControlConsole.setBounds(0, 28, 550, 30);\n\t\ttimeControlConsole.setBackground(Color.white);\n\t\tLayoutManager timeLayout = new BorderLayout();\n\t\ttimeControlConsole.setLayout(timeLayout);\n\t\ttimeControlConsole.add(lblTime, BorderLayout.WEST);\n\t\ttimeControlConsole.add(txtTime, BorderLayout.CENTER);\n\n\t\t// start and communication console and its properties and internal\n\t\t// controls\n\t\tstartAndCommunicationConsole = new JPanel();\n\t\tstartAndCommunicationConsole.setBounds(0, 56, 550, 58);\n\t\tstartAndCommunicationConsole.setBackground(Color.white);\n\t\tLayoutManager startLayout = new BorderLayout();\n\t\tstartAndCommunicationConsole.setLayout(startLayout);\n\n\t\t// master panel and its layout's properties\n\t\tmasterPanel = new JPanel();\n\t\tmasterPanel.setLayout(null);\n\t\tmasterPanel.add(numberBodiesControlConsole);\n\t\tmasterPanel.add(timeControlConsole);\n\t\tmasterPanel.add(startAndCommunicationConsole);\n\n\t\t// button to start the n-bodies system and its properties\n\t\tbtnStartSystem = new JButton(\"Start the n-bodies system\");\n\t\tstartAndCommunicationConsole.add(btnStartSystem, BorderLayout.CENTER);\n\n\t\tbtnOpenFileConfig = new JButton(\n\t\t\t\t\"Start System from a Configuration File\");\n\t\tSystemConfigurationViewController controller = new SystemConfigurationViewController(\n\t\t\t\tthis);\n\t\tstartAndCommunicationConsole.add(btnOpenFileConfig, BorderLayout.NORTH);\n\t\tbtnOpenFileConfig.addActionListener(controller\n\t\t\t\t.getChooseConfigurationFileListener());\n\t\tbtnStartSystem.addActionListener(controller.getStartListener());\n\n\t\t// view's main frame and its properties\n\t\tframeSystem.setContentPane(masterPanel);\n\n\t\t// label to show errors and its properties\n\t\tlblCommunication = new JLabel(\n\t\t\t\t\" Please insert the n-bodies system's configuration values.\");\n\t\tlblCommunication.setBounds(0, 114, 550, 36);\n\t\tmasterPanel.add(lblCommunication);\n\t\tlblCommunication.setAlignmentX(JLabel.CENTER_ALIGNMENT);\n\t\tlblCommunication.setForeground(Color.BLUE);\n\t\tframeSystem.setSize(new Dimension(550, 181));\n\t\tframeSystem.setLocationRelativeTo(null);\n\t\tframeSystem.setVisible(true);\n\t}", "public GUI() {\n\t\tinitComponents();\n\t}", "public void setupGUI() {\t\n\t\t\n\t\t// Menu Frame\n\t\tmenuFrame = new JFrame();\n\t\t\n\t\t// ContentPane\n\t\tmenuFrame.getContentPane().setEnabled(false);\n\t\tmenuFrame.setBounds(100, 100, 1000, 680);\n\t\tmenuFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tmenuFrame.getContentPane().setLayout(null);\t\n\t\t\n\t\t// Label username\n\t\tusernameLabel = new JLabel(\"Username:\");\n\t\tusernameLabel.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tusernameLabel.setBounds(58, 80, 117, 35);\n\t\tmenuFrame.getContentPane().add(usernameLabel);\n\t\t\n\t\t// Label password\n\t\tpasswordLabel = new JLabel(\"Password:\");\n\t\tpasswordLabel.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tpasswordLabel.setBounds(357, 77, 122, 41);\n\t\tmenuFrame.getContentPane().add(passwordLabel);\n\t\t\n\t\t// Textfield for username\n\t\tusernameTextField = new JTextField();\n\t\tusernameTextField.setBounds(159, 88, 169, 19);\n\t\tmenuFrame.getContentPane().add(usernameTextField);\n\t\tusernameTextField.setColumns(10);\n\t\t\n\t\t// Passwordfield for password\n\t\tpasswordField = new JPasswordField();\n\t\tpasswordField.setBounds(447, 88, 169, 19);\n\t\tmenuFrame.getContentPane().add(passwordField);\n\t\t\n\t\t// Label currently logged in as\n\t\tcurrentUserLabel = new JLabel(\"You are currently logged in as an anonymous Player\");\n\t\tcurrentUserLabel.setFont(new Font(\"Dialog\", Font.BOLD, 18));\n\t\tcurrentUserLabel.setBounds(12, 12, 580, 33);\n\t\tmenuFrame.getContentPane().add(currentUserLabel);\n\t\t\n\t\t// Button login\n\t\tloginButton = new JButton(\"Login\");\n\t\tloginButton.addActionListener(new ActionListener() {\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString name = usernameTextField.getText();\n\t\t\t\tString password = passwordField.getText();\t\n\t\t\t\t\n\t\t\t\tif(login(name, password)) {\n\t\t\t\t\tisLoggedIn = true;\n\t\t\t\t\tplayerName = name;\n\t\t\t\t\tJOptionPane.showMessageDialog(menuFrame, \"your login was successful\");\n\t\t\t\t\tcurrentUserLabel.setText(\"You are currently logged in as \" + playerName);\n\n\t\t\t\t\tupdateSetupGUI();\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid username or password\", \"Login Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\tpasswordField.setText(null);\n\t\t\t\t\tusernameTextField.setText(null);\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t\tloginButton.setBounds(277, 130, 117, 25);\n\t\tmenuFrame.getContentPane().add(loginButton);\n\t\t\n\t\t// Sperator\n\t\tseparator_2 = new JSeparator();\n\t\tseparator_2.setBounds(12, 57, 604, 11);\n\t\tmenuFrame.getContentPane().add(separator_2);\n\t\t\n\t\t// Button create account\n\t\tcreateAccountButton = new JButton(\"Create Account\");\n\t\tcreateAccountButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString newUser = JOptionPane.showInputDialog(\"Enter your user name:\");\n\t\t\t\tString newPassword1 = JOptionPane.showInputDialog(\"Enter your password:\");\n\t\t\t\tString newPassword2 = JOptionPane.showInputDialog(\"Enter your password again\");\n\t\t\t\t\n\t\t\t\tif (newPassword1.contentEquals(newPassword2)) {\n\t\t\t\t\tcreateAccount(newUser, newPassword1);\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(menuFrame, \"Your passwords do not match\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcreateAccountButton.setBounds(406, 587, 186, 25);\n\t\tmenuFrame.getContentPane().add(createAccountButton);\n\t\t\n\t\t// Seperator\n\t\tseparator_1 = new JSeparator();\n\t\tseparator_1.setBounds(12, 518, 965, 11);\n\t\tmenuFrame.getContentPane().add(separator_1);\n\t\t\n\t\t// Label create account\n\t\tcreateAccountLabel = new JLabel(\"if you dont have an account yet, feel free to create one, to save your current Game\");\n\t\tcreateAccountLabel.setFont(new Font(\"Dialog\", Font.BOLD, 13));\n\t\tcreateAccountLabel.setBounds(203, 549, 685, 15);\n\t\tmenuFrame.getContentPane().add(createAccountLabel);\n\t\t\n\t\t// Label for all games\n\t\tselectGameLabel = new JLabel(\"You can play one of the following games\");\n\t\tselectGameLabel.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tselectGameLabel.setBounds(12, 242, 348, 15);\n\t\tmenuFrame.getContentPane().add(selectGameLabel);\n\t\t\n\t\t// Button play chess\n\t\tplayChessButton = new JButton(\"Play Chess\");\n\t\tplayChessButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tdos.writeUTF(\"<Gamemode=Chess>\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tplayChessButton.setBounds(413, 232, 117, 41);\n\t\tmenuFrame.getContentPane().add(playChessButton);\n\t\t\n\t\t// Button play mill\n\t\tplayMillButton = new JButton(\"Play Mill\");\n\t\tplayMillButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tdos.writeUTF(\"<Gamemode=Mill>\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tplayMillButton.setBounds(646, 229, 117, 44);\n\t\tmenuFrame.getContentPane().add(playMillButton);\n\t\t\n\t\t// Label restore Game\n\t\trestoreGameLabel = new JLabel(\"Or you can restore your latest game\");\n\t\trestoreGameLabel.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\trestoreGameLabel.setBounds(12, 350, 316, 15);\n\t\tmenuFrame.getContentPane().add(restoreGameLabel);\n\t\t\n\t\t// Button restore Game\n\t\trestoreGameButton = new JButton(\"Restore Game\");\n\t\trestoreGameButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t//TODO restore latest game from database\n\t\t\t}\n\t\t});\n\t\trestoreGameButton.setBounds(413, 337, 155, 41);\n\t\tmenuFrame.getContentPane().add(restoreGameButton);\n\t\t\n\t\t// Window Listener for Closing\n\t\tmenuFrame.addWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdos.writeUTF(\"<Connectionstatus=Exit>\");\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\te.getWindow().dispose();\n\t\t\t}\n\t\t});\n\t\n\t\tupdateSetupGUI();\n\t\tmenuFrame.setVisible(true);\n\t}", "public DesktopGUI() {\n initComponents();\n }", "public void initGui() {\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tGuiWindow window = new GuiWindow(Controller.this);\r\n\t\t\t\t\tlinkedGuiWindow = window;\r\n\t\t\t\t\twindow.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}\r\n\t\t});\r\n\t}", "private void initGUI() {\n statusLabel = new JLabel();\n add(statusLabel);\n updateStatus();\n }", "private void setupGUI() {\r\n\t\tnetPaintClient = new NetPaintClient(out, clientName);\t\r\n\t\tnetPaintClient.addWindowListener(new WindowAdapter(){\r\n\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\t\t\ttry {\r\n\t\t\t\tout.writeObject(new DisconnectCommand(clientName));\r\n\t\t\t\tout.close();\r\n\t\t\t\tin.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\t}", "public static void setupGUI() {\n\t\t\n\t\t//My GUI Frame\n\t\tJFrame GUIframe = new JFrame(\"ChatBot Conversation GUI\");\n\t\tGUIframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tGUIframe.setSize(800,400);\n\t\t\n\t\t//GUI Panel Setup\n\t\tJPanel panel1 = new JPanel();\n\t\tJButton enter = new JButton(\"Enter\");\n\t\t\n\t\t//Listener for the Submit button\n\t\tenter.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString newUserInput = (myTextField.getText()).trim();\n\t\t\t\t\n\t\t\t\tif(newUserInput.length()>=1){\n\t\t\t\t\tagent.execute(conversation, newUserInput);\n\t\t\t\t\tmyTextField.setText(\"\");\n\t\t\t\t}\t\n\t\t\t}\n\t\t});\n\t\t//Listener to enable users to press Enter into the textfield\n\t\tmyTextField.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString newUserInput = (myTextField.getText()).trim();\n\t\t\t\t\n\t\t\t\tif(newUserInput.length()>=1){\n\t\t\t\t\tagent.execute(conversation, newUserInput);\n\t\t\t\t\tmyTextField.setText(\"\");\n\t\t\t\t}\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tpanel1.add(myTextField);\n\t\tpanel1.add(enter);\n\t\t\n\t\t//JTextArea chat = new JTextArea();\n\t\tchat.setEditable(false);\n\t\tJScrollPane letsScroll = new JScrollPane(chat);\n\t\t\n\t\tGUIframe.getContentPane().add(BorderLayout.SOUTH, panel1);\n\t\t//GUIframe.getContentPane().add(BorderLayout.CENTER, chat);\n\t\tGUIframe.getContentPane().add(BorderLayout.CENTER, letsScroll);\n\t\tGUIframe.setVisible(true);\t\n\n\t\t\n\t}", "@Override\r\n protected void start() throws StartException {\n\r\n if (!Main.INIT_COMPLETE.isReached()) startServer();\r\n new EDTRunner() {\r\n\r\n @Override\r\n protected void runInEDT() {\r\n initGUI();\r\n }\r\n };\r\n\r\n }", "public MainGui() {\n initComponents();\n this.setVisible(true);\n configuracoesSalvas();\n }", "private void setUpGUI() {\r\n\r\n\t\t// All the components to the panel\r\n\t\tuserName = new JTextField();\r\n\t\tpassword = new JPasswordField();\r\n\t\tuserNameLabel = new JLabel(\"UserName\");\r\n\t\tpasswordLabel = new JLabel(\"Password\");\r\n\t\tloginButton = new JButton(\"Login\");\r\n\t\tregisterButton = new JButton(\"Register\");\r\n\r\n\t\t// Null layout for custom layout\r\n\t\tthis.setLayout(null);\r\n\r\n\t\t// Sets the size and location of all the labels, fields, and buttons\r\n\t\tuserNameLabel.setLocation(labelXLocation, labelYLocation);\r\n\t\tuserNameLabel.setSize(labelXSize, labelYSize);\r\n\r\n\t\tuserName.setLocation(labelXLocation + xFieldOffset, labelYLocation);\r\n\t\tuserName.setSize(textFieldXSize, textFieldYSize);\r\n\r\n\t\tpasswordLabel.setLocation(labelXLocation, labelYLocation + labelYSize\r\n\t\t\t\t+ buffer);\r\n\t\tpasswordLabel.setSize(labelXSize, labelYSize);\r\n\r\n\t\tpassword.setLocation(labelXLocation + xFieldOffset, labelYLocation\r\n\t\t\t\t+ yFieldOffset);\r\n\t\tpassword.setSize(textFieldXSize, textFieldYSize);\r\n\r\n\t\tloginButton.setLocation(labelXLocation, labelYLocation + labelYSize\r\n\t\t\t\t+ textFieldYSize + buffer * 3);\r\n\t\tloginButton.setSize(xButtonSize, yButtonSize);\r\n\r\n\t\tregisterButton.setLocation(labelXLocation + xFieldOffset + buffer\r\n\t\t\t\t+ buffer, labelYLocation + labelYSize + textFieldYSize + buffer\r\n\t\t\t\t* 3);\r\n\t\tregisterButton.setSize(xButtonSize, yButtonSize);\r\n\r\n\t\t\r\n\t\t// Adds everything to the panel\r\n\t\tthis.add(userNameLabel);\r\n\t\tthis.add(userName);\r\n\t\tthis.add(passwordLabel);\r\n\t\tthis.add(password);\r\n\t\tthis.add(loginButton);\r\n\t\tthis.add(registerButton);\r\n\t\tthis.repaint();\r\n\t}", "public void initGUI(){\n\t\t\n\t\t//the layout is a new BorderLayout\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t//the label will be north\t\n\t\tadd(createHeroList(), BorderLayout.NORTH);\n\t\t\n\t\t//the questions will be displayed center\t\t\n\t\tadd(createQuestions(), BorderLayout.CENTER);\n\t\t//the button panel should be south\n\t\tadd(createAnswerButtonPanel(), BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\t \n\t}", "public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}", "public GUI()\n {\n //Initializes the variables and UI aspects\n UI.initialise();\n UI.addTextField(\"Search Title/Director/Genre\", this::searchEither);\n UI.addButton(\"Add Movie\", this::newMovie);\n UI.addButton(\"Rate Movie\", this::rateMovie);\n UI.addButton(\"Show All Movies\", this::printAll);\n UI.addButton(\"Recommend Movies\", this::recommendMovie);\n UI.setMouseListener(r::manageMouse);\n UI.addButton(\"Quit\", UI::quit);\n \n // Sets the size of the whole window and the divider\n UI.setWindowSize(CANVASWIDTH, CANVASHEIGHT);\n UI.setDivider(0.4);\n this.drawMain();\n }", "public Assignment4SwingClient() {\n buildGUI();\n remoteTuna = getRemoteSession();\n }", "private void init() {\n\t\tcontentPane=getContentPane();\n\t\ttopPanel= new JPanel();\n\t\tcontentPane.setLayout(new BorderLayout());\n\t\tlabel = new JLabel(\"Username\");\n\t\ttextfield = new JTextField(\"Type Username\", 15);\n\t\ttextfield.addActionListener(aListener);\n\t\tconnectButton = new JButton(\"Connect to Server\");\n\t\tconnectButton.addActionListener(aListener);\n\t\ttopPanel.setLayout(new FlowLayout());\n\t\tlabel.setVerticalAlignment(FlowLayout.LEFT);\n\t\ttopPanel.add(label);\n\t\ttopPanel.add(textfield);\n\t\ttopPanel.add(connectButton);\n\t\tsetSize(600, 600);\n\t\tcontentPane.add(topPanel, BorderLayout.NORTH);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tthis.addWindowListener(framListener);\n\t}", "private void initialize() {\n\t\tServerWindow = new JFrame();\n\t\tServerWindow.getContentPane().setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tServerWindow.getContentPane().setLayout(null);\n\t\tServerWindow.setBounds(100, 100, 798, 439);\n\t\tServerWindow.getContentPane().setLayout(null);\n\t\tServerWindow.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tJLabel IncomingClient = new JLabel(\"IncomingClient\");\n\t\tIncomingClient.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tIncomingClient.setBounds(51, 75, 184, 40);\n\t\tServerWindow.getContentPane().add(IncomingClient);\n\n\t\tClientName = new JLabel(\"ClientName\");\n\t\tClientName.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tClientName.setBounds(51, 140, 125, 35);\n\t\tServerWindow.getContentPane().add(ClientName);\n\n\t\tCurrentClients = new JList();\n\t\tCurrentClients.setEnabled(false);\n\t\tCurrentClients.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tCurrentClients.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tCurrentClients.setBounds(447, 151, 279, 205);\n\t\tServerWindow.getContentPane().add(CurrentClients);\n\t\t\n\t\tJLabel AllUsers = new JLabel(\"All Users\");\n\t\tAllUsers.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tAllUsers.setBounds(186, 73, 233, 49);\n\t\tServerWindow.getContentPane().add(AllUsers);\n\t\t\n\t\tAllUserLists = new JList();\n\t\tAllUserLists.setBounds(186, 140, 233, 215);\n\t\tServerWindow.getContentPane().add(AllUserLists);\n\t\t\n\t\tCurrentClientsLabel = new JLabel(\"Current Clients\");\n\t\tCurrentClientsLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tCurrentClientsLabel.setBounds(447, 73, 279, 49);\n\t\tServerWindow.getContentPane().add(CurrentClientsLabel);\n\t\t\n\t\tJButton ExitButton = new JButton(\"Exit\");\n\t\tExitButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcloseServer();\n\t\t\t\tterminateWindow();\n\t\t\t}\n\t\t});\n\t\tExitButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tExitButton.setBounds(614, 33, 89, 23);\n\t\tServerWindow.getContentPane().add(ExitButton);\n\t\t\n\t\t/*On click of window close button, shut down the server*/\n\t\tServerWindow.addWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\n\t}", "public static void main(String[] args) {\n String pswd=JOptionPane.showInputDialog(\"Input MySQL root password\");\n try {\n database.initial.initialize(pswd);\n message.initial.initialize(pswd);\n } catch (SQLSyntaxErrorException e) {\n System.out.println(\"Database already exists\");\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null,e.getMessage());\n return;\n } catch (Exception e) {\n e.printStackTrace();\n JOptionPane.showMessageDialog(null,\"Failed to connect to database\");\n return;\n }\n\n //build GUI\n JFrame gui=new JFrame();\n gui.setLayout(new BorderLayout());\n JPanel labels=new JPanel();\n labels.setSize(400,200);\n labels.setLayout(new GridLayout(3,1));\n JLabel ipLabel1=new JLabel(\"IP: Pending...\");\n JLabel ipLabel2=new JLabel(\"Port: Pending...\");\n JLabel notice=new JLabel(\"Tell your clients the above information!\");\n ipLabel1.setHorizontalAlignment(SwingConstants.CENTER);\n ipLabel2.setHorizontalAlignment(SwingConstants.CENTER);\n notice.setHorizontalAlignment(SwingConstants.CENTER);\n labels.add(ipLabel1,0);\n labels.add(ipLabel2,1);\n labels.add(notice,2);\n JTextArea text=new JTextArea();\n text.setEditable(false);\n JScrollPane scrollPane=new JScrollPane(text);\n gui.add(labels,BorderLayout.NORTH);\n gui.add(scrollPane,BorderLayout.CENTER);\n gui.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n gui.setSize(400,550);\n gui.setTitle(\"Server\");\n gui.setVisible(true);\n String lip=getLocalIP();\n ipLabel1.setText(\"IP: \"+lip);\n if(!getInternetIP().equals(lip))\n notice.setText(\"Warning: NOT Internet IP! Try natapp.cn for Internet service.\");\n\n //Launch server\n ServerNetManager network;\n try {\n try {\n network = new ServerNetManager(13060);\n } catch (IOException e) {\n network = new ServerNetManager(0);\n }\n ipLabel2.setText(\"Port: \"+network.getPort());\n } catch (IOException e) {\n System.err.println(\"Failed to launch server network!\");\n return;\n }\n\t\tnetwork.parser=new ServerBeanParser(\n network,\n new AccountManager(pswd),\n new FriendSysManager(pswd),\n new MessageManager(pswd),\n new MailVerifier(\"[email protected]\",\"CNKFUFWDLSCRSKYG\", \"smtp.163.com\")\n );\n\n network.log=(s)->\n SwingUtilities.invokeLater(()->text.append(\n new SimpleDateFormat(\"HH:mm:ss\").format(new Date())+\" \"+s+'\\n'));\n try {\n network.start();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public MHTYGUI() {\n\t\t\tinitComponents();\n\t\t}", "public ExecutantGui() {\n initComponents();\n }", "@Override\n public void initGui()\n {\n super.initGui();\n }", "protected void setupUI() {\n\n }", "public JavierGUI() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t\tthis.setJavier(getJavier());\r\n\t\tbtnHome.doClick();\r\n\t}", "private void initUI(int width, int height) {\n\t\tsetSize(width, height);\n\t\tsetTitle(ClientParameters.WINDOW_TITLE);\n\t\tsetLocationRelativeTo(null);\n\t\tsetResizable(ClientParameters.IS_RESIZABLE);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t// adding components\n\t\tpane.setLayout(new BorderLayout());\n\t\tpane.add(host, BorderLayout.NORTH);\n\t\tpane.add(portNumber, BorderLayout.CENTER);\n\t\tpane.add(connectButton, BorderLayout.SOUTH);\n\t}", "private void $$$setupUI$$$()\n {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(6, 1, new Insets(20, 20, 20, 20), -1, -1));\n panel.setAutoscrolls(true);\n buttonSettings = new JButton();\n buttonSettings.setEnabled(true);\n buttonSettings.setText(\"Open Application Settings\");\n panel.add(buttonSettings,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonStartGit = new JButton();\n buttonStartGit.setEnabled(true);\n buttonStartGit.setText(\"Start Git Management\");\n panel.add(buttonStartGit,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n null, new Dimension(500, 500), null, 0, false));\n textPaneConsole = new JTextPane();\n textPaneConsole.setEditable(false);\n scrollPane1.setViewportView(textPaneConsole);\n buttonOpenBenchmarkDialog = new JButton();\n buttonOpenBenchmarkDialog.setText(\"Open YCSB Benchmark Dialog\");\n panel.add(buttonOpenBenchmarkDialog,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonShowGitSettings = new JButton();\n buttonShowGitSettings.setEnabled(true);\n buttonShowGitSettings.setText(\"Open Git Management\");\n panel.add(buttonShowGitSettings,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Console Output\");\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null,\n null, null, 0, false));\n }", "private void initialize() {\n\t\tfrmISO8583Simulator = new JFrame();\n\t\tfrmISO8583Simulator.setTitle(\"ISO8583 Host Simulator\");\n\t\tfrmISO8583Simulator.setBounds(100, 100, 558, 803);\n\t\tfrmISO8583Simulator.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\ttbpnTABS = new JTabbedPane(JTabbedPane.TOP);\n\t\tGroupLayout groupLayout = new GroupLayout(frmISO8583Simulator.getContentPane());\n\t\tgroupLayout.setHorizontalGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addComponent(tbpnTABS, GroupLayout.DEFAULT_SIZE, 514, Short.MAX_VALUE).addGap(20)));\n\t\tgroupLayout.setVerticalGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addComponent(tbpnTABS, GroupLayout.PREFERRED_SIZE, 721, Short.MAX_VALUE).addContainerGap()));\n\n\t\tList<String> fepNames = new ArrayList<String>();\n\n\t\tfor (Map.Entry<String, String> currentEntry : Initializer.getFepPropertyFiles().entrySet()) {\n\t\t\tif (currentEntry.getKey() != \"Common\") {\n\t\t\t\tfepNames.add(currentEntry.getKey());\n\t\t\t}\n\t\t}\n\n\t\tbtngrpSendResponseOrNot = new ButtonGroup();\n\n\t\t/*\n\t\t * IP is taken from the system in which the simulator is running and is\n\t\t * displayed in the txtip field\n\t\t */\n\t\tInetAddress inet = null;\n\t\ttry {\n\t\t\tinet = InetAddress.getLocalHost();\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(\"Unable to fetch the system details\");\n\t\t\tlogger.error(\"Unable to fetch the system details\");\n\t\t}\n\t\tbtngrpauthorizationResult = new ButtonGroup();\n\n\t\tpnMain = new JPanel();\n\t\ttbpnTABS.addTab(\"Server Configuration\", null, pnMain, null);\n\n\t\tpnFEP = new JPanel();\n\t\tpnFEP.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null), \"FEP\", TitledBorder.LEFT,\n\t\t\t\tTitledBorder.ABOVE_TOP, null, new Color(0, 0, 0)));\n\n\t\tlblName = new JLabel(\"Name : \");\n\t\tcbxFEP = new JComboBox(fepNames.toArray());\n\t\tcbxFEP.setSelectedItem(Initializer.getFEPname());\n\t\tGroupLayout gl_pnFEP = new GroupLayout(pnFEP);\n\t\tgl_pnFEP.setHorizontalGroup(gl_pnFEP.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnFEP.createSequentialGroup().addContainerGap().addComponent(lblName).addGap(18)\n\t\t\t\t\t\t.addComponent(cbxFEP, GroupLayout.PREFERRED_SIZE, 406, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tgl_pnFEP.setVerticalGroup(gl_pnFEP.createParallelGroup(Alignment.LEADING).addGroup(gl_pnFEP\n\t\t\t\t.createSequentialGroup().addContainerGap()\n\t\t\t\t.addGroup(gl_pnFEP.createParallelGroup(Alignment.BASELINE).addComponent(lblName).addComponent(cbxFEP,\n\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t.addContainerGap(15, Short.MAX_VALUE)));\n\t\tpnFEP.setLayout(gl_pnFEP);\n\n\t\tpnServerConfiguration = new JPanel();\n\t\tpnServerConfiguration.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null),\n\t\t\t\t\"Connectivity\", TitledBorder.LEFT, TitledBorder.ABOVE_TOP, null, new Color(0, 0, 0)));\n\n\t\tlblIp = new JLabel(\"IP : \");\n\t\ttxtIP = new JTextField(inet.getHostAddress());\n\t\ttxtIP.setToolTipText(\"This field is non-editable. It takes the IP of the system at run-time. This is only to provide the information of the System ip so that this simulator can be connected from any other system as well.\");\n\t\ttxtIP.setEnabled(false);\n\t\ttxtIP.setColumns(10);\n\n\t\tJLabel lblPort = new JLabel(\"Port : \");\n\n\t\ttxtPort = new JTextField();\n\t\ttxtPort.setText(String.valueOf(Initializer.getPortNumber()));\n\t\ttxtPort.setColumns(10);\n\t\tGroupLayout gl_pnServerConfiguration = new GroupLayout(pnServerConfiguration);\n\t\tgl_pnServerConfiguration.setHorizontalGroup(gl_pnServerConfiguration.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnServerConfiguration.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(gl_pnServerConfiguration\n\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(lblIp).addComponent(lblPort))\n\t\t\t\t\t\t.addGap(29)\n\t\t\t\t\t\t.addGroup(gl_pnServerConfiguration.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(txtPort, GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(txtIP, GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE))\n\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_pnServerConfiguration\n\t\t\t\t.setVerticalGroup(\n\t\t\t\t\t\tgl_pnServerConfiguration.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(gl_pnServerConfiguration.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_pnServerConfiguration.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblIp).addComponent(txtIP, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_pnServerConfiguration.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblPort).addComponent(txtPort, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(52, Short.MAX_VALUE)));\n\t\tpnServerConfiguration.setLayout(gl_pnServerConfiguration);\n\n\t\tlblStatusValue = new JLabel(\"Offline\");\n\n\t\tlblStatus = new JLabel(\"Status : \");\n\n\t\tbtnSaveServerConfiguration = new JButton(\"Save Server Configuration\");\n\t\tbtnSaveServerConfiguration.setBackground(SystemColor.controlHighlight);\n\n\t\tbtnStartServer = new JButton(\"Start Server\");\n\n\t\tbtnStartServer.setBackground(SystemColor.controlHighlight);\n\n\t\tbtnStopServer = new JButton(\"Stop Server\");\n\t\tbtnStopServer.setEnabled(false);\n\n\t\tbtnStopServer.setBackground(SystemColor.controlHighlight);\n\n\t\tGroupLayout gl_pnMain = new GroupLayout(pnMain);\n\t\tgl_pnMain.setHorizontalGroup(gl_pnMain.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnMain.createSequentialGroup()\n\t\t\t\t\t\t.addGroup(gl_pnMain.createParallelGroup(Alignment.TRAILING).addGroup(Alignment.LEADING,\n\t\t\t\t\t\t\t\tgl_pnMain.createSequentialGroup().addGap(412).addComponent(lblStatus)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(lblStatusValue))\n\t\t\t\t\t\t\t\t.addGroup(gl_pnMain.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(pnFEP, GroupLayout.PREFERRED_SIZE, 491,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addGap(0, 0, Short.MAX_VALUE))\n\t\t\t\t\t\t\t\t.addGroup(Alignment.LEADING,\n\t\t\t\t\t\t\t\t\t\tgl_pnMain.createSequentialGroup().addContainerGap().addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\tpnServerConfiguration, GroupLayout.PREFERRED_SIZE, 491,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addGroup(Alignment.LEADING,\n\t\t\t\t\t\t\t\t\t\tgl_pnMain.createSequentialGroup().addContainerGap().addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\tbtnSaveServerConfiguration, GroupLayout.PREFERRED_SIZE, 491,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addGroup(gl_pnMain.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(btnStartServer, GroupLayout.PREFERRED_SIZE, 224,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addGap(44)\n\t\t\t\t\t\t\t\t\t\t.addComponent(btnStopServer, GroupLayout.PREFERRED_SIZE, 223,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addGap(0, 0, Short.MAX_VALUE)))\n\t\t\t\t\t\t.addContainerGap(17, Short.MAX_VALUE)));\n\t\tgl_pnMain.setVerticalGroup(gl_pnMain.createParallelGroup(Alignment.LEADING).addGroup(gl_pnMain\n\t\t\t\t.createSequentialGroup().addGap(7)\n\t\t\t\t.addGroup(gl_pnMain.createParallelGroup(Alignment.BASELINE).addComponent(lblStatusValue)\n\t\t\t\t\t\t.addComponent(lblStatus))\n\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t.addComponent(pnFEP, GroupLayout.PREFERRED_SIZE, 73, GroupLayout.PREFERRED_SIZE).addGap(32)\n\t\t\t\t.addComponent(pnServerConfiguration, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t.addGap(18).addComponent(btnSaveServerConfiguration).addGap(26)\n\t\t\t\t.addGroup(gl_pnMain.createParallelGroup(Alignment.BASELINE).addComponent(btnStartServer)\n\t\t\t\t\t\t.addComponent(btnStopServer))\n\t\t\t\t.addGap(335)));\n\t\tpnMain.setLayout(gl_pnMain);\n\n\t\tJPanel pnTransactionConfiguration = new JPanel();\n\t\ttbpnTABS.addTab(\"Transaction Configuration\", null, pnTransactionConfiguration, null);\n\n\t\tpnAuthorization = new JPanel();\n\t\tpnAuthorization.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null),\n\t\t\t\t\"Authorisation(x100)\", TitledBorder.LEADING, TitledBorder.ABOVE_TOP, null, null));\n\n\t\tpnFinancialSales = new JPanel();\n\t\tpnFinancialSales.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null),\n\t\t\t\t\"Financial Sales(x200)\", TitledBorder.LEADING, TitledBorder.ABOVE_TOP, null, null));\n\n\t\tpnFinancialForceDraft = new JPanel();\n\t\tpnFinancialForceDraft.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null),\n\t\t\t\t\"Financial Force Draft(x220)\", TitledBorder.LEADING, TitledBorder.ABOVE_TOP, null, null));\n\n\t\tpnReversal = new JPanel();\n\t\tpnReversal.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null), \"Reversal(x420)\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.ABOVE_TOP, null, null));\n\n\t\tpnReconciliation = new JPanel();\n\t\tpnReconciliation.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null),\n\t\t\t\t\"Reconciliation(x520)\", TitledBorder.LEADING, TitledBorder.ABOVE_TOP, null, null));\n\n\t\tpnSendResponse = new JPanel();\n\t\tpnSendResponse.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null), \"Send Response\",\n\t\t\t\tTitledBorder.LEFT, TitledBorder.ABOVE_TOP, null, new Color(0, 0, 0)));\n\n\t\trdbtnSendResponse = new JRadioButton(\"Yes\");\n\t\trdbtnDontSendResponse = new JRadioButton(\"No\");\n\t\tbtngrpSendResponseOrNot.add(rdbtnSendResponse);\n\t\tbtngrpSendResponseOrNot.add(rdbtnDontSendResponse);\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap().get(\"sendResponse\").equalsIgnoreCase(\"No\")) {\n\t\t\trdbtnDontSendResponse.setSelected(true);\n\t\t} else {\n\t\t\trdbtnSendResponse.setSelected(true);\n\t\t}\n\t\tGroupLayout gl_pnSendResponse = new GroupLayout(pnSendResponse);\n\t\tgl_pnSendResponse.setHorizontalGroup(gl_pnSendResponse.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnSendResponse.createSequentialGroup().addContainerGap().addComponent(rdbtnSendResponse)\n\t\t\t\t\t\t.addGap(124).addComponent(rdbtnDontSendResponse).addContainerGap(273, Short.MAX_VALUE)));\n\t\tgl_pnSendResponse.setVerticalGroup(gl_pnSendResponse.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnSendResponse.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(gl_pnSendResponse.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(rdbtnSendResponse).addComponent(rdbtnDontSendResponse))\n\t\t\t\t\t\t.addContainerGap(17, Short.MAX_VALUE)));\n\t\tpnSendResponse.setLayout(gl_pnSendResponse);\n\n\t\tpnConfiguration = new JPanel();\n\t\tpnConfiguration.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null),\n\t\t\t\t\"Response Code & Amount\", TitledBorder.LEFT, TitledBorder.ABOVE_TOP, null, new Color(0, 0, 0)));\n\n\t\tlblDeclineCode = new JLabel(\"Decline Code : \");\n\n\t\ttxtDeclineCode = new JFormattedTextField();\n\t\ttxtDeclineCode\n\t\t\t\t.setText(Initializer.getConfigurationTracker().getFepPropertiesMap().get(\"ValueOfBitfield39Decline\"));\n\n\t\tlblApprovalAmount = new JLabel(\"Approval Amount : \");\n\n\t\ttxtApprovalAmount = new JFormattedTextField();\n\t\ttxtApprovalAmount.setToolTipText(\"This field should contain 12 digits of numbers. Last two digits denotes the decimal points. For example, to set the amount as $12.49, amount should be configured as 000000001249.\");\n\t\ttxtApprovalAmount.setText(Initializer.getConfigurationTracker().getFepPropertiesMap().get(\"valueOfBitfield4\"));\n\t\ttxtApprovalAmount.setEnabled(false);\n\n\t\tchckbxApproveForHalf = new JCheckBox(\"Approve for half of transaction amount\");\n\t\tchckbxApproveForHalf.setSelected(true);\n\t\tif (Initializer.getConfigurationTracker().getFepPropertiesMap().get(\"isHalfApprovalRequired\")\n\t\t\t\t.equalsIgnoreCase(\"true\")) {\n\t\t\tchckbxApproveForHalf.setSelected(true);\n\t\t\ttxtApprovalAmount.setEnabled(true);\n\t\t} else {\n\t\t\tchckbxApproveForHalf.setSelected(false);\n\t\t\ttxtApprovalAmount.setEnabled(false);\n\t\t}\n\n\t\tGroupLayout gl_pnConfiguration = new GroupLayout(pnConfiguration);\n\t\tgl_pnConfiguration.setHorizontalGroup(gl_pnConfiguration.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnConfiguration.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(gl_pnConfiguration.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(lblApprovalAmount).addComponent(lblDeclineCode))\n\t\t\t\t\t\t.addGap(16)\n\t\t\t\t\t\t.addGroup(gl_pnConfiguration.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(txtDeclineCode, GroupLayout.DEFAULT_SIZE, 361, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(chckbxApproveForHalf)\n\t\t\t\t\t\t\t\t.addComponent(txtApprovalAmount, GroupLayout.DEFAULT_SIZE, 361, Short.MAX_VALUE))\n\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_pnConfiguration.setVerticalGroup(gl_pnConfiguration.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnConfiguration.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(gl_pnConfiguration.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblDeclineCode).addComponent(txtDeclineCode, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t.addGroup(gl_pnConfiguration.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblApprovalAmount).addComponent(txtApprovalAmount,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED).addComponent(chckbxApproveForHalf)\n\t\t\t\t\t\t.addContainerGap(46, Short.MAX_VALUE)));\n\t\tpnConfiguration.setLayout(gl_pnConfiguration);\n\n\t\tbtnSaveTransactionConfiguration = new JButton(\"Save Transaction Configuration\");\n\t\tbtnSaveTransactionConfiguration.setBackground(SystemColor.controlHighlight);\n\n\t\tGroupLayout gl_pnTransactionConfiguration = new GroupLayout(pnTransactionConfiguration);\n\t\tgl_pnTransactionConfiguration.setHorizontalGroup(gl_pnTransactionConfiguration\n\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnTransactionConfiguration.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(gl_pnTransactionConfiguration.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t.addComponent(pnConfiguration, 0, 0, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(pnReconciliation, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(pnReversal, 0, 0, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(pnFinancialForceDraft, 0, 0, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(pnFinancialSales, 0, 0, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(pnAuthorization, 0, 0, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(pnSendResponse, GroupLayout.DEFAULT_SIZE, 496, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(btnSaveTransactionConfiguration, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n\t\t\t\t\t\t.addContainerGap(12, Short.MAX_VALUE)));\n\t\tgl_pnTransactionConfiguration.setVerticalGroup(gl_pnTransactionConfiguration\n\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnTransactionConfiguration.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addComponent(pnSendResponse, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(pnAuthorization, GroupLayout.PREFERRED_SIZE, 74, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(pnFinancialSales, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(pnFinancialForceDraft, GroupLayout.PREFERRED_SIZE, 74, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(pnReversal, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(pnReconciliation, GroupLayout.PREFERRED_SIZE, 78, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(pnConfiguration, GroupLayout.PREFERRED_SIZE, 141, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED).addComponent(btnSaveTransactionConfiguration)\n\t\t\t\t\t\t.addContainerGap(30, Short.MAX_VALUE)));\n\n\t\trdbtnReconciliationApprove = new JRadioButton(\"Approve\");\n\t\trdbtnReconciliationDecline = new JRadioButton(\"Decline\");\n\t\tbtngrpReconciliationResult = new ButtonGroup();\n\t\tbtngrpReconciliationResult.add(rdbtnReconciliationApprove);\n\t\tbtngrpReconciliationResult.add(rdbtnReconciliationDecline);\n\n\t\tGroupLayout gl_pnReconciliation = new GroupLayout(pnReconciliation);\n\t\tgl_pnReconciliation.setHorizontalGroup(gl_pnReconciliation.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnReconciliation.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addComponent(rdbtnReconciliationApprove).addGap(103).addComponent(rdbtnReconciliationDecline)\n\t\t\t\t\t\t.addContainerGap(221, Short.MAX_VALUE)));\n\t\tgl_pnReconciliation.setVerticalGroup(gl_pnReconciliation.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnReconciliation.createSequentialGroup().addGap(15)\n\t\t\t\t\t\t.addGroup(gl_pnReconciliation.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(rdbtnReconciliationApprove).addComponent(rdbtnReconciliationDecline))\n\t\t\t\t\t\t.addContainerGap(19, Short.MAX_VALUE)));\n\t\tpnReconciliation.setLayout(gl_pnReconciliation);\n\n\t\trdbtnReversalApprove = new JRadioButton(\"Approve\");\n\t\trdbtnReversalApprove.setSelected(true);\n\t\trdbtnReversalDecline = new JRadioButton(\"Decline\");\n\t\tbtngrpReversalResult = new ButtonGroup();\n\t\tbtngrpReversalResult.add(rdbtnReversalApprove);\n\t\tbtngrpReversalResult.add(rdbtnReversalDecline);\n\t\tGroupLayout gl_pnReversal = new GroupLayout(pnReversal);\n\t\tgl_pnReversal.setHorizontalGroup(gl_pnReversal.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnReversal.createSequentialGroup().addContainerGap().addComponent(rdbtnReversalApprove)\n\t\t\t\t\t\t.addGap(103).addComponent(rdbtnReversalDecline).addContainerGap(272, Short.MAX_VALUE)));\n\t\tgl_pnReversal.setVerticalGroup(gl_pnReversal.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnReversal.createSequentialGroup().addGap(14)\n\t\t\t\t\t\t.addGroup(gl_pnReversal.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(rdbtnReversalApprove).addComponent(rdbtnReversalDecline))\n\t\t\t\t\t\t.addContainerGap(17, Short.MAX_VALUE)));\n\t\tpnReversal.setLayout(gl_pnReversal);\n\n\t\trdbtnFinancialForceDraftApprove = new JRadioButton(\"Approve\");\n\t\trdbtnFinancialForceDraftApprove.setSelected(true);\n\t\trdbtnFinancialForceDraftDecline = new JRadioButton(\"Decline\");\n\t\tbtngrpFinancialForceDraftResult = new ButtonGroup();\n\t\tbtngrpFinancialForceDraftResult.add(rdbtnFinancialForceDraftApprove);\n\t\tbtngrpFinancialForceDraftResult.add(rdbtnFinancialForceDraftDecline);\n\t\tGroupLayout gl_pnFinancialForceDraft = new GroupLayout(pnFinancialForceDraft);\n\t\tgl_pnFinancialForceDraft.setHorizontalGroup(gl_pnFinancialForceDraft.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnFinancialForceDraft.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addComponent(rdbtnFinancialForceDraftApprove).addGap(103)\n\t\t\t\t\t\t.addComponent(rdbtnFinancialForceDraftDecline).addContainerGap(272, Short.MAX_VALUE)));\n\t\tgl_pnFinancialForceDraft.setVerticalGroup(gl_pnFinancialForceDraft.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnFinancialForceDraft.createSequentialGroup().addGap(18)\n\t\t\t\t\t\t.addGroup(gl_pnFinancialForceDraft.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(rdbtnFinancialForceDraftApprove)\n\t\t\t\t\t\t\t\t.addComponent(rdbtnFinancialForceDraftDecline))\n\t\t\t\t\t\t.addContainerGap(12, Short.MAX_VALUE)));\n\t\tpnFinancialForceDraft.setLayout(gl_pnFinancialForceDraft);\n\n\t\trdbtnFinancialSalesApprove = new JRadioButton(\"Approve\");\n\t\trdbtnFinancialSalesApprove.setSelected(true);\n\t\trdbtnFinancialSalesDecline = new JRadioButton(\"Decline\");\n\t\trdbtnFinancialSalesPartiallyapprove = new JRadioButton(\"PartiallyApprove\");\n\t\tbtngrpFinancialSalesResult = new ButtonGroup();\n\t\tbtngrpFinancialSalesResult.add(rdbtnFinancialSalesApprove);\n\t\tbtngrpFinancialSalesResult.add(rdbtnFinancialSalesDecline);\n\t\tbtngrpFinancialSalesResult.add(rdbtnFinancialSalesPartiallyapprove);\n\t\tGroupLayout gl_pnFinancialSales = new GroupLayout(pnFinancialSales);\n\t\tgl_pnFinancialSales.setHorizontalGroup(gl_pnFinancialSales.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnFinancialSales.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addComponent(rdbtnFinancialSalesApprove).addGap(102).addComponent(rdbtnFinancialSalesDecline)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 117, Short.MAX_VALUE)\n\t\t\t\t\t\t.addComponent(rdbtnFinancialSalesPartiallyapprove).addGap(41)));\n\t\tgl_pnFinancialSales.setVerticalGroup(gl_pnFinancialSales.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnFinancialSales.createSequentialGroup().addGap(18)\n\t\t\t\t\t\t.addGroup(gl_pnFinancialSales.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(rdbtnFinancialSalesApprove).addComponent(rdbtnFinancialSalesDecline)\n\t\t\t\t\t\t\t\t.addComponent(rdbtnFinancialSalesPartiallyapprove))\n\t\t\t\t\t\t.addContainerGap(22, Short.MAX_VALUE)));\n\t\tpnFinancialSales.setLayout(gl_pnFinancialSales);\n\n\t\trdbtnAuthorizationApprove = new JRadioButton(\"Approve\");\n\t\trdbtnAuthorizationApprove.setSelected(true);\n\t\trdbtnAuthorizationDecline = new JRadioButton(\"Decline\");\n\t\trdbtnAuthorizationPartiallyapprove = new JRadioButton(\"PartiallyApprove\");\n\t\tbtngrpauthorizationResult.add(rdbtnAuthorizationApprove);\n\t\tbtngrpauthorizationResult.add(rdbtnAuthorizationDecline);\n\t\tbtngrpauthorizationResult.add(rdbtnAuthorizationPartiallyapprove);\n\n\t\tGroupLayout gl_pnAuthorization = new GroupLayout(pnAuthorization);\n\t\tgl_pnAuthorization.setHorizontalGroup(gl_pnAuthorization.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnAuthorization.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addComponent(rdbtnAuthorizationApprove).addGap(101).addComponent(rdbtnAuthorizationDecline)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 118, Short.MAX_VALUE)\n\t\t\t\t\t\t.addComponent(rdbtnAuthorizationPartiallyapprove).addGap(47)));\n\t\tgl_pnAuthorization.setVerticalGroup(gl_pnAuthorization.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(gl_pnAuthorization.createSequentialGroup().addContainerGap(16, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGroup(gl_pnAuthorization.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(rdbtnAuthorizationApprove).addComponent(rdbtnAuthorizationDecline)\n\t\t\t\t\t\t\t\t.addComponent(rdbtnAuthorizationPartiallyapprove))\n\t\t\t\t\t\t.addGap(14)));\n\t\tpnAuthorization.setLayout(gl_pnAuthorization);\n\t\tpnTransactionConfiguration.setLayout(gl_pnTransactionConfiguration);\n\n\t\tpnLogs = new JPanel();\n\t\ttbpnTABS.addTab(\"Runtime Logs\", null, pnLogs, null);\n\n\t\tJLabel lblRuntimeLogs = new JLabel(\"Logs : \");\n\n\t\tJScrollPane scrlpnLogs = new JScrollPane();\n\n\t\tJButton btnClearLogs = new JButton(\"Clear Logs\");\n\n\t\tbtnSaveLogs = new JButton(\"Save Logs\");\n\n\t\tString[] logLevel = { \"INFO\", \"DEBUG\", \"WARN\", \"ERROR\", \"FATAL\" };\n\t\tcbxLogLevel = new JComboBox(logLevel);\n\n\t\tJLabel lblLevel = new JLabel(\"Level:\");\n\n\t\tGroupLayout gl_pnLogs = new GroupLayout(pnLogs);\n\t\tgl_pnLogs.setHorizontalGroup(\n\t\t\tgl_pnLogs.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnLogs.createSequentialGroup()\n\t\t\t\t\t.addGap(14)\n\t\t\t\t\t.addGroup(gl_pnLogs.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(scrlpnLogs, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 494, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGroup(gl_pnLogs.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(lblRuntimeLogs)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 78, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addComponent(lblLevel)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(cbxLogLevel, GroupLayout.PREFERRED_SIZE, 97, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addGap(28)\n\t\t\t\t\t\t\t.addComponent(btnSaveLogs)\n\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t.addComponent(btnClearLogs)\n\t\t\t\t\t\t\t.addGap(23)))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgl_pnLogs.setVerticalGroup(\n\t\t\tgl_pnLogs.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_pnLogs.createSequentialGroup()\n\t\t\t\t\t.addGap(13)\n\t\t\t\t\t.addGroup(gl_pnLogs.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(btnClearLogs)\n\t\t\t\t\t\t.addComponent(btnSaveLogs)\n\t\t\t\t\t\t.addComponent(cbxLogLevel, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(lblLevel)\n\t\t\t\t\t\t.addComponent(lblRuntimeLogs))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(scrlpnLogs, GroupLayout.DEFAULT_SIZE, 632, Short.MAX_VALUE)\n\t\t\t\t\t.addGap(12))\n\t\t);\n\n\t\tInitializer.txtareaLogs.setEditable(false);\n\t\tscrlpnLogs.setViewportView(Initializer.txtareaLogs);\n\t\tpnLogs.setLayout(gl_pnLogs);\n\t\tfrmISO8583Simulator.getContentPane().setLayout(groupLayout);\n\n\t\tmenuBar = new JMenuBar();\n\t\tfrmISO8583Simulator.setJMenuBar(menuBar);\n\n\t\tmnFile = new JMenu(\"File\");\n\t\tmenuBar.add(mnFile);\n\n\t\tmntmExit = new JMenuItem(\"Exit\");\n\t\tmnFile.add(mntmExit);\n\n\t\tmnHelp = new JMenu(\"Help\");\n\t\tmenuBar.add(mnHelp);\n\n\t\tmntmAbout = new JMenuItem(\"About\");\n\t\tmnHelp.add(mntmAbout);\n\n\t\trefreshGUIConfiguration();\n\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\t/*\n\t\t * When the start server button is clicked, i) Server is started ii) if the\n\t\t * server is started successfully, Start server button is disabled & Stop server\n\t\t * button is enabled\n\t\t */\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\tbtnStartServer.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlogger.debug(\"Server status update was reset to false\");\n\t\t\t\tif (Initializer.startServer()) {\n\t\t\t\t\tstartServerGUIChanges();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\t/*\n\t\t * When the stop server button is clicked, i) Server is stopped ii) If the\n\t\t * server is stopped successfully, Start server button is disabled & Stop server\n\t\t * button is enabled\n\t\t */\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\tbtnStopServer.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (Initializer.stopServer()) {\n\t\t\t\t\tstopServerGUIChanges();\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Unable to stop the server\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\t/*\n\t\t * When the Approve for half of transaction amount checkbox is checked, approval\n\t\t * amount text field will be enabled and simulator will start approving for the\n\t\t * specified amount\n\t\t */\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\tchckbxApproveForHalf.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (chckbxApproveForHalf.isSelected()) {\n\t\t\t\t\ttxtApprovalAmount.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\ttxtApprovalAmount.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\t/*\n\t\t * When the save logs button is clicked, user gets the explorer window to save\n\t\t * the runtime logs\n\t\t */\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\tbtnSaveLogs.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}\n\t\t});\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\t/*\n\t\t * When the clear logs button is clicked, the runtime logs text area is cleared\n\t\t */\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\tbtnClearLogs.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInitializer.txtareaLogs.getDocument().remove(0, Initializer.txtareaLogs.getDocument().getLength());\n\t\t\t\t} catch (BadLocationException e1) {\n\t\t\t\t\tSystem.out.println(\"Unable to clear the logs\");\n\t\t\t\t\tlogger.error(\"Unable to clear the logs\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\t/*\n\t\t * When the change port number button is clicked, i) Validation if the set port\n\t\t * number is correct is performed. ii) Error message is displayed if the entered\n\t\t * port number is invalid iii) If the entered port number is valid, server is\n\t\t * stopped, port number is changed and server is restarted.\n\t\t */\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\tbtnSaveServerConfiguration.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tboolean update = false;\n\t\t\t\ttry {\n\t\t\t\t\tif (Integer.parseInt(txtPort.getText()) < 1026 || Integer.parseInt(txtPort.getText()) > 65536) {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\"Entered port number is invalid. Valid port number range is between 1026 and 65535\");\n\t\t\t\t\t\tlogger.info(\n\t\t\t\t\t\t\t\t\"Entered port number is invalid. Valid port number range is between 1026 and 65535\");\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Entered port number is invalid. Valid port number range is between 1026 and 65535\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!cbxFEP.getSelectedItem().toString().equals(Initializer.getFEPname())) {\n\t\t\t\t\t\t\tInitializer.setFEPname(cbxFEP.getSelectedItem().toString());\n\t\t\t\t\t\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\"fepName\",\n\t\t\t\t\t\t\t\t\tcbxFEP.getSelectedItem().toString());\n\t\t\t\t\t\t\tInitializer.getConfigurationTracker().updatePropertiesMapFromFepPropertyFile(\n\t\t\t\t\t\t\t\t\tInitializer.getFEPname(), String.valueOf(Initializer.getPortNumber()));\n\t\t\t\t\t\t\tInitializer.setBitfieldData(new BitFieldData());\n\t\t\t\t\t\t\tInitializer.getBaseConstants().loadConstantValues();\n\t\t\t\t\t\t\tInitializer.getBaseVariables().loadDefaultValues();\n\t\t\t\t\t\t\tupdate = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!txtPort.getText().equals(String.valueOf(Initializer.getPortNumber()))) {\n\t\t\t\t\t\t\tInitializer.setPortNumber(Integer.parseInt(txtPort.getText()));\n\t\t\t\t\t\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().put(\"portNumber\",\n\t\t\t\t\t\t\t\t\ttxtPort.getText());\n\t\t\t\t\t\t\tupdate = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (update) {\n\t\t\t\t\t\t\tproperty.load(new FileInputStream(new File(Initializer.getPropertiesFilePath()\n\t\t\t\t\t\t\t\t\t+ Initializer.getFepPropertyFiles().get(\"Common\"))));\n\t\t\t\t\t\t\tproperty.setProperty(\"fepName\",\n\t\t\t\t\t\t\t\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().get(\"fepName\"));\n\t\t\t\t\t\t\tproperty.setProperty(\"portNumber\",\n\t\t\t\t\t\t\t\t\tInitializer.getConfigurationTracker().getFepPropertiesMap().get(\"portNumber\"));\n\t\t\t\t\t\t\tproperty.store(new FileOutputStream(new File(Initializer.getPropertiesFilePath()\n\t\t\t\t\t\t\t\t\t+ Initializer.getFepPropertyFiles().get(\"Common\"))), \"\");\n\t\t\t\t\t\t\tlogger.debug(\"Configuration changed successfully. FEP : \" + Initializer.getFEPname()\n\t\t\t\t\t\t\t\t\t+ \" Port number: \" + Initializer.getPortNumber());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tInitializer.getBaseVariables().setBitfield39UpperLimit();\n\t\t\t\t\trefreshGUIConfiguration();\n\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"Unable to save the server configuration due to exception in loading values.\");\n\t\t\t\t\tlogger.info(\"Unable to save the server configuration due to exception in loading values\");\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\"Unable to save the server configuration due to exception in loading values\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\t/*\n\t\t * When the Save transaction configuration button is clicked, i) Current\n\t\t * configuration is retrieved ii) FEP property file is updated with the\n\t\t * retrieved values.\n\t\t */\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\tbtnSaveTransactionConfiguration.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (validDeclineCodeAndAmount()) {\n\t\t\t\t\tInitializer.getConfigurationTracker().updatePropertiesMapFromGUI();\n\t\t\t\t\tInitializer.getConfigurationTracker().updatePropertiesFileFromMap();\n\t\t\t\t\tInitializer.getBaseVariables().loadDefaultValues();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\t\t/*\n\t\t * Logger level combo box will define the level of logging to be done when the\n\t\t * application is running.\n\t\t */\n\t\t// -----------------------------------------------------------------------------------------------------------------------------\n\n\t\tcbxLogLevel.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tswitch (cbxLogLevel.getSelectedItem().toString()) {\n\t\t\t\tcase \"INFO\":\n\t\t\t\t\tLogManager.getRootLogger().setLevel(Level.INFO);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"DEBUG\":\n\t\t\t\t\tLogManager.getRootLogger().setLevel(Level.DEBUG);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WARN\":\n\t\t\t\t\tLogManager.getRootLogger().setLevel(Level.WARN);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"ERROR\":\n\t\t\t\t\tLogManager.getRootLogger().setLevel(Level.ERROR);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"FATAL\":\n\t\t\t\t\tLogManager.getRootLogger().setLevel(Level.FATAL);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void init(){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tbuildWindow();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"createGUI didn't complete successfully\");\r\n\t\t}\r\n\t}", "public Gui() {\n\t\tsuper();\n\t\tinitGUI();\n\t}", "private void initializateGUI() {\n\t\t\n\t\t\n\t\tthis.menuBar = buildMenuBar();\n\t\t\n\t\tthis.toolBar = buildToolBar();\n\t\t\n\t\tthis.container = (JComponent) ContainerViewFactory.getInstance().getContainerView(null);\n\t\t\n\t\tthis.status = buildStatusBar();\n\t\t\n\t\tscrollPane = new JScrollPane();\n\t\tscrollPane.getViewport().add(this.container);\n\t\t\n\t\ttextResources.getString(\"application.title\").ifPresent(super::setTitle);\n\n\t\tif (this.menuBar != null) {\n\t\t\tsuper.setJMenuBar(this.menuBar);\n\t\t}\n\t\tsuper.setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.setMinimumSize(MINIMUM_SIZE);\n\t\tsuper.setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\n\t\tsuper.getRootPane().setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.getRootPane().setMinimumSize(MINIMUM_SIZE);\t\t\n\t\tsuper.getRootPane().setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\t\t\n\t\tsuper.setLayout(new BorderLayout());\n\t\t\n\t\tsuper.add(toolBar, BorderLayout.NORTH);\n\t\tsuper.add(scrollPane, BorderLayout.CENTER);\n\t\tsuper.add(status, BorderLayout.SOUTH);\n\t\t\n\t\tsuper.addWindowListener(new WindowAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tinitializationDialog = buildInitializationAction();\n\t\t\t\tinitializationDialog.setVisible(true);\n\t\t\t\tinitializationDialog.toFront();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tconfirmExitAction();\n\t\t\t}\n\t\t});\n\t\tthis.handlerInitializateGUI();\n\t}", "public GuiController()\n {\n\n DefaultTerminalFactory terminalFactory = new DefaultTerminalFactory();\n PageStack = new ArrayDeque<>(); // Gives us a screen stack\n window = new BasicWindow(\"Just put anything, I don't even care\");\n try\n {\n screen = terminalFactory.createScreen(); //Populates screen\n screen.startScreen(); //Runs screen\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n textGUI = new MultiWindowTextGUI(screen);\n\n }", "private void setupSwing() {\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n \r\n try {\r\n for (LookAndFeelInfo info: UIManager.getInstalledLookAndFeels()) {\r\n if (info.getName().equals(\"Windows\")) {\r\n UIManager.setLookAndFeel(info.getClassName());\r\n }\r\n }\r\n } catch (ClassNotFoundException \r\n | InstantiationException\r\n | IllegalAccessException \r\n | UnsupportedLookAndFeelException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n \r\n window = new ManagerWindow(MetagridManager.this);\r\n window.pack();\r\n window.setVisible(true);\r\n }\r\n });\r\n }", "private void buildGUI() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBorder(LineBorder.createGrayLineBorder());\n\t\tadd(panel);\n\t\t\n\t\taddRootPaneListener();\n\t\taddLoginComp();\n\t\taddButtons();\n\t\taddTitle();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n topPanel = new javax.swing.JPanel();\n hostLabel = new javax.swing.JLabel();\n portLabel = new javax.swing.JLabel();\n localhostText = new javax.swing.JTextField();\n portChoice = new javax.swing.JComboBox<>();\n connectButton = new javax.swing.JButton();\n middlePanel = new javax.swing.JPanel();\n requestCommand = new javax.swing.JTextField();\n sendButton = new javax.swing.JButton();\n bottomPane = new javax.swing.JPanel();\n scrollTextPane = new javax.swing.JScrollPane();\n terminalText = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Nathan's Client/Server GUI\");\n setMinimumSize(new java.awt.Dimension(610, 550));\n setPreferredSize(new java.awt.Dimension(610, 550));\n\n topPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 0, 0), 8, true), \"CONNECTION\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Tahoma\", 1, 11))); // NOI18N\n\n hostLabel.setDisplayedMnemonic('H');\n hostLabel.setLabelFor(localhostText);\n hostLabel.setText(\"Host:\");\n hostLabel.setPreferredSize(new java.awt.Dimension(40, 20));\n\n portLabel.setDisplayedMnemonic('P');\n portLabel.setLabelFor(portChoice);\n portLabel.setText(\"Port:\");\n portLabel.setPreferredSize(new java.awt.Dimension(40, 40));\n\n localhostText.setText(\"localhost\");\n localhostText.setCaretPosition(0);\n localhostText.setMargin(new java.awt.Insets(2, 5, 2, 2));\n localhostText.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n localhostTextActionPerformed(evt);\n }\n });\n\n portChoice.setEditable(true);\n portChoice.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \" \", \"8089\", \"65001\", \"65535\" }));\n portChoice.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n portChoiceFocusGained(evt);\n }\n });\n portChoice.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n portChoiceActionPerformed(evt);\n }\n });\n portChoice.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n portChoiceKeyPressed(evt);\n }\n });\n\n connectButton.setBackground(new java.awt.Color(255, 0, 0));\n connectButton.setMnemonic('c');\n connectButton.setText(\"Connect\");\n connectButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n connectButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout topPanelLayout = new javax.swing.GroupLayout(topPanel);\n topPanel.setLayout(topPanelLayout);\n topPanelLayout.setHorizontalGroup(\n topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(topPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(topPanelLayout.createSequentialGroup()\n .addComponent(portLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(portChoice, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(connectButton)\n .addContainerGap(124, Short.MAX_VALUE))\n .addGroup(topPanelLayout.createSequentialGroup()\n .addComponent(hostLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(localhostText))))\n );\n\n topPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {connectButton, portChoice});\n\n topPanelLayout.setVerticalGroup(\n topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(topPanelLayout.createSequentialGroup()\n .addGroup(topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(hostLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(localhostText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(portLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(portChoice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(connectButton))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n topPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {connectButton, portChoice});\n\n middlePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 255), 8, true), \"CLIENT REQUEST\", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Tahoma\", 1, 11))); // NOI18N\n\n requestCommand.setText(\"Type a request command\");\n requestCommand.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n requestCommandActionPerformed(evt);\n }\n });\n\n sendButton.setMnemonic('s');\n sendButton.setText(\"Send\");\n sendButton.setEnabled(false);\n sendButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sendButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout middlePanelLayout = new javax.swing.GroupLayout(middlePanel);\n middlePanel.setLayout(middlePanelLayout);\n middlePanelLayout.setHorizontalGroup(\n middlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(middlePanelLayout.createSequentialGroup()\n .addComponent(requestCommand)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(sendButton))\n );\n middlePanelLayout.setVerticalGroup(\n middlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(middlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(requestCommand, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(sendButton))\n );\n\n middlePanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {requestCommand, sendButton});\n\n bottomPane.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 8, true), \"TERMINAL\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font(\"Tahoma\", 1, 11))); // NOI18N\n\n scrollTextPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\n terminalText.setEditable(false);\n terminalText.setColumns(20);\n terminalText.setRows(5);\n terminalText.setPreferredSize(new java.awt.Dimension(500, 550));\n scrollTextPane.setViewportView(terminalText);\n\n javax.swing.GroupLayout bottomPaneLayout = new javax.swing.GroupLayout(bottomPane);\n bottomPane.setLayout(bottomPaneLayout);\n bottomPaneLayout.setHorizontalGroup(\n bottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(scrollTextPane)\n );\n bottomPaneLayout.setVerticalGroup(\n bottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(scrollTextPane, javax.swing.GroupLayout.DEFAULT_SIZE, 121, 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(topPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(middlePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bottomPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(topPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(middlePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bottomPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "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 }", "private void initGUI() {\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\t// This is the story we took from Wikipedia.\n\t\tString story = \"The Internet Foundation Classes (IFC) were a graphics \"\n\t\t\t\t+ \"library for Java originally developed by Netscape Communications \"\n\t\t\t\t+ \"Corporation and first released on December 16, 1996.\\n\\n\"\n\t\t\t\t+ \"On April 2, 1997, Sun Microsystems and Netscape Communications\"\n\t\t\t\t+ \" Corporation announced their intention to combine IFC with other\"\n\t\t\t\t+ \" technologies to form the Java Foundation Classes. In addition \"\n\t\t\t\t+ \"to the components originally provided by IFC, Swing introduced \"\n\t\t\t\t+ \"a mechanism that allowed the look and feel of every component \"\n\t\t\t\t+ \"in an application to be altered without making substantial \"\n\t\t\t\t+ \"changes to the application code. The introduction of support \"\n\t\t\t\t+ \"for a pluggable look and feel allowed Swing components to \"\n\t\t\t\t+ \"emulate the appearance of native components while still \"\n\t\t\t\t+ \"retaining the benefits of platform independence. This feature \"\n\t\t\t\t+ \"also makes it easy to have an individual application's appearance \"\n\t\t\t\t+ \"look very different from other native programs.\\n\\n\"\n\t\t\t\t+ \"Originally distributed as a separately downloadable library, \"\n\t\t\t\t+ \"Swing has been included as part of the Java Standard Edition \"\n\t\t\t\t+ \"since release 1.2. The Swing classes are contained in the \"\n\t\t\t\t+ \"javax.swing package hierarchy.\\n\\n\";\n\t\t// We create the TextArea and pass the story in as an argument.\n\t\tJTextArea storyArea = new JTextArea(story);\n\t\tstoryArea.setEditable(true);\n\t\tstoryArea.setWrapStyleWord(true);\n\t\t// We create the ScrollPane and instantiate it with the TextArea as an argument\n\t\tJScrollPane area = new JScrollPane(storyArea);\t\t\t\n\t\tmainPanel.add(area);\t\n\t\tthis.setContentPane(mainPanel);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setSize(350, 300);\n\t\tthis.setVisible(true);\n\t}", "public userGUI() throws Exception {\n setUpPanel();\n Screen.welcomeMessage(panel);\n buttonInit();\n cards();\n panel.add(functions);\n add(panel);\n }", "private void initUI() {\n\t\tfileInputPanel.setLayout(new GridBagLayout());\n\n\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\n\t\tgridBagConstraints.insets = new Insets(10, 5, 10, 5);\n\t\tgridBagConstraints.anchor = GridBagConstraints.NORTH;\n\t\tgridBagConstraints.gridwidth = 2;\n\n\t\tJLabel title = new JLabel(\"Welcome to ANNie\");\n\t\ttitle.setFont(new Font(\"Serif\", Font.BOLD, 36));\n\n\t\tfileInputPanel.add(title, gridBagConstraints);\n\n\t\tgridBagConstraints.gridwidth = 1;\n\t\tgridBagConstraints.insets = new Insets(10, 5, 10, 5);\n\n\t\tfileInputPanel.setBorder(BorderFactory.createLineBorder(Color.black));\n\n\t\tcreateFileDropdownArea(gridBagConstraints);\n\t\tcreateLabelSelectArea(gridBagConstraints);\n\t\tcreateButtons(gridBagConstraints);\n\t}", "public UI() {\r\n\t\tsetPreferredSize(new Dimension(1100, 720));\r\n\t\tsetLayout(new BorderLayout());\r\n\t\tadd(chatPanel(), BorderLayout.CENTER);\r\n\t\tadd(serverPanel(), BorderLayout.EAST);\r\n\t\taddListeners();\r\n\t}", "private void initGUI() {\n\t\tContainer cp = getContentPane();\n\t\tcp.setLayout(new BorderLayout());\n\t\t\n\t\tJPanel top = new JPanel(new GridLayout(0, 1));\n\t\tcp.add(top, BorderLayout.PAGE_START);\n\t\t\n\t\ttop.add(createMenuBar());\n\n\t\tJTabbedPane tabs = new JTabbedPane();\n\t\ttabs.add(\"Encryptor\", encryptorPanel);\n\t\ttabs.add(\"Decryptor\", decryptorPanel);\n\t\ttabs.setSelectedComponent(encryptorPanel);\n\t\t\n\t\tcp.add(tabs);\n\t}", "private void initializeGUI() {\n\n\t\t// system's view windows dimensions\n\t\twindowsDimension = new Dimension(900, 700);\n\n\t\t// system's main frame and its properties\n\t\tframeSystem = new JFrame(\"NBodies System Viewer\");\n\t\tframeSystem.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframeSystem.setResizable(false);\n\t\tframeSystem.setBackground(Color.white);\n\n\t\t// buttons and their properties\n\t\tbtnNextStep = new JButton(\"Next Step\");\n\t\tbtnStart = new JButton(\"Start\");\n\t\tbtnStart.setSize(btnNextStep.getSize());\n\t\tbtnPause = new JButton(\"Pause\");\n\t\tbtnPause.setSize(btnNextStep.getSize());\n\t\tbtnReset = new JButton(\"Reset\");\n\t\tbtnReset.setSize(btnNextStep.getSize());\n\t\tbtnRestart = new JButton(\"Restart Application\");\n\t\tbtnRestart.setSize(btnNextStep.getSize());\n\n\t\t// control console and its properties and internal buttons\n\t\tcontrolConsole = new JPanel();\n\t\tcontrolConsole.setBackground(new Color(180, 180, 180));\n\t\tcontrolConsole.add(btnStart);\n\t\tcontrolConsole.add(btnNextStep);\n\t\tcontrolConsole.add(btnPause);\n\t\tcontrolConsole.add(btnReset);\n\t\tcontrolConsole.add(btnRestart);\n\n\t\t// label related to the number of bodies involved in the system and its\n\t\t// properties\n\t\tlblNBodies = new JLabel(\"- Number of bodies: 0\", JLabel.RIGHT);\n\t\tcontrolConsole.add(lblNBodies);\n\n\t\t// bodies's display and its properties (background color black to\n\t\t// simulate the space)\n\t\tbodiesDisplay = new BodiesSystemDisplay(model);\n\t\tbodiesDisplay.setBackground(new Color(0, 0, 0));\n\n\t\t// master panel and its layout's properties\n\t\tmasterPanel = new JPanel();\n\t\tLayoutManager layout = new BorderLayout();\n\t\tmasterPanel.setLayout(layout);\n\t\tmasterPanel.add(BorderLayout.NORTH, controlConsole);\n\t\tmasterPanel.add(BorderLayout.CENTER, bodiesDisplay);\n\n\t\t// view's main frame and its properties\n\t\tframeSystem.setContentPane(masterPanel);\n\t\tframeSystem.setSize(windowsDimension);\n\t\tframeSystem.setLocationRelativeTo(null);\n\t\tframeSystem.setVisible(true);\n\t\t\n\t\tbodiesDisplay.setUpBuffer();\n\t}", "private void initGui(){\n // TODO: add code for GUI initialization for a given auction\n }", "public ClientGUI() {\n initComponents();\n PopulateList();\n }", "public static void main(String[] args) {\n\t\tserver_gui s_gui = new server_gui();\n\t}", "public void run() {\r\n\t\t\t\tServerChatUI serverChatUI = new ServerChatUI(s);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tserverChatUI.setMinimumSize(new Dimension(588, 500));\r\n\t\t\t\tserverChatUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\t\tserverChatUI.setLocation(dim.width/2-serverChatUI.getSize().width/2, dim.height/2-serverChatUI.getSize().height/2);\r\n \t\t\t\tserverChatUI.pack();\r\n\t\t\t\tserverChatUI.setVisible(true);\r\n\t\t\t\tserverChatUI. setResizable(false);\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t}", "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}", "private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}", "ClientGUI() {\n\t\t_ls = new logServer(\"ClientGui\");\n\n\t\t_clientFrame = new JFrame();\n\t\t_loginFrame = new LoginF(_ls);\n\n\t\t_clientFrame.setSize(500, 820);\n\t\t_clientFrame.setLayout(null);\n\t\t_clientFrame.add(_loginFrame);\n\t\tinit();\n\n\t\t// startFrame();\n\t\t\n\n\t\t_clientControl = new Client(_ls);\n\t\t_loginFrame.setClientPointer(_clientControl);\n\n\t\t/**\n\t\t * event for login frame to close and open new frame\n\t\t */\n\t\t_loginFrame.setLoginListener(new loginFrameListener() {\n\t\t\t@Override\n\t\t\tpublic void singUpListener(Client clientControl) {\n\t\t\t\t_clientControl = clientControl;\n\t\t\t\tstartFrame();\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t}", "public gui() {\n initComponents();\n }", "public gui() {\n initComponents();\n }", "private void organizeUI() {\n\t\tfileMenu.add(startServerFileMenu);\n\t\tfileMenu.add(stopServerFileMenu);\n\t\tfileMenu.addSeparator();\n\t\tfileMenu.add(exitFileMenu);\n\n\t\toptionMenu.add(loadJokesOptionMenu);\n\t\toptionMenu.add(setupServerInfoOptionMenu);\n\t\t\n\t\thelpMenu.add(aboutHelpMenu);\n\t\t\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(optionMenu);\n\t\tmenuBar.add(helpMenu);\n\t\tsetJMenuBar(menuBar);\n\t\t\n\t\ttoolBar.add(startServerToolBarButton);\n\t\ttoolBar.add(stopServerToolBarButton);\n\t\tstopServerToolBarButton.setEnabled(false);\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(kkClientToolBarButton);\n\t\t\n\t\tkkServerPortField = new JTextField(String.valueOf(kkServerPort));\n\t\t\n\t\tserverStatusLabel.setText(serverStopped);\n\t\tnorthPanel.setLayout(new BorderLayout());\n\t\tnorthPanel.add(toolBar, BorderLayout.NORTH);\n\t\tnorthPanel.add(serverStatusLabel, BorderLayout.WEST);\n\t\tadd(northPanel, BorderLayout.NORTH);\n\t\t\n\t\tcenterPanel.setLayout(new BorderLayout());\n\t\tadd(centerPanel, BorderLayout.CENTER);\n\t\t\n\t\tsouthPanel.setLayout(new BorderLayout());\n\t\tsouthPanel.add(totalClientConectionLabel, BorderLayout.WEST);\n\t\tsouthPanel.add(totalJokesLabel, BorderLayout.EAST);\n\t\t\n\t\tadd(southPanel, BorderLayout.SOUTH);\n\t}", "public MainUI() throws UnknownHostException {\n initComponents();\n //server();\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\nwidth = screenSize.getWidth();\n height = screenSize.getHeight();\n setIcon();\n \n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 600, 600);\n\t\tframe.setTitle(\"WSChat Client\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tJPanel mainPanel = new JPanel();\n\t\tframe.getContentPane().add(mainPanel);\n\t\tmainPanel.setLayout(null);\n\n\t\tJLabel setNameLabel = new JLabel();\n\t\tsetNameLabel.setText(\"Nickname: \");\n\t\tmainPanel.add(setNameLabel);\n\t\tsetNameLabel.setBounds(168, 10, 80, 30);\n\t\tnameField = new JTextField();\n\t\tnameField.setBounds(247, 10, 100, 30);\n\t\tsendName = new JButton(\"Set Name\");\n\t\tsendName.setBounds(359, 11, 120, 30);\n\t\tnameField.setColumns(10);\n\t\tmainPanel.add(nameField);\n\t\tmainPanel.add(sendName);\n\t\tsendName.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tWSChatApplication.this.send(\"/nick \" + nameField.getText());\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane msg_pane = new JScrollPane();\n\t\tmsg_area = new JTextArea();\n\t\tmsg_area.setEditable(false);\n\t\tmsg_area.setLineWrap(true);\n\t\tmsg_area.setWrapStyleWord(true);\n\t\tmsg_pane.setViewportView(msg_area);\n\t\tmsg_pane.setBounds(10, 45, 450, 450);\n\t\tmainPanel.add(msg_pane);\n\n\t\tJScrollPane list_pane = new JScrollPane();\n\t\tlist = new JList<String>(listModel);\n\t\tlist.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tcurrentTarget = list.getSelectedValue();\n\t\t\t}\n\t\t});\n\n\t\tJTextPane textPane = new JTextPane();\n\t\ttextPane.setBounds(0, 0, 1, 16);\n\t\tmainPanel.add(textPane);\n\t\tlist_pane.setViewportView(list);\n\t\tlist_pane.setBounds(470, 45, 120, 450);\n\t\tmainPanel.add(list_pane);\n\n\t\tJScrollPane in_pane = new JScrollPane();\n\t\tfinal JTextArea in_area = new JTextArea();\n\t\tin_area.setLineWrap(true);\n\t\tin_area.setWrapStyleWord(true);\n\t\tin_pane.setViewportView(in_area);\n\t\tJButton sendBut = new JButton(\"Send\");\n\t\tsendBut.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (list.getSelectedIndex() == 0)\n\t\t\t\t\tWSChatApplication.this.send(in_area.getText());\n\t\t\t\telse\n\t\t\t\t\tWSChatApplication.this.send(\"/to \" + currentTarget + \" \"\n\t\t\t\t\t\t\t+ in_area.getText());\n\t\t\t\tin_area.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tmainPanel.add(sendBut);\n\t\tsendBut.setBounds(470, 500, 120, 70);\n\t\tmainPanel.add(in_pane);\n\t\tin_pane.setBounds(10, 500, 450, 70);\n\t}", "public MediaLibraryGUI() {\r\n initializeFields();\r\n\r\n makeMenu();\r\n\r\n makeCenter();\r\n\r\n makeSouth();\r\n\r\n startGUI();\r\n }", "private void initUI() {\n\t\tPanel p = new Panel();\n\t\tp.setLayout(new BorderLayout());\n\t\t\n\t\tPanel flowLayoutPanel = new Panel();\n\t\tflowLayoutPanel.setLayout(new FlowLayout());\n\t\t\n\t\ttextArea = new JTextArea();\n\t\t\n\t\tMyCloseButton exitButton = new MyCloseButton(\"Exit\");\n\t\t/*\n\t\texit.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\t\t\n\t\t});\n\t\t*/\n\t\tMyOpenButton saveButton = new MyOpenButton(\"Open\");\n\t\t/*\n\t\tsaveButton.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\n\t\t});\n\t\t*/\n\t\tMySaveButton mySaveButton =new MySaveButton(\"Save\");\n\t\t//setVisible(mb);\n\t\tp.add(flowLayoutPanel, BorderLayout.SOUTH);\n\t\tflowLayoutPanel.add(exitButton);\n\t\tflowLayoutPanel.add(saveButton);\n\t\tflowLayoutPanel.add(mySaveButton);\n\t\tp.add(textArea, BorderLayout.CENTER); \n\t\tadd(p);\n\t\t\n\t\tcreateMenu();\n\t\t\n\t\tsetTitle(\"Text Editor\");\n\t\tsetSize(600, 600);\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\n\t}", "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 initialize() {\n\t\tpop.connect();\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 500, 400);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Hello \"+ pop.first+ \" \" + pop.last);\n\t\tlblNewLabel.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 24));\n\t\tlblNewLabel.setBounds(18, 6, 350, 20);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Server\");\n\t\tlblNewLabel_1.setBounds(395, 90, 75, 40);\n\t\tlblNewLabel_1.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 14));\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Start\");\n\t\tbtnNewButton.setBounds(380, 120, 75, 40);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tSocket client = new Socket(\"mastacademy.ddns.net\", 80);\n\t\t\t\t\t\n\t\t\t\t\tOutputStream out = client.getOutputStream();\n\t\t\t\t\t\n\t\t\t\t\tout.write(\"serverStatus:on\".getBytes());\n\t\t\t\t\tout.flush();\n\t\t\t\t\t\n\t\t\t\t\tout.close();\n\t\t\t\t\tclient.close();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"Stop\");\n\t\tbtnNewButton_1.setBounds(380, 160, 75, 40);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tSocket client = new Socket(\"mastacademy.ddns.net\", 80);\n\t\t\t\t\t\n\t\t\t\t\tOutputStream out = client.getOutputStream();\n\t\t\t\t\t\n\t\t\t\t\tout.write(\"serverStatus:off\".getBytes());\n\t\t\t\t\tout.flush();\n\t\t\t\t\t\n\t\t\t\t\tout.close();\n\t\t\t\t\tclient.close();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\t\n\t\tJButton btnEditSettings = new JButton(\"Edit Settings\");\n\t\tbtnEditSettings.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\teditConnection.newFrame(null);\n\t\t\t}\n\t\t});\n\t\tbtnEditSettings.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 12));\n\t\tbtnEditSettings.setBounds(370, 302, 95, 40);\n\t\t\n\t\tframe.getContentPane().add(btnEditSettings);\n\t\t\n\t\tJButton btnEditStudents = new JButton(\"Edit Students\");\n\t\tbtnEditStudents.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tEditWindow.NewWindow();\n\t\t\t}\n\t\t});\n\t\tbtnEditStudents.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 12));\n\t\tbtnEditStudents.setBounds(370, 265, 95, 40);\n\t\tframe.getContentPane().add(btnEditStudents);\n\t\t\n\n\t\t\n\t\tJButton btnRefresh = new JButton(\"Refresh\");\n\t\tbtnRefresh.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 12));\n\t\tbtnRefresh.setBounds(370, 227, 95, 40);\n\t\tframe.getContentPane().add(btnRefresh);\n\t\t\n\t\tbtnRefresh.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t Thread t = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run() {\n\t\t\t\t \tframe.setTitle(\"Working\");\n\t\t\t\t \tgraphMaker.getGraphs();\n\t\t\t\t \n\t\t\t\t \t//Updates all the images in the tabs to the recently made ones\n\t\t\t\t\t\t\tmathLbl.setIcon(getImageIcon(new File(\"mathPieChart.png\")));\n\t\t\t\t\t\t\tsocialStudiesLbl.setIcon(getImageIcon(new File(\"socialPieChart.png\")));\n\t\t\t\t\t\t\tscienceLbl.setIcon(getImageIcon(new File(\"sciencePieChart.png\")));\n\t\t\t\t\t\t\tlanguageLbl.setIcon(getImageIcon(new File(\"languagePieChart.png\")));\n\t\t\t\t\t\t\tenglishLbl.setIcon(getImageIcon(new File(\"englishPieChart.png\")));\n\t\t\t\t\t\t\tartLbl.setIcon(getImageIcon(new File(\"artPieChart.png\")));\n\t\t\t\t\t\t\tpeLbl.setIcon(getImageIcon(new File(\"pePieChart.png\")));\n\t\t\t\t\t\t\tframe.setTitle(\"\");\n\t\t\t\t } \n\t\t\t\t });\n\t\t\t\t t.start();\n\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t});\n\t\t\n\t\tJLabel lblNewLabel_9 = new JLabel(\"Today is:\");\n\t\tlblNewLabel_9.setBounds(420, -20, 100, 100);\n\t\tframe.getContentPane().add(lblNewLabel_9);\n\t\t\n\t\t GregorianCalendar gcalendar = new GregorianCalendar();\n\t\t String day = (\"\" + gcalendar.get(Calendar.DATE) + \"/\");\n\t\t String month = (\"\" + (gcalendar.get(Calendar.MONTH)+1) + \"/\");\n\t\t String year = (\"\" + gcalendar.get(Calendar.YEAR));\n\n\t\t\tJLabel lblNewLabel_8 = new JLabel(month + day + year);\n\t\t\tlblNewLabel_8.setBounds(420, 0, 100, 100);\n\t\t\tframe.getContentPane().add(lblNewLabel_8);\n\t\t\n\t\ttabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\ttabbedPane.setBounds(5, 50, 350, 300);\n\t\tframe.getContentPane().add(tabbedPane);\n\t\t\n\t\n\t\t\n\t\tmathLbl = new JLabel();\n\t\tmathLbl.setIcon(getImageIcon(new File(\"mathPieChart.png\")));\n\t\ttabbedPane.add(\"Math\", mathLbl);\n\t\t\t\t\n\t\tsocialStudiesLbl = new JLabel();\n\t\ttabbedPane.addTab(\"Social Studies\", socialStudiesLbl);\n\t\tsocialStudiesLbl.setIcon(getImageIcon(new File(\"socialPieChart.png\")));\n\t\t\n\t\tscienceLbl = new JLabel();\n\t\ttabbedPane.addTab(\"Science\", scienceLbl);\n\t\tscienceLbl.setIcon(getImageIcon(new File(\"sciencePieChart.png\")));\n\t\t\n\t\tenglishLbl = new JLabel();\n\t\ttabbedPane.addTab(\"English\", englishLbl);\n\t\tenglishLbl.setIcon(getImageIcon(new File(\"englishPieChart.png\")));\n\t\t\n\t\tlanguageLbl = new JLabel();\n\t\ttabbedPane.addTab(\"Language\", languageLbl);\n\t\tlanguageLbl.setIcon(getImageIcon(new File(\"languagePieChart.png\")));\n\t\t\n\t\tartLbl = new JLabel();\n\t\ttabbedPane.addTab(\"Art\", artLbl);\n\t\tartLbl.setIcon(getImageIcon(new File(\"artPieChart.png\")));\n\t\t\n\t\tpeLbl = new JLabel();\n\t\ttabbedPane.addTab(\"PE\", peLbl);\n\t\tpeLbl.setIcon(getImageIcon(new File(\"pePieChart.png\")));\n\t\t\n\t\tJButton btnResort = new JButton(\"Sort\");\n\t\tbtnResort.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t//pop.makeStudents();//TAKE THIS OUT FOR FINAL RELEASE\n\t\t\t\t(new Thread((new pop()))).start(); //sorts students and makes graphs\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnResort.setBounds(286, 18, 97, 25);\n\t\tframe.getContentPane().add(btnResort);\n\n\t\t\n\t}", "private GUI()\n {\n makeGUI();\n }", "public void start(){\n runServerGUI();\n // new server thread object created\n ServerThread m_Server = new ServerThread(this);\n m_Server.start();\n }", "public SysRunGUI() {\n initComponents();\n this.run();\n }", "public HomePageGUI() {\n initComponents();\n }", "public Server(){\r\n\t\tdisplayArea = new JTextArea();\r\n\t\tdisplayArea.setEditable(false);\r\n\t\tadd( new JScrollPane(displayArea));\r\n\t\tsetSize(300,150);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetVisible(true);\r\n\t}", "public GUI() {\n initComponents();\n }", "public GUI() {\n initComponents();\n }", "public void init() {\n //Execute a job on the event-dispatching thread; creating this applet's GUI.\n setSize(500, 150);\n \ttry {\n SwingUtilities.invokeAndWait(new Runnable() {\n public void run() {\n createGUI();\n }\n });\n } catch (Exception e) { \n System.err.println(\"createGUI didn't complete successfully\");\n }\n \n }", "public void initGui() {\n/* 34 */ Keyboard.enableRepeatEvents(true);\n/* 35 */ this.buttonList.clear();\n/* 36 */ this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + 12, I18n.format(\"selectServer.select\", new Object[0])));\n/* 37 */ this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + 12, I18n.format(\"gui.cancel\", new Object[0])));\n/* 38 */ this.ipEdit = new GuiTextField(2, this.fontRendererObj, this.width / 2 - 100, 116, 200, 20);\n/* 39 */ this.ipEdit.setMaxStringLength(128);\n/* 40 */ this.ipEdit.setFocused(true);\n/* 41 */ this.ipEdit.setText(this.mc.gameSettings.lastServer);\n/* 42 */ ((GuiButton)this.buttonList.get(0)).enabled = (!this.ipEdit.getText().isEmpty() && (this.ipEdit.getText().split(\":\")).length > 0);\n/* */ }", "public static void prepareGUI() {\n\t\tframe = new JFrame(\"Solid Adventure : Catch All Virtumon\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Driver demo = new Driver();\n demo.addComponentToPane(frame.getContentPane());\n\n //Display the window.\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private GuiTest() {\n // Load custom resources (fonts, etc.)\n ResourceLoader.loadResources();\n\n // Load the user accounts into the system\n UserController.getInstance().loadUsers();\n\n // Set up GuiController and the main window.\n GuiController.instantiate(1280, 720, \"FPTS\");\n\n char[] password = {'p', 'a', 's', 's', 'w', 'o', 'r', 'd'};\n UserController.getInstance().login(\"rhochmuth\", password);\n\n // Show the screen/window\n PortfolioController.getInstance().showAddHoldingView();\n GuiController.getInstance().showWindow();\n\n // Load the market information and update it every 2 minutes\n MarketController.getInstance().StartTimer();\n }", "private static void createAndShowGUI() {\n\t\tgui = new GUI();\n\t}", "public TorrentGUI() {\n try {\n initComponents();\n seededFiles = new HashMap<String, File>();\n InetAddress thisIp = InetAddress.getLocalHost();\n ServerSocket ss = new ServerSocket(0);\n System.out.println(ss.getLocalPort());\n ContactThread ct = new ContactThread(ss, seededFiles);\n ct.start();\n user = new User(thisIp, ss.getLocalPort());\n System.out.println(\"GUI je pokrenut\");\n } catch (IOException ex) {\n Logger.getLogger(TorrentGUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void $$$setupUI$$$() {\n container = new JPanel();\n container.setLayout(new FormLayout(\"fill:335px:noGrow,left:4dlu:noGrow,fill:334px:noGrow\", \"center:d:grow\"));\n container.setBorder(BorderFactory.createTitledBorder(null, \"港机数据采集服务配置\", TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION, new Font(container.getFont().getName(), container.getFont().getStyle(), container.getFont().getSize()), new Color(-16777216)));\n serverContainer = new JPanel();\n serverContainer.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));\n CellConstraints cc = new CellConstraints();\n container.add(serverContainer, cc.xy(1, 1, CellConstraints.FILL, CellConstraints.FILL));\n serverContainer.setBorder(BorderFactory.createTitledBorder(\"服务器配置\"));\n serverConfigPanel = new JPanel();\n serverConfigPanel.setLayout(new FormLayout(\"fill:80px:noGrow,left:4dlu:noGrow,fill:225px:grow\", \"center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow\"));\n serverContainer.add(serverConfigPanel);\n serverIpLabel = new JLabel();\n serverIpLabel.setText(\"IP地址\");\n serverConfigPanel.add(serverIpLabel, cc.xy(1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n serverIpTxt = new JTextField();\n serverConfigPanel.add(serverIpTxt, cc.xy(3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));\n serverPortLabel = new JLabel();\n serverPortLabel.setText(\"端口\");\n serverConfigPanel.add(serverPortLabel, cc.xy(1, 3, CellConstraints.CENTER, CellConstraints.DEFAULT));\n serverPortTxt = new JTextField();\n serverConfigPanel.add(serverPortTxt, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\n serverIntervalLabel = new JLabel();\n serverIntervalLabel.setText(\"监听间隔\");\n serverConfigPanel.add(serverIntervalLabel, cc.xy(1, 5, CellConstraints.CENTER, CellConstraints.DEFAULT));\n serverIntervalTxt = new JTextField();\n serverConfigPanel.add(serverIntervalTxt, cc.xy(3, 5, CellConstraints.FILL, CellConstraints.DEFAULT));\n serverFileLabel = new JLabel();\n serverFileLabel.setText(\"配置文件路径\");\n serverConfigPanel.add(serverFileLabel, cc.xy(1, 7, CellConstraints.CENTER, CellConstraints.DEFAULT));\n serverFileTxt = new JTextField();\n serverConfigPanel.add(serverFileTxt, cc.xy(3, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\n serverControlPanel = new JPanel();\n serverControlPanel.setLayout(new FormLayout(\"fill:d:grow,left:4dlu:noGrow,fill:150px:noGrow,left:4dlu:noGrow,fill:150px:grow\", \"center:d:grow,top:4dlu:noGrow,center:42px:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n serverContainer.add(serverControlPanel);\n serverSaveBtn = new JButton();\n serverSaveBtn.setText(\"保存\");\n serverControlPanel.add(serverSaveBtn, cc.xy(5, 3));\n serverFileOpener = new JButton();\n serverFileOpener.setText(\"打开\");\n serverControlPanel.add(serverFileOpener, cc.xy(3, 3));\n serverStartBtn = new JButton();\n serverStartBtn.setText(\"启动服务器\");\n serverControlPanel.add(serverStartBtn, cc.xy(3, 5));\n serverStopBtn = new JButton();\n serverStopBtn.setText(\"停止服务器\");\n serverControlPanel.add(serverStopBtn, cc.xy(5, 5));\n redisContainer = new JPanel();\n redisContainer.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n container.add(redisContainer, cc.xy(3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\n redisContainer.setBorder(BorderFactory.createTitledBorder(\"Redis配置\"));\n redisConfigPanel = new JPanel();\n redisConfigPanel.setLayout(new FormLayout(\"fill:83px:noGrow,left:4dlu:noGrow,fill:221px:grow\", \"center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow\"));\n redisContainer.add(redisConfigPanel);\n redisIpLabel = new JLabel();\n redisIpLabel.setText(\"IP地址\");\n redisConfigPanel.add(redisIpLabel, cc.xy(1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n redisIpTxt = new JTextField();\n redisConfigPanel.add(redisIpTxt, cc.xy(3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));\n redisPortLabel = new JLabel();\n redisPortLabel.setText(\"端口\");\n redisConfigPanel.add(redisPortLabel, cc.xy(1, 3, CellConstraints.CENTER, CellConstraints.DEFAULT));\n redisPortTxt = new JTextField();\n redisConfigPanel.add(redisPortTxt, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\n redisExpireLabel = new JLabel();\n redisExpireLabel.setText(\"过期时间\");\n redisConfigPanel.add(redisExpireLabel, cc.xy(1, 5, CellConstraints.CENTER, CellConstraints.DEFAULT));\n redisExpireTxt = new JTextField();\n redisConfigPanel.add(redisExpireTxt, cc.xy(3, 5, CellConstraints.FILL, CellConstraints.DEFAULT));\n redisFileLabel = new JLabel();\n redisFileLabel.setText(\"配置文件路径\");\n redisConfigPanel.add(redisFileLabel, cc.xy(1, 7, CellConstraints.CENTER, CellConstraints.DEFAULT));\n redisFileTxt = new JTextField();\n redisConfigPanel.add(redisFileTxt, cc.xy(3, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\n redisControlPanel = new JPanel();\n redisControlPanel.setLayout(new FormLayout(\"fill:d:grow,left:4dlu:noGrow,fill:150px:noGrow,left:4dlu:noGrow,fill:150px:grow\", \"center:d:grow,top:4dlu:noGrow,center:42px:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n redisContainer.add(redisControlPanel);\n redisSaveBtn = new JButton();\n redisSaveBtn.setText(\"保存\");\n redisControlPanel.add(redisSaveBtn, cc.xy(5, 3));\n redisFileOpener = new JButton();\n redisFileOpener.setText(\"打开\");\n redisControlPanel.add(redisFileOpener, cc.xy(3, 3));\n redisStartBtn = new JButton();\n redisStartBtn.setText(\"启动服务器\");\n redisControlPanel.add(redisStartBtn, cc.xy(3, 5));\n redisStopBtn = new JButton();\n redisStopBtn.setText(\"停止服务器\");\n redisControlPanel.add(redisStopBtn, cc.xy(5, 5));\n }" ]
[ "0.8091233", "0.7925479", "0.7432267", "0.74313337", "0.7417585", "0.7417412", "0.71725494", "0.71635044", "0.7146251", "0.7098431", "0.70840836", "0.70778984", "0.702387", "0.6992252", "0.6988049", "0.6969153", "0.69667006", "0.69596964", "0.6956958", "0.69528586", "0.69351274", "0.68996316", "0.68996316", "0.68993247", "0.6893316", "0.6875185", "0.68682456", "0.6860557", "0.6845843", "0.68398386", "0.68138367", "0.68061143", "0.6784116", "0.67747456", "0.6773349", "0.6772453", "0.6770783", "0.6766676", "0.6754336", "0.67528564", "0.67505074", "0.6748154", "0.67446667", "0.6739555", "0.67380786", "0.67339027", "0.67337483", "0.6731986", "0.6723468", "0.6721338", "0.67132926", "0.67056805", "0.6680068", "0.6670384", "0.66692895", "0.6667898", "0.66657054", "0.66621226", "0.6658803", "0.6650244", "0.6648988", "0.6642776", "0.6625161", "0.66205007", "0.66110295", "0.6609877", "0.6605032", "0.6595422", "0.6595179", "0.65948033", "0.65909624", "0.65895176", "0.658783", "0.65862805", "0.6573392", "0.65679485", "0.656776", "0.656776", "0.65624976", "0.6560974", "0.65548116", "0.654987", "0.6546159", "0.6543701", "0.653906", "0.6539051", "0.653747", "0.6521822", "0.6517492", "0.65151095", "0.65136856", "0.65136856", "0.65105474", "0.65051526", "0.6501681", "0.64934576", "0.6490476", "0.64897704", "0.6486527", "0.64847445" ]
0.7134583
9
Entry point for the program
public static void main(String[] args) { server_gui s_gui = new server_gui(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main() {\n \n }", "public static void main()\n\t{\n\t}", "public static void main(){\n\t}", "public static void main(String[] args) {\r\n// Use for unit testing\r\n }", "public static void main() {\n }", "public static void main(String[] args) {\n \n \n \n\t}", "public static void main (String []args){\n }", "public static void main (String[]args) throws IOException {\n }", "public static void main(String[] args) {\n \n \n \n \n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "public static void main(String[] args) {\n\t \t\n\t \t\n\t }", "public static void main(String[] args) {\n \n\n }", "public static void main(String[] args){\n\t\t\n\t\t\n \t}", "public static void main(String []args){\n\n }", "public static void main(String[] args) {\n \r\n\t}", "public static void main (String[] args) {\r\n\t\t \r\n\t\t}", "public static void main(String[] args){\n\n MyApp myApp = new MyApp(); //1\n myApp.runMyApp(); //2\n System.out.println(\"End of Program\"); //3\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) throws IOException{\n\t\trunProgram();\n\t}", "public static void main(String... args) {\n doMain().run();\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String []args){\n }", "public static void main(String []args){\n }", "public static void main (String args[]) {\n\t\t\n }", "public static void main(String[] args) {}", "public static void main(String[] args) {}", "public static void main(String[] args) {\n \n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n \n \n }", "public static void main (String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n // TODO code application logic here\n // some testing? or actually we can't run it standalone??\n }", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n init();\n runIterator();\n Scanner scanner = new Scanner(System.in);\n runApplication(scanner);\n }", "public void runProgram()\n\t{\n\t\tintro();\n\t\tfindLength();\n\t\tguessLetter();\n\t\tguessName();\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t}", "public static void main(String[] args) {\n\t \t\n\t \t\n\t}", "public static void main(String[] args) {\n \n\t}", "public static void main (String [] args){\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n \n\t\t}", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String args[]){\n\t\t\n\t\n\t}", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args)\r\t{", "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t}", "public static void main(String[] args){\n\t\t\r\n\t}", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n \n\t}", "static void main(String[] args)\n {\n }", "public static void main(String[] args){\n \t\n }", "public Main() {\n \n \n }", "static void main(String[] args) {\n }", "public static void main(String[] args) throws IOException {\n \t\n }", "public static void main(String[] args) {\n\t\t\n\t\t\t\n\n\t}", "public static void main(String argv[]) {\n\n\n\n\t}", "public static void main(String args[]) throws IOException {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}" ]
[ "0.77242744", "0.766349", "0.7608318", "0.7458057", "0.7456863", "0.74400395", "0.74208385", "0.7400761", "0.7388358", "0.73609006", "0.7351564", "0.7328646", "0.7322579", "0.7320559", "0.73102325", "0.73097795", "0.730091", "0.72953826", "0.72953826", "0.72936857", "0.7271115", "0.72677726", "0.72677726", "0.72614354", "0.72614354", "0.7260897", "0.72561806", "0.72561806", "0.7255391", "0.72498524", "0.7247801", "0.7247801", "0.7243608", "0.7232063", "0.7232063", "0.7232063", "0.7232063", "0.7232063", "0.7232063", "0.7227468", "0.7226605", "0.72143006", "0.72059625", "0.7195471", "0.71951", "0.7193821", "0.7191672", "0.7191518", "0.7190406", "0.71869236", "0.71793664", "0.7174012", "0.716981", "0.7168376", "0.7168376", "0.7168376", "0.7168376", "0.7168376", "0.7168376", "0.7168376", "0.7168376", "0.7168376", "0.7166482", "0.7159782", "0.7159782", "0.7159782", "0.7159782", "0.7153565", "0.7153565", "0.7153565", "0.7153565", "0.7151598", "0.71508056", "0.7146127", "0.7144565", "0.71432996", "0.71388596", "0.7135988", "0.7134887", "0.71337795", "0.7126833", "0.71257436", "0.7124668", "0.7124231", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864", "0.7123864" ]
0.0
-1
/ Retourne l'id d'un quizz en prenant en compte son nom
public int getQuizzId(String quizzName) { this.db = getWritableDatabase(); String query = "SELECT id_quizz FROM quizz WHERE quizzName=?"; Cursor cursor = this.db.rawQuery(query, new String[] { quizzName }); if (cursor != null) cursor.moveToFirst(); return Integer.parseInt(cursor.getString(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIdQuiz() {\r\n\t\treturn idQuiz;\r\n\t}", "public void getCheque(Integer id) {\n\t\t\r\n\t}", "int getQuestId();", "int getQuestId();", "int getQuestId();", "int getQuestId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "public void chargerLesQuizz(ArrayList<HashMap<String, String>> mesQuizz) {\n Cursor cursor = getCursorForQuizz();\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n HashMap<String, String> map = new HashMap<>();\n map.put(\"id_quizz\", cursor.getString(0));\n map.put(\"quizzName\", cursor.getString(1));\n mesQuizz.add(map);\n cursor.moveToNext();\n }\n cursor.close();\n }", "int getQuestID();", "int getQuestID();", "int getQuestID();", "int getQuestID();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "public java.lang.String getIdFiche(){\r\n return this.idFiche;\r\n }", "java.lang.String getID();", "public static void jouerAuFizzBuzz(){\n\t\tint nb = Tools.inputInt(\"Tapez un nombre : \");\n\t\tint i=0;\n\t\t\n\t\twhile (i<=nb) {\n\t\t\tafficherFizzBuzzOuNombre(i);\n\t\t\ti++;\n\t\t}\n\t}", "public Paises obtenerPaisPorID(Integer txtPais);", "String getIdNumber();", "String getID();", "String getID();", "String getID();", "String getID();", "public final int getId() {\n\t return icqID;\n }", "java.lang.String getQueryId();", "public void setIdQuiz(int idQuiz) {\r\n\t\tthis.idQuiz = idQuiz;\r\n\t}", "public String consultarEstudioUltimaId(){\n //Creamos el conector de bases de datos\n AdmiSQLiteOpenHelper admin = new AdmiSQLiteOpenHelper(this, \"administracion\", null, 1 );\n // Abre la base de datos en modo lectura y escritura\n SQLiteDatabase BasesDeDatos = admin.getWritableDatabase();\n //Consulta El valor t_estudio\n Cursor consultaIdPreguntas = BasesDeDatos.rawQuery(\"SELECT id FROM t_estudios ORDER BY id DESC LIMIT 1\", null);\n\n String idPregunta = \"0\";\n\n if (consultaIdPreguntas.moveToFirst()){\n idPregunta = consultaIdPreguntas.getString(0);\n }\n\n consultaIdPreguntas.close();\n BasesDeDatos.close();\n\n return idPregunta;\n\n }", "public static void afficherFizzBuzzOuNombre(int nb) {\n\t\tif (estUnFizzBuzz(nb)) {\n\t\t\tSystem.out.println(\"FIZZBUZZ\");\n\t\t} else if (estUnBuzz(nb)) {\n\t\t\tSystem.out.println(\"BUZZ\");\n\t\t} else if (estUnFizz(nb)) {\n\t\t\tSystem.out.println(\"FIZZ\");\t\n\t\t} else {\n\t\t\tSystem.out.println(nb);\n\t\t}\n\t}", "String getCampoId();", "public int getNumber() {\n return this.numPizzas;\n }", "public synchronized int getFicha(int id){\n\t\treturn counter++;\n\t}", "public String getId() {\n return getNom();\n }", "public static String getIdBeneficio(){\n //La Clase Math tiene varios metodos que te ayudaran\n //Escoger numero aleatorio entre 100000 y 1\n int idrandom1 = (int) (Math.random() * 1000000 + 1);\n\n String idrandom = Integer.toString(idrandom1);\n\n return idrandom;\n }", "public static void quizz(int nbOfQuestions)\n {\n \tgenerateQuizz(nbOfQuestions);\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Début du quizz : \");\n for(int i = 0; i < nbOfQuestions; i++)\n {\n System.out.println(\"Question \" +(i+1) + \" : \"+nb1[i]+\" + \"+nb2[i]+ \" = ?\");\n answer[i] = sc.nextInt();\n \n if(answer[i] == nb1[i] + nb2[i])\n {\n System.out.println(\"You rock !\");\n }\n else\n {\n System.out.println(\"Too bad ! Here's the answer : \" +(nb1[i]+nb2[i]));\n }\n }\n }", "public int idEmpleado(int cui) throws SQLException{\n obtenerConexion();\n int id = 0;\n PreparedStatement declaracionId = cn.prepareStatement(ID_EMPLEADO);\n declaracionId.setInt(1, cui);\n ResultSet result = declaracionId.executeQuery();\n while(result.next()){\n id = result.getInt(\"id\");\n }\n login.Desconectar();\n return id;\n }", "int getIdNum();", "@Override\n\tpublic int getId() {\n\t\treturn _keHoachKiemDemNuoc.getId();\n\t}", "public int getCaroserieId(String denumire) {\n c = db.rawQuery(\"select id from caroserii where denumire='\" + denumire + \"'\", new String[]{});\n int id=0;\n while(c.moveToNext()){\n id= c.getInt(0);\n }\n return id;\n }", "public int getMarcaId(String denumire) {\n c = db.rawQuery(\"select id from marci where denumire='\" + denumire + \"'\", new String[]{});\n int id=0;\n while(c.moveToNext()){\n id= c.getInt(0);\n }\n return id;\n }", "public boolean quartosExistem(String tipo, int id){\r\n\t\ttry {\r\n\t\t\tStatement st = conexao.createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM quartos\");\r\n\t\t\twhile(rs.next()) if(rs.getInt(1) == id && rs.getString(2).equals(tipo)) return true;\r\n\t\t\treturn false;\r\n\t\t}catch (SQLException e) {return false;}\r\n\t}", "public int getIdenti() {\r\n return identi;\r\n }" ]
[ "0.604366", "0.5799006", "0.5683063", "0.5683063", "0.5683063", "0.5683063", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5525448", "0.5517227", "0.54954517", "0.54954517", "0.54954517", "0.54954517", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5494911", "0.5453931", "0.5416252", "0.5412503", "0.54089296", "0.5389042", "0.5385728", "0.5385728", "0.5385728", "0.5385728", "0.53850263", "0.5373661", "0.53639704", "0.53547704", "0.53356785", "0.53235865", "0.53148174", "0.53123397", "0.52881575", "0.5286292", "0.5249026", "0.5230355", "0.52035266", "0.51985633", "0.5192099", "0.5179378", "0.51697814", "0.5146394" ]
0.67669606
0
/ Permet de renvoyer une arraylist de hashmap comprenant l'id du quizz et son nom
public void chargerLesQuizz(ArrayList<HashMap<String, String>> mesQuizz) { Cursor cursor = getCursorForQuizz(); cursor.moveToFirst(); while (!cursor.isAfterLast()) { HashMap<String, String> map = new HashMap<>(); map.put("id_quizz", cursor.getString(0)); map.put("quizzName", cursor.getString(1)); mesQuizz.add(map); cursor.moveToNext(); } cursor.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);", "public static void mapHashMap(Map<Integer, String> mapHashMap) {\n System.out.println(\"----------------------------- HashMap ----------------------------\");\n System.out.println(\"\\\"HashMap\\\" is unordered!\");\n mapHashMap.put(7, \"Cristiano Ronaldo\");\n mapHashMap.put(10, \"Leo Messi\");\n mapHashMap.put(8, \"Avi Nimni\");\n mapHashMap.put(24, \"Kobi Brian\");\n PrintUtils.printMap(mapHashMap);\n System.out.println();\n // STEP 2 - set p3 name to \"Moshe\"\n System.out.println(\"Set the name of player number 8 to be \\\"Moshe\\\":\");\n mapHashMap.replace(8, \"Avi Nimni\", \"Moshe\");\n // if you use \"put\" instead of \"replace\" it will work to!\n PrintUtils.printMap(mapHashMap);\n System.out.println();\n // STEP 3 - add p5 to the end of the list using using ADD method\n System.out.println(\"Add p5 to the end of the list using ADD method:\");\n System.out.println(\"Not an option!\");\n System.out.println();\n // STEP 4 - add p6 to position 3 the end of the list using ADD method\n System.out.println(\"Add p6 to position 3 the end of the list using ADD method:\");\n System.out.println(\"Not an option, you can wright over it!\");\n System.out.println();\n // STEP 5 - remove p2 from the list\n System.out.println(\"Remove p2 from the list and printing the list using a static method in a utility class:\");\n mapHashMap.remove(10, \"Leo Messi\");\n PrintUtils.printMap(mapHashMap);\n System.out.println();\n }", "public void updateList() {\n\t\tthis.myList.clear();\n\t\tIterator<String> item = this.myHashMap.keySet().iterator();\n\n\t\twhile (item.hasNext())\n\t\t{\n\t\t\tString name = (String)item.next();\n\t\t\tthis.myList.add(name);\n\t\t}\n\t\tthis.nameId = -1;\n\t\t\n\t}", "private static void linkedHashMapMap(Map<Integer, String> linkedHashMapMap) {\n System.out.println(\"----------------------------- LinkedHashMap ----------------------------\");\n System.out.println(\"\\\"TreeMap\\\" is ordered by entry\");\n linkedHashMapMap.put(7, \"Cristiano Ronaldo\");\n linkedHashMapMap.put(10, \"Leo Messi\");\n linkedHashMapMap.put(8, \"Avi Nimni\");\n linkedHashMapMap.put(24, \"Kobi Brian\");\n PrintUtils.printMap(linkedHashMapMap);\n System.out.println();\n // STEP 2 - set p3 name to \"Moshe\"\n System.out.println(\"Set the name of player number 8 to be \\\"Moshe\\\":\");\n linkedHashMapMap.replace(8, \"Avi Nimni\", \"Moshe\");\n // if you use \"put\" instead of \"replace\" it will work to!\n PrintUtils.printMap(linkedHashMapMap);\n System.out.println();\n // STEP 3 - add p5 to the end of the list using using ADD method\n System.out.println(\"Add p5 to the end of the list using ADD method:\");\n System.out.println(\"Not an option!\");\n System.out.println();\n // STEP 4 - add p6 to position 3 the end of the list using ADD method\n System.out.println(\"Add p6 to position 3 the end of the list using ADD method:\");\n System.out.println(\"Not an option, you can wright over it!\");\n System.out.println();\n // STEP 5 - remove p2 from the list\n System.out.println(\"Remove p2 from the list and printing the list using a static method in a utility class:\");\n linkedHashMapMap.remove(10, \"Leo Messi\");\n PrintUtils.printMap(linkedHashMapMap);\n System.out.println();\n }", "public static HashMap getListas(int cantidad){\n HashMap map = new HashMap();\n for (int i = 0; i < cantidad; i++){\n String name = \"L\" + String.valueOf(i);\n map.put(name, new ArrayList<String>());\n }\n return map;\n }", "public static void main(String[] args) {\n\t\tHashMap<Integer, Movil> moviles = new HashMap<Integer, Movil>();\r\n\t\t\r\n\t\t/*\r\n\t\t//Utilizando \"var\" como en C#\r\n\t\tvar movilJuan = new Movil(111, 4, \"Samsung\", 4);\r\n\t\tvar movilMaria = new Movil(232, 6, \"Apple\", 4);\r\n\t\tvar movilPedro = new Movil(955, 4, \"Xiaomi\", 5);\r\n\t\t*/\r\n\t\tMovil movilJuan = new Movil(111, 4, \"Samsung\", 4);\r\n\t\tMovil movilMaria = new Movil(232, 6, \"Apple\", 4);\r\n\t\tMovil movilPedro = new Movil(955, 4, \"Xiaomi\", 5);\r\n\r\n\t\tMovil movilBusqueda = new Movil(232, 6, \"Apple\", 4);\r\n\t\t\r\n\t\t//Añadimos los elementos a la colección\r\n\t\t/*\r\n\t\tmoviles.put(111, movilJuan);\r\n\t\tmoviles.put(232, movilMaria);\r\n\t\tmoviles.put(955, movilPedro);\r\n\t\t*/\r\n\t\tmoviles.put(movilJuan.getImei(), movilJuan);\r\n\t\tmoviles.put(movilMaria.getImei(), movilMaria);\r\n\t\tmoviles.put(movilPedro.getImei(), movilPedro);\r\n\t\t\r\n\t\t\r\n\t\t//Comprobamos is un elemento se encuentra en la colección por su valor\r\n\t\t//El método containsValue() requiere redefinir el método equals() de la clase Movil para saber que campo debe comparar para determinar que dos objetos sean iguales.\r\n\t\t//En caso de no hacerlo, los objetos se comparan utilizando sus Hashcodes (direcciones de memoria).\r\n\t\tif (moviles.containsValue(movilBusqueda)) {\r\n\t\t\tSystem.out.println(\"Encontrado\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No encontrado\");\r\n\t\t}\r\n\t\t\r\n\r\n\t\t\r\n\t}", "private static void paixu(ArrayList<Integer> p1, Map<Integer, String> map) {\n\t\tCollections.sort(p1);\n\t\tfor (Integer integer : p1) {\n\t\t\tint key = integer;\n\t\t\tString card = map.get(key);\n\t\t\tSystem.out.print(card + \" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t\t//map.\n\t}", "public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }", "public void printHash(String valu){\r\n /*\r\n Put A for Arrangers\r\n V for Vocalists\r\n C for Circles\r\n */\r\n String type=\"\";\r\n Map <Integer,String>TempMap=new HashMap();\r\n switch(valu){\r\n case \"A\":\r\n type=\"Arranger's\";\r\n TempMap.putAll(ArrangersMap);\r\n break;\r\n case \"V\":\r\n type=\"Vocalists's\";\r\n TempMap.putAll(VocalistsMap);\r\n break;\r\n case \"C\":\r\n type=\"Circle's\";\r\n TempMap.putAll(CirclesMap);\r\n break; \r\n }\r\n int counter=0;\r\n List<String> values=new ArrayList<>();\r\n for(int id:TempMap.keySet()){\r\n values.add(TempMap.get(id));\r\n }\r\n TempMap.clear();\r\n Collections.sort(values,Collator.getInstance());\r\n for(String val: values){\r\n val=val.trim();\r\n TempMap.put(counter, val.trim());\r\n //System.out.println(val);\r\n counter++;\r\n }\r\n for(int id:TempMap.keySet()){\r\n System.out.println(\"The \" + type+ \" name is: \"+TempMap.get(id)+ \" The id is:\"+id);\r\n }\r\n }", "public synchronized void addHashToList(String file,HashMap<Integer,Integer> outcome){\n\t\tLinkedList<HashMap<Integer, Integer>> list = (LinkedList<HashMap<Integer,Integer>>)map.get(file);\n\t\tlist.add(outcome);\n\t}", "private void hashMapDemo() {\n HashMap map = new HashMap();\n ArrayList<String> friendList = new ArrayList<>();\n \n // Add items to the ArrayList\n friendList.add(\"Jonathan\");\n friendList.add(\"Jasmine\");\n friendList.add(\"Craig\");\n \n // Add values to the HashMap\n map.put(\"Name\", \"Jonathan\");\n map.put(\"Age\", 26);\n \n // Attempt to add an ArrayList as a value\n map.put(\"Friends\", friendList);\n \n System.out.println(map);\n \n System.out.println(\"Name: \" + map.get(\"Name\"));\n System.out.println(\"Age: \" + map.get(\"Age\"));\n \n // To get the friends list to print out properly we have to iterate through it\n System.out.println(\"Friends: \");\n \n ListIterator iterator = friendList.listIterator();\n \n while (iterator.hasNext()) {\n \n System.out.println(\"\\t\" + iterator.next());\n \n }\n \n }", "private static void remakeMap(HashMap<String, ArrayList<Critter>> population)\r\n {\r\n \t//get a copy of the hash map\r\n \tHashMap<String, ArrayList<Critter>> copy = new HashMap<String, ArrayList<Critter>>(population);\r\n \t//clear the original hash map\r\n \tpopulation.clear();\r\n \t\r\n \t//iterates through all of the critters in the copy of the hash map\r\n \tIterator<String> populationIter = copy.keySet().iterator();\r\n \t\r\n \twhile (populationIter.hasNext()) { \r\n \t\t\r\n \t\t//get the String position\r\n String pos = populationIter.next();\r\n \r\n //get the critter list in that position\r\n ArrayList<Critter> critterList = copy.get(pos);\r\n \r\n //Iterate through the critters ArrayList \r\n ListIterator<Critter> currCritter = critterList.listIterator();\r\n while(currCritter.hasNext()) {\r\n \tCritter thisCritter = currCritter.next();\r\n \t//get the new coordinates of the critter\r\n \tString critterKey = thisCritter.getCritterPosition();\r\n \t\r\n \t//if the position is already a key in the hash map\r\n \tif(population.containsKey(critterKey)) {\r\n \t\t//add the critter to the ArrayList at key of coordinates\r\n \t\tArrayList<Critter> list = population.get(critterKey);\r\n \t\tlist.add(thisCritter);\r\n \t\tpopulation.replace(critterKey, list);\r\n \t}\r\n \r\n \t//if position is not already a key in the hash map\r\n \telse {\r\n \t\tArrayList<Critter> newCritters = new ArrayList<Critter>();\r\n \t\tnewCritters.add(thisCritter);\r\n \t\tpopulation.put(critterKey, newCritters);\r\n \t}\r\n }\r\n \t}\r\n }", "private void prepareAlbums() {\n\n Album a;\n\n for(HashMap.Entry<String,ArrayList<String>> entry : Test.subcatList.get(name).entrySet()){\n key = entry.getKey();\n value = entry.getValue();\n a = new Album(key , value.get(2));\n albumList.add(a);\n System.out.println(\"dddd : \" + key + \" \" + value.get(2));\n }\n\n adapter.notifyDataSetChanged();\n\n }", "public static void main(String[] args) {\n LinkedHashMap<Integer, Pracownik> mapa = new LinkedHashMap<>();\n Pracownik[] pracownicy = {\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\"),\n new Pracownik(\"Agnieszka\"),\n new Pracownik(\"Aga\"),\n new Pracownik(\"Damian\"),\n new Pracownik(\"Michał\")\n };\n\n for(Pracownik pracownik: pracownicy){\n mapa.put(pracownik.getID(),pracownik);\n }\n System.out.println(mapa);\n\n mapa.remove(3);\n\n\n mapa.put(4,new Pracownik(\"Asia\"));\n mapa.put(3,new Pracownik(\"Patryk\"));\n\n\n\n mapa.entrySet();\n System.out.println(mapa);\n for(Map.Entry<Integer,Pracownik> wpis: mapa.entrySet() ){\n // System.out.println(\"ID \" + wpis.getKey()+ \" Imie: \" + wpis.getValue().getImie());\n\n\n\n\n System.out.println(\"ID Pracownika \"+ wpis.getKey());\n System.out.println(\"Imie \" + wpis.getValue().getImie());\n\n\n }\n System.out.println(\"---------------------------------------------------------------\");\n TreeMap<Integer,Pracownik> mapaPosotrowana = new TreeMap<Integer, Pracownik>(mapa);\n\n Map<Integer,Pracownik> subMapa = mapaPosotrowana.subMap(0,4);\n\n for(Map.Entry<Integer,Pracownik> wpis: subMapa.entrySet() ){\n // System.out.println(\"ID \" + wpis.getKey()+ \" Imie: \" + wpis.getValue().getImie());\n\n\n\n if(subMapa.isEmpty()){\n System.out.println(\"PUSTO\");\n }else{\n System.out.println(\"ID Pracownika \"+ wpis.getKey());\n System.out.println(\"Imie \" + wpis.getValue().getImie());\n }\n\n }\n\n Map<Date, Event> exampleMap;\n\n\n\n\n\n\n\n\n\n }", "private static List<ajr> m19375a(Map<String, String> map) {\n if (map == null) {\n return null;\n }\n if (map.isEmpty()) {\n return Collections.emptyList();\n }\n List<ajr> arrayList = new ArrayList(map.size());\n for (Entry entry : map.entrySet()) {\n arrayList.add(new ajr((String) entry.getKey(), (String) entry.getValue()));\n }\n return arrayList;\n }", "public List<Map<String, Object>> getSolicitudList( Long numeroProgramacion, int accion) {\n\t\t\n\t\tlogger.info(\" método : getSolicitudList\");\n\n\t\tList<Map<String, Object>> solicitudes = new ArrayList<Map<String, Object>>();\n\t\t\n\t\t\n\t\tList<SolicitudServicio> solicitudesList = null;\n\t\t\n\t\tif(accion == ConstantBusiness.ACCION_NUEVA_PROGRAMACION){\n\t\t\t\n\t\t\tlogger.info(\" mostrando solicitudes en memoria\");\n\t\t\t\t\n\t\t\t\tsolicitudesList = solicitudServicioDao.getSolicitudListPorEstado(ConstantBusiness.ESTADO_SOLICITUD_PENDIENTE);\n\t\t\t\t\n\t\t\t\tfor (SolicitudServicio s : solicitudesList) {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"numeroSolicitud\", s.getNumeroSolicitud());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/*Calendar cal = Calendar.getInstance();\n\t\t\t\t\tcal.setTime(s.getFechaSolicitud());\n\t\t\t\t\tint year = cal.get(Calendar.YEAR);\n\t\t\t\t\tString nsoli = \"00000\"+s.getNumeroSolicitud() ;\n\t\t\t\t\tnsoli = nsoli.substring(nsoli.length()-5,nsoli.length());\n\t\t\t\t\tString tag = s.getTipoSolicitud().getAbreviatura()+\"\"+year+\"\"+nsoli;*/\n\t\t\t\t\t\n\t\t\t\t\tmap.put(\"tag\", Util.getTag(s));\n\t\t\t\t\tDate fecPrgn = Calendar.getInstance().getTime();\n\t\t\t\t\tGrupoAtencion g = getGrupoAtencion(fecPrgn, s);\n\t\t\t\t\tmap.put(\"descripcionGrupo\", g==null?\"\":g.getDescripcion());\n\t\t\t\t\tmap.put(\"prioridad\", getPriortidad(s));\n\t\t\t\t\t//map.put(\"latitud\", s.getPoste().getLatitud().doubleValue());\n\t\t\t\t\t//map.put(\"longitud\", s.getPoste().getLongitud().doubleValue());\n\t\t\t\t\tmap.put(\"latitud\", s.getContratoServicio().getLatitud());\n\t\t\t\t\tmap.put(\"longitud\", s.getContratoServicio().getLongitud());\n\t\t\t\t\n\t\t\t\t\tmap.put(\"tipo\", s.getTipoSolicitud().getDescripcion());\n\t\t\t\t\t\n\t\t\t\t\tsolicitudes.add(map);\n\t\t\t\t}\n\t\t\t\n\n\t\t\t\t\n\t\t\n\t\t}else if(accion == ConstantBusiness.ACCION_EDITA_PROGRAMACION){\n\t\t\t\n\n\t\t\tlogger.info(\" mostrando solicitudes registradas \");\n\t\t\t\n\t\t\tList<GrupoAtencionDetalle> GrupoAtencionDetalleList = grupoAtencionDetalleDao.getGrupoAtencionDetalleListPorProgramacion(numeroProgramacion);\n\t\t\tsolicitudesList = new ArrayList<>();\n\t\t\tfor (GrupoAtencionDetalle g : GrupoAtencionDetalleList) {\n\t\t\t\t\n\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\tSolicitudServicio s = g.getSolicitudServicio();\n\t\t\t\tmap.put(\"numeroSolicitud\", s.getNumeroSolicitud());\n\t\t\n\t\t\t\t/*Calendar cal = Calendar.getInstance();\n\t\t\t\tcal.setTime(s.getFechaSolicitud());\n\t\t\t\tint year = cal.get(Calendar.YEAR);\n\t\t\t\tString nsoli = \"00000\"+s.getNumeroSolicitud() ;\n\t\t\t\tnsoli = nsoli.substring(nsoli.length()-5,nsoli.length());\n\t\t\t\tString tag = s.getTipoSolicitud().getAbreviatura()+\"\"+year+\"\"+nsoli;*/\n\t\t\t\t\n\t\t\t\tmap.put(\"tag\", Util.getTag(s));\n\t\t\t\tmap.put(\"descripcionGrupo\", g==null?\"\":g.getGrupoAtencion().getDescripcion());\n\t\t\t\tmap.put(\"prioridad\", getPriortidad(s));\n\t\t\t\t//map.put(\"latitud\", s.getPoste().getLatitud().doubleValue());\n\t\t\t\t//map.put(\"longitud\", s.getPoste().getLongitud().doubleValue());\n\t\t\t\tmap.put(\"latitud\", s.getContratoServicio().getLatitud());\n\t\t\t\tmap.put(\"longitud\", s.getContratoServicio().getLongitud());\n\t\t\t\t\n\t\t\t\tmap.put(\"tipo\", s.getTipoSolicitud().getDescripcion());\n\t\t\t\tsolicitudes.add(map);\n\t\t\t\tsolicitudesList.add(s);\n\t\t\t\t//logger.info( s.getNumeroSolicitud() + \" - \"+g.getGrupoAtencion().getDescripcion());\n\t\t\t}\n\t\t}\n\t\t// añadiendo a temporal\n\t\tsolicitudesCached = new ArrayList<>();\n\t\tsolicitudesCached.addAll(solicitudesList);\n\t\t\n\t\treturn solicitudes;\n\t}", "private void initializeData() {\n\n /**\n * Food\n */\n mFoodArrayList = new ArrayList<>();\n HashMap<String, String> hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"1\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_1));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"2\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_2));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"3\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_3));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"4\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_4));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"5\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_5));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"6\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_6));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"7\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_7));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"8\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_8));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"9\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_9));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"10\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_10));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"11\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_11));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"12\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_12));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"13\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_13));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"14\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_14));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"15\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_15));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"16\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_16));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"17\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_17));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"18\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_18));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"19\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_19));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"20\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_20));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"21\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_21));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"22\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_22));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"23\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_23));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"24\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_24));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"25\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_25));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"26\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_26));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"27\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_27));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"28\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_28));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"29\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_29));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"30\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_30));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"31\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_31));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"32\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_32));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"33\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_33));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"34\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_34));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"35\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_35));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"36\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_36));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"37\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_37));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"38\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_38));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"39\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_39));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"40\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_40));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"41\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_41));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"42\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_42));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"43\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_43));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"44\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_44));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"45\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_45));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"46\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_46));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"47\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_47));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"48\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_48));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"49\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_49));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"50\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_50));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"51\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_51));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"52\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_52));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"53\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_53));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"54\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_54));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n hashMapac = new HashMap<String, String>();\n\n hashMapac.put(\"id\", \"55\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_55));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"56\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_56));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"57\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_57));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"58\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_58));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"59\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_59));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"60\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_60));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"61\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_61));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"62\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_62));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"63\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_63));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"64\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_64));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"65\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_65));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"66\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_66));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"67\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_67));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"68\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_68));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"69\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_69));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"70\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_70));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"71\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_71));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"72\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_72));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"73\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_73));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"74\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_74));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"75\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_75));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"76\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_76));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"77\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_77));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"78\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_78));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"79\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_79));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"80\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_80));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"81\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_81));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"82\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_82));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"83\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_83));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"84\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_84));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"85\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_85));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"86\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_86));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"87\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_87));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"88\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_88));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"89\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_89));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"90\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_90));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"91\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_91));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"92\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_92));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"93\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_93));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"94\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_94));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"95\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_95));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"96\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_96));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"97\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_97));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"98\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_98));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"99\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_99));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"127\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_food_127));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_food_url));\n mFoodArrayList.add(hashMapac);\n\n\n /**\n * Environment\n */\n mEnvironmentArrayList = new ArrayList<HashMap<String, String>>();\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"109\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_109));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"110\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_110));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"111\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_111));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"112\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_112));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"113\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_113));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"114\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_114));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"115\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_115));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"116\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_116));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"117\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_117));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"118\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_118));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"119\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_119));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"120\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_120));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"121\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_121));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"122\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_122));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"123\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_123));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"124\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_124));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"125\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_125));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"126\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_126));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"128\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_environment_128));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_environment_url));\n mEnvironmentArrayList.add(hashMapac);\n\n\n /**\n * Medication\n */\n mMedicationArrayList = new ArrayList<HashMap<String, String>>();\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"100\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_medication_100));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_medication_url));\n mMedicationArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"101\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_medication_101));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_medication_url));\n mMedicationArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"102\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_medication_102));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_medication_url));\n mMedicationArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"103\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_medication_103));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_medication_url));\n mMedicationArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"104\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_medication_104));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_medication_url));\n mMedicationArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"105\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_medication_105));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_medication_url));\n mMedicationArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"106\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_medication_106));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_medication_url));\n mMedicationArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"107\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_medication_107));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_medication_url));\n mMedicationArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"108\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_medication_108));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_medication_url));\n mMedicationArrayList.add(hashMapac);\n\n hashMapac = new HashMap<String, String>();\n hashMapac.put(\"id\", \"129\");\n hashMapac.put(\"value\", getResources().getString(R.string.allergy_medication_129));\n hashMapac.put(StringConstants.KEY_SEARCH_LIST_HYPERLINK, getResources().getString(R.string.allergy_medication_url));\n mMedicationArrayList.add(hashMapac);\n }", "protected List<Map<String, List<String>>> createDefaultBoxAceMapList() {\n List<Map<String, List<String>>> list = new ArrayList<Map<String, List<String>>>();\n\n // role2\n List<String> rolList = new ArrayList<String>();\n Map<String, List<String>> map = new HashMap<String, List<String>>();\n rolList.add(\"read\");\n map.put(UrlUtils.aclRelativePath(Box.MAIN_BOX_NAME, \"role2\"), rolList);\n list.add(map);\n\n // role3\n rolList = new ArrayList<String>();\n map = new HashMap<String, List<String>>();\n rolList.add(\"write\");\n map.put(UrlUtils.aclRelativePath(Box.MAIN_BOX_NAME, \"role3\"), rolList);\n list.add(map);\n\n // role4\n rolList = new ArrayList<String>();\n map = new HashMap<String, List<String>>();\n rolList.add(\"read\");\n rolList.add(\"write\");\n map.put(UrlUtils.aclRelativePath(Box.MAIN_BOX_NAME, \"role4\"), rolList);\n list.add(map);\n\n // role5\n rolList = new ArrayList<String>();\n map = new HashMap<String, List<String>>();\n rolList.add(\"exec\");\n map.put(UrlUtils.aclRelativePath(Box.MAIN_BOX_NAME, \"role5\"), rolList);\n list.add(map);\n\n // role6\n rolList = new ArrayList<String>();\n map = new HashMap<String, List<String>>();\n rolList.add(\"read-acl\");\n map.put(UrlUtils.aclRelativePath(Box.MAIN_BOX_NAME, \"role6\"), rolList);\n list.add(map);\n\n // role7\n rolList = new ArrayList<String>();\n map = new HashMap<String, List<String>>();\n rolList.add(\"write-acl\");\n map.put(UrlUtils.aclRelativePath(Box.MAIN_BOX_NAME, \"role7\"), rolList);\n list.add(map);\n\n // role8\n rolList = new ArrayList<String>();\n map = new HashMap<String, List<String>>();\n rolList.add(\"write-properties\");\n map.put(UrlUtils.aclRelativePath(Box.MAIN_BOX_NAME, \"role8\"), rolList);\n list.add(map);\n\n // role9\n rolList = new ArrayList<String>();\n map = new HashMap<String, List<String>>();\n rolList.add(\"read-properties\");\n map.put(UrlUtils.aclRelativePath(Box.MAIN_BOX_NAME, \"role9\"), rolList);\n list.add(map);\n\n return list;\n }", "public static void main(String[] args) {\n ArrayList<Student> students = new ArrayList<Student>();\n\n\n // adding to student: first name, last name, unique i.d. , and grade.\n Student student1 = new Student(\"Jessica\", \"Manning\", 1, 1);\n students.add(student1);\n Student student2 = new Student(\"Guadalupe\", \"Copeland\", 2, 1);\n students.add(student2);\n Student student3 = new Student(\"Maureen\", \"Schultz\", 3, 1);\n students.add(student3);\n Student student4 = new Student(\"Chester\", \"Bailey\", 4, 1);\n students.add(student4);\n Student student5 = new Student(\"Wanda\", \"Frank\", 5, 1);\n students.add(student5);\n Student student6 = new Student(\"Lynda\", \"Zimmerman\", 6, 1);\n students.add(student6);\n Student student7 = new Student(\"Valerie\", \"Saunders\", 7, 1);\n students.add(student7);\n Student student8 = new Student(\"Krystal\", \"Mcdaniel\", 8, 1);\n students.add(student8);\n Student student9 = new Student(\"Jared\", \"Parks\", 9, 1);\n students.add(student9);\n Student student10 = new Student(\"Angela\", \"Mendez\", 11, 1);\n students.add(student10);\n Student student11 = new Student(\"Linda\", \"Cain\", 12, 1);\n students.add(student11);\n Student student12 = new Student(\"Ellen\", \"Morrison\", 13, 1);\n students.add(student12);\n Student student13 = new Student(\"Tomas\", \"Padilla\", 14, 1);\n students.add(student13);\n Student student14 = new Student(\"Delbert\", \"Love\", 15, 1);\n students.add(student14);\n Student student15 = new Student(\"Blanca\", \"Hall\", 10, 1);\n students.add(student15);\n System.out.println(students);\n\n\n // Code a HashMap that takes a Teacher for a key and a Set of students for the value (not a List of students). Each Teacher will have 5 different students in a HashSet.\n\n //put the students into three groups\n Set<Student> classOne = new HashSet<>();\n classOne.add(student1);\n classOne.add(student2);\n classOne.add(student3);\n classOne.add(student4);\n classOne.add(student5);\n\n Set<Student> classTwo = new HashSet<>();\n classTwo.add(student6);\n classTwo.add(student7);\n classTwo.add(student8);\n classTwo.add(student9);\n classTwo.add(student10);\n\n Set<Student> classThree = new HashSet<>();\n classThree.add(student11);\n classThree.add(student12);\n classThree.add(student13);\n classThree.add(student14);\n classThree.add(student15);\n\n //create an array list of teachers\n ArrayList<Teacher> teachers = new ArrayList<>();\n\n Teacher teacher1 = new Teacher(\"Minerva\", \"Mcgonnagal\", 1, 1);\n teachers.add(teacher1);\n\n Teacher teacher2 = new Teacher(\"Albus\", \"Dumbledore\", 2, 1);\n teachers.add(teacher2);\n\n Teacher teacher3 = new Teacher(\"Professor\", \"Sprout\", 3, 1);\n teachers.add(teacher3);\n\n\n System.out.println(teachers);\n\n\n //create a hashmap with teacher as the key and student as the value\n\n Map<Teacher, Set> roster = new HashMap<>();\n roster.put(teacher1, classOne);\n roster.put(teacher2, classTwo);\n roster.put(teacher3, classThree);\n\n //print out the map keys in a for each loop (use the keySet() method).\n\n for (Teacher key: roster.keySet()) {\n System.out.println(key);\n }\n//Print out the map values in a for loop (use the values() method).\n for (Set value : roster.values()) {\n System.out.println(value);\n\n }\n\n }", "public void EstaticCache(){\n LinkedHashMap<String, String> ParticionAux = new LinkedHashMap <String,String>();\n Cache.add(ParticionAux);\n for (int i = 0; i < Estatico.length; i++) {\n \n Cache.get(0).put(Estatico[i], ResEstatico[i]);\n // System.out.println(\"===== Particion de Cache N°\"+ParticionAux.values()+\" =====\");\n \n }\n //this.Cache.add(ParticionAux); // carga el hashMap en una particion del cache\n //System.out.println(\"===== Particion de Cache AQUIAQUI\"+Cache.get(0).values()+\" =====\");\n // ParticionAux.clear(); // limpia el Hashmap aux\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t//create a list type and add\n\t\tList<Integer> jack = new ArrayList<Integer>();\n\t\t\n\t\tSystem.out.print(\"Adding to list [jack]: \");\n\t\t//do this twice to create duplicates\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tSystem.out.print(i + \" \");\n\t\t\tjack.add(i);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tSystem.out.print(i + \" \");\n\t\t\tjack.add(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\\nDone. Notice there are two of each integer in the ArrayList jack now.\");\n\t\t\n\t\t\n\t\t\n\t\t//user set to identify unique elements\n\t\t\n\t\tSystem.out.println(\"\\nUsing a set, we can identify unique values, if we try to add all elements from the ArrayList.\");\n\t\tHashSet<Integer> jackSet = new HashSet<Integer>();\n\t\tfor(int i = 0; i < jack.size(); i++) {\n\t\t\tjackSet.add(jack.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(jackSet);\n\t\t\n\t\tSystem.out.println(\"This is a unique feature of Sets\");\n\t\t\n\t\t//hashmap\n\t\tHashMap<String, String> jackHash = new HashMap<String, String>();\n\t\t//populate hashmap\n\t\tString[] myNames = {\"Jack\", \"Brent\", \"Ethan\", \"Levi\"};\n\t\tfor(String s : myNames) {\n\t\t\tjackHash.put(s, \"Person\");\n\t\t}\n\t\t\n\t\t//treemap\n\t\tTreeMap<String, String> jackTree = new TreeMap<String, String>();\n\t\t//populate treemap\n\t\tfor(String s : myNames) {\n\t\t\tjackTree.put(s, \"Person\");\n\t\t}\n\t\t\n\t\t//now we have idenitical hashmap and treemap.\n\t\t\n\t\t//lets try to print them\n\t\t\n\t\t//remember the order names were added:\n\t\tSystem.out.println(\"\\nThis is the original order:\");\n\t\tfor(String s : myNames) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\nHere is the hashmap:\");\n\t\tfor(String h : jackHash.keySet()) {\n\t\t\tSystem.out.println(h);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"\\nHere is the treemap:\");\n\t\tfor(String t : jackTree.keySet()) {\n\t\t\tSystem.out.println(t);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\nNow, add another name to both collections\");\n\t\t\n\t\tjackTree.put(\"Carter\", \"Person\");\n\t\tjackHash.put(\"Carter\", \"Person\");\n\t\t\n\t\tSystem.out.println(\"\\nHas the order changed?\");\n\t\tSystem.out.println(\"\\nHere is the hashmap:\");\n\t\tfor(String h : jackHash.keySet()) {\n\t\t\tSystem.out.println(h);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"\\nHere is the treemap:\");\n\t\tfor(String t : jackTree.keySet()) {\n\t\t\tSystem.out.println(t);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"\\nTo guarantee (some type of order), use a TreeSet\");\n\t\tSystem.out.println(\"Notice how it is in alphabetical order.\");\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tArrayList<String> givenArray = new ArrayList<String>();\n\t\tArrayList<String> listOfNamesStartingWithA = new ArrayList<String>();\n\t\tArrayList<String> listOfNamesStartingWithG = new ArrayList<String>();\n\t\tgivenArray.add(\"apple\");\n\t\tgivenArray.add(\"appleinc\");\n\t\tgivenArray.add(\"applemac\");\n\t\tgivenArray.add(\"google\");\n\t\t\n\t\tHashMap<String, ArrayList> map = new HashMap<String, ArrayList>();\n\t\tmap.clone();\n\t\tIterator<String> itr = givenArray.iterator();\n\t\t\n\t\twhile(itr.hasNext()) {\n\t\t\tString arrayListOb = itr.next();\n\n\t\t\tString key =arrayListOb.substring(0, 1);\n\t\t\tif(key.startsWith(\"a\")) {\n\t\t\t\tlistOfNamesStartingWithA.add(arrayListOb);\t\n\t\t\t\tmap.put(key, listOfNamesStartingWithA);\t\n\t\t\t}\n\t\t\tif(key.startsWith(\"g\")) {\n\t\t\t\tlistOfNamesStartingWithG.add(arrayListOb);\n\t\t\t\tmap.put(key, listOfNamesStartingWithG);\n\t\t\t}\t\t\t\t\n\t\t\tSystem.out.println(key);\n\t\t\tSystem.out.println(map.get(key));\n\t\t}\n\t\tSystem.out.println(map.size());\n\t\t//System.out.println(map.get(\"g\"));\n\t\t//System.out.println(map.get(\"a\"));\n\t\t/*for(Map.Entry<String,ArrayList> entry: map.entrySet())\n\t\t{\n\t\t\tSystem.out.println(map.get(\"a\"));\n\t\t}*/\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic static List<HashMap<String, String>> getChoiceGan(String choice) {\n\t\tList<rcmMusicListMain> musicLists = rcmMusicListMain.getAllMusic();\n\t\t\n\t\tList<HashMap<String, String>> aList = new ArrayList<HashMap<String, String>>();\n\t\tHashMap<String, String> aMap = new HashMap<String, String>();\n\t\tHashMap<String, String> bMap = new HashMap<String, String>();\n\t\t\n\t\tmusicLists.stream()\n\t\t\t.filter(musicList -> musicList.getGenre1().equals(choice) \n\t\t\t\t\t|| musicList.getGenre2().equals(choice))\n\t\t\t.sorted((musicList1, musicList2) -> musicList2.getPlayNum() - musicList1.getPlayNum())\n\t\t\t.limit(10).forEach(musicList -> {\n\t\t\t\t\t//System.out.println(musicList.getSeq()+\". \"+musicList.getTitle()+\" : \"+musicList.getSinger());\n\t\t\t\t\taMap.put(\"TITLE\", musicList.getTitle());\n\t\t\t\t\taMap.put(\"ITEM\", musicList.getSinger());\n\t\t\t\t\taList.add((HashMap<String, String>)aMap.clone());\n\t\t\t\t});\n\t\t\n\t\t\n\t\tfor(int i=0; i<aList.size(); i++) {\n\t\t\tbMap = aList.get(i); \n\t\t\tbMap.put(\"SEQ\", i+1+\"\");\n\t\t\tSystem.out.println(bMap.get(\"SEQ\")+\". \"+bMap.get(\"TITLE\")+\" : \"+bMap.get(\"ITEM\"));\n\t\t\t//System.out.println(aList.get(i).get(\"SEQ\")+\". \"+aList.get(i).get(\"TITLE\")+\" : \"+aList.get(i).get(\"ITEM\"));\n\t\t}\n\t\t\n\t\treturn aList; \n\t}", "public static void main(String[] args) {\r\n\t\t\t\t\r\n\t\tPutnici p1 = new Putnici (\"Milan\", \"Milanovic\", 105864312);\r\n\t\tPutnici p2 = new Putnici (\"Gordana\", \"Gajic\", 103886432);\r\n\t\tPutnici p3 = new Putnici (\"Zorana\", \"Pajic\", 103866115);\r\n\t\tPutnici p4 = new Putnici (\"Gordan\", \"Pajic\", 105612834);\r\n\t\tPutnici p5 = new Putnici (\"Zoltan\", \"Hrdelj\", 104916773);\r\n\t\tPutnici p6 = new Putnici (\"Milana\", \"Hrdelj\", 105834491);\r\n\t\tPutnici p7 = new Putnici (\"Atila\", \"Hrdelj\", 112586493);\r\n\t\tPutnici p8 = new Putnici (\"Dejan\", \"Petrovic\", 104386166);\r\n\t\tPutnici p9 = new Putnici (\"Bozidarka\", \"Serdar\", 105821386);\r\n\t\tPutnici p10 = new Putnici (\"Dobrivoj\", \"Serdar\", 104386991);\r\n\t\tPutnici p11 = new Putnici (\"Stefana\", \"Drobnjak\", 105813671);\r\n\t\tPutnici p12 = new Putnici (\"Dubravka\", \"Stojakovic\", 103846939);\r\n\t\t\r\n\t\tList<Putnici>listaPutnika = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnika.add(p1);\r\n\t\tlistaPutnika.add(p2);\r\n\t\tlistaPutnika.add(p3);\r\n\t\tlistaPutnika.add(p4);\r\n\t\tlistaPutnika.add(p5);\r\n\t\tlistaPutnika.add(p6);\r\n\t\tlistaPutnika.add(p7);\r\n\t\tlistaPutnika.add(p8);\r\n\t\tlistaPutnika.add(p9);\r\n\t\tlistaPutnika.add(p10);\r\n\t\tlistaPutnika.add(p11);\r\n\t\tlistaPutnika.add(p12);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT1 = new ArrayList<Putnici>();\r\n\t\t\t\t\r\n\t\tlistaPutnikaT1.add(p1);\r\n\t\tlistaPutnikaT1.add(p2);\r\n\t\tlistaPutnikaT1.add(p5);\r\n\t\tlistaPutnikaT1.add(p6);\r\n\t\tlistaPutnikaT1.add(p7);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT2 = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnikaT2.add(p3);\r\n\t\tlistaPutnikaT2.add(p4);\r\n\t\tlistaPutnikaT2.add(p8);\r\n\t\tlistaPutnikaT2.add(p12);\r\n\t\t\r\n\t\tList<Putnici>listaPutnikaT3 = new ArrayList<Putnici>();\r\n\t\t\r\n\t\tlistaPutnikaT3.add(p9);\r\n\t\tlistaPutnikaT3.add(p10);\r\n\t\tlistaPutnikaT3.add(p11);\r\n\t\t\r\n\t\tPutovanje v1 = new Putovanje (\"Sardinija-Algero\", 950.25, listaPutnikaT3);\r\n\t\tPutovanje v2 = new Putovanje (\"Sejseli-Ostrvo Mae\", 1024.5, listaPutnikaT1);\r\n\t\tPutovanje v3 = new Putovanje (\"Meksiko-Kankun\", 1456.34, listaPutnikaT2);\r\n\t\t\r\n\t\tList<Putovanje> listaPonuda = new ArrayList<Putovanje>();\r\n\t\tlistaPonuda.add(v1);\r\n\t\tlistaPonuda.add(v2);\r\n\t\tlistaPonuda.add(v3);\r\n\t\t\r\n\t\tSystem.out.println(\"U ponudi su \" + listaPonuda.size() + \" destinacije.\");\r\n\t\tSystem.out.println(\"Pogledajte kompletnu ponudu: \");\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"1. Lokacija: \");\r\n\t\tsb.append(v1.getDestinacija());\r\n\t\tsb.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb.append(v1.getCena());\r\n\t\tsb.append(\" evra.\");\r\n\t\tsb.append(\" Putnici: \");\r\n\t\tsb.append(listaPutnikaT3.get(0).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(0).getPrezime());\r\n\t\tsb.append(\", \");\r\n\t\tsb.append(listaPutnikaT3.get(1).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(1).getPrezime());\r\n\t\tsb.append(\", \");\r\n\t\tsb.append(listaPutnikaT3.get(2).getIme());\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(listaPutnikaT3.get(2).getPrezime());\r\n\t\tsb.append(\".\");\r\n\t\tSystem.out.println(sb.toString());\r\n\t\t\r\n\t\tStringBuilder sb1 = new StringBuilder();\r\n\t\tsb1.append(\"2. Lokacija: \");\r\n\t\tsb1.append(v2.getDestinacija());\r\n\t\tsb1.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb1.append(v2.getCena());\r\n\t\tsb1.append(\" evra.\");\r\n\t\tsb1.append(\" Putnici: \");\r\n\t\tsb1.append(listaPutnikaT1.get(0).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(0).getPrezime());\r\n\t\tsb1.append(\", \");\r\n\t\tsb1.append(listaPutnikaT1.get(1).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(1).getPrezime());\r\n\t\tsb1.append(\", \");\r\n\t\tsb1.append(listaPutnikaT1.get(2).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(2).getPrezime());\r\n\t\tsb1.append(listaPutnikaT1.get(3).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(3).getPrezime());\r\n\t\tsb1.append(listaPutnikaT1.get(4).getIme());\r\n\t\tsb1.append(\" \");\r\n\t\tsb1.append(listaPutnikaT1.get(4).getPrezime());\r\n\t\tsb1.append(\".\");\r\n\t\tSystem.out.println(sb1.toString());\r\n\t\t\r\n\t\tStringBuilder sb2 = new StringBuilder();\r\n\t\tsb2.append(\"3. Lokacija: \");\r\n\t\tsb2.append(v3.getDestinacija());\r\n\t\tsb2.append(\", cena aranzmana za 10 nocenja sa avionskim prevozom: \");\r\n\t\tsb2.append(v3.getCena());\r\n\t\tsb2.append(\" evra.\");\r\n\t\tsb2.append(\" Putnici: \");\r\n\t\tsb2.append(listaPutnikaT2.get(0).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(0).getPrezime());\r\n\t\tsb2.append(\", \");\r\n\t\tsb2.append(listaPutnikaT2.get(1).getIme());\r\n\t\tsb2.append(\" \"); \r\n\t\tsb2.append(listaPutnikaT2.get(1).getPrezime());\r\n\t\tsb2.append(\", \");\r\n\t\tsb2.append(listaPutnikaT2.get(2).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(2).getPrezime());\r\n\t\tsb2.append(listaPutnikaT2.get(3).getIme());\r\n\t\tsb2.append(\" \");\r\n\t\tsb2.append(listaPutnikaT2.get(3).getPrezime());\t\t\r\n\t\tsb2.append(\".\");\r\n\t\tSystem.out.println(sb2.toString());\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"Za destinaciju \" + v2.getDestinacija() + \", trenutna cena aranzmana je\");\t\t\r\n\t\tSystem.out.println(v2.getCena() + \" evra za 10 nocenja sa avionskim prevozom.\");\r\n\t\t\t\t\r\n\t\tv2.setCena(1125.0);\r\n\t\tSystem.out.println(\"Od 10. juna cena aranzmana za destinaciju \" + v2.getDestinacija() + \" iznosice \" + v2.getCena() + \" evra.\");\r\n\t\t\r\n\t\tlistaPonuda.remove(v3);\t\r\n\t\tSystem.out.println(\"Zbog novonastale situacije obavestavamo vas o izmenama ponude putovanja. \");\r\n\t\tSystem.out.println(\"Nakon izmena u ponudi ostaju \" + listaPonuda.size() + \" destinacije: \");\r\n\t\tSystem.out.println(\"1. \" + listaPonuda.get(0).getDestinacija() + \"- cena aranzmana za 10 nocenja sa avionskim prevozom: \" + listaPonuda.get(0).getCena());\r\n\t\tSystem.out.println(\"2. \" + listaPonuda.get(1).getDestinacija() + \"- cena aranzmana za 10 nocenja sa avionskim prevozom: \" + listaPonuda.get(1).getCena());\r\n\t\tSystem.out.println();\r\n\t\t\t\t\r\n\t\t}", "@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}", "@Override\r\n public int hashCode() {\r\n return nome.hashCode();\r\n }", "void setHashMap();", "public ArrayList<HashMap<String, String>> getdisp(String idped) {\n ArrayList<HashMap<String, String>> wordList;\n //crea lista\n wordList = new ArrayList<HashMap<String, String>>();\n\n ///////QUERY DE DISPOSITIVOS\n String selectQuery = \"SELECT code_scan,name,description,comments,latitude,longitude,time_install,fk_order_id,photos, price, warranty FROM things where fk_order_id = '\"+idped+\"'\";\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) {\n do {\n HashMap<String, String> map = new HashMap<String, String>();\n map.put(\"code_scan\", cursor.getString(0));\n map.put(\"name\", cursor.getString(1));\n map.put(\"description\", cursor.getString(2));\n map.put(\"comments\", cursor.getString(3));\n map.put(\"latitude\", cursor.getString(4));\n map.put(\"longitude\", cursor.getString(5));\n map.put(\"time_install\", cursor.getString(6));\n map.put(\"fk_order_id\", cursor.getString(7));\n map.put(\"photos\", cursor.getString(8));\n map.put(\"price\", cursor.getString(9));\n map.put(\"warranty\", cursor.getString(10));\n\n wordList.add(map);\n } while (cursor.moveToNext());\n }\n database.close();\n return wordList;\n }", "private void createHisMap(Customer customer)\n {\n hisMap= new HashMap<>();\n idFile.open(\"history.txt\");\n String line=idFile.getNextLine();\n String name = customer.getUsername();\n specificLine=-1;\n int i=0;\n while (line!=null)\n {\n int j=0;\n String[] fields = line.split(\",\");\n if(fields[0].equals(name))\n {\n specificLine=i;\n }\n\n String[] fields2 = fields[1].split(\"%\");\n\n\n while (j<fields2.length)\n {\n if(hisMap.get(fields[0])==null)\n {\n hisMap.put(fields[0],new ArrayList<>());\n hisMap.get(fields[0]).add(fields2[j]);\n\n }\n else\n {\n hisMap.get(fields[0]).add(fields2[j]);\n }\n j++;\n }\n\n line=idFile.getNextLine();\n i++;\n }\n if(specificLine== -1)\n specificLine=i;\n }", "public static void main(String[] args) {\n\r\n\t\tHashMap<String, String> diccionario = new HashMap<String, String>();\r\n\t\t\r\n\t\tdiccionario.put(\"hola\", \"hello\");\r\n\t\tdiccionario.put(\"perro\", \"dog\");\r\n\t\tdiccionario.put(\"gato\", \"cat\");\r\n\t\tdiccionario.put(\"antes\", \"before\");\r\n\t\tdiccionario.put(\"que\", \"what\");\r\n\t\tdiccionario.put(\"pantalla\", \"screen\");\r\n\t\tdiccionario.put(\"teclado\", \"keyboard\");\r\n\t\tdiccionario.put(\"raton\", \"mouse\");\r\n\t\tdiccionario.put(\"mochila\", \"bag\");\r\n\t\tdiccionario.put(\"puerta\", \"door\");\r\n\t\tdiccionario.put(\"clase\", \"class\");\r\n\t\tdiccionario.put(\"coche\", \"car\");\r\n\t\tdiccionario.put(\"pantalones\", \"trousers\");\r\n\t\tdiccionario.put(\"sombrero\", \"hat\");\r\n\t\tdiccionario.put(\"escaleras\", \"stairs\");\r\n\t\tdiccionario.put(\"mesa\", \"table\");\r\n\t\tdiccionario.put(\"silla\", \"chair\");\r\n\t\tdiccionario.put(\"hermano\", \"brother\");\r\n\t\tdiccionario.put(\"hermana\", \"sister\");\r\n\t\tdiccionario.put(\"padre\", \"father\");\r\n\t\tdiccionario.put(\"madre\", \"mother\");\r\n\t\t\r\n\t\tint contador = 0;\r\n\t\tint correctas = 0;\r\n\t\tint incorrectas = 0;\r\n\t\tString respuesta;\r\n\t\t\r\n\t\t//para recorrer un map fijándonos en el valor de la posición ...\r\n\t\t\r\n\t\tfor(int i=0; i<5; i++) {\r\n\t\t\t\r\n\t\t\tint opcion = (int)(Math.random()*21); //21 palabras\r\n\r\n\t Iterator<String> it = diccionario.keySet().iterator();\r\n\t \r\n\t while(it.hasNext()){\r\n\t \r\n\t String obj = it.next();\r\n\t \r\n\t if(contador == opcion) {\r\n\t \tSystem.out.println(\"¿Cuál es la traducción de \"+obj+\"?\");\r\n\t \trespuesta = sc.next();\r\n\t \t\r\n\t \tif(respuesta.equalsIgnoreCase(diccionario.get(obj))) {\r\n\t \t\tSystem.out.println(\"Correcto!!\");\r\n\t \t\tcorrectas ++;\r\n\t \t\r\n\t \t}else {\r\n\t \t\tSystem.out.println(\"Ohh, incorrecto!!\");\r\n\t \t\tincorrectas ++;\r\n\t \t}\r\n\t }\r\n\t contador++;\r\n\t }\r\n\t contador = 0;\r\n\t\t}\r\n\t\t//////////////////////////////////////////////////////////////////////\r\n\t\t\r\n\t\tSystem.out.println(\"Has acertado \"+correctas+\" y has fallado \"+incorrectas);\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tArrayList<String> lista = new ArrayList<>();\n\t\t\n\t\tString a = \"Juan\";\n\t\tString b = \"ObiJuan\";\n\t\tString c = \"Paco\";\n\t\t\n\t\tlista.add(a);\n\t\tlista.add(b);\n\t\tlista.add(c);\n\t\t\n\t\tmap.put(\"primero\", a);\n\t\tmap.put(\"segundo\", b);\n\t\tmap.put(\"tercero\", c);\n\t\t\n\t\tSystem.out.println(lista.get(1));\n\t\tSystem.out.println(lista.get(lista.indexOf(\"ObiJuan\")));\n\t\t\n\t\tSystem.out.println(\"----------------\");\n\t\t\n\t\tSystem.out.println(map.get(\"primero\"));\n\t\t\n\t\tlista.remove(lista.indexOf(\"Paco\"));\n\t\t\n\t\t\n\t\tfor (String palabra : lista) {\n\t\t\tSystem.out.println(palabra);\n\t\t}\n\t\tSystem.out.println(\"----------------\");\n\t\tfor (String key : map.keySet()) {\n\t\t\tSystem.out.println(\"Clave: \" + key);\n\t\t\tSystem.out.println(\"Valor: \" + map.get(key));\n\t\t\tSystem.out.println(\"----------------\");\n\t\t}\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"----------------\");\n\t\t\n\t\tlista.forEach(elemento -> System.out.println(elemento));\n\t\t\n\t\tSystem.out.println(\"----------------\");\n\t\t\n//\t\tmap.forEach(clave, valor -> (\n//\t\t\tSystem.out.println(\"Clave con lambda: \" + clave);\n//\t\t\tSystem.out.println(\"Valor con lambda: \" + valor);\n//\t\t);\n//\t\t\n\t}", "public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }", "@Override\n\tpublic List<RotateBID> list(HashMap<String, String> map) {\n \n List<RotateBID> data= dao.list(map);\n\t\treturn data;\n\t}", "public static void adicionaMap2() {\n\t\t\t\tcDebitos_DFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"dam\", new Integer[] { 6, 18 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"fiti\", new Integer[] { 19, 26 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"cartorio\", new Integer[] { 39, 76 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"valor\", new Integer[] { 77, 90 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\t\t\t\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"processo\", new Integer[] { 21, 34 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"data_Venc\", new Integer[] { 35, 46 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"tributos\", new Integer[] { 47, 60 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"historico\", new Integer[] { 61, 78 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"valor\", new Integer[] { 79, 90 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\r\n\r\n\t\t// No DAM ANO DATA VENC No. PROCESSO\r\n\t\t// No. PARCELAMENTO VALOR JUROS TOTAL\r\n\t\tcDebitos_JFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_JFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_JFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_JFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_JFlorianopolis.put(\"processo\", new Integer[] { 39, 55 });\r\n\t\tcDebitos_JFlorianopolis.put(\"nParcelamento\", new Integer[] { 55, 76 });\r\n\t\tcDebitos_JFlorianopolis.put(\"valor\", new Integer[] { 77, 104 });\r\n\t\tcDebitos_JFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_JFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t// DAM LIV/FOLHA/CERT. DATA INSC HISTORICO\r\n\t\t// INSCRICAO VALOR\r\n\r\n\t\tcDebitos_J1Florianopolis.put(\"dam\", new Integer[] { 1, 13 });\r\n\t\tcDebitos_J1Florianopolis.put(\"liv_Folha_Cert\", new Integer[] { 14, 34 });\r\n\t\tcDebitos_J1Florianopolis.put(\"data_Insc\", new Integer[] { 35, 46 });\r\n\t\tcDebitos_J1Florianopolis.put(\"historico\", new Integer[] { 47, 92 });\r\n\t\tcDebitos_J1Florianopolis.put(\"inscricao\", new Integer[] { 93, 119 });\r\n\t\tcDebitos_J1Florianopolis.put(\"valor\", new Integer[] { 120, 132 });\r\n\t\t\r\n\t\t\r\n\t\t// No DAM ANO DATA VENC HISTORICO PROCESSO VALOR JUROS TOTAL\r\n\t\tcDebitos_LFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_LFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_LFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_LFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_LFlorianopolis.put(\"historico\", new Integer[] { 39, 76 });\r\n\t\tcDebitos_LFlorianopolis.put(\"processo\", new Integer[] { 77, 91 });\r\n\t\tcDebitos_LFlorianopolis.put(\"valor\", new Integer[] { 92, 104 });\r\n\t\tcDebitos_LFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_LFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\r\n\t}", "private HashMap<String, String> getAnswerCodesByID(String id, boolean oth)\n\t{\n\t\tHashMap<String, String> ans_map = new HashMap<String, String>();\n\t\tNode ans_l10ns = doc.selectSingleNode(\"//document/answer_l10ns/rows\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Element> a_meta = doc.selectNodes(\"//document/answers/rows/row[qid=\" + id + \"]\");\n\t\tfor (Element elem : a_meta) {\n\t\t\tans_map.put(elem.elementText(\"code\"), ans_l10ns.selectSingleNode(\"row[aid=\" + elem.elementText(\"aid\") + \"]/answer\").getText());\n\t\t}\n\n\t\tif (oth) {\n\t\t\tans_map.put(\"-oth-\", \"other\");\n\t\t}\n\t\treturn ans_map;\n\t}", "public void setListeChatter(HashMap<String, Chatter> listeChatter) {\n\t\tthis.listeChatter = listeChatter;\n\t}", "@Override\r\n\tpublic ArrayList<Map> listarPacienteNutricionistaSelect(int id_nutricionista) {\n\t\tList<Paciente>lista=repo.buscarporNutricionista(nutrirepo.findById(id_nutricionista).get());\r\n\t\tArrayList<Map> result = new ArrayList();\r\n\t\tfor (int i = 0; i < lista.size(); i++) {\r\n\t\t\t/*\r\n\t\t\t * \"id\": 293, \"title\": \"Event 1\", \"url\": \"http://example.com\", \"class\":\r\n\t\t\t * \"event-important\", \"start\": 12039485678000, // Milliseconds \"end\":\r\n\t\t\t * 1234576967000 // Milliseconds\r\n\t\t\t */\r\n\t\t\tMap<String, Object> temp = new LinkedHashMap<String, Object>();\r\n\t\t\ttemp.put(\"id\", lista.get(i).getId_usuario());\r\n\t\t\t//temp.put(\"title\", citas.get(i).getPaciente().getNombre() + ' ' + citas.get(i).getPaciente().getApellidos());\r\n\t\t\t//temp.put(\"url\", \"/thunderfat/alimento/index\");\r\n\t\t\t// temp.put(\"class\", \"event-important\");\r\n\t\t\t//temp.put(\"start\", citas.get(i).getFecha_ini().format(DateTimeFormatter.ISO_DATE_TIME));\r\n\t\t\ttemp.put(\"text\",lista.get(i).getNombre()+\" \"+lista.get(i).getApellidos()+\" \"+lista.get(i).getDni());\r\n\t\t\tresult.add(temp);\r\n\t\t}\r\n\t\t// respuesta.put(\"success\", 1);\r\n\t\t// respuesta.put(\"result\",result);\r\n\t\tSystem.out.println(result);\r\n\t\treturn result;\r\n\t\t\r\n\t}", "protected String getNomeComQuemDividir(Map<String, Pizza> nomesPizzasFavoritas){\n\t\treturn \"Renata\";\r\n\t}", "public void assignPlayerPieces(Map<Player, Integer> playerHash) {\n List<Integer> nums = new ArrayList<>(playerHash.values());// get all the numbers from playerHash\n List<Player> players = new ArrayList<>(playerHash.keySet()); // get all the players from the hash map\n Collections.sort(nums); // sort the list of numbers\n Collections.reverse(nums);// reverse the list so the highest numbers are first\n int pieceIndex = 0; // variable used to represent the index for the playerPiece\n List<Integer> usedNums = new ArrayList<Integer>();// Empty list that will be used to know what numbers have been used.\n for (Integer num : nums) { // go through each number in numbers\n if (!usedNums.contains(num)) {// if the usedNums list doesn't contain num\n for (Player player : players) { // for each player\n if (playerHash.get(player).equals(num)) {// if the num is the number they got from their dice roll\n player.setPiece(this.playerPieces.get(pieceIndex)); // give them the playerPiece at index pieceIndex\n pieceIndex++;// increment pieceIndex\n usedNums.add(num);//add the used number into usedNums list\n }\n }\n }\n }\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"TortId\", this.TortId);\n this.setParamSimple(map, prefix + \"TortTitle\", this.TortTitle);\n this.setParamSimple(map, prefix + \"TortPlat\", this.TortPlat);\n this.setParamSimple(map, prefix + \"TortURL\", this.TortURL);\n this.setParamSimple(map, prefix + \"PubTime\", this.PubTime);\n this.setParamSimple(map, prefix + \"Author\", this.Author);\n this.setParamSimple(map, prefix + \"DetectTime\", this.DetectTime);\n this.setParamSimple(map, prefix + \"ObtainStatus\", this.ObtainStatus);\n this.setParamSimple(map, prefix + \"RightStatus\", this.RightStatus);\n this.setParamSimple(map, prefix + \"BlockStatus\", this.BlockStatus);\n this.setParamSimple(map, prefix + \"TortNum\", this.TortNum);\n this.setParamSimple(map, prefix + \"ObtainNote\", this.ObtainNote);\n this.setParamSimple(map, prefix + \"WorkTitle\", this.WorkTitle);\n this.setParamSimple(map, prefix + \"TortSite\", this.TortSite);\n this.setParamSimple(map, prefix + \"ICP\", this.ICP);\n this.setParamSimple(map, prefix + \"RightNote\", this.RightNote);\n this.setParamSimple(map, prefix + \"ObtainType\", this.ObtainType);\n this.setParamSimple(map, prefix + \"BlockNote\", this.BlockNote);\n this.setParamSimple(map, prefix + \"WorkId\", this.WorkId);\n this.setParamSimple(map, prefix + \"WorkName\", this.WorkName);\n this.setParamSimple(map, prefix + \"AuthStatus\", this.AuthStatus);\n this.setParamSimple(map, prefix + \"CommStatus\", this.CommStatus);\n this.setParamSimple(map, prefix + \"EvidenceStatus\", this.EvidenceStatus);\n this.setParamSimple(map, prefix + \"IsProducer\", this.IsProducer);\n this.setParamSimple(map, prefix + \"IsOverseas\", this.IsOverseas);\n this.setParamSimple(map, prefix + \"IPLoc\", this.IPLoc);\n\n }", "public ArrayList<HashMap<String, String>> getdispcod(String cod) {\n ArrayList<HashMap<String, String>> wordList;\n //crea lista\n wordList = new ArrayList<HashMap<String, String>>();\n\n ///////QUERY DE DISPOSITIVOS\n\n String selectQuery = \"SELECT code_scan,name,description FROM things where code_scan ='\"+cod+\"'\";\n\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) {\n do {\n HashMap<String, String> map = new HashMap<String, String>();\n map.put(\"code_scan\", cursor.getString(0));\n map.put(\"name\", cursor.getString(1));\n map.put(\"description\", cursor.getString(2));\n\n\n wordList.add(map);\n } while (cursor.moveToNext());\n }\n database.close();\n return wordList;\n }", "public static void main(String[] args) {\n HashMap<String, String> capitalCities = new HashMap<String, String>();\n\n // Add keys and values (Country, City)\n capitalCities.put(\"England\", \"London\");\n capitalCities.put(\"Germany\", \"Berlin\");\n capitalCities.put(\"Norway\", \"Oslo\");\n capitalCities.put(\"USA\", \"WashingtonDC\");\n\n System.out.println(capitalCities);\n\n //Access an Item\n capitalCities.get(\"England\");\n System.out.println(capitalCities.get(\"England\"));\n\n //Remove an Item\n capitalCities.remove(\"England\");\n System.out.println(capitalCities);\n\n //To remove all items, use the clear() method:\n //capitalCities.clear();\n //System.out.println(capitalCities);\n\n //HashMap Size\n capitalCities.size();\n System.out.println(capitalCities.size());\n\n //Loop Through a HashMap\n // Print keys\n for (String i : capitalCities.keySet()) {\n System.out.print(i + \" \");\n }\n System.out.println();\n\n // Print values\n for (String i : capitalCities.values()) {\n System.out.print(i + \" \");\n }\n System.out.println();\n\n\n // Create a HashMap object called people\n Map<String, Integer> people = new LinkedHashMap<String, Integer>();\n\n // Add keys and values (Name, Age)\n people.put(\"John\", 32);\n people.put(\"Steve\", 30);\n people.put(\"Angie\", 33);\n\n for (String i : people.keySet()) {\n System.out.println(\"key: \" + i + \" value: \" + people.get(i));\n }\n\n\n\n\n }", "private Collection<Object> getOrderedTestNamesByPA(String programArea,String labId)\n{\n\n ArrayList<Object> dtList = null;\n HashMap<Object,Object> ofMap = null;\n\n if(cachedProgAreaFacilityList != null)\n {\n ofMap = (HashMap<Object,Object>) cachedProgAreaFacilityList.get(programArea);\n\n if (ofMap != null)\n dtList = (ArrayList<Object> ) ofMap.get(labId);\n }\n return dtList;\n}", "private HashMap<String, IacucProtocolSpecies> getIacucProtocolSpeciesMapping(List<IacucProtocolSpecies> iacucProtocolSpeciesList) {\n HashMap<String, IacucProtocolSpecies> protocolSpeciesList = new HashMap<String, IacucProtocolSpecies>();\n for(IacucProtocolSpecies iacucProtocolSpecies : iacucProtocolSpeciesList) {\n protocolSpeciesList.put(iacucProtocolSpecies.getGroupAndSpecies(), iacucProtocolSpecies);\n }\n return protocolSpeciesList;\n }", "public List<Map<String, Object>> getKeYuanList(Map<String, Object> map);", "public void collectPhoneNumbers(Map<String,Object> Faculty) {\n for (Map.Entry<String, Object> entry : Faculty.entrySet()){\n\n //Get user map\n Map singleUser = (Map) entry.getValue();\n //Get phone field and append to list\n phoneNumbers.add((String) singleUser.get(\"facultyEmail\"));\n }\n// Toast.makeText(getApplicationContext(), \"It is running\",\n// Toast.LENGTH_SHORT).show();\n\n }", "private void addPeptidesToMap(String protAcc, String[] peptides) {\n\n List<String> totalPeptides = new ArrayList<>();\n for (int i = 0; i <= missedCleavages; i++) {\n List<String> partPeptides = getPeptideCombinations(peptides, i);\n totalPeptides.addAll(partPeptides);\n }\n\n accToPeptides.put(protAcc, totalPeptides.toArray(new String[0]));\n }", "public ArrayList<HashMap<String, String>> get_referral(String idped) {\n ArrayList<HashMap<String, String>> wordList;\n //crea lista\n wordList = new ArrayList<HashMap<String, String>>();\n\n String selectQuery = \"SELECT comment,signature,full_name,final_time,email, status_id, sub_status_id FROM referrals where fk_order_id ='\"+idped+\"'\";\n\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) {\n do {\n HashMap<String, String> map = new HashMap<String, String>();\n map.put(\"comment\", cursor.getString(0));\n map.put(\"signature\", cursor.getString(1));\n map.put(\"full_name\", cursor.getString(2));\n map.put(\"final_time\", cursor.getString(3));\n map.put(\"email\", cursor.getString(4));\n map.put(\"status_id\", cursor.getString(5));\n map.put(\"sub_status_id\", cursor.getString(6));\n\n wordList.add(map);\n } while (cursor.moveToNext());\n }\n database.close();\n return wordList;\n }", "public HashMap<Long, String> fetchNamesFromIds(ArrayList<Long> ids){\n StringBuilder idsStringBuilder = new StringBuilder();\n for (long id : ids){\n idsStringBuilder.append(id).append(\",\");\n }\n String idsString = idsStringBuilder.substring(0, idsStringBuilder.length()-1);\n String response = zendeskAPI.makeGetRequest(USER_REQUEST + \"show_many.json?ids=\" + idsString);\n return JSONParser.parseUserStringForNames(response);\n }", "public static void main(String[] args) {\n\t\tSet<String> nomes = new HashSet<String>();\n\t\tnomes.add(\"Mauricio\");\n\t\tnomes.add(\"Guilherme\");\n\t\tnomes.add(\"Guilherme\");\n\t\t\n\t\tSystem.out.println(nomes.size());\n\t\t\n\t\t/*System.out.println(nomes.get(0));\n\t\tSystem.out.println(nomes.contains(\"Guilherme\"));*/\n\t\t\n\t\t/*for(int i = 0; i < nomes.size(); i++){\n\t\t\tSystem.out.println(nomes.get(i));\n\t\t}*/\n\t/*\t\n\t\tfor(String nome : nomes){\n\t\t\tSystem.out.println(nome);\n\t\t}\n\t\t\n\t\t//Collections.sort(nomes);\n\t\t\n\t\tSystem.out.println(\"Ordenado: \");\n\t\t\n\t\tfor(String nome : nomes){\n\t\t\tSystem.out.println(nome);\n\t\t}\n\t\t\n\t\tArrayList<Conta> contas = new ArrayList<Conta>();\n\t\tConta c1 = new Conta(1500.0);\n\t\tConta c2 = new Conta(700.0);\n\t\tcontas.add(c1);\n\t\tcontas.add(c2);\n\t\t\n\t\tCollections.sort(contas);\n\t\t\n\t\tfor(Conta c : contas){\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//System.out.println(contas.get(1));\n\t\t*/\n\t\t\n\t\t/*Set<Conta> contas = new HashSet<Conta>();\n\t\tConta c1 = new Conta(200.0);\n\t\tConta c2 = new Conta(200.0);\n\t\tcontas.add(c1);\n\t\tcontas.add(c1);\n\t\tcontas.add(c2);\n\t\t\n\t\tSystem.out.println(contas.size());*/\n\t\t\n\t\tMap<String, Conta> contas = new HashMap<String, Conta>();\n\t\tConta c1 = new Conta(200.0);\n\t\tConta c2 = new Conta(500.0);\n\t\tcontas.put(\"Diretor\", c1);\n\t\tcontas.put(\"Gerente\", c2);\n\t\t\n\t\tSystem.out.println(contas.get(\"Diretor\").getSaldo());\n\t\tSystem.out.println(contas.get(\"Gerente\").getSaldo());\n\t\tSystem.out.println(contas.size());\n\t\t\n\t}", "void inPut(ArrayList<SanPham> list);", "@SuppressWarnings(\"unchecked\")\n private List createTeamList() {\n\n ArrayList result = new ArrayList();\n for( int i = 0 ; i < leagues_array.size() ; ++i ) {\n /* each group need each HashMap-Here for each group we have 3 subgroups */\n ArrayList secList = new ArrayList();\n for( int n = 0 ; n < SplashScreen.full_teams_array.get(i).size() ; n++ ) {\n HashMap child = new HashMap();\n child.put( \"Team\", SplashScreen.full_teams_array.get(i).get(n) );\n boolean favorite_found = false;\n for(int j=0; j<SplashScreen.new_favorites_array.size(); j++) {\n if(SplashScreen.full_teams_array.get(i).get(n).toString().equals(SplashScreen.new_favorites_array.get(j)[1]) &&\n leagues_array.get(i).equals(SplashScreen.new_favorites_array.get(j)[0]) ) {\n favorite_found = true;\n }\n }\n if(favorite_found) { child.put( \"Favorite\", \"1\" ); }\n else { child.put( \"Favorite\", \"0\" ); }/*\n if(SplashScreen.full_teams_array.get(i).get(n).toString().equals(favorite_team) &&\n leagues_array.get(i).equals(favorite_league) ) {\n child.put( \"Favorite\", \"1\" );\n } else {\n }\n child.put( \"Favorite\", \"0\" );/*\n }*/\n secList.add( child );\n }\n result.add( secList );\n }\n return result;\n }", "private static void treeMapMap(Map<Integer, String> treeMapMap) {\n System.out.println(\"----------------------------- TreeMap ----------------------------\");\n System.out.println(\"To work with \\\"TreeMap\\\" we need to add \\\"Equals and HashCode\\\" and \\\"Comparable\\\" to the Person Class!\");\n System.out.println(\"\\\"TreeMap\\\" is ordered by key\");\n treeMapMap.put(7, \"Cristiano Ronaldo\");\n treeMapMap.put(10, \"Leo Messi\");\n treeMapMap.put(8, \"Avi Nimni\");\n treeMapMap.put(24, \"Kobi Brian\");\n PrintUtils.printMap(treeMapMap);\n System.out.println();\n // STEP 2 - set p3 name to \"Moshe\"\n System.out.println(\"Set the name of player number 8 to be \\\"Moshe\\\":\");\n treeMapMap.replace(8, \"Avi Nimni\", \"Moshe\");\n // if you use \"put\" instead of \"replace\" it will work to!\n PrintUtils.printMap(treeMapMap);\n System.out.println();\n // STEP 3 - add p5 to the end of the list using using ADD method\n System.out.println(\"Add p5 to the end of the list using ADD method:\");\n System.out.println(\"Not an option!\");\n System.out.println();\n // STEP 4 - add p6 to position 3 the end of the list using ADD method\n System.out.println(\"Add p6 to position 3 the end of the list using ADD method:\");\n System.out.println(\"Not an option, you can wright over it!\");\n System.out.println();\n // STEP 5 - remove p2 from the list\n System.out.println(\"Remove p2 from the list and printing the list using a static method in a utility class:\");\n treeMapMap.remove(10, \"Leo Messi\");\n PrintUtils.printMap(treeMapMap);\n System.out.println();\n }", "private void setLairNames(int typeInt) {\n\t\tswitch (typeInt) { // puts lairnames in a hash map with the city name as key and the lairname as value depending on the type of villain\n\n\t\tcase 0:\n\t\t\tlairNames.put(\"Springfield\", \"Hagley Oval\");\n\t\t\tlairNames.put(\"Te Puke\", \"Bay Oval\");\n\t\t\tlairNames.put(\"Gore\", \"The Grove Park\");\n\t\t\tlairNames.put(\"Ohakune\", \"Ohakune Domain\");\n\t\t\tlairNames.put(\"Paeroa\", \"Centennial Park\");\n\t\t\tlairNames.put(\"Taihape\", \"Memorial Park, Taihape\");\n\t\t\tbreak;\n\n\t\tcase 1:\n\t\t\tlairNames.put(\"Springfield\", \"Selwyn Rugby Club\");\n\t\t\tlairNames.put(\"Te Puke\", \"Centenial Park, Te Puke\");\n\t\t\tlairNames.put(\"Gore\", \"Newman Park, Gore\");\n\t\t\tlairNames.put(\"Ohakune\", \"Rochfort Park, Ohakune\");\n\t\t\tlairNames.put(\"Paeroa\", \"Paeroa Old Boys Football Ground\");\n\t\t\tlairNames.put(\"Taihape\", \"Memorial Park, Taihape\");\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\tlairNames.put(\"Springfield\", \"The Springfield Hotel\");\n\t\t\tlairNames.put(\"Te Puke\", \"Molly O'Connors Pub\");\n\t\t\tlairNames.put(\"Gore\", \"Howl at the Moon, Cafe and Bar\");\n\t\t\tlairNames.put(\"Ohakune\", \"Powderkeg Restaurant and Bar\");\n\t\t\tlairNames.put(\"Paeroa\", \"The Paeroa Hotel\");\n\t\t\tlairNames.put(\"Taihape\", \"Gumboot Manor Restaurant and Bar\");\n\t\t\tbreak;\n\n\t\tcase 3:\n\t\t\tlairNames.put(\"Springfield\", \"Springfield Telephone Exchange\");\n\t\t\tlairNames.put(\"Te Puke\", \"Te Puke Telephone Exchange\");\n\t\t\tlairNames.put(\"Gore\", \"Gore Telephone Exchange\");\n\t\t\tlairNames.put(\"Ohakune\", \"Ohakune Telephone Exchange\");\n\t\t\tlairNames.put(\"Paeroa\", \"Paeroa Telephone Exchange\");\n\t\t\tlairNames.put(\"Taihape\", \"Taihape Telephone Exchange\");\n\t\t\tbreak;\n\n\t\tcase 4:\n\t\t\tlairNames.put(\"Springfield\", \"Christchurch District Court Chambers\");\n\t\t\tlairNames.put(\"Te Puke\", \"Te Awamutu District Court Chambers\");\n\t\t\tlairNames.put(\"Gore\", \"Gore District Court\");\n\t\t\tlairNames.put(\"Ohakune\", \"Ohakune District Court\");\n\t\t\tlairNames.put(\"Paeroa\", \"Hauraki District Court\");\n\t\t\tlairNames.put(\"Taihape\", \"Taihape District Court\");\n\t\t\tbreak;\n\n\t\tcase 5:\n\t\t\tlairNames.put(\"Springfield\", \"Springfield Giant Donut Statue\");\n\t\t\tlairNames.put(\"Te Puke\", \"Te Puke Giant Kiwifruit Statue\");\n\t\t\tlairNames.put(\"Gore\", \"Gore Giant Trout Statue\");\n\t\t\tlairNames.put(\"Ohakune\", \"Ohakune Giant Carrot Statue\");\n\t\t\tlairNames.put(\"Paeroa\", \"Paeroa L&P Statue\");\n\t\t\tlairNames.put(\"Taihape\", \"Taihape Giant Gumboot Statue\");\n\t\t\tbreak;\n\t\t}\t\n\t}", "private static String[] getNewArray(HashMap listas){\n ArrayList<String> result = new ArrayList<String>();\n for (int i = 0; i< listas.size(); i++ ){\n String key = \"L\" + i;\n ArrayList<String> itemsList = (ArrayList<String>) listas.get(key);\n result.addAll(itemsList);\n }\n return result.toArray(new String[0]);\n }", "private void setUpHashMap(int number)\n {\n switch (number)\n {\n case 1:\n {\n this.hourly.put(\"Today\",new ArrayList<HourlyForecast>());\n break;\n }\n case 2:\n {\n this.hourly.put(\"Today\",new ArrayList<HourlyForecast>());\n this.hourly.put(\"Tomorrow\", new ArrayList<HourlyForecast>());\n break;\n }\n case 3:\n {\n this.hourly.put(\"Today\", new ArrayList<HourlyForecast>());\n this.hourly.put(\"Tomorrow\", new ArrayList<HourlyForecast>());\n this.hourly.put(\"Day After Tomorrow\", new ArrayList<HourlyForecast>());\n break;\n }default:\n break;\n }\n }", "public static void main(String[] args) {\n Person.insertToPeopleMap(new Person(39105153322l,\"Romas\",\"Garkas\"));\n Person.insertToPeopleMap(new Person(38512013245l,\"Arnas\",\"Lionginas\"));\n Person.insertToPeopleMap(new Person(48603142299l,\"Maryte\",\"Melninkaite\"));\n Person.insertToPeopleMap(new Person(49009103377l,\"Dalia\",\"Morka\"));\n Person.insertToPeopleMap(new Person(49009103377l,\"Milda\",\"Morkiene\"));\n\n\n for (Map.Entry<Long, List<Person>> personEntry : Person.getPeople().entrySet()){\n for (Person person : personEntry.getValue()){\n System.out.println(\"A.K.: \" + person.getCitizenCode() + \" Vardas: \" + person.getName() + \" Pavarde: \" + person.getSurname());\n }\n }\n }", "public void insertIntoMap(String key, String name) {\n\t\tif (mapNames.containsKey(key)) {\n\t\t\t// Add new name onto the end of the existing ArrayList.\n\t\t\tmapNames.get(key).add(name);\n\t\t} else {\n\n\t\t\t// Create new ArrayList with the unparsed name as the value\n\t\t\tArrayList<String> arrName = new ArrayList<String>();\n\t\t\tarrName.add(name);\n\t\t\tmapNames.put(key, arrName);\n\t\t}\n\t}", "public HashMap<String, ArrayList< List<String> >> cleanHM(HashMap<String, ArrayList< List<String> >> hm){\n for(String ID : hm.keySet() ){\n ArrayList<List<String>> curIDSentences = hm.get(ID);\n List<String> tempL= new ArrayList<String>();\n curIDSentences.removeAll(Collections.singleton(tempL));\n }\n return hm;\n }", "private static void putArrayLstToMaps(ArrayList<MenuItem> items, Gui gui){\n for (MenuItem item : items){\n String name = item.getName();\n int price = item.getPrice();\n gui.getOrderMap().put(name, new Integer[]{price, NOT_SELECTED, INITIAL_QUANTITY});\n }\n }", "public void makeHash(){\n\t\tString tmp = \"\";\n\t\t\n\t\tfor(int i=0;i<_rows;i++){\n\t\t\tfor(int j=0;j<_cols;j++){\n\t\t\t\ttmp+=String.valueOf(_puzzle[i][j])+\"#\";\n\t\t\t}\n\t\t}\n\t\t_hashCode = tmp;\n\t}", "public static void main(String[] args) {\n\t\tHashMap<String, Integer> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"Pune\", 4111014);\n\t\tmap.put(\"nsk\", 40000014);\n\t\tmap.put(\"Mumbai\", 40000001);\n\t\t\n\t\t\n\t\tSystem.out.println(map);\n\t\t\n\t\tSystem.out.println(map.keySet());\n\t\tSystem.out.println(map.values());\n\t\t\n\t\tSystem.out.println(map.size());\n\t\t\n\t\tmap.replace(\"Pune\",10000001);\n\t\tSystem.out.println(map);\n\t\t\n\t\tSystem.out.println(map.containsKey(\"Nashik\"));\n\t\t\n\t\t//System.out.println(map.remove(\"Pune\", 000000000));\n\t}", "public ArrayList<HashMap<String,ViterbiUnit>> updateMuList(ArrayList<String> line){\n\t\tArrayList<HashMap<String,ViterbiUnit>> list=new ArrayList<HashMap<String,ViterbiUnit>>();\n\t\tupdateMuListHelper(list,line,0);\n\t\treturn list;\n\t}", "public static void main(String[] args) {\n String[] names= {\"Mehmet\", \"Asha\", \"Amina\", \"Omar\", \"Siyar\", \"Danny\"};\n \n Map<Integer, String> nameMap=new LinkedHashMap<>();\n \n int key=1;\n \n for(String name:names) {\n nameMap.put(key, name);\n key++;\n }\n System.out.println(nameMap);\n \n for(Map.Entry<Integer,String>entry:nameMap.entrySet()) {\n \t\tString mapValue=entry.getKey()+\" == \"+entry.getValue();\n \t\tSystem.out.println(mapValue);\n \t\t\n \t\t\n \t}\n \n Iterator<Entry<Integer, String>>it=nameMap.entrySet().iterator();\n\t\twhile(it.hasNext()) {\n\t\t\tMap.Entry entry=it.next();\n\t\t\tString valueFromMap=entry.getKey()+\" : \"+entry.getValue();\n\t\t\tSystem.out.println(valueFromMap);\n\t\t}\n\t\t\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tHashMap <Character, Integer> lhmap = new LinkedHashMap<Character, Integer>();\n\t\t\n\t\t\tString nom = \"Javier del Moral Asensio\";\n\t\t\tchar[] myName= nom.toLowerCase().toCharArray();\n\t\t\n\t\t//for loop to check characters one by one and sum it if are repeated\n\t\t\t\t\n\t\t\tfor(int c=0; c < nom.length(); c++) {\n\t\t\t\n\t\t\t\tint value=1;\n\t\t\n\t\t//if the char is new store it\n\t\t\t\t\n\t\t\t\tif(lhmap.containsKey(myName[c]) == false) {\n\t\t\t\t\tlhmap.put(myName[c], value);\n\t\t\t\t\t\n\t\t//if is not +1 to the original char\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tvalue = lhmap.get(myName[c]);\n\t\t\t\t\tlhmap.put(myName[c], value+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\tSystem.out.println(lhmap);\t\t\n\n\t}", "public static void restoreList() {\n\n if (copyList.isEmpty())\n return;\n\n\n getList().clear();\n\n for (Map<String, ?> item : copyList) {\n getList().add(item);\n }\n\n copyList.clear();\n //Log.d(\"test\", \"After restore: Champlist size \" + getSize() + \" copylist size \" + copyList.size());\n\n }", "private static Map getMapPotionIds() {\n/* 350 */ if (mapPotionIds == null) {\n/* */ \n/* 352 */ mapPotionIds = new LinkedHashMap<>();\n/* 353 */ mapPotionIds.put(\"water\", new int[1]);\n/* 354 */ mapPotionIds.put(\"awkward\", new int[] { 16 });\n/* 355 */ mapPotionIds.put(\"thick\", new int[] { 32 });\n/* 356 */ mapPotionIds.put(\"potent\", new int[] { 48 });\n/* 357 */ mapPotionIds.put(\"regeneration\", getPotionIds(1));\n/* 358 */ mapPotionIds.put(\"moveSpeed\", getPotionIds(2));\n/* 359 */ mapPotionIds.put(\"fireResistance\", getPotionIds(3));\n/* 360 */ mapPotionIds.put(\"poison\", getPotionIds(4));\n/* 361 */ mapPotionIds.put(\"heal\", getPotionIds(5));\n/* 362 */ mapPotionIds.put(\"nightVision\", getPotionIds(6));\n/* 363 */ mapPotionIds.put(\"clear\", getPotionIds(7));\n/* 364 */ mapPotionIds.put(\"bungling\", getPotionIds(23));\n/* 365 */ mapPotionIds.put(\"charming\", getPotionIds(39));\n/* 366 */ mapPotionIds.put(\"rank\", getPotionIds(55));\n/* 367 */ mapPotionIds.put(\"weakness\", getPotionIds(8));\n/* 368 */ mapPotionIds.put(\"damageBoost\", getPotionIds(9));\n/* 369 */ mapPotionIds.put(\"moveSlowdown\", getPotionIds(10));\n/* 370 */ mapPotionIds.put(\"diffuse\", getPotionIds(11));\n/* 371 */ mapPotionIds.put(\"smooth\", getPotionIds(27));\n/* 372 */ mapPotionIds.put(\"refined\", getPotionIds(43));\n/* 373 */ mapPotionIds.put(\"acrid\", getPotionIds(59));\n/* 374 */ mapPotionIds.put(\"harm\", getPotionIds(12));\n/* 375 */ mapPotionIds.put(\"waterBreathing\", getPotionIds(13));\n/* 376 */ mapPotionIds.put(\"invisibility\", getPotionIds(14));\n/* 377 */ mapPotionIds.put(\"thin\", getPotionIds(15));\n/* 378 */ mapPotionIds.put(\"debonair\", getPotionIds(31));\n/* 379 */ mapPotionIds.put(\"sparkling\", getPotionIds(47));\n/* 380 */ mapPotionIds.put(\"stinky\", getPotionIds(63));\n/* */ } \n/* */ \n/* 383 */ return mapPotionIds;\n/* */ }", "public static void main(String[] args) {\n\tMap map=new HashMap();\n\tmap.put(100,\"java\");\n\tSystem.out.println(map);\n\t\n\tArrayList<String> arr=new ArrayList<>();\n\tarr.add(\"java\");\n\tarr.add(\"Santosh\");\n\tString s=arr.get(1);\n\tSystem.out.println(s);\n\t\n\t\n}", "private String[] fizzBuzz(int n) {\n\t\tHashMap<Integer, String> map = new HashMap<Integer, String>();\n\t\tfor (int i = 1; i <= n; i++) { //O(n)\n\t\t\t// Put map with i and value if i is divisible by 5\n\t\t\t// and 3 put FizzBuzz\n\t\t\tif (i % 3 == 0 && i % 5 == 0)\n\t\t\t\tmap.put(i, \"FizzBuzz\");\n\t\t\t// if i is divisible by 3 put as Fizz\n\t\t\telse if (i % 3 == 0)\n\t\t\t\tmap.put(i, \"Fizz\");\n\t\t\t// if i is divisible by 5 put as FizzBUzz\n\t\t\telse if (i % 5 == 0)\n\t\t\t\tmap.put(i, \"Buzz\");\n\t\t\telse\n\t\t\t\tmap.put(i, i + \"\");\n\t\t}\n//return Map values as String []\n\t\tString[] str = new String[n];\n\t\tfor (int i = 0; i <= n - 1; i++) { //O(n)\n\t\t\tstr[i] = map.get(i + 1);\n\t\t}\n\t\treturn str;\n\t}", "public HashMap<Integer, User> process(List<User> list) {\n HashMap<Integer, User> listMap = new HashMap<>();\n Iterator<User> iterator = list.iterator();\n while (iterator.hasNext()) {\n User temp = iterator.next();\n if (temp != null) {\n listMap.put(temp.getId(), temp);\n }\n }\n return listMap;\n }", "public Map<Long, GrupoAtencion> getGruposAtentionGenerados(Integer accion, Long numeroProgramacion) {\n\t\tlogger.info(\" ### getGruposAtentionGenerados ### \");\n\t\t\n\t\tMap<Long, GrupoAtencion> mpGrupos = Collections.EMPTY_MAP;\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tif(accion!=null && accion.equals(ConstantBusiness.ACCION_NUEVA_PROGRAMACION)){\n\t\t\t\tmpGrupos = new LinkedHashMap<Long, GrupoAtencion>();\n\t\t\t\tlogger.info(\" mostrando mostrando grupos temporales \");\n\t\t\t\t\n\t\t\t\tmpGrupos.putAll(mpGruposCached);\n\t\t\t\t\n\t\t\t}else if(accion!=null && accion.equals(ConstantBusiness.ACCION_EDITA_PROGRAMACION)){\n\t\t\t\tmpGrupos = new LinkedHashMap<Long, GrupoAtencion>();\n\t\t\t\tlogger.info(\" mostrando mostrando grupos bd \");\n\t\t\t\tList<GrupoAtencion> grupoAtencionLíst = grupoAtencionDao.getGruposAtencionPorProgramacion(numeroProgramacion);\n\t\t\t\tList<GrupoAtencion> _grupoAtencionLíst = new ArrayList<>();\n\t\t\t\t\n\t\t\t\tList<GrupoAtencionDetalle> _grupoDetalleAtencionLíst = new ArrayList<>();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor (GrupoAtencion g : grupoAtencionLíst) {\n\t\t\t\t\tlogger.info(\" grupo generado :\"+g.getDescripcion());\n\t\t\t\t\t//clonando grupos \n\t\t\t\t\tlogger.info(\" ### clonando grupo : \"+g.getNumeroGrupoAtencion());\n\t\t\t\t\tGrupoAtencion grupoAtencion = (GrupoAtencion) g.clone();\n\t\t\t\t\tfor(GrupoAtencionDetalle d: g.getGrupoAtencionDetalles()){\n\t\t\t\t\t\t\n\t\t\t\t\t\tlogger.info(\"### numero de solicitud :\"+d.getSolicitudServicio().getNumeroSolicitud());\n\t\t\t\t\t\t\n\t\t\t\t\t\t_grupoDetalleAtencionLíst.add((GrupoAtencionDetalle)d.clone());\n\t\t\t\t\t }\n\t\t\t\t\t\n\t\t\t\t\t_grupoAtencionLíst.add(grupoAtencion);\n\t\t\t\t}\n\n\t\t\t\tlogger.info(\" mapeando objetos clonados \");\n\t\t\t\tfor (GrupoAtencion g : _grupoAtencionLíst) {\n\t\t\t\t\tg.setGrupoAtencionDetalles(new ArrayList<GrupoAtencionDetalle>());\n\t\t\t\t\tfor (GrupoAtencionDetalle d : _grupoDetalleAtencionLíst) {\n\t\t\t\t\t\tif( d.getGrupoAtencion()!=null && \n\t\t\t\t\t\t\t\td.getGrupoAtencion().getNumeroGrupoAtencion()==g.getNumeroGrupoAtencion()){\n\t\t\t\t\t\t\tg.getGrupoAtencionDetalles().add(d);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tmpGrupos.put(g.getNumeroGrupoAtencion(), g);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tthis.mpGruposCached = mpGrupos;\n\t\t\t\t\n\t\t\t\tmostrarGrupos(mpGrupos);\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn mpGrupos;\n\t}", "public List<Map<String, Object>> Listar_Cumplea˝os(String mes,\r\n String dia, String aps, String dep, String are,\r\n String sec, String pue, String fec, String edad,\r\n String ape, String mat, String nom, String tip, String num) {\r\n sql = \"SELECT * FROM RHVD_FILTRO_CUMPL_TRAB \";\r\n sql += (!aps.equals(\"\")) ? \"Where UPPER(CO_APS)='\" + aps.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!dep.equals(\"\")) ? \"Where UPPER(DEPARTAMENTO)='\" + dep.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!are.equals(\"\")) ? \"Where UPPER(AREA)='\" + are.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!sec.equals(\"\")) ? \"Where UPPER(SECCION)='\" + sec.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!pue.equals(\"\")) ? \"Where UPPER(PUESTO)='\" + pue.trim().toUpperCase() + \"'\" : \"\";\r\n //sql += (!fec.equals(\"\")) ? \"Where FECHA_NAC='\" + fec.trim() + \"'\" : \"\"; \r\n sql += (!edad.equals(\"\")) ? \"Where EDAD='\" + edad.trim() + \"'\" : \"\";\r\n sql += (!ape.equals(\"\")) ? \"Where UPPER(AP_PATERNO)='\" + ape.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!mat.equals(\"\")) ? \"Where UPPER(AP_MATERNO)='\" + mat.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!nom.equals(\"\")) ? \"Where UPPER(NO_TRABAJADOR)='\" + nom.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!tip.equals(\"\")) ? \"Where UPPER(TIPO)='\" + tip.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!num.equals(\"\")) ? \"Where NU_DOC='\" + num.trim() + \"'\" : \"\";\r\n //buscar por rango de mes de cumplea├▒os*/\r\n\r\n sql += (!mes.equals(\"\") & !mes.equals(\"13\")) ? \"where mes='\" + mes.trim() + \"' \" : \"\";\r\n sql += (!mes.equals(\"\") & mes.equals(\"13\")) ? \"\" : \"\";\r\n sql += (!dia.equals(\"\")) ? \"and dia='\" + dia.trim() + \"'\" : \"\";\r\n return jt.queryForList(sql);\r\n }", "public void initialilzeMapEntry(String file){\n\t\tmap.put(file, new LinkedList<HashMap<Integer, Integer>>());\n\t}", "public void modifierJoueur(String id){\n\t\t\n\t\tListJoueur.remove(find(id));\n\t\tJoueur j = new Joueur(id);\n\t\tListJoueur.add(j);\n\t\t\n\t}", "public static void main(String[] args) {\n\tMap <String, Integer>phones=new HashMap<>();\r\n\tphones.put(\"Mila\", 98232433);\r\n\tphones.put(\"Jenia\", 2834732);\r\n\tphones.put(\"Yerlan\", 77398274);\r\n\tphones.put(\"Mila\",1263584);\r\n\t//last one will override the first one\r\n\t\r\n\tIterator <String> iterator=phones.keySet().iterator();\r\n\twhile (iterator.hasNext()){\r\n\t\tString key=iterator.next();\r\n\t\tInteger value=phones.get(key);\r\n\t\tSystem.out.println(key+\" \"+value);\r\n\t}\r\n\t\r\n\t//store keys in Set\r\n\tSet<String> keys=phones.keySet();\r\n\tfor (String key : keys) {\r\n\t\tSystem.out.println(key);\r\n\t}\r\n\t//store values in Collection\r\n Collection <Integer> val=phones.values();\r\n for (Integer values : val) {\r\n \tSystem.out.println(values);\r\n\t\t\r\n\t}\r\n \r\n Set<Entry<String,Integer>> entry=phones.entrySet();\r\n for (Entry<String, Integer> entry2 : entry) {\r\n\t\t//System.out.println(entry2);\r\n\t\tSystem.out.println(entry2.getKey()+\" \"+entry2.getValue());\r\n\t}\r\n}", "public void fillMap(Map<String, List<String>> map){\n \tfor(String word : dictionary.words){ //Iterate over the ArrayList in the Dictionary object\n \t\tList<String> list = new ArrayList<String>();\n \t\tfor(String w : dictionary.words){ //iterate through all words in dictionary to find all one letter off from word\n \t\t\tif(isOneLetterOff(w, word))\n \t\t\t\tlist.add(w);\n \t\t\t//if w isn't off from word by one letter, check next w\n \t\t}\n \t\tmap.put(word, list);\n \t}\n }", "public static void main(String[] args) {\n\n List<String> cityofUsa = new LinkedList<>();\n\n cityofUsa.add(\"New York\");\n cityofUsa.add(\"CA\");\n cityofUsa.add(\"FL\");\n cityofUsa.add(\"NJ\");\n\n List<String> cityofCanada = new LinkedList<>();\n\n cityofCanada.add(\"Toronto\");\n cityofCanada.add(\"Vancouver\");\n cityofCanada.add(\"Calgary\");\n cityofCanada.add(\"Alberta\");\n\n Map<Integer,List<String>> map = new HashMap<>();\n\n map.put(1, cityofUsa);\n map.put(2, cityofCanada);\n\n for (Map.Entry<Integer,List<String>> city: map.entrySet()){\n System.out.println(\"->\"+city.getValue());\n }\n\n\t/*Map<Integer,String> map = new LinkedHashMap<>();\n\n\tmap.put(1, \"New York\");\n\tmap.put(2, \"NJ\");\n\tmap.put(3, \"California\");\n\n\tfor (Map.Entry<Integer,String> city: map.entrySet()){\n\tSystem.out.println(city.getKey()+\"->\"+city.getValue());\n\t}\n System.out.println(map.get(3));\n\n\t */\n }", "private static void deleteVallue(Map<String, List<String>> map, String string) {\n List<String> list = new ArrayList<>();\n for (Map.Entry entry : map.entrySet()) {\n for (int i = 0; i < map.size(); i++) {\n list = (List) entry.getValue();\n if (list.get(i).equals(string)) {\n list.remove(i);\n }\n }\n map.put((String) entry.getKey(), list);\n }\n }", "public void method_6436() {\r\n super();\r\n this.field_6225 = new ArrayList();\r\n this.field_6226 = new HashMap();\r\n }", "@Test public void putAcc1() {\n CSVLine c = new Sorterd();\n final Last a = new Last(\"strike\");\n a.add(5);\n c = c.put(a);\n azzert.that(c.values().iterator().next() + \"\", is(\"5\"));\n }", "private void populatesetlist() {\n\t\tmyset.add(new set(\"Password\", R.drawable.passwordop, \"hello\"));\n\t\tmyset.add(new set(\"Help\", R.drawable.helpso4, \"hello\"));\n\t\tmyset.add(new set(\"About Developers\", R.drawable.aboutusop2, \"hello\"));\n\t\tmyset.add(new set(\"Home\", R.drawable.homefi, \"hello\"));\n\t}", "public ArrayList<HashMap<String, String>> getAllUsers() {\n ArrayList<HashMap<String, String>> wordList;\n wordList = new ArrayList<HashMap<String, String>>();\n\n // ArrayList<HashMap><String, String>\n String selectQuery = \"SELECT * FROM \"+ DBFarmersContract.TABLE_NAME_FARMERS;\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor = database.rawQuery(selectQuery, null);\n\n if (cursor.moveToFirst()) {\n do {\n HashMap<String, String> map = new HashMap<String, String>();\n\n map.put(\"userId\", cursor.getString(0));\n map.put(\"title\", cursor.getString(1));\n map.put(\"farmerID\", cursor.getString(2));\n map.put(\"surname\", cursor.getString(3));\n map.put(\"firstname\", cursor.getString(4));\n map.put(\"updateStatus\", cursor.getString(41));\n wordList.add(map);\n } while (cursor.moveToNext());\n }\n database.close();\n return wordList;\n }", "public static void main(String[] args) {\n\t\t\n\t\tMap<Integer,Employee> map = new HashMap<Integer, Employee>();\n\t\tMap<String, Employee> hashMap = new HashMap();\n\t\tMap<Employee, Integer> hashMap1 = new HashMap();\n\t\tfor (int i =1; i<=10; i++){\n\t\t\t\n\t\t\tmap.put(i, new Employee(i+3, \"Manish\"+(i+3)));\n\t\t}\n\t\tSystem.out.println(map);\n\t\t\n\t\tEmployee emp1 = new Employee(4, \"Manish3\");\n\t\t//Use of Contains\n\t\tSystem.out.println(map.containsValue(emp1)); \n\t\t\n\t\t//Key Set\n\t\tSystem.out.println(map.keySet());\n\t\t\n\t\t//retrieve entry set\n\t\tSystem.out.println(map.entrySet());\n\t\t\n\t\t//map.forEach(action);; TO DO- need to understand this method\n\t\t\n\n\t\t//Returns in sorted order when Key is natural (permitives or String or Enum)\n\t\thashMap.put(\"A\", new Employee(1, \"Manish\"));\n\t\thashMap.put(\"C\", new Employee(3, \"Gaurav\"));\n\t\thashMap.put(\"B\", new Employee(2, \"Vinay\"));\n\t\tSystem.out.println(hashMap);\n\t\t\n\t\t//maintains insertion order when key is Object type(dont have any natural order)\n\t\thashMap1.put(new Employee(1, \"Manish\"),1);\n\t\thashMap1.put(new Employee(3, \"Gaurav\"),3);\n\t\thashMap1.put(new Employee(2, \"Vinay\"),2);\n\t\tSystem.out.println(hashMap1);\n\t\tHashMap<Long, String> masterRoomPoolMapping = new HashMap<Long, String>();\n\t\tmasterRoomPoolMapping.put(new Long(123), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(124), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(125), \"Manish\");\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSet<Long> keySet = masterRoomPoolMapping.keySet();\n\t\tSet<Long> newKeySet = new HashSet<Long>();\n\t\tfor(Long key : keySet){\n\t\t\tnewKeySet.add(new Long(key));\n\t\t}\n\t\tSystem.out.println(\"newKeySet***************************************************\");\n\t\tif(newKeySet.contains(new Long(123)))\n\t\t\tnewKeySet.remove(new Long(123));\n\t\tfor(Long key : newKeySet){\n\t\t\tSystem.out.println(key);\n\t\t}\n\t\tSystem.out.println(\"keySet1***************************************************\");\n\t\tSet<Long> keySet1 = masterRoomPoolMapping.keySet();\n\t\tfor(Long key : keySet1){\n\t\t\tSystem.out.println(masterRoomPoolMapping.get(key));\n\t\t}\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSystem.out.println(masterRoomPoolMapping);\n\t}", "HashMap<String, Object[]> getUbicaciones();", "public static void getMapDetails(){\n\t\tmap=new HashMap<String,String>();\r\n\t map.put(getProjName(), getDevID());\r\n\t //System.out.println(\"\\n[TEST Teamwork]: \"+ map.size());\r\n\t \r\n\t // The HashMap is currently empty.\r\n\t\tif (map.isEmpty()) {\r\n\t\t System.out.println(\"It is empty\");\r\n\t\t \r\n\t\t System.out.println(\"Trying Again:\");\r\n\t\t map=new HashMap<String,String>();\r\n\t\t map.put(getProjName(), getDevID());\r\n\t\t \r\n\t\t System.out.println(map.isEmpty());\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t//retrieving values from map\r\n\t Set<String> keys= map.keySet();\r\n\t for(String key : keys){\r\n\t \t//System.out.println(key);\r\n\t System.out.println(key + \": \" + map.get(key));\r\n\t }\r\n\t \r\n\t //searching key on map\r\n\t //System.out.println(\"Map Value: \"+map.containsKey(toStringMap()));\r\n\t System.out.println(\"Map Value: \"+map.get(getProjName()));\r\n\t \r\n\t //searching value on map\r\n\t //System.out.println(\"Map Key: \"+map.containsValue(getDevID()));\r\n\t \r\n\t\t\t\t\t // Put keys into an ArrayList and sort it.\r\n\t\t\t\t\t\t//ArrayList<String> list = new ArrayList<String>();\r\n\t\t\t\t\t\t//list.addAll(keys);\r\n\t\t\t\t\t\t//Collections.sort(list);\r\n\t\t\t\t\r\n\t\t\t\t\t\t// Display sorted keys and their values.\r\n\t\t\t\t\t\t//for (String key : list) {\r\n\t\t\t\t\t\t// System.out.println(key + \": \" + map.get(key));\r\n\t\t\t\t\t\t//}\t\t\t \r\n\t}", "public MacroList(Map<Integer, String> arg) {\n\t\tthis.macrosses = arg;\n\t}", "private void addFragmentToListMap(IAtomContainer frag, String currentSumFormula)\n {\n \t//add sum formula molecule comb. to map\n if(sumformulaToFragMap.containsKey(currentSumFormula))\n {\n \tList<IAtomContainer> tempList = sumformulaToFragMap.get(currentSumFormula);\n \ttempList.add(frag);\n \tsumformulaToFragMap.put(currentSumFormula, tempList);\n }\n else\n {\n \tList<IAtomContainer> temp = new ArrayList<IAtomContainer>();\n \ttemp.add(frag);\n \tsumformulaToFragMap.put(currentSumFormula, temp);\n }\n }", "public void setContent(HashMap<Integer, ArrayList<String>> map) {\n if (map == null || map.size() < EXAM_ANSWER_VIEW_s.length) {\n return;\n }\n /** Question put in 0 */\n ArrayList<String> questionStrList = map.get(0);\n mExamQuestion.setText(questionStrList.get(0));\n for (int i = 1; i < EXAM_ANSWER_VIEW_s.length; i++) {\n /** answer put in 1 ~ 4 */\n ArrayList<String> answerStrList = map.get(i);\n ExamAnswerView examAnswerView = EXAM_ANSWER_VIEW_s[i];\n /** map.get(0) is spell, map.get(1) is chinese */\n examAnswerView.setExamAnswerString(answerStrList.get(1));\n }\n }", "@Override\n public int hashCode() {\n\treturn getName().hashCode();\n }", "public void lisaaKomennot() {\n this.komennot.put(1, new TarkasteleListoja(1, \"Tarkastele listoja\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(2, new LisaaListalle(2, \"Lisää listalle\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(3, new PoistaListalta(3, \"Poista listalta\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n }", "public void leituraMapa() throws IOException {\n BufferedReader br = new BufferedReader(new FileReader(caminho+\"/caminho.txt\"));\n String linha = br.readLine();\n String array[] = new String[3];\n while (linha != null){\n array = linha.split(\",\");\n dm.addElement(array[1]);\n nomeJanela[contador] = array[0];\n contador++;\n linha = br.readLine();\n }\n br.close();\n }", "public List<Map<String, Object>> LISTA_HIJOS(String id) {\r\n sql = \"select ID_DATOS_HIJOS_TRABAJADOR, ID_TRABAJADOR,\"\r\n + \"AP_PATERNO,AP_MATERNO,NO_HIJO_TRABAJADOR,\"\r\n + \"TO_CHAR(FE_NACIMIENTO,'yyyy-mm-dd') AS FE_NACIMIENTO, \"\r\n + \"ES_SEXO, ES_TIPO_DOC, NU_DOC, ES_PRESENTA_DOCUMENTO, \"\r\n + \"ES_INSCRIPCION_VIG_ESSALUD, ES_ESTUDIO_NIV_SUPERIOR, \"\r\n + \"US_CREACION,FE_CREACION,US_MODIF,FE_MODIF,IP_USUARIO,\"\r\n + \"ES_DATOS_HIJO_TRABAJADOR from \"\r\n + \"RHTD_DATOS_HIJO_TRABAJADOR where ID_TRABAJADOR=?\";\r\n return jt.queryForList(sql, id);\r\n }", "public static void setHash_profiles() {\n\t\t\r\n\t\tProfilePojo pf1 = new ProfilePojo(1, \"Sonal\");\r\n\t\tProfilePojo pf2 = new ProfilePojo(2, \"Komal\");\r\n\t\tProfilePojo pf3 = new ProfilePojo(3, \"Sanidh\");\r\n\t\tProfilePojo pf4 = new ProfilePojo(4, \"Vanshika\");\r\n\t\thash_profiles.put((long) 1, pf1);\r\n\t\thash_profiles.put((long) 2, pf2);\r\n\t\thash_profiles.put((long) 3, pf3);\r\n\t\thash_profiles.put((long) 4, pf4);\r\n\t\t\r\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\r\n\t\tRandom random = new Random();\r\n\t\tMap<String, String[][]> mapTM = new HashMap<String, String[][]>();\r\n\t\tMap<String, List<String>> map = new HashMap<String, List<String>>();\r\n\r\n\t\tArrayList<String> list1 = new ArrayList<String>();\r\n\t\tlist1.add(\"T\");\r\n\t\tlist1.add(\"E\");\r\n\t\tlist1.add(\"M\");\r\n\t\tlist1.add(\"P\");\r\n\t\tlist1.add(\"C\");\r\n\t\tlist1.add(\"SS\");\r\n\r\n\t\tArrayList<String> list2 = new ArrayList<String>();\r\n\t\tlist2.add(\"T\");\r\n\t\tlist2.add(\"E\");\r\n\t\tlist2.add(\"M\");\r\n\t\tlist2.add(\"P\");\r\n\t\tlist2.add(\"C\");\r\n\t\tlist2.add(\"SS\");\r\n\r\n\t\tArrayList<String> list3 = new ArrayList<String>();\r\n\t\tlist3.add(\"T\");\r\n\t\tlist3.add(\"E\");\r\n\t\tlist3.add(\"M\");\r\n\t\tlist3.add(\"P\");\r\n\t\tlist3.add(\"C\");\r\n\t\tlist3.add(\"SS\");\r\n\t\t\r\n\t\tArrayList<String> list4 = new ArrayList<String>();\r\n\t\tlist4.add(\"T\");\r\n\t\tlist4.add(\"Ex\");\r\n\t\tlist4.add(\"M\");\r\n\t\tlist4.add(\"Px\");\r\n\t\tlist4.add(\"C\");\r\n\t\tlist4.add(\"ScS\");\r\n\r\n\t\tArrayList<String> list5 = new ArrayList<String>();\r\n\t\tlist5.add(\"Tf\");\r\n\t\tlist5.add(\"E\");\r\n\t\tlist5.add(\"M\");\r\n\t\tlist5.add(\"Pd\");\r\n\t\tlist5.add(\"C\");\r\n\t\tlist5.add(\"SS\");\r\n\r\n\t\tArrayList<String> list6 = new ArrayList<String>();\r\n\t\tlist6.add(\"Tf\");\r\n\t\tlist6.add(\"E\");\r\n\t\tlist6.add(\"Mf\");\r\n\t\tlist6.add(\"P\");\r\n\t\tlist6.add(\"Cd\");\r\n\t\tlist6.add(\"SS\");\r\n\r\n\t\tmap.put(\"C1\", list1);\r\n\t\tmap.put(\"C2\", list2);\r\n\t\tmap.put(\"C3\", list3);\r\n\t\tmap.put(\"C4\", list4);\r\n\t\tmap.put(\"C5\", list5);\r\n\t\tmap.put(\"C6\", list6);\r\n\t\t\r\n\t\tList<String> keys = new ArrayList<String>(map.keySet());\r\n\t\tCollections.shuffle(keys);\r\n\r\n\t\tfor (Object string : keys) {\r\n\t\t\tint row = 6;\r\n\t\t\tint column = 8;\r\n\t\t\tint i = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tboolean reset =false;\r\n\t\t\tString[][] stringArray = new String[row][column];\r\n\t\t\tList<String> temp = map.get(string);\r\n\t\t\tCollections.shuffle(temp);\r\n\t\t\tfor (int iterator = 0; iterator < column; iterator++) {\r\n\t\t\t\t\r\n\t\t\t\tif(iterator >= temp.size()){\r\n\t\t\t\t\tint randomInteger = random.nextInt(temp.size());\r\n\t\t\t\t\tstringArray[i][j] = temp.get(randomInteger);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tstringArray[i][j] = temp.get(iterator);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor(Object string01 : keys){\r\n\t\t\t\t\tif(mapTM.get(string01) != null && !string01.equals(string)){\r\n\t\t\t\t\t\tString[][] temp01 = mapTM.get(string01);\r\n\t\t\t\t\t\tif(temp01[i][j] != null && temp01[i][j].equals(stringArray[i][j])){\r\n\t\t\t\t\t\t\tj = 0;\r\n\t\t\t\t\t\t\tCollections.shuffle(temp);\r\n\t\t\t\t\t\t\titerator = -1;\r\n\t\t\t\t\t\t\treset = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(reset){\r\n\t\t\t\t\treset = false;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (j < column && j != column - 1) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t} else if (j == column - 1 && i != row - 1) {\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tj = 0;\r\n\t\t\t\t\tCollections.shuffle(temp);\r\n\t\t\t\t\titerator = -1;\r\n\t\t\t\t} else if (j == column - 1 && i == row - 1) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmapTM.put((String) string, stringArray);\r\n\t\t}\r\n\t\t\r\n\t\tfor (Map.Entry<String, String[][]> entry : mapTM.entrySet()) {\r\n\t\t\tSystem.out.println(entry.getKey());\r\n\t\t\tSystem.out.println(Arrays.deepToString(entry.getValue()));\r\n\t\t}\r\n\r\n\t}", "public static HashMap<Integer, ArrayList<Ice>> sortedDataMap(ArrayList<Ice> iceData) throws IOException{\r\n\t\tHashMap<Integer,ArrayList<Ice>> iceMap = new HashMap<>();//creates new empty hashmap \r\n\r\n\t\t//loops over the entire arraylist\r\n\t\tfor (Ice iceDatapoint : iceData) {\r\n\t\t\tint month = iceDatapoint.getMonth();//extracts the month from the Ice object datapoint\r\n\t\t\tArrayList<Ice> thisIceList = iceMap.get(month);\t//gets all the values of a specific month in the hashmap\r\n\t\t\tif(thisIceList == null) {//checks if this arraylist is null\r\n\t\t\t\ticeMap.put(month,new ArrayList<Ice>());//creates a new entry in the hashmap\r\n\t\t\t}\r\n\t\t\ticeMap.get(month).add(iceDatapoint);//adds the Ice datapoint to its corresponding month\r\n\t\t}\r\n\r\n\t\treturn iceMap;//returns a hashmap containing the sorted data\r\n\t}", "void anonymizeEntries( List<Integer> listIdEntries, Timestamp dateCleanTo, Plugin plugin );", "public StatCognomiListe(LinkedHashMap<String, Integer> mappaCognomi) {\n this.mappaCognomi = mappaCognomi;\n doInit();\n }", "public int hashCode(){\n return name.hashCode();\n }", "public void loadMinionPiece(HashMap<Integer, MinionPiece> MinionPiece_HASH){\r\n \r\n try {\r\n Scanner scanner = new Scanner(new File(file_position+\"MinionPiece.csv\"));\r\n Scanner dataScanner = null;\r\n int index = 0;\r\n \r\n while (scanner.hasNextLine()) {\r\n dataScanner = new Scanner(scanner.nextLine());\r\n \r\n if(MinionPiece_HASH.size() == 0){\r\n dataScanner = new Scanner(scanner.nextLine());\r\n }\r\n \r\n dataScanner.useDelimiter(\",\");\r\n MinionPiece minionPiece = new MinionPiece(-1, -1, -1, Color.BLACK);\r\n \r\n while (dataScanner.hasNext()) {\r\n String data = dataScanner.next();\r\n if (index == 0) {\r\n minionPiece.setId(Integer.parseInt(data));\r\n } else if (index == 1) {\r\n minionPiece.setAreaNumber(Integer.parseInt(data));\r\n } else if (index == 2) {\r\n minionPiece.setColor(Color.valueOf(data));\r\n } else if (index == 3) {\r\n minionPiece.setPlayerID(Integer.parseInt(data));\r\n } else {\r\n System.out.println(\"invalid data::\" + data);\r\n }\r\n index++;\r\n }\r\n \r\n MinionPiece_HASH.put(minionPiece.getId(), minionPiece);\r\n index = 0;\r\n }\r\n \r\n scanner.close();\r\n \r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"Error: FileNotFound - loadMinionPiece\");\r\n }\r\n \r\n }", "private static void putTileHash(HashMap<Integer,Integer> hashes, int hash) {\n\t\tInteger freq = hashes.remove(hash);\n\t\thashes.put(hash, (freq == null) ? 1 : freq+1);\n\t}" ]
[ "0.6175184", "0.6142886", "0.613772", "0.5706399", "0.5676014", "0.56385744", "0.55888915", "0.5541733", "0.5535724", "0.54670894", "0.5405596", "0.5384199", "0.5382772", "0.5268042", "0.5265445", "0.52607954", "0.5251762", "0.5248441", "0.519394", "0.5174928", "0.517242", "0.51481026", "0.51424104", "0.5132059", "0.51175797", "0.5110058", "0.5070043", "0.50695395", "0.50665724", "0.50654054", "0.50478446", "0.5040579", "0.5030151", "0.5022086", "0.50117123", "0.4987597", "0.498205", "0.4979901", "0.49647537", "0.4960809", "0.49606976", "0.4946999", "0.49451897", "0.49428263", "0.49367818", "0.49316958", "0.49304262", "0.49282575", "0.49184218", "0.49113926", "0.49107727", "0.49070016", "0.49012268", "0.48998165", "0.48973963", "0.48903766", "0.4889991", "0.4882061", "0.48632035", "0.48630145", "0.48558676", "0.48476595", "0.48465806", "0.4832454", "0.48318642", "0.4830682", "0.4829576", "0.48184994", "0.48148027", "0.47981462", "0.4796466", "0.47941774", "0.47915855", "0.47873387", "0.47836474", "0.47815382", "0.47777733", "0.47777018", "0.47771314", "0.47751504", "0.4773067", "0.47730646", "0.4767914", "0.47678718", "0.47665158", "0.47664192", "0.47601983", "0.47492826", "0.47449386", "0.47417685", "0.47363228", "0.4734563", "0.4734012", "0.47272354", "0.47256964", "0.47189736", "0.47168362", "0.4714244", "0.47141004", "0.4709905" ]
0.6644151
0
/ Modifie le texte d'un question
public void updateQuestion(int id_question, String texteQuestion) { ContentValues data=new ContentValues(); data.put("texteQuestion", texteQuestion); db.update("question", data, "id_question=" + id_question, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void modifyQuestion(String text) {\n // TODO implement here\n }", "private void setQuestion() {\n Question.setText(gen.getQuestion() + \"\\t\\tProblem # \" + currentQuestion + \"/\" + numQuestions);\n }", "public void setQuestionText(String questionText) {\n this.questionText = questionText;\n }", "public void setQuestions() {\n\t\tString question1 = str1 + _QwdQuestionFst;\n\t\tSpannableString sb1 = new SpannableString(question1);\n\t\tsb1.setSpan(new ForegroundColorSpan(Color.BLACK), str1.length() ,\n\t\t\t\tsb1.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);\n\t\t_FPTV_Question_1.setText(sb1);\n\n\t\tString question2 = str2 + _QwdQuestionSec;\n\t\tSpannableString sb2 = new SpannableString(question2);\n\t\tsb2.setSpan(new ForegroundColorSpan(Color.BLACK), str2.length() ,\n\t\t\t\tsb2.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);\n\t\t_FPTV_Question_2.setText(sb2);\n\t}", "private void updateQuestion(){\n\t\tint question = mQuestionBank[mCurrentIndex].getQuestion();\n\t\tmQuestionTextView.setText(question);\n\t}", "private void updateQuestion(){\n int question = mQuestionBank[mCurrentIndex].getmQuestion();\n mQuestionTextView.setText(question);\n }", "public void setQuestion(){\n txt_question.setText(arrayList.get(quesAttempted).getQuestion());\n txt_optionA.setText(arrayList.get(quesAttempted).getOptionA());\n txt_optionB.setText(arrayList.get(quesAttempted).getOptionB());\n txt_optionC.setText(arrayList.get(quesAttempted).getOptionC());\n txt_optionD.setText(arrayList.get(quesAttempted).getOptionD());\n txt_que_count.setText(\"Que: \"+(quesAttempted+1)+\"/\"+totalQues);\n txt_score.setText(\"Score: \"+setScore);\n }", "private void addQuestion() {\n Question q = new Question(\n \"¿Quien propuso la prueba del camino básico ?\", \"Tom McCabe\", \"Tom Robert\", \"Tom Charlie\", \"Tom McCabe\");\n this.addQuestion(q);\n\n\n Question q1 = new Question(\"¿Qué es una prueba de Caja negra y que errores desean encontrar en las categorías?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \" determina la funcionalidad del sistema\", \" determina la funcionalidad del sistema\");\n this.addQuestion(q1);\n Question q2 = new Question(\"¿Qué es la complejidad ciclomática es una métrica de calidad software?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \"basada en el cálculo del número\", \"basada en el cálculo del número\");\n this.addQuestion(q2);\n //preguntas del quiz II\n Question q3=new Question(\"Las pruebas de caja blanca buscan revisar los caminos, condiciones, \" +\n \"particiones de control y datos, de las funciones o módulos del sistema; \" +\n \"para lo cual el grupo de diseño de pruebas debe:\",\n \"Conformar un grupo de personas para que use el sistema nuevo\",\n \"Ejecutar sistema nuevo con los datos usados en el sistema actual\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\");\n this.addQuestion(q3);\n Question q4=new Question(\"¿Las pruebas unitarias son llamadas?\",\n \"Pruebas del camino\", \"Pruebas modulares\",\n \"Pruebas de complejidad\", \"Pruebas modulares\");\n this.addQuestion(q4);\n Question q5=new Question(\"¿Qué es una prueba de camino básico?\",\n \"Hace una cobertura de declaraciones del código\",\n \"Permite determinar si un modulo esta listo\",\n \"Técnica de pueba de caja blanca\",\n \"Técnica de pueba de caja blanca\" );\n this.addQuestion(q5);\n Question q6=new Question(\"Prueba de camino es propuesta:\", \"Tom McCabe\", \"McCall \", \"Pressman\",\n \"Tom McCabe\");\n this.addQuestion(q6);\n Question q7=new Question(\"¿Qué es complejidad ciclomatica?\",\"Grafo de flujo\",\"Programming\",\n \"Metrica\",\"Metrica\");\n this.addQuestion(q7);\n //preguntas del quiz III\n Question q8 = new Question(\n \"¿Se le llama prueba de regresión?\", \"Se tienen que hacer nuevas pruebas donde se han probado antes\",\n \"Manten informes detallados de las pruebas\", \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\");\n this.addQuestion(q8);\n Question q9 = new Question(\"¿Cómo se realizan las pruebas de regresión?\",\n \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\", \"A través de herramientas de automatización de pruebas\", \"A través de herramientas de automatización de pruebas\");\n this.addQuestion(q9);\n Question q10 = new Question(\"¿Cuándo ya hay falta de tiempo para ejecutar casos de prueba ya ejecutadas se dejan?\",\n \"En primer plano\", \"En segundo plano\", \"En tercer plano\", \"En segundo plano\");\n this.addQuestion(q10);\n //preguntas del quiz IV\n Question q11 = new Question(\n \"¿En qué se enfocan las pruebas funcionales?\",\n \"Enfocarse en los requisitos funcionales\", \"Enfocarse en los requisitos no funcionales\",\n \"Verificar la apropiada aceptación de datos\", \"Enfocarse en los requisitos funcionales\");\n this.addQuestion(q11);\n Question q12 = new Question(\"Las metas de estas pruebas son:\", \"Verificar la apropiada aceptación de datos\",\n \"Verificar el procesamiento\", \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\",\n \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\");\n this.addQuestion(q12);\n Question q13 = new Question(\"¿En qué estan basadas este tipo de pruebas?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Técnicas de cajas negra\", \"Técnicas de cajas negra\");\n this.addQuestion(q13);\n //preguntas del quiz V\n Question q14 = new Question(\n \"¿Cúal es el objetivo de esta técnica?\", \"Identificar errores introducidos por la combinación de programas probados unitariamente\",\n \"Decide qué acciones tomar cuando se descubren problemas\",\n \"Verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Identificar errores introducidos por la combinación de programas probados unitariamente\");\n this.addQuestion(q14);\n Question q15 = new Question(\"¿Cúal es la descripción de la Prueba?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\");\n this.addQuestion(q15);\n Question q16 = new Question(\"Por cada caso de prueba ejecutado:\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Comparar el resultado esperado con el resultado obtenido\", \"Comparar el resultado esperado con el resultado obtenido\");\n this.addQuestion(q16);\n //preguntas del quiz VI\n Question q17 = new Question(\n \"Este tipo de pruebas sirven para garantizar que la calidad del código es realmente óptima:\",\n \"Pruebas Unitarias\", \"Pruebas de Calidad de Código\",\n \"Pruebas de Regresión\", \"Pruebas de Calidad de Código\");\n this.addQuestion(q17);\n Question q18 = new Question(\"Pruebas de Calidad de código sirven para: \",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Verificar que las especificaciones de diseño sean alcanzadas\",\n \"Garantizar la probabilidad de tener errores o bugs en la codificación\", \"Garantizar la probabilidad de tener errores o bugs en la codificación\");\n this.addQuestion(q18);\n Question q19 = new Question(\"Este análisis nos indica el porcentaje que nuestro código desarrollado ha sido probado por las pruebas unitarias\",\n \"Cobertura\", \"Focalización\", \"Regresión\", \"Cobertura\");\n this.addQuestion(q19);\n\n Question q20 = new Question( \"¿Qué significa V(G)?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Regiones\");\n this.addQuestion(q20);\n\n Question q21 = new Question( \"¿Qué significa A?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Aristas\");\n this.addQuestion(q21);\n\n Question q22 = new Question( \"¿Qué significa N?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Nodos\");\n this.addQuestion(q22);\n\n Question q23 = new Question( \"¿Qué significa P?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos Predicado\", \"Número de Nodos Predicado\");\n this.addQuestion(q23);\n Question q24 = new Question( \"De cuantás formas se puede calcular la complejidad ciclomatica V(G):\",\n \"3\", \"1\", \"2\", \"3\");\n this.addQuestion(q24);\n\n // END\n }", "public void changeQuestionText(Question question, String text) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n question.setText(text);\n dbb.overwriteQuestion(question);\n dbb.commit();\n dbb.closeConnection();\n }", "private void setquestion() {\n qinit();\n question_count++;\n\n if (modeflag == 3) {\n modetag = (int) (Math.random() * 3);\n } else {\n modetag = modeflag;\n }\n\n WordingIO trueword = new WordingIO(vocabulary);\n\n if (modetag == 0) {\n\n MCmode(trueword);\n }\n\n if (modetag == 1) {\n BFmode(trueword);\n }\n\n if (modetag == 2) {\n TLmode(trueword);\n }\n\n if (time_limit != 0) {\n timingtoanswer(time_limit, jLabel2, answer_temp, jLabel5, jLabel6, jButton1);\n }\n }", "public String checkNewQuestions() {\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tString question = \"\";\n\n\t\tquestion += testGenerator.getQuestionText(questionNo);\n\t\tquestion += testGenerator.getAnswerText(questionNo, 1);\n\t\tquestion += testGenerator.getAnswerText(questionNo, 2);\n\n\t\tif(numAnswers >= 3) {\n\t\t\tquestion += testGenerator.getAnswerText(questionNo, 3);\n\t\t} \n\t\tif(numAnswers == 4) {\n\t\t\tquestion += testGenerator.getAnswerText(questionNo, 4);\n\t\t}\n\t\treturn question;\n\t}", "public String getQuestionString() \n {\n return originalQuestionString;\n }", "public static void main(){\n \n \n String question = \"There are 10 types of people in this world, those who understand binary and those who don't.\";\n String answer = \"true\";\n \n Question tfQuest = new Question (question, answer);\n tfQuest.getAnswer();\n \n }", "public String getQuestioncontent() {\n return questioncontent;\n }", "private void settingQuestion() {\n\n int[] setWord = {0, 0, 0, 0, 0};\n int[] setPos = {0, 0, 0, 0};\n int[] setBtn = {0, 0, 0, 0};\n\n Random ans = new Random();\n int wordNum = ans.nextInt(vocabularyLesson.size());\n //answer = vocabularyLesson.get(wordNum).getMean();\n word = vocabularyLesson.get(wordNum).getWord();\n vocabularyID = vocabularyLesson.get(wordNum).getId();\n answer = word;\n\n Practice practice = pc.getPracticeById(vocabularyID);\n if (practice != null) {\n Log.d(\"idVocabulary\", practice.getSentence());\n question.setText(practice.getSentence());\n }\n\n\n // Random position contain answer\n setWord[wordNum] = 1;\n Random p = new Random();\n int pos = p.nextInt(4);\n if (pos == 0) {\n word1.setText(word);\n setBtn[0] = 1;\n }\n if (pos == 1) {\n word2.setText(word);\n setBtn[1] = 1;\n }\n if (pos == 2) {\n word3.setText(word);\n setBtn[2] = 1;\n }\n if (pos == 3) {\n word4.setText(word);\n setBtn[3] = 1;\n }\n setPos[pos] = 1;\n\n // Random 3 position contain 3 answer\n for (int i = 0; i < 3; i++) {\n Random ques = new Random();\n int num = ques.nextInt(5);\n int p1 = ques.nextInt(4);\n while (setWord[num] == 1 || setPos[p1] == 1) {\n num = ques.nextInt(5);\n p1 = ques.nextInt(4);\n }\n String wordIncorrect = vocabularyLesson.get(num).getWord();\n setWord[num] = 1;\n setPos[p1] = 1;\n if (setBtn[p1] == 0 && p1 == 0) {\n word1.setText(wordIncorrect);\n setBtn[0] = 1;\n }\n if (setBtn[p1] == 0 && p1 == 1) {\n word2.setText(wordIncorrect);\n setBtn[1] = 1;\n }\n if (setBtn[p1] == 0 && p1 == 2) {\n word3.setText(wordIncorrect);\n setBtn[2] = 1;\n }\n if (setBtn[p1] == 0 && p1 == 3) {\n word4.setText(wordIncorrect);\n setBtn[3] = 1;\n }\n }\n\n }", "public String getQuestionContent() {\n return questionContent;\n }", "public void sendQuestion() {\n/* 55 */ StringBuilder buf = new StringBuilder();\n/* 56 */ buf.append(getBmlHeader());\n/* */ \n/* 58 */ buf.append(\"label{text=\\\"\\\"}\");\n/* 59 */ buf.append(\"label{type=\\\"bold\\\";text=\\\"General\\\"}\");\n/* 60 */ buf.append(\"label{text=\\\" * I've keep some of the ways that HFC was used for skill increases. But no junk food, \\\"}\");\n/* 61 */ buf.append(\"label{text=\\\" e.g. nails are not used as an ingredient and if present in a container, they will stop the \\\"}\");\n/* 62 */ buf.append(\"label{text=\\\" food item being made.\\\"}\");\n/* 63 */ buf.append(\"label{text=\\\" * Meats now have a material, e.g. Meat, Dragon and Meat, Game\\\"}\");\n/* 64 */ buf.append(\"label{text=\\\" o As you can see it does not use the animal type, but a category as we have so \\\"}\");\n/* 65 */ buf.append(\"label{text=\\\" many animal types. Some of the categories are: (there are 16 total)\\\"}\");\n/* 66 */ buf.append(\"label{text=\\\" . Dragon\\\"}\");\n/* 67 */ buf.append(\"label{text=\\\" . Game\\\"}\");\n/* 68 */ buf.append(\"label{text=\\\" . Human\\\"}\");\n/* 69 */ buf.append(\"label{text=\\\" . Humanoid\\\"}\");\n/* 70 */ buf.append(\"label{text=\\\" . Snake\\\"}\");\n/* 71 */ buf.append(\"label{text=\\\" * Meat and fillets can now be put in FSB and Crates.\\\"}\");\n/* 72 */ buf.append(\"label{text=\\\" * Fish and fish fillets can now be put in FSB and Crates.\\\"}\");\n/* 73 */ buf.append(\"label{text=\\\" * Existing Zombified milk will lose its zombie status. New zombie milk should be fine.\\\"}\");\n/* 74 */ buf.append(\"label{text=\\\" * You will be able to seal some containers so long as they only have one liquid in them, \\\"}\");\n/* 75 */ buf.append(\"label{text=\\\" this will stop their decay.\\\"}\");\n/* 76 */ buf.append(\"label{text=\\\" o Small and Large Amphoria.\\\"}\");\n/* 77 */ buf.append(\"label{text=\\\" o Pottery Jar.\\\"}\");\n/* 78 */ buf.append(\"label{text=\\\" o Pottery Flask.\\\"}\");\n/* 79 */ buf.append(\"label{text=\\\" o Water Skin.\\\"}\");\n/* 80 */ buf.append(\"label{text=\\\" o Small Barrel.\\\"}\");\n/* 81 */ buf.append(\"harray{label{text=\\\" * \\\"};label{type=\\\"bold\\\";text=\\\"Bees\\\"};label{text=\\\" have been added.\\\"}}\");\n/* */ \n/* */ \n/* 84 */ buf.append(\"harray{label{text=\\\" * Cooking will now be from \\\"};label{type=\\\"bold\\\";text=\\\"recipes\\\"};label{text=\\\", this does not mean that you cannot continue \\\"}}\");\n/* */ \n/* */ \n/* 87 */ buf.append(\"label{text=\\\" cooking like you used to though, although some recipes will have changed.\\\"}\");\n/* 88 */ buf.append(\"harray{label{text=\\\" * A personal \\\"};label{type=\\\"bold\\\";text=\\\"cookbook\\\"};label{text=\\\" is now available which has the recipes that you know about in.\\\"}}\");\n/* */ \n/* */ \n/* 91 */ buf.append(\"label{text=\\\" * Hens eggs can now be found when foraging on grass tiles. And you will be able to put\\\"}\");\n/* 92 */ buf.append(\"label{text=\\\" in FSB, but that makes them infertile.\\\"}\");\n/* 93 */ buf.append(\"label{text=\\\" * Old containers and tools - now with more use.\\\"}\");\n/* 94 */ buf.append(\"label{text=\\\" o Sauce pan - had to change size of this, but that means some recipes need a \\\"}\");\n/* 95 */ buf.append(\"label{text=\\\" new one which is larger.\\\"}\");\n/* 96 */ buf.append(\"label{text=\\\" o Pottery bowl - can now be used to hold liquids as well, a lot of recipes use this.\\\"}\");\n/* 97 */ buf.append(\"label{text=\\\" o Hand - used to make some mixes, and other things. Note if a recipe says a \\\"}\");\n/* 98 */ buf.append(\"label{text=\\\" hand must be used, actually any active item will work.\\\"}\");\n/* 99 */ buf.append(\"label{text=\\\" o Fork - how else were you going to mix some stuff!\\\"}\");\n/* 100 */ buf.append(\"label{text=\\\" o Knife - used a lot in food preparation.\\\"}\");\n/* 101 */ buf.append(\"label{text=\\\" o Spoon - An alternative way to mix things (so same ingredients can be used in \\\"}\");\n/* 102 */ buf.append(\"label{text=\\\" multiple recipes. Also can be used to scoop.\\\"}\");\n/* 103 */ buf.append(\"label{text=\\\" o Press - can be used to squash something.\\\"}\");\n/* 104 */ buf.append(\"label{text=\\\" o Branch - branching out, could be used as a spit ...\\\"}\");\n/* 105 */ buf.append(\"label{text=\\\" * New containers and tools\\\"}\");\n/* 106 */ buf.append(\"label{text=\\\" o Stoneware. - used to make things like breads, biscuits etc\\\"}\");\n/* 107 */ buf.append(\"label{text=\\\" o Cake tin - used to make cakes\\\"}\");\n/* 108 */ buf.append(\"label{text=\\\" o Pie dish - used to make pies and tarts\\\"}\");\n/* 109 */ buf.append(\"label{text=\\\" o Roasting dish - used to roast food.\\\"}\");\n/* 110 */ buf.append(\"label{text=\\\" o Plate - used to make salads and sandwiches on.\\\"}\");\n/* 111 */ buf.append(\"label{text=\\\" o Mortar+Pestle - used to grind small things (e.g. spices)\\\"}\");\n/* 112 */ buf.append(\"label{text=\\\" o Measuring Jug - used to get a specific amount of liquid, its volume can be \\\"}\");\n/* 113 */ buf.append(\"label{text=\\\" adjusted (volume is same as weight for this).\\\"}\");\n/* 114 */ buf.append(\"label{text=\\\" o Still - used for distilling.\\\"}\");\n/* 115 */ buf.append(\"label{text=\\\" * New crops\\\"}\");\n/* 116 */ buf.append(\"label{text=\\\" o Carrots\\\"}\");\n/* 117 */ buf.append(\"label{text=\\\" o Cabbage\\\"}\");\n/* 118 */ buf.append(\"label{text=\\\" o Tomatos\\\"}\");\n/* 119 */ buf.append(\"label{text=\\\" o Sugar Beet\\\"}\");\n/* 120 */ buf.append(\"label{text=\\\" o Lettuce\\\"}\");\n/* 121 */ buf.append(\"label{text=\\\" o Peas\\\"}\");\n/* 122 */ buf.append(\"label{text=\\\" o Cucumbers\\\"}\");\n/* 123 */ buf.append(\"label{text=\\\" * New Bush\\\"}\");\n/* 124 */ buf.append(\"label{text=\\\" o Hazelnut bush - now you know where the hazelnuts come from.\\\"}\");\n/* 125 */ buf.append(\"label{text=\\\" * New Tree\\\"}\");\n/* 126 */ buf.append(\"label{text=\\\" o Orange tree - because it seemed like a good idea.\\\"}\");\n/* 127 */ buf.append(\"harray{label{text=\\\" * Spices - all can be planted in a \\\"};label{type=\\\"bold\\\";text=\\\"planter\\\"}label{text=\\\", except Nutmeg.\\\"}}\");\n/* */ \n/* */ \n/* 130 */ buf.append(\"label{text=\\\" o Cumin\\\"}\");\n/* 131 */ buf.append(\"label{text=\\\" o Ginger\\\"}\");\n/* 132 */ buf.append(\"label{text=\\\" o Paprika\\\"}\");\n/* 133 */ buf.append(\"label{text=\\\" o Turmeric\\\"}\");\n/* 134 */ buf.append(\"harray{label{text=\\\" * New Herbs - all Herbs can be planted in a \\\"};label{type=\\\"bold\\\";text=\\\"planter\\\"};}\");\n/* */ \n/* 136 */ buf.append(\"label{text=\\\" o Fennel\\\"}\");\n/* 137 */ buf.append(\"label{text=\\\" o Mint\\\"}\");\n/* 138 */ buf.append(\"label{text=\\\" * New items that are only found by forage / botanize. Note all above spices and herbs \\\"}\");\n/* 139 */ buf.append(\"label{text=\\\" and the new vegs can be found this way as well)\\\"}\");\n/* 140 */ buf.append(\"label{text=\\\" o Cocoa bean\\\"}\");\n/* 141 */ buf.append(\"label{text=\\\" o Nutmeg (note this is a spice but cannot be planted in a planter)\\\"}\");\n/* 142 */ buf.append(\"label{text=\\\" o Raspberries\\\"}\");\n/* 143 */ buf.append(\"label{text=\\\" o Hazelnut sprout.\\\"}\");\n/* 144 */ buf.append(\"label{text=\\\" o Orange sprout.\\\"}\");\n/* 145 */ buf.append(\"label{text=\\\" * Rocksalt\\\"}\");\n/* 146 */ buf.append(\"label{text=\\\" o Rock tiles that would of produced salt when mining will now be shown as \\\"}\");\n/* 147 */ buf.append(\"label{text=\\\" Rocksalt veins (this may take a day or two to show), but have a limited life (e.g. \\\"}\");\n/* 148 */ buf.append(\"label{text=\\\" you get 45-50 rocksalt from one).\\\"}\");\n/* 149 */ buf.append(\"label{text=\\\" o The Rocksalt can then be ground into salt using a grindstone. You can get\\\"}\");\n/* 150 */ buf.append(\"label{text=\\\" more than one salt from each Rocksalt bepending on your milling skill.\\\"}\");\n/* 151 */ buf.append(\"label{text=\\\" o Veins that had salt in, will be unaffected, e.g.you will still be able to get the \\\"}\");\n/* 152 */ buf.append(\"label{text=\\\" random salt when mining them.\\\"}\");\n/* 153 */ buf.append(\"label{text=\\\" * Trellis\\\"}\");\n/* 154 */ buf.append(\"label{text=\\\" o A new trellis has been added for hops.\\\"}\");\n/* 155 */ buf.append(\"label{text=\\\" o Trellis can now be harvested when their produce is in season (except ivy ones \\\"}\");\n/* 156 */ buf.append(\"label{text=\\\" don't have a season).\\\"}\");\n/* 157 */ buf.append(\"label{text=\\\" o To help plant your trellis in nice straight lines, you can plant them using a wall, \\\"}\");\n/* 158 */ buf.append(\"label{text=\\\" fence or tile border. And have three options, on left, center and on right.\\\"}\");\n/* 159 */ buf.append(\"label{text=\\\" o There is a limit of 4 planted trellis per tile. Any extras that are currently planted \\\"}\");\n/* 160 */ buf.append(\"label{text=\\\" on same tile will become unplanted.\\\"}\");\n/* 161 */ buf.append(\"label{text=\\\" * Flowers\\\"}\");\n/* 162 */ buf.append(\"label{text=\\\" o Flowers can now be used in some recipes, and therefore will now only go into \\\"}\");\n/* 163 */ buf.append(\"label{text=\\\" a food storage bin. This also applies to rose petals, oleander, lavender and \\\"}\");\n/* 164 */ buf.append(\"label{text=\\\" camellia.\\\"}\");\n/* 165 */ buf.append(\"label{text=\\\" o Any existing flowers in bulk storage bins are fine, you can still take them out,\\\"}\");\n/* 166 */ buf.append(\"label{text=\\\" but will not be able to put them back into the bulk storage bin, but they will go \\\"}\");\n/* 167 */ buf.append(\"label{text=\\\" into the food storage bin.\\\"}\");\n/* 168 */ buf.append(\"label{text=\\\" * The goodness of food\\\"}\");\n/* 169 */ buf.append(\"label{text=\\\" o Each meal made will have a bonus attached to it, so the same ingredients \\\"}\");\n/* 170 */ buf.append(\"label{text=\\\" making the same meal (in same cooker and same container) will end up with \\\"}\");\n/* 171 */ buf.append(\"label{text=\\\" this same bonus.\\\"}\");\n/* 172 */ buf.append(\"label{text=\\\" . This bonus will give a timed affinity to a skill, but can be different per \\\"}\");\n/* 173 */ buf.append(\"label{text=\\\" player, e.g. fish and chips may give a temp weaponsmithing affinity to \\\"}\");\n/* 174 */ buf.append(\"label{text=\\\" Joe, but to Tom it gives carpentry, (also may not give it to any skill).\\\"}\");\n/* 175 */ buf.append(\"label{text=\\\" o Nutrition has not been changed.\\\"}\");\n/* */ \n/* 177 */ buf.append(\"label{type=\\\"bold\\\";text=\\\"Bees\\\"}\");\n/* 178 */ buf.append(\"label{text=\\\" * Wild bee hives will appear in spring at random locations and they will vanish at the end \\\"}\");\n/* 179 */ buf.append(\"label{text=\\\" of the year (in winter). Note they will be in different locations each year.\\\"}\");\n/* 180 */ buf.append(\"label{text=\\\" * As time passes honey will be made in hives together with bees wax, the amount will\\\"}\");\n/* 181 */ buf.append(\"label{text=\\\" depend on nearby flowers, fields and trees.\\\"}\");\n/* 182 */ buf.append(\"label{text=\\\" * Each wild hive will start with one queen bee, this may increase by one every wurm \\\"}\");\n/* 183 */ buf.append(\"label{text=\\\" month, to a maximum of two, so long as the hive has over a certain amount of honey in \\\"}\");\n/* 184 */ buf.append(\"label{text=\\\" it. When there is two queen bees if there is a domestic hive nearby it may migrate to it.\\\"}\");\n/* 185 */ buf.append(\"label{text=\\\" * Domestic hives will be loadable. Even with a queen in it. So you can move it to \\\"}\");\n/* 186 */ buf.append(\"label{text=\\\" somewhere, e.g. your own deed. Watch out bees sting!\\\"}\");\n/* 187 */ buf.append(\"label{text=\\\" * Domestic hives that had a queen in it, will go dormant over the winter period and will \\\"}\");\n/* 188 */ buf.append(\"label{text=\\\" become active again in spring. But it is possible for the queen to die over winter if no \\\"}\");\n/* 189 */ buf.append(\"label{text=\\\" honey is left in the hive (Note can put sugar in hive to keep the queen alive.\\\"}\");\n/* 190 */ buf.append(\"label{text=\\\" * Honey ( and beeswax) will be collectable from hives.. But you may need a bee \\\"}\");\n/* 191 */ buf.append(\"label{text=\\\" smoker.. So bees do not sting you, note that this bee smoker is useful for other times, \\\"}\");\n/* 192 */ buf.append(\"label{text=\\\" like if you want to chop down a tree that has a hive, or load/unload a domestic hive \\\"}\");\n/* 193 */ buf.append(\"label{text=\\\" which has a queen in it.\\\"}\");\n/* */ \n/* 195 */ buf.append(\"label{type=\\\"bold\\\";text=\\\"Recipes\\\"}\");\n/* 196 */ buf.append(\"label{text=\\\" * As well as being able to examine a food container to see what it will make, you can \\\"}\");\n/* 197 */ buf.append(\"harray{label{text=\\\" also use \\\"};label{type=\\\"bold\\\";text=\\\"LORE\\\"};label{text=\\\", to get hints on what ingredient you could add into the container to be \\\"}}\");\n/* */ \n/* */ \n/* 200 */ buf.append(\"label{text=\\\" able to make something.\\\"}\");\n/* 201 */ buf.append(\"label{text=\\\" * Some more specialised recipes will call for a meat of a specific category, or a specific \\\"}\");\n/* 202 */ buf.append(\"label{text=\\\" fish, but most will use any meat or any fish or even any veg.\\\"}\");\n/* 203 */ buf.append(\"label{text=\\\" * Most new recipes only require one of each item, main exception is making sandwiches \\\"}\");\n/* 204 */ buf.append(\"label{text=\\\" which normally requires 2 slices of bread.\\\"}\");\n/* 205 */ buf.append(\"label{text=\\\" * Some recipes are an intermediate step, or some sauce which is used later e.g. there is \\\"}\");\n/* 206 */ buf.append(\"label{text=\\\" cake mix and white sauce.\\\"}\");\n/* 207 */ buf.append(\"label{text=\\\" * Lots of new food category types e.g.\\\"}\");\n/* 208 */ buf.append(\"label{text=\\\" o Curry\\\"}\");\n/* 209 */ buf.append(\"label{text=\\\" o Pizza\\\"}\");\n/* 210 */ buf.append(\"label{text=\\\" o Cookies\\\"}\");\n/* 211 */ buf.append(\"label{text=\\\" o Pie\\\"}\");\n/* 212 */ buf.append(\"label{text=\\\" o Tarts\\\"}\");\n/* 213 */ buf.append(\"label{text=\\\" o Biscuits\\\"}\");\n/* 214 */ buf.append(\"label{text=\\\" o Scones\\\"}\");\n/* 215 */ buf.append(\"label{text=\\\" o Salads\\\"}\");\n/* 216 */ buf.append(\"label{text=\\\" * And some of your old favorites like.\\\"}\");\n/* 217 */ buf.append(\"label{text=\\\" o Cakes\\\"}\");\n/* 218 */ buf.append(\"label{text=\\\" o Sandwiches\\\"}\");\n/* 219 */ buf.append(\"label{text=\\\" o Tea\\\"}\");\n/* 220 */ buf.append(\"label{text=\\\" o Wine\\\"}\");\n/* 221 */ buf.append(\"label{text=\\\" o Meal\\\"}\");\n/* 222 */ buf.append(\"label{text=\\\" * And there are some new drinks which will need distilling.\\\"}\");\n/* 223 */ buf.append(\"label{text=\\\" * Note you will need to experiment to find their recipes, but do note some items need a \\\"}\");\n/* 224 */ buf.append(\"label{text=\\\" mix before adding other items, e.g. you will now need a cake mix to make cakes.\\\"}\");\n/* 225 */ buf.append(\"label{text=\\\" * Some ingredients will only be found doing forage/botanize actions, whilst others, once \\\"}\");\n/* 226 */ buf.append(\"harray{label{text=\\\" found, they may be able to be planted as a \\\"};label{type=\\\"bold\\\";text=\\\"crop\\\"};label{text=\\\" or even in a \\\"};label{type=\\\"bold\\\";text=\\\"planter\\\"};label{text=\\\" (e.g. most spices \\\"}}\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* 231 */ buf.append(\"label{text=\\\" and herbs can be planted in a planter).\\\"}\");\n/* 232 */ buf.append(\"label{text=\\\" o Fresh is an attribute of an item when just found from foraging or picking, if you \\\"}\");\n/* 233 */ buf.append(\"label{text=\\\" put it in a FSB it looses that attribute.\\\"}\");\n/* 234 */ buf.append(\"label{text=\\\" * Some recipes are nameable this means that whoever is the first to make the item for \\\"}\");\n/* 235 */ buf.append(\"label{text=\\\" that recipe, will have their name added to the front of that recipe name, e.g. if Pifa was \\\"}\");\n/* 236 */ buf.append(\"label{text=\\\" first to make a meat curry (assuming that was nameable) then it would show to \\\"}\");\n/* 237 */ buf.append(\"label{text=\\\" everyone, when they discover it, as ''Pifa's meat curry''.\\\"}\");\n/* 238 */ buf.append(\"label{text=\\\" * Note only one recipe can be named per person.\\\"}\");\n/* 239 */ buf.append(\"label{text=\\\" * Some recipes may only be makeable once you have that recipe in your cookbook,\\\"}\");\n/* 240 */ buf.append(\"label{text=\\\" these recipes are only available from killing certain creatures.\\\"}\");\n/* 241 */ buf.append(\"label{text=\\\" * Recipes can be inscribed onto papryus (or paper), to do this you need to be looking at\\\"}\");\n/* 242 */ buf.append(\"label{text=\\\" the recipe in your cookbook, and then use the reed pen on a blank papryus (or paper).\\\"}\");\n/* 243 */ buf.append(\"label{text=\\\" o You can then mail these or trade them to others, where they can add it to their\\\"}\");\n/* 244 */ buf.append(\"label{text=\\\" cookbook, if they don't know it, by either reading the recipe and selecting to add\\\"}\");\n/* 245 */ buf.append(\"label{text=\\\" to their cookbook or activate it and r-click on the cookbook menu option.\\\"}\");\n/* */ \n/* 247 */ buf.append(\"label{type=\\\"bold\\\";text=\\\"Planter\\\"}\");\n/* 248 */ buf.append(\"label{text=\\\" * Items can be planted in a planter, e.g. a herb or a spice (not all spices).\\\"}\");\n/* 249 */ buf.append(\"label{text=\\\" * The planted item will start growing.\\\"}\");\n/* 250 */ buf.append(\"label{text=\\\" * After a while it will be available to be harvested.\\\"}\");\n/* 251 */ buf.append(\"label{text=\\\" * Harvesting will be available daily,\\\"}\");\n/* 252 */ buf.append(\"label{text=\\\" * Each time you harvest it will prolong its life\\\"}\");\n/* 253 */ buf.append(\"label{text=\\\" * Eventually it will get too woody to be harvested, then it is time to start afresh.\\\"}\");\n/* */ \n/* 255 */ buf.append(\"label{type=\\\"bold\\\";text=\\\"LORE\\\"}\");\n/* 256 */ buf.append(\"label{text=\\\"Using LORE on a container, will let you know what could be made, e.g.\\\"}\");\n/* 257 */ buf.append(\"label{text=\\\" * If the contents match a known recipe (known by you that is). You would get a message \\\"}\");\n/* 258 */ buf.append(\"label{text=\\\" like:\\\"}\");\n/* 259 */ buf.append(\"label{text=\\\" o 'The ingredients in the frying pan would make an omlette when cooked'.\\\"}\");\n/* 260 */ buf.append(\"label{text=\\\" * If the contents match an unknown recipe. Message would be like: \\\"}\");\n/* 261 */ buf.append(\"label{text=\\\" o 'You think this may well work when cooked'.\\\"}\");\n/* 262 */ buf.append(\"label{text=\\\" * If the contents would make any recipe but has the incorrect amount of a liquid then \\\"}\");\n/* 263 */ buf.append(\"label{text=\\\" you would get something like:\\\"}\");\n/* 264 */ buf.append(\"label{text=\\\" o 'The ingredients in the saucepan would make tea when cooked, but...'\\\"}\");\n/* 265 */ buf.append(\"label{text=\\\" 'There is too much water, try between 300g and 400g.'\\\"}\");\n/* 266 */ buf.append(\"label{text=\\\" * Partial Matches\\\"}\");\n/* 267 */ buf.append(\"label{text=\\\" o It performs checks in this order \\\"}\");\n/* 268 */ buf.append(\"label{text=\\\" . Unknown recipe that is not nameable.\\\"}\");\n/* 269 */ buf.append(\"label{text=\\\" . Unknown recipe that is nameable.\\\"}\");\n/* 270 */ buf.append(\"label{text=\\\" . Known recipe that is not nameable.\\\"}\");\n/* 271 */ buf.append(\"label{text=\\\" . Known recipe that is nameable.\\\"}\");\n/* 272 */ buf.append(\"label{text=\\\" o If the contents form part of any recipe, it will give a hint as to what to add to \\\"}\");\n/* 273 */ buf.append(\"label{text=\\\" make that recipe. E.g. 'have you tried adding a chopped onion?'.\\\"}\");\n/* 274 */ buf.append(\"label{text=\\\" . Note the recipe is picked at random from a list of possible recipes and \\\"}\");\n/* 275 */ buf.append(\"label{text=\\\" so is the shown ingredient.\\\"}\");\n/* */ \n/* 277 */ buf.append(\"label{type=\\\"bold\\\";text=\\\"Cookbook\\\"}\");\n/* 278 */ buf.append(\"label{text=\\\" * Every person has a cookbook, where your known recipes are shown.\\\"}\");\n/* 279 */ buf.append(\"label{text=\\\" * Some recipes are known by everyone by default, you have to find the others and \\\"}\");\n/* 280 */ buf.append(\"label{text=\\\" make them for them to appear in your cookbook..\\\"}\");\n/* 281 */ buf.append(\"label{text=\\\" * The initial page of your cookbook allows you to select what recipes to view, i.e. \\\"}\");\n/* 282 */ buf.append(\"label{text=\\\" o Target action - these are the ones where you use one item on another, e.g. \\\"}\");\n/* 283 */ buf.append(\"label{text=\\\" grinding cereals to make flour.\\\"}\");\n/* 284 */ buf.append(\"label{text=\\\" o Container action - these ones are when you use a tool of some kind on a \\\"}\");\n/* 285 */ buf.append(\"label{text=\\\" container to change the contents of the container into a different item. E.g. \\\"}\");\n/* 286 */ buf.append(\"label{text=\\\" using your hand on a pottery bowl which containers flour, water, salt and butter \\\"}\");\n/* 287 */ buf.append(\"label{text=\\\" to make pastry.\\\"}\");\n/* 288 */ buf.append(\"label{text=\\\" o Heat - these ones are your basic cooking recipes, where you put ingredients \\\"}\");\n/* 289 */ buf.append(\"label{text=\\\" into a food container, and put in an cooker and after the ingredients get hot the \\\"}\");\n/* 290 */ buf.append(\"label{text=\\\" container items change to the result, e.g. putting maple sap into a saucepan in \\\"}\");\n/* 291 */ buf.append(\"label{text=\\\" a lit oven, will result in maple syrup after sometime. Not all recipes work in all \\\"}\");\n/* 292 */ buf.append(\"label{text=\\\" cookers.\\\"}\");\n/* 293 */ buf.append(\"label{text=\\\" o Time - these ones are used for brewing.\\\"}\");\n/* 294 */ buf.append(\"label{text=\\\" * Also on the initial page you also have links to view recipes (that you know) by\\\"}\");\n/* 295 */ buf.append(\"label{text=\\\" o Tool - this gives a list of the tools that you know are used for cooking, selecting \\\"}\");\n/* 296 */ buf.append(\"label{text=\\\" a tool from that list will give you the known recipes that can be made from it.\\\"}\");\n/* 297 */ buf.append(\"label{text=\\\" o Cooker - this will give a list of cookers, and selecting a cooker from that list will \\\"}\");\n/* 298 */ buf.append(\"label{text=\\\" lead you to a list of known recipes that can be made in it\\\"}\");\n/* 299 */ buf.append(\"label{text=\\\" o Container - this will give you a list of containers that can be used by known \\\"}\");\n/* 300 */ buf.append(\"label{text=\\\" recipes, selecting one will then give a list of the known recipes that use that \\\"}\");\n/* 301 */ buf.append(\"label{text=\\\" container.\\\"}\");\n/* 302 */ buf.append(\"label{text=\\\" o Ingredients - gives a list of all your known ingredients, and again selecting one \\\"}\");\n/* 303 */ buf.append(\"label{text=\\\" of them will then show a list of known recipes that use that ingredient.\\\"}\");\n/* 304 */ buf.append(\"label{text=\\\" * Also you can search your recipes.\\\"}\");\n/* 305 */ buf.append(\"label{text=\\\" * From any list of recipes, you can select one and view what you think is used to make \\\"}\");\n/* 306 */ buf.append(\"label{text=\\\" that item\\\"}\");\n/* 307 */ buf.append(\"label{text=\\\" o Note that there are optional ingredients, and unless you have used them for an \\\"}\");\n/* 308 */ buf.append(\"label{text=\\\" ingredient, then they will not show in your version.\\\"}\");\n/* 309 */ buf.append(\"label{text=\\\" o Note that some recipes may use any type of meat, or fish, or veg, or herb, or \\\"}\");\n/* 310 */ buf.append(\"label{text=\\\" spice, when you attempt the same recipe with a different type, your recipe will \\\"}\");\n/* 311 */ buf.append(\"label{text=\\\" be updated to show that information, e.g. if your recipe says that it uses beef \\\"}\");\n/* 312 */ buf.append(\"label{text=\\\" meat, and you try with canine meat, then if it works, the recipe will update \\\"}\");\n/* 313 */ buf.append(\"label{text=\\\" to show any meat. \\\"}\");\n/* 314 */ buf.append(\"label{text=\\\" o Note that not all recipes can use all types.\\\"}\");\n/* */ \n/* 316 */ buf.append(createAnswerButton2());\n/* 317 */ getResponder().getCommunicator().sendBml(480, 500, true, true, buf.toString(), 200, 200, 200, this.title);\n/* */ }", "private void updateQuestion()//update the question each time\n\t{\n\t\tInteger num = random.nextInt(20);\n\t\tcurrentAminoAcid = FULL_NAMES[num];\n\t\tcurrentShortAA= SHORT_NAMES[num];\n\t\tquestionField.setText(\"What is the ONE letter name for:\");\n\t\taminoacid.setText(currentAminoAcid);\n\t\tanswerField.setText(\"\");\n\t\tvalidate();\n\t}", "@Override\n\tpublic String getQuestionAnswerText() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn question;\r\n\t}", "private void convertAnswerString() {\n currentAnswer = \"\";\n int count = 0;\n while (count < this.answerLayout.getChildCount()) {\n ImageView iv = (ImageView) this.answerLayout.getChildAt(count);\n currentAnswer += iv.getContentDescription();\n count++;\n }\n }", "public void setQuestion(String question) {\n this.question = question;\n }", "public void saveQuestion(){\n\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tString setAnswerBox = Integer.toString(numAnswers);\n\n\t\ttestGenerator.setQuestionText(questionNo, ques.getText());\n\t\ttestGenerator.setAnswerText(questionNo, 1, ans1.getText());\n\t\ttestGenerator.setAnswerText(questionNo, 2, ans2.getText());\n\n\t\ttestGenerator.setIsAnswerCorrect(questionNo, 1, answer1.isSelected());\n\t\ttestGenerator.setIsAnswerCorrect(questionNo, 2, answer2.isSelected());\n\n\t\tif((setAnswerBox.equals(\"3\")) || setAnswerBox.equals(\"4\")) {\n\t\t\ttestGenerator.setAnswerText(questionNo, 3, ans3.getText()); \t\n\t\t\ttestGenerator.setIsAnswerCorrect(questionNo, 3, answer3.isSelected());\n\t\t}\n\n\t\tif(setAnswerBox.equals(\"4\")) {\n\t\t\ttestGenerator.setAnswerText(questionNo, 4, ans4.getText()); \t\n\t\t\ttestGenerator.setIsAnswerCorrect(questionNo, 4, answer4.isSelected());\n\t\t}\n\t}", "public String askSomething(String question, String titel);", "@Override\n public String ask(String question) {\n return answers[position++];\n }", "public List<TextQuestion> TextQuestions(int aid);", "String answerStatement(boolean answer) {\n String answerStatement = getResources().getString(R.string.wrong);\n if (answer) {\n answerStatement = getResources().getString(R.string.correct);\n }\n return answerStatement;\n }", "private void creatingNewQuestion() {\r\n AbstractStatement<?> s;\r\n ListQuestions lq = new ListQuestions(ThemesController.getThemeSelected());\r\n switch ((String) typeQuestion.getValue()) {\r\n case \"TrueFalse\":\r\n // just to be sure the answer corresponds to the json file\r\n Boolean answer = CorrectAnswer.getText().equalsIgnoreCase(\"true\");\r\n s = new TrueFalse<>(Text.getText(), answer);\r\n break;\r\n\r\n case \"MCQ\":\r\n s = new MCQ<>(Text.getText(), TextAnswer1.getText(), TextAnswer2.getText(), TextAnswer3.getText(), CorrectAnswer.getText());\r\n break;\r\n\r\n default:\r\n s = new ShortAnswer<>(Text.getText(), CorrectAnswer.getText());\r\n break;\r\n }\r\n lq.addQuestion(new Question(s, ThemesController.getThemeSelected(), Difficulty.fromInteger((Integer) difficulty.getValue()) ));\r\n lq.writeJson(ThemesController.getThemeSelected());\r\n }", "public void setQuestionContent(String questionContent) {\n this.questionContent = questionContent;\n }", "public void drawQuestion(){\n\t\tfont.draw(batch, ques, screenWidth / 5 , 75 );\n\t}", "private void addFormattedQuestionText(String question){\n Font font = new Font(\"Areal\", Font.ITALIC + Font.BOLD,50);\n FontMetrics metrics = getFontMetrics(font);\n int numLines = (metrics.stringWidth(question)+100)/(getWidth()-MARGIN*4) + 1;\n\n double y = (numLines - 1) * -0.5;\n\n ArrayList<String> lines = split(question,getWidth()-MARGIN*4,metrics);\n \n for (int i = 0; i < numLines; i++){\n JLabel label = new JLabel(lines.get(i));\n label.setFont(font);\n label.setHorizontalAlignment(JLabel.CENTER);\n label.setHorizontalTextPosition(JLabel.CENTER);\n label.setBounds(MARGIN*2,(int)(metrics.getHeight()*y) + i*metrics.getHeight() ,getWidth()-MARGIN*4,getHeight());\n label.setForeground(MainScreen.TEXT_COLOR);\n add(label);\n }\n }", "public void setAnswerText1(String answerText1) {\r\n\t\tthis.answerText1 = answerText1;\r\n\t}", "public String getQuestion(int a) {\n String question = textQuestions[a];\n return question;\n }", "@Override public String getQueso(){\n return \"manchego \";\n }", "public abstract void generateQuestion();", "private void setQuestionView()\n\t{\n txtQNumber.setText(qid + 1 + \"/\" + numberOfQuestions);\n\t\ttxtQuestion.setText(currentQ.getQUESTION());\n\t\ttxtReference.setText(currentQ.getREFERENCE());\n\t\trda.setText(currentQ.getOPTA());\n\t\trdb.setText(currentQ.getOPTB());\n\t\trdc.setText(currentQ.getOPTC());\n\t\trdd.setText(currentQ.getOPTD());\n\t\tqid++;\n\t}", "private void displayQuestion(Question question) {\n String query = question.getQuery();\n TextView queryTextView = getTextViewById(\"quiz_query\");\n queryTextView.setText(query);\n\n //Setting text for quiz options\n Iterator<String> options = question.getOptions().iterator();\n RadioButton A = getRadioButtonById(\"optionA\");\n RadioButton B = getRadioButtonById(\"optionB\");\n RadioButton C = getRadioButtonById(\"optionC\");\n RadioButton D = getRadioButtonById(\"optionD\");\n A.setText(options.next());\n B.setText(options.next());\n C.setText(options.next());\n D.setText(options.next());\n }", "public QuestionInfo (String pergunta){\r\n this.question = pergunta;\r\n }", "public void setQuestion(String question) {\n\t\tthis.question = question;\n\t}", "public String getQuestion() {\n\t\treturn QAUTHOR + book.getTitle() + \"?\";\n\t}", "public String getQuestion() {\n return question;\n }", "public void setQuestion(){\n\n\n triggerReport(); //Check if max questions are displayed, if yes then show report\n\n MyDatabase db = new MyDatabase(QuizCorner.this);\n Cursor words = db.getQuizQuestion();\n TextView question_text = (TextView) findViewById(R.id.question_text);\n RadioButton rb;\n resetOptions();\n disableCheck();\n enableRadioButtons();\n hideAnswer();\n words.moveToFirst();\n word = words.getString(words.getColumnIndex(\"word\"));\n correct_answer = words.getString(words.getColumnIndex(\"meaning\"));\n question_text.setText(word + \" means:\");\n for (int i = 0; i < 4; i++){\n answers[i] = words.getString(words.getColumnIndex(\"meaning\"));\n words.moveToNext();\n }\n answers = randomizeArray(answers);\n for (int i = 0; i < 4; i++){\n rb = (RadioButton) findViewById(options[i]);\n rb.setText(answers[i]);\n }\n question_displayed_count++;\n }", "private void nextQuestion() {\n mCurrentIndex = (mCurrentIndex + 1) % questions.length;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }", "public void startTextQuestionSet() {\n this.textQuestionSet = new HashSet<>();//creates a new textQuestionSet\n for (Question q : this.getForm().getQuestionList()) {//for every question in the question list of the current form\n if (q.getType().getId() == 3) {//if the question is type Text Question\n Quest newQuest = new Quest();//creates a new Quest\n newQuest.setqQuestion(q);//adds the current question to the new Quest\n this.textQuestionSet.add(newQuest);//adds the new Quest to the new textQuestionSet\n }\n }\n }", "public String quizGreet() {\n return (\"\\n | | _ _ _| / \\\\ _ \\n\"\n + \" |/\\\\|(_)| (_| \\\\__/|_) \\n\"\n + \" | \\n\"\n + \"Let's do some quiz to enhance your word knowledge \\n\"\n + \"Type \\\"start\\\" to begin quiz or \\\"exit_quiz\\\" to go back\");\n }", "private void populateQuestion(String tempQuestionText) {\n\n\t\t// set them to radio options\n\t\tquestionTextView.setText(tempQuestionText);\n\n\t}", "public String getQuestion() {\n return question;\n }", "public FAQ(String question, String answer){\n\t\tthis.question = question;\n\t\tthis.answer = answer;\n\t}", "public String getQuestion() {\n return mQuestion;\n }", "public String getQuestion() {\n\t\treturn question;\n\t}", "public void displayQuestions(){\n\t\t//create a string which would be displayed in the question label\n\t\tString q = currentNode.getData().toString();\n\t\t//set text question Label\n\t\tquestions.setText(q);\n\t}", "public void printQuestion() {\n\t\tSystem.out.println(question);\n\t}", "public Question(String aQText, String anA1Text, String anA2Text, String anA3Text, String anA4Text, int aCorrect, int aValue){\n qText = aQText;\n a1Text = anA1Text;\n a2Text = anA2Text;\n a3Text = anA3Text;\n a4Text = anA4Text;\n correct = aCorrect;\n value = aValue;\n }", "private String getQuestion(String name, String number)\n {\n \treturn String.format(getString(R.string.dialog_message, ((name != null && !name.equals(\"\")) ? name : getString(R.string.unknown_name)), number));\n }", "public void setQuestion(String newQuestion) {\n question = newQuestion;\n }", "public void choicesText() {\n\t\tmcqChoicesText1 = answerChoice.get(0).getText().trim();\n\t\tmcqChoicesText2 = answerChoice.get(1).getText().trim();\n\t\tmcqChoicesText3 = answerChoice.get(2).getText().trim();\n\t\tmcqChoicesText4 = answerChoice.get(3).getText().trim();\n\t\tmcqChoicesText5 = answerChoice.get(4).getText().trim();\n\t\tmcqChoicesText6 = answerChoice.get(5).getText().trim();\n\t}", "private void setAnswers()\n {\n StringBuilder answers = new StringBuilder(256);\n String[] correctAnswers = getResources().getStringArray(R.array.correct_answers);\n TextView answer_view = (TextView) findViewById(R.id.answers);\n for(int i = 0 ; i < correctAnswers.length; i++)\n {\n answers.append(correctAnswers[i]);\n }\n answer_view.setText(answers.toString());\n }", "public Question(String text, String type, String crrAnswer)\n {\n this.type = type;\n this.text = text;\n this.textCrrAnswer = crrAnswer;\n\n this.mcCrrAnswer = -1;\n this.id = Utility.generateUUID();\n }", "public String getAnswercontent() {\n return answercontent;\n }", "private void setFAQs () {\n\n QuestionDataModel question1 = new QuestionDataModel(\n \"What is Psychiatry?\", \"Psychiatry deals with more extreme mental disorders such as Schizophrenia, where a chemical imbalance plays into an individual’s mental disorder. Issues coming from the “inside” to “out”\\n\");\n QuestionDataModel question2 = new QuestionDataModel(\n \"What Treatments Do Psychiatrists Use?\", \"Psychiatrists use a variety of treatments – including various forms of psychotherapy, medications, psychosocial interventions, and other treatments (such as electroconvulsive therapy or ECT), depending on the needs of each patient.\");\n QuestionDataModel question3 = new QuestionDataModel(\n \"What is the difference between psychiatrists and psychologists?\", \"A psychiatrist is a medical doctor (completed medical school and residency) with special training in psychiatry. A psychologist usually has an advanced degree, most commonly in clinical psychology, and often has extensive training in research or clinical practice.\");\n QuestionDataModel question4 = new QuestionDataModel(\n \"What is Psychology ?\", \"Psychology is the scientific study of the mind and behavior, according to the American Psychological Association. Psychology is a multifaceted discipline and includes many sub-fields of study such areas as human development, sports, health, clinical, social behavior, and cognitive processes.\");\n QuestionDataModel question5 = new QuestionDataModel(\n \"What is psychologists goal?\", \"Those with issues coming from the “outside” “in” (i.e. lost job and partner so feeling depressed) are better suited with psychologists, they offer guiding you into alternative and healthier perspectives in tackling daily life during ‘talk therapy’\");\n QuestionDataModel question6 = new QuestionDataModel(\n \"What is the difference between psychiatrists and psychologists?\", \"Psychiatrists can prescribe and psychologists cannot, they may be able to build a report and suggest medications to a psychiatrist but it is the psychiatrist that has the final say.\");\n QuestionDataModel question7 = new QuestionDataModel(\n \"What is a behavioural therapist?\", \"A behavioural therapist such as an ABA (“Applied Behavioural Analysis”) therapist or an occupational therapist focuses not on the psychological but rather the behavioural aspects of an issue. In a sense, it can be considered a “band-aid” fix, however, it has consistently shown to be an extremely effective method in turning maladaptive behaviours with adaptive behaviours.\");\n QuestionDataModel question8 = new QuestionDataModel(\n \"Why behavioral therapy?\", \"Cognitive-behavioral therapy is used to treat a wide range of issues. It's often the preferred type of psychotherapy because it can quickly help you identify and cope with specific challenges. It generally requires fewer sessions than other types of therapy and is done in a structured way.\");\n QuestionDataModel question9 = new QuestionDataModel(\n \"Is behavioral therapy beneficial?\", \"Psychiatrists can prescribe and psychologists cannot, they may be able to build a report and suggest medications to a psychiatrist but it is the psychiatrist that has the final say.\");\n QuestionDataModel question10 = new QuestionDataModel(\n \"What is alternative therapy?\", \"Complementary and alternative therapies typically take a holistic approach to your physical and mental health.\");\n QuestionDataModel question11 = new QuestionDataModel(\n \"Can they treat mental health problems?\", \"Complementary and alternative therapies can be used as a treatment for both physical and mental health problems. The particular problems that they can help will depend on the specific therapy that you are interested in, but many can help to reduce feelings of depression and anxiety. Some people also find they can help with sleep problems, relaxation, and feelings of stress.\");\n QuestionDataModel question12 = new QuestionDataModel(\n \"What else should I consider before starting therapy?\", \"Only you can decide whether a type of treatment feels right for you, But it might help you to think about: What do I want to get out of it? Could this therapy be adapted to meet my needs?\");\n\n ArrayList<QuestionDataModel> faqs1 = new ArrayList<>();\n ArrayList<QuestionDataModel> faqs2 = new ArrayList<>();\n ArrayList<QuestionDataModel> faqs3 = new ArrayList<>();\n ArrayList<QuestionDataModel> faqs4 = new ArrayList<>();\n faqs1.add(question1);\n faqs1.add(question2);\n faqs1.add(question3);\n faqs2.add(question4);\n faqs2.add(question5);\n faqs2.add(question6);\n faqs3.add(question7);\n faqs3.add(question8);\n faqs3.add(question9);\n faqs4.add(question10);\n faqs4.add(question11);\n faqs4.add(question12);\n\n\n CategoryDataModel category1 = new CategoryDataModel(R.drawable.psychaitry,\n \"Psychiatry\",\n \"Psychiatry is the medical specialty devoted to the diagnosis, prevention, and treatment of mental disorders.\",\n R.drawable.psychiatry_q);\n\n CategoryDataModel category2 = new CategoryDataModel(R.drawable.psychology,\n \"Psychology\",\n \"Psychology is the science of behavior and mind which includes the study of conscious and unconscious phenomena.\",\n R.drawable.psychology_q);\n\n CategoryDataModel category3 = new CategoryDataModel(R.drawable.behavioral_therapy,\n \"Behavioral Therapy\",\n \"Behavior therapy is a broad term referring to clinical psychotherapy that uses techniques derived from behaviorism\",\n R.drawable.behaviour_therapy_q);\n CategoryDataModel category4 = new CategoryDataModel(R.drawable.alternative_healing,\n \"Alternative Therapy\",\n \"Complementary and alternative therapies typically take a holistic approach to your physical and mental health.\",\n R.drawable.alternative_therapy_q);\n\n String FAQ1 = \"What is Psychiatry?\";\n String FAQ2 = \"What is Psychology?\";\n String FAQ3 = \"What is Behavioral Therapy?\";\n String FAQ4 = \"What is Alternative Therapy?\";\n String FAQ5 = \"Report a problem\";\n\n FAQsDataModel FAQsDataModel1 = new FAQsDataModel(FAQ1, category1,faqs1);\n FAQsDataModel FAQsDataModel2 = new FAQsDataModel(FAQ2, category2,faqs2);\n FAQsDataModel FAQsDataModel3 = new FAQsDataModel(FAQ3, category3,faqs3);\n FAQsDataModel FAQsDataModel4 = new FAQsDataModel(FAQ4, category4,faqs4);\n FAQsDataModel FAQsDataModel5 = new FAQsDataModel(FAQ5, category4,faqs4);\n\n\n\n if (mFAQs.isEmpty()) {\n\n mFAQs.add(FAQsDataModel1);\n mFAQs.add(FAQsDataModel2);\n mFAQs.add(FAQsDataModel3);\n mFAQs.add(FAQsDataModel4);\n mFAQs.add(FAQsDataModel5);\n\n\n }\n }", "public void setQuestion(){\n String welcomeTextString = \"Welcome \" + getIntent().getStringExtra(\"name\") + \"!\";\n welcomeText.setText(welcomeTextString);\n\n //Setting Question title, description, and answers\n questionTitle.setText(questions[currentQuestion-1][0]);\n questionDescription.setText(questions[currentQuestion-1][1]);\n ans1.setText(questions[currentQuestion-1][2]);\n ans2.setText(questions[currentQuestion-1][3]);\n ans3.setText(questions[currentQuestion-1][4]);\n\n //Save correct answer\n correctAnswer = questions[currentQuestion-1][5];\n\n //Set progress bar and progress text\n progressBar.setProgress(currentQuestion);\n progressText.setText(currentQuestion.toString() + \"/5\");\n\n //Clear selection of buttons if any are already selected\n ans1.setBackgroundColor(getResources().getColor(R.color.ans_btn));\n ans2.setBackgroundColor(getResources().getColor(R.color.ans_btn));\n ans3.setBackgroundColor(getResources().getColor(R.color.ans_btn));\n }", "java.lang.String getCorrectAnswer();", "public static void printGameQuestion(String question) {\n final String label = \"Q: \";\n System.out.println(label + prettyPrintFormatter(question, label.length()));\n System.out.println(ENTER_ATTEMPT_LINE);\n printPrompt();\n }", "private void setQuestion(int resID){\n questionView.setText(resID);\n ecaFragment.sendToECAToSpeak(getResources().getString(resID));\n }", "public String getAnswerText1() {\r\n\t\treturn answerText1;\r\n\t}", "public void createQuestion(int sid,int qid,String qtype,String qtitle,String answer_a,String answer_b,String answer_c,String answer_d);", "protected void constructNewQuestion(){\n arabicWordScoreItem = wordScoreTable.whatWordToLearn();\n arabicWord = arabicWordScoreItem.word;\n correctAnswer = dictionary.get(arabicWord);\n\n for (int i=0;i<wrongAnswers.length;i++){\n int wrongAnswerId;\n String randomArabicWord;\n String wrongAnswer;\n do {\n wrongAnswerId = constructQuestionRandom.nextInt(next_word_index);\n randomArabicWord = dictionary_key_list.get(wrongAnswerId);\n wrongAnswer = dictionary.get(randomArabicWord);\n } while (wrongAnswer.equals(correctAnswer));\n wrongAnswers[i] = wrongAnswer;\n }\n }", "@Override\r\n public String ask() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n word = \"Do you like the Story?\";\r\n System.out.println(word);\r\n return word;\r\n }", "public String get_question(){return this._question;}", "public String generateQuestion(){\r\n qType = rand.nextInt(2);\r\n if (qType ==0)\r\n return \"Multiple choice question.\";\r\n else\r\n return \"Single choice question.\";\r\n }", "public void feedback(boolean isCorrect, VocabularyQuiz question) {\n String correctMeaning = question.getSelections().get(question.getAnswer());\n String message;\n if (isCorrect) {\n message = \"Correct!\";\n totalCorrect++;\n } else {\n message = \"Incorrect! The answer is \" + correctMeaning;\n }\n JOptionPane.showMessageDialog(gui.getFrame(), message);\n }", "private void updateHelpText(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\n\t\t((QuestionDef)propertiesObj).setHelpText(txtHelpText.getText());\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t}", "public void showQuestion()\n\t{\n\t\tSystem.out.println(ans);\n\t\tfor(int k = 0; k<numAns; k++)\n\t\t{\n\t\t\tSystem.out.println(k+\". \"+answers[k]);\n\t\t}\n\t}", "public static String getQuestion() {\n\t\treturn \"3) A line in the xy-plane passes through the origin and has a slope of 1/7. Which of \\\\n\"+\"the following points lies on the line?\";\n\t}", "public void resetQuestion() \n\t{\n\t\tthis.game = masterPanel.getGame();\n\t\t\n\t\tArrayList<String> tempQuestion = new ArrayList<String>();\n\t\ttempQuestion = getRandQuestion();\n\t\t\n\t\tquestion.setText(tempQuestion.get(0));\n\t\tanswerOne.setText(tempQuestion.get(1));\n\t\tanswerTwo.setText(tempQuestion.get(2));\n\t\tanswerThree.setText(tempQuestion.get(3));\n\t\tanswerFour.setText(tempQuestion.get(4));\n\t\tcorrectAnswer = tempQuestion.get(5);\n\t\t\n\t\tlayoutConstraints.gridy = 1;\n\t\tthis.add(answerOne, layoutConstraints);\n\t\t\n\t\tlayoutConstraints.gridy = 2;\n\t\tthis.add(answerTwo, layoutConstraints);\n\t\t\n\t\tlayoutConstraints.gridy = 3;\n\t\tthis.add(answerThree, layoutConstraints);\n\t\t\n\t\tlayoutConstraints.gridy = 4;\n\t\tthis.add(answerFour, layoutConstraints);\n\t\t\n\t\tthis.repaint();\n\t}", "@Override\n\tpublic String getQuest() {\n\t\t// TODO Auto-generated method stub\n\t\treturn this.question;\n\t}", "public Question(String statement, String answer){\n this.statement = statement;\n this.answer = answer;\n }", "private void previousQuestion() {\n if (mCurrentIndex > 0) {\n mCurrentIndex = (mCurrentIndex - 1) % questions.length;\n }\n else\n mCurrentIndex = questions.length - 1;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }", "public void setQuestion(int index, String question){\n if (question == null || question.equals(\"\")) {\n System.out.println(\"Question cannot be empty.\");\n }\n else {\n questionList.set(index, question);\n }\n }", "private void removeQuestion(){\n\t\tif(questionText != null){\n\t\t\tquestionBox.remove(questionText);\n\t\t\tquestionBox.reDraw();\n\t\t}\n\t}", "public void answerQuestion(){\n for (int i = 0; i < questionList.size(); i++){\r\n if (questionList.get(i).question.startsWith(\"How\")){\r\n howQuestions.add(new Question(questionList.get(i).id, questionList.get(i).question, questionList.get(i).answer));\r\n }\r\n }\r\n\r\n // Print All When Questions\r\n System.out.println(\"How Questions\");\r\n for (int i = 0; i < howQuestions.size(); i++){\r\n System.out.println(howQuestions.get(i).question);\r\n }\r\n\r\n //==== Question Entities ====\r\n // Split All When Question to only questions that have the entities\r\n if (!howQuestions.isEmpty()){\r\n if (!questionEntities.isEmpty()){\r\n for (int c = 0; c < questionEntities.size(); c++){\r\n for (int i = 0; i < howQuestions.size(); i++){\r\n if (howQuestions.get(i).question.contains(questionEntities.get(c))){\r\n answers.add(new Question(howQuestions.get(i).id, howQuestions.get(i).question, howQuestions.get(i).answer));\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n if (!questionTags.isEmpty()){\r\n for (int c = 0; c < questionTags.size(); c++){\r\n for (int i = 0; i < howQuestions.size(); i++){\r\n if (howQuestions.get(i).question.contains(questionTags.get(c))){\r\n answers.add(new Question(howQuestions.get(i).id, howQuestions.get(i).question, howQuestions.get(i).answer));\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n System.out.println(\"There no answer for your question !\");\r\n System.exit(0);\r\n }\r\n }\r\n }\r\n\r\n // Print All Entities Questions\r\n System.out.println(\"Questions of 'How' that have entities and tags :\");\r\n for (int i = 0; i < answers.size(); i++){\r\n for (int j = 1; j < answers.size(); j++){\r\n if (answers.get(i).id == answers.get(j).id){\r\n answers.remove(j);\r\n }\r\n }\r\n }\r\n \r\n for (int i = 0; i < answers.size(); i++){\r\n System.out.println(answers.get(i).question);\r\n }\r\n\r\n\r\n //==== Question Tags ====\r\n for (int i = 0; i < questionTags.size(); i++){\r\n for (int k = 0; k < answers.size(); k++){\r\n if (answers.get(k).question.contains(questionTags.get(i))){\r\n continue;\r\n }\r\n else{\r\n answers.remove(k);\r\n }\r\n }\r\n }\r\n }", "public void setQuestion(Question q)\n {\n currentQuestion=q;\n questionLabel.setText(q.getQuestion());\n feedbackLabel.setVisible(false);\n }", "public void initializeQuestion(){\n\t\ttry{Element root = new XmlReader().parse(Gdx.files.internal(xmlFile));\n\t\tElement artist = root.getChildByName(formatName(game.getArtist()));\n\t\tElement quesNum = artist.getChildByName(Integer.toString(game.getQuestion()));\n\t\tElement question = quesNum.getChildByName(\"Question\");\n\t\tques = question.getText();\n\t\t}\n\t\tcatch(IOException e){\n\t\t}\n\t}", "public void print_question(PrintWriter output) {\n output.printf(\"%-15d|%-10d|%-15s|%-40s|\",getQID(),getTopicNo(),getDifficultyLevel(),getDescription());\r\n \r\n }", "private void makeAToast(int stringQuestionId) {\n Toast hint = Toast.makeText(this, getResources().getString(stringQuestionId), Toast.LENGTH_SHORT);\n hint.setGravity(Gravity.CENTER_HORIZONTAL,0,0);\n hint.show();\n }", "private void fillQuestionsTable() {\n Question q1 = new Question(\"Who is NOT a Master on the Jedi council?\", \"Anakin Skywalker\", \"Obi Wan Kenobi\", \"Mace Windu\", \"Yoda\", 1);\n Question q2 = new Question(\"Who was Anakin Skywalker's padawan?\", \"Kit Fisto\", \"Ashoka Tano\", \"Barris Ofee\", \"Jacen Solo\",2);\n Question q3 = new Question(\"What Separatist leader liked to make find additions to his collection?\", \"Pong Krell\", \"Count Dooku\", \"General Grevious\", \"Darth Bane\", 3);\n Question q4 = new Question(\"Choose the correct Response:\\n Hello There!\", \"General Kenobi!\", \"You are a bold one!\", \"You never should have come here!\", \"You turned her against me!\", 1);\n Question q5 = new Question(\"What ancient combat technique did Master Obi Wan Kenobi use to his advantage throughout the Clone Wars?\", \"Kendo arts\", \"The High ground\", \"Lightsaber Form VIII\", \"Force healing\", 2);\n Question q6 = new Question(\"What was the only surviving member of Domino squad?\", \"Fives\", \"Heavy\", \"Echo\", \"Jesse\", 3);\n Question q7 = new Question(\"What Jedi brutally murdered children as a part of his descent to become a Sith?\", \"Quinlan Vos\", \"Plo Koon\", \"Kit Fisto\", \"Anakin Skywalker\", 4);\n Question q8 = new Question(\"What Sith was the first to reveal himself to the Jedi after a millenia and was subsquently cut in half shortly after?\", \"Darth Plagieus\", \"Darth Maul\", \"Darth Bane\", \"Darth Cadeus\", 2);\n Question q9 = new Question(\"What 4 armed creature operates a diner on the upper levels of Coruscant?\", \"Dexter Jettster\", \"Cad Bane\", \"Aurua Sing\", \"Dorme Amidala\", 1);\n Question q10 = new Question(\"What ruler fell in love with an underage boy and subsequently married him once he became a Jedi?\", \"Aurua Sing\", \"Duttchess Satine\", \"Mara Jade\", \"Padme Amidala\", 4);\n\n // adds them to the list\n addQuestion(q1);\n addQuestion(q2);\n addQuestion(q3);\n addQuestion(q4);\n addQuestion(q5);\n addQuestion(q6);\n addQuestion(q7);\n addQuestion(q8);\n addQuestion(q9);\n addQuestion(q10);\n }", "private static JPanel setQuestionText(String text){\n JPanel northPanel = new JPanel(); // JPanel to be returned\n JLabel label = new JLabel(text); // Label which displays the question\n char tempChar;\n String tempString = \"\";\n\n if (text.length() > 100){\n tempChar = text.charAt(100);\n int i = 100;\n while (tempChar != ' ' && text.length() > i){\n tempChar = text.charAt(i-1);\n i--;\n }\n tempString = text.substring(i);\n text = text.substring(0, i);\n }\n label = new JLabel(\"<html>\" + text + \"<br/>\" + tempString + \"</html>\", SwingConstants.CENTER);\n\n // Add the label to the panel and return the panel\n northPanel.add(label);\n return northPanel;\n }", "public void showQuestion(int i) {\n i--;\n VocabularyQuiz question = gui.getQuiz().viewQuiz(i);\n JLabel header = new JLabel(\"Question\" + (i + 1));\n gui.getConstraints().insets = new Insets(10, 10,40,10);\n header.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 28));\n gui.getConstraints().gridx = 0;\n gui.getConstraints().gridy = 0;\n gui.getPanel().add(header, gui.getConstraints());\n JTextArea description = new JTextArea(\"What is meaning of \\\"\" + question.getVocabulary().getVocab() + \"\\\"?\");\n description.setEditable(false);\n description.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 18));\n gui.getConstraints().gridy = 1;\n gui.getPanel().add(description, gui.getConstraints());\n showChoices(question);\n }", "public static void displayQuestions() {\n System.out.println(\"1. Is your character male?\");\n System.out.println(\"2. Is your character female?\");\n System.out.println(\"3. Does your character have brown hair?\");\n System.out.println(\"4. Does your character have red hair?\");\n System.out.println(\"5. Does your character have blonde hair?\");\n System.out.println(\"6. Does your character have green eyes?\");\n System.out.println(\"7. Does your character have blue eyes?\");\n System.out.println(\"8. Does your character have brown eyes?\");\n System.out.println(\"9. Is your character wearing a green shirt?\");\n System.out.println(\"10. Is your character wearing a blue shirt?\");\n System.out.println(\"11. Is your character wearing a red shirt?\");\n }", "Question getFirstQuestion();", "public String toString()\n\t{\n\t\tString returnString = question;\n\t\tfor (int i = 0; i < numLines; i++)\n\t\t{\n\t\t\treturnString = returnString.concat(\"\\n\");\n\t\t}\n\t\t\n\t\treturn returnString;\n\t}", "public Question(String text, String type, String[] answers, int crrAnswer)\n {\n this.type = type;\n this.text = text;\n this.answers = answers;\n this.mcCrrAnswer = crrAnswer;\n\n this.id = Utility.generateUUID();\n }", "public void fillQuestionsTable() {\n\n //Hard Questions\n Questions q1 = new Questions(\"The redshift of a distant galaxy is 0·014. According to Hubble’s law, the distance of the galaxy from Earth is? \", \" 9·66 × 10e-12 m\", \" 9·32 × 10e27 m\", \"1·83 × 10e24 m\", \"1·30 × 10e26 m \", 3);\n addQuestion(q1);\n Questions q2 = new Questions(\"A ray of monochromatic light passes from air into water. The wavelength of this light in air is 589 nm. The speed of this light in water is? \", \" 2·56 × 10e2 m/s \", \"4·52 × 10e2 m/s\", \"4·78 × 10e2 m/s\", \"1·52 × 10e2 m/s\", 2);\n addQuestion(q2);\n Questions q3 = new Questions(\"A car is moving at a speed of 2·0 m s−1. The car now accelerates at 4·0 m s−2 until it reaches a speed of 14 m s−1. The distance travelled by the car during this acceleration is\", \"1.5m\", \"18m\", \"24m\", \"25m\", 3);\n addQuestion(q3);\n Questions q4 = new Questions(\"A spacecraft is travelling at 0·10c relative to a star. \\nAn observer on the spacecraft measures the speed of light emitted by the star to be?\", \"0.90c\", \"1.00c\", \"1.01c\", \"0.99c\", 2);\n addQuestion(q4);\n Questions q5 = new Questions(\"Measurements of the expansion rate of the Universe lead to the conclusion that the rate of expansion is increasing. Present theory proposes that this is due to? \", \"Redshift\", \"Dark Matter\", \"Dark Energy\", \"Gravity\", 3);\n addQuestion(q5);\n Questions q6 = new Questions(\"A block of wood slides with a constant velocity down a slope. The slope makes an angle of 30º with the horizontal axis. The mass of the block is 2·0 kg. The magnitude of the force of friction acting on the block is?\" , \"1.0N\", \"2.0N\", \"9.0N\", \"9.8N\", 4);\n addQuestion(q6);\n Questions q7 = new Questions(\"A planet orbits a star at a distance of 3·0 × 10e9 m. The star exerts a gravitational force of 1·6 × 10e27 N on the planet. The mass of the star is 6·0 × 10e30 kg. The mass of the planet is? \", \"2.4 x 10e14 kg\", \"3.6 x 10e25 kg\", \"1.2 x 10e16 kg\", \"1.6 x 10e26 kg\", 2);\n addQuestion(q7);\n Questions q8 = new Questions(\"Radiation of frequency 9·00 × 10e15 Hz is incident on a clean metal surface. The maximum kinetic energy of a photoelectron ejected from this surface is 5·70 × 10e−18 J. The work function of the metal is?\", \"2.67 x 10e-19 J\", \"9.10 x 10e-1 J\", \"1.60 x 10e-18 J\", \"4.80 x 10e-2 J\", 1);\n addQuestion(q8);\n Questions q9 = new Questions(\"The irradiance of light from a point source is 32 W m−2 at a distance of 4·0 m from the source. The irradiance of the light at a distance of 16 m from the source is? \", \"1.0 W m-2\", \"8.0 W m-2\", \"4.0 W m-2\", \"2.0 W m-2\", 4);\n addQuestion(q9);\n Questions q10 = new Questions(\"A person stands on a weighing machine in a lift. When the lift is at rest, the reading on the weighing machine is 700 N. The lift now descends and its speed increases at a constant rate. The reading on the weighing machine...\", \"Is a constant value higher than 700N. \", \"Is a constant value lower than 700N. \", \"Continually increases from 700 N. \", \"Continually decreases from 700 N. \", 2);\n addQuestion(q10);\n\n //Medium Questions\n Questions q11 = new Questions(\"What is Newtons Second Law of Motion?\", \"F = ma\", \"m = Fa\", \"F = a/m\", \"Every action has an equal and opposite reaction\", 1);\n addQuestion(q11);\n Questions q12 = new Questions(\"In s = vt, what does s stand for?\", \"Distance\", \"Speed\", \"Sin\", \"Displacement\", 4);\n addQuestion(q12);\n Questions q13 = new Questions(\"An object reaches terminal velocity when...\", \"Forward force is greater than the frictional force.\", \"All forces acting on that object are equal.\", \"Acceleration starts decreasing.\", \"Acceleration is greater than 0\", 2);\n addQuestion(q13);\n Questions q14 = new Questions(\"An Elastic Collision is where?\", \"There is no loss of Kinetic Energy.\", \"There is a small loss in Kinetic Energy.\", \"There is an increase in Kinetic Energy.\", \"Some Kinetic Energy is transferred to another type.\", 1);\n addQuestion(q14);\n Questions q15 = new Questions(\"The speed of light is?\", \"Different for all observers.\", \"The same for all observers. \", \"The same speed regardless of the medium it is travelling through. \", \"Equal to the speed of sound.\", 2);\n addQuestion(q15);\n Questions q16 = new Questions(\"What is redshift?\", \"Light moving to us, shifting to red. \", \"A dodgy gear change. \", \"Light moving away from us shifting to longer wavelengths.\", \"Another word for dark energy. \", 3);\n addQuestion(q16);\n Questions q17 = new Questions(\"Which law allows us to estimate the age of the universe?\", \"Newtons 3rd Law \", \"The Hubble-Lemaitre Law \", \"Planck's Law \", \"Wien's Law \", 2);\n addQuestion(q17);\n Questions q18 = new Questions(\"The standard model...\", \"Models how time interacts with space. \", \"Describes how entropy works. \", \"Is the 2nd Law of Thermodynamics. \", \"Describes the fundamental particles of the universe and how they interact\", 4);\n addQuestion(q18);\n Questions q19 = new Questions(\"The photoelectric effect gives evidence for?\", \"The wave model of light. \", \"The particle model of light. \", \"The speed of light. \", \"The frequency of light. \", 2);\n addQuestion(q19);\n Questions q20 = new Questions(\"AC is a current which...\", \"Doesn't change direction. \", \"Is often called variable current. \", \"Is sneaky. \", \"Changes direction and instantaneous value with time. \", 4);\n addQuestion(q20);\n\n //Easy Questions\n Questions q21 = new Questions(\"What properties does light display?\", \"Wave\", \"Particle\", \"Both\", \"Neither\", 3);\n addQuestion(q21);\n Questions q22 = new Questions(\"In V = IR, what does V stand for?\", \"Velocity\", \"Voltage\", \"Viscosity\", \"Volume\", 2);\n addQuestion(q22);\n Questions q23 = new Questions(\"The abbreviation rms typically stands for?\", \"Round mean sandwich. \", \"Random manic speed. \", \"Root manic speed. \", \"Root mean squared. \", 4);\n addQuestion(q23);\n Questions q24 = new Questions(\"Path Difference = \", \"= (m/λ) or (m + ½)/λ where m = 0,1,2…\", \"= mλ or (m + ½) λ where m = 0,1,2…\", \"= λ / m or (λ + ½) / m where m = 0,1,2…\", \" = mλ or (m + ½) λ where m = 0.5,1.5,2.5,…\", 2);\n addQuestion(q24);\n Questions q25 = new Questions(\"How many types of quark are there?\", \"6\", \"4 \", \"8\", \"2\", 1);\n addQuestion(q25);\n Questions q26 = new Questions(\"A neutrino is a type of?\", \"Baryon\", \"Gluon\", \"Lepton\", \"Quark\", 3);\n addQuestion(q26);\n Questions q27 = new Questions(\"A moving charge produces:\", \"A weak field\", \"An electric field\", \"A strong field\", \"Another moving charge\", 2);\n addQuestion(q27);\n Questions q28 = new Questions(\"What contains nuclear fusion reactors?\", \"A magnetic field\", \"An electric field\", \"A pool of water\", \"Large amounts of padding\", 1);\n addQuestion(q28);\n Questions q29 = new Questions(\"What is the critical angle of a surface?\", \"The incident angle where the angle of refraction is 45 degrees.\", \"The incident angle where the angle of refraction is 90 degrees.\", \"The incident angle where the angle of refraction is 135 degrees.\", \"The incident angle where the angle of refraction is 180 degrees.\", 2);\n addQuestion(q29);\n Questions q30 = new Questions(\"Which is not a type of Lepton?\", \"Electron\", \"Tau\", \"Gluon\", \"Muon\", 3);\n addQuestion(q30);\n }", "public static void updateQuestionnaire() {\n\t\t\tint a = 1;\n\t\t\tJOptionPane.showMessageDialog(null,\"1.Gender\\n2.Last Name\\n3.First Name\\n 4.Father's Name\\n5.Year of Birth\\n6.Place of Birth\\n7.Profession\\n8.ID Number\\n9.Address\\n\"\n\t\t \t\t+ \" 10.PostCode\\n11.City\\n12.Phone Number\\n13.Have you ever gave blood before\\n14.When was the last time you gave blood?\\n\"\n\t\t \t\t+ \"15.excluded from a blood donation?\\n16.dangerous profession or hobby?\\n17.previous health problems?\\n\"\n\t\t \t\t+ \"18.jaundice or hepatitis\\n19.syphilis\\n20.malaria\\n21.tuberculosis\\n22.rheumatoid arthritis\\n23.heart disease\\n24.precardiac pan\\n25.hypertension\\n\"\n\t\t \t\t+ \"26.convulsions(as an adult)\\n27.fainting\\n28.stomach aliments\\n29.ulcer\\n30.other surgeries\\n31.kidney diseasea\\n32.diabetes\\n33.allergies\\n\"\n\t\t \t\t+ \"34.anemia\\n35.other diseasess\\n36.contagious diseases in your envirnment?\\n37.taken medicine?\\n\"\n\t\t \t\t+ \"38.take aspirin?\\n39.born or lived or traveled aboard?\\n40.lost weight, had fever or swollen tonsils?\\n\"\n\t\t \t\t+ \"41.cornea or scar implant in your eye?\\n42.Creutzfeldt-Jakob disease?\\n43.growth hormones?\\n\"\n\t\t \t\t+ \"44. tooth extraction or treatment the past week?\\n45.vaccines the past week?\\n46.surgery or medical examinations the past year?\\n\"\n\t\t\t\t+\"47.transfusion of blood or blood producers?\\n48.tattoo or ear piercing or acupuncture?\\n\"\n\t\t \t\t+ \"49.pierced by a syringe needle\\n50.any skin wounds or scratches that came in contact with foreign blood?\\n\"\n\t\t \t\t+ \"51.were you pregnant the past year?\\n\");\n\t\t\tboolean g = true;\n\t\t\tdo {\n\t\t\t\ttry {\n\t\t\t\t\ta = Integer.parseInt(JOptionPane.showInputDialog(\"If you want to change a question press the number of the question or else press 0\"));\n\t \t \t\tif (a >= 1 && a <= 51) {\n\t \t\t \t\tg = false;\n\t \t\t \t\tchangeQuestion(a, username);\n\t \t \t\t} else if (a == 0) {\n\t \t\t \t\tg = true;\n\t \t\t \t\tHomeMenu.donorSecondMenu(username);\n\t \t\t \t} else {\n\t \t\t \t\tJOptionPane.showMessageDialog(null, \"Please enter a valid question number\",\"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t \t \t\t}\n\t \t \t} catch (NumberFormatException e) {\n\t \t\tJOptionPane.showMessageDialog(null, \"Please enter a number\",\"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t \t\tg = true;\n\t \t\t}\n\t\t\t} while (g);\t \n\t\t}", "public String textHelp() {\t\t\n\t\tString s = \"RUN: Ejecuta todas las instrucciones\";\n\t\treturn s;\n\t}", "private static JPanel setAnswersText(Question question, copyRightGUI gui, ArrayList<Question> questionsList){\n JLabel label = new JLabel(); // Used for the final determination question\n JLabel optPermissionLaber = new JLabel(); // If asking for permission is preferred, display text\n\n // If the buttons array was previously filled, clear it\n if (buttons != null) {\n for (JButton btn : buttons\n ) {\n if (btn != null) {\n questionsPanel.remove(btn);\n }\n }\n }\n\n // create a new panel for the questions\n questionsPanel = new JPanel();\n\n // Create a new array with the specific amount of buttons needed\n buttons = new JButton[question.getNumAnswers()];\n\n // For the last question\n if (question.getQuestion().equals(\"Final Determination\")){\n\n if (totalScore > THRESHOLD) {\n label.setText(\"Fair use suggested\");\n label.setForeground(Color.GREEN);\n questionsPanel.add(label);\n if (askingPermsPref){\n optPermissionLaber.setText(\"...but asking for permission is preferred\");\n questionsPanel.add(optPermissionLaber);\n }\n } else {\n label.setText(\"Fair use not suggested\");\n label.setForeground(Color.red);\n questionsPanel.add(label);\n }\n return questionsPanel;\n }\n\n\n // For loop which adds buttons to the panel and creates their actions\n for (int i = 0; i < question.getNumAnswers(); i++){\n buttons[i] = new JButton(question.getAnswer(i));\n questionsPanel.updateUI();\n questionsPanel.add(buttons[i]);\n\n int selectedAnswer = i; // set the selected answer of the question\n\n // Add an actionListener for every question\n buttons[i].addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n question.setSelectedAnswer(selectedAnswer);\n // Create a temporary question which will hold the previous question data\n Question tempQuest;\n\n // Check if the quesiton has a special case and act correspondingly\n switch (question.getSpecialCase()){\n case 0:\n case 4:\n if (question.getScore() > 0){\n totalScore += question.getScore();\n scoreStack.push(question.getScore());\n }\n break;\n case 1:\n tempQuest = questionStack.peek();\n if ((tempQuest.getSelectedAnswer() == 0 && question.getSelectedAnswer() == 1)){\n scoreStack.push(20);\n totalScore+= 20;\n } else if (tempQuest.getSelectedAnswer() == 1 && question.getSelectedAnswer() == 0) {\n scoreStack.push(20);\n totalScore+=20;\n askingPermsPref = true;\n } else if (tempQuest.getSelectedAnswer() == 1 && question.getSelectedAnswer() == 1){\n scoreStack.push(40);\n totalScore+= 40;\n } else if (tempQuest.getSelectedAnswer() == 0 && question.getSelectedAnswer() == 0){\n scoreStack.push(0);\n }\n break;\n case 2:\n tempQuest = questionStack.peek();\n if (tempQuest.getSelectedAnswer() == 0 && question.getSelectedAnswer() == 0){\n scoreStack.push(10);\n totalScore+=10;\n } else if (tempQuest.getSelectedAnswer() == 0 && question.getSelectedAnswer() == 1){\n scoreStack.push(0);\n } else if (tempQuest.getSelectedAnswer() == 1 && question.getSelectedAnswer() == 0){\n scoreStack.push(40);\n totalScore+=40;\n } else if (tempQuest.getSelectedAnswer() == 1 && question.getSelectedAnswer() == 1){\n for (int k = 0; k < questionsList.size(); k++){\n if (questionsList.get(k).getQuestion().equals(\"Is gaining permission to use the film available?\")){\n gui.revalidate();\n loadQuestion(questionsList, gui, k);\n gui.revalidate();\n return;\n }\n\n }\n break;\n }\n break;\n case 3:\n try {\n Desktop.getDesktop().browse(new URL(\"https://creativecommons.org/licenses/\").toURI());\n } catch (Exception r) {\n System.out.println(\"Something went wrong with opening the link. Make sure the link\"\n + \"exists and is still valid\");\n r.printStackTrace();\n }\n break;\n case 5:\n if (question.getScore() > 0){\n totalScore += question.getScore();\n scoreStack.push(question.getScore());\n }\n if (question.getSelectedAnswer() == 0) {\n askingPermsPref = true;\n }\n default:\n break;\n\n }\n\n // testing purposes\n //System.out.println(question.getNextQuestion());\n\n // load the next question\n loadNextQuestion(question, questionsList, gui);\n\n\n }\n });\n }\n\n // return questionPanel which contains a panel with buttons\n return questionsPanel;\n }", "public void readQuestion()\n\t{\n\t\tnumLines = (int)numScan.nextDouble();\n\t\tquestion = stringScan.nextLine();\n\t}", "public static boolean QuestionVisible(){\r\n\t return (question.getText().equalsIgnoreCase(\"How would you rate your satisfaction with this website?\"));\t\r\n\t}", "private void addQuestion(Questions question) {\n ContentValues cv = new ContentValues();\n cv.put(QuestionsTable.Column_Question, question.getQuestion());\n cv.put(QuestionsTable.Column_Option1, question.getOption1());\n cv.put(QuestionsTable.Column_Option2, question.getOption2());\n cv.put(QuestionsTable.Column_Option3, question.getOption3());\n cv.put(QuestionsTable.Column_Option4, question.getOption4());\n cv.put(QuestionsTable.Column_Answer_Nr, question.getAnswerNr());\n db.insert(QuestionsTable.Table_name, null, cv);\n }", "public void firstSem2a5(){\n chapter = \"firstSem2a5\";\n String firstSem2a5 = \"What about your friend here?\\\" he asks, nodding to \"+student.getRmName()+\". \\\"Oh, I'm good,\\\"\" +\n student.getRmName()+\"says quickly. I already have a job, through the underground Communist...uh, through\" +\n \" the school paper.\\\" You chat with the man a little longer before he excuses himself to go back to the \" +\n \"kitchen.\\tYou and \"+student.getRmName()+\" finish up your dinner and head back. About halfway there, your roommate \" +\n \"stops and peers at you intensely. \\\"Well?\\\" they say.\";\n getTextIn(firstSem2a5);\n }" ]
[ "0.7551546", "0.7158964", "0.69421244", "0.68705666", "0.665011", "0.6624672", "0.6609819", "0.65950584", "0.6584261", "0.6575758", "0.6569224", "0.65502876", "0.65159464", "0.6501018", "0.6495719", "0.6449277", "0.64304227", "0.6426701", "0.6410714", "0.6407616", "0.63954926", "0.63750774", "0.6369415", "0.6368489", "0.634235", "0.6326087", "0.63231", "0.6309553", "0.6294538", "0.62908876", "0.6282297", "0.62584674", "0.62548804", "0.6249242", "0.62395614", "0.62365484", "0.6222463", "0.6221729", "0.6211051", "0.6207048", "0.61932564", "0.61792684", "0.61779", "0.6164768", "0.61645937", "0.61595225", "0.6157075", "0.61521566", "0.6144317", "0.6131016", "0.6125732", "0.6119613", "0.61162394", "0.6108607", "0.61056405", "0.6102803", "0.60799485", "0.60790616", "0.60788566", "0.60715985", "0.6064274", "0.60542256", "0.6048292", "0.6040534", "0.6036666", "0.6035183", "0.6034665", "0.60217655", "0.6006724", "0.59899235", "0.5983063", "0.5972017", "0.5950948", "0.59506917", "0.5941674", "0.59402174", "0.5938897", "0.5935101", "0.5930169", "0.5929406", "0.5925389", "0.59237236", "0.592001", "0.5915146", "0.5911399", "0.5906124", "0.590261", "0.58920884", "0.5883399", "0.5881656", "0.5874626", "0.5870386", "0.5862474", "0.5861602", "0.58615774", "0.58614427", "0.5860443", "0.5858968", "0.5856142", "0.5842702" ]
0.63488865
24
BAD CODE NEEDS A REWRITE
private static void console (String path) { boolean ERROR = false; while (true) { if (!ERROR) { System.out.println("Directory: " + path); System.out.println("===================================="); long startTime = System.currentTimeMillis(); DirectoryData root = hashmap.get(path); System.out.println("Directories in hashmap: " + hashmap.size()); System.out.println("Time taken to get data: " + (System.currentTimeMillis() - startTime) + "ms"); System.out.println("===================================="); System.out.println("Inside: "); if (root.getFileList().size() == 0) { System.out.println("(Empty Directory)"); } String leftAlignFormat = "|%-1s | %-100s | %-10s |%n"; System.out.format("+---+------------------------------------------------------------------------------------------------------+------------+%n"); System.out.format("| | Name | Size |%n"); System.out.format("+---+------------------------------------------------------------------------------------------------------+------------+%n"); for (FileData subFile : root.getFileList()) { if (subFile.isDirectory()) { if (hashmap.get(subFile.getFullPath()) == null) System.out.format(leftAlignFormat, " d", subFile.getFilename(), size_string(null)); else System.out.format(leftAlignFormat, " d", subFile.getFilename(), size_string(hashmap.get(subFile.getFullPath()).getSize())); } else { System.out.format(leftAlignFormat, " -", subFile.getFilename(), size_string(subFile.getSize())); } } System.out.format("+---+------------------------------------------------------------------------------------------------------+------------+%n"); } ERROR = false; System.out.print("\n> "); Scanner in = new Scanner(System.in); String next_dir = in.nextLine(); String next_path = path; if (next_dir.equals("..")) { String[] path_arr = next_path.split("\\\\"); next_path = String.join("\\", Arrays.copyOfRange(path_arr, 0, path_arr.length-1)); if (path.charAt(path.length()-2) == ':') { System.out.println("Directory: " + path); System.out.println("Already in root"); //path = TraversalConsole.path; ERROR = true; continue; } if (next_path.charAt(next_path.length()-1) == ':') next_path += '\\'; if (!hashmap.containsKey(next_path)) { System.out.println("Directory: " + path + "\\"); System.out.println("Already in root"); ERROR = true; continue; } else { path = next_path; continue; } } if (path.charAt(path.length() - 1) != '\\') { next_path += "\\" + next_dir; } else { next_path += next_dir; } if (next_dir.equals("exit")) { break; } if (hashmap.containsKey(next_path)) { path = next_path; continue; } else { System.out.println("Wrong Input or [" + next_dir + "] is a file"); ERROR = true; continue; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "protected boolean func_70041_e_() { return false; }", "int a(java.lang.String r8, com.google.ho r9, java.lang.StringBuilder r10, boolean r11, com.google.ae r12) {\n /*\n r7 = this;\n r1 = 0;\n r0 = r8.length();\t Catch:{ RuntimeException -> 0x0009 }\n if (r0 != 0) goto L_0x000b;\n L_0x0007:\n r0 = r1;\n L_0x0008:\n return r0;\n L_0x0009:\n r0 = move-exception;\n throw r0;\n L_0x000b:\n r2 = new java.lang.StringBuilder;\n r2.<init>(r8);\n r0 = J;\n r3 = 25;\n r0 = r0[r3];\n if (r9 == 0) goto L_0x001c;\n L_0x0018:\n r0 = r9.a();\n L_0x001c:\n r0 = r7.a(r2, r0);\n if (r11 == 0) goto L_0x0025;\n L_0x0022:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x0040 }\n L_0x0025:\n r3 = com.google.aw.FROM_DEFAULT_COUNTRY;\t Catch:{ RuntimeException -> 0x0042 }\n if (r0 == r3) goto L_0x005e;\n L_0x0029:\n r0 = r2.length();\t Catch:{ RuntimeException -> 0x003e }\n r1 = 2;\n if (r0 > r1) goto L_0x0044;\n L_0x0030:\n r0 = new com.google.ao;\t Catch:{ RuntimeException -> 0x003e }\n r1 = com.google.dk.TOO_SHORT_AFTER_IDD;\t Catch:{ RuntimeException -> 0x003e }\n r2 = J;\t Catch:{ RuntimeException -> 0x003e }\n r3 = 26;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x003e }\n r0.<init>(r1, r2);\t Catch:{ RuntimeException -> 0x003e }\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x003e:\n r0 = move-exception;\n throw r0;\n L_0x0040:\n r0 = move-exception;\n throw r0;\n L_0x0042:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x0044:\n r0 = r7.a(r2, r10);\n if (r0 == 0) goto L_0x0050;\n L_0x004a:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x004e }\n goto L_0x0008;\n L_0x004e:\n r0 = move-exception;\n throw r0;\n L_0x0050:\n r0 = new com.google.ao;\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\n r2 = J;\n r3 = 24;\n r2 = r2[r3];\n r0.<init>(r1, r2);\n throw r0;\n L_0x005e:\n if (r9 == 0) goto L_0x00d2;\n L_0x0060:\n r0 = r9.L();\n r3 = java.lang.String.valueOf(r0);\n r4 = r2.toString();\n r5 = r4.startsWith(r3);\n if (r5 == 0) goto L_0x00d2;\n L_0x0072:\n r5 = new java.lang.StringBuilder;\n r3 = r3.length();\n r3 = r4.substring(r3);\n r5.<init>(r3);\n r3 = r9.X();\n r4 = r7.o;\n r6 = r3.g();\n r4 = r4.a(r6);\n r6 = 0;\n r7.a(r5, r9, r6);\n r6 = r7.o;\n r3 = r3.f();\n r3 = r6.a(r3);\n r6 = r4.matcher(r2);\t Catch:{ RuntimeException -> 0x00ca }\n r6 = r6.matches();\t Catch:{ RuntimeException -> 0x00ca }\n if (r6 != 0) goto L_0x00af;\n L_0x00a5:\n r4 = r4.matcher(r5);\t Catch:{ RuntimeException -> 0x00cc }\n r4 = r4.matches();\t Catch:{ RuntimeException -> 0x00cc }\n if (r4 != 0) goto L_0x00bb;\n L_0x00af:\n r2 = r2.toString();\t Catch:{ RuntimeException -> 0x00ce }\n r2 = r7.a(r3, r2);\t Catch:{ RuntimeException -> 0x00ce }\n r3 = com.google.dz.TOO_LONG;\t Catch:{ RuntimeException -> 0x00ce }\n if (r2 != r3) goto L_0x00d2;\n L_0x00bb:\n r10.append(r5);\t Catch:{ RuntimeException -> 0x00d0 }\n if (r11 == 0) goto L_0x00c5;\n L_0x00c0:\n r1 = com.google.aw.FROM_NUMBER_WITHOUT_PLUS_SIGN;\t Catch:{ RuntimeException -> 0x00d0 }\n r12.a(r1);\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00c5:\n r12.a(r0);\n goto L_0x0008;\n L_0x00ca:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00cc }\n L_0x00cc:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00ce }\n L_0x00ce:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00d0:\n r0 = move-exception;\n throw r0;\n L_0x00d2:\n r12.a(r1);\n r0 = r1;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, com.google.ho, java.lang.StringBuilder, boolean, com.google.ae):int\");\n }", "private final com.google.android.finsky.verifier.p259a.p260a.C4709m m21920b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 16: goto L_0x0015;\n case 26: goto L_0x0046;\n case 34: goto L_0x0053;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.f();\n r6.f24221c = r0;\n goto L_0x0000;\n L_0x0015:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r2) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0020;\n case 2: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = 44;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = \" is not a valid enum ResourceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x0043:\n r6.f24222d = r2;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0000;\n L_0x0046:\n r0 = r7.g();\n r6.f24223e = r0;\n r0 = r6.f24220b;\n r0 = r0 | 1;\n r6.f24220b = r0;\n goto L_0x0000;\n L_0x0053:\n r0 = r7.f();\n r6.f24224f = r0;\n r0 = r6.f24220b;\n r0 = r0 | 2;\n r6.f24220b = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.finsky.verifier.a.a.m.b(com.google.protobuf.nano.a):com.google.android.finsky.verifier.a.a.m\");\n }", "private void a(java.lang.String r6, java.lang.StringBuilder r7) {\n /*\n r5 = this;\n r0 = F;\n r1 = J;\n r2 = 35;\n r1 = r1[r2];\n r1 = r6.indexOf(r1);\n if (r1 <= 0) goto L_0x0057;\n L_0x000e:\n r2 = J;\n r3 = 38;\n r2 = r2[r3];\n r2 = r2.length();\n r2 = r2 + r1;\n r3 = r6.charAt(r2);\n r4 = 43;\n if (r3 != r4) goto L_0x0039;\n L_0x0021:\n r3 = 59;\n r3 = r6.indexOf(r3, r2);\n if (r3 <= 0) goto L_0x0032;\n L_0x0029:\n r3 = r6.substring(r2, r3);\t Catch:{ RuntimeException -> 0x0072 }\n r7.append(r3);\t Catch:{ RuntimeException -> 0x0072 }\n if (r0 == 0) goto L_0x0039;\n L_0x0032:\n r2 = r6.substring(r2);\t Catch:{ RuntimeException -> 0x0072 }\n r7.append(r2);\t Catch:{ RuntimeException -> 0x0072 }\n L_0x0039:\n r2 = J;\t Catch:{ RuntimeException -> 0x0074 }\n r3 = 37;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x0074 }\n r2 = r6.indexOf(r2);\t Catch:{ RuntimeException -> 0x0074 }\n r3 = J;\t Catch:{ RuntimeException -> 0x0074 }\n r4 = 36;\n r3 = r3[r4];\t Catch:{ RuntimeException -> 0x0074 }\n r3 = r3.length();\t Catch:{ RuntimeException -> 0x0074 }\n r2 = r2 + r3;\n r1 = r6.substring(r2, r1);\t Catch:{ RuntimeException -> 0x0074 }\n r7.append(r1);\t Catch:{ RuntimeException -> 0x0074 }\n if (r0 == 0) goto L_0x005e;\n L_0x0057:\n r0 = l(r6);\t Catch:{ RuntimeException -> 0x0074 }\n r7.append(r0);\t Catch:{ RuntimeException -> 0x0074 }\n L_0x005e:\n r0 = J;\n r1 = 39;\n r0 = r0[r1];\n r0 = r7.indexOf(r0);\n if (r0 <= 0) goto L_0x0071;\n L_0x006a:\n r1 = r7.length();\t Catch:{ RuntimeException -> 0x0076 }\n r7.delete(r0, r1);\t Catch:{ RuntimeException -> 0x0076 }\n L_0x0071:\n return;\n L_0x0072:\n r0 = move-exception;\n throw r0;\n L_0x0074:\n r0 = move-exception;\n throw r0;\n L_0x0076:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.lang.StringBuilder):void\");\n }", "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }", "private static java.lang.String a(java.lang.String r5, java.util.Map r6, boolean r7) {\n /*\n r2 = F;\n r3 = new java.lang.StringBuilder;\n r0 = r5.length();\n r3.<init>(r0);\n r0 = 0;\n r1 = r0;\n L_0x000d:\n r0 = r5.length();\n if (r1 >= r0) goto L_0x0035;\n L_0x0013:\n r4 = r5.charAt(r1);\n r0 = java.lang.Character.toUpperCase(r4);\n r0 = java.lang.Character.valueOf(r0);\n r0 = r6.get(r0);\n r0 = (java.lang.Character) r0;\n if (r0 == 0) goto L_0x002c;\n L_0x0027:\n r3.append(r0);\t Catch:{ RuntimeException -> 0x003a }\n if (r2 == 0) goto L_0x0031;\n L_0x002c:\n if (r7 != 0) goto L_0x0031;\n L_0x002e:\n r3.append(r4);\t Catch:{ RuntimeException -> 0x003c }\n L_0x0031:\n r0 = r1 + 1;\n if (r2 == 0) goto L_0x003e;\n L_0x0035:\n r0 = r3.toString();\n return r0;\n L_0x003a:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x003c }\n L_0x003c:\n r0 = move-exception;\n throw r0;\n L_0x003e:\n r1 = r0;\n goto L_0x000d;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.util.Map, boolean):java.lang.String\");\n }", "static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public int getObjectFormatCode() {\n/* 116 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void method_2197() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo1976s() throws cf {\r\n }", "public boolean method_208() {\r\n return false;\r\n }", "public void m9741j() throws cf {\r\n }", "public String editar()\r\n/* 441: */ {\r\n/* 442:445 */ return null;\r\n/* 443: */ }", "public final void mo91715d() {\n }", "public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }", "public boolean method_216() {\r\n return false;\r\n }", "public void mo1964g() throws cf {\r\n }", "protected boolean continueOnWriteError() {\n/* 348 */ return true;\n/* */ }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "void m5770d() throws C0841b;", "private java.lang.String a(java.lang.String r6, com.google.b5 r7, com.google.e5 r8, java.lang.String r9) {\n /*\n r5 = this;\n r2 = F;\n r0 = r7.e();\n r1 = r5.o;\n r3 = r7.i();\n r1 = r1.a(r3);\n r3 = r1.matcher(r6);\n r1 = \"\";\n r1 = com.google.e5.NATIONAL;\t Catch:{ RuntimeException -> 0x0092 }\n if (r8 != r1) goto L_0x004b;\n L_0x001b:\n if (r9 == 0) goto L_0x004b;\n L_0x001d:\n r1 = r9.length();\t Catch:{ RuntimeException -> 0x0096 }\n if (r1 <= 0) goto L_0x004b;\n L_0x0023:\n r1 = r7.d();\t Catch:{ RuntimeException -> 0x0096 }\n r1 = r1.length();\t Catch:{ RuntimeException -> 0x0096 }\n if (r1 <= 0) goto L_0x004b;\n L_0x002d:\n r1 = r7.d();\n r4 = f;\n r1 = r4.matcher(r1);\n r1 = r1.replaceFirst(r9);\n r4 = z;\n r0 = r4.matcher(r0);\n r0 = r0.replaceFirst(r1);\n r1 = r3.replaceAll(r0);\n if (r2 == 0) goto L_0x009c;\n L_0x004b:\n r1 = r7.k();\n r4 = com.google.e5.NATIONAL;\t Catch:{ RuntimeException -> 0x0098 }\n if (r8 != r4) goto L_0x006b;\n L_0x0053:\n if (r1 == 0) goto L_0x006b;\n L_0x0055:\n r4 = r1.length();\t Catch:{ RuntimeException -> 0x009a }\n if (r4 <= 0) goto L_0x006b;\n L_0x005b:\n r4 = z;\n r4 = r4.matcher(r0);\n r1 = r4.replaceFirst(r1);\n r1 = r3.replaceAll(r1);\n if (r2 == 0) goto L_0x009c;\n L_0x006b:\n r0 = r3.replaceAll(r0);\n L_0x006f:\n r1 = com.google.e5.RFC3966;\n if (r8 != r1) goto L_0x0091;\n L_0x0073:\n r1 = p;\n r1 = r1.matcher(r0);\n r2 = r1.lookingAt();\n if (r2 == 0) goto L_0x0086;\n L_0x007f:\n r0 = \"\";\n r0 = r1.replaceFirst(r0);\n L_0x0086:\n r0 = r1.reset(r0);\n r1 = \"-\";\n r0 = r0.replaceAll(r1);\n L_0x0091:\n return r0;\n L_0x0092:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0094 }\n L_0x0094:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0096 }\n L_0x0096:\n r0 = move-exception;\n throw r0;\n L_0x0098:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x009a }\n L_0x009a:\n r0 = move-exception;\n throw r0;\n L_0x009c:\n r0 = r1;\n goto L_0x006f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, com.google.b5, com.google.e5, java.lang.String):java.lang.String\");\n }", "abstract protected void pre(int code);", "private void a(com.bytedance.crash.nativecrash.c r6, java.lang.String r7, boolean r8) {\n /*\n r5 = this;\n r0 = 0\n boolean r1 = r6.c() // Catch:{ Throwable -> 0x009a }\n if (r1 != 0) goto L_0x0008\n return\n L_0x0008:\n com.bytedance.crash.e.d r8 = a((com.bytedance.crash.nativecrash.c) r6, (boolean) r8) // Catch:{ Throwable -> 0x009a }\n if (r8 == 0) goto L_0x0099\n org.json.JSONObject r1 = r8.f19424b // Catch:{ Throwable -> 0x009a }\n if (r1 == 0) goto L_0x0099\n java.io.File r1 = r6.f19496a // Catch:{ Throwable -> 0x009a }\n java.lang.String r2 = \".npth\"\n java.io.File r1 = com.bytedance.crash.i.h.a(r1, r2) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.db.a r2 = com.bytedance.crash.db.a.a() // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = r1.getAbsolutePath() // Catch:{ Throwable -> 0x009a }\n boolean r2 = r2.a((java.lang.String) r3) // Catch:{ Throwable -> 0x009a }\n if (r2 != 0) goto L_0x0096\n org.json.JSONObject r2 = r8.f19424b // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = \"upload_scene\"\n java.lang.String r4 = \"launch_scan\"\n r2.put(r3, r4) // Catch:{ Throwable -> 0x009a }\n if (r7 == 0) goto L_0x0038\n java.lang.String r3 = \"crash_uuid\"\n r2.put(r3, r7) // Catch:{ Throwable -> 0x009a }\n L_0x0038:\n com.bytedance.crash.d r7 = com.bytedance.crash.d.NATIVE // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = com.bytedance.crash.c.a.f19382f // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = com.bytedance.crash.event.b.a((com.bytedance.crash.d) r7, (java.lang.String) r3, (org.json.JSONObject) r2) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r7) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = r7.clone() // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = com.bytedance.crash.c.a.g // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = r7.eventType(r3) // Catch:{ Throwable -> 0x009a }\n java.lang.String r0 = r8.f19423a // Catch:{ Throwable -> 0x0093 }\n java.lang.String r2 = r2.toString() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r8 = r8.f19425c // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.upload.h r8 = com.bytedance.crash.upload.b.a((java.lang.String) r0, (java.lang.String) r2, (java.lang.String) r8) // Catch:{ Throwable -> 0x0093 }\n boolean r0 = r8.a() // Catch:{ Throwable -> 0x0093 }\n if (r0 == 0) goto L_0x0083\n boolean r6 = r6.e() // Catch:{ Throwable -> 0x0093 }\n if (r6 != 0) goto L_0x0074\n com.bytedance.crash.db.a r6 = com.bytedance.crash.db.a.a() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r0 = r1.getAbsolutePath() // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.db.a.a r0 = com.bytedance.crash.db.a.a.a(r0) // Catch:{ Throwable -> 0x0093 }\n r6.a((com.bytedance.crash.db.a.a) r0) // Catch:{ Throwable -> 0x0093 }\n L_0x0074:\n r6 = 0\n com.bytedance.crash.event.a r6 = r7.state(r6) // Catch:{ Throwable -> 0x0093 }\n org.json.JSONObject r8 = r8.f19589c // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r6.errorInfo((org.json.JSONObject) r8) // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6) // Catch:{ Throwable -> 0x0093 }\n goto L_0x0099\n L_0x0083:\n int r6 = r8.f19587a // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r7.state(r6) // Catch:{ Throwable -> 0x0093 }\n java.lang.String r8 = r8.f19588b // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r6.errorInfo((java.lang.String) r8) // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6) // Catch:{ Throwable -> 0x0093 }\n goto L_0x00aa\n L_0x0093:\n r6 = move-exception\n r0 = r7\n goto L_0x009b\n L_0x0096:\n r6.e() // Catch:{ Throwable -> 0x009a }\n L_0x0099:\n return\n L_0x009a:\n r6 = move-exception\n L_0x009b:\n if (r0 == 0) goto L_0x00aa\n r7 = 211(0xd3, float:2.96E-43)\n com.bytedance.crash.event.a r7 = r0.state(r7)\n com.bytedance.crash.event.a r6 = r7.errorInfo((java.lang.Throwable) r6)\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6)\n L_0x00aa:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.crash.runtime.d.a(com.bytedance.crash.nativecrash.c, java.lang.String, boolean):void\");\n }", "public boolean method_108() {\r\n return false;\r\n }", "public abstract void mo133131c() throws InvalidDataException;", "private final com.google.wireless.android.finsky.dfe.p505c.p506a.ec m35437b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 8: goto L_0x000f;\n case 16: goto L_0x004c;\n case 26: goto L_0x006f;\n case 34: goto L_0x007c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r2 = r7.f37533a;\n r2 = r2 | 1;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r3) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = 42;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = \" is not a valid enum ResultCode\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x0043:\n r7.f37534b = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3 | 1;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0001;\n L_0x004c:\n r2 = r7.f37533a;\n r2 = r2 | 2;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33560d();\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = com.google.wireless.android.finsky.dfe.p505c.p506a.dp.m35391a(r3);\t Catch:{ IllegalArgumentException -> 0x0067 }\n r7.f37535c = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r3 | 2;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n goto L_0x0001;\n L_0x0067:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x006f:\n r0 = r8.m33565g();\n r7.f37536d = r0;\n r0 = r7.f37533a;\n r0 = r0 | 4;\n r7.f37533a = r0;\n goto L_0x0001;\n L_0x007c:\n r0 = 34;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37537e;\n if (r0 != 0) goto L_0x00a8;\n L_0x0086:\n r0 = r1;\n L_0x0087:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p505c.p506a.ed[r2];\n if (r0 == 0) goto L_0x0091;\n L_0x008c:\n r3 = r7.f37537e;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x0091:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x00ac;\n L_0x0096:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x0091;\n L_0x00a8:\n r0 = r7.f37537e;\n r0 = r0.length;\n goto L_0x0087;\n L_0x00ac:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37537e = r2;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.c.a.ec.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.c.a.ec\");\n }", "void m5768b() throws C0841b;", "public final synchronized java.lang.String m92g(java.lang.String r5) {\n /*\n r4 = this;\n r1 = 1;\n r0 = 0;\n monitor-enter(r4);\n if (r5 == 0) goto L_0x002c;\n L_0x0005:\n r2 = r5.trim();\t Catch:{ all -> 0x0037 }\n r2 = r2.length();\t Catch:{ all -> 0x0037 }\n if (r2 <= 0) goto L_0x002c;\n L_0x000f:\n if (r0 == 0) goto L_0x002e;\n L_0x0011:\n r0 = \"key should not be empty %s\";\n r1 = 1;\n r1 = new java.lang.Object[r1];\t Catch:{ all -> 0x0037 }\n r2 = 0;\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0037 }\n r3.<init>();\t Catch:{ all -> 0x0037 }\n r3 = r3.append(r5);\t Catch:{ all -> 0x0037 }\n r3 = r3.toString();\t Catch:{ all -> 0x0037 }\n r1[r2] = r3;\t Catch:{ all -> 0x0037 }\n com.tencent.bugly.legu.proguard.C0073w.m524d(r0, r1);\t Catch:{ all -> 0x0037 }\n r0 = 0;\n L_0x002a:\n monitor-exit(r4);\n return r0;\n L_0x002c:\n r0 = r1;\n goto L_0x000f;\n L_0x002e:\n r0 = r4.f112Y;\t Catch:{ all -> 0x0037 }\n r0 = r0.get(r5);\t Catch:{ all -> 0x0037 }\n r0 = (java.lang.String) r0;\t Catch:{ all -> 0x0037 }\n goto L_0x002a;\n L_0x0037:\n r0 = move-exception;\n monitor-exit(r4);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.bugly.legu.crashreport.common.info.a.g(java.lang.String):java.lang.String\");\n }", "public final void mo51373a() {\n }", "private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\n }", "public final synchronized java.lang.String m90f(java.lang.String r5) {\n /*\n r4 = this;\n r1 = 1;\n r0 = 0;\n monitor-enter(r4);\n if (r5 == 0) goto L_0x002c;\n L_0x0005:\n r2 = r5.trim();\t Catch:{ all -> 0x0037 }\n r2 = r2.length();\t Catch:{ all -> 0x0037 }\n if (r2 <= 0) goto L_0x002c;\n L_0x000f:\n if (r0 == 0) goto L_0x002e;\n L_0x0011:\n r0 = \"key should not be empty %s\";\n r1 = 1;\n r1 = new java.lang.Object[r1];\t Catch:{ all -> 0x0037 }\n r2 = 0;\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0037 }\n r3.<init>();\t Catch:{ all -> 0x0037 }\n r3 = r3.append(r5);\t Catch:{ all -> 0x0037 }\n r3 = r3.toString();\t Catch:{ all -> 0x0037 }\n r1[r2] = r3;\t Catch:{ all -> 0x0037 }\n com.tencent.bugly.legu.proguard.C0073w.m524d(r0, r1);\t Catch:{ all -> 0x0037 }\n r0 = 0;\n L_0x002a:\n monitor-exit(r4);\n return r0;\n L_0x002c:\n r0 = r1;\n goto L_0x000f;\n L_0x002e:\n r0 = r4.f112Y;\t Catch:{ all -> 0x0037 }\n r0 = r0.remove(r5);\t Catch:{ all -> 0x0037 }\n r0 = (java.lang.String) r0;\t Catch:{ all -> 0x0037 }\n goto L_0x002a;\n L_0x0037:\n r0 = move-exception;\n monitor-exit(r4);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.bugly.legu.crashreport.common.info.a.f(java.lang.String):java.lang.String\");\n }", "public void method_191() {}", "final com.google.bV a(java.util.Map r14) {\n /*\n r13_this = this;\n r6 = f;\n if (r14 == 0) goto L_0x013c;\n L_0x0004:\n r0 = com.google.fm.TRY_HARDER;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x013c;\n L_0x000c:\n r0 = 1;\n r2 = r0;\n L_0x000e:\n if (r14 == 0) goto L_0x0140;\n L_0x0010:\n r0 = com.google.fm.PURE_BARCODE;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x0140;\n L_0x0018:\n r0 = 1;\n L_0x0019:\n r1 = r13.b;\n r7 = r1.f();\n r1 = r13.b;\n r8 = r1.b();\n r1 = r7 * 3;\n r1 = r1 / 228;\n r3 = 3;\n if (r1 < r3) goto L_0x002e;\n L_0x002c:\n if (r2 == 0) goto L_0x002f;\n L_0x002e:\n r1 = 3;\n L_0x002f:\n r2 = 0;\n r3 = 5;\n r9 = new int[r3];\n r4 = r1 + -1;\n r5 = r1;\n L_0x0036:\n if (r4 >= r7) goto L_0x0127;\n L_0x0038:\n if (r2 != 0) goto L_0x0127;\n L_0x003a:\n r1 = 0;\n r3 = 0;\n r9[r1] = r3;\n r1 = 1;\n r3 = 0;\n r9[r1] = r3;\n r1 = 2;\n r3 = 0;\n r9[r1] = r3;\n r1 = 3;\n r3 = 0;\n r9[r1] = r3;\n r1 = 4;\n r3 = 0;\n r9[r1] = r3;\n r1 = 0;\n r3 = 0;\n L_0x0050:\n if (r3 >= r8) goto L_0x010d;\n L_0x0052:\n r10 = r13.b;\n r10 = r10.a(r3, r4);\n if (r10 == 0) goto L_0x0069;\n L_0x005a:\n r10 = r1 & 1;\n r11 = 1;\n if (r10 != r11) goto L_0x0061;\n L_0x005f:\n r1 = r1 + 1;\n L_0x0061:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0069:\n r10 = r1 & 1;\n if (r10 != 0) goto L_0x0103;\n L_0x006d:\n r10 = 4;\n if (r1 != r10) goto L_0x00f9;\n L_0x0070:\n r1 = a(r9);\n if (r1 == 0) goto L_0x015f;\n L_0x0076:\n r1 = r13.a(r9, r4, r3, r0);\n if (r1 == 0) goto L_0x0159;\n L_0x007c:\n r5 = 2;\n r1 = r13.a;\n if (r1 == 0) goto L_0x0156;\n L_0x0081:\n r1 = r13.b();\n if (r6 == 0) goto L_0x00c2;\n L_0x0087:\n r2 = r13.c();\n r10 = 2;\n r10 = r9[r10];\n if (r2 <= r10) goto L_0x0152;\n L_0x0090:\n r3 = 2;\n r3 = r9[r3];\n r2 = r2 - r3;\n r2 = r2 - r5;\n r3 = r4 + r2;\n r2 = r8 + -1;\n L_0x0099:\n if (r6 == 0) goto L_0x014e;\n L_0x009b:\n r4 = r5;\n r12 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r12;\n L_0x00a0:\n r5 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 3;\n r10 = 1;\n r9[r5] = r10;\n r5 = 4;\n r10 = 0;\n r9[r5] = r10;\n r5 = 3;\n if (r6 == 0) goto L_0x0147;\n L_0x00bd:\n r5 = r4;\n r4 = r2;\n r12 = r3;\n r3 = r1;\n r1 = r12;\n L_0x00c2:\n r2 = 0;\n r10 = 0;\n r11 = 0;\n r9[r10] = r11;\n r10 = 1;\n r11 = 0;\n r9[r10] = r11;\n r10 = 2;\n r11 = 0;\n r9[r10] = r11;\n r10 = 3;\n r11 = 0;\n r9[r10] = r11;\n r10 = 4;\n r11 = 0;\n r9[r10] = r11;\n if (r6 == 0) goto L_0x0143;\n L_0x00d9:\n r2 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 3;\n r10 = 1;\n r9[r2] = r10;\n r2 = 4;\n r10 = 0;\n r9[r2] = r10;\n r2 = 3;\n if (r6 == 0) goto L_0x0143;\n L_0x00f6:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n L_0x00f9:\n r1 = r1 + 1;\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0103:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n L_0x0109:\n r3 = r3 + 1;\n if (r6 == 0) goto L_0x0050;\n L_0x010d:\n r1 = a(r9);\n if (r1 == 0) goto L_0x0124;\n L_0x0113:\n r1 = r13.a(r9, r4, r8, r0);\n if (r1 == 0) goto L_0x0124;\n L_0x0119:\n r1 = 0;\n r5 = r9[r1];\n r1 = r13.a;\n if (r1 == 0) goto L_0x0124;\n L_0x0120:\n r2 = r13.b();\n L_0x0124:\n r4 = r4 + r5;\n if (r6 == 0) goto L_0x0036;\n L_0x0127:\n r0 = r13.a();\n com.google.bm.a(r0);\n r1 = new com.google.bV;\n r1.<init>(r0);\n r0 = com.google.gC.a;\n if (r0 == 0) goto L_0x013b;\n L_0x0137:\n r0 = r6 + 1;\n f = r0;\n L_0x013b:\n return r1;\n L_0x013c:\n r0 = 0;\n r2 = r0;\n goto L_0x000e;\n L_0x0140:\n r0 = 0;\n goto L_0x0019;\n L_0x0143:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n goto L_0x0109;\n L_0x0147:\n r12 = r1;\n r1 = r5;\n r5 = r4;\n r4 = r2;\n r2 = r3;\n r3 = r12;\n goto L_0x0109;\n L_0x014e:\n r4 = r3;\n r3 = r2;\n goto L_0x00c2;\n L_0x0152:\n r2 = r3;\n r3 = r4;\n goto L_0x0099;\n L_0x0156:\n r1 = r2;\n goto L_0x0087;\n L_0x0159:\n r1 = r3;\n r3 = r2;\n r2 = r4;\n r4 = r5;\n goto L_0x00a0;\n L_0x015f:\n r1 = r2;\n goto L_0x00d9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.bj.a(java.util.Map):com.google.bV\");\n }", "private static void check(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.check(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.check(java.lang.String):void\");\n }", "private String avoidErrorChar (String original) {\n\t\tStringBuffer modSB = new StringBuffer();\n\t\tfor (int j=0; j < original.length(); j++) {\n\t\t\tchar c = original.charAt(j);\n\t\t\tif (c == '\\n') {\n\t\t\t\tmodSB.append(\"\\\\n\"); // rimpiazzo il ritorno a capo con il simbolo \\n\n\t\t\t} else if (c == '\"') {\n\t\t\t\tmodSB.append(\"''\"); // rimpiazzo le doppie virgolette (\") con due apostofi ('')\n\t\t\t} else if ((int)c > 31 || (int)c !=127){ // non stampo i primi 32 caratteri di controllo\n\t\t\t\tmodSB.append(c);\n\t\t\t}\n\t\t}\n\t\treturn modSB.toString();\n\t}", "public boolean method_210() {\r\n return false;\r\n }", "public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\n }", "private boolean isBadVersion(int n) {\n\t\treturn false;\n\t}", "public void mo1972o() throws cf {\r\n }", "private void a(java.lang.String r11, java.lang.String r12, boolean r13, boolean r14, com.google.ae r15) {\n /*\n r10 = this;\n r9 = 48;\n r8 = 2;\n r6 = F;\n if (r11 != 0) goto L_0x0017;\n L_0x0007:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x0015 }\n r1 = com.google.dk.NOT_A_NUMBER;\t Catch:{ ao -> 0x0015 }\n r2 = J;\t Catch:{ ao -> 0x0015 }\n r3 = 47;\n r2 = r2[r3];\t Catch:{ ao -> 0x0015 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x0015 }\n throw r0;\t Catch:{ ao -> 0x0015 }\n L_0x0015:\n r0 = move-exception;\n throw r0;\n L_0x0017:\n r0 = r11.length();\t Catch:{ ao -> 0x002d }\n r1 = 250; // 0xfa float:3.5E-43 double:1.235E-321;\n if (r0 <= r1) goto L_0x002f;\n L_0x001f:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x002d }\n r1 = com.google.dk.TOO_LONG;\t Catch:{ ao -> 0x002d }\n r2 = J;\t Catch:{ ao -> 0x002d }\n r3 = 41;\n r2 = r2[r3];\t Catch:{ ao -> 0x002d }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x002d }\n throw r0;\t Catch:{ ao -> 0x002d }\n L_0x002d:\n r0 = move-exception;\n throw r0;\n L_0x002f:\n r7 = new java.lang.StringBuilder;\n r7.<init>();\n r10.a(r11, r7);\t Catch:{ ao -> 0x004f }\n r0 = r7.toString();\t Catch:{ ao -> 0x004f }\n r0 = b(r0);\t Catch:{ ao -> 0x004f }\n if (r0 != 0) goto L_0x0051;\n L_0x0041:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x004f }\n r1 = com.google.dk.NOT_A_NUMBER;\t Catch:{ ao -> 0x004f }\n r2 = J;\t Catch:{ ao -> 0x004f }\n r3 = 48;\n r2 = r2[r3];\t Catch:{ ao -> 0x004f }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x004f }\n throw r0;\t Catch:{ ao -> 0x004f }\n L_0x004f:\n r0 = move-exception;\n throw r0;\n L_0x0051:\n if (r14 == 0) goto L_0x006f;\n L_0x0053:\n r0 = r7.toString();\t Catch:{ ao -> 0x006d }\n r0 = r10.a(r0, r12);\t Catch:{ ao -> 0x006d }\n if (r0 != 0) goto L_0x006f;\n L_0x005d:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x006b }\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x006b }\n r2 = J;\t Catch:{ ao -> 0x006b }\n r3 = 46;\n r2 = r2[r3];\t Catch:{ ao -> 0x006b }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x006b }\n throw r0;\t Catch:{ ao -> 0x006b }\n L_0x006b:\n r0 = move-exception;\n throw r0;\n L_0x006d:\n r0 = move-exception;\n throw r0;\t Catch:{ ao -> 0x006b }\n L_0x006f:\n if (r13 == 0) goto L_0x0074;\n L_0x0071:\n r15.b(r11);\t Catch:{ ao -> 0x00d3 }\n L_0x0074:\n r0 = r10.b(r7);\n r1 = r0.length();\t Catch:{ ao -> 0x00d5 }\n if (r1 <= 0) goto L_0x0081;\n L_0x007e:\n r15.a(r0);\t Catch:{ ao -> 0x00d5 }\n L_0x0081:\n r2 = r10.e(r12);\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r1 = r7.toString();\t Catch:{ ao -> 0x00d7 }\n r0 = r10;\n r4 = r13;\n r5 = r15;\n r0 = r0.a(r1, r2, r3, r4, r5);\t Catch:{ ao -> 0x00d7 }\n L_0x0095:\n if (r0 == 0) goto L_0x0182;\n L_0x0097:\n r1 = r10.b(r0);\n r4 = r1.equals(r12);\n if (r4 != 0) goto L_0x017f;\n L_0x00a1:\n r0 = r10.a(r0, r1);\n L_0x00a5:\n if (r6 == 0) goto L_0x00bd;\n L_0x00a7:\n a(r7);\t Catch:{ ao -> 0x0121 }\n r3.append(r7);\t Catch:{ ao -> 0x0121 }\n if (r12 == 0) goto L_0x00b8;\n L_0x00af:\n r1 = r0.L();\n r15.a(r1);\t Catch:{ ao -> 0x0123 }\n if (r6 == 0) goto L_0x00bd;\n L_0x00b8:\n if (r13 == 0) goto L_0x00bd;\n L_0x00ba:\n r15.l();\t Catch:{ ao -> 0x0125 }\n L_0x00bd:\n r1 = r3.length();\t Catch:{ ao -> 0x00d1 }\n if (r1 >= r8) goto L_0x0127;\n L_0x00c3:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x00d1 }\n r1 = com.google.dk.TOO_SHORT_NSN;\t Catch:{ ao -> 0x00d1 }\n r2 = J;\t Catch:{ ao -> 0x00d1 }\n r3 = 44;\n r2 = r2[r3];\t Catch:{ ao -> 0x00d1 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x00d1 }\n throw r0;\t Catch:{ ao -> 0x00d1 }\n L_0x00d1:\n r0 = move-exception;\n throw r0;\n L_0x00d3:\n r0 = move-exception;\n throw r0;\n L_0x00d5:\n r0 = move-exception;\n throw r0;\n L_0x00d7:\n r0 = move-exception;\n r1 = g;\n r4 = r7.toString();\n r1 = r1.matcher(r4);\n r4 = r0.a();\t Catch:{ ao -> 0x0111 }\n r5 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x0111 }\n if (r4 != r5) goto L_0x0113;\n L_0x00ea:\n r4 = r1.lookingAt();\t Catch:{ ao -> 0x0111 }\n if (r4 == 0) goto L_0x0113;\n L_0x00f0:\n r0 = r1.end();\n r1 = r7.substring(r0);\n r0 = r10;\n r4 = r13;\n r5 = r15;\n r0 = r0.a(r1, r2, r3, r4, r5);\n if (r0 != 0) goto L_0x0095;\n L_0x0101:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x010f }\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x010f }\n r2 = J;\t Catch:{ ao -> 0x010f }\n r3 = 43;\n r2 = r2[r3];\t Catch:{ ao -> 0x010f }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x010f }\n throw r0;\t Catch:{ ao -> 0x010f }\n L_0x010f:\n r0 = move-exception;\n throw r0;\n L_0x0111:\n r0 = move-exception;\n throw r0;\n L_0x0113:\n r1 = new com.google.ao;\n r2 = r0.a();\n r0 = r0.getMessage();\n r1.<init>(r2, r0);\n throw r1;\n L_0x0121:\n r0 = move-exception;\n throw r0;\n L_0x0123:\n r0 = move-exception;\n throw r0;\t Catch:{ ao -> 0x0125 }\n L_0x0125:\n r0 = move-exception;\n throw r0;\n L_0x0127:\n if (r0 == 0) goto L_0x013a;\n L_0x0129:\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r10.a(r3, r0, r1);\t Catch:{ ao -> 0x0150 }\n if (r13 == 0) goto L_0x013a;\n L_0x0133:\n r0 = r1.toString();\t Catch:{ ao -> 0x0150 }\n r15.c(r0);\t Catch:{ ao -> 0x0150 }\n L_0x013a:\n r0 = r3.length();\n if (r0 >= r8) goto L_0x0152;\n L_0x0140:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x014e }\n r1 = com.google.dk.TOO_SHORT_NSN;\t Catch:{ ao -> 0x014e }\n r2 = J;\t Catch:{ ao -> 0x014e }\n r3 = 42;\n r2 = r2[r3];\t Catch:{ ao -> 0x014e }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x014e }\n throw r0;\t Catch:{ ao -> 0x014e }\n L_0x014e:\n r0 = move-exception;\n throw r0;\n L_0x0150:\n r0 = move-exception;\n throw r0;\n L_0x0152:\n r1 = 16;\n if (r0 <= r1) goto L_0x0166;\n L_0x0156:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x0164 }\n r1 = com.google.dk.TOO_LONG;\t Catch:{ ao -> 0x0164 }\n r2 = J;\t Catch:{ ao -> 0x0164 }\n r3 = 45;\n r2 = r2[r3];\t Catch:{ ao -> 0x0164 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x0164 }\n throw r0;\t Catch:{ ao -> 0x0164 }\n L_0x0164:\n r0 = move-exception;\n throw r0;\n L_0x0166:\n r0 = 0;\n r0 = r3.charAt(r0);\t Catch:{ ao -> 0x017d }\n if (r0 != r9) goto L_0x0171;\n L_0x016d:\n r0 = 1;\n r15.a(r0);\t Catch:{ ao -> 0x017d }\n L_0x0171:\n r0 = r3.toString();\n r0 = java.lang.Long.parseLong(r0);\n r15.a(r0);\n return;\n L_0x017d:\n r0 = move-exception;\n throw r0;\n L_0x017f:\n r0 = r2;\n goto L_0x00a5;\n L_0x0182:\n r0 = r2;\n goto L_0x00a7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.lang.String, boolean, boolean, com.google.ae):void\");\n }", "public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo1944a() throws cf {\r\n }", "private static java.lang.String m25224a(java.lang.String r7, java.lang.String r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"\";\n r1 = \"\\\\?\";\n r7 = r7.split(r1);\n r1 = r7.length;\n r2 = 1;\n if (r1 <= r2) goto L_0x0033;\n L_0x000c:\n r7 = r7[r2];\n r1 = \"&\";\n r7 = r7.split(r1);\n r1 = r7.length;\n r3 = 0;\n r4 = r0;\n r0 = 0;\n L_0x0018:\n if (r0 >= r1) goto L_0x0032;\n L_0x001a:\n r5 = r7[r0];\n r6 = \"=\";\n r5 = r5.split(r6);\n r6 = r5.length;\n if (r6 <= r2) goto L_0x002f;\n L_0x0025:\n r6 = r5[r3];\n r6 = r6.equals(r8);\n if (r6 == 0) goto L_0x002f;\n L_0x002d:\n r4 = r5[r2];\n L_0x002f:\n r0 = r0 + 1;\n goto L_0x0018;\n L_0x0032:\n r0 = r4;\n L_0x0033:\n r7 = \"UTF-8\";\t Catch:{ Exception -> 0x003a }\n r7 = java.net.URLDecoder.decode(r0, r7);\t Catch:{ Exception -> 0x003a }\n goto L_0x003b;\n L_0x003a:\n r7 = r0;\n L_0x003b:\n return r7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.leanplum.messagetemplates.BaseMessageDialog.a(java.lang.String, java.lang.String):java.lang.String\");\n }", "public void smell() {\n\t\t\n\t}", "public void m7211c() {\n /*\n r34 = this;\n r16 = 0;\n r15 = 0;\n r5 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case -1172269795: goto L_0x002e;\n case 2157948: goto L_0x0038;\n case 2571565: goto L_0x0024;\n default: goto L_0x0018;\n };\n L_0x0018:\n r2 = r3;\n L_0x0019:\n switch(r2) {\n case 0: goto L_0x0042;\n case 1: goto L_0x0162;\n case 2: goto L_0x01a9;\n default: goto L_0x001c;\n };\n L_0x001c:\n r2 = \"Undefined type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n L_0x0023:\n return;\n L_0x0024:\n r4 = \"TEXT\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x002c:\n r2 = 0;\n goto L_0x0019;\n L_0x002e:\n r4 = \"STICKER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0036:\n r2 = 1;\n goto L_0x0019;\n L_0x0038:\n r4 = \"FILE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0040:\n r2 = 2;\n goto L_0x0019;\n L_0x0042:\n r4 = mobi.mmdt.ott.provider.p169c.C1594n.TEXT;\n r33 = r5;\n L_0x0046:\n r8 = mobi.mmdt.componentsutils.p079a.p084e.C1113a.m6421a();\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.IN;\n r0 = r34;\n r2 = r0.f4758b;\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.p109d.p111b.C1309a.m6934a(r3);\n r3 = r3.m6942b();\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x0064;\n L_0x0062:\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.OUT;\n L_0x0064:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m7972a(r2, r3, r10);\n if (r2 != 0) goto L_0x0023;\n L_0x0072:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n if (r2 == 0) goto L_0x008a;\n L_0x007a:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n r0 = r34;\n r3 = r0.f4759c;\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x024e;\n L_0x008a:\n r17 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x00b8;\n L_0x0098:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x00b8;\n L_0x00aa:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r17 = r2;\n L_0x00b8:\n r2 = new mobi.mmdt.ott.d.a.b;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.NOT_READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n r2.<init>(r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16, r17);\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.logic.p157e.C1509a.m7621a(r3);\n r0 = r34;\n r4 = r0.f4762f;\n r0 = r33;\n r3.m7626a(r2, r0, r4);\n L_0x00f2:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x013c;\n L_0x00fe:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x013c;\n L_0x0110:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n mobi.mmdt.ott.provider.p169c.C1583c.m7976b(r3, r4, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m8003n(r3, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n r5 = mobi.mmdt.ott.provider.p169c.C1595o.SINGLE;\n mobi.mmdt.ott.logic.p112a.p120c.p121a.p123b.C1387u.m7218a(r3, r4, r2, r5);\n L_0x013c:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = \"TEXT\";\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x0023;\n L_0x0150:\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.b;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4762f;\n r2.<init>(r3, r15, r4);\n mobi.mmdt.ott.logic.C1494c.m7541c(r2);\n goto L_0x0023;\n L_0x0162:\n r6 = mobi.mmdt.ott.provider.p169c.C1594n.STICKER;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"STICKER_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4762f;\n r4 = \"STICKER_PACKAGE_ID\";\n r3 = r3.get(r4);\n r3 = (java.lang.String) r3;\n r0 = r34;\n r4 = r0.f4762f;\n r7 = \"STICKER_VERSION\";\n r4 = r4.get(r7);\n r4 = (java.lang.String) r4;\n if (r4 == 0) goto L_0x02c9;\n L_0x018a:\n if (r2 == 0) goto L_0x02c9;\n L_0x018c:\n if (r3 == 0) goto L_0x02c9;\n L_0x018e:\n r7 = r4.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x0194:\n r7 = r2.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x019a:\n r7 = r3.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x01a0:\n r16 = mobi.mmdt.ott.provider.p174h.C1629b.m8295a(r4, r3, r2);\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n L_0x01a9:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"FILE_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case 327328941: goto L_0x01de;\n case 796404377: goto L_0x01ca;\n case 802160718: goto L_0x01e8;\n case 808293817: goto L_0x01d4;\n default: goto L_0x01bd;\n };\n L_0x01bd:\n r2 = r3;\n L_0x01be:\n switch(r2) {\n case 0: goto L_0x01f2;\n case 1: goto L_0x020c;\n case 2: goto L_0x0222;\n case 3: goto L_0x0238;\n default: goto L_0x01c1;\n };\n L_0x01c1:\n r2 = \"Undefined file type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n goto L_0x0023;\n L_0x01ca:\n r4 = \"FILE_TYPE_IMAGE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01d2:\n r2 = 0;\n goto L_0x01be;\n L_0x01d4:\n r4 = \"FILE_TYPE_VIDEO\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01dc:\n r2 = 1;\n goto L_0x01be;\n L_0x01de:\n r4 = \"FILE_TYPE_PUSH_TO_TALK\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01e6:\n r2 = 2;\n goto L_0x01be;\n L_0x01e8:\n r4 = \"FILE_TYPE_OTHER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01f0:\n r2 = 3;\n goto L_0x01be;\n L_0x01f2:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.IMAGE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.IMAGE;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n L_0x0207:\n r33 = r2;\n r4 = r3;\n goto L_0x0046;\n L_0x020c:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.VIDEO;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.VIDEO;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0222:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.PUSH_TO_TALK;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.PUSH_TO_TALK;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0238:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.FILE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.OTHER;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x024e:\n if (r33 == 0) goto L_0x029c;\n L_0x0250:\n r0 = r34;\n r0 = r0.f4757a;\n r18 = r0;\n r19 = r33.m8082n();\n r20 = r33.m8069a();\n r21 = r33.m8079k();\n r22 = r33.m8073e();\n r23 = r33.m8078j();\n r24 = r33.m8077i();\n r26 = 0;\n r27 = r33.m8081m();\n r28 = r33.m8080l();\n r29 = r33.m8075g();\n r30 = r33.m8071c();\n r31 = r33.m8072d();\n r32 = r33.m8070b();\n r33 = r33.m8074f();\n r2 = mobi.mmdt.ott.provider.p170d.C1598c.m8100a(r18, r19, r20, r21, r22, r23, r24, r26, r27, r28, r29, r30, r31, r32, r33);\n r2 = r2.getLastPathSegment();\n r2 = java.lang.Long.parseLong(r2);\n r15 = java.lang.Long.valueOf(r2);\n L_0x029c:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n mobi.mmdt.ott.provider.p169c.C1583c.m7966a(r2, r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16);\n goto L_0x00f2;\n L_0x02c9:\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mobi.mmdt.ott.logic.a.c.a.b.s.c():void\");\n }", "static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void mo6255a() {\n }", "static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo1966i() throws cf {\r\n }", "public void method_2250() {\r\n // $FF: Couldn't be decompiled\r\n }", "public int method_209() {\r\n return 0;\r\n }", "private void m50366E() {\n }", "void m5771e() throws C0841b;", "public boolean method_214() {\r\n return false;\r\n }", "public boolean method_198() {\r\n return false;\r\n }", "private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }", "private void repairGenome() {\n if (checkGenome(this.code)) {\n return;\n }\n int[] counters = new int[8];\n for (int c : code) { counters[c]++; }\n for (int i = 0; i < 8; ++i) {\n if (counters[i] == 0) {\n while (true) {\n int newPos = r.nextInt(GENOME_SIZE);\n if (counters[this.code[newPos]] > 1) {\n counters[this.code[newPos]]--;\n this.code[newPos] = i;\n break;\n }\n }\n }\n }\n }", "public static void a(java.lang.Integer r8, java.lang.String[] r9, java.lang.String[] r10) {\n /*\n r1 = d;\n if (r8 == 0) goto L_0x001e;\n L_0x0004:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r2 = z;\n r3 = 64;\n r2 = r2[r3];\n r0 = r0.append(r2);\n r0 = r0.append(r8);\n r0 = r0.toString();\n com.whatsapp.util.Log.e(r0);\n L_0x001e:\n if (r9 == 0) goto L_0x007a;\n L_0x0020:\n if (r10 == 0) goto L_0x007a;\n L_0x0022:\n r0 = r9.length;\n r2 = r10.length;\n if (r0 != r2) goto L_0x0050;\n L_0x0026:\n r0 = 0;\n L_0x0027:\n r2 = r9.length;\n if (r0 >= r2) goto L_0x004e;\n L_0x002a:\n r2 = r9[r0];\n r2 = android.text.TextUtils.isEmpty(r2);\n if (r2 != 0) goto L_0x004a;\n L_0x0032:\n r2 = r10[r0];\n r2 = android.text.TextUtils.isEmpty(r2);\n if (r2 != 0) goto L_0x004a;\n L_0x003a:\n r2 = b;\n r3 = r9[r0];\n r4 = new com.whatsapp.contact.l;\n r6 = 0;\n r5 = r10[r0];\n r4.<init>(r6, r5);\n r2.put(r3, r4);\n L_0x004a:\n r0 = r0 + 1;\n if (r1 == 0) goto L_0x0027;\n L_0x004e:\n if (r1 == 0) goto L_0x007a;\n L_0x0050:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 65;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r1 = r9.length;\n r0 = r0.append(r1);\n r1 = z;\n r2 = 63;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r1 = r10.length;\n r0 = r0.append(r1);\n r0 = r0.toString();\n com.whatsapp.util.Log.e(r0);\n L_0x007a:\n r0 = i;\n r0.open();\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.contact.i.a(java.lang.Integer, java.lang.String[], java.lang.String[]):void\");\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"oc[MfnZM[~MHOK iO\");\n ClassWriter classWriter0 = new ClassWriter((-2450));\n classWriter0.threshold = (-3);\n FileSystemHandling.shouldAllThrowIOExceptions();\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"H\";\n stringArray0[1] = \"A\\\"69NpZ!\";\n stringArray0[2] = \"/i%NB\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"oQm>;z{ZYH6=AwV\", \"oc[MfnZM[~MHOK iO\", \"Code\", stringArray0, false, false);\n Integer integer0 = new Integer(11);\n Frame frame0 = new Frame();\n Label label0 = frame0.owner;\n // Undeclared exception!\n try { \n methodWriter0.visitLocalVariable(\"Deprecated\", \"H\", (String) null, (Label) null, (Label) null, 384);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter((-2450));\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2450), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"oc[MfnZM[~MHOK iO\", (String[]) null, true, false);\n Object object0 = new Object();\n int int0 = MethodWriter.SAME_LOCALS_1_STACK_ITEM_FRAME;\n methodWriter0.visitTypeInsn((-1299), \"9~\\\"GM0+ ?&-(JmN[0f.\");\n methodWriter0.visitTypeInsn(188, \"Fj)3/|(;sZXz$\");\n Label label0 = new Label();\n Frame frame0 = label0.frame;\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n label0.frame = null;\n Label label1 = label0.successor;\n methodWriter0.visitIntInsn(188, 99);\n }", "static void method_6338() {\r\n // $FF: Couldn't be decompiled\r\n }", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public boolean method_2434() {\r\n return false;\r\n }", "@Test(timeout = 4000)\n public void test091() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-2450));\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2450), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"oc[MfnZM[~MHOK iO\", (String[]) null, true, false);\n methodWriter0.visitVarInsn(63, 2);\n FieldWriter fieldWriter0 = classWriter0.firstField;\n Object object0 = new Object();\n Object object1 = new Object();\n methodWriter0.visitFrame(17, (-1299), (Object[]) null, (-2450), (Object[]) null);\n int int0 = MethodWriter.SAME_LOCALS_1_STACK_ITEM_FRAME;\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, true, true);\n methodWriter0.visitTypeInsn(8, \"java/lang/Throwable\");\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"oc[MfnZM[~MHOK iO\");\n Label label0 = new Label();\n methodWriter0.visitFieldInsn(2, \"k!Hb\", \"java/lang/Throwable\", \"Deprecated\");\n Integer integer0 = new Integer(64);\n methodWriter0.visitLdcInsn(integer0);\n Label label1 = new Label();\n methodWriter0.visitLabel(label1);\n methodWriter0.visitLdcInsn(\"oc[MfnZM[~MHOK iO\");\n methodWriter0.visitLineNumber(196, label0);\n assertNotSame(label0, label1);\n }", "public boolean method_194() {\r\n return false;\r\n }", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n int int0 = 0;\n ClassWriter classWriter0 = new ClassWriter(0);\n String string0 = \"Code\";\n String[] stringArray0 = new String[6];\n stringArray0[0] = \"Code\";\n stringArray0[1] = \"Code\";\n stringArray0[2] = \"Code\";\n classWriter0.addUninitializedType(\"{=k(UmyU|{qe`7t,\", 0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n stringArray0[3] = \"Code\";\n stringArray0[4] = \"Code\";\n stringArray0[5] = \"Code\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1, \"Code\", \"Code\", \"Code\", stringArray0, false, false);\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(0, 0, stringArray0, 182, stringArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 6\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "public boolean method_218() {\r\n return false;\r\n }", "public void mo1962e() throws cf {\r\n }", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public boolean method_2453() {\r\n return false;\r\n }", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-2450));\n String[] stringArray0 = new String[3];\n stringArray0[0] = \" u]{2y%.,\";\n stringArray0[1] = \" u]{2y%.,\";\n stringArray0[2] = \"+#`s5#[1e3xKfl3\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 889, \"byte\", \"oc[MfnZM[~MHOK iO\", \"+#`s5#[1e3xKfl3\", stringArray0, false, false);\n Object object0 = new Object();\n methodWriter0.visitFrame(889, 2, stringArray0, 2, stringArray0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n methodWriter0.visitTypeInsn(2, \"byte\");\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, true, true);\n methodWriter0.visitFrame((-525), (-1274), stringArray0, 458, stringArray0);\n assertEquals(3, stringArray0.length);\n }", "public final void m15744a(com.p111d.p112a.p114b.C5301g r9) {\n /*\n r8 = this;\n r0 = r8.f17783i;\n r1 = r8.f17781g;\n r2 = 0;\n r3 = 1;\n if (r1 == 0) goto L_0x0010;\n L_0x0008:\n r4 = r0.m4038b();\n if (r4 == 0) goto L_0x0010;\n L_0x000e:\n r4 = r3;\n goto L_0x0011;\n L_0x0010:\n r4 = r2;\n L_0x0011:\n r5 = -1;\n L_0x0012:\n r5 = r5 + r3;\n r6 = 16;\n if (r5 < r6) goto L_0x0029;\n L_0x0017:\n r0 = r0.m4032a();\n if (r0 == 0) goto L_0x0148;\n L_0x001d:\n if (r1 == 0) goto L_0x0027;\n L_0x001f:\n r4 = r0.m4038b();\n if (r4 == 0) goto L_0x0027;\n L_0x0025:\n r4 = r3;\n goto L_0x0028;\n L_0x0027:\n r4 = r2;\n L_0x0028:\n r5 = r2;\n L_0x0029:\n r6 = r0.m4031a(r5);\n if (r6 == 0) goto L_0x0148;\n L_0x002f:\n if (r4 == 0) goto L_0x0043;\n L_0x0031:\n r7 = r0.m4039c(r5);\n if (r7 == 0) goto L_0x003a;\n L_0x0037:\n r9.writeObjectId(r7);\n L_0x003a:\n r7 = r0.m4040d(r5);\n if (r7 == 0) goto L_0x0043;\n L_0x0040:\n r9.writeTypeId(r7);\n L_0x0043:\n r7 = com.p111d.p112a.p121c.p138m.C6523u.C15401.f4807a;\n r6 = r6.ordinal();\n r6 = r7[r6];\n switch(r6) {\n case 1: goto L_0x0143;\n case 2: goto L_0x013e;\n case 3: goto L_0x0139;\n case 4: goto L_0x0134;\n case 5: goto L_0x011e;\n case 6: goto L_0x0108;\n case 7: goto L_0x00c5;\n case 8: goto L_0x0074;\n case 9: goto L_0x0070;\n case 10: goto L_0x006c;\n case 11: goto L_0x0068;\n case 12: goto L_0x0056;\n default: goto L_0x004e;\n };\n L_0x004e:\n r9 = new java.lang.RuntimeException;\n r0 = \"Internal error: should never end up through this code path\";\n r9.<init>(r0);\n throw r9;\n L_0x0056:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof com.p111d.p112a.p121c.p138m.C5378q;\n if (r7 == 0) goto L_0x0064;\n L_0x005e:\n r6 = (com.p111d.p112a.p121c.p138m.C5378q) r6;\n r6.m11598a(r9);\n goto L_0x0012;\n L_0x0064:\n r9.writeObject(r6);\n goto L_0x0012;\n L_0x0068:\n r9.writeNull();\n goto L_0x0012;\n L_0x006c:\n r9.writeBoolean(r2);\n goto L_0x0012;\n L_0x0070:\n r9.writeBoolean(r3);\n goto L_0x0012;\n L_0x0074:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof java.lang.Double;\n if (r7 == 0) goto L_0x0086;\n L_0x007c:\n r6 = (java.lang.Double) r6;\n r6 = r6.doubleValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x0086:\n r7 = r6 instanceof java.math.BigDecimal;\n if (r7 == 0) goto L_0x0090;\n L_0x008a:\n r6 = (java.math.BigDecimal) r6;\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x0090:\n r7 = r6 instanceof java.lang.Float;\n if (r7 == 0) goto L_0x009f;\n L_0x0094:\n r6 = (java.lang.Float) r6;\n r6 = r6.floatValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x009f:\n if (r6 != 0) goto L_0x00a2;\n L_0x00a1:\n goto L_0x0068;\n L_0x00a2:\n r7 = r6 instanceof java.lang.String;\n if (r7 == 0) goto L_0x00ad;\n L_0x00a6:\n r6 = (java.lang.String) r6;\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00ad:\n r0 = new com.d.a.b.f;\n r1 = \"Unrecognized value type for VALUE_NUMBER_FLOAT: %s, can not serialize\";\n r3 = new java.lang.Object[r3];\n r4 = r6.getClass();\n r4 = r4.getName();\n r3[r2] = r4;\n r1 = java.lang.String.format(r1, r3);\n r0.<init>(r1, r9);\n throw r0;\n L_0x00c5:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof java.lang.Integer;\n if (r7 == 0) goto L_0x00d8;\n L_0x00cd:\n r6 = (java.lang.Integer) r6;\n r6 = r6.intValue();\n L_0x00d3:\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00d8:\n r7 = r6 instanceof java.math.BigInteger;\n if (r7 == 0) goto L_0x00e3;\n L_0x00dc:\n r6 = (java.math.BigInteger) r6;\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00e3:\n r7 = r6 instanceof java.lang.Long;\n if (r7 == 0) goto L_0x00f2;\n L_0x00e7:\n r6 = (java.lang.Long) r6;\n r6 = r6.longValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00f2:\n r7 = r6 instanceof java.lang.Short;\n if (r7 == 0) goto L_0x0101;\n L_0x00f6:\n r6 = (java.lang.Short) r6;\n r6 = r6.shortValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x0101:\n r6 = (java.lang.Number) r6;\n r6 = r6.intValue();\n goto L_0x00d3;\n L_0x0108:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof com.p111d.p112a.p114b.C1382p;\n if (r7 == 0) goto L_0x0117;\n L_0x0110:\n r6 = (com.p111d.p112a.p114b.C1382p) r6;\n r9.writeString(r6);\n goto L_0x0012;\n L_0x0117:\n r6 = (java.lang.String) r6;\n r9.writeString(r6);\n goto L_0x0012;\n L_0x011e:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof com.p111d.p112a.p114b.C1382p;\n if (r7 == 0) goto L_0x012d;\n L_0x0126:\n r6 = (com.p111d.p112a.p114b.C1382p) r6;\n r9.writeFieldName(r6);\n goto L_0x0012;\n L_0x012d:\n r6 = (java.lang.String) r6;\n r9.writeFieldName(r6);\n goto L_0x0012;\n L_0x0134:\n r9.writeEndArray();\n goto L_0x0012;\n L_0x0139:\n r9.writeStartArray();\n goto L_0x0012;\n L_0x013e:\n r9.writeEndObject();\n goto L_0x0012;\n L_0x0143:\n r9.writeStartObject();\n goto L_0x0012;\n L_0x0148:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.d.a.c.m.u.a(com.d.a.b.g):void\");\n }", "private static int convertLegacyAwbMode(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAwbMode(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAwbMode(java.lang.String):int\");\n }", "private static boolean writeStringToFile(java.io.File r6, java.lang.String r7) {\n /*\n if (r7 != 0) goto L_0x0004\n java.lang.String r7 = \"\"\n L_0x0004:\n r1 = 0\n r2 = 0\n java.io.File r4 = r6.getParentFile() // Catch:{ IOException -> 0x0020 }\n ensureDirectory(r4) // Catch:{ IOException -> 0x0020 }\n java.io.FileWriter r3 = new java.io.FileWriter // Catch:{ IOException -> 0x0020 }\n r3.<init>(r6) // Catch:{ IOException -> 0x0020 }\n r3.write(r7) // Catch:{ IOException -> 0x003c, all -> 0x0039 }\n r1 = 1\n if (r3 == 0) goto L_0x003f\n r3.close() // Catch:{ IOException -> 0x001d }\n r2 = r3\n L_0x001c:\n return r1\n L_0x001d:\n r4 = move-exception\n r2 = r3\n goto L_0x001c\n L_0x0020:\n r0 = move-exception\n L_0x0021:\n java.lang.String r4 = \"PluginNativeHelper\"\n java.lang.String r5 = \"error occurs while writing file\"\n com.tencent.component.utils.log.LogUtil.d(r4, r5, r0) // Catch:{ all -> 0x0030 }\n if (r2 == 0) goto L_0x001c\n r2.close() // Catch:{ IOException -> 0x002e }\n goto L_0x001c\n L_0x002e:\n r4 = move-exception\n goto L_0x001c\n L_0x0030:\n r4 = move-exception\n L_0x0031:\n if (r2 == 0) goto L_0x0036\n r2.close() // Catch:{ IOException -> 0x0037 }\n L_0x0036:\n throw r4\n L_0x0037:\n r5 = move-exception\n goto L_0x0036\n L_0x0039:\n r4 = move-exception\n r2 = r3\n goto L_0x0031\n L_0x003c:\n r0 = move-exception\n r2 = r3\n goto L_0x0021\n L_0x003f:\n r2 = r3\n goto L_0x001c\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.component.plugin.PluginNativeHelper.writeStringToFile(java.io.File, java.lang.String):boolean\");\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "public boolean shouldRewriteQueryFromData() {\n/* 79 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void func_104112_b() {\n \n }", "public void a(int r16, int r17, int r18, int r19, boolean r20, o.j r21, o.u r22) {\n /*\n r15 = this;\n r7 = r15\n r8 = r21\n r9 = r22\n o.d0 r0 = r7.f5413g\n if (r0 != 0) goto L_0x0144\n o.m0 r0 = r7.c\n o.e r0 = r0.a\n java.util.List<o.o> r0 = r0.f5294f\n o.o0.g.c r10 = new o.o0.g.c\n r10.<init>(r0)\n o.m0 r1 = r7.c\n o.e r1 = r1.a\n javax.net.ssl.SSLSocketFactory r2 = r1.f5297i\n if (r2 != 0) goto L_0x0055\n o.o r1 = o.o.f5376h\n boolean r0 = r0.contains(r1)\n if (r0 == 0) goto L_0x0048\n o.m0 r0 = r7.c\n o.e r0 = r0.a\n o.y r0 = r0.a\n java.lang.String r0 = r0.d\n o.o0.k.f r1 = o.o0.k.f.a\n boolean r1 = r1.b((java.lang.String) r0)\n if (r1 == 0) goto L_0x0035\n goto L_0x005f\n L_0x0035:\n okhttp3.internal.connection.RouteException r1 = new okhttp3.internal.connection.RouteException\n java.net.UnknownServiceException r2 = new java.net.UnknownServiceException\n java.lang.String r3 = \"CLEARTEXT communication to \"\n java.lang.String r4 = \" not permitted by network security policy\"\n java.lang.String r0 = i.a.a.a.a.a((java.lang.String) r3, (java.lang.String) r0, (java.lang.String) r4)\n r2.<init>(r0)\n r1.<init>(r2)\n throw r1\n L_0x0048:\n okhttp3.internal.connection.RouteException r0 = new okhttp3.internal.connection.RouteException\n java.net.UnknownServiceException r1 = new java.net.UnknownServiceException\n java.lang.String r2 = \"CLEARTEXT communication not enabled for client\"\n r1.<init>(r2)\n r0.<init>(r1)\n throw r0\n L_0x0055:\n java.util.List<o.d0> r0 = r1.e\n o.d0 r1 = o.d0.H2_PRIOR_KNOWLEDGE\n boolean r0 = r0.contains(r1)\n if (r0 != 0) goto L_0x0137\n L_0x005f:\n r11 = 0\n r12 = r11\n L_0x0061:\n o.m0 r0 = r7.c // Catch:{ IOException -> 0x00cd }\n boolean r0 = r0.a() // Catch:{ IOException -> 0x00cd }\n if (r0 == 0) goto L_0x0081\n r1 = r15\n r2 = r16\n r3 = r17\n r4 = r18\n r5 = r21\n r6 = r22\n r1.a(r2, r3, r4, r5, r6) // Catch:{ IOException -> 0x00cd }\n java.net.Socket r0 = r7.d // Catch:{ IOException -> 0x00cd }\n if (r0 != 0) goto L_0x007c\n goto L_0x0097\n L_0x007c:\n r1 = r16\n r2 = r17\n goto L_0x0088\n L_0x0081:\n r1 = r16\n r2 = r17\n r15.a((int) r1, (int) r2, (o.j) r8, (o.u) r9) // Catch:{ IOException -> 0x00c9 }\n L_0x0088:\n r3 = r19\n r15.a((o.o0.g.c) r10, (int) r3, (o.j) r8, (o.u) r9) // Catch:{ IOException -> 0x00c7 }\n o.m0 r0 = r7.c // Catch:{ IOException -> 0x00c7 }\n java.net.InetSocketAddress r0 = r0.c // Catch:{ IOException -> 0x00c7 }\n o.m0 r0 = r7.c // Catch:{ IOException -> 0x00c7 }\n java.net.Proxy r0 = r0.f5367b // Catch:{ IOException -> 0x00c7 }\n if (r9 == 0) goto L_0x00c6\n L_0x0097:\n o.m0 r0 = r7.c\n boolean r0 = r0.a()\n if (r0 == 0) goto L_0x00b1\n java.net.Socket r0 = r7.d\n if (r0 == 0) goto L_0x00a4\n goto L_0x00b1\n L_0x00a4:\n java.net.ProtocolException r0 = new java.net.ProtocolException\n java.lang.String r1 = \"Too many tunnel connections attempted: 21\"\n r0.<init>(r1)\n okhttp3.internal.connection.RouteException r1 = new okhttp3.internal.connection.RouteException\n r1.<init>(r0)\n throw r1\n L_0x00b1:\n o.o0.j.e r0 = r7.f5414h\n if (r0 == 0) goto L_0x00c5\n o.o0.g.g r1 = r7.f5411b\n monitor-enter(r1)\n o.o0.j.e r0 = r7.f5414h // Catch:{ all -> 0x00c2 }\n int r0 = r0.a() // Catch:{ all -> 0x00c2 }\n r7.f5421o = r0 // Catch:{ all -> 0x00c2 }\n monitor-exit(r1) // Catch:{ all -> 0x00c2 }\n goto L_0x00c5\n L_0x00c2:\n r0 = move-exception\n monitor-exit(r1) // Catch:{ all -> 0x00c2 }\n throw r0\n L_0x00c5:\n return\n L_0x00c6:\n throw r11 // Catch:{ IOException -> 0x00c7 }\n L_0x00c7:\n r0 = move-exception\n goto L_0x00d3\n L_0x00c9:\n r0 = move-exception\n L_0x00ca:\n r3 = r19\n goto L_0x00d3\n L_0x00cd:\n r0 = move-exception\n r1 = r16\n r2 = r17\n goto L_0x00ca\n L_0x00d3:\n java.net.Socket r4 = r7.e\n o.o0.e.a((java.net.Socket) r4)\n java.net.Socket r4 = r7.d\n o.o0.e.a((java.net.Socket) r4)\n r7.e = r11\n r7.d = r11\n r7.f5415i = r11\n r7.f5416j = r11\n r7.f5412f = r11\n r7.f5413g = r11\n r7.f5414h = r11\n o.m0 r4 = r7.c\n java.net.InetSocketAddress r4 = r4.c\n if (r9 == 0) goto L_0x0136\n r4 = 0\n r5 = 1\n if (r12 != 0) goto L_0x00fb\n okhttp3.internal.connection.RouteException r12 = new okhttp3.internal.connection.RouteException\n r12.<init>(r0)\n goto L_0x010a\n L_0x00fb:\n java.io.IOException r6 = r12.e\n java.lang.reflect.Method r13 = o.o0.e.f5385j\n if (r13 == 0) goto L_0x0108\n java.lang.Object[] r14 = new java.lang.Object[r5] // Catch:{ IllegalAccessException | InvocationTargetException -> 0x0108 }\n r14[r4] = r0 // Catch:{ IllegalAccessException | InvocationTargetException -> 0x0108 }\n r13.invoke(r6, r14) // Catch:{ IllegalAccessException | InvocationTargetException -> 0x0108 }\n L_0x0108:\n r12.f5632f = r0\n L_0x010a:\n if (r20 == 0) goto L_0x0135\n r10.d = r5\n boolean r5 = r10.c\n if (r5 != 0) goto L_0x0113\n goto L_0x0131\n L_0x0113:\n boolean r5 = r0 instanceof java.net.ProtocolException\n if (r5 == 0) goto L_0x0118\n goto L_0x0131\n L_0x0118:\n boolean r5 = r0 instanceof java.io.InterruptedIOException\n if (r5 == 0) goto L_0x011d\n goto L_0x0131\n L_0x011d:\n boolean r5 = r0 instanceof javax.net.ssl.SSLHandshakeException\n if (r5 == 0) goto L_0x012a\n java.lang.Throwable r5 = r0.getCause()\n boolean r5 = r5 instanceof java.security.cert.CertificateException\n if (r5 == 0) goto L_0x012a\n goto L_0x0131\n L_0x012a:\n boolean r5 = r0 instanceof javax.net.ssl.SSLPeerUnverifiedException\n if (r5 == 0) goto L_0x012f\n goto L_0x0131\n L_0x012f:\n boolean r4 = r0 instanceof javax.net.ssl.SSLException\n L_0x0131:\n if (r4 == 0) goto L_0x0135\n goto L_0x0061\n L_0x0135:\n throw r12\n L_0x0136:\n throw r11\n L_0x0137:\n okhttp3.internal.connection.RouteException r0 = new okhttp3.internal.connection.RouteException\n java.net.UnknownServiceException r1 = new java.net.UnknownServiceException\n java.lang.String r2 = \"H2_PRIOR_KNOWLEDGE cannot be used with HTTPS\"\n r1.<init>(r2)\n r0.<init>(r1)\n throw r0\n L_0x0144:\n java.lang.IllegalStateException r0 = new java.lang.IllegalStateException\n java.lang.String r1 = \"already connected\"\n r0.<init>(r1)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: o.o0.g.f.a(int, int, int, int, boolean, o.j, o.u):void\");\n }", "public abstract void mo27385c();", "public void mo1963f() throws cf {\r\n }", "public boolean method_3897() {\r\n return false;\r\n }" ]
[ "0.59551007", "0.59221977", "0.58490455", "0.5829993", "0.57729733", "0.5735825", "0.5717233", "0.5712596", "0.5669242", "0.56276065", "0.5616126", "0.55640304", "0.5552396", "0.55516297", "0.55491334", "0.5544842", "0.554296", "0.5540864", "0.55046195", "0.5498494", "0.549748", "0.5476511", "0.54705966", "0.54675734", "0.54441065", "0.5434652", "0.5430396", "0.542816", "0.54243666", "0.54243666", "0.5423871", "0.54212147", "0.5411673", "0.5405024", "0.5398273", "0.5395126", "0.53879267", "0.5387358", "0.53682566", "0.53680325", "0.5361291", "0.5361118", "0.53599596", "0.5354853", "0.5354828", "0.53444606", "0.53395087", "0.533821", "0.533567", "0.5328441", "0.53265864", "0.5319996", "0.53077817", "0.5304048", "0.5300128", "0.5299938", "0.5296513", "0.52946585", "0.52883124", "0.52879626", "0.52868026", "0.5279517", "0.52788305", "0.527294", "0.5262951", "0.5260862", "0.5257264", "0.5256644", "0.5252601", "0.5243577", "0.5243577", "0.5240622", "0.5239734", "0.52355325", "0.52339226", "0.52339226", "0.5215343", "0.52139217", "0.52116495", "0.52110124", "0.5208499", "0.52075064", "0.5203369", "0.5201403", "0.52002865", "0.52002865", "0.51973647", "0.51969403", "0.51965874", "0.5196254", "0.5192327", "0.5190847", "0.51896787", "0.5182519", "0.5182519", "0.51807046", "0.51789856", "0.5178257", "0.5176893", "0.51767", "0.5174807" ]
0.0
-1
Constructor of the status frame, taking the list of every clients.
public StatusFrame(LinkedList<Client> clients){ super(); panel = new JPanel(); Collections.sort(clients); this.clients = clients; createLabels(); for(Client c : clients){ c.addObserver(this); } panel.setPreferredSize(new Dimension(200,200)); WindowAdapter closeListener = new WindowAdapter() { @Override public void windowClosing(WindowEvent windowEvent) { for(Client c : clients) { c.removeObserver(StatusFrame.this); } } }; getFrame().addWindowListener(closeListener); getFrame().setContentPane(panel); getFrame().setTitle("Statuses"); getFrame().setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS)); getFrame().pack(); getFrame().setVisible(true); getFrame().setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ClientStatus() {\n }", "public ClientInformation(){\n clientList = new ArrayList<>();\n\n }", "public BrokersStatus()\r\n {\r\n brokers = new ArrayList<BrokerStatus>();\r\n }", "public ClientFrame()\n {\n super(\"Client\");\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setLayout(new GridBagLayout());\n setBackground(Color.yellow);\n setSize(450, 300);\n setResizable(false);\n\n setTitle(agent.getHandle());\n agent.setClient(this);\n\n addButtons();\n\n // sets the frame to be visible\n setVisible(true);\n }", "public BrokersStatus(List<BrokerStatus> inBrokers)\r\n {\r\n brokers = inBrokers;\r\n }", "public Status(){\n this(StatusDescription.REGISTERED);\n }", "public static void initializeClientList() {\r\n\t\tClient newClient1 = new Client(1, \"Bob Jones\", \"Brokerage\");\r\n\t\tclientList.add(newClient1);\r\n\t\t\r\n\t\tClient newClient2 = new Client(2, \"Sarah Davis\", \"Retirement\");\r\n\t\tclientList.add(newClient2);\r\n\t\t\r\n\t\tClient newClient3 = new Client(3, \"Amy Friendly\", \"Brokerage\");\r\n\t\tclientList.add(newClient3);\r\n\t\t\r\n\t\tClient newClient4 = new Client(4, \"Johnny Smith\", \"Brokerage\");\r\n\t\tclientList.add(newClient4);\r\n\t\t\r\n\t\tClient newClient5 = new Client(5, \"Carol Spears\", \"Retirement\");\r\n\t\tclientList.add(newClient5);\r\n\t}", "public AskGodsFromListGUIClientState(Client client) {\n super(client);\n playersCount = client.getGame().getPlayersCount();\n }", "public void constructClientsPanel(int numClients) {\n cnames = new Vector();\n cstatus = new Vector();\n ctrans = new Vector();\n \n int numRows = numClients;\n if (numRows < 7)\n numRows = 7;\n \n JPanel listPanel = new JPanel();\n listPanel.setLayout(new GridLayout(numRows + 1, 3));\n \n clientScroller = new JScrollPane(listPanel);\n clientScroller.setPreferredSize(relativeSize(0.4f, 0.35f));\n clientScroller.setBorder(BorderFactory.createTitledBorder(\"Client Monitor\"));\n \n JPanel nameTitlePanel = new JPanel();\n JLabel nameTitleLabel = new JLabel();\n nameTitleLabel.setText(\"Client\");\n nameTitleLabel.setFont(new Font(\"Arial Black\", 0, 16));\n nameTitleLabel.setForeground(Color.black);\n nameTitlePanel.add(nameTitleLabel);\n \n listPanel.add(nameTitlePanel);\n \n JPanel statusTitlePanel = new JPanel();\n JLabel statusTitleLabel = new JLabel();\n statusTitleLabel.setText(\"Status\");\n statusTitleLabel.setFont(new Font(\"Arial Black\", 0, 16));\n statusTitleLabel.setForeground(Color.black);\n statusTitlePanel.add(statusTitleLabel);\n \n listPanel.add(statusTitlePanel);\n \n JPanel numTransPanel = new JPanel();\n JLabel numTransLabel = new JLabel();\n numTransLabel.setText(\"Num Offers\");\n numTransLabel.setFont(new Font(\"Arial Black\", 0, 16));\n numTransLabel.setForeground(Color.black);\n numTransPanel.add(numTransLabel);\n \n listPanel.add(numTransPanel);\n \n for (int i=0; i<numRows; i++) {\n JPanel namePanel = new JPanel();\n JLabel nameLabel = new JLabel(\"<html><font color=#003366>Client \" + i + \"</font></html>\");\n nameLabel.setFont(new Font(\"Verdana\", Font.BOLD, 16));\n if (i < numClients) {\n namePanel.add(nameLabel);\n cnames.add(nameLabel);\n }\n \n else\n namePanel.add(new JLabel());\n \n listPanel.add(namePanel);\n \n JPanel statusPanel = new JPanel();\n JLabel statusLabel = new JLabel(\"Disconnected\");\n statusLabel.setFont(new Font(\"Verdana\", Font.BOLD, 16));\n statusLabel.setForeground(new Color(90, 25, 25));\n if (i < numClients) {\n statusPanel.add(statusLabel);\n cstatus.add(statusLabel);\n }\n \n else\n statusPanel.add(new JLabel());\n \n listPanel.add(statusPanel);\n \n JPanel transPanel = new JPanel();\n JLabel transLabel = new JLabel(\"N/A\");\n transLabel.setFont(new Font(\"Verdana\", Font.BOLD, 16));\n transLabel.setForeground(Color.black);\n if (i < numClients) {\n transPanel.add(transLabel);\n ctrans.add(transLabel);\n } else\n transPanel.add(new JLabel());\n \n listPanel.add(transPanel);\n }\n \n if (topPanel.getComponentCount() != 0)\n topPanel.remove(0);\n \n topPanel.add(clientScroller, 0);\n topPanel.setPreferredSize(relativeSize(0.85f, 0.42f));\n \n pack();\n centerOnScreen();\n }", "public Server()\n {\n clientSessions = new ArrayList();\n }", "public ClientFrame() {\n\t\tinitComponents();\n\t}", "public ProgressStatusList() {\n }", "public AlmaStatus(AdvancedComponentClient _client,SubsystemStatus _SubsystemStatus) {\n\t\tsuper(_client);\n\t\tthis.SubsystemStatus = _SubsystemStatus;\n\t\t// TODO Auto-generated constructor stub\n\t}", "public DacGetStatusResponse() {\n super();\n this.setStatusInfoList(new LazyArrayList<StatusInfo>());\n }", "public StatusComponent()\n {\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 }", "public ClientGUI() {\n initComponents();\n PopulateList();\n }", "public ClientFrame() {\n initComponents();\n }", "public ClientFrame() {\n initComponents();\n }", "@Override\r\n\tpublic void initialize(URL url, ResourceBundle rb) {\r\n\t\tthis.statuses = FXCollections.observableArrayList();\r\n\t\tcontrolList.setItems(statuses);\r\n\t\tcontrolList\r\n\t\t\t\t.setCellFactory(new Callback<ListView<IStatus>, ListCell<IStatus>>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic ListCell<IStatus> call(ListView<IStatus> list) {\r\n\t\t\t\t\t\treturn new StatusesDialogController.StatusCell();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t}", "public Status() {\n }", "@SuppressWarnings(\"unused\")\n private ReplicationStatusResponse() {\n this(false);\n }", "public Status() {\n\n }", "public viewClients() {\n initComponents();\n }", "public StatusResource() {\n this.statusService = DeathStar.getStatusService();\n logger.log(Level.FINE, \"Status resource instantiated: {0}\", this);\n }", "ClientGUI() {\n\t\t_ls = new logServer(\"ClientGui\");\n\n\t\t_clientFrame = new JFrame();\n\t\t_loginFrame = new LoginF(_ls);\n\n\t\t_clientFrame.setSize(500, 820);\n\t\t_clientFrame.setLayout(null);\n\t\t_clientFrame.add(_loginFrame);\n\t\tinit();\n\n\t\t// startFrame();\n\t\t\n\n\t\t_clientControl = new Client(_ls);\n\t\t_loginFrame.setClientPointer(_clientControl);\n\n\t\t/**\n\t\t * event for login frame to close and open new frame\n\t\t */\n\t\t_loginFrame.setLoginListener(new loginFrameListener() {\n\t\t\t@Override\n\t\t\tpublic void singUpListener(Client clientControl) {\n\t\t\t\t_clientControl = clientControl;\n\t\t\t\tstartFrame();\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t}", "public JzChronicstatusExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public InternmentList() {\n\t\tsuper(\"Internments\", List.IMPLICIT);\n\n\t\tstartData();\n\t\tstartComponents();\n\t}", "private void fillStatusList() {\n StatusList = new ArrayList<>();\n StatusList.add(new StatusItem(\"Single\"));\n StatusList.add(new StatusItem(\"Married\"));\n }", "public ClientThread(Socket clientSocket, CopyOnWriteArrayList<ClientThread> threads, Server frame) {\r\n this.clientSocket = clientSocket;\r\n this.threads = threads;\r\n this.frame = frame;\r\n }", "public GameServerClient(){\r\n\t\tinitComponents();\r\n\t\t}", "public StatisticsDialog(JFrame parent, List<Subscriber> subscriberList) throws DevFailed {\n super(parent, false);\n this.parent = parent;\n readTime = System.currentTimeMillis();\n SplashUtils.getInstance().startSplash();\n try {\n defaultTangoHosts = TangoUtils.getDefaultTangoHostList();\n initComponents();\n subscribers = subscriberList;\n finalizeConstruction(\"All Subscribers \", true);\n }\n catch (DevFailed e) {\n SplashUtils.getInstance().stopSplash();\n throw e;\n }\n SplashUtils.getInstance().stopSplash();\n }", "public CreateStatus()\n {\n super(new DataMap(), null);\n }", "@SuppressWarnings(\"OverridableMethodCallInConstructor\")\n public ServerFrame() {\n initComponents();\n init();\n connection();\n }", "public LpsClient() {\n super();\n }", "public ClientStateManager(final Activity owner) {\r\n\tif (owner instanceof ActivityChat) {\r\n\t this.initActivityChat(owner);\r\n\t}\r\n\tif (owner instanceof ActivityLobby) {\r\n\t this.initActivityLobby(owner);\r\n\t}\r\n }", "public FClientSR() {\n random = new Random();\n helper = new Helper();\n receivedPacketList = new HashMap<>();\n expectedList = new ArrayList<>();\n loadList(expectedList);\n }", "private Status(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public ServerPlayers() {\n sockets = new ArrayList<Socket>();\n }", "protected void listClients() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tsynchronized (processors) {\r\n\t\t\t\tint procCount = processors.count();\r\n\t\t\t\tif (procCount > 0) {\r\n\t\t\t\t\tSimulatorPDUProcessor proc;\r\n\t\t\t\t\tfor (int i = 0; i < procCount; i++) {\r\n\t\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(i);\r\n\t\t\t\t\t\tSystem.out.print(proc.getSystemId());\r\n\t\t\t\t\t\tif (!proc.isActive()) {\r\n\t\t\t\t\t\t\tSystem.out.println(\" (inactive)\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"No client connected.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "private AgentListResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void startFrame(Client client) {\r\n\t\tthis.client = client;\r\n\t\tJFrame frame = new JFrame();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.add(this);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "public InterfaceSalon(String liste, Client client) {\n initComponents();\n this.c=client;\n this.lobbyListJSON=new JSONArray();\n parser = new JSONParser();\n \n setLobbyList(liste);\n }", "private void initialize(PeerList peerList, Peer user) {\r\n\t\tclient = new Client(peerList,user);\r\n\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 880, 584);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tclient.setConnected(true);\r\n\t\tclient.listenServer();\r\n\t\tclient.listenPeers();\r\n\t\tif(peerList.getList().size()>0) {\r\n\t\t\tfor(Peer aPeer:peerList.getList()) {\r\n\t\t\t\tif(!(aPeer.getUsername().compareTo(theUser.getUsername())==0)){\r\n\t\t\t\t\tlistModel.add(modelIndex,aPeer.getUsername());\r\n\t\t\t\t\tmodelIndex++;\r\n\t\t\t\t}\r\n\t\t\t\tif(modelIndex>0) {\r\n\t\t\t\t\tlist = new JList<String>(listModel);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tlistModel.add(0, \"No Peers Online\");\r\n\t\t\t\t\tlist = new JList<String>(listModel);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlistModel.add(0, \"No Peers Online\");\r\n\t\t\tlist = new JList<String>(listModel);\t\r\n\t\t}\r\n\t\t\r\n\t\tlist.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t public void mouseClicked(MouseEvent evt) {\r\n\t\t JList<String> list = (JList<String>)evt.getSource();\r\n\t\t if (evt.getClickCount() == 2) {\r\n\t\t \t\r\n\t\t // When the user double clicks on the peer list, the messageList gets populated\r\n\t\t \t// with the messages from that peers conversation.\r\n\t\t int index = list.locationToIndex(evt.getPoint());\r\n\t\t String peerName = list.getComponent(index).toString();\r\n\t\t selectedPeer = peerList.getPeer(peerName);\r\n\t\t if (!selectedPeer.getMessageList().isEmpty()) {\r\n\t\t\t\t\r\n\t\t\t\t\t\tString peerMessages = selectedPeer.getMessageListString();\r\n\t\t\t\t\t\tmessageListContent.setText(peerMessages);\r\n\t\t\t\t\t}\r\n\t\t \r\n\t\t }\r\n\t\t }\r\n\t\t});\t\t\r\n\t\tJLabel lblPeers = new JLabel(\"Peers\");\r\n\t\tlblPeers.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\r\n\t\t\r\n\t\tJLabel lblmessageListContent = new JLabel(\"Message List:\");\r\n\t\tlblmessageListContent.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\r\n\t\t\r\n\t\tJLabel lblMessage = new JLabel(\"Message:\");\r\n\t\tlblMessage.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\r\n\t\t\r\n\t\tmessageListContent = new JTextArea();\r\n\t\tmessageListContent.setLineWrap(true);\r\n\t\tmessageListContent.setFont(new Font(\"Monospaced\", Font.PLAIN, 15));\r\n\t\tmessageListContent.setEditable(false);\r\n\t\t\r\n\t\tJTextArea messageBox = new JTextArea();\r\n\t\tmessageBox.setLineWrap(true);\r\n\t\tmessageBox.setToolTipText(\"Enter your text here\");\r\n\t\t\r\n\t\tmessageBox.setRows(5);\r\n\t\t\r\n\t\tJButton send = new JButton(\"Send\");\r\n\t\t//When the send button is clicked, the contents of the message box are cleared and sent to the selected peer.\r\n\t\tsend.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif(selectedPeer != null) {\r\n\t\t\t\t\tMessage sentMessage = new Message(messageBox.getText(),client.getTheUser().getUsername());\r\n\t\t\t\t\tclient.sendToPeer(sentMessage,selectedPeer,clientPort);\r\n\t\t\t\t\tmessageListContent.append(\"Sent:\"+sentMessage.toString());\r\n\t\t\t\t\tmessageBox.setText(null);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane(messageListContent,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\t\r\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\r\n\t\tgroupLayout.setHorizontalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t.addGap(35)\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addComponent(lblPeers, GroupLayout.PREFERRED_SIZE, 217, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addComponent(list, GroupLayout.PREFERRED_SIZE, 227, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t.addGap(48)\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addComponent(lblmessageListContent, GroupLayout.PREFERRED_SIZE, 217, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addComponent(lblMessage, GroupLayout.PREFERRED_SIZE, 217, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addComponent(messageBox, GroupLayout.PREFERRED_SIZE, 474, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t\t.addComponent(send))\r\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addComponent(messageListContent, GroupLayout.PREFERRED_SIZE, 530, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t\t.addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\r\n\t\t\t\t\t.addGap(17))\r\n\t\t);\r\n\t\tgroupLayout.setVerticalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.TRAILING)\r\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t.addContainerGap()\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\r\n\t\t\t\t\t\t.addComponent(lblmessageListContent, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addComponent(lblPeers, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addGroup(Alignment.TRAILING, groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t\t\t.addComponent(messageListContent, GroupLayout.PREFERRED_SIZE, 308, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t\t\t.addGap(18)\r\n\t\t\t\t\t\t\t\t\t.addComponent(lblMessage, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t\t\t\t.addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)\r\n\t\t\t\t\t\t\t\t.addComponent(send, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t.addComponent(messageBox, GroupLayout.DEFAULT_SIZE, 88, Short.MAX_VALUE))\r\n\t\t\t\t\t\t\t.addGap(14))\r\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addComponent(list, GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE)\r\n\t\t\t\t\t\t\t.addContainerGap())))\r\n\t\t);\r\n\t\tframe.getContentPane().setLayout(groupLayout);\r\n\t\t\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\t\r\n\t\tJMenu mnFile = new JMenu(\"File\");\r\n\t\tmenuBar.add(mnFile);\r\n\t\t\r\n\t\tJMenuItem mntmNewMenuItem = new JMenuItem(\"New menu item\");\r\n\t\tmnFile.add(mntmNewMenuItem);\r\n\t\t\r\n\t\tJMenuItem mntmNewMenuItem_1 = new JMenuItem(\"New menu item\");\r\n\t\tmnFile.add(mntmNewMenuItem_1);\r\n\t\t\r\n\t\tJMenu mnHelp = new JMenu(\"Help\");\r\n\t\tmenuBar.add(mnHelp);\r\n\t}", "private StatusMessage() {\n\n\t}", "private StatusMessage() {\n\n\t}", "private StatusCheckin(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public ClientLoader(KimbleClient... clients) {\n this(Arrays.asList(clients));\n }", "public Server(){\r\n \r\n this.m_Clients = new TeilnehmerListe();\r\n this.m_Port = 7575;\r\n }", "public ListaCliente() {\n initComponents();\n carregarTabela();\n }", "private static void initializeClient(Client client) {\n\t\tclient.setReportFolder(reportFolder);\n\t\tString[] statArray = new String[statTypes.size()];\n\t\tstatTypes.keySet().toArray(statArray);\n\t\tclient.setStatTypes(statArray);\n\t}", "public MastermindStatus() {\r\n super();\r\n value = new int[4];\r\n matrixMastermind = new MatrixMastermind(4, 10);\r\n currentRow = 0;\r\n }", "public messageList()\n {\n\n }", "public Client(int id, String name) {\n\t\tsuper(id, name);\n\t\tthis.jobs = new ArrayList<Job>();\n\t}", "public Client() {\r\n\t// TODO Auto-generated constructor stub\r\n\t \r\n }", "public ServerLogger(ExtendedTS3Api api) {\r\n\t\tthis.api = api;\r\n\t\tArrayList<Client> allClientsWhileStartingtoLogg = new ArrayList<Client>();\r\n\t\tallClientsWhileStartingtoLogg = (ArrayList<Client>) api.getClients();\r\n\t\tint numberOfPeopleOnTheServer = allClientsWhileStartingtoLogg.size();\r\n\t\t\r\n\t\tfor (int i = 0; i < allClientsWhileStartingtoLogg.size(); i++) {\r\n\t\t\tUserLoggedInEntity userAlreadyOnline = new UserLoggedInEntity();\r\n\r\n\t\t\tuserAlreadyOnline.setId(allClientsWhileStartingtoLogg.get(i).getId());\r\n\t\t\tuserAlreadyOnline.setNickname(allClientsWhileStartingtoLogg.get(i).getNickname());\r\n\t\t\tuserAlreadyOnline.setuId(allClientsWhileStartingtoLogg.get(i).getUniqueIdentifier());\r\n\t\t\tuserAlreadyOnline.logUser(LoggedServerEvents.STARTED_LOG, numberOfPeopleOnTheServer);\r\n\t\t\tuserAlreadyOnline.setTimeUserJoinedTheServer(LocalDateTime.now());\r\n\r\n\t\t\tusersLoggedIn.add(userAlreadyOnline);\r\n\t\t}\r\n\t}", "public EchoServerMultiThreaded(){\n\t\tclients = new LinkedList<>();\n\t\thistory = new ArrayList<>();\n\n\t\t//History Log\n\t\tBufferedReader logIn = null;\n\t\tFile historyLog = new File(\"Code-Socket/lib/historyLog.txt\");\n\t\ttry {\n\t\t\tif(historyLog.createNewFile()){\n\t\t\t\tSystem.out.println(\"History log file not found, creation...\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"History log file found, loading...\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"An error occured with the history log file\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry{\n\t\t\tlogIn = new BufferedReader(new FileReader(historyLog));\n\t\t\tString line = logIn.readLine();\n\t\t\tlockHistory.writeLock().lock();\n\t\t\twhile(line!=null){\n\t\t\t\thistory.add(line);\n\t\t\t\tline=logIn.readLine();\n\t\t\t}\n\t\t\tlockHistory.writeLock().unlock();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"An error occured with the history log reader\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tlogIn.close();\n\t\t\t\tlogOut = new BufferedWriter(new FileWriter(historyLog,true));\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public Clientes() {\n\t\tclientes = new Cliente[MAX_CLIENTES];\n\t}", "@Override\n public KimbleClient[] clientStartInfo() {\n return clients;\n }", "private void getClientList(ActionEvent e){\r\n new ClientList().Display();\r\n }", "public ServerNMS() {\n\t\tclients = new LinkedList<PrintWriter>();\n\t}", "public Client() {\n initComponents();\n setIcon();\n }", "public EO_ClientsImpl() {\n }", "public Server(List<WhiteboardServerInfo> whiteBoards) {\n\t\tthis.whiteBoards = whiteBoards;\n\t}", "public Client(Client client) {\n\n }", "protected Status() {\r\n\t\t;\r\n\t}", "public List<ClientThread> getClients(){\n return clients;\n }", "public MainUiPanel() {\n initComponents();\n// initializeTable();\n ArrayList<Client> loc = LocationAction.getLocationList();\n for(Client cl: loc){\n// column.add(cl.getClientName());\n// }\n \n jTabbedPane1.addTab(\"OrderList for \"+cl.getClientName(), new OrderNotificationUi(cl.getClientId()));\n// jTabbedPane1.addTab(\"OrderList for \"+cl.getClientName(), new OrderNotificationUi());\n }\n }", "public WaitList(){\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "public Server(){\n\t\tusers = new HashMap<String, Vector<Integer>>();\n\t}", "public Server(int clientNumber) {\r\n this.clientNumber = clientNumber;\r\n hashtable = new Hashtable<String,String>();\r\n }", "public LogInfluxClient build() {\n LogInfluxClient logStatsdClient = new LogInfluxClient();\n logStatsdClient.setSendSink(sendSink);\n logStatsdClient.setCommonTags(commonTags);\n return logStatsdClient;\n }", "public GraficaEstatus() {\n initComponents();\n }", "public static void clientListUpdater() {\r\n\t\tclientList.clear();\r\n\t\tclientList.addAll(serverConnector.getAllClients());\r\n\t}", "public frmClient() {\n initComponents();\n clientside=new Client(this);\n \n }", "public ServerHeartBeatSenderRunnable(Map<ServerInfo, Date> serverStatus, int port){\n this.serverStatus = serverStatus;\n this.sequence = 0;//initiall sequence is 0\n this.serverPort = port;\n }", "private void fillClientsCbAndDispatcherCb() {\n List<Cliente> findClienteEntities = getUtils().getClienteController().findClienteEntities();\n ObservableList clientsList = FXCollections.observableArrayList();\n ObservableList dispatcherLst = FXCollections.observableArrayList();\n for (Cliente c : findClienteEntities) {\n if (c.getDespachante().equals(\"D\")) {\n dispatcherLst.add(c.getNombre());\n } else {\n clientsList.add(c.getNombre());\n }\n }\n getClientCb().setItems(clientsList);\n getDispatcherCb().setItems(dispatcherLst);\n }", "public CashFlowImportStatus() {\n\t\t// empty constructor\n\t}", "public OwnerList()\n {\n ownerList = new ArrayList<>();\n }", "public Server(){\n this.tasks = new LinkedBlockingQueue<Task>();\n this.waitingPeriod = new AtomicInteger();\n }", "public ClientView() {\n initComponents();\n }", "public JsonResponse(int status) {\n super();\n this.status = status;\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate LoginStatusBuilder(){}", "public Cliente() {\n\t\tsuper();\n\t}", "public void showList(List<String> userList,Map<String, MessageFrame> frameList) {\n\t\t\n\t\tuList=userList;\n\t\tfList=frameList;\n\t\tif(list==null) { // if it's the first time that the list is created, all the JComponents are created\n\t\t\tlist= new JList(uList.toArray());\n\t\t\tchatButton=new JButton(\"Chat\");\n\t\t\tbottomPanel=new JPanel();\n\t\t\tchatButton.addActionListener(chatActionListener);\n\t\t\tlist.setSize(300, 500);\n\t\t\tbottomPanel.setLayout(new BorderLayout());\n\t\t\tbottomPanel.add(list,BorderLayout.CENTER);\n\t\t\tbottomPanel.add(chatButton,BorderLayout.EAST);\n\t\t\tcontentPane.add(bottomPanel, BorderLayout.CENTER);\n\t\t\tbottomPanel.revalidate();\n\t\t}else\n\t\t{\n\t\t\tlist.setListData(uList.toArray()); // updates the list with the current clients connected to the servers\n\t\t\tbottomPanel.revalidate();\n\t\t}\n\t}", "public ResponseBase(Status status) {\n this.status = status;\n }", "public Client() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public QuestionsListRowClient() {\r\n }", "public AbaloneClient() {\n server = new AbaloneServer();\n clientTUI = new AbaloneClientTUI();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 650, 410);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\t/*JButton btnStatusView = new JButton(\"Status view\");\n\t\tbtnStatusView.setBounds(520, 335, 100, 25);\n\t\tbtnStatusView.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString action = e.getActionCommand();\n\t\t\t\tif (action.equals(\"Status view\")) {\n\t\t\t\t\t// point(3,5,5,4);\n\t\t\t\t\t// point(1,3,6,1);\n\t\t\t\t\t// point(2,155,142,3);\n\t\t\t\t\t// point(4,15,50,2);\n\t\t\t\t}\n\t\t\t} \n\t\t});\n\t\tframe.getContentPane().add(btnStatusView);*/\n\n\t\tframe.getContentPane().add(new TPanel(10, 10, 300, 150));\n\t\tframe.getContentPane().add(new TPanel(10, 171, 300, 150));\n\t\tframe.getContentPane().add(new TPanel(320, 171, 300, 150));\n\t\tframe.getContentPane().add(new TPanel(320, 10, 300, 150));\n\t\t\n\t\ttry \n\t\t{\n\t\t\tobserver = new ServerSocket(port);\n\t\t} catch (IOException e2) \n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\t\n\t\t//for (int i=0; i < numSubjects;i++)\n\t\t\tnew Thread()\n\t\t\t{\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\t//String ipCliente;\n\t\t\t\t\t//int porta;\n\t\t\t\t\tSocket cliente = null;\n\t\t\t\t\tArrayList<Data> dataReceived;\n\t\t\t\t\tlong initialTime = System.currentTimeMillis();\n\t\t\t\t\twhile(!observer.isClosed())\n\t\t\t\t\t{\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"esperando atualizacao do Subject: \");\n\t\t\t\t\t\t\tcliente = observer.accept();\n\t\t\t\t\t\t\tSystem.out.println(\"Observer conectado: \"+cliente.getInetAddress().getHostAddress());\n\t\t\t\t\t\t\tObjectInputStream input = new ObjectInputStream(cliente.getInputStream());\n\t\t\t\t\t\t\ttry \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdataReceived= (ArrayList<Data>) input.readObject();\n\t\t\t\t\t\t\t\tSystem.out.println(\"Tempo decorrido desde a ultima \"\n\t\t\t\t\t\t\t\t\t\t+ \"atualizacao \" + (System.currentTimeMillis()-initialTime));\n\t\t\t\t\t\t\t\tinitialTime = System.currentTimeMillis();\n\t\t\t\t\t\t\t\tinput.close();\n\t\t\t\t\t\t\t\tcliente.close();\n\t\t\t\t\t\t\t\tfor(Data it:dataReceived) {\n\t\t\t\t\t\t\t\t\tCliente.this.point(it.getFramePos(), it.getPosX(), it.getPosY(),\n\t\t\t\t\t\t\t\t\t\t\tit.getColor(), it.getSize());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e1) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tcliente.close();\n\t\t\t\t\t\t\t\tthis.run();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}.start();\t\n\n\t}", "private void initialize() {\n\t\tServerWindow = new JFrame();\n\t\tServerWindow.getContentPane().setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\t\tServerWindow.getContentPane().setLayout(null);\n\t\tServerWindow.setBounds(100, 100, 798, 439);\n\t\tServerWindow.getContentPane().setLayout(null);\n\t\tServerWindow.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tJLabel IncomingClient = new JLabel(\"IncomingClient\");\n\t\tIncomingClient.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tIncomingClient.setBounds(51, 75, 184, 40);\n\t\tServerWindow.getContentPane().add(IncomingClient);\n\n\t\tClientName = new JLabel(\"ClientName\");\n\t\tClientName.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tClientName.setBounds(51, 140, 125, 35);\n\t\tServerWindow.getContentPane().add(ClientName);\n\n\t\tCurrentClients = new JList();\n\t\tCurrentClients.setEnabled(false);\n\t\tCurrentClients.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tCurrentClients.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tCurrentClients.setBounds(447, 151, 279, 205);\n\t\tServerWindow.getContentPane().add(CurrentClients);\n\t\t\n\t\tJLabel AllUsers = new JLabel(\"All Users\");\n\t\tAllUsers.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tAllUsers.setBounds(186, 73, 233, 49);\n\t\tServerWindow.getContentPane().add(AllUsers);\n\t\t\n\t\tAllUserLists = new JList();\n\t\tAllUserLists.setBounds(186, 140, 233, 215);\n\t\tServerWindow.getContentPane().add(AllUserLists);\n\t\t\n\t\tCurrentClientsLabel = new JLabel(\"Current Clients\");\n\t\tCurrentClientsLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tCurrentClientsLabel.setBounds(447, 73, 279, 49);\n\t\tServerWindow.getContentPane().add(CurrentClientsLabel);\n\t\t\n\t\tJButton ExitButton = new JButton(\"Exit\");\n\t\tExitButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcloseServer();\n\t\t\t\tterminateWindow();\n\t\t\t}\n\t\t});\n\t\tExitButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tExitButton.setBounds(614, 33, 89, 23);\n\t\tServerWindow.getContentPane().add(ExitButton);\n\t\t\n\t\t/*On click of window close button, shut down the server*/\n\t\tServerWindow.addWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\n\t}", "public OpenNotifyDataViewAdapter(List<Response> responseList) {\n\n this.responseList=responseList;\n }", "public EchoClientHandler() {\n firstMessage = Unpooled.buffer(EchoClient.SIZE);\n for (int i = 0; i < firstMessage.capacity(); i ++) {\n firstMessage.writeByte((byte) i);\n }\n }", "public NomadsAppThread(TabbedBindle _client) {\n\t\t\tclient = _client;\n\t\t\tsand = new NSand();\n\t\t\tsand.connect();\n\t\t}", "private NotificationClient() { }", "public PlayerServices(){\n playerList = new ArrayList<>();\n }", "public static void main(String[] args) throws Exception {\n JFrame frame = new JFrame (\"Chatting Server\");\r\n frame.setLayout(null);\r\n frame.setBounds(100, 100, 300, 300);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\r\n JLabel connectionStatusLabel = new JLabel(\"No Clients Connected\");\r\n connectionStatusLabel.setBounds(80, 30, 200, 30);\r\n connectionStatusLabel.setForeground(Color.red);\r\n frame.getContentPane().add(connectionStatusLabel);\r\n\r\n // create the welcoming server's socket\r\n ServerSocket welcomeSocket = new ServerSocket(6789);\r\n\r\n // thread to always listen for new connections from clients\r\n new Thread (new Runnable(){ @Override\r\n public void run() {\r\n\r\n Socket connectionSocket;\r\n DataOutputStream outToClient;\r\n\r\n while (!welcomeSocket.isClosed()) {\r\n\r\n try {\r\n // when a new client connect, accept this connection and assign it to a new connection socket\r\n connectionSocket = welcomeSocket.accept();\r\n\r\n // create a new output stream and send the message \"You are connected\" to the client\r\n outToClient = new DataOutputStream(connectionSocket.getOutputStream());\r\n outToClient.writeBytes(\"-Connected\\n\");\r\n\r\n clientCount++;\r\n\r\n // add the new client to the client's array\r\n Clients.add(new ClientThread(clientCount, connectionSocket, Clients));\r\n // start the new client's thread\r\n Clients.get(Clients.size() - 1).start();\r\n\r\n }\r\n catch (Exception ex) {\r\n\r\n }\r\n\r\n }\r\n\r\n }}).start();\r\n\r\n\r\n\r\n // thread to always get the count of connected clients and update the label\r\n new Thread (new Runnable(){ @Override\r\n public void run() {\r\n\r\n try {\r\n\r\n while (true) {\r\n\r\n if (Clients.size() > 0)\r\n {\r\n if (Clients.size() == 1)\r\n connectionStatusLabel.setText(\"1 Client Connected\");\r\n else\r\n connectionStatusLabel.setText(Clients.size() + \" Clients Connected\");\r\n\r\n connectionStatusLabel.setForeground(Color.blue);\r\n }\r\n else { //if there are no clients connected, print \"No Clients Connected\"\r\n\r\n connectionStatusLabel.setText(\"No Clients Connected\");\r\n connectionStatusLabel.setForeground(Color.red);\r\n\r\n }\r\n\r\n\r\n Thread.sleep(1000);\r\n\r\n }\r\n\r\n } catch (Exception ex) {\r\n\r\n }\r\n\r\n }}).start();\r\n\r\n\r\n\r\n frame.setVisible(true);\r\n\r\n }", "private void addClient () {\n ArrayList<String> info = loadOnePlayerInfo();\n Ntotal++;\n Nnow++;\n\n System.out.println(\"Vai ser inicializado o utilizador \" + info.get(0));\n initThread(info.get(0), info.get(1));\n }", "public Listener() {\r\n count = 0;\r\n error = false;\r\n maxCount = Integer.MAX_VALUE - 1;\r\n tweets = new LinkedList<Status>();\r\n }" ]
[ "0.67208713", "0.65741795", "0.61530423", "0.61073864", "0.59614074", "0.5932172", "0.59250015", "0.5892878", "0.5873097", "0.58031267", "0.57971185", "0.57799613", "0.5704447", "0.5699131", "0.56684583", "0.5655999", "0.5649713", "0.5620327", "0.5620327", "0.5598471", "0.5587865", "0.55389434", "0.5532775", "0.5519001", "0.5472248", "0.546703", "0.5459605", "0.544743", "0.5434622", "0.5431428", "0.54208076", "0.5417563", "0.5367212", "0.5357047", "0.5350644", "0.5345199", "0.5337771", "0.53362817", "0.5334072", "0.53204113", "0.5317103", "0.531658", "0.53122866", "0.53099024", "0.52958804", "0.52958804", "0.5290868", "0.527632", "0.5275069", "0.52722543", "0.5257559", "0.5256181", "0.524851", "0.5243077", "0.52261525", "0.52243185", "0.52232116", "0.5222976", "0.522077", "0.5219305", "0.5217561", "0.52063274", "0.5203943", "0.5198733", "0.5197733", "0.5191196", "0.5190099", "0.518828", "0.5176467", "0.51756334", "0.51746905", "0.5163806", "0.5161995", "0.5149746", "0.51492155", "0.51408356", "0.5134094", "0.5131551", "0.51202697", "0.511653", "0.5115615", "0.51068074", "0.510346", "0.5096401", "0.50963515", "0.50958276", "0.50906104", "0.50828576", "0.507582", "0.5072694", "0.5070058", "0.5069472", "0.5064116", "0.5061086", "0.5059663", "0.50593317", "0.50584805", "0.5055501", "0.5054", "0.50501615" ]
0.70755523
0
Private method used to create a JLabel for every client.
private void createLabels(){ int pos = 10; for(Client client : clients){ JLabel clientLabel = new JLabel(client.toString()); selectColor(clientLabel, client); clientLabel.setBounds(10, pos, 200,20); pos += 25; labels.put(client.getID(), clientLabel); panel.add(clientLabel); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void constructClientsPanel(int numClients) {\n cnames = new Vector();\n cstatus = new Vector();\n ctrans = new Vector();\n \n int numRows = numClients;\n if (numRows < 7)\n numRows = 7;\n \n JPanel listPanel = new JPanel();\n listPanel.setLayout(new GridLayout(numRows + 1, 3));\n \n clientScroller = new JScrollPane(listPanel);\n clientScroller.setPreferredSize(relativeSize(0.4f, 0.35f));\n clientScroller.setBorder(BorderFactory.createTitledBorder(\"Client Monitor\"));\n \n JPanel nameTitlePanel = new JPanel();\n JLabel nameTitleLabel = new JLabel();\n nameTitleLabel.setText(\"Client\");\n nameTitleLabel.setFont(new Font(\"Arial Black\", 0, 16));\n nameTitleLabel.setForeground(Color.black);\n nameTitlePanel.add(nameTitleLabel);\n \n listPanel.add(nameTitlePanel);\n \n JPanel statusTitlePanel = new JPanel();\n JLabel statusTitleLabel = new JLabel();\n statusTitleLabel.setText(\"Status\");\n statusTitleLabel.setFont(new Font(\"Arial Black\", 0, 16));\n statusTitleLabel.setForeground(Color.black);\n statusTitlePanel.add(statusTitleLabel);\n \n listPanel.add(statusTitlePanel);\n \n JPanel numTransPanel = new JPanel();\n JLabel numTransLabel = new JLabel();\n numTransLabel.setText(\"Num Offers\");\n numTransLabel.setFont(new Font(\"Arial Black\", 0, 16));\n numTransLabel.setForeground(Color.black);\n numTransPanel.add(numTransLabel);\n \n listPanel.add(numTransPanel);\n \n for (int i=0; i<numRows; i++) {\n JPanel namePanel = new JPanel();\n JLabel nameLabel = new JLabel(\"<html><font color=#003366>Client \" + i + \"</font></html>\");\n nameLabel.setFont(new Font(\"Verdana\", Font.BOLD, 16));\n if (i < numClients) {\n namePanel.add(nameLabel);\n cnames.add(nameLabel);\n }\n \n else\n namePanel.add(new JLabel());\n \n listPanel.add(namePanel);\n \n JPanel statusPanel = new JPanel();\n JLabel statusLabel = new JLabel(\"Disconnected\");\n statusLabel.setFont(new Font(\"Verdana\", Font.BOLD, 16));\n statusLabel.setForeground(new Color(90, 25, 25));\n if (i < numClients) {\n statusPanel.add(statusLabel);\n cstatus.add(statusLabel);\n }\n \n else\n statusPanel.add(new JLabel());\n \n listPanel.add(statusPanel);\n \n JPanel transPanel = new JPanel();\n JLabel transLabel = new JLabel(\"N/A\");\n transLabel.setFont(new Font(\"Verdana\", Font.BOLD, 16));\n transLabel.setForeground(Color.black);\n if (i < numClients) {\n transPanel.add(transLabel);\n ctrans.add(transLabel);\n } else\n transPanel.add(new JLabel());\n \n listPanel.add(transPanel);\n }\n \n if (topPanel.getComponentCount() != 0)\n topPanel.remove(0);\n \n topPanel.add(clientScroller, 0);\n topPanel.setPreferredSize(relativeSize(0.85f, 0.42f));\n \n pack();\n centerOnScreen();\n }", "@Override\r\n\tpublic JLabel createLabel() {\r\n\t\treturn new JLabel();\r\n\t}", "public abstract JLabel createUserWidget(String userName, String host, String chatMessage);", "private void makeLabels() {\n infoPanel = new JPanel();\n\n infoText = new JTextArea(30,25);\n\n infoPanel.add(infoText);\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 void generateLabelPanel() {\n speedLabel = new JLabel(\"\");\n loopbackLabel = new JLabel(\"\");\n playingLabel = new JLabel(\"\");\n\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new FlowLayout());\n labelPanel.add(playingLabel);\n labelPanel.add(Box.createHorizontalStrut(50));\n labelPanel.add(speedLabel);\n labelPanel.add(Box.createHorizontalStrut(50));\n labelPanel.add(loopbackLabel);\n mainPanel.add(labelPanel);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblServiceName = new javax.swing.JLabel();\n lblServColor = new javax.swing.JLabel();\n\n lblServiceName.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblServiceName.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n\n lblServColor.setOpaque(true);\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblServColor, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lblServiceName, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblServiceName, javax.swing.GroupLayout.DEFAULT_SIZE, 19, Short.MAX_VALUE)\n .addComponent(lblServColor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n }", "private JPanel createLabelsPanel(Set<String> entity_tag_types) {\n JPanel panel = new JPanel(new BorderLayout());\n JPanel labels_panel = new JPanel(new GridLayout(1,3,4,4));\n labels_panel.add(new JLabel(\"Labels\"));\n labels_panel.add(node_labels_cb = new JCheckBox(\"Node\", false)); defaultListener(node_labels_cb);\n labels_panel.add(link_labels_cb = new JCheckBox(\"Link\", false)); defaultListener(link_labels_cb);\n panel.add(\"North\", labels_panel);\n JPanel center = new JPanel(new GridLayout(3,1)); JScrollPane scroll;\n // Node Labels\n center.add(scroll = new JScrollPane(entity_label_list = new JList())); defaultListener(entity_label_list);\n scroll.setBorder(BorderFactory.createTitledBorder(\"Node Label\"));\n // Node Color\n center.add(scroll = new JScrollPane(entity_color_list = new JList())); defaultListener(entity_color_list);\n scroll.setBorder(BorderFactory.createTitledBorder(\"Node Color\"));\n entity_color_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n // Link Labels\n center.add(scroll = new JScrollPane(bundle_label_list = new JList())); defaultListener(bundle_label_list);\n scroll.setBorder(BorderFactory.createTitledBorder(\"Link Label\"));\n panel.add(\"Center\", center);\n updateLabelLists(entity_tag_types);\n return panel;\n }", "public void createLabels()\n {\n title = new JLabel(\"Game Over\");\n title.setForeground(Color.RED);\n title.setFont(new Font(title.getFont().getName(), Font.PLAIN, 42));\n title.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n roundLabel = new JLabel(\"CPU was infected on round \"+roundLost);\n roundLabel.setForeground(Color.RED);\n roundLabel.setFont(new Font(title.getFont().getName(), Font.PLAIN, 18));\n roundLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n }", "private void crearLabels(){\n\t\tJLabel label = new JLabel(\" USER \");\n\t\tuser = new JTextField(15);\n\t\tthis.getContentPane().add(label);\n\t\tthis.getContentPane().add(user);\n\t\tJLabel label1 = new JLabel(\"PASSWORD\");\n\t\tpassword = new JPasswordField(15);\n\t\tthis.getContentPane().add(label1);\n\t\tthis.getContentPane().add(password);\n\t}", "public void initUI() {\n\t\t\n\t\tsetPreferredSize(new Dimension((int)((2*Board.NUMBER_OF_FREE_COLUMNS)+1)*Board.TILE_SIZE + 2*Board.GAP_WIDTH, (int)((2*Board.NUMBER_OF_FREE_ROWS)+1)*Board.TILE_SIZE));\n\t\tsetLayout(new GridLayout(10,1));\n\t\taddKeyListener(this);\n\t\tsetBackground(Color.WHITE);\n\t\tJLabel label1 = new JLabel();\n\t\t\n\t\tlabel1.setFont(new Font(\"Verdana\", Font.BOLD, 55));\n\t\t\n\t\tlabel1.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\n\t\tlabel1.setText(\"Player \"+winner+\" has won!\");\n\t \n\t add(label1);\n\t}", "private void initialize() {\r\n\t\tjLabel_userID = new JLabel();\r\n\t\tjLabel_userID.setText(\"ID (user)\");\r\n\t\tjLabel_userID.setSize(new Dimension(160, 40));\r\n\t\tjLabel_userID.setFont(new Font(\"Eras Light ITC\", Font.BOLD, 18));\r\n\t\tjLabel_userID.setLocation(new Point(30, 230));\r\n\t\tjLabel_lastname = new JLabel();\r\n\t\tjLabel_lastname.setText(\"Last Name\");\r\n\t\tjLabel_lastname.setSize(new Dimension(160, 40));\r\n\t\tjLabel_lastname.setFont(new Font(\"Eras Light ITC\", Font.BOLD, 18));\r\n\t\tjLabel_lastname.setLocation(new Point(30, 330));\r\n\t\tjLabel_firstname = new JLabel();\r\n\t\tjLabel_firstname.setText(\"First Name\");\r\n\t\tjLabel_firstname.setSize(new Dimension(160, 40));\r\n\t\tjLabel_firstname.setFont(new Font(\"Eras Light ITC\", Font.BOLD, 18));\r\n\t\tjLabel_firstname.setLocation(new Point(30, 280));\r\n\t\tjLabel_username = new JLabel();\r\n\t\tjLabel_username.setText(\"User Name\");\r\n\t\tjLabel_username.setSize(new Dimension(160, 40));\r\n\t\tjLabel_username.setFont(new Font(\"Eras Light ITC\", Font.BOLD, 18));\r\n\t\tjLabel_username.setLocation(new Point(30, 180));\r\n\t\tjLabel_SUMainLabel = new JLabel();\r\n\t\tjLabel_SUMainLabel.setBounds(new Rectangle(1, 30, 698, 74));\r\n\t\tjLabel_SUMainLabel.setText(\"Search User\");\r\n\t\tjLabel_SUMainLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tjLabel_SUMainLabel.setFont(new Font(\"Freestyle Script\", Font.BOLD, 48));\r\n\t\tjLabel_SUMainLabel.setLocation(new Point(0, 15));\r\n\t\tjLabel_SUMainLabel.setSize(new Dimension(700, 75));\r\n\t\tjLabel_SUMainLabel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));\r\n\t\tthis.setSize(700, 550);\r\n\t\tthis.setLayout(null);\r\n\t\tthis.add(jLabel_SUMainLabel, null);\r\n\t\tthis.add(jLabel_username, null);\r\n\t\tthis.add(jLabel_firstname, null);\r\n\t\tthis.add(jLabel_lastname, null);\r\n\t\tthis.add(jLabel_userID, null);\r\n\t\tthis.add(getJTextField_UserName(), null);\r\n\t\tthis.add(getJTextField_UserID(), null);\r\n\t\tthis.add(getJTextField_FirstName(), null);\r\n\t\tthis.add(getJTextField_LastName(), null);\r\n\t\tthis.add(getJButton_back(), null);\r\n\t\tthis.add(getJButton_SearchUser(), null);\r\n\t}", "private void genClientGui(){\n\n // client Frame\n clientFrame = new JFrame();\n\n colorLabel = new JLabel(\"Color:\");\n msgLabel = new JLabel();\n scoreLabel = new JLabel(\"Score: \" );\n boardComponent = new BoardComponent(this);\n\n btnNewGame = new JButton(\"New Game\");\n btnQuit = new JButton(\"Quit\");\n btnResign = new JButton(\"Resign\");\n\n // top panel, contains the color, score and message labels\n JPanel topPanel = new JPanel();\n topPanel.setLayout(new GridLayout(3, 1));\n topPanel.add(colorLabel);\n topPanel.add(scoreLabel);\n topPanel.add(msgLabel);\n\n // bottom panel, contains buttons\n JPanel bottomPanel = new JPanel();\n bottomPanel.add(btnNewGame);\n bottomPanel.add(btnResign);\n bottomPanel.add(btnQuit);\n\n\n\n // cneter panel, contains the game board\n centerPanel = new JPanel();\n centerPanel.add(boardComponent);\n centerPanel.setVisible(true);\n\n generateRightPanel();\n\n initiateClient();\n\n // add everything to the frame\n clientFrame.setSize(700, 500);\n clientFrame.setLocation(0, 200);\n clientFrame.setLayout(new BorderLayout());\n clientFrame.add(topPanel, BorderLayout.NORTH);\n clientFrame.add(centerPanel, BorderLayout.CENTER);\n clientFrame.add(bottomPanel, BorderLayout.SOUTH);\n clientFrame.add(rightPanel, BorderLayout.EAST);\n clientFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n clientFrame.setVisible(false);\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n gruposIcon = new javax.swing.JLabel();\n gruposLbl = new javax.swing.JLabel();\n clientesIcon = new javax.swing.JLabel();\n clientesLbl = new javax.swing.JLabel();\n usuariosIcon = new javax.swing.JLabel();\n usuariosLbl = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(51, 51, 51));\n\n gruposIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ortega/miriam/imagenes/grupos.jpg\"))); // NOI18N\n gruposIcon.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n gruposIconMouseExited(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n gruposIconMouseEntered(evt);\n }\n });\n\n gruposLbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 18)); // NOI18N\n gruposLbl.setForeground(new java.awt.Color(255, 255, 255));\n gruposLbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n gruposLbl.setText(\"GRUPOS\");\n gruposLbl.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n gruposLblMouseExited(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n gruposLblMouseEntered(evt);\n }\n });\n\n clientesIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ortega/miriam/imagenes/clientes.png\"))); // NOI18N\n\n clientesLbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 18)); // NOI18N\n clientesLbl.setForeground(new java.awt.Color(255, 255, 255));\n clientesLbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n clientesLbl.setText(\"CLIENTES\");\n\n usuariosIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ortega/miriam/imagenes/usuarios.jpg\"))); // NOI18N\n\n usuariosLbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 18)); // NOI18N\n usuariosLbl.setForeground(new java.awt.Color(255, 255, 255));\n usuariosLbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n usuariosLbl.setText(\"USUARIOS\");\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(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(gruposLbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(gruposIcon, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(clientesIcon, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)\n .addComponent(clientesLbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(35, 35, 35)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(usuariosIcon, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(usuariosLbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(259, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(usuariosIcon, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(clientesIcon, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(gruposIcon, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(gruposLbl, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(clientesLbl, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(usuariosLbl, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(299, Short.MAX_VALUE))\n );\n }", "private void addLabelsInventory() {\r\n \tjcomp1 = new JLabel (\"Inventory Management\");\r\n \tjcomp2 = new JLabel (\"Search Tools By:\");\r\n \tjcomp3 = new JLabel (\"Tool Id\");\r\n jcomp4 = new JLabel (\"Name\");\r\n jcomp5 = new JLabel (\"Tool Type\");\r\n jcomp6 = new JLabel (\"Stock\");\r\n jcomp7 = new JLabel (\"Price\");\r\n jcomp8 = new JLabel (\"Supplier Id\");\r\n jcomp9 = new JLabel (\"Tool Information\");\r\n jcomp10 = new JLabel (\"Power Type\");\r\n \r\n add(jcomp1);\r\n add(jcomp2);\r\n add(jcomp3);\r\n add(jcomp4);\r\n add(jcomp5);\r\n add(jcomp6);\r\n add(jcomp7);\r\n add(jcomp8);\r\n add(jcomp9);\r\n add(jcomp10);\r\n \r\n jcomp1.setBounds (375, 50, 155, 45);\r\n jcomp2.setBounds (100, 130, 100, 25);\r\n jcomp3.setBounds (610, 290, 80, 25);\r\n jcomp4.setBounds (610, 330, 80, 25);\r\n jcomp5.setBounds (610, 370, 80, 25);\r\n jcomp6.setBounds (610, 410, 80, 25);\r\n jcomp7.setBounds (610, 450, 80, 25);\r\n jcomp8.setBounds (610, 490, 80, 25);\r\n jcomp9.setBounds (640, 250, 100, 25);\r\n jcomp10.setBounds (610, 530, 80, 25);\r\n }", "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 JPanelCreateClient() {\r\n\t\tsuper(new BorderLayout());\r\n\t\tthis.title = new CustomLabel(ConstantView.TITLE_CREATE_CLIENT, null, Color.decode(\"#2E5569\"));\r\n\t\tthis.okButton = new JButton(\"REGISTRAR CLIENTE\");\r\n\t\tthis.returnButton = new JButton(ConstantView.BUTTON_RETURN_SIGNIN);\r\n\t\tthis.jPanelFormClient = new JPanelFormClient();\r\n\t\tControlClient.getInstance().setjPanelCreateClient(this);\r\n\t\tthis.init();\r\n\t}", "private void initComponents_label(){\n label_today_date.setText(\"Today Date : \" + Main.DATE_FORMAT.format(Main.getToday_date()));\n this.neon.setIcon(new ImageIcon(Interface_Payment.getScaledImage(new ImageIcon(\"resource/neon.png\").getImage(), 524, 160)));\n this.menu_lable_1.setIcon(new ImageIcon(new ImageIcon(\"resource/menu_button/pos_main_menu.png\").getImage().getScaledInstance(485, 60, Image.SCALE_DEFAULT)));\n this.menu_lable_2.setIcon(new ImageIcon(new ImageIcon(\"resource/menu_button/customer_manager.png\").getImage().getScaledInstance(485, 60, Image.SCALE_DEFAULT)));\n this.menu_lable_3.setIcon(new ImageIcon(new ImageIcon(\"resource/menu_button/order_manager.png\").getImage().getScaledInstance(485, 60, Image.SCALE_DEFAULT)));\n this.menu_lable_4.setIcon(new ImageIcon(new ImageIcon(\"resource/menu_button/exit.png\").getImage().getScaledInstance(485, 60, Image.SCALE_DEFAULT)));\n this.menu_lable_1.setCursor(new Cursor(Cursor.HAND_CURSOR));\n this.menu_lable_2.setCursor(new Cursor(Cursor.HAND_CURSOR));\n this.menu_lable_3.setCursor(new Cursor(Cursor.HAND_CURSOR));\n this.menu_lable_4.setCursor(new Cursor(Cursor.HAND_CURSOR)); \n }", "private JLabel _createNewLabel(String sCaption_) \n{\n Util.panicIf( sCaption_ == null );\n\n JLabel lblNew = new JLabel(sCaption_);\n lblNew.setFont( _pFont );\n \n return lblNew;\n }", "public Client() {\n initComponents();\n setIcon();\n }", "private javax.swing.JLabel getJLabel() {\n\t\tif(jLabel == null) {\n\t\t\tjLabel = new javax.swing.JLabel();\n\t\t\tjLabel.setText(\"Nombre Invitado:\");\n\t\t\tjLabel.setPreferredSize(new java.awt.Dimension(96,16));\n\t\t}\n\t\treturn jLabel;\n\t}", "public RugbyLiveScoreKeepingInfo(Client client) {\r\n CLIENT = client;\r\n initComponents();\r\n \r\n setLocationRelativeTo(null);\r\n AccountNameLbl.setText(CLIENT.getName());\r\n \r\n setLayout(new BorderLayout());\r\n add(backgroundLbl);\r\n backgroundLbl.setIcon(new ImageIcon(new ImageIcon(AdminHome.class.getResource(\"/resources/RugbyBackground.png\")).getImage().getScaledInstance(1366, 768, java.awt.Image.SCALE_SMOOTH)));\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n titleLabel = new javax.swing.JLabel();\n roundedPanel1 = new CAAYcyclic.SystemAdiminClient.view.panel.component.RoundedPanel();\n jLabel1 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(242, 241, 241));\n\n titleLabel.setFont(new java.awt.Font(\"Lucida Grande\", 1, 36)); // NOI18N\n titleLabel.setForeground(ApplicationColor.primaryColor.value);\n titleLabel.setText(\"DashBoard\");\n titleLabel.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n titleLabel.setMaximumSize(new java.awt.Dimension(300, 46));\n\n roundedPanel1.setBackground(new java.awt.Color(255, 255, 255));\n roundedPanel1.setForeground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setText(\"jLabel1\");\n\n javax.swing.GroupLayout roundedPanel1Layout = new javax.swing.GroupLayout(roundedPanel1);\n roundedPanel1.setLayout(roundedPanel1Layout);\n roundedPanel1Layout.setHorizontalGroup(\n roundedPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(roundedPanel1Layout.createSequentialGroup()\n .addGap(134, 134, 134)\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n roundedPanel1Layout.setVerticalGroup(\n roundedPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(roundedPanel1Layout.createSequentialGroup()\n .addGap(102, 102, 102)\n .addComponent(jLabel1)\n .addContainerGap(379, Short.MAX_VALUE))\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()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(roundedPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(titleLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 474, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 314, 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 .addGap(20, 20, 20)\n .addComponent(titleLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(41, 41, 41)\n .addComponent(roundedPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "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 javax.swing.JLabel getJLabel14() {\n\t\tif(jLabel14 == null) {\n\t\t\tjLabel14 = new javax.swing.JLabel();\n\t\t\tjLabel14.setText(\"Vendidos:\");\n\t\t\tjLabel14.setPreferredSize(new java.awt.Dimension(70,20));\n\t\t\tjLabel14.setVerticalAlignment(javax.swing.SwingConstants.CENTER);\n\t\t\tjLabel14.setFocusable(false);\n\t\t}\n\t\treturn jLabel14;\n\t}", "private void initializeLabels() {\n labelVertexA = new Label(\"Vertex A\");\n labelVertexB = new Label(\"Vertex B\");\n labelVertexA.setTextFill(Color.web(\"#ffffff\"));\n labelVertexB.setTextFill(Color.web(\"#ffffff\"));\n }", "@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 javax.swing.JLabel getJLabel15() {\n\t\tif(jLabel15 == null) {\n\t\t\tjLabel15 = new javax.swing.JLabel();\n\t\t\tjLabel15.setText(\"Monto Vendidos:\");\n\t\t\tjLabel15.setPreferredSize(new java.awt.Dimension(105,20));\n\t\t\tjLabel15.setVerticalAlignment(javax.swing.SwingConstants.CENTER);\n\t\t\t//jLabel15.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1));\n\t\t\tjLabel15.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12));\n\t\t\tjLabel15.setFocusable(false);\n\t\t}\n\t\treturn jLabel15;\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 javax.swing.JLabel getJLabel16() {\n\t\tif(jLabel16 == null) {\n\t\t\tjLabel16 = new javax.swing.JLabel();\n\t\t\tjLabel16.setText(\"A. Totales:\");\n\t\t\tjLabel16.setPreferredSize(new java.awt.Dimension(80,20));\n\t\t\tjLabel16.setVerticalAlignment(javax.swing.SwingConstants.CENTER);\n\t\t\t//jLabel12.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1));\n\t\t\tjLabel16.setFocusable(false);\n\t\t}\n\t\treturn jLabel16;\n\t}", "private javax.swing.JLabel getJLabel1() {\n\t\tif(jLabel1 == null) {\n\t\t\tjLabel1 = new javax.swing.JLabel();\n\t\t\tjLabel1.setText(\"Datos del Invitado\");\n\t\t\tjLabel1.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 18));\n\t\t\tjLabel1.setForeground(java.awt.Color.white);\n\t\t\tjLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix48x48/id_card.png\")));\n\t\t}\n\t\treturn jLabel1;\n\t}", "@Override\n protected void addButtons()\n {\n JLabel agentOptions = new JLabel(\"Client Options \", SwingConstants.CENTER);\n addComponentToGridBag(this, agentOptions, 0, 0, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n\n JButton agentSendMessage = new JButton(\"Send Message\");\n addComponentToGridBag(this, agentSendMessage, 0, 2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentSendMessage.addActionListener((ActionEvent e) ->\n {\n String to = getTo();\n String content = getContent(to);\n sendMessage(to, content);\n });\n\n JButton agentShowPortal = new JButton(\"Show Portal\");\n addComponentToGridBag(this, agentShowPortal, 0, 3, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentShowPortal.addActionListener((ActionEvent e) ->\n {\n displayConnections();\n });\n\n JButton agentexit = new JButton(\"Exit\");\n addComponentToGridBag(this, agentexit, 0, 5, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentexit.addActionListener((ActionEvent e) ->\n {\n System.exit(0);\n });\n }", "private void crearJLabels() {\n lTitulo = sObjGraficos.construirJLabel(\"Eliminar\", 255, 5, 500, 30,\n null,null, sRecursos.getFontTPrincipal(),sRecursos.getColorPrincipalOscuro(), sRecursos.getColorPrincipal(), null, \"c\");\n panel.add(lTitulo);\n //Titulo de libro ID\n lInfo = sObjGraficos.construirJLabel(\"Seleccione una fila de la tabla, luego oprima el boton retirar\", 0, 445, 350, 20,\n null,null, sRecursos.getFontLigera(),sRecursos.getColorPrincipalOscuro(), sRecursos.getColorPrincipal(), null, \"c\");\n panel.add(lInfo);\n }", "public ClientGUI() {\n initComponents();\n PopulateList();\n }", "private javax.swing.JLabel getJLabel12() {\n\t\tif(jLabel12 == null) {\n\t\t\tjLabel12 = new javax.swing.JLabel();\n\t\t\tjLabel12.setText(\"Pedidos:\");\n\t\t\tjLabel12.setPreferredSize(new java.awt.Dimension(70,20));\n\t\t\tjLabel12.setVerticalAlignment(javax.swing.SwingConstants.CENTER);\n\t\t\t//jLabel12.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1));\n\t\t\tjLabel12.setFocusable(false);\n\t\t}\n\t\treturn jLabel12;\n\t}", "private void initComponents() {\n\t\tJLabel label54 = new JLabel();\n\t\tJLabel label68 = new JLabel();\n\t\tJLabel label69 = new JLabel();\n\t\tJLabel label10 = new JLabel();\n\t\tJLabel label11 = new JLabel();\n\t\tJLabel label72 = new JLabel();\n\t\tJLabel label28 = new JLabel();\n\t\tJLabel label29 = new JLabel();\n\t\tJLabel label1 = new JLabel();\n\t\tJLabel label37 = new JLabel();\n\t\tJLabel label46 = new JLabel();\n\t\tFlatTypographyTest.LinkLabel linkLabel9 = new FlatTypographyTest.LinkLabel();\n\t\tFlatTypographyTest.LinkLabel linkLabel1 = new FlatTypographyTest.LinkLabel();\n\t\tFlatTypographyTest.LinkLabel linkLabel2 = new FlatTypographyTest.LinkLabel();\n\t\tFlatTypographyTest.LinkLabel linkLabel3 = new FlatTypographyTest.LinkLabel();\n\t\tJLabel label2 = new JLabel();\n\t\tFlatTypographyTest.LinkLabel linkLabel4 = new FlatTypographyTest.LinkLabel();\n\t\tFlatTypographyTest.LinkLabel linkLabel10 = new FlatTypographyTest.LinkLabel();\n\t\tFlatTypographyTest.LinkLabel linkLabel8 = new FlatTypographyTest.LinkLabel();\n\t\tFlatTypographyTest.LinkLabel linkLabel11 = new FlatTypographyTest.LinkLabel();\n\t\tFlatTypographyTest.LinkLabel linkLabel5 = new FlatTypographyTest.LinkLabel();\n\t\tFlatTypographyTest.LinkLabel linkLabel6 = new FlatTypographyTest.LinkLabel();\n\t\tFlatTypographyTest.LinkLabel linkLabel7 = new FlatTypographyTest.LinkLabel();\n\t\tFlatTypographyTest.FontPreview fontPreview69 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview93 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview40 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview35 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview85 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview70 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview36 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview51 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview1 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview11 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview19 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview27 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview41 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview86 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview71 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview37 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview47 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview54 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview62 = new FlatTypographyTest.FontPreview();\n\t\tJSeparator separator3 = new JSeparator();\n\t\tFlatTypographyTest.FontPreview fontPreview2 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview12 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview20 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview28 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview42 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview87 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview72 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview38 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview48 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview55 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview63 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview3 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview13 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview21 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview29 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview43 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview88 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview73 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview79 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview49 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview57 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview64 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview4 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview14 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview22 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview30 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview89 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview74 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview80 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview50 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview58 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview65 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview5 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview15 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview23 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview31 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview44 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview81 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview56 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview66 = new FlatTypographyTest.FontPreview();\n\t\tJSeparator separator1 = new JSeparator();\n\t\tFlatTypographyTest.FontPreview fontPreview7 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview6 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview16 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview24 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview32 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview45 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview90 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview98 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview75 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview82 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview95 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview52 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview59 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview67 = new FlatTypographyTest.FontPreview();\n\t\tJSeparator separator2 = new JSeparator();\n\t\tFlatTypographyTest.FontPreview fontPreview8 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview17 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview25 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview39 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview91 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview76 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview83 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview96 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview9 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview18 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview26 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview33 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview46 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview92 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview77 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview84 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview97 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview53 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview60 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview68 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview10 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview34 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview78 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview94 = new FlatTypographyTest.FontPreview();\n\t\tFlatTypographyTest.FontPreview fontPreview61 = new FlatTypographyTest.FontPreview();\n\n\t\t//======== this ========\n\t\tsetLayout(new MigLayout(\n\t\t\t\"ltr,insets dialog,hidemode 3\",\n\t\t\t// columns\n\t\t\t\"[left]unrel\" +\n\t\t\t\"[left]unrel\" +\n\t\t\t\"[left]unrel\" +\n\t\t\t\"[left]unrel\" +\n\t\t\t\"[left]unrel\" +\n\t\t\t\"[left]unrel\" +\n\t\t\t\"[left]unrel\" +\n\t\t\t\"[fill]unrel\" +\n\t\t\t\"[left]unrel\" +\n\t\t\t\"[left]unrel\" +\n\t\t\t\"[left]unrel\",\n\t\t\t// rows\n\t\t\t\"[top]\" +\n\t\t\t\"[bottom]\" +\n\t\t\t\"[bottom]\" +\n\t\t\t\"[bottom]\" +\n\t\t\t\"[bottom]\" +\n\t\t\t\"[]\" +\n\t\t\t\"[bottom]\" +\n\t\t\t\"[bottom]\" +\n\t\t\t\"[bottom]\" +\n\t\t\t\"[bottom]\" +\n\t\t\t\"[]\" +\n\t\t\t\"[bottom]\" +\n\t\t\t\"[]\" +\n\t\t\t\"[bottom]\" +\n\t\t\t\"[bottom]\" +\n\t\t\t\"[bottom]\"));\n\n\t\t//---- label54 ----\n\t\tlabel54.setText(\"<html>FlatLaf<br><small>Windows</small></html>\");\n\t\tlabel54.putClientProperty(\"FlatLaf.styleClass\", \"h1\");\n\t\tadd(label54, \"cell 0 0\");\n\n\t\t//---- label68 ----\n\t\tlabel68.setText(\"<html>JetBrains<br><small>Windows</small></html>\");\n\t\tlabel68.putClientProperty(\"FlatLaf.styleClass\", \"h1\");\n\t\tadd(label68, \"cell 1 0\");\n\n\t\t//---- label69 ----\n\t\tlabel69.setText(\"<html>JetBrains<br><small>macOS</small></html>\");\n\t\tlabel69.putClientProperty(\"FlatLaf.styleClass\", \"h1\");\n\t\tadd(label69, \"cell 2 0\");\n\n\t\t//---- label10 ----\n\t\tlabel10.setText(\"macOS\");\n\t\tlabel10.putClientProperty(\"FlatLaf.styleClass\", \"h1\");\n\t\tadd(label10, \"cell 3 0\");\n\n\t\t//---- label11 ----\n\t\tlabel11.setText(\"Windows 10/11\");\n\t\tlabel11.putClientProperty(\"FlatLaf.styleClass\", \"h1\");\n\t\tadd(label11, \"cell 4 0\");\n\n\t\t//---- label72 ----\n\t\tlabel72.setText(\"<html>GitHub<br>Primer</html>\");\n\t\tlabel72.putClientProperty(\"FlatLaf.styleClass\", \"h1\");\n\t\tadd(label72, \"cell 5 0\");\n\n\t\t//---- label28 ----\n\t\tlabel28.setText(\"Material\");\n\t\tlabel28.putClientProperty(\"FlatLaf.styleClass\", \"h1\");\n\t\tadd(label28, \"cell 6 0\");\n\n\t\t//---- label29 ----\n\t\tlabel29.setText(\"Material 3\");\n\t\tlabel29.putClientProperty(\"FlatLaf.styleClass\", \"h1\");\n\t\tadd(label29, \"cell 7 0\");\n\n\t\t//---- label1 ----\n\t\tlabel1.setText(\"SAP Fiori\");\n\t\tlabel1.putClientProperty(\"FlatLaf.styleClass\", \"h1\");\n\t\tadd(label1, \"cell 8 0\");\n\n\t\t//---- label37 ----\n\t\tlabel37.setText(\"Atlassian\");\n\t\tlabel37.putClientProperty(\"FlatLaf.styleClass\", \"h1\");\n\t\tadd(label37, \"cell 9 0\");\n\n\t\t//---- label46 ----\n\t\tlabel46.setText(\"Iris\");\n\t\tlabel46.putClientProperty(\"FlatLaf.styleClass\", \"h1\");\n\t\tadd(label46, \"cell 10 0\");\n\n\t\t//---- linkLabel9 ----\n\t\tlinkLabel9.setLink(\"https://www.formdev.com/flatlaf/typography/\");\n\t\tadd(linkLabel9, \"cell 0 1\");\n\n\t\t//---- linkLabel1 ----\n\t\tlinkLabel1.setLink(\"https://jetbrains.design/intellij/principles/typography/\");\n\t\tadd(linkLabel1, \"cell 1 1\");\n\n\t\t//---- linkLabel2 ----\n\t\tlinkLabel2.setLink(\"https://developer.apple.com/design/human-interface-guidelines/macos/visual-design/typography/\");\n\t\tadd(linkLabel2, \"cell 3 1\");\n\n\t\t//---- linkLabel3 ----\n\t\tlinkLabel3.setLink(\"https://docs.microsoft.com/en-us/windows/apps/design/style/typography#type-ramp\");\n\t\tadd(linkLabel3, \"cell 4 1\");\n\n\t\t//---- label2 ----\n\t\tlabel2.setText(\"/\");\n\t\tadd(label2, \"cell 4 1\");\n\n\t\t//---- linkLabel4 ----\n\t\tlinkLabel4.setLink(\"https://docs.microsoft.com/en-us/windows/apps/design/signature-experiences/typography#type-ramp\");\n\t\tadd(linkLabel4, \"cell 4 1\");\n\n\t\t//---- linkLabel10 ----\n\t\tlinkLabel10.setLink(\"https://primer.style/css/utilities/typography\");\n\t\tadd(linkLabel10, \"cell 5 1\");\n\n\t\t//---- linkLabel8 ----\n\t\tlinkLabel8.setLink(\"https://material.io/design/typography/the-type-system.html#type-scale\");\n\t\tadd(linkLabel8, \"cell 6 1\");\n\n\t\t//---- linkLabel11 ----\n\t\tlinkLabel11.setLink(\"https://m3.material.io/styles/typography/tokens\");\n\t\tadd(linkLabel11, \"cell 7 1\");\n\n\t\t//---- linkLabel5 ----\n\t\tlinkLabel5.setLink(\"https://experience.sap.com/fiori-design-web/typography/#headlines-and-font-styles-for-ui-controls\");\n\t\tadd(linkLabel5, \"cell 8 1\");\n\n\t\t//---- linkLabel6 ----\n\t\tlinkLabel6.setLink(\"https://atlassian.design/foundations/typography\");\n\t\tadd(linkLabel6, \"cell 9 1\");\n\n\t\t//---- linkLabel7 ----\n\t\tlinkLabel7.setLink(\"https://iris.alkamitech.com/foundations/typography.html\");\n\t\tadd(linkLabel7, \"cell 10 1\");\n\n\t\t//---- fontPreview69 ----\n\t\tfontPreview69.setFontType(\"H1\");\n\t\tfontPreview69.setFontSize(96);\n\t\tfontPreview69.setBaseSize(16);\n\t\tfontPreview69.setLight(true);\n\t\tadd(fontPreview69, \"cell 6 2\");\n\n\t\t//---- fontPreview93 ----\n\t\tfontPreview93.setBaseSize(12);\n\t\tfontPreview93.setFontType(\"H00\");\n\t\tfontPreview93.setFontSize(36);\n\t\tadd(fontPreview93, \"cell 0 3\");\n\n\t\t//---- fontPreview40 ----\n\t\tfontPreview40.setFontSize(68);\n\t\tfontPreview40.setFontType(\"Disp\");\n\t\tfontPreview40.setBaseSize(14);\n\t\tfontPreview40.setSemibold(true);\n\t\tadd(fontPreview40, \"cell 4 2 1 2\");\n\n\t\t//---- fontPreview35 ----\n\t\tfontPreview35.setFontType(\"Disp L\");\n\t\tfontPreview35.setFontSize(57);\n\t\tfontPreview35.setBaseSize(16);\n\t\tadd(fontPreview35, \"cell 7 2\");\n\n\t\t//---- fontPreview85 ----\n\t\tfontPreview85.setFontSize(48);\n\t\tfontPreview85.setFontType(\"H00\");\n\t\tfontPreview85.setBaseSize(16);\n\t\tfontPreview85.setSemibold(true);\n\t\tadd(fontPreview85, \"cell 5 3\");\n\n\t\t//---- fontPreview70 ----\n\t\tfontPreview70.setFontSize(60);\n\t\tfontPreview70.setFontType(\"H2\");\n\t\tfontPreview70.setBaseSize(16);\n\t\tfontPreview70.setLight(true);\n\t\tadd(fontPreview70, \"cell 6 3\");\n\n\t\t//---- fontPreview36 ----\n\t\tfontPreview36.setFontSize(45);\n\t\tfontPreview36.setFontType(\"Disp M\");\n\t\tfontPreview36.setBaseSize(16);\n\t\tadd(fontPreview36, \"cell 7 3\");\n\n\t\t//---- fontPreview51 ----\n\t\tfontPreview51.setFontType(\"h900\");\n\t\tfontPreview51.setFontSize(35);\n\t\tfontPreview51.setBaseSize(14);\n\t\tfontPreview51.setSemibold(true);\n\t\tadd(fontPreview51, \"cell 9 3\");\n\n\t\t//---- fontPreview1 ----\n\t\tfontPreview1.setBaseSize(12);\n\t\tfontPreview1.setFontType(\"H0\");\n\t\tfontPreview1.setFontSize(30);\n\t\tadd(fontPreview1, \"cell 0 4\");\n\n\t\t//---- fontPreview11 ----\n\t\tfontPreview11.setFontType(\"H0\");\n\t\tfontPreview11.setFontSize(24);\n\t\tfontPreview11.setBold(true);\n\t\tfontPreview11.setBaseSize(12);\n\t\tfontPreview11.setShowPlain(true);\n\t\tadd(fontPreview11, \"cell 1 4\");\n\n\t\t//---- fontPreview19 ----\n\t\tfontPreview19.setFontType(\"H0\");\n\t\tfontPreview19.setFontSize(25);\n\t\tfontPreview19.setBold(true);\n\t\tfontPreview19.setBaseSize(13);\n\t\tfontPreview19.setShowPlain(true);\n\t\tadd(fontPreview19, \"cell 2 4\");\n\n\t\t//---- fontPreview27 ----\n\t\tfontPreview27.setFontType(\"Large Title\");\n\t\tfontPreview27.setFontSize(26);\n\t\tfontPreview27.setBaseSize(13);\n\t\tadd(fontPreview27, \"cell 3 4\");\n\n\t\t//---- fontPreview41 ----\n\t\tfontPreview41.setFontType(\"Title L\");\n\t\tfontPreview41.setFontSize(40);\n\t\tfontPreview41.setBaseSize(14);\n\t\tfontPreview41.setSemibold(true);\n\t\tadd(fontPreview41, \"cell 4 4\");\n\n\t\t//---- fontPreview86 ----\n\t\tfontPreview86.setFontSize(40);\n\t\tfontPreview86.setFontType(\"H0\");\n\t\tfontPreview86.setBaseSize(16);\n\t\tfontPreview86.setSemibold(true);\n\t\tadd(fontPreview86, \"cell 5 4\");\n\n\t\t//---- fontPreview71 ----\n\t\tfontPreview71.setFontType(\"H3\");\n\t\tfontPreview71.setFontSize(48);\n\t\tfontPreview71.setBaseSize(16);\n\t\tadd(fontPreview71, \"cell 6 4\");\n\n\t\t//---- fontPreview37 ----\n\t\tfontPreview37.setFontSize(36);\n\t\tfontPreview37.setFontType(\"Display S\");\n\t\tfontPreview37.setBaseSize(16);\n\t\tadd(fontPreview37, \"cell 7 4\");\n\n\t\t//---- fontPreview47 ----\n\t\tfontPreview47.setFontType(\"Header 1\");\n\t\tfontPreview47.setFontSize(36);\n\t\tfontPreview47.setBaseSize(14);\n\t\tadd(fontPreview47, \"cell 8 4\");\n\n\t\t//---- fontPreview54 ----\n\t\tfontPreview54.setBaseSize(14);\n\t\tfontPreview54.setFontType(\"h800\");\n\t\tfontPreview54.setFontSize(29);\n\t\tfontPreview54.setSemibold(true);\n\t\tadd(fontPreview54, \"cell 9 4\");\n\n\t\t//---- fontPreview62 ----\n\t\tfontPreview62.setBaseSize(16);\n\t\tfontPreview62.setFontSize(44);\n\t\tfontPreview62.setFontType(\"Hero\");\n\t\tadd(fontPreview62, \"cell 10 4\");\n\t\tadd(separator3, \"cell 0 5 11 1,growx\");\n\n\t\t//---- fontPreview2 ----\n\t\tfontPreview2.setBaseSize(12);\n\t\tfontPreview2.setFontSize(24);\n\t\tfontPreview2.setFontType(\"H1\");\n\t\tfontPreview2.setSemibold(true);\n\t\tfontPreview2.setShowPlain(true);\n\t\tadd(fontPreview2, \"cell 0 6\");\n\n\t\t//---- fontPreview12 ----\n\t\tfontPreview12.setFontType(\"H1\");\n\t\tfontPreview12.setFontSize(21);\n\t\tfontPreview12.setBold(true);\n\t\tfontPreview12.setBaseSize(12);\n\t\tfontPreview12.setShowPlain(true);\n\t\tadd(fontPreview12, \"cell 1 6\");\n\n\t\t//---- fontPreview20 ----\n\t\tfontPreview20.setFontType(\"H1\");\n\t\tfontPreview20.setFontSize(22);\n\t\tfontPreview20.setBold(true);\n\t\tfontPreview20.setBaseSize(13);\n\t\tfontPreview20.setShowPlain(true);\n\t\tadd(fontPreview20, \"cell 2 6\");\n\n\t\t//---- fontPreview28 ----\n\t\tfontPreview28.setFontSize(22);\n\t\tfontPreview28.setFontType(\"Title 1\");\n\t\tfontPreview28.setBaseSize(13);\n\t\tadd(fontPreview28, \"cell 3 6\");\n\n\t\t//---- fontPreview42 ----\n\t\tfontPreview42.setFontType(\"Title\");\n\t\tfontPreview42.setFontSize(28);\n\t\tfontPreview42.setBaseSize(14);\n\t\tfontPreview42.setSemibold(true);\n\t\tadd(fontPreview42, \"cell 4 6\");\n\n\t\t//---- fontPreview87 ----\n\t\tfontPreview87.setFontType(\"H1\");\n\t\tfontPreview87.setFontSize(32);\n\t\tfontPreview87.setBaseSize(16);\n\t\tfontPreview87.setSemibold(true);\n\t\tadd(fontPreview87, \"cell 5 6\");\n\n\t\t//---- fontPreview72 ----\n\t\tfontPreview72.setFontType(\"H4\");\n\t\tfontPreview72.setFontSize(34);\n\t\tfontPreview72.setBaseSize(16);\n\t\tadd(fontPreview72, \"cell 6 6\");\n\n\t\t//---- fontPreview38 ----\n\t\tfontPreview38.setFontSize(32);\n\t\tfontPreview38.setFontType(\"Headline L\");\n\t\tfontPreview38.setBaseSize(16);\n\t\tadd(fontPreview38, \"cell 7 6\");\n\n\t\t//---- fontPreview48 ----\n\t\tfontPreview48.setFontType(\"Header 2\");\n\t\tfontPreview48.setFontSize(24);\n\t\tfontPreview48.setBaseSize(14);\n\t\tadd(fontPreview48, \"cell 8 6\");\n\n\t\t//---- fontPreview55 ----\n\t\tfontPreview55.setBaseSize(14);\n\t\tfontPreview55.setFontType(\"h700\");\n\t\tfontPreview55.setFontSize(24);\n\t\tfontPreview55.setSemibold(true);\n\t\tadd(fontPreview55, \"cell 9 6\");\n\n\t\t//---- fontPreview63 ----\n\t\tfontPreview63.setBaseSize(16);\n\t\tfontPreview63.setFontSize(32);\n\t\tfontPreview63.setFontType(\"H1\");\n\t\tadd(fontPreview63, \"cell 10 6\");\n\n\t\t//---- fontPreview3 ----\n\t\tfontPreview3.setBaseSize(12);\n\t\tfontPreview3.setFontSize(18);\n\t\tfontPreview3.setFontType(\"H2\");\n\t\tfontPreview3.setSemibold(true);\n\t\tfontPreview3.setShowPlain(true);\n\t\tadd(fontPreview3, \"cell 0 7\");\n\n\t\t//---- fontPreview13 ----\n\t\tfontPreview13.setFontType(\"H2\");\n\t\tfontPreview13.setFontSize(17);\n\t\tfontPreview13.setBold(true);\n\t\tfontPreview13.setBaseSize(12);\n\t\tfontPreview13.setShowPlain(true);\n\t\tadd(fontPreview13, \"cell 1 7\");\n\n\t\t//---- fontPreview21 ----\n\t\tfontPreview21.setFontType(\"H2\");\n\t\tfontPreview21.setFontSize(18);\n\t\tfontPreview21.setBold(true);\n\t\tfontPreview21.setBaseSize(13);\n\t\tfontPreview21.setShowPlain(true);\n\t\tadd(fontPreview21, \"cell 2 7\");\n\n\t\t//---- fontPreview29 ----\n\t\tfontPreview29.setFontSize(17);\n\t\tfontPreview29.setFontType(\"Title 2\");\n\t\tfontPreview29.setBaseSize(13);\n\t\tadd(fontPreview29, \"cell 3 7\");\n\n\t\t//---- fontPreview43 ----\n\t\tfontPreview43.setFontType(\"Subtitle\");\n\t\tfontPreview43.setFontSize(20);\n\t\tfontPreview43.setBaseSize(14);\n\t\tfontPreview43.setSemibold(true);\n\t\tadd(fontPreview43, \"cell 4 7\");\n\n\t\t//---- fontPreview88 ----\n\t\tfontPreview88.setFontSize(24);\n\t\tfontPreview88.setFontType(\"H2\");\n\t\tfontPreview88.setBaseSize(16);\n\t\tfontPreview88.setSemibold(true);\n\t\tadd(fontPreview88, \"cell 5 7\");\n\n\t\t//---- fontPreview73 ----\n\t\tfontPreview73.setFontType(\"H5\");\n\t\tfontPreview73.setFontSize(24);\n\t\tfontPreview73.setBaseSize(16);\n\t\tadd(fontPreview73, \"cell 6 7\");\n\n\t\t//---- fontPreview79 ----\n\t\tfontPreview79.setFontType(\"Headline M\");\n\t\tfontPreview79.setFontSize(28);\n\t\tfontPreview79.setBaseSize(16);\n\t\tadd(fontPreview79, \"cell 7 7\");\n\n\t\t//---- fontPreview49 ----\n\t\tfontPreview49.setFontType(\"Header 3\");\n\t\tfontPreview49.setFontSize(20);\n\t\tfontPreview49.setBaseSize(14);\n\t\tadd(fontPreview49, \"cell 8 7\");\n\n\t\t//---- fontPreview57 ----\n\t\tfontPreview57.setBaseSize(14);\n\t\tfontPreview57.setFontType(\"h600\");\n\t\tfontPreview57.setFontSize(20);\n\t\tfontPreview57.setSemibold(true);\n\t\tadd(fontPreview57, \"cell 9 7\");\n\n\t\t//---- fontPreview64 ----\n\t\tfontPreview64.setBaseSize(16);\n\t\tfontPreview64.setFontType(\"H2\");\n\t\tfontPreview64.setFontSize(24);\n\t\tadd(fontPreview64, \"cell 10 7\");\n\n\t\t//---- fontPreview4 ----\n\t\tfontPreview4.setBaseSize(12);\n\t\tfontPreview4.setFontSize(15);\n\t\tfontPreview4.setFontType(\"H3\");\n\t\tfontPreview4.setSemibold(true);\n\t\tfontPreview4.setShowPlain(true);\n\t\tadd(fontPreview4, \"cell 0 8\");\n\n\t\t//---- fontPreview14 ----\n\t\tfontPreview14.setFontType(\"H3\");\n\t\tfontPreview14.setFontSize(15);\n\t\tfontPreview14.setBold(true);\n\t\tfontPreview14.setBaseSize(12);\n\t\tfontPreview14.setShowPlain(true);\n\t\tadd(fontPreview14, \"cell 1 8\");\n\n\t\t//---- fontPreview22 ----\n\t\tfontPreview22.setFontType(\"H3\");\n\t\tfontPreview22.setFontSize(16);\n\t\tfontPreview22.setBold(true);\n\t\tfontPreview22.setBaseSize(13);\n\t\tfontPreview22.setShowPlain(true);\n\t\tadd(fontPreview22, \"cell 2 8\");\n\n\t\t//---- fontPreview30 ----\n\t\tfontPreview30.setFontType(\"Title 3\");\n\t\tfontPreview30.setFontSize(15);\n\t\tfontPreview30.setBaseSize(13);\n\t\tadd(fontPreview30, \"cell 3 8\");\n\n\t\t//---- fontPreview89 ----\n\t\tfontPreview89.setFontType(\"H3\");\n\t\tfontPreview89.setFontSize(20);\n\t\tfontPreview89.setBaseSize(16);\n\t\tfontPreview89.setSemibold(true);\n\t\tadd(fontPreview89, \"cell 5 8\");\n\n\t\t//---- fontPreview74 ----\n\t\tfontPreview74.setFontType(\"H6\");\n\t\tfontPreview74.setFontSize(20);\n\t\tfontPreview74.setBaseSize(16);\n\t\tfontPreview74.setSemibold(true);\n\t\tadd(fontPreview74, \"cell 6 8\");\n\n\t\t//---- fontPreview80 ----\n\t\tfontPreview80.setFontType(\"Headline S\");\n\t\tfontPreview80.setFontSize(24);\n\t\tfontPreview80.setBaseSize(16);\n\t\tadd(fontPreview80, \"cell 7 8\");\n\n\t\t//---- fontPreview50 ----\n\t\tfontPreview50.setFontType(\"Header 4\");\n\t\tfontPreview50.setFontSize(18);\n\t\tfontPreview50.setBaseSize(14);\n\t\tadd(fontPreview50, \"cell 8 8\");\n\n\t\t//---- fontPreview58 ----\n\t\tfontPreview58.setBaseSize(14);\n\t\tfontPreview58.setFontType(\"h500\");\n\t\tfontPreview58.setFontSize(16);\n\t\tfontPreview58.setSemibold(true);\n\t\tadd(fontPreview58, \"cell 9 8\");\n\n\t\t//---- fontPreview65 ----\n\t\tfontPreview65.setBaseSize(16);\n\t\tfontPreview65.setFontSize(20);\n\t\tfontPreview65.setFontType(\"H3\");\n\t\tadd(fontPreview65, \"cell 10 8\");\n\n\t\t//---- fontPreview5 ----\n\t\tfontPreview5.setBaseSize(12);\n\t\tfontPreview5.setFontSize(14);\n\t\tfontPreview5.setFontType(\"Large\");\n\t\tadd(fontPreview5, \"cell 0 9\");\n\n\t\t//---- fontPreview15 ----\n\t\tfontPreview15.setFontType(\"H4\");\n\t\tfontPreview15.setBold(true);\n\t\tfontPreview15.setFontSize(12);\n\t\tfontPreview15.setBaseSize(12);\n\t\tadd(fontPreview15, \"cell 1 9\");\n\n\t\t//---- fontPreview23 ----\n\t\tfontPreview23.setFontType(\"H4\");\n\t\tfontPreview23.setFontSize(13);\n\t\tfontPreview23.setBold(true);\n\t\tfontPreview23.setBaseSize(13);\n\t\tadd(fontPreview23, \"cell 2 9\");\n\n\t\t//---- fontPreview31 ----\n\t\tfontPreview31.setFontType(\"Headline\");\n\t\tfontPreview31.setFontSize(13);\n\t\tfontPreview31.setBold(true);\n\t\tfontPreview31.setBaseSize(13);\n\t\tadd(fontPreview31, \"cell 3 9\");\n\n\t\t//---- fontPreview44 ----\n\t\tfontPreview44.setFontSize(18);\n\t\tfontPreview44.setFontType(\"Body Large\");\n\t\tfontPreview44.setBaseSize(14);\n\t\tadd(fontPreview44, \"cell 4 9\");\n\n\t\t//---- fontPreview81 ----\n\t\tfontPreview81.setFontType(\"Title L\");\n\t\tfontPreview81.setFontSize(22);\n\t\tfontPreview81.setBaseSize(16);\n\t\tfontPreview81.setSemibold(true);\n\t\tadd(fontPreview81, \"cell 7 9\");\n\n\t\t//---- fontPreview56 ----\n\t\tfontPreview56.setFontType(\"Large Text / Header 5\");\n\t\tfontPreview56.setFontSize(16);\n\t\tfontPreview56.setBaseSize(14);\n\t\tadd(fontPreview56, \"cell 8 9\");\n\n\t\t//---- fontPreview66 ----\n\t\tfontPreview66.setBaseSize(16);\n\t\tfontPreview66.setFontType(\"H4\");\n\t\tfontPreview66.setFontSize(18);\n\t\tadd(fontPreview66, \"cell 10 9\");\n\t\tadd(separator1, \"cell 0 10 11 1,growx\");\n\n\t\t//---- fontPreview7 ----\n\t\tfontPreview7.setFontType(\"Default\");\n\t\tfontPreview7.setFontSize(12);\n\t\tfontPreview7.setBaseSize(12);\n\t\tadd(fontPreview7, \"cell 0 11\");\n\n\t\t//---- fontPreview6 ----\n\t\tfontPreview6.setFontSize(12);\n\t\tfontPreview6.setBold(true);\n\t\tfontPreview6.setFontType(\"H4\");\n\t\tfontPreview6.setBaseSize(12);\n\t\tadd(fontPreview6, \"cell 0 11\");\n\n\t\t//---- fontPreview16 ----\n\t\tfontPreview16.setFontType(\"Default\");\n\t\tfontPreview16.setFontSize(12);\n\t\tfontPreview16.setBaseSize(12);\n\t\tadd(fontPreview16, \"cell 1 11\");\n\n\t\t//---- fontPreview24 ----\n\t\tfontPreview24.setFontType(\"Default\");\n\t\tfontPreview24.setFontSize(13);\n\t\tfontPreview24.setBaseSize(13);\n\t\tadd(fontPreview24, \"cell 2 11\");\n\n\t\t//---- fontPreview32 ----\n\t\tfontPreview32.setFontType(\"Body\");\n\t\tfontPreview32.setFontSize(13);\n\t\tfontPreview32.setBaseSize(13);\n\t\tadd(fontPreview32, \"cell 3 11\");\n\n\t\t//---- fontPreview45 ----\n\t\tfontPreview45.setFontType(\"Body\");\n\t\tfontPreview45.setFontSize(14);\n\t\tfontPreview45.setBaseSize(14);\n\t\tadd(fontPreview45, \"cell 4 11\");\n\n\t\t//---- fontPreview90 ----\n\t\tfontPreview90.setFontSize(16);\n\t\tfontPreview90.setFontType(\"Body /\");\n\t\tfontPreview90.setBaseSize(16);\n\t\tadd(fontPreview90, \"cell 5 11,alignx left,growx 0\");\n\n\t\t//---- fontPreview98 ----\n\t\tfontPreview98.setFontSize(16);\n\t\tfontPreview98.setFontType(\"H4\");\n\t\tfontPreview98.setBaseSize(16);\n\t\tfontPreview98.setSemibold(true);\n\t\tadd(fontPreview98, \"cell 5 11\");\n\n\t\t//---- fontPreview75 ----\n\t\tfontPreview75.setFontSize(16);\n\t\tfontPreview75.setFontType(\"Body 1 / Subtitle 1\");\n\t\tfontPreview75.setBaseSize(16);\n\t\tadd(fontPreview75, \"cell 6 11\");\n\n\t\t//---- fontPreview82 ----\n\t\tfontPreview82.setFontSize(16);\n\t\tfontPreview82.setFontType(\"Body L /\");\n\t\tfontPreview82.setBaseSize(16);\n\t\tadd(fontPreview82, \"cell 7 11,alignx left,growx 0\");\n\n\t\t//---- fontPreview95 ----\n\t\tfontPreview95.setFontSize(16);\n\t\tfontPreview95.setFontType(\"Title M\");\n\t\tfontPreview95.setBaseSize(16);\n\t\tfontPreview95.setSemibold(true);\n\t\tadd(fontPreview95, \"cell 7 11\");\n\n\t\t//---- fontPreview52 ----\n\t\tfontPreview52.setFontType(\"Medium Text / Header 6\");\n\t\tfontPreview52.setFontSize(14);\n\t\tfontPreview52.setBaseSize(14);\n\t\tadd(fontPreview52, \"cell 8 11\");\n\n\t\t//---- fontPreview59 ----\n\t\tfontPreview59.setBaseSize(14);\n\t\tfontPreview59.setFontSize(14);\n\t\tfontPreview59.setFontType(\"h400\");\n\t\tfontPreview59.setSemibold(true);\n\t\tadd(fontPreview59, \"cell 9 11\");\n\n\t\t//---- fontPreview67 ----\n\t\tfontPreview67.setBaseSize(16);\n\t\tfontPreview67.setFontSize(16);\n\t\tfontPreview67.setFontType(\"Body\");\n\t\tadd(fontPreview67, \"cell 10 11\");\n\t\tadd(separator2, \"cell 0 12 11 1,growx\");\n\n\t\t//---- fontPreview8 ----\n\t\tfontPreview8.setFontType(\"Medium\");\n\t\tfontPreview8.setFontSize(11);\n\t\tfontPreview8.setBaseSize(12);\n\t\tadd(fontPreview8, \"cell 0 13\");\n\n\t\t//---- fontPreview17 ----\n\t\tfontPreview17.setFontType(\"Medium\");\n\t\tfontPreview17.setFontSize(12);\n\t\tfontPreview17.setBaseSize(12);\n\t\tadd(fontPreview17, \"cell 1 13\");\n\n\t\t//---- fontPreview25 ----\n\t\tfontPreview25.setFontType(\"Medium\");\n\t\tfontPreview25.setFontSize(12);\n\t\tfontPreview25.setBaseSize(13);\n\t\tadd(fontPreview25, \"cell 2 13\");\n\n\t\t//---- fontPreview39 ----\n\t\tfontPreview39.setFontSize(12);\n\t\tfontPreview39.setFontType(\"Callout\");\n\t\tfontPreview39.setBaseSize(13);\n\t\tadd(fontPreview39, \"cell 3 13\");\n\n\t\t//---- fontPreview91 ----\n\t\tfontPreview91.setFontType(\"H5\");\n\t\tfontPreview91.setFontSize(14);\n\t\tfontPreview91.setBaseSize(16);\n\t\tfontPreview91.setSemibold(true);\n\t\tadd(fontPreview91, \"cell 5 13\");\n\n\t\t//---- fontPreview76 ----\n\t\tfontPreview76.setFontType(\"Body 2 / Subtitle 2\");\n\t\tfontPreview76.setFontSize(14);\n\t\tfontPreview76.setBaseSize(16);\n\t\tadd(fontPreview76, \"cell 6 13\");\n\n\t\t//---- fontPreview83 ----\n\t\tfontPreview83.setFontType(\"Body M /\");\n\t\tfontPreview83.setFontSize(14);\n\t\tfontPreview83.setBaseSize(16);\n\t\tadd(fontPreview83, \"cell 7 13,alignx left,growx 0\");\n\n\t\t//---- fontPreview96 ----\n\t\tfontPreview96.setFontType(\"Title S / Label L\");\n\t\tfontPreview96.setFontSize(14);\n\t\tfontPreview96.setBaseSize(16);\n\t\tfontPreview96.setSemibold(true);\n\t\tadd(fontPreview96, \"cell 7 13\");\n\n\t\t//---- fontPreview9 ----\n\t\tfontPreview9.setFontType(\"Small\");\n\t\tfontPreview9.setFontSize(10);\n\t\tfontPreview9.setBaseSize(12);\n\t\tadd(fontPreview9, \"cell 0 14\");\n\n\t\t//---- fontPreview18 ----\n\t\tfontPreview18.setFontType(\"Small\");\n\t\tfontPreview18.setFontSize(12);\n\t\tfontPreview18.setBaseSize(12);\n\t\tadd(fontPreview18, \"cell 1 14\");\n\n\t\t//---- fontPreview26 ----\n\t\tfontPreview26.setFontType(\"Small\");\n\t\tfontPreview26.setFontSize(11);\n\t\tfontPreview26.setBaseSize(13);\n\t\tadd(fontPreview26, \"cell 2 14\");\n\n\t\t//---- fontPreview33 ----\n\t\tfontPreview33.setFontType(\"Subheadline\");\n\t\tfontPreview33.setFontSize(11);\n\t\tfontPreview33.setBaseSize(13);\n\t\tadd(fontPreview33, \"cell 3 14\");\n\n\t\t//---- fontPreview46 ----\n\t\tfontPreview46.setFontType(\"Caption\");\n\t\tfontPreview46.setFontSize(12);\n\t\tfontPreview46.setBaseSize(14);\n\t\tadd(fontPreview46, \"cell 4 14\");\n\n\t\t//---- fontPreview92 ----\n\t\tfontPreview92.setFontSize(12);\n\t\tfontPreview92.setFontType(\"H6\");\n\t\tfontPreview92.setBaseSize(12);\n\t\tfontPreview92.setSemibold(true);\n\t\tadd(fontPreview92, \"cell 5 14\");\n\n\t\t//---- fontPreview77 ----\n\t\tfontPreview77.setFontSize(12);\n\t\tfontPreview77.setFontType(\"Caption\");\n\t\tfontPreview77.setBaseSize(16);\n\t\tadd(fontPreview77, \"cell 6 14\");\n\n\t\t//---- fontPreview84 ----\n\t\tfontPreview84.setFontType(\"Body S /\");\n\t\tfontPreview84.setFontSize(12);\n\t\tfontPreview84.setBaseSize(16);\n\t\tadd(fontPreview84, \"cell 7 14,alignx left,growx 0\");\n\n\t\t//---- fontPreview97 ----\n\t\tfontPreview97.setFontType(\"Label M\");\n\t\tfontPreview97.setFontSize(12);\n\t\tfontPreview97.setBaseSize(16);\n\t\tfontPreview97.setSemibold(true);\n\t\tadd(fontPreview97, \"cell 7 14\");\n\n\t\t//---- fontPreview53 ----\n\t\tfontPreview53.setFontType(\"Small Text\");\n\t\tfontPreview53.setFontSize(12);\n\t\tfontPreview53.setBaseSize(14);\n\t\tadd(fontPreview53, \"cell 8 14\");\n\n\t\t//---- fontPreview60 ----\n\t\tfontPreview60.setBaseSize(14);\n\t\tfontPreview60.setFontType(\"h300 / h200\");\n\t\tfontPreview60.setFontSize(12);\n\t\tfontPreview60.setSemibold(true);\n\t\tadd(fontPreview60, \"cell 9 14\");\n\n\t\t//---- fontPreview68 ----\n\t\tfontPreview68.setBaseSize(16);\n\t\tfontPreview68.setFontType(\"Small\");\n\t\tfontPreview68.setFontSize(14);\n\t\tadd(fontPreview68, \"cell 10 14\");\n\n\t\t//---- fontPreview10 ----\n\t\tfontPreview10.setFontType(\"Mini\");\n\t\tfontPreview10.setFontSize(9);\n\t\tfontPreview10.setBaseSize(12);\n\t\tadd(fontPreview10, \"cell 0 15\");\n\n\t\t//---- fontPreview34 ----\n\t\tfontPreview34.setFontSize(10);\n\t\tfontPreview34.setFontType(\"Footnote / Caption 1+2\");\n\t\tfontPreview34.setBaseSize(13);\n\t\tadd(fontPreview34, \"cell 3 15\");\n\n\t\t//---- fontPreview78 ----\n\t\tfontPreview78.setFontType(\"Overline\");\n\t\tfontPreview78.setFontSize(10);\n\t\tfontPreview78.setBaseSize(16);\n\t\tadd(fontPreview78, \"cell 6 15\");\n\n\t\t//---- fontPreview94 ----\n\t\tfontPreview94.setFontSize(11);\n\t\tfontPreview94.setFontType(\"Label S\");\n\t\tfontPreview94.setBaseSize(16);\n\t\tfontPreview94.setSemibold(true);\n\t\tadd(fontPreview94, \"cell 7 15\");\n\n\t\t//---- fontPreview61 ----\n\t\tfontPreview61.setBaseSize(14);\n\t\tfontPreview61.setFontSize(11);\n\t\tfontPreview61.setFontType(\"h100\");\n\t\tfontPreview61.setSemibold(true);\n\t\tadd(fontPreview61, \"cell 9 15\");\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t}", "private void initGUI() {\n statusLabel = new JLabel();\n add(statusLabel);\n updateStatus();\n }", "private JLabel makeJLabel(String title, int x, int y, int width, int height) {\r\n JLabel label = new JLabel(title);\r\n label.setBounds(x, y, width, height);\r\n return label;\r\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 }", "public void connectClient(int client, String name) {\n final String n = name;\n final int c = client;\n \n Runnable doUpdate = new Runnable() {\n public void run() {\n JLabel nameLabel = (JLabel) cnames.get(c);\n nameLabel.setText(n);\n nameLabel.setForeground(Color.blue);\n \n JLabel statusLabel = (JLabel) cstatus.get(c);\n statusLabel.setText(\"Connected\");\n statusLabel.setForeground(new Color(25, 90, 25));\n \n pack();\n repaint();\n }\n };\n SwingUtilities.invokeLater(doUpdate);\n }", "ClientGUI() {\n\t\t_ls = new logServer(\"ClientGui\");\n\n\t\t_clientFrame = new JFrame();\n\t\t_loginFrame = new LoginF(_ls);\n\n\t\t_clientFrame.setSize(500, 820);\n\t\t_clientFrame.setLayout(null);\n\t\t_clientFrame.add(_loginFrame);\n\t\tinit();\n\n\t\t// startFrame();\n\t\t\n\n\t\t_clientControl = new Client(_ls);\n\t\t_loginFrame.setClientPointer(_clientControl);\n\n\t\t/**\n\t\t * event for login frame to close and open new frame\n\t\t */\n\t\t_loginFrame.setLoginListener(new loginFrameListener() {\n\t\t\t@Override\n\t\t\tpublic void singUpListener(Client clientControl) {\n\t\t\t\t_clientControl = clientControl;\n\t\t\t\tstartFrame();\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblText = new javax.swing.JLabel();\n\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n setLayout(new java.awt.BorderLayout());\n\n lblText.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n lblText.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblText.setText(\"content\");\n lblText.setOpaque(true);\n add(lblText, java.awt.BorderLayout.CENTER);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblText = new javax.swing.JLabel();\n\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n setLayout(new java.awt.BorderLayout());\n\n lblText.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n lblText.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblText.setText(\"content\");\n lblText.setOpaque(true);\n add(lblText, java.awt.BorderLayout.CENTER);\n }", "private void _initLabels() \n {\n _lblName = _createNewLabel( \"Mother Teres@ Practice Management System\");\n _lblVersion = _createNewLabel(\"Version 1.0.1 (Beta)\");\n _lblAuthor = _createNewLabel( \"Company: Valkyrie Systems\" );\n _lblRealAuthor = _createNewLabel( \"Author: Hein Badenhorst\" );\n _lblDate = _createNewLabel( \"Build Date:\" );\n _lblRealDate = _createNewLabel( \"31 October 2010\");\n }", "private void initComponents() {\n\t\tlblTitle = new javax.swing.JLabel();\n\t\tlblTitle.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n\t\tjSeparator1 = new javax.swing.JSeparator();\n\n\t\tlblTitle.setFont(getTitleFont());\n\t\tlblTitle.setForeground(getTitleColor());\n\t\tlblTitle.setText(com.floreantpos.POSConstants.TITLE);\n\n\t\tsetLayout(new BorderLayout(5, 5));\n\t\tadd(lblTitle);\n\t\tadd(jSeparator1, BorderLayout.SOUTH);\n\n\t\tsetPreferredSize(PosUIManager.getSize(300, 60));\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n clientPanel = new java.awt.Panel();\n logout = new javax.swing.JButton();\n welcomeLabel = new javax.swing.JLabel();\n greetingLabel = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n logo = new javax.swing.JLabel();\n userHome = new javax.swing.JLabel();\n view_contract = new javax.swing.JLabel();\n update_account1 = new javax.swing.JLabel();\n house_picture = new javax.swing.JLabel();\n view_contract1 = new javax.swing.JLabel();\n background = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Client:Home\");\n setBounds(new java.awt.Rectangle(0, 0, 1300, 700));\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setLocation(new java.awt.Point(0, 0));\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n clientPanel.setBackground(new java.awt.Color(51, 51, 51));\n clientPanel.setPreferredSize(new java.awt.Dimension(1300, 700));\n clientPanel.setLayout(null);\n\n logout.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n logout.setText(\"Logout\");\n logout.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n logout.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n logoutActionPerformed(evt);\n }\n });\n clientPanel.add(logout);\n logout.setBounds(40, 30, 110, 50);\n\n welcomeLabel.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n welcomeLabel.setForeground(new java.awt.Color(255, 255, 255));\n welcomeLabel.setText(\"Welcome, \");\n clientPanel.add(welcomeLabel);\n welcomeLabel.setBounds(210, -40, 190, 160);\n\n greetingLabel.setEditable(false);\n greetingLabel.setBackground(new java.awt.Color(0, 102, 153));\n greetingLabel.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n greetingLabel.setForeground(new java.awt.Color(255, 255, 255));\n greetingLabel.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n greetingLabel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n greetingLabelActionPerformed(evt);\n }\n });\n clientPanel.add(greetingLabel);\n greetingLabel.setBounds(410, 10, 260, 60);\n clientPanel.add(jSeparator1);\n jSeparator1.setBounds(190, 80, 560, 20);\n\n logo.setFont(new java.awt.Font(\"Viner Hand ITC\", 1, 18)); // NOI18N\n logo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rentalmanagement/Home.png\"))); // NOI18N\n logo.setText(\"R.M.S\");\n clientPanel.add(logo);\n logo.setBounds(1130, 0, 149, 90);\n\n userHome.setBackground(new java.awt.Color(0, 102, 153));\n userHome.setOpaque(true);\n clientPanel.add(userHome);\n userHome.setBounds(0, 0, 1300, 100);\n\n view_contract.setBackground(new java.awt.Color(204, 204, 204));\n view_contract.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n view_contract.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rentalmanagement/complaint.png\"))); // NOI18N\n view_contract.setText(\"Complaints & Suggestions\");\n view_contract.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n view_contract.setOpaque(true);\n clientPanel.add(view_contract);\n view_contract.setBounds(30, 480, 300, 150);\n\n update_account1.setBackground(new java.awt.Color(204, 204, 204));\n update_account1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n update_account1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rentalmanagement/details.png\"))); // NOI18N\n update_account1.setText(\"Account Details\");\n update_account1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n update_account1.setOpaque(true);\n update_account1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n update_account1MouseClicked(evt);\n }\n });\n clientPanel.add(update_account1);\n update_account1.setBounds(30, 110, 240, 130);\n\n house_picture.setBackground(new java.awt.Color(204, 204, 204));\n house_picture.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0, 102, 153)));\n house_picture.setOpaque(true);\n clientPanel.add(house_picture);\n house_picture.setBounds(660, 120, 570, 340);\n\n view_contract1.setBackground(new java.awt.Color(204, 204, 204));\n view_contract1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n view_contract1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rentalmanagement/contract.png\"))); // NOI18N\n view_contract1.setText(\"Contract details and Arreas\");\n view_contract1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n view_contract1.setOpaque(true);\n view_contract1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n view_contract1MouseClicked(evt);\n }\n });\n view_contract1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n view_contract1KeyPressed(evt);\n }\n });\n clientPanel.add(view_contract1);\n view_contract1.setBounds(30, 280, 300, 150);\n\n background.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rentalmanagement/Base.png\"))); // NOI18N\n clientPanel.add(background);\n background.setBounds(0, 100, 1300, 600);\n\n getContentPane().add(clientPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "private void createLabels() {\n\n // Add status labels\n infoItem = new ToolItem(toolbar, SWT.SEPARATOR);\n infoComposite = new Composite(toolbar, SWT.NONE);\n infoItem.setControl(infoComposite);\n infoComposite.setLayout(null);\n\n labelAttribute = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelAttribute.setText(Resources.getMessage(\"MainToolBar.33\")); //$NON-NLS-1$\n labelAttribute.pack(); \n labelTransformations = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelTransformations.setText(Resources.getMessage(\"MainToolBar.33\")); //$NON-NLS-1$\n labelTransformations.pack();\n labelSelected = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelSelected.setText(Resources.getMessage(\"MainToolBar.31\")); //$NON-NLS-1$\n labelSelected.pack();\n labelApplied = new Label(infoComposite, SWT.SINGLE | SWT.READ_ONLY);\n labelApplied.setText(Resources.getMessage(\"MainToolBar.32\")); //$NON-NLS-1$\n labelApplied.pack();\n \n // Copy info to clip board on right-click\n Menu menu = new Menu(toolbar);\n MenuItem itemCopy = new MenuItem(menu, SWT.NONE);\n itemCopy.setText(Resources.getMessage(\"MainToolBar.42\")); //$NON-NLS-1$\n itemCopy.addSelectionListener(new SelectionAdapter(){\n public void widgetSelected(SelectionEvent arg0) {\n if (tooltip != null) {\n Clipboard clipboard = new Clipboard(toolbar.getDisplay());\n TextTransfer textTransfer = TextTransfer.getInstance();\n clipboard.setContents(new String[]{tooltip}, \n new Transfer[]{textTransfer});\n clipboard.dispose();\n }\n }\n });\n labelSelected.setMenu(menu);\n labelApplied.setMenu(menu);\n labelTransformations.setMenu(menu);\n \n // Add listener for layout\n toolbar.addControlListener(new ControlAdapter() {\n @Override\n public void controlResized(final ControlEvent arg0) {\n layout();\n }\n });\n }", "private javax.swing.JLabel getJLabel21() {\n\t\tif(jLabel21 == null) {\n\t\t\tjLabel21 = new javax.swing.JLabel();\n\t\t\tjLabel21.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12));\n\t\t\tjLabel21.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\t\t\tjLabel21.setText(\"N/A\");\n\t\t\tjLabel21.setPreferredSize(new java.awt.Dimension(30,20));\n\t\t\tjLabel21.setVerticalAlignment(javax.swing.SwingConstants.CENTER);\n\t\t\tjLabel21.setFocusable(false);\n\t\t}\n\t\treturn jLabel21;\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n \n jLabel1 = new javax.swing.JLabel();\n \n setName(\"Form\"); // NOI18N\n setLayout(new java.awt.GridBagLayout());\n \n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(facebin.FacebinApp.class).getContext().getResourceMap(FriendsView.class);\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n add(jLabel1, new java.awt.GridBagConstraints());\n }", "void addLabels() {\n Integer gridyAux = 0, gridxAux = 0;\n gc.anchor = GridBagConstraints.LINE_END;\n gc.weightx = 0.5;\n gc.weighty = 0.5;\n gc.gridx = 0;\n gc.gridy = gridyAux;\n firstCurrency = currencyManager.getCurrencyByName(getCurrencyFrom());\n transaction.setFirstCurrency(firstCurrency);\n utilLabels(gridyAux, gridxAux, firstCurrency, 1);\n JButton buttonCalculeaza = new JButton(\"Converteste\");\n buttonCalculeaza.addActionListener(event -> clickButton());\n this.add(buttonCalculeaza, gc);\n\n this.add(buttonCalculeaza, gc);\n gridyAux = 0;\n gridxAux = 2;\n gc.anchor = GridBagConstraints.LINE_END;\n gc.gridx = gridxAux;\n gc.gridy = gridyAux;\n secondCurrency = currencyManager.getCurrencyByName(getCurrencyTo());\n transaction.setSecondCurrency(secondCurrency);\n utilLabels(gridyAux, gridxAux, secondCurrency, 2);\n\n this.validate();\n this.repaint();\n }", "private JLabel numberLabel(int i) {\n\t\tJLabel label = new JLabel();\n\t\tlabel.setIcon(Icon.returnIcon(Integer.toString(i)));\n\t\tlabel.setOpaque(true);\n\t\tlabel.setBackground(labelBackground);\n\t\t\n\t\treturn label;\t\n\t}", "public MyJLabel() {\n super(\" \");\n this.setOpaque(true);\n this.setPreferredSize(new Dimension(10,10));\n }", "public viewClients() {\n initComponents();\n }", "private void createYourListsTitle() {\n\t\tjlYourLists = new JLabel(\"PLAYLISTS\");\t\t\n\t\tjlYourLists.setFont(new java.awt.Font(\"Century Gothic\",0, 17));\n\t\tjlYourLists.setForeground(new Color(250,250,250));\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(144, 210, 144));\n\n jLabel1.setBackground(new java.awt.Color(144, 210, 144));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\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 .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n }", "private void createMessageWindow() {\n\t\tmessageBG = Icon.createImageIcon(\"/images/UI/messageWindow.png\");\n\t\tmessageWindow = new JLabel(messageBG);\n\t\t\n\t\tmessageWindow = new JLabel(\"\");\n\t\tmessageWindow.setFont(new Font(\"Courier\", Font.PLAIN, 20));\n\t\tmessageWindow.setIcon(messageBG);\n\t\tmessageWindow.setIconTextGap(-messageBG.getIconWidth()+10);\n\t\tmessageWindow.setHorizontalTextPosition(0);\n\t\tmessageWindow.setOpaque(false);\n\t\t\t\t\n\t\tmessagePanel.add(messageWindow, BorderLayout.CENTER);\n\t\tmessagePanel.setOpaque(false);\n\t}", "private void createLabelForPanel(JPanel queueInfoPanel) {\n if (queue.getQueue().isEmpty()) {\n queueInfoLabel = new JLabel(\"Queue is empty. Try adding some songs!\");\n } else {\n queueInfoLabel = new JLabel(queue.viewQueue());\n }\n queueInfoPanel.add(queueInfoLabel);\n }", "protected void createComponents() {\n sampleText = new JTextField(20);\n displayArea = new JLabel(\"\");\n displayArea.setPreferredSize(new Dimension(200, 75));\n displayArea.setMinimumSize(new Dimension(200, 75));\n }", "private void initNoti() {\n lblNoti = new JLabel(\"\");\n\n springLayout.putConstraint(SpringLayout.WEST, lblNoti, 335, SpringLayout.WEST, estimationGame.getContentPane());\n springLayout.putConstraint(SpringLayout.SOUTH, lblNoti, -10, SpringLayout.NORTH, btnAvatarA);\n lblNoti.setForeground(new Color(224, 255, 255));\n lblNoti.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\n estimationGame.getContentPane().add(lblNoti);\n\t}", "private JPanel label() {\r\n\t\tJPanel position = new JPanel();\r\n\t\tJPanel positionLabelLigue = new JPanel();\r\n\t\tJPanel positionLabelnomadmin = new JPanel();\r\n\t\tJPanel positionLabelprenomadmin = new JPanel();\r\n\t\tJPanel positionLabeladresse = new JPanel();\r\n\r\n\t\t// On définit le layout en lui indiquant qu'il travaillera en ligne\r\n\t\tpositionLabelLigue.setLayout(new BoxLayout(positionLabelLigue,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabelLigue.add(nomLigue);\r\n\t\tpositionLabeladresse.setLayout(new BoxLayout(positionLabeladresse,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabeladresse.add(adresse);\r\n\t\tpositionLabelnomadmin.setLayout(new BoxLayout(positionLabelnomadmin,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabelnomadmin.add(nomAdmin);\r\n\t\tpositionLabelprenomadmin.setLayout(new BoxLayout(\r\n\t\t\t\tpositionLabelprenomadmin, BoxLayout.X_AXIS));\r\n\t\tpositionLabelprenomadmin.add(prenomAdmin);\r\n\r\n\t\t/*\r\n\t\t * positionnement en colonne des lignes précédemment crées grace a\r\n\t\t * position.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS))\r\n\t\t */\r\n\t\tposition.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS));\r\n\t\tposition.add(nomLigue);\r\n\t\t/*\r\n\t\t * la ligne suivante position.add(Box.createRigidArea(new\r\n\t\t * Dimension(10,5))) permet de créer un espace entre les composants du\r\n\t\t * panel adresse et nom administrateur et le nom de la ligue\r\n\t\t */\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(adresse);\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(nomAdmin);\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(prenomAdmin);\r\n\r\n\t\treturn position;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n sidePanel = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n lblDownloads = new javax.swing.JLabel();\n lblRequests = new javax.swing.JLabel();\n lblComments = new javax.swing.JLabel();\n\n setOpaque(false);\n\n sidePanel.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));\n sidePanel.setOpaque(false);\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/ijse/dl/client/view/images/logoNew.png\"))); // NOI18N\n\n javax.swing.GroupLayout sidePanelLayout = new javax.swing.GroupLayout(sidePanel);\n sidePanel.setLayout(sidePanelLayout);\n sidePanelLayout.setHorizontalGroup(\n sidePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(sidePanelLayout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 756, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 151, Short.MAX_VALUE))\n );\n sidePanelLayout.setVerticalGroup(\n sidePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(sidePanelLayout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n lblDownloads.setFont(new java.awt.Font(\"Verdana\", 0, 16)); // NOI18N\n lblDownloads.setForeground(new java.awt.Color(255, 255, 255));\n lblDownloads.setText(\"Downloads\");\n lblDownloads.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblDownloadsMouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n lblDownloadsMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n lblDownloadsMouseExited(evt);\n }\n });\n\n lblRequests.setFont(new java.awt.Font(\"Verdana\", 0, 16)); // NOI18N\n lblRequests.setForeground(new java.awt.Color(255, 255, 255));\n lblRequests.setText(\"Readers' Requests\");\n lblRequests.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblRequestsMouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n lblRequestsMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n lblRequestsMouseExited(evt);\n }\n });\n\n lblComments.setFont(new java.awt.Font(\"Verdana\", 0, 16)); // NOI18N\n lblComments.setForeground(new java.awt.Color(255, 255, 255));\n lblComments.setText(\"Readers Comments\");\n lblComments.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblCommentsMouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n lblCommentsMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n lblCommentsMouseExited(evt);\n }\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 .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblDownloads, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblRequests, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(lblComments, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(sidePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(117, 117, 117)\n .addComponent(lblRequests, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lblDownloads, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lblComments, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(229, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(sidePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addComponent(jSeparator1)\n );\n }", "public void addQuickClusterBox() {\n final JPanel label = new JPanel();\n label.setBackground(Browser.PANEL_BACKGROUND);\n label.setLayout(new BoxLayout(label, BoxLayout.Y_AXIS));\n final JTextField clusterTF = new Widget.MTextField(CLUSTER_NAME_PH);\n label.add(clusterTF);\n final List<JTextField> hostsTF = new ArrayList<JTextField>();\n for (int i = 1; i < 3; i++) {\n final JTextField nl = new Widget.MTextField(\"node\" + i + \"...\", 15);\n nl.setToolTipText(\"<html><b>enter the node name or ip</b><br>node\"\n + i + \"<br>or ...<br>\"\n + System.getProperty(\"user.name\")\n + \"@node\" + i + \":22...\" + \"<br>\");\n hostsTF.add(nl);\n nl.selectAll();\n final Font font = nl.getFont();\n final Font newFont = font.deriveFont(\n Font.PLAIN,\n (float) (font.getSize() / 1.2));\n nl.setFont(newFont);\n label.add(nl);\n }\n final JPanel startPanel = new JPanel(new BorderLayout());\n \n startPanel.setBackground(Browser.PANEL_BACKGROUND);\n final TitledBorder titleBorder = Tools.getBorder(QUICK_CLUSTER_TITLE);\n startPanel.setBorder(titleBorder);\n final JPanel left = new JPanel();\n left.setBackground(Browser.PANEL_BACKGROUND);\n left.add(label);\n startPanel.add(left, BorderLayout.LINE_START);\n final MyButton loadClusterBtn = quickClusterButton(clusterTF, hostsTF);\n startPanel.add(loadClusterBtn, BorderLayout.LINE_END);\n c.fill = GridBagConstraints.HORIZONTAL;\n if (c.gridx != 0) {\n c.gridx = 0;\n c.gridy++;\n }\n mainPanel.add(startPanel, c);\n c.gridx++;\n if (c.gridx > 2) {\n c.gridx = 0;\n c.gridy++;\n }\n }", "private JPanel getLabelPanel() {\r\n\t\tif (labelPanel == null) {\r\n\t\t\ttry {\r\n\t\t\t\tFlowLayout flowLayout = new FlowLayout();\r\n\t\t\t\tflowLayout.setHgap(10);\r\n\t\t\t\tflowLayout.setVgap(10);\r\n\t\t\t\tlabelPanel = new JPanel();\r\n\t\t\t\tlabelPanel.setLayout(flowLayout);\r\n\t\t\t\tlabelPanel.add(msgLabel, null);\r\n\t\t\t} catch (java.lang.Throwable e) {\r\n\t\t\t\t// TODO: Something\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn labelPanel;\r\n\t}", "private void initComponents() {\n\tthis.border = BorderFactory.createEtchedBorder();\n\tthis.setBorder(BorderFactory.createTitledBorder(border, \"DRINK\"));\n\tthis.jldrinkName = new JLabel(\"Name: \" + this.drink.getName());\n\tthis.jldrinkPrice = new JLabel(\"Price: \" + this.drink.getPrice() + \"€\");\n\n\tthis.add(this.jldrinkName);\n\tthis.add(this.jldrinkPrice);\n\n }", "private void geometry()\n\t\t{\n\t\tjLabelNickName = new JLabel(\"Pseudo: \");\n\t\tjLabelPort = new JLabel(\"Port: \");\n\t\tjNickname = new JTextField();\n\t\tjIPLabel = new JIPLabel();\n\t\tjIP = new JTextField();\n\t\tjPort = new JSpinner();\n\t\tjButtonConnection = new JButton(\"Connexion\");\n\n\t\tthis.setLayout(new GridLayout(-1, 1));\n\n\t\tthis.add(jLabelNickName);\n\t\tthis.add(jNickname);\n\t\tthis.add(jIPLabel);\n\t\tthis.add(jIP);\n\t\tthis.add(jLabelPort);\n\t\tthis.add(jPort);\n\t\tthis.add(Box.createVerticalStrut(SPACE));\n\t\tthis.add(jButtonConnection);\n\t\tthis.add(Box.createVerticalGlue());\n\t\t}", "private Label initHBoxLabel(HBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "private void createLabels() {\n addLabels(\"Dog Name:\", 160);\n addLabels(\"Weight:\", 180);\n addLabels(\"Food:\", 200);\n }", "private javax.swing.JLabel getJLabel() {\n\t\tif(jLabel == null) {\n\t\t\tjLabel = new javax.swing.JLabel();\n\t\t\tjLabel.setText(\"Porcentaje Vendido+Abonado:\");\n\t\t\tjLabel.setPreferredSize(new java.awt.Dimension(180,20));\n\t\t}\n\t\treturn jLabel;\n\t}", "private void initComponents()\n {\n // Attributes of the window\n int windowWidth = 450;\n \n // Get the content pane\n Container pane = this.getContentPane();\n pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));\n \n // The first row: wifi animated icon\n JPanel row0 = new JPanel();\n row0.setLayout(new BoxLayout(row0, BoxLayout.X_AXIS));\n wifiAnimatedIcon = new WiFiAnimatedIcon(250, FrmMainController.WINDOW_TOP_BACKGROUND);\n wifiAnimatedIcon.setPreferredSize(new Dimension(152, 252));\n row0.add(Box.createHorizontalGlue());\n row0.add(wifiAnimatedIcon);\n row0.add(Box.createHorizontalGlue());\n \n // The second row: notifications\n labelNotifications = new JLabel(\"Notifications ici\", SwingConstants.CENTER);\n labelNotifications.setFont(new Font(labelNotifications.getFont().getFontName(), Font.ITALIC, labelNotifications.getFont().getSize()));\n labelNotifications.setForeground(Color.GRAY);\n labelNotifications.setAlignmentX(Component.CENTER_ALIGNMENT);\n labelNotifications.setAlignmentY(Component.TOP_ALIGNMENT);\n setSize(labelNotifications, new Dimension(windowWidth, 15));\n \n // The third row: profile + connection state\n JPanel row2 = new JPanel();\n row2.setLayout(new BoxLayout(row2, BoxLayout.X_AXIS));\n labelProfile = new JLabel(\"SFR WiFi Public\", SwingConstants.CENTER);\n labelConnectionState = new JLabel(\"Connecté\", SwingConstants.CENTER);\n labelProfile.setFont(new Font(labelProfile.getFont().getName(), Font.BOLD, labelProfile.getFont().getSize()));\n labelConnectionState.setFont(new Font(labelConnectionState.getFont().getName(), Font.BOLD, labelConnectionState.getFont().getSize()));\n labelGroupSeparator = new JLabel(\"-\", SwingConstants.CENTER);\n labelGroupSeparator.setFont(new Font(labelGroupSeparator.getFont().getName(), Font.BOLD, labelGroupSeparator.getFont().getSize()));\n setSize(labelGroupSeparator, new Dimension(8, 20));\n Dimension colDimension0 = new Dimension((windowWidth - 19 - labelGroupSeparator.getWidth()) / 2 - 2, 20);\n JPanel p1 = new JPanel();\n p1.setLayout(new BoxLayout(p1, BoxLayout.X_AXIS));\n setSize(p1, colDimension0);\n JPanel p2 = new JPanel();\n p2.setLayout(new BoxLayout(p2, BoxLayout.X_AXIS));\n setSize(p2, colDimension0);\n // Left and right columns\n p1.add(Box.createHorizontalGlue());\n p1.add(labelProfile);\n p1.add(Box.createHorizontalGlue());\n p2.add(Box.createHorizontalGlue());\n p2.add(labelConnectionState);\n p2.add(Box.createHorizontalGlue());\n // The row\n row2.add(p1);\n row2.add(labelGroupSeparator);\n row2.add(p2);\n // THe border\n row2.setBorder(BorderFactory.createEtchedBorder());\n // Set the sizes\n setSize(row2, new Dimension(windowWidth - 19, 45));\n \n // Last row: buttons\n JPanel row3 = new JPanel();\n row3.setLayout(new BoxLayout(row3, BoxLayout.X_AXIS));\n // The last row, left column\n JPanel row3_col0 = new JPanel();\n row3_col0.setLayout(new BoxLayout(row3_col0, BoxLayout.Y_AXIS));\n buttonLaunchPause = new JButton(\"Marche\");\n setSize(buttonLaunchPause, new Dimension(140, 35));\n buttonLaunchPause.setAlignmentX(Component.CENTER_ALIGNMENT);\n labelAutoConnectState = new JLabel(\"Auto Connect en pause\", SwingConstants.CENTER);\n labelAutoConnectState.setForeground(Color.GRAY);\n labelAutoConnectState.setAlignmentX(Component.CENTER_ALIGNMENT);\n setSize(labelAutoConnectState, new Dimension(windowWidth / 2, 15));\n // Add components\n row3_col0.add(Box.createVerticalGlue());\n row3_col0.add(Box.createVerticalGlue());\n row3_col0.add(buttonLaunchPause);\n row3_col0.add(Box.createRigidArea(new Dimension(0, 3)));\n row3_col0.add(labelAutoConnectState);\n row3_col0.add(Box.createVerticalGlue());\n // The last row, right column\n JPanel row3_col1 = new JPanel();\n row3_col1.setLayout(new BoxLayout(row3_col1, BoxLayout.Y_AXIS));\n \tbuttonAutoManual = new JButton(\"Automatique\");\n setSize(buttonAutoManual, new Dimension(140, 35));\n buttonAutoManual.setAlignmentX(Component.CENTER_ALIGNMENT);\n labelAuthMode = new JLabel(\"Authentification manuelle\", SwingConstants.CENTER);\n labelAuthMode.setForeground(Color.GRAY);\n labelAuthMode.setAlignmentX(Component.CENTER_ALIGNMENT);\n setSize(labelAuthMode, new Dimension(windowWidth / 2, 15));\n // Add components\n row3_col1.add(Box.createVerticalGlue());\n row3_col1.add(Box.createVerticalGlue());\n row3_col1.add(buttonAutoManual);\n row3_col1.add(Box.createRigidArea(new Dimension(0, 3)));\n row3_col1.add(labelAuthMode);\n row3_col1.add(Box.createVerticalGlue());\n // A vertical border\n JLabel labelSeparator0 = new JLabel();\n Dimension labelSeparatorDimension = new Dimension(10, 70);\n setSize(labelSeparator0, labelSeparatorDimension);\n labelSeparator0.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n JLabel labelSeparator1 = new JLabel();\n setSize(labelSeparator1, new Dimension(6, 70));\n labelSeparator1.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n JLabel labelSeparator2 = new JLabel();\n setSize(labelSeparator2, labelSeparatorDimension);\n labelSeparator2.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n row3.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n // Add borders\n row3_col0.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n row3_col1.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n \n // Add components\n row3.add(labelSeparator0);\n row3.add(row3_col0);\n row3.add(labelSeparator1);\n row3.add(row3_col1);\n row3.add(labelSeparator2);\n // Set sizes\n Dimension colDimension1 = new Dimension(windowWidth / 2 - 2 * labelSeparator0.getWidth() / 2 - labelSeparator1.getWidth() / 2, 70);\n setSize(row3_col0, colDimension1);\n setSize(row3_col1, colDimension1);\n Dimension row3Dimension = new Dimension(windowWidth, row3.getHeight());\n row3.setMinimumSize(row3Dimension);\n row3.setSize(row3Dimension);\n row3.setMaximumSize(row3Dimension);\n // Set the color\n p1.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n p2.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n pane.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n row0.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n row2.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n row3_col0.setBackground(FrmMainController.WINDOW_BOTTOM_BACKGROUND);\n row3_col1.setBackground(FrmMainController.WINDOW_BOTTOM_BACKGROUND);\n \n // Add components\n pane.add(Box.createRigidArea(new Dimension(0, 15)));\n pane.add(row0);\n pane.add(Box.createRigidArea(new Dimension(0, 0)));\n pane.add(labelNotifications);\n pane.add(Box.createRigidArea(new Dimension(0, 8)));\n pane.add(row2);\n pane.add(Box.createRigidArea(new Dimension(0, 5)));\n pane.add(row3);\n pane.add(Box.createRigidArea(new Dimension(0, 10)));\n \n // Create the menu\n this.menuFile = new JMenu(\"Fichier\");\n this.menuProfiles = new JMenu(\"Profils\");\n this.menuHelp = new JMenu(\"Aide\");\n this.menuFile_Parameters = new JMenuItem(\"Paramètres\");\n this.menuFile_Quit = new JMenuItem(\"Quitter\");\n this.menuFile.add(this.menuFile_Parameters);\n if (OSUtil.IS_WINDOWS)\n this.menuFile.addSeparator();\n else\n this.menuFile.add(new JSeparatorExt());\n this.menuFile.add(this.menuFile_Quit);\n this.menuHelp_Update = new JMenuItem(\"Vérifier les mises à jour\");\n this.menuHelp_Doc = new JMenuItem(\"Documentation\");\n this.menuHelp_FAQ = new JMenuItem(\"FAQ\");\n this.menuHelp_About = new JMenuItem(\"À propos de WiFi Auto Connect\");\n this.menuHelp.add(this.menuHelp_Update);\n if (OSUtil.IS_WINDOWS)\n this.menuHelp.addSeparator();\n else\n this.menuHelp.add(new JSeparatorExt());\n this.menuHelp.add(this.menuHelp_Doc);\n this.menuHelp.add(this.menuHelp_FAQ);\n if (!OSUtil.IS_MAC) // On mac os, the About menu is present in the application menu\n {\n if (OSUtil.IS_WINDOWS)\n this.menuHelp.addSeparator();\n else\n this.menuHelp.add(new JSeparatorExt());\n this.menuHelp.add(this.menuHelp_About);\n }\n this.menuBar = new JMenuBar();\n if (!OSUtil.IS_MAC) // On mac os, Preferences & Quit are already present in the application menu\n this.menuBar.add(this.menuFile);\n this.menuBar.add(this.menuProfiles);\n this.menuBar.add(this.menuHelp);\n \n // Add shortcuts (mnemonics are added when we load texts for internationalization)\n this.menuFile_Quit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));\n this.menuHelp_Doc.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0));\n // Add the menu bar\n this.setJMenuBar(this.menuBar);\n \n // Full integration of the application in Mac OS\n if (OSUtil.IS_MAC)\n {\n Application.getApplication().setAboutHandler(new AboutHandler()\n {\n @Override\n public void handleAbout(AboutEvent arg0)\n {\n new FrmAbout(FrmMain.this, true).setVisible(true);\n }\n });\n Application.getApplication().setPreferencesHandler(new PreferencesHandler()\n {\n @Override\n public void handlePreferences(PreferencesEvent pe)\n {\n new FrmParameters(FrmMain.this, true).setVisible(true);\n }\n });\n Application.getApplication().addAppEventListener(new AppReOpenedListener()\n {\n @Override\n public void appReOpened(AppReOpenedEvent aroe)\n {\n setState(FrmMain.NORMAL);\n setVisible(true);\n }\n });\n }\n \n // Pack before to display\n this.pack();\n \n // Add event listeners\n buttonLaunchPause.addMouseListener(new MouseAdapter()\n {\n @Override\n public void mouseClicked(MouseEvent evt)\n {\n buttonLaunchPause_MouseClicked(evt);\n }\n });\n buttonAutoManual.addMouseListener(new MouseAdapter()\n {\n @Override\n public void mouseClicked(MouseEvent evt)\n {\n buttonAutoManual_MouseClicked(evt);\n }\n });\n menuHelp_About.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n new FrmAbout(FrmMain.this, true).setVisible(true);\n }\n });\n menuFile_Quit.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n System.exit(0);\n }\n });\n menuFile_Parameters.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n new FrmParameters(FrmMain.this, true).setVisible(true);\n }\n });\n \n // Create the system tray\n this.addApplicationSystemTray();\n \n // Set the other properties of the window\n FrmMain.setDefaultLookAndFeelDecorated(true);\n this.setTitle(FrmMainController.APP_NAME);\n this.setResizable(false);\n this.setIconImage(ResourcesUtil.APPLICATION_IMAGE);\n // Just hide\n this.setDefaultCloseOperation(HIDE_ON_CLOSE);\n // Add the tooltip of the system tray\n this.updateSystemTrayToolTip();\n // Center the window on the screen\n this.setLocationRelativeTo(null);\n }", "private javax.swing.JLabel getJLabel13() {\n\t\tif(jLabel13 == null) {\n\t\t\tjLabel13 = new javax.swing.JLabel();\n\t\t\tjLabel13.setText(\"Monto Pedidos:\");\n\t\t\tjLabel13.setPreferredSize(new java.awt.Dimension(105,20));\n\t\t\tjLabel13.setVerticalAlignment(javax.swing.SwingConstants.CENTER);\n\t\t\t//jLabel13.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1));\n\t\t\tjLabel13.setFocusable(false);\n\t\t}\n\t\treturn jLabel13;\n\t}", "private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n javax.swing.JLabel subjectLabel = new javax.swing.JLabel();\n subjectComponent = new javax.swing.JTextArea();\n javax.swing.JLabel holderLabel = new javax.swing.JLabel();\n javax.swing.JScrollPane holderScrollPane = new javax.swing.JScrollPane();\n holderComponent = new javax.swing.JTextArea();\n javax.swing.JLabel issuerLabel = new javax.swing.JLabel();\n javax.swing.JScrollPane issuerScrollPane = new javax.swing.JScrollPane();\n issuerComponent = new javax.swing.JTextArea();\n javax.swing.JLabel issuedLabel = new javax.swing.JLabel();\n issuedComponent = new javax.swing.JTextArea();\n javax.swing.JLabel notBeforeLabel = new javax.swing.JLabel();\n notBeforeComponent = new javax.swing.JTextArea();\n javax.swing.JLabel notAfterLabel = new javax.swing.JLabel();\n notAfterComponent = new javax.swing.JTextArea();\n javax.swing.JLabel consumerLabel = new javax.swing.JLabel();\n consumerComponent = new javax.swing.JTextArea();\n javax.swing.JLabel infoLabel = new javax.swing.JLabel();\n javax.swing.JScrollPane infoScrollPane = new javax.swing.JScrollPane();\n infoComponent = new javax.swing.JTextArea();\n\n setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createTitledBorder(format(LicenseWizardMessage.display_title)), javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10))); // NOI18N\n setName(DisplayPanel.class.getSimpleName());\n setLayout(new java.awt.GridBagLayout());\n\n subjectLabel.setLabelFor(subjectComponent);\n subjectLabel.setText(format(LicenseWizardMessage.display_subject)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(subjectLabel, gridBagConstraints);\n\n subjectComponent.setEditable(false);\n subjectComponent.setFont(getFont());\n subjectComponent.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n subjectComponent.setName(LicenseWizardMessage.display_subject.name());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(subjectComponent, gridBagConstraints);\n\n holderLabel.setLabelFor(holderComponent);\n holderLabel.setText(format(LicenseWizardMessage.display_holder)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(holderLabel, gridBagConstraints);\n\n holderScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n holderScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n holderScrollPane.setPreferredSize(new java.awt.Dimension(300, 65));\n\n holderComponent.setEditable(false);\n holderComponent.setFont(getFont());\n holderComponent.setLineWrap(true);\n holderComponent.setWrapStyleWord(true);\n holderComponent.setBorder(null);\n holderComponent.setName(LicenseWizardMessage.display_holder.name());\n holderScrollPane.setViewportView(holderComponent);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(holderScrollPane, gridBagConstraints);\n\n issuerLabel.setLabelFor(issuerComponent);\n issuerLabel.setText(format(LicenseWizardMessage.display_issuer)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(issuerLabel, gridBagConstraints);\n\n issuerScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n issuerScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n issuerScrollPane.setPreferredSize(new java.awt.Dimension(300, 65));\n\n issuerComponent.setEditable(false);\n issuerComponent.setFont(getFont());\n issuerComponent.setLineWrap(true);\n issuerComponent.setWrapStyleWord(true);\n issuerComponent.setBorder(null);\n issuerComponent.setName(LicenseWizardMessage.display_issuer.name());\n issuerScrollPane.setViewportView(issuerComponent);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(issuerScrollPane, gridBagConstraints);\n\n issuedLabel.setLabelFor(issuedComponent);\n issuedLabel.setText(format(LicenseWizardMessage.display_issued)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(issuedLabel, gridBagConstraints);\n\n issuedComponent.setEditable(false);\n issuedComponent.setFont(getFont());\n issuedComponent.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n issuedComponent.setName(LicenseWizardMessage.display_issued.name());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(issuedComponent, gridBagConstraints);\n\n notBeforeLabel.setLabelFor(notBeforeComponent);\n notBeforeLabel.setText(format(LicenseWizardMessage.display_notBefore)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(notBeforeLabel, gridBagConstraints);\n\n notBeforeComponent.setEditable(false);\n notBeforeComponent.setFont(getFont());\n notBeforeComponent.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n notBeforeComponent.setName(LicenseWizardMessage.display_notBefore.name());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(notBeforeComponent, gridBagConstraints);\n\n notAfterLabel.setLabelFor(notAfterComponent);\n notAfterLabel.setText(format(LicenseWizardMessage.display_notAfter)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(notAfterLabel, gridBagConstraints);\n\n notAfterComponent.setEditable(false);\n notAfterComponent.setFont(getFont());\n notAfterComponent.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n notAfterComponent.setName(LicenseWizardMessage.display_notAfter.name());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(notAfterComponent, gridBagConstraints);\n\n consumerLabel.setLabelFor(consumerComponent);\n consumerLabel.setText(format(LicenseWizardMessage.display_consumer)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(consumerLabel, gridBagConstraints);\n\n consumerComponent.setEditable(false);\n consumerComponent.setFont(getFont());\n consumerComponent.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n consumerComponent.setName(LicenseWizardMessage.display_consumer.name());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(consumerComponent, gridBagConstraints);\n\n infoLabel.setLabelFor(infoComponent);\n infoLabel.setText(format(LicenseWizardMessage.display_info)); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 7;\n gridBagConstraints.ipadx = 5;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING;\n add(infoLabel, gridBagConstraints);\n\n infoScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n infoScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n infoScrollPane.setPreferredSize(new java.awt.Dimension(300, 65));\n\n infoComponent.setEditable(false);\n infoComponent.setFont(getFont());\n infoComponent.setLineWrap(true);\n infoComponent.setWrapStyleWord(true);\n infoComponent.setBorder(null);\n infoComponent.setName(LicenseWizardMessage.display_info.name());\n infoScrollPane.setViewportView(infoComponent);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 7;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(infoScrollPane, gridBagConstraints);\n }", "public ClientFrame()\n {\n super(\"Client\");\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setLayout(new GridBagLayout());\n setBackground(Color.yellow);\n setSize(450, 300);\n setResizable(false);\n\n setTitle(agent.getHandle());\n agent.setClient(this);\n\n addButtons();\n\n // sets the frame to be visible\n setVisible(true);\n }", "private void createGrpLabel() {\n\n\t\tgrpLabel = new Group(grpPharmacyDetails, SWT.NONE);\n\t\tgrpLabel.setText(\"Preview of Label\");\n\t\tgrpLabel.setBounds(new Rectangle(390, 40, 310, 230));\n\t\tgrpLabel.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\n\t\tcanvasLabel = new Canvas(grpLabel, SWT.NONE);\n\t\tcanvasLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 18,\n\t\t\t\t285, 200));\n\t\tcanvasLabel.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tcreateCanvasBorders();\n\n\t\tlblCanvasPharmName = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasPharmName.setText(\"Facility Name\");\n\t\tlblCanvasPharmName.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasPharmName.setBackground(ResourceUtils\n\t\t\t\t.getColor(iDartColor.WHITE));\n\t\tlblCanvasPharmName.setBounds(5, 6, 273, 20);\n\t\tlblCanvasPharmName\n\t\t.setFont(ResourceUtils.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasPharmName.setAlignment(SWT.CENTER);\n\n\t\tlblCanvasPharmacist = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasPharmacist.setText(\"Pharmacist\");\n\t\tlblCanvasPharmacist\n\t\t.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasPharmacist.setBackground(ResourceUtils\n\t\t\t\t.getColor(iDartColor.WHITE));\n\t\tlblCanvasPharmacist.setBounds(5, 27, 273, 20);\n\t\tlblCanvasPharmacist.setFont(ResourceUtils\n\t\t\t\t.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasPharmacist.setAlignment(SWT.CENTER);\n\n\t\tlblCanvasAddress = new Label(canvasLabel, SWT.NONE);\n\t\tlblCanvasAddress.setText(\"Physical Address\");\n\t\tlblCanvasAddress.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tlblCanvasAddress\n\t\t.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tlblCanvasAddress.setBounds(5, 49, 273, 20);\n\t\tlblCanvasAddress.setFont(ResourceUtils.getFont(iDartFont.VERASANS_10));\n\t\tlblCanvasAddress.setAlignment(SWT.CENTER);\n\n\t}", "private void drawDynamicLabels(Graphics2D g2d, RenderContext myrc, String dyn_labeler_copy) {\n long start_time = System.currentTimeMillis();\n\t// Get the node information for the one directly under the mouse\n\tString str;\n if (myrc.node_coord_set.get(dyn_labeler_copy).size() == 1) { // It's a single node -- just get the first string\n\t str = myrc.node_coord_set.get(dyn_labeler_copy).iterator().next();\n\t} else { // It's a group node -- summarize appropriately\n\t str = Utils.calculateCIDR(myrc.node_coord_set.get(dyn_labeler_copy)); \n\t}\n\tPoint2D pt = myrc.node_coord_lu.get(dyn_labeler_copy);\n\tint txt_w = Utils.txtW(g2d,str), txt_h = Utils.txtH(g2d,str);\n\tclearStr(g2d, str, (int) (pt.getX() - txt_w/2), (int) (pt.getY() + 2*txt_h), RTColorManager.getColor(\"label\", \"defaultfg\"), RTColorManager.getColor(\"label\", \"defaultbg\"));\n\tArea already_taken = new Area(new Rectangle2D.Double(pt.getX()-txt_w/2,pt.getY()+txt_h,txt_w,txt_h));\n\n\t// Draw the neighbors\n Set<String> set = myrc.node_coord_set.get(entity_to_sxy.get(str));\n\tif (set != null) {\n\t // First iteration is to make sure the actual geometrical shapes are in the \"already_taken\" area\n Iterator<String> it = set.iterator();\n\t while (it.hasNext() && (System.currentTimeMillis() - start_time < 1000L)) {\n\t String node = it.next();\n int node_i = graph.getEntityIndex(node);\n\t for (int i=0;i<graph.getNumberOfNeighbors(node_i);i++) {\n\t int nbor_i = graph.getNeighbor(node_i, i);\n\t String nbor = graph.getEntityDescription(nbor_i);\n\t if (entity_to_sxy.containsKey(nbor)) { \n Shape shape = myrc.node_to_geom.get(entity_to_sxy.get(nbor));\n\t\tif (shape != null) {\n\t g2d.setColor(RTColorManager.getColor(\"label\", \"major\")); g2d.draw(shape);\n\t Rectangle2D bounds = shape.getBounds2D(); already_taken.add(new Area(bounds));\n\t\t}\n\t }\n\t }\n\t }\n\t // Second iteration actually places them\n it = set.iterator();\n\t while (it.hasNext() && (System.currentTimeMillis() - start_time < 1000L)) {\n\t String node = it.next();\n int node_i = graph.getEntityIndex(node);\n\t for (int i=0;i<graph.getNumberOfNeighbors(node_i);i++) {\n\t int nbor_i = graph.getNeighbor(node_i, i);\n\t String nbor = graph.getEntityDescription(nbor_i);\n\t if (entity_to_sxy.containsKey(nbor)) { \n Shape shape = myrc.node_to_geom.get(entity_to_sxy.get(nbor));\n\t\tif (shape != null) {\n\t g2d.setColor(RTColorManager.getColor(\"label\", \"major\")); g2d.draw(shape);\n\t Rectangle2D bounds = shape.getBounds2D();\n\t\t txt_w = Utils.txtW(g2d,nbor); \n\t\t txt_h = Utils.txtH(g2d,nbor);\n\t\t Rectangle2D nbor_rect = new Rectangle2D.Double(bounds.getCenterX() - txt_w/2, bounds.getMaxY() + 0.1*txt_h, txt_w, txt_h);\n\t\t // Find a good location for the text rectangle -- needs to check for overlap with other rectangles\n\t\t int iteration = 0; boolean original = true; \n\t\t double dx = bounds.getCenterX() - pt.getX(), dy = bounds.getCenterY() - pt.getY(); double len = Math.sqrt(dx*dx+dy*dy);\n\t\t if (len < 0.001) { len = 1.0; dx = 0.0; dy = 1.0; } dx /= len; dy /= len; // Normalize the vector\n\t\t double pdx = -dy, pdy = dx; // Perpendicular vectors\n\t\t while (iteration < 20 && already_taken.intersects(nbor_rect)) { // search for a better location\n\t\t double distance = 15 * iteration / 3, perp_distance = 10 * ((iteration % 3) - 1);\n\t\t nbor_rect = new Rectangle2D.Double(bounds.getCenterX() - txt_w/2 + dx*distance + pdx*perp_distance, \n\t\t bounds.getMaxY() + 0.1*txt_h + dy*distance + pdy*perp_distance, \n\t\t\t\t\t\t txt_w, txt_h);\n iteration++; original = false;\n }\n\t\t if (original == false) g2d.drawLine((int) nbor_rect.getCenterX(), (int) nbor_rect.getCenterY(), (int) bounds.getCenterX(), (int) bounds.getCenterY());\n\t clearStr(g2d, nbor, (int) nbor_rect.getMinX(), (int) nbor_rect.getMaxY(), RTColorManager.getColor(\"label\", \"defaultfg\"), RTColorManager.getColor(\"label\", \"defaultbg\"));\n\t\t already_taken.add(new Area(nbor_rect));\n\t }\n }\n\t }\n\t }\n\t}\n }", "private void initializeStateLabel() {\n colorLabel = new JLabel(\"Color: \");\n colorLabel.setBounds(200, 20, 100, 25);\n this.add(colorLabel);\n\n colorLabel2 = new JLabel();\n colorLabel2.setBounds(250, 20, 25, 25);\n colorLabel2.setOpaque(true);\n //colorLabel2.setBackground(java.awt.Color.black);\n this.add(colorLabel2);\n\n numberLabel = new JLabel();\n numberLabel.setBounds(300, 20, 200, 25);\n this.add(numberLabel);\n\n specialLabel = new JLabel();\n specialLabel.setBounds(400, 20, 200, 25);\n this.add(specialLabel);\n\n penaltyLabel = new JLabel();\n penaltyLabel.setBounds(600, 20, 200, 25);\n this.add(penaltyLabel);\n\n currPlayerLabel = new JLabel();\n currPlayerLabel.setBounds(0, 300, 200, 50);\n currPlayerLabel.setFont(new Font(\"Arial\", Font.PLAIN, 20));\n this.add(currPlayerLabel);\n\n errorMessage = new JLabel(\"Select a valid card, or draw a new card\");\n errorMessage.setBounds(400, 300, 300, 25);\n this.add(errorMessage);\n errorMessage.setVisible(false);\n }", "public ClientGUI() {\n initComponents();\n }", "public ClientGUI() {\n initComponents();\n }", "private void initUI()\r\n\t{\r\n\t\tthis.label = new Label();\r\n\t\t\r\n\t\tthis.label.setText(\"This view is also saveable\");\r\n\t\t\r\n\t\tthis.label.setSizeUndefined();\r\n\t\tthis.add(this.label);\r\n\t\tthis.setSizeFull();\r\n\t}", "@Override\n public void update(Observable observable) {\n Client c = (Client)observable;\n JLabel l = labels.get(c.getID());\n selectColor(l, c);\n }", "private javax.swing.JLabel getJLabel20() {\n\t\tif(jLabel20 == null) {\n\t\t\tjLabel20 = new javax.swing.JLabel();\n\t\t\tjLabel20.setText(\"Monto:\");\n\t\t\tjLabel20.setPreferredSize(new java.awt.Dimension(70,20));\n\t\t\tjLabel20.setVerticalAlignment(javax.swing.SwingConstants.CENTER);\n\t\t\tjLabel20.setFocusable(false);\n\t\t}\n\t\treturn jLabel20;\n\t}", "private void criaLabel(String nome, int eixoY) {\r\n\t\tJLabel nova = new JLabel(nome);\r\n\t\tnova.setFont(new Font(\"Arial\", Font.PLAIN, 14));\r\n\t\tnova.setForeground(Color.BLACK);\r\n\t\tnova.setBounds(28, eixoY, 70, 14);\r\n\t\tpainelPrincipal.add(nova);\r\n\t}", "public static void EmployeeAddress() {\r\n\t\t\r\n\t\tJLabel e2 = new JLabel(\"Employee's Address:\");\r\n\t\te2.setFont(f);\r\n\t\tGUI1Panel.add(e2);\r\n\t\tGUI1Panel.add(employeeAddress);\r\n\t\te2.setHorizontalAlignment(JLabel.LEFT);\r\n\t\tGUI1Panel.add(Box.createHorizontalStrut(5));\r\n\t\t\t\r\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 initialize() {\r\n\t\tjLabel = new JLabel();\r\n\t\tsuper.setName(aplicacion.getI18nString(\"SelectSheetLayerPrintPanel.Name\"));\r\n\t\tjava.awt.GridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\tjava.awt.GridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\tthis.setLayout(new GridBagLayout());\r\n\t\tthis.setSize(365, 274);\r\n\t\tgridBagConstraints1.gridx = 0;\r\n\t\tgridBagConstraints1.gridy = 0;\r\n\t\tgridBagConstraints1.anchor = java.awt.GridBagConstraints.EAST;\r\n\t\tgridBagConstraints1.insets = new java.awt.Insets(0,34,0,0);\r\n\t\tgridBagConstraints2.gridwidth = 2;\r\n\t\tgridBagConstraints2.insets = new java.awt.Insets(0,0,0,40);\r\n\t\tthis.add(jLabel, gridBagConstraints1);\r\n\t\tthis.add(getJComboBox(), gridBagConstraints2);\r\n\t\tjLabel.setText(aplicacion.getI18nString(\"cbSheetLayer\")+\": \");\r\n\t\tgridBagConstraints2.gridx = 1;\r\n\t\tgridBagConstraints2.gridy = 0;\r\n\t\tgridBagConstraints2.weightx = 1.0;\r\n\t\tgridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n \r\n\t}", "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 }", "private void init(){\n\t\tbtn.setLabel(name);\n\t\tlbl.setText(\"\"+price+\" C\");\n\t\t\n\t\tlbl.setBackground(Color.lightGray);\n\t\tlbl.setFocusable(false);\n\t\tlbl.setPreferredSize(new Dimension(50,24));\n\t\tsetLayout(new GridBagLayout());\n\t\tadd(btn,new GridBagConstraints(0,0,1,1,1.0,0.0,\n\t\t\t GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL,\n\t\t\t new Insets(5,10,0,0),10,4));\n\t\tadd(lbl,new GridBagConstraints(1,0,1,1,0.0,0.0,\n\t\t\t GridBagConstraints.CENTER,GridBagConstraints.NONE,\n\t\t\t new Insets(5,15,0,0),50,0));\n\t\tadd(wnd,new GridBagConstraints(2,0,1,1,0.0,0.0,\n\t\t\t GridBagConstraints.WEST,GridBagConstraints.NONE,\n\t\t\t new Insets(5,4,0,0),10,0));\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 }", "public Display(){\n GridLayout layout = new GridLayout(1,DIGIT_COUNT);\n setLayout(layout);\n for (int i = 0; i < labels.length; i++) {\n labels[i] = new JLabel();\n labels[i].setIcon(numbers[0]);\n add(labels[i]);\n }\n\n setNumber(0);\n }", "public JLabel getJLabel(String txt) {\r\n\t\treturn new JLabel(txt);\r\n\t}", "private void setLabels()\r\n\t{\r\n\t\tbubbleL = new JLabel(\"Bubble Sort\");\r\n\t\tinsertionL = new JLabel(\"Insertion Sort\");\r\n\t\tmergeL = new JLabel(\"Merge Sort\");\r\n\t\tquickL = new JLabel(\"Quick Sort\");\r\n\t\tradixL = new JLabel(\"Radix Sort\");\r\n\t}", "private JPanel getPanelLocalProxy() {\n \t\tif (panelLocalProxy == null) {\n \t\t\tjLabel6 = new JLabel();\n \t\t\tGridBagConstraints gridBagConstraints15 = new GridBagConstraints();\n \t\t\tjava.awt.GridBagConstraints gridBagConstraints7 = new GridBagConstraints();\n \t\t\tjava.awt.GridBagConstraints gridBagConstraints6 = new GridBagConstraints();\n \t\t\tjava.awt.GridBagConstraints gridBagConstraints5 = new GridBagConstraints();\n \t\t\tjava.awt.GridBagConstraints gridBagConstraints4 = new GridBagConstraints();\n \n \t\t\tjavax.swing.JLabel jLabel = new JLabel();\n \t\t\tjavax.swing.JLabel jLabel1 = new JLabel();\n \t\t\t\n \t\t\tpanelLocalProxy = new JPanel();\n \t\t\tpanelLocalProxy.setLayout(new GridBagLayout());\n \t\t\tpanelLocalProxy.setBorder(javax.swing.BorderFactory.createTitledBorder(\n \t\t\t\t\tnull, this.extension.getMessages().getString(\"spiderajax.proxy.local.title\"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, \n \t\t\t\t\tjavax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN, 11), java.awt.Color.black));\t// ZAP: i18n\n \t\t\tjLabel.setText(\"Address (eg localhost, 127.0.0.1)\");\n \t\t\tgridBagConstraints4.gridx = 0;\n \t\t\tgridBagConstraints4.gridy = 0;\n \t\t\tgridBagConstraints4.ipadx = 0;\n \t\t\tgridBagConstraints4.ipady = 0;\n \t\t\tgridBagConstraints4.anchor = java.awt.GridBagConstraints.WEST;\n \t\t\tgridBagConstraints4.insets = new java.awt.Insets(2,2,2,2);\n \t\t\tgridBagConstraints4.weightx = 0.5D;\n \t\t\tgridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints5.gridx = 1;\n \t\t\tgridBagConstraints5.gridy = 0;\n \t\t\tgridBagConstraints5.weightx = 0.5D;\n \t\t\tgridBagConstraints5.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints5.ipadx = 50;\n \t\t\tgridBagConstraints5.ipady = 0;\n \t\t\tgridBagConstraints5.anchor = java.awt.GridBagConstraints.EAST;\n \t\t\tgridBagConstraints5.insets = new java.awt.Insets(2,2,2,2);\n \t\t\tgridBagConstraints6.gridx = 0;\n \t\t\tgridBagConstraints6.gridy = 1;\n \t\t\tgridBagConstraints6.ipadx = 0;\n \t\t\tgridBagConstraints6.ipady = 0;\n \t\t\tgridBagConstraints6.anchor = java.awt.GridBagConstraints.WEST;\n \t\t\tgridBagConstraints6.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints6.insets = new java.awt.Insets(2,2,2,2);\n \t\t\tgridBagConstraints6.weightx = 0.5D;\n \t\t\tgridBagConstraints7.gridx = 1;\n \t\t\tgridBagConstraints7.gridy = 1;\n \t\t\tgridBagConstraints7.weightx = 0.5D;\n \t\t\tgridBagConstraints7.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints7.ipadx = 50;\n \t\t\tgridBagConstraints7.ipady = 0;\n \t\t\tgridBagConstraints7.anchor = java.awt.GridBagConstraints.EAST;\n \t\t\tgridBagConstraints7.insets = new java.awt.Insets(2,2,2,2);\n \t\t\t\n \t\n \t\t\t\n \t\t\t\n \t\t\tjLabel1.setText(this.extension.getMessages().getString(\"spiderajax.proxy.local.label.port\"));\n \t\t\tjLabel6.setText(this.extension.getMessages().getString(\"spiderajax.proxy.local.label.browser\"));\n \t\t\tgridBagConstraints15.anchor = java.awt.GridBagConstraints.NORTHWEST;\n \t\t\tgridBagConstraints15.gridx = 0;\n \t\t\tgridBagConstraints15.gridy = 4;\n \t\t\tgridBagConstraints15.insets = new java.awt.Insets(2,2,2,2);\n \t\t\tgridBagConstraints15.weightx = 1.0D;\n \t\t\tgridBagConstraints15.fill = java.awt.GridBagConstraints.HORIZONTAL;\n \t\t\tgridBagConstraints15.gridwidth = 2;\n \t\t\tpanelLocalProxy.add(jLabel, gridBagConstraints4);\n \t\t\tpanelLocalProxy.add(getTxtProxyIp(), gridBagConstraints5);\n \t\t\tpanelLocalProxy.add(jLabel1, gridBagConstraints6);\n \t\t\tpanelLocalProxy.add(getSpinnerProxyPort(), gridBagConstraints7);\n \t\t\tpanelLocalProxy.add(jLabel6, gridBagConstraints15);\n \t\t\t\n \t\t}\n \t\treturn panelLocalProxy;\n \t}", "private javax.swing.JLabel getJLabel17() {\n\t\tif(jLabel17 == null) {\n\t\t\tjLabel17 = new javax.swing.JLabel();\n\t\t\tjLabel17.setText(\"Monto:\");\n\t\t\tjLabel17.setPreferredSize(new java.awt.Dimension(70,20));\n\t\t\tjLabel17.setVerticalAlignment(javax.swing.SwingConstants.CENTER);\n\t\t\t//jLabel12.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1));\n\t\t\tjLabel17.setFocusable(false);\n\t\t}\n\t\treturn jLabel17;\n\t}", "private javax.swing.JLabel getJLabel22() {\n\t\tif(jLabel22 == null) {\n\t\t\tjLabel22 = new javax.swing.JLabel();\n\t\t\tjLabel22.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12));\n\t\t\tjLabel22.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\t\t\tjLabel22.setText(\"N/A\");\n\t\t\tjLabel22.setPreferredSize(new java.awt.Dimension(30,20));\n\t\t\tjLabel22.setVerticalAlignment(javax.swing.SwingConstants.CENTER);\n\t\t\tjLabel22.setFocusable(false);\n\t\t}\n\t\treturn jLabel22;\n\t}", "private void initialize(PeerList peerList, Peer user) {\r\n\t\tclient = new Client(peerList,user);\r\n\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 880, 584);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tclient.setConnected(true);\r\n\t\tclient.listenServer();\r\n\t\tclient.listenPeers();\r\n\t\tif(peerList.getList().size()>0) {\r\n\t\t\tfor(Peer aPeer:peerList.getList()) {\r\n\t\t\t\tif(!(aPeer.getUsername().compareTo(theUser.getUsername())==0)){\r\n\t\t\t\t\tlistModel.add(modelIndex,aPeer.getUsername());\r\n\t\t\t\t\tmodelIndex++;\r\n\t\t\t\t}\r\n\t\t\t\tif(modelIndex>0) {\r\n\t\t\t\t\tlist = new JList<String>(listModel);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tlistModel.add(0, \"No Peers Online\");\r\n\t\t\t\t\tlist = new JList<String>(listModel);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlistModel.add(0, \"No Peers Online\");\r\n\t\t\tlist = new JList<String>(listModel);\t\r\n\t\t}\r\n\t\t\r\n\t\tlist.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t public void mouseClicked(MouseEvent evt) {\r\n\t\t JList<String> list = (JList<String>)evt.getSource();\r\n\t\t if (evt.getClickCount() == 2) {\r\n\t\t \t\r\n\t\t // When the user double clicks on the peer list, the messageList gets populated\r\n\t\t \t// with the messages from that peers conversation.\r\n\t\t int index = list.locationToIndex(evt.getPoint());\r\n\t\t String peerName = list.getComponent(index).toString();\r\n\t\t selectedPeer = peerList.getPeer(peerName);\r\n\t\t if (!selectedPeer.getMessageList().isEmpty()) {\r\n\t\t\t\t\r\n\t\t\t\t\t\tString peerMessages = selectedPeer.getMessageListString();\r\n\t\t\t\t\t\tmessageListContent.setText(peerMessages);\r\n\t\t\t\t\t}\r\n\t\t \r\n\t\t }\r\n\t\t }\r\n\t\t});\t\t\r\n\t\tJLabel lblPeers = new JLabel(\"Peers\");\r\n\t\tlblPeers.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\r\n\t\t\r\n\t\tJLabel lblmessageListContent = new JLabel(\"Message List:\");\r\n\t\tlblmessageListContent.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\r\n\t\t\r\n\t\tJLabel lblMessage = new JLabel(\"Message:\");\r\n\t\tlblMessage.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\r\n\t\t\r\n\t\tmessageListContent = new JTextArea();\r\n\t\tmessageListContent.setLineWrap(true);\r\n\t\tmessageListContent.setFont(new Font(\"Monospaced\", Font.PLAIN, 15));\r\n\t\tmessageListContent.setEditable(false);\r\n\t\t\r\n\t\tJTextArea messageBox = new JTextArea();\r\n\t\tmessageBox.setLineWrap(true);\r\n\t\tmessageBox.setToolTipText(\"Enter your text here\");\r\n\t\t\r\n\t\tmessageBox.setRows(5);\r\n\t\t\r\n\t\tJButton send = new JButton(\"Send\");\r\n\t\t//When the send button is clicked, the contents of the message box are cleared and sent to the selected peer.\r\n\t\tsend.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif(selectedPeer != null) {\r\n\t\t\t\t\tMessage sentMessage = new Message(messageBox.getText(),client.getTheUser().getUsername());\r\n\t\t\t\t\tclient.sendToPeer(sentMessage,selectedPeer,clientPort);\r\n\t\t\t\t\tmessageListContent.append(\"Sent:\"+sentMessage.toString());\r\n\t\t\t\t\tmessageBox.setText(null);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane(messageListContent,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\t\r\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\r\n\t\tgroupLayout.setHorizontalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t.addGap(35)\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addComponent(lblPeers, GroupLayout.PREFERRED_SIZE, 217, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addComponent(list, GroupLayout.PREFERRED_SIZE, 227, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t.addGap(48)\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addComponent(lblmessageListContent, GroupLayout.PREFERRED_SIZE, 217, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addComponent(lblMessage, GroupLayout.PREFERRED_SIZE, 217, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addComponent(messageBox, GroupLayout.PREFERRED_SIZE, 474, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t\t.addComponent(send))\r\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addComponent(messageListContent, GroupLayout.PREFERRED_SIZE, 530, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t\t.addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\r\n\t\t\t\t\t.addGap(17))\r\n\t\t);\r\n\t\tgroupLayout.setVerticalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.TRAILING)\r\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t.addContainerGap()\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\r\n\t\t\t\t\t\t.addComponent(lblmessageListContent, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addComponent(lblPeers, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addGroup(Alignment.TRAILING, groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t\t\t.addComponent(messageListContent, GroupLayout.PREFERRED_SIZE, 308, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t\t\t\t.addGap(18)\r\n\t\t\t\t\t\t\t\t\t.addComponent(lblMessage, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t\t\t\t.addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\r\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)\r\n\t\t\t\t\t\t\t\t.addComponent(send, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n\t\t\t\t\t\t\t\t.addComponent(messageBox, GroupLayout.DEFAULT_SIZE, 88, Short.MAX_VALUE))\r\n\t\t\t\t\t\t\t.addGap(14))\r\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\r\n\t\t\t\t\t\t\t.addComponent(list, GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE)\r\n\t\t\t\t\t\t\t.addContainerGap())))\r\n\t\t);\r\n\t\tframe.getContentPane().setLayout(groupLayout);\r\n\t\t\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\t\r\n\t\tJMenu mnFile = new JMenu(\"File\");\r\n\t\tmenuBar.add(mnFile);\r\n\t\t\r\n\t\tJMenuItem mntmNewMenuItem = new JMenuItem(\"New menu item\");\r\n\t\tmnFile.add(mntmNewMenuItem);\r\n\t\t\r\n\t\tJMenuItem mntmNewMenuItem_1 = new JMenuItem(\"New menu item\");\r\n\t\tmnFile.add(mntmNewMenuItem_1);\r\n\t\t\r\n\t\tJMenu mnHelp = new JMenu(\"Help\");\r\n\t\tmenuBar.add(mnHelp);\r\n\t}", "private void setErrorUI() {\n err = new JLabel(\" \");\n err.setBorder(BorderFactory.createMatteBorder(0, 15, 0, 15, new Color(248, 248, 251)));\n err.setFont(new Font(\"Nunito\", Font.PLAIN, 12));\n err.setForeground(new Color(247, 37, 133));\n err.setAlignmentX(Component.CENTER_ALIGNMENT);\n }", "private void setDateLabel() {\n dateFormat = new SimpleDateFormat(\"MMMMM dd, yyyy\");\n dateLabel = new JLabel();\n dateLabel.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n dateLabel.setBackground(Color.black);\n dateLabel.setForeground(new Color(0xAB00FF));\n dateLabel.setOpaque(true);\n add(dateLabel);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblIcon = new javax.swing.JLabel();\n lblSeparator1 = new javax.swing.JLabel();\n lblName = new javax.swing.JLabel();\n btnKick = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(30, 30, 30));\n\n lblIcon.setPreferredSize(new java.awt.Dimension(30, 30));\n\n lblSeparator1.setPreferredSize(new java.awt.Dimension(5, 30));\n\n lblName.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n lblName.setForeground(new java.awt.Color(255, 255, 255));\n lblName.setText(\"???\");\n lblName.setPreferredSize(new java.awt.Dimension(115, 30));\n\n btnKick.setText(\"X\");\n btnKick.setPreferredSize(new java.awt.Dimension(40, 30));\n btnKick.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnKickActionPerformed(evt);\n }\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 .addComponent(lblIcon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(lblSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(lblName, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(btnKick, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblIcon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnKick, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, 0))\n );\n }", "private JPanel initResPanel() {\n // Initiate the layout\n JPanel namePanel = new JPanel();\n GroupLayout NamePanelLayout = new GroupLayout(namePanel);\n namePanel.setLayout(NamePanelLayout);\n namePanel.setBackground(new Color(107, 0, 21));\n\n // Initiate the needed components\n detail = model.getRestaurantName();\n JLabel resName = new JLabel(detail);\n resName.setForeground(Color.white);\n resName.setFont(new Font(\"Tahoma\", 1, 12));\n\n detail = model.getAddress();\n JLabel add = new JLabel(detail);\n add.setForeground(Color.white);\n\n detail = model.getPhone();\n JLabel phone = new JLabel(detail);\n phone.setForeground(Color.white);\n\n User current = controller.getEZmodel().getCurrent();\n detail = current.getName() + \" (\" + current.getUsername() + \")\";\n JLabel currentUser = new JLabel(detail);\n currentUser.setForeground(Color.white);\n currentUser.setFont(new Font(\"Tahoma\", 1, 12));\n\n Calendar c = new GregorianCalendar();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n String m = (minute > 9) ? minute + \"\" : \"0\" + minute;\n int second = c.get(Calendar.SECOND);\n detail = rb.getString(\"Edited at \") + hour + \":\" + m + \":\"\n + second;\n JLabel createdTime = new JLabel(detail);\n createdTime.setForeground(Color.white);\n\n int date = c.get(Calendar.DAY_OF_MONTH);\n int year = c.get(Calendar.YEAR);\n String[] months = {rb.getString(\"Jan\"), rb.getString(\"Feb\"),\n rb.getString(\"Mar\"), rb.getString(\"Apr\"), rb.getString(\"May\"),\n rb.getString(\"Jun\"), rb.getString(\"Jul\"), rb.getString(\"Aug\"),\n rb.getString(\"Sep\"), rb.getString(\"Oct\"), rb.getString(\"Nov\"),\n rb.getString(\"Dec\")};\n String month = months[c.get(Calendar.MONTH)];\n detail = date + \" \" + month + \", \" + year;\n JLabel createdDate = new JLabel(detail);\n createdDate.setForeground(Color.white);\n\n // Set the layout\n NamePanelLayout.setHorizontalGroup(\n NamePanelLayout.createParallelGroup(\n GroupLayout.Alignment.LEADING).\n addGroup(NamePanelLayout.createSequentialGroup().\n addContainerGap().addGroup(\n NamePanelLayout.createParallelGroup(\n GroupLayout.Alignment.LEADING).\n addGroup(NamePanelLayout.createSequentialGroup().\n addComponent(resName).addPreferredGap(\n LayoutStyle.ComponentPlacement.RELATED, 124,\n Short.MAX_VALUE).\n addComponent(currentUser)).addGroup(\n NamePanelLayout.createSequentialGroup().addComponent(add).\n addPreferredGap(LayoutStyle.ComponentPlacement.RELATED,\n 223, Short.MAX_VALUE).\n addComponent(createdTime)).addGroup(\n NamePanelLayout.createSequentialGroup().addComponent(phone).\n addPreferredGap(\n LayoutStyle.ComponentPlacement.RELATED, 251,\n Short.MAX_VALUE).addComponent(createdDate))).\n addContainerGap()));\n NamePanelLayout.setVerticalGroup(\n NamePanelLayout.createParallelGroup(\n GroupLayout.Alignment.LEADING).\n addGroup(NamePanelLayout.createSequentialGroup().\n addContainerGap().addGroup(\n NamePanelLayout.createParallelGroup(\n GroupLayout.Alignment.BASELINE).\n addComponent(resName).addComponent(currentUser)).\n addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).\n addGroup(NamePanelLayout.createParallelGroup(\n GroupLayout.Alignment.BASELINE).\n addComponent(add).addComponent(createdTime)).\n addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).\n addGroup(NamePanelLayout.createParallelGroup(\n GroupLayout.Alignment.BASELINE).\n addComponent(phone).addComponent(createdDate)).\n addContainerGap(GroupLayout.DEFAULT_SIZE,\n Short.MAX_VALUE)));\n\n namePanel.setSize(400, 150);\n return namePanel;\n }", "protected JLabel makeLabel(String s) {\n JLabel label = new JLabel(s);\n label.setFont(new Font(QuizAppUtilities.UI_FONT, Font.PLAIN, 16));\n\n return label;\n }", "private javax.swing.JLabel getLblOSName() {\n\tif (ivjLblOSName == null) {\n\t\ttry {\n\t\t\tivjLblOSName = new javax.swing.JLabel();\n\t\t\tivjLblOSName.setName(\"LblOSName\");\n\t\t\tivjLblOSName.setText(\"Name:\");\n\t\t\tivjLblOSName.setBounds(10, 20, 140, 14);\n\t\t\t// user code begin {1}\n ivjLblOSName.setText(ResourceManager.getResource(PlatformInfoPanel.class, \"LblOSName_text\"));\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 ivjLblOSName;\n}" ]
[ "0.6827183", "0.67986196", "0.6733335", "0.662729", "0.65771794", "0.6508204", "0.6454246", "0.6371915", "0.6318401", "0.63122505", "0.6299271", "0.6284078", "0.6277824", "0.62695915", "0.6238899", "0.621728", "0.6217106", "0.62030315", "0.61971223", "0.61922216", "0.61413354", "0.6055521", "0.60503477", "0.6047581", "0.60324204", "0.60301495", "0.60234654", "0.60170996", "0.60070246", "0.60063815", "0.59944993", "0.59602517", "0.5957103", "0.59509563", "0.594736", "0.5947269", "0.59271497", "0.5927147", "0.5918037", "0.5914033", "0.5901086", "0.5896874", "0.5896874", "0.5891847", "0.58874005", "0.58826876", "0.5876776", "0.58743405", "0.5873428", "0.587311", "0.5868197", "0.5865895", "0.5862016", "0.58355623", "0.5824798", "0.58222234", "0.5821631", "0.5819657", "0.581311", "0.5807367", "0.5805078", "0.58037317", "0.5799763", "0.5793272", "0.57927996", "0.57908684", "0.5788246", "0.57777274", "0.5777032", "0.5774545", "0.5774499", "0.57663107", "0.57589334", "0.5758661", "0.57568383", "0.5752681", "0.5752681", "0.5742066", "0.57373685", "0.57328373", "0.5732454", "0.57319283", "0.5723413", "0.5720679", "0.5714652", "0.57064986", "0.5703742", "0.5703452", "0.57029265", "0.5702145", "0.5694323", "0.5692736", "0.5691176", "0.56696486", "0.56686395", "0.5662812", "0.5659024", "0.56588084", "0.5654759", "0.56524986" ]
0.83861977
0
Override of the observer method
@Override public void update(Observable observable) { Client c = (Client)observable; JLabel l = labels.get(c.getID()); selectColor(l, c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void NotifyObserver() {\n\n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t\t\r\n\t}", "public void updateObserver();", "@Override\r\n\tpublic void registerObserver(Observer observer) {\n\t\t\r\n\t}", "@Override\n protected void onDataChanged() {\n }", "@Override\n public void onChanged() {\n }", "public void atacar() {\n notifyObservers();\n }", "@Override\n public void notifyObservers() {\n for (Observer observer : observers){\n // observers will pull the data from the observer when notified\n observer.update(this, null);\n }\n }", "@Override\n public void onDataChanged() {\n\n }", "void notifyObserver();", "@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer2 has received update!\");\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer1 has received update!\");\r\n\t}", "@Override\n public void update(Observable o, Object arg)\n {\n \n }", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "@Override\n public void onDataChanged() {\n }", "@Override\n public void onDataChanged() {\n }", "protected abstract void registerObserver();", "@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer3 has received update!\");\r\n\t}", "protected void onUpdate() {\r\n\r\n\t}", "@Override\n public void update(Observable arg0, Object arg1) {\n \n }", "public void notifyObservers() {}", "@Override\n public void onAdded() {\n }", "@Override\n\t\tpublic IContentObserver getContentObserver() {\n\t\t\treturn super.getContentObserver();\n\t\t}", "@Override\r\n\tpublic void operations() {\n\t\tSystem.out.println(\"update self!\"); \r\n notifyObservers(); \r\n\r\n\t}", "@Override\n\tpublic void update(Observable o, Object arg) {\n\t\t\n\t}", "@Override\n public void update() {\n \n }", "public abstract O getObserver();", "@Override\n public void update (Observable o, Object arg) {\n }", "@Override\n public void update() {\n }", "public abstract void addObserver(Observer observer);", "@Override\r\n\tpublic void update(Observable o, Object arg) {\n\r\n\t}", "@Override\r\n\tpublic void update(Observable o, Object arg) {\n\r\n\t}", "@Override\r\n\tpublic void update(Observable o, Object arg) {\n\t\t\r\n\t}", "@Override\r\n public void onUpdate() {\n super.onUpdate();\r\n }", "@Override\n public void update(Observable o, Object arg) {\n\n }", "@Override\n public void update(Observable o, Object arg) {\n setChanged();\n notifyObservers();\n }", "@Override\n\tpublic void onUpdate() {\n\t\t\n\t}", "public void notifyObservers();", "public void notifyObservers();", "public void notifyObservers();", "@Override\n public void notify(Object event){\n }", "@Override\n\tpublic void update(Observable arg0, Object arg1) {\n\t\t\n\t}", "@Override\n public void update()\n {\n\n }", "@Override\r\n\tpublic void update(Observable arg0, Object arg1) {\n\t\t\r\n\t}", "@Override\n public void update(Observable o, Object arg) {\n }", "public void update(){\n\t\tSystem.out.println(\"Return From Observer Pattern: \\n\" + theModel.getObserverState() \n\t\t+ \"\\n\");\n\t}", "void notifyObservers();", "void notifyObservers();", "@Override\n public void update() {\n\n }", "@Override\r\n\t\tpublic void update(Observable arg0, Object arg1) {\n\t\t}", "public void onDataChanged(){}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "public interface Observer{\n //一发现别人有动静,自己也要行动起来\n public void update(String context);\n\n\n}", "@Override\r\n\tpublic void notifyObservers(){\r\n\t\tfor(IObserver obs : observers){\r\n\t\t\tobs.update(this, selectedEntity);\r\n\t\t}\r\n\t\tselectedEntity = null;\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n public void update() {\n }", "@Override\n\tpublic void notifyObserver() {\n\t\tEnumeration<ObserverListener> enumd = vector.elements();\n\t\twhile (enumd.hasMoreElements()) {\n\t\t\tObserverListener observerListener = enumd\n\t\t\t\t\t.nextElement();\n\t\t\tobserverListener.observer();\n\t\t\tobserverListener.obsupdata();\n\t\t}\n\t}", "private void notifyUpdated() {\n if (mChanged) {\n mChanged = false;\n mObserver.onChanged(this);\n }\n }", "@Override\n\tpublic void Notify() {\n\t\tfor (Observer observer : obs) {\n\t\t\tobserver.update();\n\t\t}\n\t}", "@Override\n\tpublic void update(Observable observable, Object data) {\n\n\t}", "@Override\r\n public void notify(Object arg) {\n }", "@Override\n public void notifyObserver() {\n for(Observer o:list){\n o.update(w);\n }\n }", "protected LevelObserver getObserver() {\n return observer;\n }", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\n public void eventsChanged() {\n }", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "@Override\n\tpublic void update() { }", "@Override\r\n\tpublic void update() {\r\n\t}", "@Override\n public void update(Observable observable, Object data) {\n Toast.makeText(this, \"I am notified\" + myBase.getObserver().getValue(), 0).show();\n btn.setText(\"value: \" + myBase.getObserver().getValue());\n\n }", "@Override\n public void registerDataSetObserver(DataSetObserver observer) {\n\n }", "@Override\r\n\t\t\tpublic void onRequest() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void addObserver(Observer observer) {\n observers.add(observer);\n }", "@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t for(Observer o : observers){\r\n\t\t o.update();\r\n\t }\r\n\t}", "@Override\n\tpublic void update(Event e) {\n\t}", "public void onDataChanged();", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "public void willbeUpdated() {\n\t\t\n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t\tfor(Observer o : list) {\r\n\t\t\t// Atualiza a informacao no observador\r\n\t\t\to.update(this, this);\r\n\t\t}\r\n\t}", "@Override\n void notifys() {\n for (Observer o : observers) {\n o.update();\n }\n }", "static void NotifyCorrespondingObservers() {}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void registerObserver(BeatObserver o) {\n\r\n\t}", "public interface Observer {\n public void update(String context);\n\n}", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n public void onCrimeUpdated(Crime crime) {\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}", "public abstract IObserver getMediatedObserver();", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}" ]
[ "0.81025815", "0.7478162", "0.70982355", "0.6898711", "0.67186815", "0.6677718", "0.666855", "0.66554844", "0.66554725", "0.66403455", "0.6623304", "0.6606568", "0.6598214", "0.659666", "0.65653694", "0.65653694", "0.6535232", "0.65161467", "0.6498099", "0.6488975", "0.6483021", "0.6467725", "0.6454996", "0.6433161", "0.6427884", "0.64240396", "0.6421641", "0.64135563", "0.6406013", "0.63873553", "0.638327", "0.638327", "0.6379851", "0.63786423", "0.63783586", "0.6365217", "0.6362388", "0.6359341", "0.6359341", "0.6359341", "0.63274425", "0.63189346", "0.6312872", "0.63098866", "0.6309659", "0.62953734", "0.62842274", "0.62842274", "0.626375", "0.6259932", "0.6256604", "0.6253143", "0.6253143", "0.62444687", "0.6229113", "0.6222687", "0.6218617", "0.61896765", "0.6179054", "0.61695194", "0.616343", "0.6162933", "0.6161143", "0.6159069", "0.61396015", "0.61396015", "0.61334544", "0.6127429", "0.6118472", "0.61119473", "0.60927236", "0.6088773", "0.608722", "0.6081368", "0.60775137", "0.6073802", "0.6071873", "0.60699207", "0.60688823", "0.6059359", "0.60533595", "0.6049234", "0.60438704", "0.60401595", "0.60401595", "0.60401595", "0.60401595", "0.60401595", "0.60231197", "0.6020305", "0.60116285", "0.60116285", "0.6010536", "0.6010536", "0.6010536", "0.6010228", "0.6007448", "0.6007448", "0.5995858", "0.5993961", "0.5993961" ]
0.0
-1
Private method used to select the correct display color.
private void selectColor(JLabel label, Client client){ label.setForeground(client.getStatus().getColor()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void chooseColor() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "Color userColorChoose();", "private ElementColor selectColor() {\n\n\t\treturn Theme.defaultColor(); \n\t}", "public void modeColor(Graphics2D g2d) { g2d.setColor(RTColorManager.getColor(\"label\", \"default\")); }", "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 void colorInfo() {\n\t\tSystem.out.println(\"Universal Color\");\n\t}", "public Color getCurrentColor();", "public void setColors() {\n\t\tif (!this.block.isEditable()) {\n\t\t\tthis.dispNormal = Color.LIGHT_GRAY;\n\t\t\tthis.dispSelected = Color.GRAY;\n\t\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t\t} else {\n\t\t\tthis.dispNormal = Color.white;\n\t\t\tthis.dispSelected = Color.cyan;\n\t\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t\t}\n\t}", "void setColorSelection() {\r\n for (int i = 0; i < chooser.length; i++) {\r\n\r\n if (mainclass.getGraphTyp()\r\n == AbstractGraph.GRAPHTYP_RESIDUAL) {\r\n\r\n switch (i) {\r\n case COLOR_EDGE_ONE:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_FLOW]);\r\n break;\r\n case COLOR_EDGE_TWO:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_CAP]);\r\n break;\r\n case COLOR_EDGE_TOP:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_RTOP]);\r\n break;\r\n default:\r\n chooser[i].setColorSelected(colors[i]);\r\n }\r\n } else {\r\n chooser[i].setColorSelected(colors[i]);\r\n }\r\n }\r\n }", "private static int selectColorFormat(MediaCodecInfo codecInfo, String mimeType) {\n MediaCodecInfo.CodecCapabilities capabilities = codecInfo.getCapabilitiesForType(mimeType);\n for (int i = 0; i < capabilities.colorFormats.length; i++) {\n int colorFormat = capabilities.colorFormats[i];\n if (isRecognizedFormat(colorFormat)) {\n return colorFormat;\n }\n }\n Log.e(\"\", \"couldn't find a good color format for \" + codecInfo.getName() + \" / \" + mimeType);\n return 0; // not reached\n }", "public void chooseColor() {\n Color c = JColorChooser.showDialog(_parent, \"Choose '\" + getLabelText() + \"'\", _color);\n if (c != null) {\n _color = c;\n notifyChangeListeners();\n _updateField(_color);\n } \n }", "private static String determineActiveColor(final Board gameBoard) {\n return gameBoard.getCurrentPlayer().getColor().getAbbr();\n }", "@Override\n\t\tpublic Color color() { return color; }", "private void onSetColor() {\r\n\t Frame frame = JOptionPane.getFrameForComponent(getContentComponent());\r\n\t Color newColor = JColorChooser.showDialog(frame, \"Choose color\", DEF_CLUSTER_COLOR);\r\n\t if (newColor != null) {\r\n\t setClusterColor(newColor);\r\n\t }\r\n\t}", "public abstract void setCurForeground(Color colr);", "private void updateColorPreview() {\n runOnUiThread(() -> colorView.setBackgroundColor(Utils.HSV_to_ARGB(specState.hue,\n specState.saturation,\n specState.value)));\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 }", "public void chooseCellColor(){\n currentCellColor = cellColorPicker.getValue();\n draw();\n }", "private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 0, ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255 - ( int ) i, 0, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, ( int ) i, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, 255, 255 - ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( ( int ) i, 255, 0 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 255 - ( int ) i, 0 );\n index++;\n }\n return Color.RED;\n }", "private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.rightPanel.setBackground(color);\n this.rightCenPanel.setBackground(color);\n this.rightLowPanel.setBackground(color);\n this.rightTopPanel.setBackground(color);\n this.inputPanel.setBackground(color);\n this.controlPanel.setBackground(color);\n this.setupPanel.setBackground(color);\n this.cameraPanel.setBackground(color);\n this.jPanel4.setBackground(color);\n this.sensSlider.setBackground(color); \n }", "private void applyForegroundColor() {\r\n\t\tthis.control.setForeground(PromptSupport.getForeground(this.control));\r\n\t}", "public void getColor() {\n\t\tPoint point = MouseInfo.getPointerInfo().getLocation();\n\t\trobot.mouseMove(point.x, point.y);\n\t\tColor color = robot.getPixelColor(point.x, point.y);\n//\t\tSystem.out.println(color);\n\t}", "@Override\n protected Color getSelectionForeground() {\n return Color.BLACK;\n }", "@Override\n protected Color getSelectionForeground() {\n return Color.BLACK;\n }", "@Override\n protected Color getSelectionForeground() {\n return Color.BLACK;\n }", "@Override\n protected Color getSelectionForeground() {\n return Color.BLACK;\n }", "protected Color preferredColor()\r\n {\r\n if (isMoving())\r\n return Color.green;\r\n else\r\n return new Color(0, 100, 0);\r\n }", "public void selectPanel() {\n\t\tthis.displayNumberBlock.setBackground(dispSelected);\n\t}", "int getHighLightColor();", "@Override\n public void onColorChanged(int selectedColor) {\n Log.d(\"ColorPicker\", \"onColorChanged: 0x\" + Integer.toHexString(selectedColor));\n }", "public void switchColor(){\r\n System.out.println(color);\r\n if(color==\"W\"){\r\n color=\"B\";\r\n System.out.println(color);\r\n }else{ \r\n color=\"W\";\r\n } \r\n }", "public char getSeekerColor() {\n return getCharProperty(\"RequestedColor\");\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 }", "@DISPID(1611006088) //= 0x60060088. The runtime will prefer the VTID if present\n @VTID(163)\n boolean trueColorMode();", "public void getAllianceColor() {\n DriverStation.Alliance color;\n color = DriverStation.getInstance().getAlliance();\n if (color == DriverStation.Alliance.valueOf(\"Blue\")) {\n blue();\n } else if (color == DriverStation.Alliance.valueOf(\"Red\")) {\n red();\n } else {\n scannerGray();\n }\n }", "@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}", "public void chooseBackgroundColor(){\n currentBackgroundColor = backgroundColorPicker.getValue();\n draw();\n }", "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "private Color createColor( final String key, final Display display ) {\r\n Color color = null;\r\n if( this.store.contains( key ) ) {\r\n RGB rgb = null;\r\n if( this.store.isDefault( key ) ) {\r\n rgb = PreferenceConverter.getDefaultColor( this.store, key );\r\n } else {\r\n rgb = PreferenceConverter.getColor( this.store, key );\r\n }\r\n if( rgb != null ) {\r\n color = new Color( display, rgb );\r\n }\r\n }\r\n return color;\r\n }", "public void changeWildRouteColor() {\n if (mCardsList.get(0))\n mSelectedRoute.setColor(\"red\");\n else if (mCardsList.get(1))\n mSelectedRoute.setColor(\"blue\");\n else if (mCardsList.get(2))\n mSelectedRoute.setColor(\"yellow\");\n else if (mCardsList.get(3))\n mSelectedRoute.setColor(\"green\");\n else if (mCardsList.get(4))\n mSelectedRoute.setColor(\"black\");\n else if (mCardsList.get(5))\n mSelectedRoute.setColor(\"orange\");\n else if (mCardsList.get(6))\n mSelectedRoute.setColor(\"purple\");\n else if (mCardsList.get(7))\n mSelectedRoute.setColor(\"white\");\n }", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "private Color detectColor(String c){\n switch (c){\n case \"RED\": return Color.RED;\n case \"BLUE\": return Color.BLUE;\n case \"YELLOW\": return Color.YELLOW;\n case \"GREEN\": return Color.GREEN;\n case \"WHITE\": return Color.WHITE;\n case \"BLACK\": return Color.BLACK;\n case \"CYAN\": return Color.CYAN;\n case \"ORANGE\": return Color.ORANGE;\n case \"MAGENTA\": return Color.MAGENTA;\n case \"PINK\": return Color.PINK;\n default: return null;\n }\n }", "public LinkColor getLinkColor() {\n String str = findSelected(link_colors);\n if (str.equals(LINK_CO_GRAY)) { return LinkColor.GRAY;\n } else if (str.equals(LINK_CO_VARY)) { return LinkColor.VARY;\n } else return LinkColor.GRAY;\n }", "protected void setLightBoxBackground() { Console.setBackground(Console.BLUE); }", "private void assignColors() {\n soundQuickStatus.setBackground(drawables[noise]);\n comfortQuickStatus.setBackground(drawables[comfort]);\n lightQuickStatus.setBackground(drawables[light]);\n convenienceQuickStatus.setBackground(drawables[convenience]);\n }", "public void updateDisplay()\n {\n\t Color metal = new Color(153, 153, 153);\n\t Color background = new Color(0, 0, 0);\n\t Color sand = new Color(251, 251, 208);\n\t Color water = new Color(102, 179, 255);\n\t int rows = grid.length;\n\t int cols = grid[0].length;\n\t for(int i = 0; i < rows; i++) {\n\t\t for(int j = 0; j < cols; j++) {\n\t\t\t if(grid[i][j] == METAL) {\n\t\t\t\t //color should be gray or whatever\n\t\t\t\t display.setColor(i, j, metal);\n\t\t\t }\n\t\t\t else if(grid[i][j] == EMPTY) {\n\t\t\t\t display.setColor(i, j, background);\n\t\t\t }\n\t\t\t else if(grid[i][j] == SAND) {\n\t\t\t\t display.setColor(i, j, sand);\n\t\t\t }\n\t\t\t else {\n\t\t\t\t display.setColor(i, j, water);\n\t\t\t }\n\t\t }\n\t }\n }", "@Override\n public Color getColor() {\n return color;\n }", "public int getColor() {\n \t\treturn color;\n \t}", "@DISPID(1611006095) //= 0x6006008f. The runtime will prefer the VTID if present\n @VTID(170)\n boolean colorSynchronizationEditability();", "public void nxColor() {\n if (ckernel == 0) {\n //Nx kernel not found.\n currentVersion.setTextColor(COLOR_YELLOW);\n latestVersion.setTextColor(COLOR_YELLOW);\n } else {\n if (ckernel == lkernel) {\n //Latest NX kernel version is installed.\n currentVersion.setTextColor(COLOR_GREEN);\n latestVersion.setTextColor(COLOR_GREEN);\n } else {\n //Latest NX kernel version isn't installed.\n currentVersion.setTextColor(COLOR_RED);\n latestVersion.setTextColor(COLOR_RED);\n }\n }\n }", "public String linkColor() { return findSelected(link_colors); }", "public void fwColor() {\n if (cFirmware == lFirmware) {\n //Latest firmware version is installed.\n cFirmwareVersion.setTextColor(COLOR_GREEN);\n lFirmwareVersion.setTextColor(COLOR_GREEN);\n } else {\n //Latest firmware version isn't installed.\n cFirmwareVersion.setTextColor(COLOR_RED);\n lFirmwareVersion.setTextColor(COLOR_RED);\n }\n }", "public void widgetSelected(SelectionEvent arg0) {\n\t\t ColorDialog dlg = new ColorDialog(shell);\r\n\r\n\t\t // Set the selected color in the dialog from\r\n\t\t // user's selected color\r\n\t\t Color shpColor = viewer.getShpReader().getForeColor();\r\n\t\t dlg.setRGB(shpColor.getRGB());\r\n\r\n\t\t // Change the title bar text\r\n\t\t dlg.setText(Messages.getMessage(\"SHPLayersScreen_ColorDialog\"));\r\n\r\n\t\t // Open the dialog and retrieve the selected color\r\n\t\t RGB rgb = dlg.open();\r\n\t\t if (rgb != null && !rgb.equals(shpColor.getRGB())) {\r\n\t\t // Dispose the old color, create the\r\n\t\t // new one, and set into the label\r\n\t\t \tnewColor = new Color(shell.getDisplay(), rgb);\r\n\t\t\t\t\tlabelColor.setBackground(newColor);\r\n\t\t }\r\n\t\t\t}", "protected Color getUptimeColor() {\n\t\tfinal long uptime = System.currentTimeMillis()\n\t\t\t\t- Activator.getDefault().getStartTime();\n\t\tif (uptime < 7200000)\n\t\t\treturn display.getSystemColor(SWT.COLOR_DARK_GREEN);\n\t\telse if (uptime < 14400000)\n\t\t\treturn display.getSystemColor(SWT.COLOR_BLUE);\n\t\telse\n\t\t\treturn display.getSystemColor(SWT.COLOR_RED);\n\t}", "public String colorToLocate() {\n char targetColor;\n gameData = DriverStation.getInstance().getGameSpecificMessage();\n if(gameData.length() > 0) {\n switch (gameData.charAt(0)) {\n case 'B' :\n targetColor = 'R';\n break;\n case 'G' :\n targetColor = 'Y';\n break;\n case 'R' :\n targetColor = 'B';\n break;\n case 'Y' :\n targetColor = 'G';\n break;\n default :\n targetColor = '?';\n break;\n }\n } else {\n targetColor = '?';\n }\n return \"\"+targetColor;\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 static void showColor(Color colorArg) {\n\n\t\t//bellow code is given\n\t\t\n\t\tJFrame frame = new JFrame(\"Guess this color\");\n\t\tframe.setSize(200, 200);\n\t\tframe.setLocation(300, 300);\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(colorArg);\n\t\tframe.add(panel);\n\t\tframe.setVisible(true);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t}", "public void RGB_Change(View view) {\r\n int [] color= {0,0,0};\r\n\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Core Colors Change\");\r\n adb.setItems(colors, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n color[which]=255;\r\n lL.setBackgroundColor(Color.rgb(color[0],color[1],color[2]));\r\n }\r\n });\r\n adb.setPositiveButton(\"Exit\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }", "@Override\n public void onChooseColor(int position, int color) {\n int red = Color.red(color);\n int green = Color.green(color);\n int blue = Color.blue(color);\n Log.e(\"rgb\", \"\" + red + \" \" + green + \" \" + blue);\n }", "public void setSelectionColorDefault() {\n\t\tif (internalLattice == null)\n\t\t\tthis.selectionColor = SelectionColor.DEFAULT;\n\t\telse if (internalLattice.getLatticeColor() == LatticeColor.PINK\n\t\t\t\t|| internalLattice.getLatticeColor() == LatticeColor.ORANGE)\n\t\t\tthis.selectionColor = SelectionColor.GREEN;\n\t\telse\n\t\t\tthis.selectionColor = SelectionColor.RED;\n\t}", "public int color() {\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public void Color() {\n\t\t\r\n\t}", "RGB getRealRGB(Color color) {\n\tImage colorImage = new Image(display, 10, 10);\n\tGC imageGc = new GC(colorImage);\n\tImageData imageData;\n\tPaletteData palette;\n\tint pixel;\n\t\n\timageGc.setBackground(color);\n\timageGc.setForeground(color);\n\timageGc.fillRectangle(0, 0, 10, 10);\n\timageData = colorImage.getImageData();\n\tpalette = imageData.palette;\n\timageGc.dispose();\n\tcolorImage.dispose();\n\tpixel = imageData.getPixel(0, 0);\n\treturn palette.getRGB(pixel);\n}", "public String getColor() { \n return color; \n }", "private void colorDetermine(PGraphics pg) {\n\t\tif(this.getDepth() < 70){\n\t\t\tpg.fill(255,255,0);\n\t\t}else if(this.getDepth() >= 70 && this.getDepth() < 300){\n\t\t\tpg.fill(0, 0, 255);\n\t\t}else if(this.getDepth() >= 300){\n\t\t\tpg.fill(255, 0, 0);\n\t\t}\n\t}", "@Override\n Color getColor() {\n return new Color(32, 83, 226, 255);\n }", "public Color getDevColor() {\r\n\t\t// System.out.println(\"Getting \" + n);\r\n\t\treturn (value.getDevColor());\r\n\t}", "private final void m118789x() {\n this.f152258c = getTextColors();\n }", "private Color NewColor(int numb) {\r\n\r\n\t\tswitch(numb){\r\n\t\tcase 0: return Color.BLACK;\r\n\t\tcase 1: return Color.RED;\r\n\t\tcase 3: return Color.BLUE;\r\n\t\t}\r\n\t\treturn Color.MAGENTA;\r\n\t}", "private void update() {\n\t\tColor fColor = fgColorProvider.getCurrentColor();\n\t\tColor bColor = bgColorProvider.getCurrentColor();\n\t\tsetText(String.format(\"Foreground color: (%d, %d, %d), background color: (%d, %d, %d).\", \n\t\t\t\tfColor.getRed(), fColor.getGreen(), fColor.getBlue(),\n\t\t\t\tbColor.getRed(), bColor.getGreen(), bColor.getBlue()));\n\t}", "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}", "public void applyColor() {\n\t\tSystem.out.println(\"Yellow\");\n\n\t}", "public void setColor(String c);", "@Override\r\n\tpublic String Color() {\n\t\treturn Color;\r\n\t}", "private void colorDetermine(PGraphics pg) {\r\n\t\tfloat depth = getDepth();\r\n\t\t\r\n\t\tif (depth < THRESHOLD_INTERMEDIATE) {\r\n\t\t\tpg.fill(255, 255, 0);\r\n\t\t}\r\n\t\telse if (depth < THRESHOLD_DEEP) {\r\n\t\t\tpg.fill(0, 0, 255);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tpg.fill(255, 0, 0);\r\n\t\t}\r\n\t}", "@DISPID(1611006091) //= 0x6006008b. The runtime will prefer the VTID if present\n @VTID(166)\n boolean colorSynchronizationMode();", "@Override\n\tprotected char getColor(int position) {\n\t\treturn color;\n\t}", "public Color getSelectedColor() {\r\n return mColor;\r\n }", "public Color getColor() { return color; }", "Integer getTxtColor();", "private void colorScheme (Composite parent) {\r\n\t\tbgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_BG);\r\n\t\tbgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tfgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_FG);\r\n\t\tfgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tbgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_BG)));\r\n\t\tfgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_FG)));\r\n\r\n\t\tbgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = bgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_BG, sb.toString());\r\n\t\t});\r\n\r\n\t\tfgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = fgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_FG, sb.toString());\r\n\t\t});\r\n\r\n\t\tturnOnOffColors();\r\n\t}", "public void setColorAccordingToSize() {\n float s = getMeasuredSizeCorrectedByPerspective();\n float hue = 2 * s / chip.getMaxSize();\n if (hue > 1) {\n hue = 1;\n }\n setColor(Color.getHSBColor(hue, 1f, 1f));\n }", "@Override\n public GralColor setForegroundColor(GralColor color)\n {\n return null;\n }", "public void changeColor(Color c){\n switch(identifier){\n case \"FillRec\":\n fillrec.setBackground(c);\n break;\n case \"FillOval\":\n filloval.setBackground(c);\n break;\n case \"EmptyRec\":\n emptyrec.setBackground(c);\n break;\n case \"EmptyOval\":\n emptyoval.setBackground(c);\n break;\n case \"LineDraw\":\n linedraw.setBackground(c);\n break;\n case \"ColorChooser\":\n opencolor.setBackground(c);\n break;\n }\n }", "private void initColours() {\n colourArray = Utilities.get2dResourceArray(getContext(), \"colour\");\n\n // A means to save colour configuration when screen is rotated between games.\n if (colourSet == null) {\n // Set new colour pairing.\n colourSet = new ColourSet();\n }\n\n // Set View colours\n mGameLoop.setColour(colourSet.primarySet);\n setToolbarColour(colourSet.primaryColourDark);\n mAltBackground.setBackgroundColor(colourSet.primaryColour);\n mTempToolbar.setBackgroundColor(colourSet.primaryColourDark);\n mFab.setBackgroundTintList(ColorStateList.valueOf(colourSet.secondaryColour));\n mWorldScore.setBackgroundColor(colourSet.getPrimaryColour(COLOUR_LOCATION_SCORE));\n }", "public Color getScreenBackgroundColor();", "public int getColor() {\n return color;\n }", "public String dame_color() {\n\t\treturn color;\n\t}", "java.awt.Color getColor();", "private Color determineColorFromType(String type)\n\t{\n\t\tIterator<String> iterator = this.tileTypeColorMap.keySet().iterator();\n\t\twhile (iterator.hasNext())\n\t\t{\n\t\t\tString key = iterator.next();\n\t\t\tif (key == type)\n\t\t\t{\n\t\t\t\treturn tileTypeColorMap.get(key);\n\t\t\t}\n\t\t}\n\t\treturn this.ERROR_COLOR;\n\t}", "public Color color() {\n return null;\n }", "public Color getColor()\r\n {\r\n return currentColor;\r\n }", "public void switchColor() {\r\n\t\tcolor = !color;\r\n\t}", "public void setColor(int color) {\n/* 77 */ this.color = color;\n/* 78 */ this.paint.setColor(this.color);\n/* */ }", "public Color color() {\n\t\tswitch (this) {\n\t\tcase FATAL: {\n\t\t\tColor c = UIManager.getColor(\"nb.errorForeground\"); // NOI18N\n\t\t\tif (c == null) {\n\t\t\t\tc = Color.RED.darker();\n\t\t\t}\n\t\t\treturn c;\n\t\t}\n\t\tcase WARNING:\n\t\t\treturn Color.BLUE.darker();\n\t\tcase INFO:\n\t\t\treturn UIManager.getColor(\"textText\");\n\t\tdefault:\n\t\t\tthrow new AssertionError();\n\t\t}\n\t}", "public String getColor(){\r\n return color;\r\n }", "@Override\r\n\tpublic String getColor() {\n\t\treturn \"white\";\r\n\t}", "protected ColorUIResource getBlack() { return fBlack; }", "RGB getOldColor();" ]
[ "0.69742614", "0.6898187", "0.67478347", "0.6474246", "0.6365716", "0.63309467", "0.62544", "0.6249772", "0.6231262", "0.61060596", "0.60882246", "0.60834646", "0.60175556", "0.5976721", "0.5972358", "0.59668505", "0.59616977", "0.5947657", "0.59356225", "0.592151", "0.5919444", "0.5907876", "0.5888216", "0.5888216", "0.5888216", "0.5888216", "0.5878072", "0.58703846", "0.58490145", "0.5813557", "0.5809565", "0.58076996", "0.58041215", "0.5800541", "0.5790028", "0.5773548", "0.57560235", "0.57487833", "0.57424146", "0.5739394", "0.5729452", "0.5726925", "0.572509", "0.57233834", "0.5721221", "0.57164425", "0.57145375", "0.57025504", "0.5689163", "0.5686988", "0.56730056", "0.56721056", "0.56662285", "0.56652945", "0.5664426", "0.5663962", "0.5660519", "0.5653752", "0.5642587", "0.56410354", "0.56373996", "0.56311166", "0.56311166", "0.56277794", "0.5625188", "0.562456", "0.56173694", "0.56160885", "0.5615859", "0.5606011", "0.5602185", "0.56017506", "0.55991507", "0.55954653", "0.55921024", "0.5589392", "0.558939", "0.55871856", "0.5586044", "0.5584751", "0.5582811", "0.55788964", "0.5573275", "0.55656916", "0.556141", "0.55584776", "0.5555522", "0.5550742", "0.55499744", "0.55479544", "0.5546686", "0.5544555", "0.55426663", "0.5537269", "0.5536782", "0.5536322", "0.5532797", "0.55276275", "0.55190384", "0.55130744", "0.55105454" ]
0.0
-1
Runtime: 1 ms, faster than 85.13% of Java online submissions for Subsets. Memory Usage: 38.4 MB, less than 12.66% of Java online submissions for Subsets.
public List<List<Integer>> subsets(int[] nums) { int size = nums.length; if (size == 0) { return new LinkedList(); } List<List<Integer>> res = new LinkedList<>(); dfs(nums, 0, new LinkedList<Integer>(), res); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void Union(subset [] subsets, int x , int y ){ \n\t\tint xroot = find(subsets, x); \n\t int yroot = find(subsets, y); \n\t \n\t\tif (subsets[xroot].rank < subsets[yroot].rank) \n\t\t\tsubsets[xroot].parent = yroot; \n\t\telse if (subsets[yroot].rank < subsets[xroot].rank) \n\t\t\tsubsets[yroot].parent = xroot; \n\t\telse{ \n\t\t\tsubsets[xroot].parent = yroot; \n\t\t\tsubsets[yroot].rank++; \n\t\t} \n\t}", "public abstract List<List<Integer>> subsets(int[] S);", "private static List<List<Integer>> subsetsHelper(int[] nums, int start) {\n\t\tif(start==nums.length) {\n\t\t\tArrayList<List<Integer>> out=new ArrayList<>();\n\t\t\tout.add(new ArrayList<>());\n\t\t\treturn out;\n\t\t}\n\n\t\tList<List<Integer>> child=subsetsHelper(nums, start+1);\n\t\tList<List<Integer>> ans=new ArrayList<List<Integer>>(child);\n\t\tArrayList<Integer> row;\n\t\tfor(int i=0;i<child.size();i++) {\n\t\t\trow=new ArrayList<>();\n\t\t\tfor(int j=0;j<child.get(i).size();j++) {\n\t\t\t\trow.add(child.get(i).get(j));\n\t\t\t}\n\t\t\trow.add(nums[start]);\n\t\t\tans.add(row);\n\t\t}\n\n\n\t\treturn ans;\n\t}", "public List<List<Integer>> subsets1(int[] nums) {\n if (nums == null || nums.length == 0) {\n return new ArrayList<>();\n }\n\n Queue<List<Integer>> queue = new LinkedList<>();\n int level = -1;\n\n queue.offer(new LinkedList<>());\n\n while (++level < nums.length) {\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n List<Integer> cur = queue.poll();\n List<Integer> newList = new LinkedList<>();\n\n for (Integer tmp : cur) {\n newList.add(tmp);\n }\n\n newList.add(level);\n queue.offer(cur);\n queue.offer(newList);\n }\n }\n\n List<List<Integer>> res = new LinkedList<>();\n\n for (List<Integer> list : queue) {\n List<Integer> tmp = new LinkedList<>();\n\n for (Integer idx : list) {\n tmp.add(nums[idx]);\n }\n\n res.add(tmp);\n }\n\n return res;\n }", "@Test\n\tpublic void test() {\n\t\tList<Integer[]> result = subGen.subset(9);\n\t\tassertEquals(10, result.size());\n\t\tInteger[] temp = { 0, 1, 2, 3, 4, 5, 6, 7, 8 };\n\t\tassertEquals(Arrays.toString(temp), Arrays.toString(result.get(0)));\n\n\t\tSet<Integer[]> testSet = new HashSet<Integer[]>();\n\t\tfor (int i = 0, len = result.size(); i < len; i++) {\n\t\t\ttestSet.add(result.get(i));\n\t\t}\n\t\tassertEquals(10, testSet.size());\n\n\t\tList<Integer[]> result2 = subGen.subset(3);\n\t\tassertEquals(120, result2.size());\n\n\t}", "public List<List<Integer>> subsets2(int[] nums) {\n if (nums == null || nums.length == 0) {\n return new ArrayList<>();\n }\n\n Queue<List<Integer>> queue = new LinkedList<>();\n List<List<Integer>> resList = new LinkedList<>();\n List<Integer> fst = new LinkedList<>();\n\n queue.offer(fst);\n resList.add(fst);\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n List<Integer> list = queue.poll();\n\n int start = list.size() == 0 ? -1 : list.get(list.size() - 1);\n\n while (++start < nums.length) {\n List<Integer> newList = new LinkedList<>();\n\n for (Integer tmp : list) {\n newList.add(tmp);\n }\n\n newList.add(start);\n queue.offer(newList);\n resList.add(newList);\n }\n }\n }\n\n List<List<Integer>> res = new LinkedList<>();\n\n for (List<Integer> list : resList) {\n List<Integer> tmp = new LinkedList<>();\n\n for (Integer idx : list) {\n tmp.add(nums[idx]);\n }\n\n res.add(tmp);\n }\n\n return res;\n }", "public static void main(String[] args) {\n\t\tLargest_Divisible_Subset largestSubset = new Largest_Divisible_Subset();\n\t\t//int[] nums = { 2, 3, 8, 9, 27 };\n\t\tint[] nums = { 1, 3, 9, 18, 90, 180, 360, 720, 54, 108, 540 }; // [1,3,9,18,90,180,360,720]\n\t\t//List<Integer> ans = largestSubset.largestDivisibleSubset(nums);\n\t\tList<Integer> ans = largestSubset.largestDivisibleSubset_DFS(nums);\n\t\tfor (Integer i : ans) {\n\t\t\tSystem.out.print(i + \" \");\n\t\t}\n\n\t}", "public List<List<Integer>> subsets(int[] nums) {\n List<List<Integer>> list = new ArrayList<>();\n\n if (nums == null || nums.length == 0) {\n return list;\n }\n\n // Arrays.sort(nums);\n backtrack(list, new ArrayList<>(), nums, 0);\n return list;\n }", "protected void removeFromAllSubsets()\r\n {\n if (!m_subsets.isEmpty()) {\r\n List<SubsetImpl> tmp = new ArrayList<SubsetImpl>(m_subsets);\r\n m_subsets.clear();\r\n tmp.forEach(r -> {if (r != null) r.remove(this);});\r\n }\r\n }", "private void subsets(int[] S, int k, ArrayList<ArrayList<Integer>> result) {\n ArrayList<Integer> set = new ArrayList<Integer>();\n helper(S, k, 0, result, set);\n }", "public static void main(String[] args) {\n\t\tint[] data = new int[]{1, 2, 3, 4, 5};\n\t\tArrayList<ArrayList<Integer>> subsets = getAllSubsets(data);\n\t\t\n\t\tfor(ArrayList<Integer> one : subsets){\n\t\t\tfor(int val : one){\n\t\t\t\tSystem.out.print(val + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "HashSet<BitSet> createSubsets(BitSet bs){\n HashSet<BitSet> subsets = new HashSet<>();\n for(int i=0; i<bs.length(); i++){\n if(bs.get(i)){\n BitSet t = (BitSet)bs.clone();\n t.flip(i);\n subsets.add(t);\n }\n }\n \n return subsets;\n }", "private HyperplaneSubsets() {\n }", "public static void main(String[] args) {\n\t\t\n\t\t\tint[] nums={1,2,3};\n\t\t\n\t\t\tList <List<Integer>>mainList = new ArrayList<List<Integer>>();\n\t\t \n\t List<Integer> list = new ArrayList<Integer>();\n\t \n\t \n\t HashSet<List<Integer>> set = new HashSet<List<Integer>>();\n\t \n\t \n\t for(int j=0;j<nums.length;j++)\n\t list.add(nums[j]);\n\t \n\t int k=0;\n\t mainList.add(list);\n\t set.add(list);\n\t subSetList(mainList,list,set,k);\n\t\t System.out.println(\"mainList\"+ mainList);\n\t\t System.out.println(\"set\"+ set);\n\n\t}", "public static List<List<Integer>> subsets(int[] nums) {\n List<List<Integer>> res = new ArrayList<>();\n //res.add(new ArrayList<Integer>());\n \n if(nums == null || nums.length == 0) \n return res;\n \n helper(nums, 0, res);\n return res;\n }", "static int numOfSubsets(int[] arr, int n, int k) {\n List<Integer> vect1 = new ArrayList<Integer>(); \n List<Integer> vect2 = new ArrayList<Integer>(); \n List<Integer> subset1 = new ArrayList<Integer>(); \n List<Integer> subset2 = new ArrayList<Integer>(); \n \n // ignore element greater than k and divide\n // array into 2 halves\n for (int i = 0; i < n; i++) {\n \n // ignore element if greater than k\n if (arr[i] > k)\n continue;\n if (i <= n / 2)\n vect1.add(arr[i]);\n else\n vect2.add(arr[i]);\n }\n \n // generate all subsets for 1st half (vect1)\n for (int i = 0; i < (1 << vect1.size()); i++) {\n int value = 1;\n for (int j = 0; j < vect1.size(); j++) {\n if (i & (1 << j))\n value *= vect1[j];\n }\n \n // add only in case subset product is less\n // than equal to k\n if (value <= k)\n subset1.add(value);\n }\n \n // generate all subsets for 2nd half (vect2)\n for (int i = 0; i < (1 << vect2.size()); i++) {\n int value = 1;\n for (int j = 0; j < vect2.size(); j++) {\n if (i & (1 << j))\n value *= vect2[j];\n }\n \n // add only in case subset product is\n // less than equal to k\n if (value <= k)\n subset2.add(value);\n }\n \n // sort subset2\n sort(subset2.begin(), subset2.end());\n \n int count = 0;\n for (int i = 0; i < subset1.size(); i++)\n count += upper_bound(subset2.begin(), subset2.end(),\n (k / subset1[i]))\n - subset2.begin();\n \n // for null subset decrement the value of count\n count--;\n \n // return count\n return count;\n }", "public List<List<Integer>> subsets2(int[] nums) {\n if (nums == null) {\n return new ArrayList<>();\n }\n\n List<List<Integer>> queue = new ArrayList<>();\n queue.add(new LinkedList<Integer>());\n //Arrays.sort(nums);\n\n for (int num : nums) {\n int size = queue.size();\n for (int i = 0; i < size; i++) {\n List<Integer> subset = new ArrayList<>(queue.get(i));\n subset.add(num);\n queue.add(subset);\n }\n }\n\n return queue;\n }", "public static Set<Set<Object>> createSubsets(int n, int k) {\n Set<Set<Object>> power_set = new HashSet<Set<Object>>(); //power set\n Set<Set<Object>> set_of_subsets = new HashSet<Set<Object>>(); //only \"tickets\" set\n List<Object> set_list = new ArrayList<Object>(); //set\n \n double power_set_size;\n int mask;\n \n //determine the size of a power set\n power_set_size = Math.pow(2, n);\n \n //create a list containing all numbers from 1 to n\n for (int i = 0; i < n; i++) {\n set_list.add(i+1);\n }\n \n //create a powerset based on the set\n for(int i = 0; i < power_set_size; i++){\n \n Set<Object> subset = new HashSet<Object>();\n mask = 1;\n \n for(int j = 0; j < n; j++){\n \n if((mask & i) != 0){\n subset.add(set_list.get(j));\n }\n mask = mask << 1;\n }\n power_set.add(subset);\n }\n \n //pick all the subsets from a power set that are size k\n for(Set<Object> curr_subset : power_set) {\n if(curr_subset.size() == k) {\n set_of_subsets.add(curr_subset);\n }\n }\n return set_of_subsets;\n }", "private static <T> List<List<T>> getSubsets( int indexToStart, int subSize, List<T> toClone, List<T> origList ) {\n List<List<T>> allSubsets = new ArrayList<List<T>>();\n for ( int i = indexToStart; i <= origList.size() - subSize; i++ ) {\n List<T> subset = new ArrayList<T>( toClone );\n subset.add( origList.get( i ) );\n if ( subSize == 1 ) {\n allSubsets.add( subset );\n } else {\n allSubsets.addAll( getSubsets( i + 1, subSize - 1, subset, origList ) );\n }\n }\n return allSubsets;\n }", "public List<List<Integer>> subsets2(int[] nums) {\n\t\tList<List<Integer>> result = new ArrayList<>();\n\t\tList<Integer> tmp = new ArrayList<>();\n\t\tresult.add(tmp); // add empty set\n\t\tfor (int i = 0; i < nums.length; i++) {\n\t\t\tint n = result.size();\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t// NOTE: must create a new tmp object, and add element to it.\n\t\t\t\ttmp = new ArrayList<Integer>(result.get(j));\n\t\t\t\ttmp.add(nums[i]);\n\t\t\t\tresult.add(tmp);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Test\n\t public void test_Is_Subset_Positive() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{1,2,3});\n\t\t assertTrue(setarray.isSubSet(subsetarray));\t \n\t }", "public List<List<Integer>> subsets(int[] nums) {\n List<List<Integer>> res = new ArrayList();\n if (nums == null) return res;\n \n dfs(nums, 0, new ArrayList(), res);\n \n return res;\n }", "public List<List<Integer>> subsets(int[] nums) {\n List<List<Integer>> res = new ArrayList();\n if (nums == null) return res;\n \n dfs(nums, 0, new ArrayList(), res);\n \n return res;\n }", "private static void recurseSubsets(\n List<List<Integer>> answer, ArrayList<Integer> currentAnswer, int[] nums, int startIndex) {\n answer.add(new ArrayList<>(currentAnswer)); // clone\n\n for (int i = startIndex; i < nums.length; i++) {\n currentAnswer.add(nums[i]);\n recurseSubsets(answer, currentAnswer, nums, i + 1); // i+1: don't reuse nums[i]\n currentAnswer.remove(currentAnswer.size() - 1);\n }\n }", "public List<List<Integer>> subsets(int[] nums) {\n List result = new ArrayList();\n if (nums == null || nums.length == 0) {\n return result;\n }\n \n //Arrays.sort(nums);\n helper(nums, 0, result, new ArrayList<Integer>());\n return result;\n }", "HashSet<BitSet> createSubsetsOfLen2(BitSet bs){\n HashSet<BitSet> subsets = new HashSet<>();\n \n for(int i=0; i<bs.length();){\n i = bs.nextSetBit(i);\n \n for(int j=i+1; j<bs.length();){\n j = bs.nextSetBit(j);\n BitSet b = new BitSet(bitsetLen);\n b.set(i, true);\n b.set(j, true);\n subsets.add(b);\n j++;\n }\n i++;\n }\n return subsets;\n }", "public static void main(String[] args) {\n\t\tsubsets(new int[]{1,2,3});\n\t}", "public static void main(String[] args) throws Exception\n\t{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(new FileInputStream(new File(\"D:\\\\data.txt\")) ,\"GBK\") );\n\t\tint[] nums = {0};\n\t\tList<List<Integer>> z=subsetsWithDup(nums);\n\t\tfor(List<Integer> t:z){\n\t\t\tfor(int x: t)\n\t\t\t\tSystem.out.print(x+\" \");\n\t\t\tSystem.out.println();\n\t\t}\n\t\treader.close();\n\t}", "public List<Integer> largestDivisibleSubsetA(int[] nums) {\r\n List<Integer> lstSubset = new ArrayList<>();\r\n if (nums == null || nums.length == 0) return lstSubset;\r\n if (nums.length == 1) {\r\n lstSubset.add(nums[0]);\r\n return lstSubset;\r\n }\r\n \r\n int n = nums.length;\r\n int i;\r\n int nMaxLen = 0;\r\n int baseNum = 0;\r\n int facted = 0;\r\n int newNum = 0;\r\n boolean bExist = false;\r\n Set<Integer> setNum = new HashSet<Integer>();\r\n \r\n Arrays.sort(nums);\r\n \r\n for (i=0; i<n; i++) setNum.add(nums[i]);\r\n \r\n for (i=0; i<n-1; i++) {\r\n List<Integer> lstSubTmp = new ArrayList<Integer>();\r\n baseNum = nums[i];\r\n \r\n lstSubTmp.add(baseNum);\r\n bExist = false;\r\n facted = 2; \r\n newNum = baseNum*facted;\r\n \r\n while (newNum <= nums[n-1]) {\r\n if (setNum.contains(newNum)) {\r\n lstSubTmp.add(newNum);\r\n baseNum = newNum;\r\n bExist = true;\r\n } else {\r\n bExist = false;\r\n }\r\n \r\n if (bExist == true) {\r\n facted = 2;\r\n } else {\r\n facted++;\r\n }\r\n \r\n newNum = baseNum*facted;\r\n }\r\n \r\n if (nMaxLen < lstSubTmp.size()) {\r\n nMaxLen = Math.max(nMaxLen, lstSubTmp.size());\r\n lstSubset = new ArrayList<Integer>(lstSubTmp);\r\n }\r\n }\r\n \r\n return lstSubset;\r\n }", "public static void main(String[] args) {\n\n\t\tint[] input= {1,2,3};\n\n\t\tSystem.out.println(subsets(input));\n\n\t}", "public static void main(String[] args) {\n LeetCode078 obj = new LeetCode078();\n obj.subsets(new int[]{1, 2, 3});\n }", "public static List<List<Integer>> subsetsBacktracking(int[] nums) {\n List<List<Integer>> resultList = new ArrayList<>();\n Arrays.sort(nums);\n backtrack(resultList, new ArrayList<>(), nums, 0);\n return resultList;\n }", "@Test\n\t public void test_Is_Subset_Negative() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{7,8});\n\t\t assertFalse(setarray.isSubSet(subsetarray));\t \n\t }", "public SubsetTableImpl() {\n\t\tsuper();\n\t\tsubset = new int[0];\n\t}", "public static void main(String[] args) {\n\t\tint s[] = {6,5,4,3,2,1}; \n\t\tList<List<Integer>> l = subsets(s);\n\t\tfor(int i=0;i<l.size();i++){\n\t\t\tSystem.out.print(\"{\");\n\t\t\tfor(int j=0;j<l.get(i).size();j++){\n\t\t\t\tSystem.out.print(l.get(i).get(j) + \", \");\n\t\t\t}\n\t\t\tSystem.out.println(\"}\");\n\t\t}\n\t}", "public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int arr_size = sc.nextInt();\n int arr[] = new int[arr_size];\n \n for(int idx = 0 ;idx <= arr_size-1;idx++)\n {\n arr[idx] = sc.nextInt();\n }\n printing_subsets_of_size_3(arr_size,arr);\n }", "SelectSubSet createSelectSubSet();", "private EmbeddedTreePlaneSubset getTreeSubset() {\n if (treeSubset == null) {\n treeSubset = new EmbeddedTreePlaneSubset(plane);\n\n if (convexSubset != null) {\n treeSubset.add(convexSubset);\n\n convexSubset = null;\n }\n }\n\n return treeSubset;\n }", "public ArrayList<ArrayList<Integer>> subsets(int[] S) {\n\t\t\n\t\tArrays.sort(S);\n\n\t\tArrayList<ArrayList<Integer>> results = new ArrayList<ArrayList<Integer>>();\n\t\tresults.add(new ArrayList<Integer>());\n\n\t\tfor (int i = 0; i < S.length; i++) {\n\t\t\tint prev_size = results.size();\n\t\t\tfor (int j = 0; j < prev_size; j++) {\n\t\t\t\tArrayList<Integer> r = new ArrayList<Integer>(results.get(j));\n\t\t\t\tr.add(S[i]);\n\t\t\t\tresults.add(r);\n\t\t\t}\n\t\t}\n\n\t\treturn results;\n\t}", "public static Set<String> getRegionCodeSet() {\n // The capacity is set to 321 as there are 241 different entries,\n // and this offers a load factor of roughly 0.75.\n Set<String> regionCodeSet = new HashSet<String>(321);\n\n regionCodeSet.add(\"AC\");\n regionCodeSet.add(\"AD\");\n regionCodeSet.add(\"AE\");\n regionCodeSet.add(\"AF\");\n regionCodeSet.add(\"AG\");\n regionCodeSet.add(\"AI\");\n regionCodeSet.add(\"AL\");\n regionCodeSet.add(\"AM\");\n regionCodeSet.add(\"AO\");\n regionCodeSet.add(\"AR\");\n regionCodeSet.add(\"AS\");\n regionCodeSet.add(\"AT\");\n regionCodeSet.add(\"AU\");\n regionCodeSet.add(\"AW\");\n regionCodeSet.add(\"AX\");\n regionCodeSet.add(\"AZ\");\n regionCodeSet.add(\"BA\");\n regionCodeSet.add(\"BB\");\n regionCodeSet.add(\"BD\");\n regionCodeSet.add(\"BE\");\n regionCodeSet.add(\"BF\");\n regionCodeSet.add(\"BG\");\n regionCodeSet.add(\"BH\");\n regionCodeSet.add(\"BI\");\n regionCodeSet.add(\"BJ\");\n regionCodeSet.add(\"BL\");\n regionCodeSet.add(\"BM\");\n regionCodeSet.add(\"BN\");\n regionCodeSet.add(\"BO\");\n regionCodeSet.add(\"BQ\");\n regionCodeSet.add(\"BR\");\n regionCodeSet.add(\"BS\");\n regionCodeSet.add(\"BT\");\n regionCodeSet.add(\"BW\");\n regionCodeSet.add(\"BY\");\n regionCodeSet.add(\"BZ\");\n regionCodeSet.add(\"CA\");\n regionCodeSet.add(\"CC\");\n regionCodeSet.add(\"CD\");\n regionCodeSet.add(\"CF\");\n regionCodeSet.add(\"CG\");\n regionCodeSet.add(\"CH\");\n regionCodeSet.add(\"CI\");\n regionCodeSet.add(\"CK\");\n regionCodeSet.add(\"CL\");\n regionCodeSet.add(\"CM\");\n regionCodeSet.add(\"CN\");\n regionCodeSet.add(\"CO\");\n regionCodeSet.add(\"CR\");\n regionCodeSet.add(\"CU\");\n regionCodeSet.add(\"CV\");\n regionCodeSet.add(\"CW\");\n regionCodeSet.add(\"CX\");\n regionCodeSet.add(\"CY\");\n regionCodeSet.add(\"CZ\");\n regionCodeSet.add(\"DE\");\n regionCodeSet.add(\"DJ\");\n regionCodeSet.add(\"DK\");\n regionCodeSet.add(\"DM\");\n regionCodeSet.add(\"DO\");\n regionCodeSet.add(\"DZ\");\n regionCodeSet.add(\"EC\");\n regionCodeSet.add(\"EE\");\n regionCodeSet.add(\"EG\");\n regionCodeSet.add(\"EH\");\n regionCodeSet.add(\"ER\");\n regionCodeSet.add(\"ES\");\n regionCodeSet.add(\"ET\");\n regionCodeSet.add(\"FI\");\n regionCodeSet.add(\"FJ\");\n regionCodeSet.add(\"FK\");\n regionCodeSet.add(\"FM\");\n regionCodeSet.add(\"FO\");\n regionCodeSet.add(\"FR\");\n regionCodeSet.add(\"GA\");\n regionCodeSet.add(\"GB\");\n regionCodeSet.add(\"GD\");\n regionCodeSet.add(\"GE\");\n regionCodeSet.add(\"GF\");\n regionCodeSet.add(\"GG\");\n regionCodeSet.add(\"GH\");\n regionCodeSet.add(\"GI\");\n regionCodeSet.add(\"GL\");\n regionCodeSet.add(\"GM\");\n regionCodeSet.add(\"GN\");\n regionCodeSet.add(\"GP\");\n regionCodeSet.add(\"GR\");\n regionCodeSet.add(\"GT\");\n regionCodeSet.add(\"GU\");\n regionCodeSet.add(\"GW\");\n regionCodeSet.add(\"GY\");\n regionCodeSet.add(\"HK\");\n regionCodeSet.add(\"HN\");\n regionCodeSet.add(\"HR\");\n regionCodeSet.add(\"HT\");\n regionCodeSet.add(\"HU\");\n regionCodeSet.add(\"ID\");\n regionCodeSet.add(\"IE\");\n regionCodeSet.add(\"IL\");\n regionCodeSet.add(\"IM\");\n regionCodeSet.add(\"IN\");\n regionCodeSet.add(\"IQ\");\n regionCodeSet.add(\"IR\");\n regionCodeSet.add(\"IS\");\n regionCodeSet.add(\"IT\");\n regionCodeSet.add(\"JE\");\n regionCodeSet.add(\"JM\");\n regionCodeSet.add(\"JO\");\n regionCodeSet.add(\"JP\");\n regionCodeSet.add(\"KE\");\n regionCodeSet.add(\"KG\");\n regionCodeSet.add(\"KH\");\n regionCodeSet.add(\"KI\");\n regionCodeSet.add(\"KM\");\n regionCodeSet.add(\"KN\");\n regionCodeSet.add(\"KP\");\n regionCodeSet.add(\"KR\");\n regionCodeSet.add(\"KW\");\n regionCodeSet.add(\"KY\");\n regionCodeSet.add(\"KZ\");\n regionCodeSet.add(\"LA\");\n regionCodeSet.add(\"LB\");\n regionCodeSet.add(\"LC\");\n regionCodeSet.add(\"LI\");\n regionCodeSet.add(\"LK\");\n regionCodeSet.add(\"LR\");\n regionCodeSet.add(\"LS\");\n regionCodeSet.add(\"LT\");\n regionCodeSet.add(\"LU\");\n regionCodeSet.add(\"LV\");\n regionCodeSet.add(\"LY\");\n regionCodeSet.add(\"MA\");\n regionCodeSet.add(\"MC\");\n regionCodeSet.add(\"MD\");\n regionCodeSet.add(\"ME\");\n regionCodeSet.add(\"MF\");\n regionCodeSet.add(\"MG\");\n regionCodeSet.add(\"MH\");\n regionCodeSet.add(\"MK\");\n regionCodeSet.add(\"ML\");\n regionCodeSet.add(\"MM\");\n regionCodeSet.add(\"MN\");\n regionCodeSet.add(\"MO\");\n regionCodeSet.add(\"MP\");\n regionCodeSet.add(\"MQ\");\n regionCodeSet.add(\"MR\");\n regionCodeSet.add(\"MS\");\n regionCodeSet.add(\"MT\");\n regionCodeSet.add(\"MU\");\n regionCodeSet.add(\"MV\");\n regionCodeSet.add(\"MW\");\n regionCodeSet.add(\"MX\");\n regionCodeSet.add(\"MY\");\n regionCodeSet.add(\"MZ\");\n regionCodeSet.add(\"NA\");\n regionCodeSet.add(\"NC\");\n regionCodeSet.add(\"NE\");\n regionCodeSet.add(\"NF\");\n regionCodeSet.add(\"NG\");\n regionCodeSet.add(\"NI\");\n regionCodeSet.add(\"NL\");\n regionCodeSet.add(\"NO\");\n regionCodeSet.add(\"NP\");\n regionCodeSet.add(\"NR\");\n regionCodeSet.add(\"NU\");\n regionCodeSet.add(\"NZ\");\n regionCodeSet.add(\"OM\");\n regionCodeSet.add(\"PA\");\n regionCodeSet.add(\"PE\");\n regionCodeSet.add(\"PF\");\n regionCodeSet.add(\"PG\");\n regionCodeSet.add(\"PH\");\n regionCodeSet.add(\"PK\");\n regionCodeSet.add(\"PL\");\n regionCodeSet.add(\"PM\");\n regionCodeSet.add(\"PR\");\n regionCodeSet.add(\"PS\");\n regionCodeSet.add(\"PT\");\n regionCodeSet.add(\"PW\");\n regionCodeSet.add(\"PY\");\n regionCodeSet.add(\"QA\");\n regionCodeSet.add(\"RE\");\n regionCodeSet.add(\"RO\");\n regionCodeSet.add(\"RS\");\n regionCodeSet.add(\"RU\");\n regionCodeSet.add(\"RW\");\n regionCodeSet.add(\"SA\");\n regionCodeSet.add(\"SB\");\n regionCodeSet.add(\"SC\");\n regionCodeSet.add(\"SD\");\n regionCodeSet.add(\"SE\");\n regionCodeSet.add(\"SG\");\n regionCodeSet.add(\"SH\");\n regionCodeSet.add(\"SI\");\n regionCodeSet.add(\"SJ\");\n regionCodeSet.add(\"SK\");\n regionCodeSet.add(\"SL\");\n regionCodeSet.add(\"SM\");\n regionCodeSet.add(\"SN\");\n regionCodeSet.add(\"SO\");\n regionCodeSet.add(\"SR\");\n regionCodeSet.add(\"SS\");\n regionCodeSet.add(\"ST\");\n regionCodeSet.add(\"SV\");\n regionCodeSet.add(\"SX\");\n regionCodeSet.add(\"SY\");\n regionCodeSet.add(\"SZ\");\n regionCodeSet.add(\"TC\");\n regionCodeSet.add(\"TD\");\n regionCodeSet.add(\"TG\");\n regionCodeSet.add(\"TH\");\n regionCodeSet.add(\"TJ\");\n regionCodeSet.add(\"TL\");\n regionCodeSet.add(\"TM\");\n regionCodeSet.add(\"TN\");\n regionCodeSet.add(\"TO\");\n regionCodeSet.add(\"TR\");\n regionCodeSet.add(\"TT\");\n regionCodeSet.add(\"TV\");\n regionCodeSet.add(\"TW\");\n regionCodeSet.add(\"TZ\");\n regionCodeSet.add(\"UA\");\n regionCodeSet.add(\"UG\");\n regionCodeSet.add(\"US\");\n regionCodeSet.add(\"UY\");\n regionCodeSet.add(\"UZ\");\n regionCodeSet.add(\"VA\");\n regionCodeSet.add(\"VC\");\n regionCodeSet.add(\"VE\");\n regionCodeSet.add(\"VG\");\n regionCodeSet.add(\"VI\");\n regionCodeSet.add(\"VN\");\n regionCodeSet.add(\"VU\");\n regionCodeSet.add(\"WF\");\n regionCodeSet.add(\"WS\");\n regionCodeSet.add(\"XK\");\n regionCodeSet.add(\"YE\");\n regionCodeSet.add(\"YT\");\n regionCodeSet.add(\"ZA\");\n regionCodeSet.add(\"ZM\");\n regionCodeSet.add(\"ZW\");\n\n return regionCodeSet;\n }", "static int nonDivisibleSubset(int k, int[] S) {\n\t\tint result = 0;\n\n\t\tArrayList < ArrayList < Integer >> solutions = new ArrayList < ArrayList < Integer >>();\n\t\tArrayList < HashSet < Integer >> minSets = new ArrayList < HashSet < Integer >>();\n\n\t\tsolutions.add(new ArrayList <Integer > ( Arrays.asList ( S [ 0 ])));\n\t\tminSets.add (new HashSet <Integer > ( ));\n\t\tminSets.get(0).add ( S [ 0 ] % k);\n\n\n\t\t// Go over all the numbers\n\t\tfor ( int i = 1; i < S.length; i++ ){\n\t\t\tint n = S [ i ]; \n\t\t\tint m = S [ i ] % k; // Number we will add to all the elements of all the minSets.\n\n\t\t\t// Go over all the minSets.\n\t\t\t// For each one, check that each element plus m is not divisible by k.\n\n\t\t\tboolean workedForASet = false;\n\t\t\tfor ( int j = 0; j < minSets.size(); j++){\n\t\t\t\t// For each set, check all the elements of the set.\n\n\t\t\t\tHashSet < Integer > minSet = minSets.get(j);\n\t\t\t\tIterator < Integer > iter = minSet.iterator();\n\n\t\t\t\tboolean works = true;\n\t\t\t\twhile ( iter.hasNext() && works ){\n\t\t\t\t\tint num = iter.next();\n\t\t\t\t\tif ( (num + m) % k == 0 ){\n\t\t\t\t\t\tworks = false;\n\t\t\t\t\t\tworkedForASet = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( works ){\n\t\t\t\t\tsolutions.get(j).add(n);\n\t\t\t\t\tminSet.add(m);\n\t\t\t\t}\n\t\t\t} \n\n\t\t\tif ( !workedForASet ){\n\t\t\t\tsolutions.add(new ArrayList <Integer > ( Arrays.asList ( n )));\n\t\t\t\tminSets.add (new HashSet <Integer > ( ));\n\t\t\t\tminSets.get (minSets.size() - 1).add ( m ); \n\t\t\t} \n\t\t}\n\n\t\t// Find the solution with the most elements.\n\n\t\tfor ( ArrayList <Integer > solution : solutions ){\n\t\t\tresult = Math.max ( result, solution.size() );\n\t\t\tSystem.out.println ( solution );\n\t\t}\n\n\t\tif ( result == 1 ) result = 0;\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n\t\tint[] nums = {1,2,3};\n\t\tSystem.out.println(subsets(nums));\n\t}", "static void subsetSums(int arr[], int n)\n {\n \n // There are totoal 2^n subsets\n int total = 1 << n;\n \n // Consider all numbers from 0 to 2^n - 1\n for (int i = 0; i < total; i++) {\n int sum = 0;\n \n // Consider binary reprsentation of\n // current i to decide which elements\n // to pick.\n for (int j = 0; j < n; j++)\n if ((i & (1 << j)) != 0)\n sum += arr[j];\n \n // Print sum of picked elements.\n System.out.print(sum + \" \");\n }\n }", "public static ArrayList<ArrayList<Furniture>> getSubsets(ArrayList<Furniture> set) {\n ArrayList<ArrayList<Furniture>> allsubsets = new ArrayList<ArrayList<Furniture>>();\n // amount of subsets is 2^(set size)\n int max = 1 << set.size();\n\n for (int i = 0; i < max; i++) {\n ArrayList<Furniture> subset = new ArrayList<Furniture>();\n for (int j = 0; j < set.size(); j++) {\n if (((i >> j) & 1) == 1) {\n subset.add(set.get(j));\n }\n }\n allsubsets.add(subset);\n }\n return allsubsets;\n }", "public List<List<Integer>> subsets2(int[] A){\n\n int res = 0;\n int diff = Integer.MIN_VALUE;\n int count = 0;\n int start = 0;\n for (int i = 1; i < A.length; i++){\n int curDiff = A[i] - A[i - 1];\n if (diff == curDiff){\n count += i - start - 1 > 0 ? i - start - 1 : 0;\n } else {\n start = i - 1;\n diff = currDiff;\n res += count;\n count = 0;\n }\n }\n res += count;\n System.out.println(res);\n return new ArrayList<List<Integer>>();\n }", "public Map<K, Set<V>> coreGetAllSupersetsOf(Collection<?> set, int mode) {\n // Skip elements in the collection having an incorrect type, as we are looking for subsets which simply\n // cannot contain the conflicting items\n Set<V> navSet = createNavigableSet(set, true);\n Iterator<V> it = navSet.iterator();\n\n List<SetTrieNode> frontier = new ArrayList<>();\n frontier.add(superRootNode);\n\n // For every value, extend the frontier with the successor nodes for that value.\n V from = null;\n V upto = null;\n\n // Use a flag for null safety so we do not rely on the comparator to treat null as the least element\n boolean isLeastFrom = true;\n while(it.hasNext()) {\n from = upto;\n upto = it.next();\n\n List<SetTrieNode> nextNodes = new ArrayList<>();\n\n // Based on the frontier, we need to keep scanning nodes whose values is in the range [from, upto]\n // until we find the nodes whose values equals upto\n // Only these nodes then constitute the next frontier\n Collection<SetTrieNode> currentScanNodes = frontier;\n do {\n Collection<SetTrieNode> nextScanNodes = new ArrayList<>();\n for(SetTrieNode currentNode : currentScanNodes) {\n if(currentNode.nextValueToChild != null) {\n NavigableMap<V, SetTrieNode> candidateNodes = isLeastFrom\n ? currentNode.nextValueToChild.headMap(upto, true)\n : currentNode.nextValueToChild.subMap(from, true, upto, true);\n\n for(SetTrieNode candidateNode : candidateNodes.values()) {\n if(Objects.equals(candidateNode.value, upto)) {\n nextNodes.add(candidateNode);\n } else {\n nextScanNodes.add(candidateNode);\n }\n }\n }\n }\n currentScanNodes = nextScanNodes;\n } while(!currentScanNodes.isEmpty());\n\n frontier = nextNodes;\n\n isLeastFrom = false;\n }\n\n Map<K, Set<V>> result = new HashMap<>();\n\n // Copy all data entries associated with the frontier to the result\n Stream<SetTrie<K, V>.SetTrieNode> stream = frontier.stream();\n\n if(mode != 0) {\n stream = stream.flatMap(node -> reachableNodesAcyclic(\n node,\n x -> (x.nextValueToChild != null ? x.nextValueToChild.values() : Collections.<SetTrieNode>emptySet()).stream()));\n }\n\n stream.forEach(currentNode -> {\n if(currentNode.keyToSet != null) {\n for(Entry<K, NavigableSet<V>> e : currentNode.keyToSet.entrySet()) {\n result.put(e.getKey(), e.getValue());\n }\n }\n });\n\n return result;\n }", "private static void iterative(String[] set, int n) {\n if(set == null || n <= 0) {\n return;\n }\n \n // number of power sets is 2 ^ n\n long powerSetSize = (long)Math.pow(2, n); // or 1<<n\n \n \n // Run a loop for printing all 2^n subsets\n for(int i = 0; i < powerSetSize; i++) {\n System.out.print(\"\\\"\");\n \n for(int j = 0; j < n; j++) {\n /* \n * Don't understand!\n * \n * Check if jth bit in the counter i is set.\n * If set then print jth element from set \n */\n // (1<<j) is a number with jth bit 1\n // so when we 'and' them with the\n // subset number we get which numbers\n // are present in the subset and which\n // are not\n if((i & (1 << j)) > 0) {\n System.out.print(set[j]);\n }\n }\n System.out.print(\"\\\"\");\n \n System.out.println();\n }\n }", "public static void main(String[] args) {\n int arr[] = {479,758,315,472,730,101,460,619,510,612,8};\n System.out.println(\"find subset sum Top down: \"+findEqualSumSubsetTopDown(arr,arr.length));\n System.out.println(\"find subset sum Bottom Up: \"+findEqualSumSubsetBottomUp(arr,arr.length));\n\t}", "public List<List<Integer>> subsetsWithDup(int[] nums) {\n \n if (nums == null || nums.length == 0) {\n res.add(new ArrayList()); \n return res; \n } \n \n Arrays.sort(nums); \n \n List<Integer> buffer = new ArrayList(); \n normalDFS(nums, 0, buffer); \n \n return res; \n }", "void unionTreeCoreset(int k,int n_1,int n_2,int d, Point[] setA,Point[] setB, Point[] centres, MTRandom clustererRandom) {\n\t\t//printf(\"Computing coreset...\\n\");\n\t\t//total number of points\n\t\tint n = n_1+n_2;\n\n\t\t//choose the first centre (each point has the same probability of being choosen)\n\t\t\n\t\t//stores, how many centres have been choosen yet\n\t\tint choosenPoints = 0; \n\t\t\n\t\t//only choose from the n-i points not already choosen\n\t\tint j = clustererRandom.nextInt(n-choosenPoints); \n\n\t\t//copy the choosen point\n\t\tif(j < n_1){\n\t\t\t//copyPointWithoutInit(&setA[j],&centres[choosenPoints]);\n\t\t\tcentres[choosenPoints] = setA[j].clone();\n\t\t} else {\n\t\t\tj = j - n_1;\n\t\t\t//copyPointWithoutInit(&setB[j],&centres[choosenPoints]);\n\t\t\tcentres[choosenPoints] = setB[j].clone();\n\t\t}\n\t\ttreeNode root = new treeNode(setA,setB,n_1,n_2, centres[choosenPoints],choosenPoints); //??\n\t\tchoosenPoints = 1;\n\t\t\n\t\t//choose the remaining points\n\t\twhile(choosenPoints < k){\n\t\t\tif(root.cost > 0.0){\n\t\t\t\ttreeNode leaf = selectNode(root, clustererRandom);\n\t\t\t\tPoint centre = chooseCentre(leaf, clustererRandom);\n\t\t\t\tsplit(leaf,centre,choosenPoints);\n\t\t\t\t//copyPointWithoutInit(centre,&centres[choosenPoints]);\n\t\t\t\tcentres[choosenPoints] = centre;\n\t\t\t} else {\n\t\t\t\t//create a dummy point\n\t\t\t\t//copyPointWithoutInit(root.centre,&centres[choosenPoints]);\n\t\t\t\tcentres[choosenPoints] = root.centre;\n\t\t\t\tint l;\n\t\t\t\tfor(l=0;l<root.centre.dimension;l++){\n\t\t\t\t\tcentres[choosenPoints].coordinates[l] = -1 * 1000000;\n\t\t\t\t}\n\t\t\t\tcentres[choosenPoints].id = -1;\n\t\t\t\tcentres[choosenPoints].weight = 0.0;\n\t\t\t\tcentres[choosenPoints].squareSum = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\tchoosenPoints++;\n\t\t}\n\n\t\t//free the tree\n\t\tfreeTree(root);\n\n\t\t//recalculate clustering features\n\t\tint i;\n\t\tfor(i=0;i<n;i++){\n\t\t\t\t\n\t\t\tif(i < n_1) {\n\t\t\t\t\n\t\t\t\tint index = setA[i].centreIndex;\n\t\t\t\tif(centres[index].id != setA[i].id){\n\t\t\t\t\tcentres[index].weight += setA[i].weight;\n\t\t\t\t\tcentres[index].squareSum += setA[i].squareSum;\n\t\t\t\t\tint l;\n\t\t\t\t\tfor(l=0;l<centres[index].dimension;l++){\n\t\t\t\t\t\tif(setA[i].weight != 0.0){\n\t\t\t\t\t\t\tcentres[index].coordinates[l] += setA[i].coordinates[l];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tint index = setB[i-n_1].centreIndex;\n\t\t\t\tif(centres[index].id != setB[i-n_1].id){\n\t\t\t\t\tcentres[index].weight += setB[i-n_1].weight;\n\t\t\t\t\tcentres[index].squareSum += setB[i-n_1].squareSum;\n\t\t\t\t\tint l;\n\t\t\t\t\tfor(l=0;l<centres[index].dimension;l++){\n\t\t\t\t\t\tif(setB[i-n_1].weight != 0.0){\n\t\t\t\t\t\t\tcentres[index].coordinates[l] += setB[i-n_1].coordinates[l];\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}", "public static List<List<String>> getSubsets(List<String> list){\r\n List<List<String>> collections = new LinkedList<List<String>>();\r\n if(list.isEmpty()){\r\n return collections;\r\n } else {\r\n String first = list.get(0);\r\n List<String> firstList = new LinkedList<String>();\r\n firstList.add(first);\r\n for(List<String> sublist: getSubsets(list.subList(1, list.size()))) {\r\n List<String> sublistWithFirst = new LinkedList<String>();\r\n sublistWithFirst.add(first);\r\n sublistWithFirst.addAll(sublist);\r\n collections.add(sublist);\r\n collections.add(sublistWithFirst);\r\n }\r\n collections.add(firstList);\r\n }\r\n return collections;\r\n }", "void convertSubsetToExperimentalFactor( ExpressionExperiment expExp, GeoSubset geoSubSet );", "protected int[] resubset(int start, int length) {\n\t\tint[] tmp = new int[length];\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\ttmp[i] = subset[start + i];\n\t\t}\n\t\treturn tmp;\n\t}", "public List<List<Integer>> subsets3(int[] nums) {\n if (nums == null) {\n return new ArrayList<>();\n }\n\n List<List<Integer>> queue = new ArrayList<>();\n int index = 0;\n\n Arrays.sort(nums);\n queue.add(new LinkedList<Integer>());\n while (index < queue.size()) {\n List<Integer> subset = queue.get(index++);\n for (int i = 0; i < nums.length; i++) {\n if (subset.size() != 0 && subset.get(subset.size() - 1) >= nums[i]) {\n // We won't add 2 to [1, 3], or 1 to [2, 3]\n continue;\n }\n List<Integer> newSubset = new ArrayList<>(subset);\n newSubset.add(nums[i]);\n queue.add(newSubset);\n }\n }\n\n return queue;\n\n }", "public static void main(String[] args) {\n\t\tString dataFileName = DATA_PATH + \"data1.csv\";\n\t\t//supply path and name of file where created data is going to be saved\n\t\tString newFileName = DATA_PATH + \"data1_subsetTest.csv\"; \n\n\t\tArrayList<String> subsetConditions= new ArrayList<String>();\n\t\tsubsetConditions.add(\"Gen:==:7,8:Numeric\");\n\t\tsubsetConditions.add(\"Site:!=:Env1:Factor\");\n\t\tsubsetConditions.add(\"Blk:!=:4:Numeric\");\n\t\t\n\t\tRJavaManager rJavaManager= new RJavaManager();\n\t\trJavaManager.initStar();\n\t\trJavaManager.getRJavaDataManipulationManager().subSet(dataFileName, newFileName, subsetConditions);\n\n\t}", "public List<Integer> largestDivisibleSubset(int[] nums) {\n //1,2,6,18\n if(nums.length == 0){\n return new ArrayList<>();\n }\n Arrays.sort(nums);\n List<Integer>[] cache = new ArrayList[nums.length];\n for(int i=0; i<cache.length; i++){\n List<Integer> list = new ArrayList<>();\n list.add(nums[i]);\n cache[i] = list;\n }\n\n for(int i=nums.length-2; i>=0; i--){\n for(int j=i+1; j<nums.length; j++){\n if(nums[j]%nums[i] == 0 && cache[j].size()+1 > cache[i].size()){\n List<Integer> list = new ArrayList<>();\n list.add(nums[i]);\n list.addAll(cache[j]);\n cache[i] = list;\n }\n }\n }\n\n int maxCnt = 0;\n int pos = 0;\n for(int i=0; i<cache.length; i++){\n if(cache[i].size() > maxCnt){\n maxCnt = cache[i].size();\n pos = i;\n }\n }\n return cache[pos];\n }", "private static ArrayList<String> allAnagrams(ArrayList<String> subsets, AnagramDictionary dictionary) {\n ArrayList<String> anagrams = new ArrayList<>();\n for (int i = 0; i < subsets.size(); i++) {\n if (dictionary.getAnagramsOf(subsets.get(i)).size() != 0) {\n anagrams.addAll(dictionary.getAnagramsOf(subsets.get(i)));\n }\n }\n return anagrams;\n }", "public void iniSumSubconjuntos(int[] conjunto, int sumD)\n {\n List<List<Integer>> subsets = new ArrayList<>();\n subsets.add(new ArrayList<>());\n String ns = \"\";\n int sum = 0;\n int nSum = 1;\n System.out.println(\"Subconjunto que suman \" + sumD);\n for (int x : conjunto)\n {\n int n = subsets.size();\n for (int i = 0; i < n; i++)\n {\n ArrayList<Integer> aux = new ArrayList(subsets.get(i));\n aux.add(x);\n subsets.add(aux);\n if (aux.size() >= 2)\n {\n //Ejecucion del hilo mientras hace las combinaciones\n //-->>Implementado en hilo\n int add = 0;\n String ssAux = \"\";\n ssAux += \"{ \";\n for (int j = 0; j < aux.size(); j++)\n {\n if (j == aux.size() - 1)\n {\n ssAux += aux.get(j);\n } else\n {\n ssAux += aux.get(j) + \", \";\n }\n add += aux.get(j);\n }\n ssAux += \" }\\n\";\n if (add == sumD)\n {\n //--> Aqui imprime el resultado\n //System.out.println(\"\" + ssAux);\n sum++;\n System.out.println(sum + \".-\" + ssAux + \"\\n\");\n s += ssAux;\n } else\n {\n ns += nSum + \".- \" + ssAux + \"\\n\";\n nSum++;\n }\n }\n }\n }\n //System.out.println(\"Subconjuntos que suman \" + sumD + \"\\n\" + s + \" Total de resultados: \" + sum + \"\");\n System.out.println(\"\\n----------------------------------------------------------------------------------------\");\n System.out.println(\"Subconjuntos que NO suman \" + sumD + \"\\n\" + ns + \"Total de resultados: \" + nSum);\n //System.out.println(\"PPSubconjuntos\");\n /*subsets.forEach(System.out::println);*/\n }", "public static void powerSet(ArrayList<Integer> set) {\n HashSet<ArrayList<Integer>> output = new HashSet<ArrayList<Integer>>();\n output.add(new ArrayList<Integer>());\n for(Integer a : set) {\n HashSet<ArrayList<Integer>> new_subsets = new HashSet<ArrayList<Integer>>();\n ArrayList<Integer> el_set = new ArrayList<Integer>(a);\n new_subsets.add(el_set);\n for(ArrayList<Integer> subset: output) {\n ArrayList<Integer> new_subset = new ArrayList<Integer>(subset);\n new_subset.add(a);\n new_subsets.add(new_subset);\n }\n if(new_subsets.size() > 0) {\n output.addAll(new_subsets);\n }\n }\n for(ArrayList<Integer> subset: output) {\n System.out.print(\"{\");\n for(Integer el: subset) {\n System.out.print(el + \",\");\n }\n System.out.println(\"}\");\n }\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint [] A = {1,2,3};\n\t\tArrayList<ArrayList<Integer>> r = new Solution().subsets(A);\n\t\t\n\t\tfor(ArrayList<Integer> a : r){\n\t\t\tfor(int b : a)\n\t\t\t\tSystem.out.print(b);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}", "private static ArrayList<String> allSubsets(String unique, int[] mult, int k) {\n ArrayList<String> allCombos = new ArrayList<>();\n \n if (k == unique.length()) { // multiset is empty\n allCombos.add(\"\");\n return allCombos;\n }\n \n // get all subsets of the multiset without the first unique char\n ArrayList<String> restCombos = allSubsets(unique, mult, k+1);\n \n // prepend all possible numbers of the first char (i.e., the one at position k) \n // to the front of each string in restCombos. Suppose that char is 'a'...\n \n String firstPart = \"\"; // in outer loop firstPart takes on the values: \"\", \"a\", \"aa\", ...\n for (int n = 0; n <= mult[k]; n++) { \n for (int i = 0; i < restCombos.size(); i++) { // for each of the subsets \n // we found in the recursive call\n // create and add a new string with n 'a's in front of that subset\n allCombos.add(firstPart + restCombos.get(i)); \n }\n firstPart += unique.charAt(k); // append another instance of 'a' to the first part\n }\n \n return allCombos;\n }", "private String createSubsetHash(ArrayList<Integer> leafIds, String branchId) {\n if (leafIds.isEmpty()){\n //We make a single entry subset that represents a \"NULL\" subset and will never match any systems\n //We need this because an empty machine ID list causes a 400 HTTP error code\n leafIds.add(-1); \n }\n Collections.sort(leafIds);\n return branchId + \"__\" + DigestUtils.sha1Hex(StringUtils.join(leafIds.toArray()));\n }", "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }", "public static void main(String[] args){\n int MIN = Integer.parseInt(args[0]);\n MAX = Integer.parseInt(args[1]);\n cutoffs = new int[args.length - 2];\n cache = new ArrayList<IndexedArrayList<SuperSavvyTrieHelper2>>();\n for (int i = 2; i < args.length; i++){\n cutoffs[i - 2] = Integer.parseInt(args[i]);\n cache.add(new IndexedArrayList<SuperSavvyTrieHelper2>());\n }\n for (int i = 0; i < cutoffs.length / 2; i++){\n int temp = cutoffs[i];\n cutoffs[i] = cutoffs[cutoffs.length - 1 - i];\n cutoffs[cutoffs.length - 1 - i] = temp;\n }\n multiplicitiesUsed = new boolean[MAX + 1];\n basesUsed = new DoublyLinkedArray(MAX + 1);\n SuperSavvyTrieHelper2.setCorrespondance(basesUsed);\n /*\n long count1 = lowerRecursion(MAX, 0);\n long count2 = middleRecursion(MAX, 0);\n long count3 = upperRecursion(MAX, 0);\n long total = count1 + count2 + count3;\n System.out.printf(\"%d + %d + %d = %d\\n\", count1, count2, count3, total);\n */\n hitCounts = new long[cutoffs.length];\n missCounts = new long[cutoffs.length];\n statCollector = new StatCollector(cutoffs);\n\n long startTime = System.nanoTime();\n long[] values = new long[MAX - MIN + 1];\n for (int i = MIN; i <= MAX; i++) {\n values[i - MIN] = upperRecursionWrapper(i);\n }\n //long[] testValues = new long[] {1752443,1911046, 2067456,2249444,2429337, 2647532,2852449,3101167,3350292,3632299,3916575};\n for (int i = 0; i < values.length; i++){\n //if (testValues[i] != values[i]){\n System.out.printf(\"%d: %d\\n\", i + MIN, values[i]);\n //}\n }\n long endTime = System.nanoTime();\n System.out.printf(\"%f,\", (double)(endTime - startTime) / 1000000000.0);\n long totalMissCounts = 0;\n long totalMissWeight1 = 0;\n long totalMissWeight2 = 0;\n long totalMissWeight3 = 0;\n /*\n for (int i = 0; i < cutoffs.length; i++){\n long totalCounts = hitCounts[i] + missCounts[i];\n totalMissCounts += missCounts[i];\n totalMissWeight1 += missCounts[i] * cutoffs[i];\n totalMissWeight2 += (hitCounts[i] / missCounts[i]) * cutoffs[i];\n totalMissWeight3 += (hitCounts[i] - missCounts[i]) * cutoffs[i] * cutoffs[i];\n System.out.printf(\"\\tCache %d: %d/%d/%d (%.5f%%)\", cutoffs[i], hitCounts[i], missCounts[i], totalCounts, (double) hitCounts[i] / totalCounts);\n }\n System.out.printf(\"\\t\\tMissCounts: %d, weighted: %d, ratio: %d, diff^2: %d\\n\", totalMissCounts, totalMissWeight1, totalMissWeight2, totalMissWeight3);\n */\n statCollector.printAll();\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint query = input.nextInt();\n\t\t\n\t\tfor(int i=0;i<query;i++)\n\t\t{\n\t\t\tint n=input.nextInt();\n\t\t\tint m=input.nextInt();\n\t\t\tint[] array=new int[n];\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t{\n\t\t\t\tarray[j]=input.nextInt();\n\t\t\t}\n\t\t\tSystem.out.println(maxSubArraySum(subsets(array),m));\n\t\t\t\n\t\t}\n\t\t\n\t}", "public boolean isSubset() {\n return isSubset;\n }", "public boolean isSubset() {\n return isSubset;\n }", "protected boolean applySubsetRule(Node value) {\n\n int type;\n int sizeParents;\n boolean isAppliedRule = false;\n Node auxI;\n Node auxJ;\n int i;\n NodeList auxNodeList = new NodeList();\n Node auxNode;\n\n\n //If the subset rule is forbidden then the methods finishes\n if (canApplySubsetRule == false) {\n return false;\n } else {\n\n type = value.getKindOfNode();\n\n if (type == Node.UTILITY) {\n return false;\n } else {//(type == Node.SUPER_VALUE)\n NodeList parents = diag.parents(value);\n sizeParents = parents.size();\n\n //See if subset rule can be applied to some ancestors\t\t\t\n for (i = 0; (i < sizeParents) && (isAppliedRule == false); i++) {\n isAppliedRule = applySubsetRule(parents.elementAt(i));\n }\n if (isAppliedRule) {\n indexOperation++;\n try {\n diag.save(\"debug-operation-\" + indexOperation + \".elv\");\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n if (isAppliedRule == false) {\n //See if subset rule can be applied to two utility parents\n for (i = 0; (i < sizeParents - 1) && (isAppliedRule == false); i++) {\n auxI = parents.elementAt(i);\n if (auxI.getKindOfNode() == Node.UTILITY) {\n for (int j = i + 1; (j < sizeParents) && (isAppliedRule == false); j++) {\n auxJ = parents.elementAt(j);\n if (auxJ.getKindOfNode() == Node.UTILITY) {\n if (verifySubsetRule(auxI, auxJ)) {\n String operation =\n \"Apply subset rule to: \" + auxI.getName() + \" and \" + auxJ.getName();\n\n statistics.addOperation(operation);\n System.out.println(operation);\n\n auxNodeList.insertNode(auxI);\n auxNodeList.insertNode(auxJ);\n auxNode = introduceSVNode(auxNodeList, value);\n System.out.println(\"Nodo introducido por la subset rule anterior: \" + auxNode.getName());\n ReductionAndEvalID.reduceNode((IDWithSVNodes) diag, auxNode);\n System.out.println(\"Reducción del nodo: \" + auxNode.getName());\n\n statistics.addSize(diag.calculateSizeOfPotentials());\n statistics.addTime(crono.getTime());\n\n\n isAppliedRule = true;\n\n indexOperation++;\n try {\n diag.save(\"debug-operation-\" + indexOperation + \".elv\");\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n\n }\n }\n }\n }\n }\n\n }\n }\n\n return isAppliedRule;\n }\n }", "private int[][] getSubsets(int[] A, int k, int start, int curLen, boolean[] used){\n\t\tint[][] toReturn = new int[A.length][A.length];\n\t\tfor(int j=0; j< A.length; j++){\n\t\t\tif (curLen == k){\n\t\t\t\tfor(int i =0; i < A.length; i++){\n\t\t\t\t\tif (used[i] == true){\n\t\t\t\t\t\ttoReturn[j][i] = A[i];\n\t\t\t\t\t\tSystem.out.print(A[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (start == A.length){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tused[start] = true;\n\t\t\tgetSubsets(A, k, start +1, curLen +1, used);\n\t\t\t\n\t\t\tused[start] = false;\n\t\t\tgetSubsets(A, k, start +1, curLen, used);\n\t\t}\n\t\treturn toReturn;\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(findSubset(30, new int[]{2,3,7,8,10}));\n\n\t}", "public static List<List<Integer>> subsetsWithDuplicates(int[] nums) {\n List<List<Integer>> answer = new ArrayList<>();\n Arrays.sort(nums); // sort to remove duplicates later\n recurseSubsetsWithDuplicates(answer, new ArrayList<>(), nums, 0);\n return answer;\n }", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] num) {\n\t\tArrayList<ArrayList<Integer>> rs = new ArrayList<ArrayList<Integer>> ();\n\t\t\n\t\tif(num.length == 0)\n\t\t\treturn rs;\n\t\t\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = Integer.MAX_VALUE;\n\t\tfor(int n : num)\n\t\t{\n\t\t\tif(n > max)\n\t\t\t\tmax = n;\n\t\t\tif(n < min)\n\t\t\t\tmin = n;\n\t\t}\n\t\t\n\t\tint len = max - min + 1;\n\t\tint[] r = new int[len];\n\t\t\n\t\t//HashMap<Integer, Integer> records = new HashMap<Integer, Integer> ();\n\t\tfor(int i = 0; i < num.length; i++)\n\t\t{\n\t\t\tint k = num[i] - min;\n\t\t\t/* if(records.contains(k))\n\t\t\t\trecords.put(k, records.get(k)+1);\n\t\t\telse\n\t\t\t\trecords.put(k, 1); */\n\t\t\tr[k]++;\n\t\t}\n\t\t\n\t\treturn exec(0, r, min);\n }", "private static void recurseSubsetsWithDuplicates(\n List<List<Integer>> answer, List<Integer> currentAnswer, int[] nums, int startIndex) {\n answer.add(new ArrayList<>(currentAnswer)); // clone\n\n for (int i = startIndex; i < nums.length; i++) {\n if (i > startIndex && nums[i] == nums[i - 1]) {\n continue; // skip duplicates\n }\n\n currentAnswer.add(nums[i]);\n recurseSubsetsWithDuplicates(answer, currentAnswer, nums, i + 1); // i+1: don't reuse nums[i]\n currentAnswer.remove(currentAnswer.size() - 1);\n }\n }", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n n = in.nextInt();\n m = in.nextLong();\n initFactorSets();\n long total = 0;\n\n boolean add = true;\n for (ArrayList<Integer> factorSet : factorSets) {\n for (int factor : factorSet) {\n if (add) {\n total += m / factor;\n } else {\n total -= m / factor;\n }\n }\n add = !add;\n }\n System.out.println(total);\n }", "public int getNumberOfSets();", "public DeterministicSubsettingStrategy(String clusterName, int minSubsetSize)\n {\n MD5Hash hashFunction = new MD5Hash();\n String[] keyTokens = {clusterName};\n _randomSeed = hashFunction.hashLong(keyTokens);\n _minSubsetSize = minSubsetSize;\n }", "public List<List<Integer>> subsetsWithDup(int[] nums) {\n \n if (nums == null || nums.length == 0) {\n res.add(new ArrayList()); \n return res; \n } \n \n Arrays.sort(nums); \n \n List<Integer> buffer = new ArrayList(); \n combinationDFS(nums, 0, buffer, true); \n \n return res; \n }", "public List<List<Integer>> subsetsWithDup(int[] nums) {\r\n\t\tMap<Integer, Integer> map = new HashMap<Integer, Integer>();\r\n\t\tList<List<Integer>> rst = new LinkedList<List<Integer>>();\r\n\t\trst.add(new ArrayList<Integer>());\r\n\r\n\t\tfor (int num : nums) {\r\n\t\t\tmap.put(num, map.get(num) == null ? 1 : map.get(num) + 1);\r\n\t\t}\r\n\r\n\t\tIterator<Entry<Integer, Integer>> iter = map.entrySet().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tEntry<Integer, Integer> entry = iter.next();\r\n\t\t\tint num = entry.getKey();\r\n\t\t\tint count = entry.getValue();\r\n\t\t\tint size = rst.size();\r\n\t\t\tList<Integer> next = new ArrayList<Integer>();\r\n\t\t\tfor (int i = 1; i <= count; i++) {\r\n\t\t\t\tnext.add(num);\r\n\t\t\t\tfor (int s = 0; s < size; s++) {\r\n\t\t\t\t\tList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\t\tlist.addAll(rst.get(s));\r\n\t\t\t\t\tlist.addAll(next);\r\n\t\t\t\t\trst.add(list);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rst;\r\n\t}", "@Test\r\n public void testIsSubset1() {\r\n Assert.assertEquals(false, set1.isSubset(set2));\r\n }", "int[] MinSubUnion(int x, ArrayList<Integer> vn, ArrayList<Integer> vnComp){\n\tint[] ret = new int[x];\n\t\n\t/*\n\t * Build the set for legitimate users\n\t */\n\t//ArrayList<String> L = new ArrayList<String>();\n\tArrayList<String> LComp = new ArrayList<String>();\n\t//for (int v : vn)\n\t//\tL.addAll(this.LiSet[v]);\n\tfor (int v : vnComp){\n\t\tLComp.removeAll(this.LiSet[v]);\n\t\tLComp.addAll(this.LiSet[v]);\n\t}\n\t\n\tfor(int i = 0; i < x; i ++){\n\t\tint gain = 1000000000;\n\t\tint v_min = -1;\n\t\t\n\t\tfor(int v : vn){\n\t\t\tArrayList<String> temp = this.LiSet[v];\n\t\t\ttemp.removeAll(LComp);\n\t\t\tif(gain > temp.size()){\n\t\t\t\tgain = temp.size();\n\t\t\t\tv_min = v;\n\t\t\t}\n\t\t}\n\t\tif(v_min == -1)\n\t\t\tcontinue;\n\n\t\t//L.removeAll(this.LiSet[v_max]);\n\t\tLComp.removeAll(this.LiSet[v_min]);\n\t\tLComp.addAll(this.LiSet[v_min]);\n\t\tvn.remove(vn.indexOf(v_min));\n\t\tvnComp.add(v_min);\n\t\tret[i] = v_min;\n\t}\n\treturn ret;\n}", "@SuppressWarnings(\"unchecked\")\r\n public static void main(String[] args) throws NumberFormatException, IOException\r\n {\n\r\n String graph = args[0];\r\n String cliqueset = args[1];\r\n String edge_set = args[2];\r\n int batch_size = Integer.parseInt(args[3]); // batch count in\r\n // incremental computation\r\n String out_file = args[4];\r\n\r\n \r\n\r\n Graph G = new Graph(graph, 1); // for adjacency list format\r\n\r\n\r\n LineNumberReader lnr = new LineNumberReader(new FileReader(new File(edge_set)));\r\n lnr.skip(Long.MAX_VALUE);\r\n int lines = lnr.getLineNumber() + 1;\r\n lnr.close();\r\n\r\n CliqueSet = new HashSet[2];\r\n\r\n BufferedReader cbr = new BufferedReader(new FileReader(cliqueset));\r\n String line;\r\n\r\n CliqueSet[0] = new HashSet<>();\r\n CliqueSet[1] = new HashSet<>();\r\n\r\n // adding the existing cliqueset to a container. Each clique is stored\r\n // as a string of vertex ids sorted\r\n while ((line = cbr.readLine()) != null)\r\n {\r\n\r\n TreeSet<Integer> T = new TreeSet<Integer>();\r\n StringBuilder sb = new StringBuilder();\r\n for (String s : line.split(\"\\\\s+\"))\r\n {\r\n T.add(Integer.parseInt(s));\r\n }\r\n //for (int v : T)\r\n //{\r\n // sb.append(v + \" \");\r\n //}\r\n \r\n String cliquestring = T.toString().replace(\"[\", \"\").replace(\"]\", \"\").replace(\",\", \"\");\r\n /* Computing signature of the clique */\r\n CliqueSet[0].add(cliquestring);\r\n\r\n }\r\n System.out.println(\"Intial CliqueSet Reading Complete!!\");\r\n cbr.close();\r\n\r\n int id = 0;\r\n int index = 0;\r\n boolean eof_flag = false;\r\n\r\n BufferedReader ebr = new BufferedReader(new FileReader(edge_set));\r\n\r\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(out_file, true)));\r\n\r\n out.println();\r\n out.println(\"Algorithm-Baseline-TTT\");\r\n out.println(\"Total Number - (new + subsumed)\\t Computation time(ms)\");\r\n out.println();\r\n out.close();\r\n \r\n int turn = 1;\r\n\r\n while (true)\r\n {\r\n index = 0;\r\n id++;\r\n\r\n while (index < batch_size)\r\n {\r\n if ((line = ebr.readLine()) != null)\r\n {\r\n int u = Integer.parseInt(line.split(\" \")[0]);\r\n int v = Integer.parseInt(line.split(\" \")[1]);\r\n G.addEdge(u, v);\r\n index++;\r\n }\r\n else\r\n {\r\n eof_flag = true;\r\n break;\r\n }\r\n }\r\n\r\n System.out.println(\"Updating graph complete!!\");\r\n\r\n System.out.println(\"Maximal Clique Computation start!!\");\r\n long t1 = System.currentTimeMillis();\r\n new TTT_Baseline(G, turn);\r\n long compute_time = System.currentTimeMillis() - t1;\r\n System.out.println(\"Maximal Clique Computation end!!\");\r\n\r\n System.out.println(\"Symmetric Difference Computation start!!\");\r\n long t2 = System.currentTimeMillis();\r\n /* computing the symmetric difference */\r\n Set<String> symmetricDiff = new HashSet<>(CliqueSet[1-turn]);\r\n symmetricDiff.addAll(CliqueSet[turn]);\r\n //Set<String> tmp = new HashSet<>(CliqueSet[id - 1]);\r\n HashSet<String> tmp1 = SetOperations.intersect(CliqueSet[1-turn], CliqueSet[turn]);\r\n //tmp.retainAll(CliqueSet[turn];\r\n symmetricDiff.removeAll(tmp1);\r\n System.out.println(\"Symmetric Difference Computation end!!\");\r\n turn = 1 - turn;\r\n CliqueSet[turn].clear();\r\n\r\n long symdiff_time = System.currentTimeMillis() - t2;\r\n\r\n long total_time = compute_time + symdiff_time;\r\n \r\n out = new PrintWriter(new BufferedWriter(new FileWriter(out_file, true)));\r\n\r\n out.println(symmetricDiff.size() + \"\\t\" + total_time);\r\n out.close();\r\n System.out.println(id + \": \" + symmetricDiff.size() + \"\\t\" + total_time);\r\n if (eof_flag)\r\n break;\r\n\r\n }\r\n\r\n ebr.close();\r\n\r\n }", "public void setSubsetVersion(String version);", "public static void main(String[] args){\n\t\t\n\t\tLabelSet cLabelSet=new LabelSet();\n\t\tLabelSet tLabelSet=new LabelSet();\n\t\t\n\t\tList<Label> cLabels=new ArrayList<Label>();\n\t\tList<Label> tLabels=new ArrayList<Label>();\n\t\t\n\t\tcLabels.add(cLabelSet.newLabel(\"1\"));tLabels.add(tLabelSet.newLabel(\"x\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"1\"));tLabels.add(tLabelSet.newLabel(\"x\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"1\"));tLabels.add(tLabelSet.newLabel(\"x\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"1\"));tLabels.add(tLabelSet.newLabel(\"x\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"1\"));tLabels.add(tLabelSet.newLabel(\"x\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"1\"));tLabels.add(tLabelSet.newLabel(\"o\"));\n\t\t\n\t\tcLabels.add(cLabelSet.newLabel(\"2\"));tLabels.add(tLabelSet.newLabel(\"x\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"2\"));tLabels.add(tLabelSet.newLabel(\"o\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"2\"));tLabels.add(tLabelSet.newLabel(\"o\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"2\"));tLabels.add(tLabelSet.newLabel(\"o\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"2\"));tLabels.add(tLabelSet.newLabel(\"o\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"2\"));tLabels.add(tLabelSet.newLabel(\"d\"));\n\t\t\n\t\tcLabels.add(cLabelSet.newLabel(\"3\"));tLabels.add(tLabelSet.newLabel(\"x\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"3\"));tLabels.add(tLabelSet.newLabel(\"x\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"3\"));tLabels.add(tLabelSet.newLabel(\"d\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"3\"));tLabels.add(tLabelSet.newLabel(\"d\"));\n\t\tcLabels.add(cLabelSet.newLabel(\"3\"));tLabels.add(tLabelSet.newLabel(\"d\"));\n\t\t\n\t\tExternalCQM m=new RI();\n\t\t\n\t\tSystem.out.println(m.getClass().getSimpleName()+\": \"+FormatUtil.d4(m.measure(cLabels,tLabels)));\n\t\t\n\t}", "public boolean subset(ZYSet<ElementType> potentialSubset){\n for(ElementType e:potentialSubset){\n if(!this.contains(e)){\n return false;\n }\n }\n return true;\n }", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] num) {\n int[] S = num;\n Arrays.sort(S);\n ArrayList<ArrayList<Integer>> ans = new ArrayList<ArrayList<Integer>>();\n Stack<Integer> temp = new Stack<Integer>();\n search(S, 0, temp, ans);\n return ans;\n }", "public ArrayList<String> getRack() {\n\t\treturn subsets;\n\t}", "public static void main(String[] args) {\n\t\tStopwatch timer = new Stopwatch();\n\t\t//for(int i = 0; i< 10;i++) {\n\t\t\tIn in = new In(args[0]);\n\t\t\tSizeWeightedQuickUnionVisualizer q = new SizeWeightedQuickUnionVisualizer(in.readInt());\n\t\t\twhile(!in.isEmpty()) {\n\t\t\t\tint m = in.readInt();\n\t\t\t\tint n = in.readInt();\n\t\t\t\tif(q.isConnected(m, n)) continue;\n\t\t\t\tq.union(m, n);\n\t\t\t}\n\t\t//}\n\t\tdouble time = timer.elapsedTime();\n\t\t//System.out.println(\"the average time of 10 trials is : \" + time/10 + \" seconds\");\n\t\t//System.out.println(\"the number of components is \"+ q.count()+\" the number of total array accesses is \"+q.sum + \" the average nodes' depth is: \"+ q.getAvgDepth()+\" time: \"+time+\" seconds\");\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader f = new BufferedReader(new FileReader(\"whereami.in\"));\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"whereami.out\")));\n\n //reads in and initializes n and k values\n StringTokenizer st = new StringTokenizer(f.readLine());\n int stringSize = Integer.parseInt(st.nextToken());\n\n st = new StringTokenizer(f.readLine());\n //initializes variable for input string\n String string = st.nextToken();\n\n //computes all subsequences and adds to set\n subsequence(string, string.length());\n\n boolean[] checks= new boolean[stringSize];\n\n int smallestSize = 0;\n\n for (int i = 0; i < stringSize; i++) {\n checks[i] = true;\n for (String s : subSequences) {\n if (s.length() == i + 1 && numberOccurrences(string, s) != 1) {\n checks[s.length() - 1] = false;\n }\n }\n if (checks[i] == true) {\n smallestSize = i + 1;\n break;\n }\n }\n\n out.println(smallestSize);\n out.close();\n }", "Boolean subset(MultiSet<X> s);", "public static void main(String[] args){\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter n1 = \");\n\t\tint n1 = input.nextInt();\n\t\tint[] a1 = new int[n1];\n\t\tint i;\n\t\tSystem.out.println(\"Enter array-1 : \");\n\t\tfor(i=0;i<n1;i++)\n\t\t\ta1[i] = input.nextInt();\n\t\tSystem.out.print(\"Enter n2 = \");\n\t\tint n2 = input.nextInt();\n\t\tint[] a2 = new int[n2];\n\t\tSystem.out.println(\"Enter array-2 : \");\n\t\tfor(i=0;i<n2;i++)\n\t\t\ta2[i] = input.nextInt();\n\t\tHashMap<Integer,Boolean> h = new HashMap<Integer,Boolean>();\n\t\t\n\t\tfor(i=0;i<n1;i++){\n\t\t\tif (!h.containsKey(a1[i]))\n\t\t\t\th.put(a1[i],true);\n\t\t}\n\t\tint f=1;\n\t\tfor(i=0;i<n2;i++){\n\t\t\tif (! h.containsKey(a2[i]) )\n\t\t\t\tf=0;\n\t\t}\n\t\tif (f==1)\n\t\t\tSystem.out.println(\"Yes! It's a subset\");\n\t\telse\n\t\t\tSystem.out.println(\"No! It's NOT a subset\");\n\t\t\t\n\t\t\n\t\n\t}", "public static void main(String[] args) {\n int size = 100;\n int mult = 100;\n\n ArrayList<Integer> numbers = new ArrayList<>();\n\n //generate random array to sort\n for (int i = 0; i < size; i++) {\n numbers.add((int) (Math.random() * mult));\n }\n\n System.out.println(numbers.toString());\n\n numbers = quickSortSubset(numbers,0);\n\n System.out.println(numbers.toString());\n\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.print(\"Number of input: \");\n\t\tint input = scan.nextInt();\n\t\tint[] initialSet = new int[input];\n\t\t\n\t\t//input user numbers into set array\n\t\tSystem.out.print(\"Enter \" + input + \" numbers: \");\n\t\tfor(int i = 0; i < input; i++){\n\t\t\tinitialSet[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\t//find partition\n\t\tpartition(initialSet, input);\n\t\t\n\t}", "public SubsetTableImpl(TableImpl table) {\n\t\tthis.columns = table.getColumns();\n\t\tthis.label = table.label;\n\t\tthis.comment = table.comment;\n\t\tthis.subset = new int[table.getNumRows()];\n\t\tif (table instanceof SubsetTableImpl) {\n\t\t\tint[] tmp = ((SubsetTableImpl) table).getSubset();\n\t\t\tfor (int i = 0; i < this.subset.length; i++) {\n\t\t\t\tthis.subset[i] = tmp[i];\n\t\t\t}\n\t\t} else\n\t\t\tfor (int i = 0; i < this.subset.length; i++) {\n\t\t\t\tthis.subset[i] = i;\n\t\t\t}\n\t}", "private void addTreeSubset(final EmbeddedTreePlaneSubset tree) {\n // no need to validate the line here since the add() method does that for us\n getTreeSubset().add(tree);\n }", "public static void main(String args[]){\n\t\tString indexLocation = \"H:\\\\ukbench\\\\training2\\\\\";\r\n\t\tString searchLocation = \"H:\\\\ukbench\\\\query\\\\\";\r\n\t\t\r\n//\t\tint[] testSizes = {2000};\r\n//\t\tint[] numTreesTests = {3,4,5,6,7,8,9,10};\r\n//\t\tint[] examineTopNResultsTests = {5,10,20};\r\n\t\tint[] testSizes = {10200};\r\n\t\tint[] numTreesTests = {1};//3,4,5,10};\r\n\t\tint[] examineTopNResultsTests = {5,20};\r\n\t\tfor ( int testSize : testSizes ){\r\n\t\t\tfor ( int numTrees : numTreesTests ){\r\n\t\t\t\tfor ( int numResults : examineTopNResultsTests ){\r\n\t\t\t\t\tSystem.out.println(testSize + \", \" + numTrees + \", \" + numResults);\r\n\t\t\t\t\tMultiIndexFinder finder = new MultiIndexFinder(indexLocation,numTrees,testSize/4);\r\n\t\t\t\t\t\r\n\t\t\t\t\tList<FileFilter> filters = new ArrayList<FileFilter>();\r\n\t\t\t\t\tfilters.add(new FileFilter(\".*\\\\.jpg\"));\r\n\t\t\t\t\tFileFinder ffinder = new FileFinder(searchLocation,filters);\r\n\t\t\t\t\tList<File> files = ffinder.getFiles();\r\n\t\t\t\t\tint numRight = 0;\r\n\t\t\t\t\tint numWrong = 0;\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor ( File file : files ){\r\n\t\t\t\t\t\tString foundFile = finder.findBestMatch(file.getAbsolutePath(),numResults);\r\n\t\t\t\t\t\t//System.out.println(\"for \" + file.getAbsolutePath() + \", found \" + foundFile);\r\n\t\t\t\t\t\tif ( !\"\".equals(foundFile) && IndexFinder.isCorrectFile(file.getAbsolutePath(),foundFile) ){\r\n\t\t\t\t\t\t\tnumRight++;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnumWrong++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\tif ( count >= (testSize *3)/4 ) break;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(numRight/(float)(numRight+numWrong));\r\n\t\t\t\t\tSystem.gc();\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] S) {\n Arrays.sort(S);\n ArrayList<ArrayList<Integer>> ret = new ArrayList<ArrayList<Integer>> ();\n int n = S.length;\n int size = 1 << n;\n for (int i = 0; i < size; i ++) {\n ArrayList<Integer> r = new ArrayList<Integer> ();\n int k = i;\n int j = 0;\n boolean flag = true;\n while (k != 0) {\n if ((k & 1) == 1) {\n if (j + 1 < n && S[j] == S[j + 1] && (k & 2) == 0) {\n flag = false;\n break;\n }\n r.add(S[j]);\n }\n j ++;\n k = k >> 1;\n }\n if (flag) {\n ret.add(r);\n }\n }\n return ret;\n }", "public static void main (String args[])\n\t {\n\t int set[] = {3, 34, 4, 12, 5, 2};\n\t int sum = 9;\n\t int n = set.length;\n\t if (isSubsetSum(set, n, sum) == true)\n\t System.out.println(\"Found a subset with given sum\");\n\t else\n\t System.out.println(\"No subset with given sum\");\n\t }", "int find(subset [] subsets , int i){ \n\t\n\t\tif (subsets[i].parent != i) \n\t\t\tsubsets[i].parent = find(subsets, subsets[i].parent); \n\t\t\treturn subsets[i].parent; \n\t}", "final public int[] getSubset() {\n\t\treturn subset;\n\t}", "public static void main(String[] args) {\n subset(\"\", \"123\");\n }" ]
[ "0.65579987", "0.652896", "0.6165192", "0.6143363", "0.6102711", "0.6035569", "0.60313684", "0.60182357", "0.5967258", "0.5938524", "0.5912428", "0.5899778", "0.58885586", "0.5877098", "0.5876841", "0.5835642", "0.5806637", "0.5749846", "0.5723277", "0.57154346", "0.57139933", "0.5711287", "0.5711287", "0.5696653", "0.5681534", "0.56635326", "0.56538534", "0.56231344", "0.56019473", "0.55879045", "0.55823994", "0.5565459", "0.556303", "0.5534875", "0.5522224", "0.5518106", "0.55096334", "0.55015767", "0.5499147", "0.54925793", "0.54829603", "0.54784256", "0.5458894", "0.54545677", "0.54507196", "0.5450467", "0.543898", "0.5422524", "0.5402849", "0.5396702", "0.5372474", "0.53634405", "0.53622746", "0.53586334", "0.5357038", "0.5340405", "0.5326662", "0.53251797", "0.53223896", "0.53193057", "0.5315816", "0.5305045", "0.5298167", "0.5296394", "0.5296356", "0.52882844", "0.52882844", "0.52820003", "0.52669185", "0.52659065", "0.5263495", "0.5261712", "0.5253428", "0.5240883", "0.52405775", "0.5234561", "0.52339053", "0.523343", "0.5218612", "0.51972497", "0.51841927", "0.51820785", "0.51750004", "0.5173401", "0.51683587", "0.5136487", "0.51359075", "0.51299524", "0.51249415", "0.5119955", "0.51077783", "0.5093049", "0.508442", "0.50842965", "0.5073563", "0.50654924", "0.50610787", "0.505654", "0.50370836", "0.50360864" ]
0.5952176
9
Return null if passed in null
@Override public Location getLocation(MapPoint point) { if (point == null) return null; World world = worlds.get(point.getWorld()); float yaw = point.getYaw(); float pitch = point.getPitch(); //Account for the fact that NaN yaw/pitch indicate that they shouldn't be changed / are not present if (Float.isNaN(yaw)) yaw = 0; if (Float.isNaN(pitch)) pitch = 0; return new Location(world, point.getX(), point.getY(), point.getZ(), yaw, pitch); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T getNullValue();", "@Override\n public String visit(NullLiteralExpr n, Object arg) {\n return null;\n }", "private static String null2unknown(String in) {\r\n\t\tif (in == null || in.length() == 0) {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\treturn in;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void flagNull() {\n\t\t\n\t}", "@Nullable\n public\n Object\n foo () {\n return null;\n }", "String getDefaultNull();", "default V getOrThrow() {\n return getOrThrow(\"null\");\n }", "@Override\n public String visit(ReceiverParameter n, Object arg) {\n return null;\n }", "@Deprecated\n @InlineMe(replacement = \"null\")\n @Override\n public final Object getValue(final String arg0) {\n return null;\n }", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "protected abstract Object convertNonNull(Object o);", "public class_1562 method_207() {\r\n return null;\r\n }", "public String method_211() {\r\n return null;\r\n }", "@Override\n\tprotected Object doGetValue(Object source) {\n\t\treturn null;\n\t}", "@Override\n public String visit(ThisExpr n, Object arg) {\n return null;\n }", "@Override\n\tpublic void visit(NullValue arg0) {\n\n\t}", "public String visit(SpilledArg n, Object argu)\r\n\t {\r\n\t\t return null;\r\n\t }", "@Override\n\tpublic void visit(NullValue arg0) {\n\t\t\n\t}", "@Override\n public String visit(VoidType n, Object arg) {\n return null;\n }", "@Override\n public String visit(UnknownType n, Object arg) {\n return null;\n }", "@Override\n public String visit(Name n, Object arg) {\n return null;\n }", "@Override\n public String visit(LambdaExpr n, Object arg) {\n return null;\n }", "NullValue createNullValue();", "NullValue createNullValue();", "@Override\n public String visit(UnionType n, Object arg) {\n return null;\n }", "@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\n\t}", "@Override\n public String visit(MemberValuePair n, Object arg) {\n return null;\n }", "@Override\n public String visit(ReturnStmt n, Object arg) {\n return null;\n }", "@Override\n public String visit(BinaryExpr n, Object arg) {\n return null;\n }", "private static void checkArg(Object paramObject) {\n/* 687 */ if (paramObject == null)\n/* 688 */ throw new NullPointerException(\"Argument must not be null\"); \n/* */ }", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\t\t\n\t}", "@Override\n public String visit(TypeParameter n, Object arg) {\n return null;\n }", "@Override\r\n\tpublic void visit(NullExpression nullExpression) {\n\r\n\t}", "private static String getValue(Object o) {\n if (o != null) {\n return o.toString();\n }\n return \"null\";\n }", "public T caseParameter(Parameter object)\n {\n return null;\n }", "boolean checkNull();", "@Override\n public String visit(NormalAnnotationExpr n, Object arg) {\n return null;\n }", "NULL createNULL();", "private String getStringOrNull (String value) {\n if (value == null || value.isEmpty()) value = null;\n return value;\n }", "public ChatUserInfo method_212(String var1) {\r\n return null;\r\n }", "@Test\n public void testWithNullString() throws org.nfunk.jep.ParseException\n {\n String string = null;\n Stack<Object> parameters = CollectionsUtils.newParametersStack(string);\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "@Override\n public String visit(ExpressionStmt n, Object arg) {\n return null;\n }", "public T caseNullDirective(NullDirective object)\n\t{\n\t\treturn null;\n\t}", "@Override\n public String visit(VarType n, Object arg) {\n return null;\n }", "@Test\n public void testCheckNull() {\n Helper.checkNull(\"non-null\", \"non-null name\");\n }", "public T findOne(String arg0) {\n\t\treturn null;\n\t}", "public T caseParameterValue(ParameterValue object)\n {\n return null;\n }", "@Override\n public String visit(EnclosedExpr n, Object arg) {\n return null;\n }", "@Override\n public String visit(TypeExpr n, Object arg) {\n return null;\n }", "@Deprecated\n public static Object stripNULL(Object obj)\n {\n if (obj == null) {\n throw new NullPointerException();\n }\n if (Null.getInstance().equals(obj)) {\n return null;\n }\n return obj;\n }", "boolean getSearchValueNull();", "@Override\n public String visit(SimpleName n, Object arg) {\n return null;\n }", "protected JTextField determineNull() {\r\n String t;\r\n\r\n try {\r\n t = rightSideInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return rightSideInput;\r\n }\r\n\r\n t = leftSideInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return leftSideInput;\r\n }\r\n\r\n t = topInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return topInput;\r\n }\r\n\r\n t = bottomInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return bottomInput;\r\n }\r\n\r\n t = frontInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return frontInput;\r\n }\r\n\r\n t = backInput.getText();\r\n\r\n if (t.equals(\"\")) {\r\n return backInput;\r\n }\r\n\r\n return rightSideInput;\r\n } catch (NullPointerException npe) {\r\n MipavUtil.displayError(\"JDialogCropBoundaryParam reports: Unknown Error\");\r\n\r\n return rightSideInput; // gotta have some thing returned\r\n }\r\n }", "private String setNullIfEmpty(String in) {\n if (in != null && in.trim().length() == 0) {\n return null;\n }\n return in;\n }", "public M csolFromNull(){if(this.get(\"csolFromNot\")==null)this.put(\"csolFromNot\", \"\");this.put(\"csolFrom\", null);return this;}", "@Ignore\n\t@Test\n\tpublic void testParamNull() {\n\t\tregisterParamException(null, keyString, valueString);\n\t\tregisterParamException(groupString, null, valueString);\n\t\tregisterParamException(groupString, keyString, null);\n\t}", "@Override\n public String visit(IntersectionType n, Object arg) {\n return null;\n }", "boolean getNullable();", "@Override\n public String visit(IfStmt n, Object arg) {\n return null;\n }", "protected <T> T emptyToNull(T obj) {\r\n if (isEmpty(obj)) {\r\n return null;\r\n } else {\r\n return obj;\r\n }\r\n }", "public void test6(){\n User user = null;\n\n String name = Optional.ofNullable(user).map(User :: getName).orElse(\"taotao\");\n\n System.out.println(name);\n }", "@Test\n public void testCheckNullForInjectedValue() {\n Helper.checkNullForInjectedValue(\"obj\", \"obj\");\n }", "@Override\n public Optional<?> getNullValue(DeserializationContext ctxt) throws JsonMappingException {\n return Optional.ofNullable(_valueDeserializer.getNullValue(ctxt));\n }", "T getNullRepresentation();", "@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}", "boolean getActiveNull();", "boolean getOrderPersonIdNull();", "@Test(expected=NullPointerException.class) @SpecAssertion(id = \"432-A4\", section=\"4.3.2\")\n public void testNullConversion2(){\n MonetaryConversions.getConversion((String)null);\n }", "@Override\n public void setNull() {\n\n }", "public T getExactMatch(String arg)\n\t{\n\t\treturn null;\n\t}", "public boolean anyNull () ;", "public String getNullAttribute();", "@Test\n\tpublic void takingNullWayTest()\n\t{\n\t\ttry\n\t\t{\n\t\t\tOsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter(new MapObjectsIdFinderFake());\n\t\t\tconverter.takeWay(null);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException ex)\n\t\t{\n\t\t\t// ok\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n RuntimeValue eval(RuntimeScope curScope) throws RuntimeReturnValue {\n return null;\n }", "@Override\n\tpublic String getParameter(String name) {\n\t\treturn null;\n\t}", "private static void m9058c(String str) {\n StackTraceElement stackTraceElement = Thread.currentThread().getStackTrace()[3];\n String className = stackTraceElement.getClassName();\n String methodName = stackTraceElement.getMethodName();\n throw ((IllegalArgumentException) m9050a(new IllegalArgumentException(\"Parameter specified as non-null is null: method \" + className + \".\" + methodName + \", parameter \" + str)));\n }", "public T caseParam(Param object) {\n\t\treturn null;\n\t}", "@Override\n public String visit(ConditionalExpr n, Object arg) {\n return null;\n }", "private static Object nullOrDefaultFor(final Class<?> type) {\r\n return defaultByPrimitiveType.get(type);\r\n }", "@Override\n\tpublic Parameter<?> getParameter(String id) {\n\t\treturn null;\n\t}", "@Override\n public String visit(NameExpr n, Object arg) {\n return null;\n }", "@Override\n public String visit(CatchClause n, Object arg) {\n return null;\n }", "@Test(expected=NullPointerException.class) @SpecAssertion(id = \"432-A4\", section=\"4.3.2\")\n public void testNullConversion4(){\n MonetaryConversions.getConversion((String)null, ConversionContext.of());\n }", "boolean getRecursiveNull();", "@Test\n\tpublic void takingNullNodeTest()\n\t{\n\t\ttry\n\t\t{\n\t\t\tOsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter(new MapObjectsIdFinderFake());\n\t\t\tconverter.takeNode(null);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException ex)\n\t\t{\n\t\t\t// ok\n\t\t}\n\t}", "@Override\n public <A> Function1<A, Object> compose$mcJD$sp (Function1<A, Object> arg0)\n {\n return null;\n }", "public Object getProperty(String arg0) {\n return null;\n }", "private String getNullValueText() {\n return getNull();\n }", "public T caseParameters(Parameters object)\n {\n return null;\n }", "static void checkNull(final Object param, final String paramName) {\r\n if (param == null) {\r\n throw new IllegalArgumentException(\"The argument '\" + paramName\r\n + \"' should not be null.\");\r\n }\r\n }", "public Unsafe method_4123() {\n return null;\n }", "@Override\n\tpublic boolean getIncludesNull() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic Result<?> preHandle(RequestParam<?> param) {\n\t\treturn null;\r\n\t}", "public TestCase notNull( Object obj );", "@Override\n public String visit(EmptyStmt n, Object arg) {\n return null;\n }", "@Test\n public void getRequestParam_nullParameterName_returnEmpty() throws Exception {\n when(httpServletResponse.getWriter()).thenReturn(printWriter);\n\n Optional<String> parameter =\n ServletUtils.getRequestParam(httpServletRequest, httpServletResponse, /*inputName=*/ null);\n Assert.assertFalse(parameter.isPresent());\n verify(printWriter).println(\"No null in the query URL.\");\n }", "@Override\n public String visit(MethodReferenceExpr n, Object arg) {\n return null;\n }", "public T caseParameter(Parameter object) {\n\t\treturn null;\n\t}", "@Override\n public <A> Function1<Object, A> andThen$mcZF$sp (Function1<Object, A> arg0)\n {\n return null;\n }" ]
[ "0.6314382", "0.624418", "0.6217094", "0.61991996", "0.61842185", "0.61576015", "0.6098957", "0.6076306", "0.60480446", "0.6039091", "0.59948975", "0.59866756", "0.59854954", "0.5975263", "0.5948906", "0.5948673", "0.5939314", "0.5932697", "0.5917108", "0.5896286", "0.58874047", "0.58491725", "0.5822221", "0.5822221", "0.57888544", "0.57776433", "0.57774067", "0.57552457", "0.57444906", "0.57425505", "0.57296455", "0.57267857", "0.5726643", "0.572536", "0.5721112", "0.5713327", "0.5702068", "0.5696934", "0.5690865", "0.5677162", "0.5673245", "0.5647822", "0.56102854", "0.5600447", "0.55947876", "0.55942667", "0.5592629", "0.55917335", "0.5590035", "0.558929", "0.55878735", "0.5584059", "0.5582393", "0.55770415", "0.55553085", "0.5552227", "0.554441", "0.55399084", "0.553675", "0.55361634", "0.55277735", "0.55152124", "0.5514593", "0.551268", "0.5511351", "0.55092996", "0.5506056", "0.54995626", "0.54922915", "0.54890805", "0.54805654", "0.5476125", "0.54755026", "0.5471361", "0.5471022", "0.5468708", "0.5468051", "0.54677415", "0.54653627", "0.5463678", "0.5460707", "0.5459886", "0.5458011", "0.5455379", "0.54551584", "0.5452403", "0.5449954", "0.5447313", "0.54441553", "0.5442499", "0.54416317", "0.54368275", "0.54339015", "0.5431749", "0.5430522", "0.542824", "0.5426242", "0.5426102", "0.54201347", "0.54102576", "0.54080737" ]
0.0
-1
TODO custom TeamIdentifier support for maps
@Override public void addTeamIdentifier(TeamIdentifier teamIdentifier) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTeamId() {\r\n\t\treturn teamName;\r\n\t}", "public int getTeamId() {\n return teamId;\n }", "public void setTeamId(int value) {\n this.teamId = value;\n }", "protected abstract void gatherTeam();", "int getTeam();", "public String getTeamId() {\n\t\treturn teamId;\n\t}", "public String getTeamId() {\n\t\treturn teamId;\n\t}", "Team getMyTeam();", "@Override\n\tpublic int getTeam() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic String getTeam() {\n\t\treturn null;\r\n\t}", "private Team getTeam(String teamName) {\n return scoreboard.getTeam(trimString(teamName));\n }", "public int getTeamId() {\n\t\treturn teamId;\n\t}", "public int getTeam() {\n return team_;\n }", "@Override\r\n\tpublic String getTeam() {\n\t\treturn team;\r\n\t}", "public int getTeam() {\n return team;\n }", "public FightTeam team();", "Team createTeam();", "public String getTeam(int id){\r\n\t\treturn teamList.get(id);\r\n\t}", "private TeamId findWinningTeam(){\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS) {\n return TeamId.TEAM_1;\n }\n else {\n return TeamId.TEAM_2;\n }\n }", "public void setTeamId(String teamId) {\r\n\t\tthis.teamName = teamId;\r\n\t}", "Team findById(Long id);", "@Override\n public String getTeam(){\n return this.team;\n }", "Match getTeam1LooserOfMatch();", "public String getTeam() {\n return team;\n }", "public String generateTeamID() {\n List<Team> teams = getAllOrdered();\n int idNum;\n \n if (teams == null || teams.isEmpty()) \n idNum = 0;\n else {\n String idStr = teams.get(teams.size() - 1).getTeamID();\n idNum = Integer.parseInt(idStr.substring(2, idStr.length()));\n }\n \n String teamID;\n int newIdNum = idNum + 1;\n if (newIdNum <= 9)\n teamID = \"T_000\" + newIdNum;\n else if (newIdNum <= 99) \n teamID = \"T_00\" + newIdNum;\n else if (newIdNum <= 999)\n teamID = \"T_0\" + newIdNum;\n else \n teamID = \"T_\" + newIdNum;\n \n return teamID;\n }", "public int getTeamID() {\n\t\treturn teamID;\n\t}", "Team findByName(String name);", "public int getTeam() {\n return team_;\n }", "public void setTeam(String team) {\r\n\t\tTeam = team;\r\n\t}", "public Team get(Long id);", "public void testTeamAndGroupJSON() throws Exception {\n\n IInternalContest contest = new UnitTestData().getContest();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(contest);\n\n Account[] accounts = getAccounts(contest, Type.TEAM);\n \n Account account = accounts[0];\n\n String json = eventFeedJSON.getTeamJSON(contest, account);\n \n// System.out.println(\"debug team json = \"+json);\n\n // debug team json = {\"id\":\"1\", \"icpc_id\":\"3001\", \"name\":\"team1\", \"organization_id\": null, \"group_id\":\"1024\"}\n\n asertEqualJSON(json, \"id\", \"1\");\n asertEqualJSON(json, \"name\", \"team1\");\n ObjectMapper mapper = new ObjectMapper();\n JsonNode readTree = mapper.readTree(json);\n List<JsonNode> findValues = readTree.findValues(\"group_ids\");\n assertEquals(\"matching group ids\", \"1024\", findValues.get(0).elements().next().asText());\n\n assertJSONStringValue(json, \"id\", \"1\");\n assertJSONStringValue(json, \"icpc_id\", \"3001\");\n }", "public Team(String name) {\n this.name = name;\n }", "public Person[] getTeamOf(Person actor);", "List<Team> getTeamsFromApi(List<Long> teamIds);", "public String getTeam() {\r\n\t\treturn Team;\r\n\t}", "public Team() {\r\n id = \"\";\r\n abbreviation = \"\";\r\n name = \"\";\r\n conference = \"\";\r\n division = \"\";\r\n address = null;\r\n }", "public List<Team> getListOfTeams(){\n \tMap<String, Object> myMap = new HashMap<String, Object>();\n\t\tJSONObject jsonobj = null;\n\t\tList<Team> team = new ArrayList<>();\n\t\tTeamsJsonReader reader = new TeamsJsonReader();\n\t\tJSONParser parser = new JSONParser();\n\t\tObject obj = null;\n\n\t\ttry {\n\t\t\tobj = parser.parse(new FileReader(\"src/main/resources/db.json\"));\n\t\t\tJSONObject jsonObject = (JSONObject) obj;\n\t\t\tJSONArray jsonarr = (JSONArray) jsonObject.get(\"teams\");\n\t\t\tfor (int size = 0; size < jsonarr.size(); size++) {\n\t\t\t\tList<Individual> individualList = new ArrayList<>();\n\t\t\t\tjsonobj = (JSONObject) jsonarr.get(size);\n\t\t\t\tmyMap.put(\"name\", jsonobj.get(\"name\"));\n\t\t\t\tmyMap.put(\"id\", ((Long) jsonobj.get(\"id\")).intValue());\n\t\t\t\tJSONArray memberArray = (JSONArray) jsonobj.get(\"members\");\n\n\t\t\t\tfor (int index = 0; index < memberArray.size(); index++) {\n\n\t\t\t\t\tindividualList.add(reader.getIndividualById(((Long) memberArray.get(index)).intValue()));\n\n\t\t\t\t}\n\t\t\t\tmyMap.put(\"members\", individualList);\n\t\t\t\t\n\t\t\t\tteam.add(new Team(myMap));\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn team;\n }", "List<Team> findTeamsByUserId(UserId userId);", "@Override\n\tpublic List<String> getTeamNames(Integer id) {\n\t\treturn null;\n\t}", "public String getHomeTeam();", "public void updateAirForceTeam(Collection<Unit> airunits) {\n\t\t\n\t\t// remove airunit of invalid team \n\t\tList<Integer> invalidUnitIds = new ArrayList<>();\n\t\t\n\t\tfor (Integer airunitId : airForceTeamMap.keySet()) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tif (!UnitUtils.isCompleteValidUnit(airunit)) {\n\t\t\t\tinvalidUnitIds.add(airunitId);\n\t\t\t} else if (airForceTeamMap.get(airunitId).leaderUnit == null) {\n\t\t\t\tinvalidUnitIds.add(airunitId);\n\t\t\t}\n\t\t}\n\t\tfor (Integer invalidUnitId : invalidUnitIds) {\n\t\t\tairForceTeamMap.remove(invalidUnitId);\n\t\t}\n\t\t\n\t\t// new team\n\t\tfor (Unit airunit : airunits) {\n\t\t\tAirForceTeam teamOfAirunit = airForceTeamMap.get(airunit.getID());\n\t\t\tif (teamOfAirunit == null) {\n\t\t\t\tairForceTeamMap.put(airunit.getID(), new AirForceTeam(airunit));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 리더의 위치를 비교하여 합칠 그룹인지 체크한다.\n\t\t// - 클로킹모드 상태가 다른 그룹은 합치지 않는다.\n\t\t// - 수리 상태의 그룹은 합치지 않는다.\n\t\tList<AirForceTeam> airForceTeamList = new ArrayList<>(new HashSet<>(airForceTeamMap.values()));\n\t\tMap<Integer, Integer> airForceTeamMergeMap = new HashMap<>(); // key:merge될 그룹 leaderID, value:merge할 그룹 leaderID\n\t\t\n\t\tint mergeDistance = AIR_FORCE_TEAM_MERGE_DISTANCE;\n\t\tif (InfoUtils.enemyRace() == Race.Terran) {\n\t\t\tmergeDistance += 120;\n\t\t}\n\t\tfor (int i = 0; i < airForceTeamList.size(); i++) {\n\t\t\tAirForceTeam airForceTeam = airForceTeamList.get(i);\n\t\t\tif (airForceTeam.repairCenter != null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tboolean cloakingMode = airForceTeam.cloakingMode;\n\t\t\tfor (int j = i + 1; j < airForceTeamList.size(); j++) {\n\t\t\t\tAirForceTeam compareForceUnit = airForceTeamList.get(j);\n\t\t\t\tif (compareForceUnit.repairCenter != null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (cloakingMode != compareForceUnit.cloakingMode) { // 클로킹상태가 다른 레이쓰부대는 합쳐질 수 없다.\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tUnit airForceLeader = airForceTeam.leaderUnit;\n\t\t\t\tUnit compareForceLeader = compareForceUnit.leaderUnit;\n\t\t\t\tif (airForceLeader.getID() == compareForceLeader.getID()) {\n//\t\t\t\t\tSystem.out.println(\"no sense. the same id = \" + airForceLeader.getID());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (airForceLeader.getDistance(compareForceLeader) <= mergeDistance) {\n\t\t\t\t\tairForceTeamMergeMap.put(compareForceLeader.getID(), airForceLeader.getID());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 합쳐지는 에어포스팀의 airForceTeamMap을 재설정한다.\n\t\tfor (Unit airunit : airunits) {\n\t\t\tInteger fromForceUnitLeaderId = airForceTeamMap.get(airunit.getID()).leaderUnit.getID();\n\t\t\tInteger toForceUnitLeaderId = airForceTeamMergeMap.get(fromForceUnitLeaderId);\n\t\t\tif (toForceUnitLeaderId != null) {\n\t\t\t\tairForceTeamMap.put(airunit.getID(), airForceTeamMap.get(toForceUnitLeaderId));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// team 멤버 세팅\n\t\tSet<AirForceTeam> airForceTeamSet = new HashSet<>(airForceTeamMap.values());\n\t\tfor (AirForceTeam airForceTeam : airForceTeamSet) {\n\t\t\tairForceTeam.memberList.clear();\n\t\t}\n\t\t\n\t\tList<Integer> needRepairAirunitList = new ArrayList<>(); // 치료가 필요한 유닛\n\t\tMap<Integer, Unit> airunitRepairCenterMap = new HashMap<>(); // 치료받을 커맨드센터\n\t\tList<Integer> uncloakedAirunitList = new ArrayList<>(); // 언클락 유닛\n\t\t\n\t\tfor (Integer airunitId : airForceTeamMap.keySet()) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tif (airunit.getHitPoints() <= 50) { // repair hit points\n\t\t\t\tAirForceTeam repairTeam = airForceTeamMap.get(airunitId);\n\t\t\t\tif (repairTeam == null || repairTeam.repairCenter == null) {\n\t\t\t\t\tUnit repairCenter = UnitUtils.getClosestActivatedCommandCenter(airunit.getPosition());\n\t\t\t\t\tif (repairCenter != null) {\n\t\t\t\t\t\tneedRepairAirunitList.add(airunitId);\n\t\t\t\t\t\tairunitRepairCenterMap.put(airunitId, repairCenter);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tAirForceTeam airForceTeam = airForceTeamMap.get(airunit.getID());\n\t\t\tif (airForceTeam.cloakingMode && (airunit.getType() != UnitType.Terran_Wraith || airunit.getEnergy() < 15)) {\n\t\t\t\tuncloakedAirunitList.add(airunitId);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tairForceTeam.memberList.add(airunit);\n\t\t}\n\t\t\n\t\t// create separated team for no energy airunit\n\t\tfor (Integer airunitId : uncloakedAirunitList) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tAirForceTeam uncloackedForceTeam = new AirForceTeam(airunit);\n\t\t\tuncloackedForceTeam.memberList.add(airunit);\n\t\t\t\n\t\t\tairForceTeamMap.put(airunitId, uncloackedForceTeam);\n\t\t}\n\t\t\n\t\t// create repair airforce team\n\t\tfor (Integer airunitId : needRepairAirunitList) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tAirForceTeam needRepairTeam = new AirForceTeam(airunit);\n\t\t\tneedRepairTeam.memberList.add(airunit);\n\t\t\tneedRepairTeam.repairCenter = airunitRepairCenterMap.get(airunit.getID());\n\t\t\t\n\t\t\tairForceTeamMap.put(airunitId, needRepairTeam);\n\t\t}\n\t\t\n\t\t// etc (changing leader, finishing repair, achievement) \n\t\tSet<AirForceTeam> reorganizedSet = new HashSet<>(airForceTeamMap.values());\n\t\tachievementEffectiveFrame = 0;\n\t\tfor (AirForceTeam airForceTeam : reorganizedSet) {\n\t\t\t// leader 교체\n\t\t\tUnit newLeader = UnitUtils.getClosestUnitToPosition(airForceTeam.memberList, airForceTeam.getTargetPosition());\n\t\t\tairForceTeam.leaderUnit = newLeader;\n\t\t\t\n\t\t\t// repair 완료처리\n\t\t\tif (airForceTeam.repairCenter != null) {\n\t\t\t\tif (!UnitUtils.isValidUnit(airForceTeam.repairCenter) || WorkerManager.Instance().getWorkerData().getNumAssignedWorkers(airForceTeam.repairCenter) < 3) {\n\t\t\t\t\tUnit repairCenter = UnitUtils.getClosestActivatedCommandCenter(airForceTeam.leaderUnit.getPosition());\n\t\t\t\t\tif (repairCenter != null) {\n\t\t\t\t\t\tairForceTeam.repairCenter = repairCenter;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tboolean repairComplete = true;\n\t\t\t\tfor (Unit airunit : airForceTeam.memberList) {\n\t\t\t\t\tif (airunit.getHitPoints() < airunit.getType().maxHitPoints() * 0.95) { // repair complete hit points\n\t\t\t\t\t\trepairComplete = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (repairComplete) {\n\t\t\t\t\tairForceTeam.repairCenter = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// achievement\n\t\t\tint achievement = airForceTeam.achievement();\n\t\t\taccumulatedAchievement += achievement;\n\t\t\tachievementEffectiveFrame = achievementEffectiveFrame + airForceTeam.killedEffectiveFrame * 100 - airForceTeam.damagedEffectiveFrame;\n\t\t}\n\t}", "public int getTeamNo() {\r\n\t\treturn teamNo;\r\n\t}", "public String getTeamName() {\r\n return teamName;\r\n }", "public void createTeam(final Map<String, String> dataTable) {\n team.processInformation(dataTable);\n WebDriverHelper.waitUntil(inputTeamName);\n WebDriverHelper.setElement(inputTeamName, team.getName());\n WebDriverHelper.clickElement(dropDownTeamType);\n selectDropDownOptionByName(team.getType());\n WebDriverHelper.setElement(inputTeamDescription, team.getDescription());\n WebDriverHelper.clickElement(btnContinue);\n WebDriverHelper.waitUntil(btnThisLater);\n WebDriverHelper.clickElement(btnThisLater);\n }", "public void setTeam(String team) {\n\t\tthis.team = team;\n\t}", "public void newTeam(Team team);", "Match getTeam2LooserOfMatch();", "public String getTeam() {\n\t\treturn team;\n\t}", "public void setTeamId(String teamId) {\n\t\tthis.teamId = teamId;\n\t}", "public void setTeamId(String teamId) {\n\t\tthis.teamId = teamId;\n\t}", "boolean hasTeam();", "public static void saveTeamNames() {\r\n\t\tMain.team1 = Main.teamOne.name;\r\n\t\tMain.team2 = Main.teamTwo.name;\r\n\t}", "public boolean hasTeam(User std) {\r\n\t\tboolean hasTeam = false;\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.students WHERE id = \" + std.getID() + \" ;\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint teamId \t= Integer.parseInt(array.get(3));\r\n\t\t\t\r\n\t\t\tif(teamId != 0){\r\n\t\t\t\thasTeam = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn hasTeam;\r\n\t}", "public void setTeamId(int teamId) {\n\t\tthis.teamId = teamId;\n\t}", "@Override\n\tpublic void setTeam(int i) {\n\t\t\n\t}", "public Team getTeam1 () {\n return team1;\n }", "@Mapper(componentModel = \"spring\", uses = { CustomUserMapper.class, IconMapper.class })\npublic interface TeamMapper extends EntityMapper<TeamDTO, Team> {\n\n /* (non-Javadoc)\n * @see com.ttth.teamcaring.service.mapper.EntityMapper#toDto(java.lang.Object)\n */\n @Mapping(source = \"owner.id\", target = \"ownerId\")\n @Mapping(source = \"icon.id\", target = \"iconId\")\n TeamDTO toDto(Team team);\n\n /* (non-Javadoc)\n * @see com.ttth.teamcaring.service.mapper.EntityMapper#toEntity(java.lang.Object)\n */\n @Mapping(target = \"groups\", ignore = true)\n @Mapping(target = \"appointments\", ignore = true)\n @Mapping(source = \"ownerId\", target = \"owner\")\n @Mapping(source = \"iconId\", target = \"icon\")\n Team toEntity(TeamDTO teamDTO);\n\n /**\n * From id.\n *\n * @param id the id\n * @return the team\n */\n default Team fromId(Long id) {\n if (id == null) {\n return null;\n }\n Team team = new Team();\n team.setId(id);\n return team;\n }\n}", "public Team getTeam() {\n return team;\n }", "public void setTeamNo(int teamNo) {\r\n\t\tthis.teamNo = teamNo;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn teamName;\n\t}", "public Teams getTeamById(UUID id)\n {\n Optional<Teams> optionalTeam = teamRepo.findById(id);\n if(!optionalTeam.isPresent())\n throw new TeamNotFoundException(\"Team Record with \" + id + \" is not available\");\n return teamRepo.findById(id).get();\n }", "public void setTeam(String team) {\n\t\tthis.teamOfPlayer = team;\n\t}", "void create(Team team);", "public String nodeTeam(String id)\n\t{\n\t\treturn getNode(id).team;\n\t}", "public List<TicketSite> getTicketSitesOfATeam(String teamId);", "private boolean teamExist(String teamName) {\n boolean doesExist = false;\n for (Team team : scoreboard.getTeams()) if (team.getName().equals(teamName)) doesExist = true;\n return doesExist;\n }", "public Team getTeam() {\r\n\t\treturn team;\r\n\t}", "public void setTeam(Team team) {\r\n\t\tthis.team = team;\r\n\t}", "public void setTeamName(String teamName) {\r\n this.teamName = teamName;\r\n }", "@Override\r\n\tpublic ResultMessage addTeam(TeamPO oneTeam) {\n\t\treturn teams.addTeam(oneTeam) ;\r\n\t}", "public ArrayList<CollegeFootballTeam> getTeamList();", "public String getAwayTeam();", "private Team getTeamInfo(JSONObject jsonObject) {\n String name = jsonObject.getString(\"Team Name\");\n Team newTeam = new Team(name);\n JSONArray jsonArray = jsonObject.getJSONArray(\"Users\");\n for (Object json : jsonArray) {\n JSONObject nextUser = (JSONObject) json;\n User newUser = getUserInfo(nextUser);\n newTeam.addUser(newUser);\n }\n return newTeam;\n }", "Set<String> getMemberSet(String teamName) throws RemoteException, InterruptedException;", "public void setTeamName(String name) {\n\t\tteamName = name;\n\t}", "TeamMember(String _name, String _title) {\r\n this.name = _name;\r\n this.title = _title;\r\n }", "private void getTeam() {\n Set<Integer> set = getRandomNumberSet();\n // clear new team list each time to allow for serial clicks on \"Generate New Random Team\"\n team.clear();\n for (Integer i : set) {\n getPokemon(i);\n }\n }", "public void printTeamsInLeague(){\n for (T i : teams){\n System.out.println(i.getTeamName());\n }\n }", "public String getGameStatus(String team) {\n\n String gameStatus = \"\";\n\n String[] mlbTeam = {\"D-backs\", \"Braves\", \"Orioles\", \"Red Sox\", \"Cubs\", \"White Sox\", \"Reds\", \"Indians\", \"Rockies\",\n \"Tigers\", \"Astros\", \"Royals\", \"Angels\", \"Dodgers\", \"Marlins\", \"Brewers\", \"Twins\", \"Mets\",\n \"Yankees\", \"Athletics\", \"Phillies\", \"Pirates\", \"Cardinals\", \"Padres\", \"Giants\", \"Mariners\",\n \"Rays\", \"Rangers\", \"Blue Jays\", \"Nationals\"};\n\n search:\n for (int i = 0; i < 1; i++) {\n\n for (int j = 0; j < mlbTeam.length; j++) {\n if (mlbTeam[j].equals(team)) {\n break search;\n }\n }\n\n team = \"No team\";\n i++;\n }\n try {\n // indicate if today is an off day for the team selected\n if (getPlayerInfo(team, \"status\", \"status\").equals(\"\")) {\n gameStatus = \"No game scheduled for the \" + uppercaseFirstLetters(team);\n }\n }\n catch (NullPointerException npe) {\n gameStatus = \"No game scheduled for the \" + uppercaseFirstLetters(team);\n }\n\n // display error message if there is no match to the team name inputted\n if (team.equals(\"No team\")) {\n gameStatus = \"ERROR: Please enter current MLB team name.\";\n }\n // indicate if today is an off day for the team selected\n else if (getPlayerInfo(team, \"status\", \"status\").equals(\"\")) {\n gameStatus = \"No game scheduled for the \" + team;\n }\n else {\n gameStatus = getPlayerInfo(team, \"status\", \"status\");\n }\n\n return gameStatus;\n }", "@Override\n public Team getTeamById(int id){\n try {\n String sql = \"SELECT * FROM Team WHERE Team.teamid = ?\";\n Team team = jdbc.queryForObject(sql, new TeamMapper(), id);\n team.setUser(getUserFromTeam(team));\n return team;\n }catch(DataAccessException ex){\n return null;\n }\n }", "public Team getTeam(Team enemyTeam) {\n\t\tArrayList<Character>battleArray = new ArrayList<Character>();\r\n\t\tboolean complete = false;\r\n\t\t\r\n\t\tfor(Character c : guildArray) {\r\n\t\t\tStudent s = (Student) c;\r\n\t\t\t//Choosing alive students whose KP is max thus they can perform stronger attacks\r\n\t\t\tif(s.MaxKPReached() && s.getHP() > 0){\r\n\t\t\t\tbattleArray.add(s);\r\n\t\t\t}\r\n\t\t\t//if the size of the team is 5, then the team is completed\r\n\t\t\tif(battleArray.size() == 5){\r\n\t\t\t\tcomplete = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//If the team still needs members search for members\r\n\t\tfor(int i = 0; i < guildArray.size() && complete == false; i++) {\r\n\t\t\t//Check if the student is not already in the battle team and alive\r\n\t\t\tStudent student = (Student)guildArray.get(i);\r\n\t\t\tif(!battleArray.contains(student) && student.getHP() > 0){ \r\n\t\t\t\tbattleArray.add(student);\r\n\t\t\t}\r\n\t\t\tif(battleArray.size() == 5) {\r\n\t\t\t\tcomplete = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tTeam battleTeam = new StudentTeam(\"BattleTeam\");\r\n\t\tfor(Character c : battleArray) {\r\n\t\t\tbattleTeam.addMember(c);\r\n\t\t}\r\n\r\n\t\treturn battleTeam;\r\n\t}", "private static Team getTeam(Connection con,Long teamId) {\n\n Team team = null;\n\n String query = SQLConstants.GET_TEAM_BY_TEAM_ID;\n\n try {\n team = new Team();\n //Connection con = JdbcConnection.getConnection();\n PreparedStatement pstmt = con.prepareStatement(query);\n pstmt.setLong(1, teamId);\n\n ResultSet rs = pstmt.executeQuery();\n\n while (rs.next()) {\n team.setId(rs.getLong(\"id\"));\n team.setName(rs.getString(\"name\"));\n team.setDescribe(rs.getString(\"describe\"));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return team;\n\n }", "public static Team getTeam(long id) {\n return find().where().eq(\"id\", id).findUnique();\n }", "@Test\r\n\tpublic void saveTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeam \r\n\t\tTeam team = new wsdm.domain.Team();\r\n\t\tservice.saveTeam(team);\r\n\t}", "public java.lang.String getContactTeamId() {\r\n return contactTeamId;\r\n }", "@Test\r\n\tpublic void saveTeamGamesForVisitorTeamFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamGamesForVisitorTeamFk \r\n\t\tInteger teamId_4 = 0;\r\n\t\tGame related_gamesforvisitorteamfk = new wsdm.domain.Game();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamGamesForVisitorTeamFk(teamId_4, related_gamesforvisitorteamfk);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamGamesForVisitorTeamFk\r\n\t}", "private static void checkOne(ArrayList<Team> teamArray){\n int teamNum=1;\r\n int check = 0;\r\n boolean used = false;\r\n\r\n //sets Tokimon that have a JSON or is the first tokimon on the JSON\r\n //sorts Tokimon on team alphabetically and sorts teams by team number\r\n for(Team team: teamArray){\r\n team.getMembers().get(0).setHasJson(true);\r\n team.getMembers().get(0).setIsFirst(true);\r\n team.setOwner(team.getMembers().get(0));\r\n Collections.sort(team.getMembers(), new TokimonComparator());\r\n }\r\n Collections.sort(teamArray, new TeamComparator());\r\n\r\n for(int a=0; a<teamArray.size()-1; a++){\r\n for(int b=0; b<teamArray.get(a).getMembers().size(); b++){\r\n for(int c=a+1; c<teamArray.size(); c++){\r\n //finds if the Tokimon submitted a JSON file\r\n if(teamArray.get(a).getMembers().get(b).getId().trim().equalsIgnoreCase(teamArray.get(c).getMembers().get(0).getId().trim())){\r\n teamArray.get(c).getMembers().get(0).setHasJson(true);\r\n }\r\n for(int d=0; d<teamArray.get(c).getMembers().size(); d++){\r\n //If two Tokimon have the same ID, but different names on JSON files then exit\r\n if(teamArray.get(a).getMembers().get(b).getId().trim().equalsIgnoreCase(teamArray.get(c).getMembers().get(d).getId().trim())){\r\n if(teamArray.get(a).getMembers().get(b).getName().equals(teamArray.get(c).getMembers().get(d).getName())==false){\r\n System.out.println(\"Tokimon property match error between:\\n\");\r\n System.out.println(\"Name: \" + teamArray.get(a).getMembers().get(b).getName() + \" ID: \" + teamArray.get(a).getMembers().get(b).getId());\r\n System.out.println(\"Path and Filename: \" + teamArray.get(c).getFilename());\r\n System.out.println(\"and\");\r\n System.out.println(\"Name: \" + teamArray.get(c).getMembers().get(d).getName() + \" ID: \" + teamArray.get(c).getMembers().get(d).getId());\r\n System.out.println(\"Path and Filename: \" + teamArray.get(a).getFilename());\r\n System.exit(-1);\r\n }\r\n if(teamArray.get(a).getMembers().get(b).getHasJson()==true || teamArray.get(c).getMembers().get(d).getHasJson()==true){\r\n teamArray.get(a).getMembers().get(b).setHasJson(true);\r\n teamArray.get(c).getMembers().get(d).setHasJson(true);\r\n }\r\n }\r\n //used to check if team is equal\r\n if(teamArray.get(a).getMembers().size() == teamArray.get(c).getMembers().size()){\r\n used = true;\r\n if(teamArray.get(a).getMembers().get(d).getId().trim().equalsIgnoreCase(teamArray.get(c).getMembers().get(d).getId().trim())){\r\n check++;\r\n }\r\n }\r\n }\r\n //sets what team they are on\r\n if(check== teamArray.get(a).getMembers().size() && used == true ){\r\n if(teamArray.get(a).getTeamNum() == -1){\r\n teamArray.get(a).setTeamNum(teamNum);\r\n }\r\n teamArray.get(c).setTeamNum(teamArray.get(a).getTeamNum());\r\n }else if(check != teamArray.get(a).getMembers().size() && check!=0){\r\n System.out.println(\"Tokimon contained on different teams\");\r\n System.out.println(\"Path and Filename: \" + teamArray.get(a).getFilename());\r\n System.exit(-1);\r\n }\r\n if(teamArray.get(a).getMembers().size()==1){\r\n if(check == 1){\r\n System.out.println(\"Duplicate of single Tokimon team found\");\r\n System.out.println(\"Path and Filename: \" + teamArray.get(a).getFilename());\r\n System.exit(-1);\r\n }\r\n teamArray.get(a).setTeamNum(teamNum);\r\n }\r\n check = 0;\r\n used = false;\r\n }\r\n teamNum++;\r\n }\r\n }\r\n //base case if a single Tokimon team is last\r\n if(teamArray.get(teamArray.size()-1).getMembers().size()==1 && teamArray.get(teamArray.size()-1).getTeamNum()==-1){\r\n teamArray.get(teamArray.size()-1).setTeamNum(99999);\r\n }\r\n for(Team team: teamArray){\r\n for(Tokimon tokimon: team.getMembers()){\r\n //makes sure all tokimon have JSON\r\n if(tokimon.getHasJson()==false){\r\n System.out.println(\"Tokimon missing JSON submission\");\r\n System.out.println(\"Path and Filename: \" + team.getFilename());\r\n System.out.println(\"Name: \" + tokimon.getName() + \" ID: \" + tokimon.getId());\r\n System.exit(-1);\r\n }\r\n// System.out.println(tokimon.getId());\r\n }\r\n //makes sure tokimon only appear on one team\r\n if(team.getTeamNum()==-1){\r\n System.out.println(\"One or more teams are incorrect\");\r\n System.out.println(\"Path and Filename: \" + team.getFilename());\r\n System.exit(-1);\r\n }\r\n\r\n }\r\n }", "public static void oneTeam(String[] name, int[] team)\n {\n int a=0;\n System.out.println(\"The following players played with one team for their entire NHL careers:\");\n for(int i=0;i<team.length;i++)\n { \n if(team[i]==1)\n {\n System.out.println(name[i]);\n }//end of if statement\n }//end of for loop\n }", "public interface TeamService {\n Teams getAllTeams();\n Team getTeamById(int id);\n Teams getSelectedTeams(int[] teamList);\n}", "SysTeam selectByPrimaryKey(Integer teamId);", "private static void updateTeamRecord(Team t) {\n ArrayList<Object> records = new ArrayList<>();\n //Get existing team data\n ResultSet teamSet = SqlUtil.getTeamRecord(c, TABLE_NAME, t.getIntValue(Team.NUMBER_KEY));\n try {\n ArrayList<String> matches;\n if (teamSet != null) {\n matches = new ArrayList<>(Arrays.asList(SqlUtil.getArrayFromString(teamSet.getString(\"match_nums\"))));\n } else {\n Main.sendError(\"Cannoy read team data: \" + t.getValue(Team.NUMBER_KEY),false);\n return;\n }\n for (String m: matches) {\n //If the match number already exists\n System.out.println(m);\n if (t.getStringValue(Team.MATCH_KEY).equalsIgnoreCase(m.trim())) {\n return;\n }\n }\n records.add(t.getIntValue(Team.NUMBER_KEY));\n records.add(t.getValue(Team.COLOR_KEY));\n records.add(1+teamSet.getInt(\"num_matches\"));\n matches.add(t.getStringValue(Team.MATCH_KEY));\n records.add(matches.toArray(new String[matches.size()]));\n for(Element e: Main.getElements()){\n switch (e.getType()){\n\n case SEGMENTED_CONTROL:\n for (int i = 0; i<e.getArguments().length;i++){\n if (t.getStringValue(e.getKeys()[0]).equalsIgnoreCase(e.getArguments()[i])){\n records.add(1+teamSet.getInt(e.getColumnValues()[i]));\n } else {\n records.add(teamSet.getInt(e.getColumnValues()[i]));\n }\n }\n break;\n case TEXTFIELD:\n if (e.getArguments()[0].equalsIgnoreCase(\"number\")) {\n records.add(t.getIntValue(e.getKeys()[0]) + teamSet.getInt(e.getColumnValues()[0]));\n\n } else if (e.getArguments()[0].equalsIgnoreCase(\"decimal\")){\n records.add(t.getDoubleValue(e.getKeys()[0]) + teamSet.getInt(e.getColumnValues()[0]));\n }\n break;\n case STEPPER:\n records.add(t.getIntValue(e.getKeys()[0]) + teamSet.getInt(e.getColumnValues()[0]));\n break;\n case LABEL:\n break;\n case SWITCH:\n for (int i = 0; i<e.getKeys().length;i++){\n if (t.getStringValue(e.getKeys()[i]).equalsIgnoreCase(\"yes\")){\n records.add(1 + teamSet.getInt(e.getColumnValues()[i*2]));\n records.add(teamSet.getInt(e.getColumnValues()[i*2+1]));\n } else {\n records.add(teamSet.getInt(e.getColumnValues()[i*2]));\n records.add(1 + teamSet.getInt(e.getColumnValues()[i*2+1]));\n }\n }\n break;\n case SPACE:\n break;\n case SLIDER:\n records.add(t.getDoubleValue(e.getKeys()[0]) + teamSet.getDouble(e.getColumnValues()[0]));\n break;\n }\n }\n double total = 0.0;\n\n for (Equation e: Main.getEquations()){\n double value = e.evaluate(t) + teamSet.getDouble(e.getColumnValue());\n records.add(value);\n total +=value;\n }\n\n records.add(total);\n\n SqlUtil.updateTeamRecord(c,TABLE_NAME, records.toArray(new Object[records.size()]),t.getStringValue(Team.NUMBER_KEY));\n\n } catch (SQLException e) {\n Main.sendError(\"Problem updating team records\", false, e);\n } catch (NullPointerException e){\n Main.sendError(\"Cannot read team data for team \" + t.getValue(Team.NUMBER_KEY),false,e);\n }\n }", "public String getToolteamid() {\r\n return toolteamid;\r\n }", "public static void addTeam(TeamForm tf) {\n Team team;\n\n long id = tf.id;\n\n if (!isTeam(id)) {\n team = new Team(tf.teamName, tf.location, tf.teamType, tf.skillLevel, tf.roster, tf.description, tf.imageUrl);\n team.save();\n }\n else {\n team = getTeam(id);\n team.setTeamName(tf.teamName);\n team.setLocation(tf.location);\n team.setTeamType(tf.teamType);\n team.setSkillLevel(tf.skillLevel);\n team.setRoster(tf.roster);\n team.setDescription(tf.description);\n team.setImageUrl(tf.imageUrl);\n team.setWins(tf.wins);\n team.setLosses(tf.losses);\n team.setPointsFor(tf.pointsFor);\n team.setPointsAgainst(tf.pointsAgainst);\n team.save();\n }\n }", "@Override\n\tpublic boolean isIsTeamMatch() {\n\t\treturn _esfTournament.isIsTeamMatch();\n\t}", "@Override\n\tpublic HashSet<String> getTeams() {\n return new HashSet<String>();\n\t}", "public String getTeamName() {\n\t\treturn teamName;\n\t}", "public String getTeamName() {\n\t\treturn teamName;\n\t}", "List<Team> findByIds(List<Long> teamIds);", "private List<Team> extractTeamNamesFromFixtures(List<Fixture> fixtures) {\r\n\r\n\t\tList<Team> teams = new ArrayList<>();\r\n\r\n\t\tfor (Fixture fixture : fixtures) {\r\n\r\n\t\t\tOptional<Team> homeTeam = teams.stream().filter(t -> t.getName().equals(fixture.getHomeTeamName()))\r\n\t\t\t\t\t.findAny();\r\n\r\n\t\t\tif (!homeTeam.isPresent()) {\r\n\t\t\t\tTeam teamToAdd = new Team();\r\n\t\t\t\tteamToAdd.setName(fixture.getHomeTeamName());\r\n\t\t\t\tteamToAdd.setResourceId(((Number) fixture.getHomeTeamResourceId()).longValue());\r\n\t\t\t\tteamToAdd.setLogo(fixture.getHomeTeamBadge());\r\n\r\n\t\t\t\tteams.add(teamToAdd);\r\n\t\t\t}\r\n\r\n\t\t\tOptional<Team> awayTeam = teams.stream().filter(t -> t.getName().equals(fixture.getAwayTeamName()))\r\n\t\t\t\t\t.findAny();\r\n\r\n\t\t\tif (!awayTeam.isPresent()) {\r\n\t\t\t\tTeam teamToAdd = new Team();\r\n\t\t\t\tteamToAdd.setName(fixture.getAwayTeamName());\r\n\t\t\t\tteamToAdd.setResourceId(((Number) fixture.getAwayTeamResourceId()).longValue());\r\n\t\t\t\tteamToAdd.setLogo(fixture.getAwayTeamBadge());\r\n\r\n\t\t\t\tteams.add(teamToAdd);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn teams;\r\n\t}", "public Team(String name) {\r\n this.name = name;\r\n team = new ArrayList<Hero>();\r\n }" ]
[ "0.6328149", "0.62148255", "0.6194003", "0.6184544", "0.61598414", "0.61360836", "0.61360836", "0.6102447", "0.60941124", "0.60483396", "0.59983003", "0.5985689", "0.59729195", "0.5962883", "0.5921033", "0.59105974", "0.59087056", "0.59045124", "0.5892922", "0.58897746", "0.58884", "0.58824915", "0.5868699", "0.58434665", "0.58222616", "0.5821196", "0.58143085", "0.5814165", "0.5809962", "0.5789608", "0.5785636", "0.5770395", "0.5754114", "0.57506907", "0.5743169", "0.5732158", "0.5726184", "0.57246196", "0.57242095", "0.57129437", "0.57115614", "0.57106715", "0.5679695", "0.56787837", "0.5677631", "0.56722575", "0.56697834", "0.565902", "0.5657433", "0.5657433", "0.5647152", "0.56442547", "0.56395215", "0.56371015", "0.5634478", "0.56248695", "0.56046176", "0.5604316", "0.5603248", "0.5596993", "0.5548041", "0.5509002", "0.55021864", "0.5474552", "0.54700434", "0.5459066", "0.5457669", "0.5456014", "0.5444813", "0.54443496", "0.54398924", "0.5426331", "0.5396194", "0.53908116", "0.538193", "0.53726244", "0.5364398", "0.53619736", "0.5359967", "0.53565514", "0.5348425", "0.5346722", "0.5346124", "0.53441805", "0.53436893", "0.5339014", "0.53353846", "0.532799", "0.53133273", "0.53094906", "0.530809", "0.53028315", "0.5295639", "0.52932894", "0.52917755", "0.52869225", "0.52869225", "0.5285885", "0.5281892", "0.5278827" ]
0.6455058
0
TODO custom GameState support for maps
@Override public void addGameState(GameState gameState) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GameState() {\n positionToPieceMap = new HashMap<Position, Piece>();\n }", "public interface GameState {\n\n\t/**\n * Method used by a player in order to perform transfer of stones \n * @param pitId the identifier of the pit by which the player will start (the associated pit must belong to him) This is the only method that can change the state \n * @return map {@link Map Map.class} with (pitId,#stones) as entries\n */\n\tpublic Map<Integer, Integer> move(final int pitId);\n\t\n\t/**\n\t * @return the {@link GameStateEnum GameStateEnum.class} that corresponds to {@link GameState GameState.class} concretions\n\t */\n\tpublic GameStateEnum getStateEnum();\n}", "public GameState getGameState();", "protected void updateGameState() {\n }", "private void getGameState(String version){\n\n }", "public abstract void createMap(Game game) throws FreeColException;", "public abstract void createMap(Game game) throws FreeColException;", "public void mapMode() {\n\t\ttheTrainer.setUp(false);\n\t\ttheTrainer.setDown(false);\n\t\ttheTrainer.setLeft(false);\n\t\ttheTrainer.setRight(false);\n\n\t\tinBattle = false;\n\t\tred = green = blue = 255;\n\t\tthis.requestFocus();\n\t}", "interface GameState {\n String WAITING_FOR_SECOND_PLAYER = \"WAITING_FOR_SECOND_PLAYER\";\n String TURN_HARE = \"TURN_HARE\";\n String TURN_HOUND = \"TURN_HOUND\";\n String WIN_HARE_BY_ESCAPE = \"WIN_HARE_BY_ESCAPE\";\n String WIN_HARE_BY_STALLING = \"WIN_HARE_BY_STALLING\";\n String WIN_HOUND = \"WIN_HOUND\";\n }", "void updateGameState(GameState gameState);", "public void displayCurrentState(State game);", "private GameStatePresets()\n {\n\n }", "GameState getGameState() {\n return gameState;\n }", "public interface GameControllerState {\n}", "public Map<Integer, State> getMyStateMap() { return myStateMap; }", "@Override\n public void run() {\n gameFinished = false;\n state.loadMap();\n\n //Timing Stuff\n double previous = System.currentTimeMillis();\n double current;\n double elapsed;\n double lag = 0.0D;\n\n if (Map.map != null)\n GAME_LOOP:while (!gameFinished || !keyPressed) {\n\n current = System.currentTimeMillis();\n elapsed = current - previous;\n previous = current;\n lag += elapsed;\n\n //Updating Client\n if (CoOpManager.isClient())\n Map.map = CoOpManager.get();\n\n while (lag >= MS_PER_UPDATE) {\n state.update();\n lag -= MS_PER_UPDATE;\n }\n\n //Syncing Client and server\n if (CoOpManager.isClient())\n CoOpManager.send(state.currentMap);\n if (CoOpManager.isServer()) {\n CoOpManager.send(state.currentMap);\n Map.map = CoOpManager.get();\n }\n\n gameFrame.render(state);\n\n try {\n Thread.sleep((long) (Math.max(0, MAX_FPS_TIME - (System.currentTimeMillis() - previous))));\n } catch (InterruptedException e) {\n System.err.println(\"Unexpected Occasion.Game will Terminate\");\n break;\n }\n\n if (paused) {\n gameFrame.render(state);\n //Show Paused Dialogue\n switch (JOptionPane.showOptionDialog(gameFrame\n , \"Game Paused !\", \"Paused\"\n , JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE\n , null, new Object[]{\"Continue\", \"Save And Quit\", \"Quit\"}, \"Continue\")) {\n case JOptionPane.CLOSED_OPTION:\n case JOptionPane.YES_OPTION:\n System.out.println(\"Game continues\");\n paused = false;\n previous = System.currentTimeMillis();\n continue;\n case JOptionPane.NO_OPTION:\n System.out.println(\"Save and Quits\");\n Map.map.mapLives = GameState.lives;//Saving lives of player\n Map.saveMap(state.currentMap);\n break GAME_LOOP;\n case JOptionPane.CANCEL_OPTION:\n\n System.out.println(\"Game Quits\");\n break GAME_LOOP;\n default:\n System.out.println(\"Unexpected\");\n break;\n }\n }\n\n gameFinished = state.gameOver || state.gameCompleted;\n\n if (!gameFinished)\n keyPressed = false;\n\n }\n\n if (gameFinished) {\n gameFrame.render(state);\n gameFrame.setPanel(MainMenu.panel);\n } else {\n //when player quits by pausing\n paused = false;\n gameFrame.setPanel(MainMenu.panel);\n }\n\n\n //Game is Finished Here\n if (CoOpManager.isServer() || CoOpManager.isClient())\n CoOpManager.disconnect();\n Map.map = null;//Delete current Game Progress\n state.gameOver = false;//Game is On ;)\n state.gameCompleted = false;\n keyPressed = false;\n\n }", "public GameState() {}", "public GameLogic(){\n\t\tplayerPosition = new HashMap<Integer, int[]>();\n\t\tcollectedGold = new HashMap<Integer, Integer>();\n\t\tmap = new Map();\n\t}", "@Override\n public Map<String, Object> currentState() {\n\n return new HashMap<>();\n }", "private void startGame() {\r\n\t\tthis.gameMap.startGame();\r\n\t}", "void willChooseGameMap() throws RemoteException;", "abstract public IWorldStateCache clientWorldStateCache();", "@Test\n public void TEST_UR_MAP_LENGTH() {\n Object[] objects = loadSave(\"emptyRiver\");\n Map map = (Map) objects[0];\n Player player = (Player) objects[1];\n AI[] opponents = (AI[]) objects[2];\n boolean[] NO_KEYS_PRESSED = {false, false, false, false};\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertFalse(player.hasFinished());\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertTrue(player.hasFinished());\n }", "public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }", "private static boolean isWin()\n {\n boolean win = true;\n for(Ship[] k:map)\n {\n for(Ship o:k)\n {\n if(o.getState()==1)\n win=false;\n }\n }\n return win;\n }", "public void initMap(String path) {\n \tgameState = StateParser.makeGame(path);\n\t\tintel = gameState.getCtrlIntel();\t\n\t\tsnakes = gameState.getSnake();\n\t\tmap = gameState.getMap();\n }", "public void managePlayOptions() {\n\n Object mySavedGameState = GameStateFileStore.ReadObjectFromFile(\"GameState.ser\");\n GameState castedGameState = GameState.class.cast(mySavedGameState);\n currentLocation = castedGameState.getSavedPlayerLocation();\n LocationData[][] storedGameStateMap = castedGameState.getMapState();\n descriptionText = storedGameStateMap[currentLocation.x][currentLocation.y].getDescriptionText();\n System.out.println(descriptionText);\n\n AvailableMovements myMoveSet = new AvailableMovements(currentLocation, storedGameStateMap);\n myMoveSet.printStringDirections();\n availableDirections = myMoveSet.getDirectionalMap();\n choice = sc.nextLine();\n if (availableDirections.containsKey(choice)) {\n currentLocation = availableDirections.get(choice); //refactor this into walkToNewLocation\n castedGameState.setSavedPlayerLocation(currentLocation);\n GameStateFileStore.WriteObjectToFile(castedGameState);\n managePlayOptions();\n } else {\n System.out.println(\"Invalid option\");\n managePlayOptions();\n }\n\n }", "abstract void showGameState();", "public interface GameState {\r\n void init(boolean[][] cells);\r\n\r\n void tick();\r\n\r\n Collection<ICell> getCells();\r\n\r\n boolean isLifeExtinct();\r\n}", "public void update(GameState gameState) {\n for (int i = 0;i < map.length; i++) {\n for (int j = 0;j < map[0].length;j++) {\n if (map[i][j] == TileType.WATER) {\n continue;\n }\n\n if (map[i][j] == TileType.MY_ANT) {\n map[i][j] = TileType.LAND;\n }\n\n if (gameState.getMap()[i][j] != TileType.UNKNOWN) {\n this.map[i][j] = gameState.getMap()[i][j];\n }\n }\n }\n\n this.myAnts = gameState.getMyAnts();\n this.enemyAnts = gameState.getEnemyAnts();\n this.myHills = gameState.getMyHills();\n this.seenEnemyHills.addAll(gameState.getEnemyHills());\n\n // remove eaten food\n MapUtils mapUtils = new MapUtils(gameSetup);\n Set<Tile> filteredFood = new HashSet<Tile>();\n filteredFood.addAll(seenFood);\n for (Tile foodTile : seenFood) {\n if (mapUtils.isVisible(foodTile, gameState.getMyAnts(), gameSetup.getViewRadius2())\n && getTileType(foodTile) != TileType.FOOD) {\n filteredFood.remove(foodTile);\n }\n }\n\n // add new foods\n filteredFood.addAll(gameState.getFoodTiles());\n this.seenFood = filteredFood;\n\n // explore unseen areas\n Set<Tile> copy = new HashSet<Tile>();\n copy.addAll(unseenTiles);\n for (Tile tile : copy) {\n if (isVisible(tile)) {\n unseenTiles.remove(tile);\n }\n }\n\n // remove fallen defenders\n Set<Tile> defenders = new HashSet<Tile>();\n for (Tile defender : motherlandDefenders) {\n if (myAnts.contains(defender)) {\n defenders.add(defender);\n }\n }\n this.motherlandDefenders = defenders;\n\n // prevent stepping on own hill\n reservedTiles.clear();\n reservedTiles.addAll(gameState.getMyHills());\n\n targetTiles.clear();\n }", "public GameState getGameState(){\n return this.gameState;\n }", "public static void readAndUpdateStates() {\n\t\tString states = state.toString();\n\t\tScanner scanner = new Scanner(states);\n\t\tscanner.useDelimiter(\"\\n\");\n\t\tString[] tmps;\n\t\twhile (scanner.hasNext()) {\n\t\t\tString oneLine = scanner.next();\n\t\t\tif (oneLine.equals(\"GLOBALS\")) {\n\t\t\t\tString turnLine = scanner.next();\n\t\t\t\tString playerLine = scanner.next();\n\t\t\t\tString IDLine = scanner.next();\n\t\t\t\ttmps = turnLine.split(\": \");\n\t\t\t\tglobalTurn = Integer.valueOf(tmps[1]);\n\t\t\t\ttmps = playerLine.split(\": \");\n\t\t\t\tplayerCount = Integer.valueOf(tmps[1]);\n\t\t\t\ttmps = IDLine.split(\": \");\n\t\t\t\tmyID = Integer.valueOf(tmps[1]);\n\t\t\t} else if (oneLine.equals(\"PLAYER SCORES\")) {\n\t\t\t\tString scoreLine = scanner.next();\n\t\t\t\ttmps = scoreLine.split(\": \");\n\t\t\t\tscore[0] = Float.valueOf(tmps[1]);\n\t\t\t\tscoreLine = scanner.next();\n\t\t\t\ttmps = scoreLine.split(\": \");\n\t\t\t\tscore[1] = Float.valueOf(tmps[1]);\n\n\t\t\t} else if (oneLine.equals(\"BOARD STATE\")) {\n\t\t\t\tString pointLine;\n\t\t\t\twhile ((pointLine = scanner.next()) != null) {\n\t\t\t\t\tif (pointLine.length() == 0)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\ttmps = pointLine.split(\": \");\n\t\t\t\t\tint playerId = Integer.parseInt(tmps[0]);\n\t\t\t\t\ttmps = tmps[1].split(\" \");\n\t\t\t\t\tPoint newPoint = new Point(Integer.parseInt(tmps[0]),\n\t\t\t\t\t\t\tInteger.parseInt(tmps[1]));\n\t\t\t\t\tif (!map.containsKey(playerId)) {\n\t\t\t\t\t\tSet<Point> pointSet = new TreeSet<Point>();\n\t\t\t\t\t\tpointSet.add(newPoint);\n\t\t\t\t\t\tmap.put(playerId, pointSet);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSet<Point> pointSet = map.get(playerId);\n\t\t\t\t\t\tif (!pointSet.contains(newPoint)) {\n\t\t\t\t\t\t\tpointSet.add(newPoint);\n\t\t\t\t\t\t\tmap.put(playerId, pointSet);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void updatePlayerLocation() {requires new property on gamestate object\n //\n }", "public interface IDrawableMap {\n void prepareRenderingOnMap();\n void renderOnMap(SpriteBatch batch, float delta);\n}", "public GameState(){\n this.gameResults = \"\";\n initVars();\n this.theme = DEFAULT_THEME;\n this.board = new Board(DEFAULT_BOARD);\n createSetOfPlayers(DEFAULT_PLAYERS, DEFAULT_AUTOPLAYER, DEFAULT_AUTOMODE);\n }", "public interface GameMapBuilder {\n void sapperStyle();//小兵装饰\n void mapColor();//地图颜色\n}", "@Override\n public void loadGame() {\n\n }", "public void setGameState(GameState gs){\n this.gameState = gs;\n }", "public GameMap map() {\n\t\treturn map;\n\t}", "public interface MapEvent extends GameEvent {\n GameMap getMap();\n}", "public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }", "public void load(BSGameState state);", "private void setGameState() // Convert the string version of the game state to the GameState version.\n\t{\n\t\tif (gameStateString.equalsIgnoreCase(\"waitingForStart\"))\n\t\t{\n\t\t\tgameState = GameState.waitingForStart;\n\t\t}\n\t\telse if (gameStateString.equalsIgnoreCase(\"gameWelcome\"))\n\t\t{\n\t\t\tgameState = GameState.gameWelcome;\n\t\t} \n\t\telse if (gameStateString.equalsIgnoreCase(\"decideWhoGoesFirst\"))\n\t\t{\n\t\t\tgameState = GameState.decideWhoGoesFirst;\n\t\t} \n\t\telse if (gameStateString.equalsIgnoreCase(\"twoPlayersPlayerOneGoesFirst\"))\n\t\t{\n\t\t\tgameState = GameState.twoPlayersPlayerOneGoesFirst;\n\t\t} \n\t\telse if (gameStateString.equalsIgnoreCase(\"twoPlayersPlayerTwoGoesFirst\"))\n\t\t{\n\t\t\tgameState = GameState.twoPlayersPlayerTwoGoesFirst;\n\t\t} \n\t\telse if (gameStateString.equalsIgnoreCase(\"twoPlayersNowPlayerOnesTurn\"))\n\t\t{\n\t\t\tgameState = GameState.twoPlayersNowPlayerOnesTurn;\n\t\t} \n\t\telse if (gameStateString.equalsIgnoreCase(\"twoPlayersNowPlayerTwosTurn\"))\n\t\t{\n\t\t\tgameState = GameState.twoPlayersNowPlayerTwosTurn;\n\t\t} \n\t\telse if (gameStateString.equalsIgnoreCase(\"aPlayerHasWon\"))\n\t\t{\n\t\t\tgameState = GameState.aPlayerHasWon;\n\t\t} \n\n\t}", "public void init() {\n state = new GameState();\n gameFrame.addKeyListener(state.getKeyListener());\n gameFrame.addMouseListener(state.getMouseListener());\n gameFrame.addMouseMotionListener(state.getMouseMotionListener());\n gameFrame.addFocusListener(new FocusAdapter() {\n @Override\n public void focusLost(FocusEvent e) {\n state.resetKeys();\n }\n });\n gameFrame.addMouseWheelListener(e -> {\n if (Map.map != null) {\n if (e.getWheelRotation() < 0)\n Map.zoomIn();\n else\n Map.zoomOut();\n }\n });\n //Pause Key Setting\n gameFrame.addKeyListener(new KeyAdapter() {\n @Override\n public void keyPressed(KeyEvent e) {\n keyPressed = true;\n if (e.getKeyCode() == KeyEvent.VK_ESCAPE && !gameFinished)\n pause();\n if (e.getKeyCode() == KeyEvent.VK_F1)\n GameFrame.testMode = !GameFrame.testMode;\n }\n });\n gameFrame.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n keyPressed = true;\n }\n });\n\n gameFrame.addKeyListener(new KeyAdapter() {\n @Override\n public void keyTyped(KeyEvent e) {\n if (e.getKeyChar() >= 'a' && e.getKeyChar() <= 'z')\n Cheater.keyPressed(e.getKeyChar());\n }\n });\n }", "public AbstractGameMode(GameMap map)\n\t{\n\t\tgameMap = map;\n\t\tghosts = new Ghost[getNumberGhosts()];\n\t\tplayer1Modifier = 0.25f;\n\t\tplayer2Modifier = 0.25f;\n\t\tfor(int i = 0; i < getNumberGhosts(); i++)\n\t\t{\n\t\t\tspawnGhost(i, GameMap.SPAWNER);\n\t\t}\n\t\tplayer1 = new Player(\"Player 1\", 130, 2 + 32 + 11 * 16);\n\t\tplayer2 = new Player(\"Player 2\", 130, 2 + 32 + 14 * 16);\n\t}", "private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}", "private void updateMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (newMap[i][j] instanceof Player) {\n\t\t\t\t\tmap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof BlankSpace) {\n\t\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Fence) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "public interface IMap \n{ \n String GetMaps(boolean showEnemyShips);\n String GetSpecifiedMap(MapSettings ms);\n \n MapSettings GetUserMap();\n\n boolean HitEnemyCell(int x, int y);\n boolean CheckVictory(boolean checkPlayerMap);\n boolean SetUserMap(MapSettings userMap);\n boolean SetEnemyMap(MapSettings enemyMap);\n}", "public static void main(String[] args) {\n int progressId = 1;\n Map<Integer, Set<Entity>> progressEntities = new HashMap<>();\n Set<Entity> map000entity = new HashSet<>();\n map000entity.add(new Entity(new LocationPair<>(9.5F, 12.5F), Entity.TOWARD_RIGHT, \"Cirno\") {\n int useRefresh = 10;\n int activeTime = 80;\n boolean acting = true;\n\n @Override\n public void onRegisiter() {\n this.setMovingWay(MOVING_FASTER);\n }\n\n @Override\n public void onUnRegisiter() {\n System.out.println(\"Entity was unregisitered.\");\n }\n\n @Override\n public void action() {\n if (acting) {\n if (activeTime >= 0) {\n this.setToward(Entity.TOWARD_RIGHT);\n this.setWonderMoving(Entity.GOTOWARD_RIGHT);\n } else {\n this.setToward(Entity.TOWARD_LEFT);\n this.setWonderMoving(Entity.GOTOWARD_LEFT);\n }\n }\n if (isLastMovingSucceed()) {\n if (++activeTime >= 160) {\n activeTime = -160;\n }\n }\n if (useRefresh > 0) {\n useRefresh--;\n }\n }\n\n @Override\n public void onUse() {\n if (useRefresh == 0) {\n Keyboard.setState(Keyboard.STATE_DIALOG);\n acting = false;\n int moving = this.getMoving();\n int wonderMoving = this.getWonderMoving();\n int toward = this.getToward();\n this.setMoving(Entity.NOTGO);\n this.setWonderMoving(Entity.NOTGO);\n this.facePlayer();\n System.out.println(\"Changed the state of Keyboard.\");\n Case progress = new Case(\"test.entity.prs\", 2, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n acting = true;\n this.setMoving(moving);\n this.setWonderMoving(wonderMoving);\n this.setToward(toward);\n EventManager.getInstance().performedNp(this, 0);\n Resource.regisiterMisc(new Misc() {\n @Override\n public void invoke() {\n if (Resource.getMapId() == 1) {\n this.completed();\n Keyboard.setState(Keyboard.STATE_DIALOG);\n ArrayList<String> str = new ArrayList<>();\n str.add(Localization.query(\"test.misc\"));\n SimpleTalkingDialog std = new SimpleTalkingDialog(str, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n });\n std.init();\n GameFrame.getInstance().regisiterDialog(std);\n System.out.println(\"Invoked misc.\");\n }\n }\n });\n System.out.println(\"Progress ID is now 0.\");\n System.out.println(\"Changed the state of Keyboard.\");\n useRefresh = 40;\n });\n Case hello = new Case(\"test.entity.faq\", 3, () -> {\n ArrayList<String> str = new ArrayList<>();\n str.add(Localization.query(\"test.entity.hello1\"));\n str.add(Localization.query(\"test.entity.hello2\"));\n SimpleTalkingDialog std = new SimpleTalkingDialog(str, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n acting = true;\n this.setMoving(moving);\n this.setWonderMoving(wonderMoving);\n this.setToward(toward);\n useRefresh = 40;\n });\n std.init();\n GameFrame.getInstance().regisiterDialog(std);\n System.out.println(\"Changed the state of Keyboard.\");\n });\n Case back = new Case(\"test.entity.buff\", 4, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n acting = true;\n this.setMoving(moving);\n this.setWonderMoving(wonderMoving);\n this.setToward(toward);\n Resource.getPlayer().addBuff(new SpeedBuff(600, 1.5F));\n System.out.println(\"Changed the state of Keyboard.\");\n useRefresh = 40;\n });\n progress.setRelation(hello, null, hello);\n hello.setRelation(back, progress, back);\n back.setRelation(null, hello, null);\n progress.init();\n hello.init();\n back.init();\n List<Case> cases = new ArrayList<>();\n cases.add(progress);\n cases.add(hello);\n cases.add(back);\n ArrayList<String> strs = new ArrayList<>();\n strs.add(Localization.query(\"test.entity.title\"));\n\t\t\t\t\tTalkingDialog dialog = new TalkingDialog(strs, cases);\n\t\t\t\t\tdialog.init();\n GameFrame.getInstance().regisiterDialog(dialog);\n }\n useRefresh = 10;\n }\n });\n Set<Entity> map002entity = new HashSet<>();\n List<String> greet = new ArrayList<>();\n greet.add(\"test.entity.npc\");\n map002entity.add(new FriendlyNPC(new LocationPair<>(9.5F, 7.5F), Entity.TOWARD_DOWN, \"Sanae\", 3, greet));\n progressEntities.put(0, map000entity);\n progressEntities.put(2, map002entity);\n Map<Integer, Set<Item>> progressItems = new HashMap<>();\n boolean withDefaultProgress = true;\n //*/\n\n\n /*\n int progressId = 0;\n Map<Integer, Set<Entity>> progressEntities = new HashMap<>();\n Map<Integer, Set<Item>> progressItems = new HashMap<>();\n boolean withDefaultProgress = true;\n */\n\n\n try {\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(new File(\"resources/object/progress\", \"progress\" + String.format(\"%03d\", progressId) + \".prs\")));\n oos.writeObject(new Progress(progressId, progressEntities, progressItems, withDefaultProgress));\n oos.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public MapLocation senseLocationOf(GameObject o) throws GameActionException;", "public void loadMapGame(LoadedMap map)throws BadMapException{\n ArrayList<Boat> boats = createLoadedBoats(map);\n\n Board board = new Board(map.getInterMatrix().length, map.getInterMatrix()[0].length, 0);\n\n //CREATE A GAME\n GameData gameData = new GameData(board, boats, false);\n\n //POSITION BOATS INTO MATRIX\n loadPosBoats(gameData);\n Game.getInstance().setGameData(gameData);\n Game.getInstance().setEnded(false);\n }", "private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }", "public void setMap()\n {\n gameManager.setMap( savedFilesFrame.getCurrent_index() );\n }", "@Override\n public GameState getGameState() {\n return this.gameState;\n }", "public GameState(State.StateView state) {\n }", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "public interface GamePlayState {\n\n void drawThreeDestCards(String username, String gameName);\n\n void returnDestCards(String username, String gameName, int destCards);\n\n void drawTrainCardFromDeck(String username, String gameName);\n\n void drawTrainCardFaceUp(String username, String gameName, int index);\n\n void claimRoute(String username, String gameName, int routeID, List<Integer> trainCards);\n\n void claimRoute(String username, String gameName, int routeID, AppCompatActivity context);\n\n}", "void mo15871a(StateT statet);", "void mapChosen(int map);", "private void updateState() {\n switch (game.getGameState()) {\n case GAME:\n gamePlay();\n break;\n case ONE:\n lostTurnByOne();\n break;\n case READY:\n readyToPlay();\n break;\n case START:\n startGame();\n break;\n case TURN:\n startTurn();\n break;\n case FINISH:\n finishGame();\n break;\n }\n }", "@Override\r\n public void mapshow() {\r\n showMap l_showmap = new showMap(d_playerList, d_country);\r\n l_showmap.check();\r\n }", "@Override\n\tpublic void update(GameContainer gc, StateBasedGame sb, int delta) {\n\t\t\n\t}", "@Override\r\n\tpublic void gameInit() \r\n\t{\r\n\t\tfont = new Font(\"Courier\", Font.BOLD, 14);\r\n\t\tfontInfo = this.getFontMetrics(font);\r\n\t\tkeys = new KeyValues();\r\n\t\t\r\n\t\tbackground.loadImage(\"/images/sky.png\");\r\n\t\ttileset = new TileSet(10,10,32,32);\r\n\t\ttileset.loadTiles(\"/images/test_tiles.png\");\r\n\t\tmap = new Map(tileset, 20, 50);\r\n\t\tmap.readMap(\"res/maps/testmap2.txt\");\r\n\t\t\r\n\t\tcamera.setDimensions(getScreenWidth(), getScreenHeight());\r\n\t\tcamera.setXRange(0, map.getWidth() - getScreenWidth());\r\n\t\tcamera.setYRange(0, map.getHeight() - getScreenHeight());\r\n\t}", "public int[] updateMap() {\r\n\t\tint[] isObstacle = super.updateMap();\r\n\t\tsmap.setMap(map);\r\n\t\treturn isObstacle;\r\n\t}", "public Game(String customMapName) {\n genericWorldMap = new GenericWorldMap(customMapName);\n players = new LinkedList<Player>();\n dice = new Dice();\n observers = new LinkedList<>();\n gameState = GameState.MESSAGE;\n }", "public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}", "@PlayerState\n public abstract int getPlayerState();", "private void setMapPos()\r\n {\r\n try\r\n {\r\n Thread.sleep(1000);//so that you can see players move\r\n }\r\n catch(Exception e){}\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int unitPos = 0;\r\n int firstX = 0;\r\n int firstY = 0;\r\n if (currentPlayer == 1)\r\n {\r\n unitPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n }\r\n if (currentPlayer == 2)\r\n {\r\n unitPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n }\r\n int tempX = unitPos % mapWidth;\r\n int tempY = unitPos - tempX;\r\n if (tempY == 0) {}\r\n else\r\n tempY = tempY / mapHeight;\r\n tempX = tempX - 11;\r\n tempY = tempY - 7;\r\n if (tempX >= 0)\r\n firstX = tempX;\r\n else\r\n firstX = tempX + mapWidth;\r\n if (tempY >= 0)\r\n firstY = tempY;\r\n else\r\n firstY = tempY + mapWidth;\r\n\r\n int drawWidth = worldPanel.getDrawWidth();\r\n int drawHeight = worldPanel.getDrawHeight();\r\n worldPanel.setNewXYPos(firstX, firstY);\r\n miniMap.setNewXY(firstX, firstY, drawWidth, drawHeight);\r\n }", "public void startGame(int map) {\r\n if (!state[0]) {\r\n menu.setVisible(false);\r\n if (game == null) {\r\n game = new Game();\r\n game.setPreferredSize(new Dimension(GAME_WIDTH, GAME_HEIGHT));\r\n }\r\n game.map = map;\r\n frame.add(game, BorderLayout.CENTER);\r\n state[0] = true;\r\n game.setVisible(true);\r\n frame.pack();\r\n game.init();\r\n game.start();\r\n }\r\n }", "@Override\r\n\tpublic GameState save() {\n\t\treturn null;\r\n\t}", "GameState requestActionTile();", "State(Main aMain) {\n\tmain = aMain;\n\tback = Integer.parseInt(main.myProps.getProperty(\"yesterdays\"));\n\tfront = Integer.parseInt(main.myProps.getProperty(\"tomorrows\"));\n\tmaps = new Hashtable();\n availWeath = new Hashtable();\n\n main.myFrw.listen(new MapListener(), ScaledMap.TYPE, null);\n main.myFrw.announce(this);\n stateDoc = Framework.parse(main.myPath + \"state.xml\", \"state\");\n availWeath = loadFromDoc();\n }", "@Override\n protected void sendUpdatedStateTo(GamePlayer p) {\n PigGameState copy = new PigGameState(pgs);\n p.sendInfo(copy);\n }", "public MapGenerator(GameMap map) {\n\n gameMap = map;\n setGuiHashMap();\n firstCountryFlag=true;\n validator = new MapValidator(gameMap);\n }", "@Test\n\tpublic void mapBlackTest() {\n\t\ttry {\n\t\t\tmapFactory.initializeGameState(\"./src/TestScript/Maps/map-BLACK\", 1, rng, gs);\n\t\t} catch (IOException e) {\n\t\t\tfail(\"IllegalArgumentException expected\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfail(\"IllegalArgumentException expected\");\n\t}", "@Override\n\tpublic void update(Game game) {\n\t\t\n\t}", "public PlayerOverworldState() {\n\t\tsuper();\n\t\t\n\t\t\n\t}", "String getMapCode();", "@Test\n\tpublic final void testGameUpdateAndDraw() {\n\t\tgsm = GameStateManager.getInstance();\n\t\t// System.out.println(gsm.getCurrentState());\n\t\t// System.out.println(GameStateManager.MENUSTATE);\n\t\t// assertEquals(gsm.getCurrentState(), GameStateManager.MENUSTATE);\n\t\t// gsm.setState(GameStateManager.LEVELSTATE);\n\t\tassertEquals(gsm.getCurrentState(), GameStateManager.LEVELSTATE);\n\t\tfor (int i = 0; i < 6000; i++) {\n\t\t\tgsm.update();\n\t\t\tgsm.draw(g2d);\n\t\t}\n\t}", "public State(GameStateManager gameStateManager){ //constructor\n this.gameStateManager = gameStateManager;\n camera = new OrthographicCamera();\n mouse = new Vector3();\n }", "public String saveCurrentGameState() {\r\n\t\treturn null;\r\n\t}", "public void preGame() {\n\n\t}", "void process(GameData gameData, Map<String, Entity> world, Entity entity);", "public String toggleMap() {\r\n\t\tMap temp = sensor.getTrueMap();\r\n\t\tif (Map.compare(temp, smap.getMap())) {\r\n\t\t\tsmap.setMap(map.copy());\r\n\t\t\treturn \"robot\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsmap.setMap(temp.copy());\r\n\t\t\treturn \"simulated\";\r\n\t\t}\r\n\t}", "public TiledMap createMap() {\n map_inter = new MapTile[g_logic.MAP_WIDTH][g_logic.MAP_HEIGHT];\n \n //drawing stuff\n tiles = new Texture(Gdx.files.internal(\"packed/terrain.png\"));\n TextureRegion[][] splitTiles = TextureRegion.split(tiles, 54, 54);\n map = new TiledMap();\n MapLayers layers = map.getLayers();\n TiledMapTileLayer new_layer = new TiledMapTileLayer(g_logic.MAP_WIDTH, g_logic.MAP_HEIGHT, g_logic.ISO_WIDTH, g_logic.ISO_HEIGHT);\n \n //actual generation\n for (int x = 0; x < g_logic.MAP_WIDTH; x++) \n {\n for (int y = 0; y < g_logic.MAP_HEIGHT; y++) \n {\n char chara = '.';\n int ty = 0;\n int tx;\n if (x == 0 || x == g_logic.MAP_WIDTH-1)\n {\n tx = 1;\n chara = '#';\n }\n else\n {\n tx = 0; \n chara = '.';\n }\n \n //set up map tiles\n MapTile tile = new MapTile(x, y, tx, ty, chara);\n Gdx.app.log(\"Map gen\", \"Created a map tile @\" + x + \",\" + y + \" \" + tx + \" \" + ty + \" \" + chara);\n \n //put them in the internal map\n putInterMap(tile, x, y);\n \n //set up renderer cells\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n //y,x\n cell.setTile(new StaticTiledMapTile(splitTiles[tile.getTextureY()][tile.getTextureX()]));\n new_layer.setCell(x, y, cell);\n }\n }\n \n \n float y_off = g_logic.getYOffset();\n new_layer.setOffsetY(y_off);\n layers.add(new_layer);\n \n g_logic.setInterMap(map_inter);\n\n return map;\n }", "GameState checkState(String guid, String username) throws GameStateException;", "public void putState(String gameData) {\r\n String[] fields = gameData.split(\",\");\r\n int index = 0;\r\n mLastLarge = Integer.parseInt(fields[index++]);\r\n mLastSmall = Integer.parseInt(fields[index++]);\r\n for (int large = 0; large < 9; large++) {\r\n for (int small = 0; small < 9; small++) {\r\n Tile.Owner owner = Tile.Owner.valueOf(fields[index++]);\r\n mSmallTiles[large][small].setOwner(owner);\r\n }\r\n }\r\n setAvailableFromLastMove(mLastSmall);\r\n updateAllTiles();\r\n }", "public Map<EntityPlayer, Vec3> b()\r\n/* 204: */ {\r\n/* 205:217 */ return this.k;\r\n/* 206: */ }", "@Override\r\n\tpublic IMapInfo getMapInfo() {\r\n\t\treturn replay.mapInfo;\r\n\t}", "public void displayGameMode (Graphics g1)\n {\n if (state == 1)\n {\n if (sprite == 2)\n g1.drawImage (new ImageIcon (\"Images/1P2P/1/2player2.png\").getImage(), 0, 0, null);\n else if (sprite == 1)\n g1.drawImage (new ImageIcon (\"Images/1P2P/1/1player2.png\").getImage(), 0, 0, null);\n else \n g1.drawImage (new ImageIcon (\"Images/1P2P/1/plain2.png\").getImage(), 0, 0, null);\n }\n \n else if (state == 2)\n {\n if (sprite == 2)\n g1.drawImage (new ImageIcon (\"Images/1P2P/2/2player2.png\").getImage(), 0, 0, null);\n else if (sprite == 1)\n g1.drawImage (new ImageIcon (\"Images/1P2P/2/1player2.png\").getImage(), 0, 0, null);\n else \n g1.drawImage (new ImageIcon (\"Images/1P2P/2/plain2.png\").getImage(), 0, 0, null);\n }\n \n else if (state == 3)\n {\n if (sprite == 2)\n g1.drawImage (new ImageIcon (\"Images/1P2P/3/2player.png\").getImage(), 0, 0, null);\n else if (sprite == 1)\n g1.drawImage (new ImageIcon (\"Images/1P2P/3/1player.png\").getImage(), 0, 0, null);\n else \n g1.drawImage (new ImageIcon (\"Images/1P2P/3/plain.png\").getImage(), 0, 0, null);\n }\n \n else if (state == 4)\n {\n if (sprite == 2)\n g1.drawImage (new ImageIcon (\"Images/1P2P/4/2player.png\").getImage(), 0, 0, null);\n else if (sprite == 1)\n g1.drawImage (new ImageIcon (\"Images/1P2P/4/1player.png\").getImage(), 0, 0, null);\n else \n g1.drawImage (new ImageIcon (\"Images/1P2P/4/plain.png\").getImage(), 0, 0, null);\n }\n \n bird1.displayDisplayCharacter (g1);\n bird2.displayDisplayCharacter (g1);\n bird3.displayDisplayCharacter (g1);\n }", "public WorldState ()\n\t{\n\t\tproperties = new HashMap<String, WorldStateProperty>();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"New Game State\";\n\t}", "public void buildMap() {\n // CUBES ENGINE INITIALIZATION MOVED TO APPSTATE METHOD\n // Here we init cubes engine\n CubesTestAssets.registerBlocks();\n CubesSettings blockSettings = CubesTestAssets.getSettings(this.app);\n blockSettings.setBlockSize(5);\n //When blockSize = 5, global coords should be multiplied by 3 \n this.blockScale = 3.0f;\n this.halfBlockStep = 0.5f;\n \n testTerrain = new BlockTerrainControl(CubesTestAssets.getSettings(this.app), new Vector3Int(4, 1, 4));\n testNode = new Node();\n int wallHeight = 3;\n //testTerrain.setBlockArea(new Vector3Int(0, 0, 0), new Vector3Int(32, 1, 64), CubesTestAssets.BLOCK_STONE);\n this.testTerrain.setBlockArea( new Vector3Int(3,0,43), new Vector3Int(10,1,10), CubesTestAssets.BLOCK_STONE); // Zone 1 Floor\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,52), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(12,1,46), new Vector3Int(1,wallHeight,4)); // Door A\n \n this.testTerrain.setBlockArea( new Vector3Int(12,0,45), new Vector3Int(13,1,6), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(12,1,45), new Vector3Int(8,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,50), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea(new Vector3Int(19,0,42), new Vector3Int(6,1,3), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(19,1,42), new Vector3Int(1,wallHeight,3), CubesTestAssets.BLOCK_WOOD); //\n this.testTerrain.setBlockArea( new Vector3Int(24,1,42), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); //\n \n this.testTerrain.setBlockArea( new Vector3Int(15,0,26), new Vector3Int(18,1,17), CubesTestAssets.BLOCK_STONE); // Zone 3 Floor\n this.testTerrain.setBlockArea( new Vector3Int(15,1,42), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(32,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(20,1,42), new Vector3Int(4,wallHeight,1)); // Door B\n this.testTerrain.removeBlockArea( new Vector3Int(15,1,27), new Vector3Int(1,wallHeight,6)); // Door C\n \n this.testTerrain.setBlockArea( new Vector3Int(10,0,26), new Vector3Int(5,1,8), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(10,1,26), new Vector3Int(5,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,0,18), new Vector3Int(8,1,16), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(3,1,18), new Vector3Int(1,wallHeight,16), CubesTestAssets.BLOCK_WOOD); // East Wall\n this.testTerrain.setBlockArea( new Vector3Int(10,1,18), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,33), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n \n this.testTerrain.setBlockArea( new Vector3Int(1,0,5), new Vector3Int(26,1,14), CubesTestAssets.BLOCK_STONE); // Zone 5\n this.testTerrain.setBlockArea( new Vector3Int(1,1,18), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(26,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(4,1,18), new Vector3Int(6,wallHeight,1)); // Door E\n \n // Populate the world with spawn points\n this.initSpawnPoints();\n \n //Add voxel world/map to collisions\n testTerrain.addChunkListener(new BlockChunkListener(){\n @Override\n public void onSpatialUpdated(BlockChunkControl blockChunk){\n Geometry optimizedGeometry = blockChunk.getOptimizedGeometry_Opaque();\n phyTerrain = optimizedGeometry.getControl(RigidBodyControl.class);\n if(phyTerrain == null){\n phyTerrain = new RigidBodyControl(0);\n optimizedGeometry.addControl(phyTerrain);\n bulletAppState.getPhysicsSpace().add(phyTerrain);\n }\n phyTerrain.setCollisionShape(new MeshCollisionShape(optimizedGeometry.getMesh()));\n }\n });\n \n testNode.addControl(testTerrain);\n rootNode.attachChild(testNode);\n }", "public PigLocalGame() {\n pgs = new PigGameState();\n }", "public interface WorldMap {\n /**\n * This constant is used to define that a specific tile is empty.\n */\n int NO_TILE = 0;\n\n /**\n * The amount of tiles that are stored on the world map texture in height.\n */\n int WORLD_MAP_HEIGHT = 1024;\n\n /**\n * The amount of tiles that are stored on the world map texture in width.\n */\n int WORLD_MAP_WIDTH = 1024;\n\n /**\n * Get the origin location of the world map.\n *\n * @return the origin location\n */\n @Nonnull\n Location getMapOrigin();\n\n /**\n * Get the last reported location of the player.\n *\n * @return the player location\n */\n @Nonnull\n Location getPlayerLocation();\n\n /**\n * Get the texture of the world map.\n *\n * @return the world map texture\n */\n @Nonnull\n Texture getWorldMap();\n\n /**\n * Mark a tile as changed. The world map is supposed to update this tile at some later point.\n *\n * @param location the location of the tile that was changed\n */\n void setTileChanged(@Nonnull Location location);\n\n /**\n * Mark the entire map as changed. Once this is done the entire map needs to be updated.\n */\n void setMapChanged();\n\n /**\n * Set the location of the player on the map. This is used in some backend to prioritise the areas updated on the\n * world map.\n *\n * @param location the new location of the map\n */\n void setPlayerLocation(@Nonnull Location location);\n\n /**\n * Set the origin location of the world map. The map will expand starting from this point a specific amount of\n * tiles defined by {@link #WORLD_MAP_HEIGHT} and {@link #WORLD_MAP_WIDTH}.\n * <p/>\n * Changing the origin location automatically clears the map.\n *\n * @param location the new origin location of the map\n */\n void setMapOrigin(@Nonnull Location location);\n\n /**\n * This function causes all map data to be thrown away. The map turned empty.\n */\n void clear();\n\n /**\n * Render the changes to the world map. This does not render anything to the screen and it will not render\n * anything at all mostly. It will update the texture of the world map in case there are updates pending that\n * need to be applied.\n * <p/>\n * This function needs to be called during the render loop.\n *\n * @param container the container of the game\n */\n void render(@Nonnull GameContainer container);\n}", "public void updateState() {\n\n // After each frame, the unit has a slight morale recovery, but only up to the full base morale.\n morale = Math.min(morale + GameplayConstants.MORALE_RECOVERY, GameplayConstants.BASE_MORALE);\n\n if (morale < GameplayConstants.PANIC_MORALE) {\n state = UnitState.ROUTING;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.switchState(SingleState.ROUTING);\n }\n } else if (state == UnitState.ROUTING && morale > GameplayConstants.RECOVER_MORALE) {\n this.repositionTo(averageX, averageY, goalAngle);\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.switchState(SingleState.MOVING);\n }\n }\n\n // Update the state of each single and the average position\n double sumX = 0;\n double sumY = 0;\n double sumZ = 0;\n int count = 0;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.updateState();\n sumX += single.getX();\n sumY += single.getY();\n sumZ += single.getZ();\n count += 1;\n }\n averageX = sumX / count;\n averageY = sumY / count;\n averageZ = sumZ / count;\n\n // Updating soundSink\n soundSink.setX(averageX);\n soundSink.setY(averageY);\n soundSink.setZ(averageZ);\n\n // Update the bounding box.\n updateBoundingBox();\n\n // Update stamina\n updateStamina();\n }", "public int getStateOfMovement(){ return stateOfMovement; }", "public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}", "@Override\r\n \tpublic void init(GameContainer gc) throws SlickException \r\n \t{\r\n \t\t// Initialization of map, camera, player, pathfinding\r\n \t\ttheMap = new TiledMap(\"res/tilemap01.tmx\");\r\n \t\tthePTBMap = new PropertyTileBasedMap(theMap);\r\n \t\tcamera = new Camera(0f, 0f);\r\n \t\tunitOne = new Player(64f, 64f);\r\n \t\tunitTwo = new Player(64f, 128f);\r\n \t\tpathFinder = new AStarPathFinder(thePTBMap, 100, false);\r\n \t\t\r\n \t\t// player's animation. Need a better way to deal with it\r\n \t\t\r\n \t\tint duration[] = {200, 200, 200};\r\n \t\tSpriteSheet character = new SpriteSheet(\"res/monsters.png\", tileSize, tileSize);\r\n \t\tImage[] walkUp = {character.getSubImage(6, 1), character.getSubImage(7, 1), character.getSubImage(8, 1)};\r\n \t\tImage[] walkDown = {character.getSubImage(0, 1), character.getSubImage(1, 1), character.getSubImage(2, 1)};\r\n \t\tImage[] walkLeft = {character.getSubImage(9, 1), character.getSubImage(10, 1), character.getSubImage(11, 1)};\r\n \t\tImage[] walkRight = {character.getSubImage(3, 1), character.getSubImage(4, 1), character.getSubImage(5, 1)};\r\n \t\t\r\n \t\tmovingUp = new Animation(walkUp, duration, true);\r\n \t\tmovingDown = new Animation(walkDown, duration, true);\r\n \t\tmovingLeft = new Animation(walkLeft, duration, true);\r\n \t\tmovingRight = new Animation(walkRight, duration, true);\r\n \t\t\r\n \t\tunitOne.setMovement(movingDown);\r\n \t\tunitTwo.setMovement(movingDown);\r\n \t}" ]
[ "0.6717465", "0.663973", "0.65368325", "0.64668196", "0.63416034", "0.6222639", "0.6222639", "0.61876094", "0.6155245", "0.61465317", "0.6142357", "0.6128684", "0.6084714", "0.60765904", "0.6076313", "0.6066626", "0.606512", "0.6058125", "0.60538584", "0.60259104", "0.6009629", "0.5987357", "0.59628266", "0.5956306", "0.59268135", "0.59260064", "0.5917992", "0.58932614", "0.58816737", "0.5880664", "0.5860297", "0.5858232", "0.5851188", "0.5848445", "0.58414054", "0.5788365", "0.57836515", "0.57744867", "0.5772894", "0.57604676", "0.57484204", "0.574742", "0.57398367", "0.5737451", "0.572139", "0.57149065", "0.56933933", "0.56835353", "0.5679753", "0.5676796", "0.567346", "0.5673009", "0.5672164", "0.56705546", "0.5663085", "0.5661749", "0.5661749", "0.5658238", "0.56467754", "0.5646418", "0.5645513", "0.56452626", "0.56385064", "0.56282043", "0.56119615", "0.56053257", "0.56007046", "0.5599755", "0.55985", "0.5597957", "0.5593237", "0.559302", "0.55894953", "0.5585333", "0.55689144", "0.5568209", "0.55664915", "0.5554477", "0.5551355", "0.5547954", "0.55350393", "0.5533001", "0.5528109", "0.5525473", "0.5523676", "0.55227244", "0.55171233", "0.55127436", "0.550643", "0.55061543", "0.5499307", "0.5498485", "0.5497619", "0.5496838", "0.5493081", "0.5491508", "0.54906833", "0.54892486", "0.54825276", "0.54824495" ]
0.59256256
26
TODO custom Kit support for maps
@Override public void addKit(Kit kit) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MAP createMAP();", "public abstract void createMap();", "XClass getMapKey();", "private void ini_MapPaks()\r\n\t{\r\n\r\n\t}", "public int askMap();", "public abstract mapnik.Map createMap(Object recycleTag);", "String getMapCode();", "protected WumpusMap() {\n\t\t\n\t}", "public void testMapGet() {\r\n }", "private void returnDriverLocationstoMaps() {\n }", "public void generateRandomMap() {\n\n\t}", "private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }", "public interface StarSystemAPI extends API {\n List<String> HOME_MAPS = ArrayUtils.asImmutableList(\"1-1\", \"2-1\", \"3-1\");\n List<String> OUTPOST_HOME_MAPS = ArrayUtils.asImmutableList(\"1-8\", \"2-8\", \"3-8\");\n List<String> PIRATE_MAPS = ArrayUtils.asImmutableList(\"5-1\", \"5-2\", \"5-3\");\n List<String> BLACK_LIGHT_MAPS = ArrayUtils.asImmutableList(\"1BL\", \"2BL\", \"3BL\");\n\n /**\n * @return current {@link Map}\n */\n Map getCurrentMap();\n\n /**\n * @return bounds of the current map\n */\n Area.Rectangle getCurrentMapBounds();\n\n /**\n * @return {@link Collection} of all known maps\n */\n Collection<Map> getMaps();\n\n /**\n * Find {@link Map} by given {@code mapId}.\n *\n * @param mapId to find\n * @return {@link Map} with given {@code mapId}\n * @throws MapNotFoundException if map was not found\n */\n Map getById(int mapId) throws MapNotFoundException;\n\n /**\n * Find {@link Map} by given {@code mapId} otherwise will create a new one with given mapId.\n *\n * @param mapId to find\n * @return {@link Map} with given {@code mapId}\n */\n Map getOrCreateMapById(int mapId);\n\n /**\n * Find {@link Map} by given {@code mapName}.\n * {@code mapName} must equals searched {@link Map#getName()}\n *\n * @param mapName to find\n * @return {@link Map} with given {@code mapName}\n * @throws MapNotFoundException if map was not found\n */\n Map getByName(String mapName) throws MapNotFoundException;\n\n /**\n * Given {@link Listener} will be executed on each map change.\n * <p>\n * Every {@link Listener} need to have strong reference.\n *\n * @param onMapChange to be added\n * @return given {@link Listener} reference\n * @see Listener\n */\n Listener<Map> addMapChangeListener(Listener<Map> onMapChange);\n\n /**\n * @return best {@link Portal} which leads to {@code targetMap}\n */\n Portal findNext(Map targetMap);\n\n class MapNotFoundException extends Exception {\n public MapNotFoundException(int mapId) {\n super(\"Map with id \" + mapId + \" was not found\");\n }\n\n public MapNotFoundException(String mapName) {\n super(\"Map \" + mapName + \" was not found\");\n }\n }\n}", "public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }", "private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }", "MapType map(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);", "boolean hasSimpleMap();", "@Override\r\n\tpublic void exportMap() {\n\r\n\t}", "private void setupDefaultTerrainMap() {\n defaultTerrainKindMap.put(getHashCodeofPair(-7,1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(7,1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(-7,-1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(7,-1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(0,4), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(2,4), TerrainKind.SMALL_FISHERY);\n\n defaultTerrainKindMap.put(getHashCodeofPair(0,-2), TerrainKind.BIG_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(-3,-3), TerrainKind.FIELDS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,-3), TerrainKind.HILLS);\n \t \tdefaultTerrainKindMap.put(getHashCodeofPair(3,-3), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-4,-2), TerrainKind.FOREST);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-2,-2), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,-3), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(2,-2), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(4,-2), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-5,-1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-3,-1), TerrainKind.HILLS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,-1), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,-1), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(3,-1), TerrainKind.FIELDS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(5,-1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-6,0), TerrainKind.HILLS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-4,0), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-2,0), TerrainKind.FOREST);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(0,0), TerrainKind.FOREST);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(2,0), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(4,0), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(6,0), TerrainKind.HILLS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-5,1), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-3,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(3,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(5,1), TerrainKind.GOLDFIELD);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-4,2), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-2,2), TerrainKind.GOLDFIELD);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(0,2), TerrainKind.FIELDS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(2,2), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(4,2), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-3,3), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,3), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,3), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(3,3), TerrainKind.SEA);\n\t}", "@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}", "public void setMap2D(FXMap map);", "public abstract AnnotationMap mo30683d();", "private static void createTypeMap() {\n\n }", "protected void initBoatMap() {}", "void mapChosen(int map);", "public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }", "private Result outputKml(Request request, Entry entry) throws Exception {\r\n String fieldsArg = request.getString(ATTR_SELECTFIELDS,\r\n (String) null);\r\n String boundsArg = request.getString(ATTR_SELECTBOUNDS,\r\n (String) null);\r\n boolean forMap = request.get(\"formap\", false);\r\n String returnFile =\r\n IOUtil.stripExtension(getStorageManager().getFileTail(entry))\r\n + \".kml\";\r\n String filename = forMap + \"_\" + returnFile;\r\n if (boundsArg != null) {\r\n filename = boundsArg.replaceAll(\",\", \"_\") + filename;\r\n }\r\n if (fieldsArg != null) {\r\n filename =\r\n fieldsArg.replaceAll(\",\", \"_\").replaceAll(\":\",\r\n \"_\").replaceAll(\"<\",\r\n \"_lt_\").replaceAll(\">\",\r\n \"_gt_\").replaceAll(\"=\",\r\n \"_eq_\").replaceAll(\"\\\\.\",\r\n \"_dot_\") + filename;\r\n }\r\n File file = getEntryManager().getCacheFile(entry, filename);\r\n if (file.exists()) {\r\n Result result = new Result(new FileInputStream(file),\r\n KmlOutputHandler.MIME_KML);\r\n result.setReturnFilename(returnFile);\r\n\r\n return result;\r\n }\r\n\r\n\r\n Rectangle2D.Double bounds = null;\r\n if (boundsArg != null) {\r\n List<String> toks = StringUtil.split(boundsArg, \",\");\r\n if (toks.size() == 4) {\r\n double north = Double.parseDouble(toks.get(0));\r\n double west = Double.parseDouble(toks.get(1));\r\n double south = Double.parseDouble(toks.get(2));\r\n double east = Double.parseDouble(toks.get(3));\r\n bounds = new Rectangle2D.Double(west, south, east - west,\r\n north - south);\r\n }\r\n }\r\n\r\n FeatureCollection fc = makeFeatureCollection(request, entry);\r\n long t1 = System.currentTimeMillis();\r\n List<String> fieldValues = null;\r\n if (fieldsArg != null) {\r\n //selectFields=statefp:=:13,....\r\n fieldValues = new ArrayList<String>();\r\n List<String> toks = StringUtil.split(fieldsArg, \",\", true, true);\r\n for (String tok : toks) {\r\n List<String> expr = StringUtil.splitUpTo(tok, \":\", 3);\r\n if (expr.size() >= 2) {\r\n fieldValues.add(expr.get(0));\r\n if (expr.size() == 2) {\r\n fieldValues.add(\"=\");\r\n fieldValues.add(expr.get(1));\r\n } else {\r\n fieldValues.add(expr.get(1));\r\n fieldValues.add(expr.get(2));\r\n }\r\n }\r\n }\r\n }\r\n\r\n // System.err.println(\"fieldValues:\" + fieldValues);\r\n Element root = fc.toKml(forMap, bounds, fieldValues);\r\n long t2 = System.currentTimeMillis();\r\n StringBuffer sb = new StringBuffer(XmlUtil.XML_HEADER);\r\n String xml = XmlUtil.toString(root, false);\r\n sb.append(xml);\r\n IOUtil.writeFile(file, xml);\r\n long t3 = System.currentTimeMillis();\r\n // Utils.printTimes(\"OutputKml time:\", t1,t2,t3);\r\n Result result = new Result(\"\", sb, KmlOutputHandler.MIME_KML);\r\n result.setReturnFilename(returnFile);\r\n\r\n return result;\r\n }", "public abstract String[] map() throws TooFewNocNodesException;", "@Test\n public void test1(){\n Map map = us.selectAll(1, 1);\n System.out.println(map);\n }", "public interface IMap \n{ \n String GetMaps(boolean showEnemyShips);\n String GetSpecifiedMap(MapSettings ms);\n \n MapSettings GetUserMap();\n\n boolean HitEnemyCell(int x, int y);\n boolean CheckVictory(boolean checkPlayerMap);\n boolean SetUserMap(MapSettings userMap);\n boolean SetEnemyMap(MapSettings enemyMap);\n}", "public void printMiniMap() { }", "public MapCalculator(ZanMinimap minimap) {\n \t\tmap = minimap.map;\n \t}", "public abstract void createMap(Game game) throws FreeColException;", "public abstract void createMap(Game game) throws FreeColException;", "void setHashMap();", "@org.junit.Test\n public void mapGet906() {\n final XQuery query = new XQuery(\n \"map:get((map{}, map{\\\"a\\\":=\\\"b\\\"}), \\\"a\\\")\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n error(\"XPTY0004\")\n );\n }", "public void initMap()\r\n/* */ {\r\n///* 36 */ putHandler(\"vwkgcode\", PDWkHeadTailVWkgcodeHandler.class);\r\n///* 37 */ putHandler(\"fcapacitycalc\", PDWkHeadTailFcapacitycalcHandler.class);\r\n///* 38 */ putHandler(\"bprodline\", PDWkHeadTailBprodlineHandler.class);\r\n/* */ }", "void chooseMap(String username);", "private void setupVariant1TerrainMap() {\n\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,-4), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,-3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,-3), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,-3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,-3), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,-3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,-3), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,-2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,-2), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,-2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,-2), TerrainKind.BIG_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,-2), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,-2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,-2), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,-1), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,-1), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,-1), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,-1), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,-1), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-8,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,0), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,0), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,0), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,0), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(8,0), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,1), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-8,2), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,2), TerrainKind.GOLDFIELD);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,2), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,2), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(8,2), TerrainKind.SMALL_FISHERY);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,3), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,3), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,3), TerrainKind.GOLDFIELD);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,3), TerrainKind.SMALL_FISHERY);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,4), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,4), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,4), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,4), TerrainKind.FOREST);\n\t}", "private void createBitMap() {\n bitMap = bitMap.copy(bitMap.getConfig(), true);\n Canvas canvas = new Canvas(bitMap);\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setColor(Color.BLACK);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(4.5f);\n canvas.drawCircle(50, 50, 30, paint);\n winningBitMap = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas2 = new Canvas(winningBitMap);\n paint.setAntiAlias(true);\n paint.setColor(Color.GREEN);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas2.drawCircle(50, 50, 30, paint);\n bitMapWin = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas3 = new Canvas(bitMapWin);\n paint.setAntiAlias(true);\n paint.setColor(Color.MAGENTA);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas3.drawCircle(50, 50, 30, paint);\n bitMapCat = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas4 = new Canvas(bitMapCat);\n paint.setAntiAlias(true);\n paint.setColor(Color.DKGRAY);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas4.drawCircle(50, 50, 30, paint);\n }", "@Test\n\tpublic void testMaps() throws Exception {\n\t\ttestWith(TestClassMap.getInstance());\n\t}", "Map getSPEXDataMap();", "public Map() {\n\n\t\t}", "public Map() {\n\t\t//intially empty\n\t}", "void mo3504a(C0505cw cwVar, Map<String, String> map);", "private void addMakerToMap() {\n if (mapboxMap != null) {\r\n mapboxMap.removeAnnotations();\r\n if (res.getData().size() > 0) {\r\n for (UserBasicInfo info : res.getData()) {\r\n if (info.getRole().equalsIgnoreCase(\"student\")) {\r\n if (isStudentSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n if (info.getRole().equalsIgnoreCase(\"teacher\")) {\r\n if (isTeacherSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n }\r\n } else {\r\n getMvpView().noRecordFound();\r\n }\r\n }\r\n }", "void setMap(Map aMap);", "public ProofMapIndexProxy<String, String> testMap() {\n String fullName = namespace + \".test-map\";\n return access.getProofMap(IndexAddress.valueOf(fullName), string(), string());\n }", "private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }", "private void buildMap(int count, char type, String typeName) {\r\n\t\tfor (int i = 1; i <= count; i++) {\r\n\t\t\toriginalMaps.add(new MapType(\"map_\" + type + i, typeName, \"colony/map_\" + type + i));\r\n\t\t}\r\n\t}", "void updateMap(MapData map);", "public interface Mapper {\n /**\n * execute the mapping\n * @param owner owner object\n * @param map map to map to\n * @param packageIsKey if the package is to be the key for the map\n * @throws BuildException in case of emergency\n */\n void execute(ProjectComponent owner, HashMap map, boolean packageIsKey) throws BuildException;\n}", "public SnagImageMap(Context context) {\n\t\tsuper(context);\n\t\tinit();\n\t\tthis.context=context;\n\t//\tsm=getSnag();\n\t}", "@Override\r\n\tpublic void saveMap() {\n\r\n\t}", "public interface GameMapBuilder {\n void sapperStyle();//小兵装饰\n void mapColor();//地图颜色\n}", "@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}", "public MapGraphExtra()\n\t{\n\t\t// TODO: Implement in this constructor in WEEK 3\n\t\tmap = new HashMap<GeographicPoint, MapNode> ();\n\t}", "interface DownloadsMap extends PagerAdapterMap, InitViewMap, ContextMap\n {\n\n }", "private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}", "private void generateLayerWaypoints() {\n\t\tJSONObject geoJsonWaypoints = new JSONObject();\r\n\r\n\t\tgeoJsonWaypoints.put(\"type\", \"FeatureCollection\");\r\n\t\t// complete geoJsonWayPoints\r\n\t\tgeoJsonWaypoints.put(\"features\", _waypointsFeatures);\r\n\r\n\t\t// generate private String from geoJsonAirportsObject\r\n\t\t_waypointsLayerString = geoJsonWaypoints.toString();\r\n\r\n\t\t// implementation of a Map interface.\r\n\r\n\t\tfor (int i = 0; i < _waypointsFeatures.length(); i++) {\r\n\t\t\t// Retrieve the id of point\r\n\t\t\tJSONObject featureObj = _waypointsFeatures.optJSONObject(i);\r\n\t\t\tString id;\r\n\t\t\ttry {\r\n\t\t\t\tid = featureObj.getString(\"id\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(\"Y'a pas d'id !\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// Retrieve coordinates of point\r\n\t\t\tJSONObject geometryObj = featureObj.getJSONObject(\"geometry\");\r\n\t\t\tJSONArray coordinatesArray = geometryObj.getJSONArray(\"coordinates\");\r\n\t\t\tfloat lon = coordinatesArray.getFloat(0);\r\n\t\t\tfloat lat = coordinatesArray.getFloat(1);\r\n\r\n\t\t\t// Retrieve type of point\r\n\t\t\tJSONObject geometryO = featureObj.getJSONObject(\"geometry\");\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tString typePoint = geometryO.getString(\"type\");\r\n\t\t\t// to check if the data retrieve is correct\r\n\t\t\t// System.out.println(\"TOTO : \" + id + \", \" + longitude + \", \" + latitude);\r\n\r\n\t\t\t// Create a Point2D to add it to the dictionary\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tPoint2D pt = new Point2D.Float(lon, lat);\r\n\r\n\t\t\t// add points to dictionary ( id is the \"key\", latitude and longitude are\r\n\t\t\t// the\"value\")\r\n\t\t\t_dictWaypoints.put(id, featureObj);\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n public void create() {\n theMap = new ObjectSet<>(2048, 0.5f);\n generate();\n }", "public OwnMap() {\n super();\n keySet = new OwnSet();\n }", "@org.junit.Test\n public void mapGet003() {\n final XQuery query = new XQuery(\n \"map:get(map{}, 23)\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEmpty()\n );\n }", "public interface MapResource {\n\n\t/**\n\t * @return true if the resource is valid\n\t */\n\tpublic boolean isValid();\n\t\n\t/**\n\t * @return null or a short string summary of the resource's state (suitable for an etag)\n\t */\n\tpublic String getIdentityTag();\n\t\n\t/**\n\t * Create a new map or return a recycled one\n\t * @return map\n\t */\n\tpublic abstract mapnik.Map createMap(Object recycleTag);\n\n\t/**\n\t * Recycle a map instance\n\t * @param m\n\t */\n\tpublic abstract void recycleMap(Object recycleTag, mapnik.Map m);\n\n}", "public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}", "private void calculateMapSize() {\n calculateMapSize(true);\n }", "public native vector kbGetMapCenter();", "public interface IDrawableMap {\n void prepareRenderingOnMap();\n void renderOnMap(SpriteBatch batch, float delta);\n}", "public abstract void recycleMap(Object recycleTag, mapnik.Map m);", "public void onChangeMap(String arg0) {\n\t\t\r\n\t}", "@Override\r\n\tprotected void onComponentTag(ComponentTag tag)\r\n\t{\n\t\tcheckComponentTag(tag, \"map\");\r\n\r\n\t\tsuper.onComponentTag(tag);\r\n\t}", "ProcessOperation<Map<String, Object>> map();", "public ShakeMap(String fp, String parameter) {\r\n\t\tsuper(fp);\r\n\t\tthis.parameter = parameter;\r\n\t}", "private MapTransformer(Map map) {\n super();\n iMap = map;\n }", "public void displaymap(AircraftData data);", "@Test\n public void testCreateSafeMap() {\n Map safeMap = safeCreator.createMap('S',mapSize);\n int size = safeMap.getSize();\n String type = safeMap.getType();\n assertEquals(10,size);\n assertEquals(\"Safe\",type);\n }", "Map<String, String> mo14888a();", "public interface MapObjectType {\n}", "public void printMap(GameMap map);", "private void viewMap() {\r\n \r\n // Get the current game \r\n theGame = cityofaaron.CityOfAaron.getTheGame();\r\n \r\n // Get the map \r\n Map map = theGame.getMap();\r\n Location locations = null;\r\n \r\n // Print the map's title\r\n System.out.println(\"\\n*** Map: CITY OF AARON and Surrounding Area ***\\n\");\r\n // Print the column numbers \r\n System.out.println(\" 1 2 3 4 5\");\r\n // for every row:\r\n for (int i = 0; i < max; i++){\r\n // Print a row divider\r\n System.out.println(\" -------------------------------\");\r\n // Print the row number\r\n System.out.print((i + 1) + \" \");\r\n // for every column:\r\n for(int j = 0; j<max; j++){\r\n // Print a column divider\r\n System.out.print(\"|\");\r\n // Get the symbols and locations(row, column) for the map\r\n locations = map.getLocation(i, j);\r\n System.out.print(\" \" + locations.getSymbol() + \" \");\r\n }\r\n // Print the ending column divider\r\n System.out.println(\"|\");\r\n }\r\n // Print the ending row divider\r\n System.out.println(\" -------------------------------\\n\");\r\n \r\n // Print a key for the map\r\n System.out.println(\"Key:\\n\" + \"|=| - Temple\\n\" + \"~~~ - River\\n\" \r\n + \"!!! - Farmland\\n\" + \"^^^ - Mountains\\n\" + \"[*] - Playground\\n\" \r\n + \"$$$ - Capital \" + \"City of Aaron\\n\" + \"### - Chief Judge/Courthouse\\n\" \r\n + \"YYY - Forest\\n\" + \"TTT - Toolshed\\n\" +\"xxx - Pasture with \"\r\n + \"Animals\\n\" + \"+++ - Storehouse\\n\" +\">>> - Undeveloped Land\\n\");\r\n }", "public MapTest(String name) {\n\t\tsuper(name);\n\t}", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "public void updateMap(HashMap<Coordinate, MapTile> currentView) {\n\t\t\tfor (Coordinate key : currentView.keySet()) {\n\t\t\t\tif (!map.containsKey(key)) {\n\t\t\t\t\tMapTile value = currentView.get(key);\n\t\t\t\t\tmap.put(key, value);\n\t\t\t\t\tif (value.getType() == MapTile.Type.TRAP) {\n\t\t\t\t\t\tTrapTile value2 = (TrapTile) value; // downcast to find type\n\t\t\t\t\t\tif (value2.getTrap().equals(\"parcel\") && possibleTiles.contains(key)) {\n\t\t\t\t\t\t\tparcelsFound++;\n\t\t\t\t\t\t\tparcels.add(key);\n\t\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\t\tphase = \"search\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"lava\")) {\n\t\t\t\t\t\t\tlava.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"health\")) {\n\t\t\t\t\t\t\thealth.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"water\")) {\n\t\t\t\t\t\t\twater.add(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (value.getType() == MapTile.Type.FINISH) {\n\t\t\t\t\t\texitFound = true;\n\t\t\t\t\t\texit.add(key);\n\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\tphase = \"search\";\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}", "public void setUp()\n {\n map = new Map(5, 5, null);\n }", "public interface Map {\n /**\n * Return the distance between two coordinates.\n * \n * @param coord1 valid coordinates\n * @param coord2 valid coordinates\n * @return return distance between coord1 and coord2.\n * Returns Integer.MAX_VALUE if there is no path\n * between coordinates.\n */\n public int distance(Coord coord1, Coord coord2);\n\n /**\n * Return coordinates of a localisation.\n * \n * @param address a known localisation\n * @param return coordinates of the localisation, null\n * if the location doesn't exist.\n */\n public Coord addressToCoord(String localisation);\n /**\n * Returns the address closest to the localisation\n *\n * @param loc : the concerned localisation \n * @post returns one of the closest addresses to loc, null if\n * there isn't any.\n */\n public String coordToAddress(Coord loc);\n\n /**\n * Add an obstacle at coordinate obstacleCoord\n * \n * @param obstacleCoord coordinates of the new obstacle. Must be valid\n * \n */\n\n public void addObstacle(Coord obstacleCoord);\n\n /**\n * Remove an obstacle at coordinates\n * \n * @param obstacleCoord must be coordinates of a recorded obstacle\n */\n public void removeObstacle(Coord obstacleCoord);\n /**\n * Adds a list of addresses->localisations in the map.\n *\n * @param address must be a list of lines with one address and one coordinate\n * on each, separated by an @. the coordinate must be on a street.\n * @return returns the list of invalid address.\n */\n public String addAddressList(BufferedReader address);\n /**\n * Adds an address in the Map. \n * @param Address a string representing the address, can be anything.\n * @param coord the coord of the address, can be anywhere.\n */\n public void addAddress(String Address, Coord coord);\n /**\n * Sets the street on the map\n * \n * the distance between roads is 10. the roads start at coordinate 0.\n * so numx = 5 -> roads at x = [0,10,20,30,40]\n * \n * @param: numx : > 0 :the amount of North-South streets.\n * @param: numy : > 0 :the amount of West-East streets.\n * \n */\n public void setStreets(int numx, int numy);\n}", "public interface Mappable {\n\n /**\n * A string to represent an object on the map.\n * @return A string to represent the object.\n */\n String getMapCode();\n}", "public void mapping() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Test\n @Override\n public void testMapGet() {\n }" ]
[ "0.6247321", "0.6214177", "0.6206666", "0.6158027", "0.61564386", "0.58782536", "0.5861492", "0.5809011", "0.579517", "0.57822174", "0.5780919", "0.577623", "0.57720584", "0.57554156", "0.57495457", "0.5731651", "0.569673", "0.5680583", "0.5672688", "0.5656512", "0.5644674", "0.5633703", "0.56300163", "0.5622428", "0.5612975", "0.55949235", "0.55714715", "0.5562107", "0.5558694", "0.5555576", "0.555393", "0.5550718", "0.5544237", "0.5544237", "0.55400735", "0.5533596", "0.5532424", "0.55254173", "0.55138826", "0.55062366", "0.550538", "0.54969007", "0.5481748", "0.5469921", "0.54610014", "0.54586536", "0.5452126", "0.5448455", "0.5443806", "0.54227597", "0.54150754", "0.5410612", "0.54054177", "0.54001135", "0.53995395", "0.53958154", "0.5395122", "0.5393331", "0.5384547", "0.5383784", "0.53800637", "0.5372265", "0.5370367", "0.53687114", "0.5364636", "0.53634787", "0.5363179", "0.5355838", "0.5352249", "0.5350325", "0.5347007", "0.5346621", "0.5346606", "0.53425765", "0.5333794", "0.5331448", "0.5330753", "0.53295535", "0.53228897", "0.5321007", "0.5312623", "0.5312623", "0.5312623", "0.5312623", "0.5312623", "0.5312623", "0.5312623", "0.5312623", "0.5312623", "0.5312623", "0.5312623", "0.5312623", "0.5312623", "0.5312623", "0.53098136", "0.5309335", "0.53073287", "0.52917826", "0.52913517", "0.5287467", "0.52852476" ]
0.0
-1
TODO custom CommandConfig support for maps
@Override public void addCommand(CommandConfig command) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "HashMap <String, Command> getMap();", "private void initializeAvailableCommandMap() {\n availableCommandMap = new HashMap<String, Command>();\n availableCommandMap.put(\"cd\", new CdCommand());\n availableCommandMap.put(\"ls\", new LsCommand());\n availableCommandMap.put(\"mkdir\", new MkdirCommand());\n availableCommandMap.put(\"upload\", new UploadCommand());\n availableCommandMap.put(\"download\", new DownloadCommand());\n availableCommandMap.put(\"exit\", new ExitCommand());\n }", "public Map<String, Commands> getCommandMap() {\n return cmdMap;\n }", "private void registerCommands() {\n }", "private ConsoleCommand mapConsoleCommand( String[] parsedString ){\r\n\t\t\r\n\t\tFileSystemService fileSysSrv = new FileSystemService();\r\n\t\tStringBuilder errorSB = new StringBuilder();\r\n\t\tConsoleCommand consoleCommand = new ConsoleCommand();\r\n\t\t\r\n\t\tconsoleCommand.setCommand( parsedString[ AppConstanst.COMMAND_IDX ] );\r\n\t\t\t\t\r\n\t\tif ( parsedString.length < AppConstanst.MIN_SCAN_PARAM ){\r\n\t\t\terrorSB.append( AppConstanst.NOT_ALL_REQ_COMMAND_SET ) ;\r\n\t\t} else {\r\n\t\t\t// VALIDATE INPUTDIR COMMAND\r\n\t\t\tconsoleCommand.setInputDir( parsedString[ AppConstanst.INPUT_DIR_IDX ] );\r\n\t\t\tif ( !AppConstanst.SCAN_INPUT_DIR.equals( consoleCommand.getInputDir() ) ){\r\n\t\t\t\terrorSB.append( AppConstanst.WRONG_REQ_COMMAND+\" \"+consoleCommand.getInputDir()+AppConstanst.MUST_BE+AppConstanst.SCAN_INPUT_DIR+\"\\n\" );\r\n\t\t\t}\r\n\t\t\tconsoleCommand.setInputDirValue( parsedString[ AppConstanst.INPUT_DIR_VALUE_IDX ] );\r\n\t\t\tif ( ! consoleCommand.getInputDirValue().matches( AppConstanst.ABS_PATH) ){\r\n\t\t\t\terrorSB.append( AppConstanst.ILLEGAL_INPUT_PATH + consoleCommand.getInputDirValue()+\"\\n\");\r\n\t\t\t}\r\n\t\t\t//CHECK IS INPUT DIR EXIST, IF NOT TRY CREATE IT\r\n\t\t if ( !fileSysSrv.isDirectoryExist( consoleCommand.getInputDirValue() ) ){\r\n\t\t \tif ( !fileSysSrv.makeDirectory( consoleCommand.getInputDirValue() ) ){\r\n\t\t \t\terrorSB.append( AppConstanst.INPUT_DIR_NOT_EXISTS + consoleCommand.getInputDirValue()+\"\\n\");\r\n\t\t \t};\r\n\t\t }\r\n\t\t\t// VALIDATE OUTPUTDIR COMMAND\r\n\t\t\tconsoleCommand.setOutPutDir( parsedString[ AppConstanst.OUTPUT_DIR_IDX ] );\r\n\t\t\tif ( !AppConstanst.SCAN_OUTPUT_DIR.equals( consoleCommand.getOutPutDir() ) ){\r\n\t\t\t\terrorSB.append( AppConstanst.WRONG_REQ_COMMAND+\" \"+consoleCommand.getOutPutDir()+AppConstanst.MUST_BE+AppConstanst.SCAN_OUTPUT_DIR+\"\\n\" );\r\n\t\t\t}\r\n\t\t\tconsoleCommand.setOutPutDirValue( parsedString[ AppConstanst.OUTPUT_DIR_VALUE_IDX ] );\r\n\t\t\tif ( ! consoleCommand.getOutPutDirValue().matches( AppConstanst.ABS_PATH) ){\r\n\t\t\t\terrorSB.append( AppConstanst.ILLEGAL_OUTPUT_PATH + consoleCommand.getOutPutDirValue()+\"\\n\" );\r\n\t\t\t}\r\n\t\t\t//CHECK IS OUTPUT DIR EXIST, IF NOT TRY CREATE IT\r\n\t\t if ( !fileSysSrv.isDirectoryExist( consoleCommand.getOutPutDirValue() ) ){\r\n\t\t \tif ( !fileSysSrv.makeDirectory( consoleCommand.getOutPutDirValue() ) ){\r\n\t\t \t\terrorSB.append( AppConstanst.OUTPUT_DIR_NOT_EXISTS + consoleCommand.getOutPutDirValue()+\"\\n\");\r\n\t\t \t};\r\n\t\t }\r\n\t\t\t// VALIDATE MASK COMMAND\r\n\t\t\tconsoleCommand.setMask( parsedString[ AppConstanst.MASK_IDX ] );\r\n\t\t\tif ( !AppConstanst.SCAN_MASK.equals( consoleCommand.getMask() ) ){\r\n\t\t\t\terrorSB.append( AppConstanst.WRONG_REQ_COMMAND+\" \"+consoleCommand.getMask()+AppConstanst.MUST_BE+AppConstanst.SCAN_MASK+\"\\n\" );\r\n\t\t\t}\r\n\t\t\tconsoleCommand.setMaskValue( parsedString[ AppConstanst.MASK_VALUE_IDX ]);\r\n\t\t\tif ( ! AppUtils.isMaskCorrect( consoleCommand.getMaskValue() ) ){\r\n\t\t\t\terrorSB.append( AppConstanst.ILLEGAL_MASK + consoleCommand.getMaskValue()+\"\\n\" );\r\n\t\t\t}\r\n\t\t\t// VALIDATE WAIT INTERVAL COMMAND\r\n\t\t\tconsoleCommand.setWaitInterval( parsedString[ AppConstanst.WAIT_INTERVAL_IDX ] );\r\n\t\t\tif ( !AppConstanst.SCAN_WAIT_INTERVAL.equals( consoleCommand.getWaitInterval() ) ){\r\n\t\t\t\terrorSB.append( AppConstanst.WRONG_REQ_COMMAND+\" \"+consoleCommand.getWaitInterval()+AppConstanst.MUST_BE+AppConstanst.SCAN_WAIT_INTERVAL+\"\\n\" );\r\n\t\t\t}\r\n\t\t\tLong interval= null;\r\n\t\t\ttry{\r\n\t\t\t\tinterval = Long.parseLong( parsedString[ AppConstanst.WAIT_INTERVAL_VALUE_IDX ] );\r\n\t\t\t} catch (NumberFormatException e) {} \r\n\t\t\tconsoleCommand.setWaitIntervalValue( interval );\r\n\t\t\tif ( interval == null || interval < 0){\r\n\t\t\t\terrorSB.append( AppConstanst.INCORECT_WAIT_INTERVAL + parsedString[ AppConstanst.WAIT_INTERVAL_VALUE_IDX ]+AppConstanst.POSITIVE_INT+\"\\n\" );\r\n\t\t\t}\r\n\t\t\t// VALIDATE NOT REQUIRED COMMAND\r\n\t\t\t\r\n\t\t\t\tfor (int idx = AppConstanst.MIN_SCAN_PARAM+1; idx < parsedString.length; idx += 2){\r\n\t\t\t\t\tif ( AppConstanst.SCAN_INCLUDE_SUB.equals( parsedString[ idx ] ) ){\r\n\t\t\t\t\t\tconsoleCommand.setIncludeSubs( parsedString[ idx ] );\r\n\t\t\t\t\t\tconsoleCommand.setIncludeSubsValue( parsedString[ idx+1 ] );\r\n\t\t\t\t\t\tif ( !AppConstanst.TRUE.equals( parsedString[ idx+1 ]) && !AppConstanst.FALSE.equals( parsedString[ idx+1 ] ) ){\r\n\t\t\t\t\t\t\terrorSB.append( AppConstanst.INCORECT_INCLUDE_SUBFOLDERS+\" \"+parsedString[ idx+1 ]+AppConstanst.TRUE_OR_FALSE+\"\\n\" );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( AppConstanst.SCAN_AUTO_DELETE.equals( parsedString[ idx ] ) ){\r\n\t\t\t\t\t\tconsoleCommand.setAutoDelete( parsedString[ idx ] );\r\n\t\t\t\t\t\tconsoleCommand.setAutoDeleteValue( parsedString[ idx+1 ] );\r\n\t\t\t\t\t\tif ( !AppConstanst.TRUE.equals( parsedString[ idx+1 ]) && !AppConstanst.FALSE.equals( parsedString[ idx+1 ] ) ){\r\n\t\t\t\t\t\t\terrorSB.append( AppConstanst.INCORECT_AUTODELETE+\" \"+parsedString[ idx+1 ]+AppConstanst.TRUE_OR_FALSE+\"\\n\" );\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}\r\n\t\tif ( errorSB.length() > 0 ){\r\n\t\t\tSystem.out.println(AppConstanst.ERROR_IN_SCAN_COMMAND+ errorSB.toString());\r\n\t\t\tconsoleCommand.setCommand( AppConstanst.UNKNOWN);\r\n\t\t} \r\n\t\treturn consoleCommand;\r\n\t}", "public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }", "@Override\n public ExplainCommand fromMap(Map<String, Object> m) {\n super.fromMap(m);\n setCommand((Map<String, Object>) m.get(getCommandName()));\n return this;\n }", "public void registerCommands() {\n\t CommandSpec cmdCreate = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdCreate.getInstance())\n\t .permission(\"blockyarena.create\")\n\t .build();\n\n\t CommandSpec cmdRemove = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdRemove.getInstance())\n\t .permission(\"blockyarena.remove\")\n\t .build();\n\n\t CommandSpec cmdJoin = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"mode\")))\n\t )\n\t .executor(CmdJoin.getInstance())\n\t .build();\n\n\t CommandSpec cmdQuit = CommandSpec.builder()\n\t .executor(CmdQuit.getInstance())\n\t .build();\n\n\t CommandSpec cmdEdit = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t GenericArguments.optional(onlyOne(GenericArguments.string(Text.of(\"param\"))))\n\t )\n\t .executor(CmdEdit.getInstance())\n\t .permission(\"blockyarena.edit\")\n\t .build();\n\n\t CommandSpec cmdKit = CommandSpec.builder()\n\t .arguments(onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdKit.getInstance())\n\t .build();\n\n\t CommandSpec arenaCommandSpec = CommandSpec.builder()\n\t .child(cmdEdit, \"edit\")\n\t .child(cmdCreate, \"create\")\n\t .child(cmdRemove, \"remove\")\n\t .child(cmdJoin, \"join\")\n\t .child(cmdQuit, \"quit\")\n\t .child(cmdKit, \"kit\")\n\t .build();\n\n\t Sponge.getCommandManager()\n\t .register(BlockyArena.getInstance(), arenaCommandSpec, \"blockyarena\", \"arena\", \"ba\");\n\t }", "public CommandDictionary() {\n // Add Commands\n commandDict.add(new Pair<>(\"add stock\", \"<StockType> <StockCode> <Quantity> <Description> \"\n + \"[Optional: -m <Minimum quantity>]\"));\n commandDict.add(new Pair<>(\"add stocktype\", \"<StockType>\"));\n commandDict.add(new Pair<>(\"add person\", \"<MatricNo> <Name>\"));\n commandDict.add(new Pair<>(\"add template\", \"<TemplateName> {<StockCode>, <Quantity>}\"));\n\n // Delete Commands\n commandDict.add(new Pair<>(\"delete stock\", \"<StockCode>\"));\n commandDict.add(new Pair<>(\"delete stocktype\", \"<StockType>\"));\n commandDict.add(new Pair<>(\"delete person\", \"<MatricNo>\"));\n commandDict.add(new Pair<>(\"delete template\", \"<TemplateName>\"));\n\n // Edit Commands\n commandDict.add(new Pair<>(\"edit stock\", \"<StockCode> <Property> <NewValue>\"));\n commandDict.add(new Pair<>(\"edit stocktype\", \"<StockType> <NewStockType>\"));\n commandDict.add(new Pair<>(\"edit person\", \"<MatricNo> <Property> <NewValue>\"));\n\n // List Commands\n commandDict.add(new Pair<>(\"list stock\", null));\n commandDict.add(new Pair<>(\"list stocktype\", \"all\"));\n commandDict.add(new Pair<>(\"list stocktype\", \"<StockType>\"));\n commandDict.add(new Pair<>(\"list loan\", null));\n commandDict.add(new Pair<>(\"list template\", null));\n commandDict.add(new Pair<>(\"list template\", \"<TemplateName>\"));\n commandDict.add(new Pair<>(\"list lost\", null));\n commandDict.add(new Pair<>(\"list person\", null));\n commandDict.add(new Pair<>(\"list person\", \"<MatricNo>\"));\n\n // List Minimum Commands\n commandDict.add(new Pair<>(\"list minimum\", null));\n commandDict.add(new Pair<>(\"list shopping\", null));\n\n // Loan Commands\n commandDict.add(new Pair<>(\"add loan\", \"<MatricNo> <StockCode> <Quantity>\"));\n commandDict.add(new Pair<>(\"loan return\", \"<MatricNo> <StockCode> <Quantity>\"));\n commandDict.add(new Pair<>(\"loan returnall\", \"<MatricNo>\"));\n\n // Template Commands\n commandDict.add(new Pair<>(\"add template\", \"<TemplateName> {<StockCode> <Quantity>}\"));\n commandDict.add(new Pair<>(\"delete template\", \"<TemplateName>\"));\n commandDict.add(new Pair<>(\"add loan\", \"<Template Name>\"));\n\n // Find Commands\n commandDict.add(new Pair<>(\"find description\", \"<Query>\"));\n\n // Other Commands\n commandDict.add(new Pair<>(\"undo\", null));\n commandDict.add(new Pair<>(\"redo\", null));\n commandDict.add(new Pair<>(\"bye\", null));\n }", "@Nullable\n @Override\n public Map<String, Integer> getCommandsMap() {\n return MapBuilder.of(\"captureImage\", CAPTURE_COMMAND);\n }", "public SortedMap<String, ShellCommand> commands();", "@Override\n public void initDefaultCommand() {\n\n }", "private CommandMapper() {\n }", "private static java.util.HashMap<Integer, Command> getMappings() {\n if (mappings == null) {\n synchronized (Command.class) {\n if (mappings == null) {\n mappings = new java.util.HashMap<Integer, Command>();\n }\n }\n }\n return mappings;\n }", "Set<CommandConfigurationDTO> getCommands();", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() \n {\n }", "public void setCommands(final Map<String, String> commands) {\n this.commands = commands;\n }", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "private Map<CommandName, Command> loadCommands(ArrayList<XMLCommand> commands) {\n\t\tMap<CommandName, Command> defaultMap = new HashMap<>();\n\t\tCommandName name;\n\t\tClass reflectObject;\n\t\tfor (XMLCommand command : commands) {\n\t\t\ttry {\n\t\t\t\treflectObject = Class.forName(command.getCommandPath() + command.getName());\n\t\t\t\tCommand builder = (Command) reflectObject.newInstance();\n\t\t\t\tif ((name = CommandName.valueOf(command.getEnumInterpretation())) != null) {\n\t\t\t\t\tdefaultMap.put(name, builder);\n\t\t\t\t}\n\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t/* Not for user info about reflection exceptions */\n\t\t\t}\n\t\t}\n\t\treturn defaultMap;\n\t}", "CommandTypes(String command) {\n this.command = command;\n }", "@Override\n public void initDefaultCommand() {\n }", "public void registerCommand(Commands cmd) {\n\n String cmdName = cmd.getName();\n if(cmdMap.containsKey(cmdName))\n throw new IllegalArgumentException(cmdName + \" already defined.\");\n\n cmdMap.put(cmdName, cmd);\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }", "public void initDefaultCommand() {\n \n }", "public CommandDirector() {\n\t\t//factory = ApplicationContextFactory.getInstance();\n\t\t//context = factory.getClassPathXmlApplicationContext();\n\t\t\n\t\t//commands.put(\"createEntry\", context.getBean(\"creationEntryCommand\", CreationEntryCommand.class));\n\t\t//commands.put(\"searchEntry\", context.getBean(\"searchingEntryCommand\", SearchingEntryCommand.class));\n\t\t\n\t\tcommands.put(\"createEntry\", new CreationEntryCommand());\n\t\tcommands.put(\"searchEntry\", new SearchingEntryCommand());\n\t\t\n\t}", "public CommandFramework(Plugin plugin) {\n this.plugin = plugin;\n\n if (plugin.getServer().getPluginManager() instanceof SimplePluginManager) {\n SimplePluginManager manager = (SimplePluginManager) plugin.getServer().getPluginManager();\n\n try {\n Field field = SimplePluginManager.class.getDeclaredField(\"commandMap\");\n field.setAccessible(true);\n map = (CommandMap) field.get(manager);\n } catch (IllegalArgumentException | NoSuchFieldException | IllegalAccessException | SecurityException e) {\n e.printStackTrace();\n }\n }\n }", "protected abstract Command getAddCommand(ChangeBoundsRequest request);", "@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}", "private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\n }", "protected abstract String getCommandLine() throws ConfigException;", "private void putCommands() {\r\n ShellCommand charset = new CharsetCommand();\r\n commands.put(charset.getCommandName(), charset);\r\n ShellCommand symbol = new SymbolCommand();\r\n commands.put(symbol.getCommandName(), symbol);\r\n ShellCommand exit = new ExitCommand();\r\n commands.put(exit.getCommandName(), exit);\r\n ShellCommand cat = new CatCommand();\r\n commands.put(cat.getCommandName(), cat);\r\n ShellCommand copy = new CopyCommand();\r\n commands.put(copy.getCommandName(), copy);\r\n ShellCommand ls = new LsCommand();\r\n commands.put(ls.getCommandName(), ls);\r\n ShellCommand mkdir = new MkdirCommand();\r\n commands.put(mkdir.getCommandName(), mkdir);\r\n ShellCommand hexdump = new HexdumpCommand();\r\n commands.put(hexdump.getCommandName(), hexdump);\r\n ShellCommand tree = new TreeCommand();\r\n commands.put(tree.getCommandName(), tree);\r\n ShellCommand help = new HelpCommand();\r\n commands.put(help.getCommandName(), help);\r\n ShellCommand pwd = new PwdCommand();\r\n commands.put(pwd.getCommandName(), pwd);\r\n ShellCommand cd = new CdCommand();\r\n commands.put(cd.getCommandName(), cd);\r\n ShellCommand pushd = new PushdCommand();\r\n commands.put(pushd.getCommandName(), pushd);\r\n ShellCommand popd = new PopdCommand();\r\n commands.put(popd.getCommandName(), popd);\r\n ShellCommand listd = new ListdCommand();\r\n commands.put(listd.getCommandName(), listd);\r\n ShellCommand dropd = new DropdCommand();\r\n commands.put(dropd.getCommandName(), dropd);\r\n ShellCommand rmtree = new RmtreeCommand();\r\n commands.put(rmtree.getCommandName(), rmtree);\r\n ShellCommand cptree = new CptreeCommand();\r\n commands.put(cptree.getCommandName(), cptree);\r\n ShellCommand massrename = new MassrenameCommand();\r\n commands.put(massrename.getCommandName(), massrename);\r\n }", "java.lang.String getCommand();", "public Map<String, String> getCommands() {\n return commands;\n }", "ICommandTypeRegistry getCommandTypeRegistry();", "void cheat(UUID ownerId, Map<Zone, String> commands);", "public void initDefaultCommand() \n {\n }", "@Override\r\n\tpublic void commanderParMap(Map<Produit, Integer> mapOfProduits) {\n\r\n\t}", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n \n }", "public void initDefaultCommand()\n {\n }", "@Test\n public void testChangeMetadataMap() {\n HashMap<String, String> map = new HashMap<>();\n map.put(\"color\", \"red\");\n map.put(\"r\", \"2\");\n metaDataProcessor.editMetaData(1, map);\n assertTrue(CommandController.getInstance().getCommandQ().poll() instanceof CommandComposite);\n }", "@Override\r\n\t\tpublic SortedMap<String, ShellCommand> commands() {\n\t\t\treturn null;\r\n\t\t}", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "public void initDefaultCommand() {\n\t}", "private ConsoleCommand[] registerCommands(){\r\n\t\tHelpCommand help = new HelpCommand(this.application, \"Help\", \"?\");\r\n\t\t\r\n\t\tConsoleCommand[] commands = {\r\n\t\t\t\tnew WebServicesCommand(this.application, \"WebService\"),\r\n\t\t\t\tnew ScannerCommand(this.application, \"Scanner\"),\r\n\t\t\t\tnew ShowConfigCommand(this.application, \"System.Config\", \"Config\"),\r\n\t\t\t\tnew ShowStatsCommand(this.application, \"System.Stats\", \"Stats\"),\r\n\t\t\t\tnew ShutdownCommand(this.application, \"System.Shutdown\", \"Exit\", \"Shutdown\"),\r\n\t\t\t\tnew DisableUserCommand(this.application, \"User.Disable\"),\r\n\t\t\t\tnew EnableUserCommand(this.application, \"User.Enable\"),\r\n\t\t\t\tnew ListUsersCommand(this.application, \"User.List\"),\r\n\t\t\t\tnew SetPasswordCommand(this.application, \"User.SetPassword\"),\r\n\t\t\t\tnew UnlockUserCommand(this.application, \"User.Unlock\"),\r\n\t\t\t\tnew AddUserCommand(this.application, \"User.Add\"),\r\n\t\t\t\tnew ShowEventsCommand(this.application, \"ShowEvents\"),\r\n\t\t\t\tnew TaskListCommand(this.application, \"Task.List\"),\r\n\t\t\t\tnew TaskStopCommand(this.application, \"Task.Stop\"),\r\n\t\t\t\tnew EventLogLastCommand(this.application, \"EventLog.Last\"),\r\n\t\t\t\tnew EventLogViewCommand(this.application, \"EventLog.View\"),\r\n\t\t\t\thelp\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\tdefaultCommand = help;\r\n\t\thelp.setCommands(commands);\r\n\t\t\r\n\t\treturn commands;\r\n\t}", "public interface Command {\n\n\n}", "public void initCmds() {\n cmd.put(\"hist\",(i) -> histRPN(i));\n cmd.put(\"pile\",(i) -> pile(i));\n cmd.put(\"!\",(c) -> store(c));\n cmd.put(\"?\",(c) -> getVal(c));\n\n }", "public CommandHandler() {\r\n\t\tcommands.put(\"userinfo\", new UserInfoCommand());\r\n\t\tcommands.put(\"verify\", new VerifyCommand());\r\n\t\tcommands.put(\"ping\", new PingCommand());\r\n\t\tcommands.put(\"rapsheet\", new RapsheetCommand());\r\n\t\tcommands.put(\"bet\", new BetCommand());\r\n\t\tcommands.put(\"buttons\", new ButtonCommand());\r\n\r\n\t\t// for each command in commands\r\n\t\t// call getAlternativeName and assign to that key\r\n\t\tcommands.keySet().stream().forEach(key -> {\r\n\t\t\tList<String> alts = commands.get(key).getAlternativeNames();\r\n\t\t\tif (alts != null)\r\n\t\t\t\talts.forEach(a -> commandAlternative.put(a, key));\r\n\t\t});\r\n\t}", "public CommandConfig getCommandConfig(String command) {\n command = command.toLowerCase();\n if(!commands.containsKey(command)) {\n return null;\n }\n\n return commands.get(command);\n }", "protected void initDefaultCommand() {\n \t\t\n \t}", "public abstract String getCommand();", "public abstract void setCommand(String cmd);", "public void initDefaultCommand()\n\t{\n\t}", "private CommandFactory( ThreadGroup mainThreadGroup ) {\n this.mainThreadGroup = mainThreadGroup;\n \n map = new HashMap<String, String>();\n\n map.put( \"LS\", \"org.ajstark.LinuxShell.Command.LsCommand\" );\n map.put( \"GREP\", \"org.ajstark.LinuxShell.Command.GrepCommand\" );\n map.put( \"PWD\", \"org.ajstark.LinuxShell.Command.PwdCommand\" );\n map.put( \"CD\", \"org.ajstark.LinuxShell.Command.CdCommand\" );\n map.put( \"ENV_VAR\", \"org.ajstark.LinuxShell.Command.SetEnvVarCommand\" );\n map.put( \"ENV\", \"org.ajstark.LinuxShell.Command.EnvCommand\" );\n map.put( \"HISTORY\", \"org.ajstark.LinuxShell.Command.HistoryCommand\" );\n }", "private void loadRegistredCommands() {\n ServiceLoader<Command> loader = ServiceLoader.load(Command.class);\n for (Command command : loader) {\n addCommand(command);\n }\n }", "String getCommand();", "public Command(){\n \n comando.put(\"!addGroup\", 1);\n comando.put(\"!addUser\", 2);\n comando.put(\"!delFromGroup\", 3);\n comando.put(\"!removeGroup\", 4);\n comando.put(\"!upload\", 5);\n comando.put(\"!listUsers\",6);\n comando.put(\"!listGroups\",7);\n\n }", "private void registerArgument(final CmdProperties baseCmd) {\n commandClasses.put(baseCmd.getCommand(), baseCmd);\n }", "public static Object processCommand(Map mapCommands, Object oArg)\n throws UnsupportedOperationException\n {\n Object value = mapCommands.get(oArg);\n if (value == null)\n {\n if (oArg instanceof String)\n {\n throw new UnsupportedOperationException(\"-\" + oArg\n + \" must be specified.\");\n }\n else\n {\n throw new UnsupportedOperationException(\"argument \" + oArg\n + \" must be specified.\");\n }\n }\n return value;\n }" ]
[ "0.6806822", "0.61718285", "0.6121842", "0.61020756", "0.6096733", "0.60020435", "0.59793407", "0.5926623", "0.5919518", "0.5905334", "0.58758163", "0.5864309", "0.58221483", "0.58166057", "0.5799892", "0.57943743", "0.57943743", "0.57943743", "0.57943743", "0.57943743", "0.57943743", "0.57943743", "0.57841253", "0.5766409", "0.57517874", "0.57517874", "0.5729863", "0.5729863", "0.5729863", "0.5705846", "0.57032114", "0.56970733", "0.5693868", "0.5689362", "0.5689362", "0.5689362", "0.5689362", "0.5689362", "0.5689362", "0.56816214", "0.5680427", "0.5674103", "0.56698024", "0.56403726", "0.5634542", "0.56329364", "0.5570828", "0.5555135", "0.5553673", "0.555301", "0.5543051", "0.5537599", "0.55290115", "0.5525201", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.55102533", "0.550144", "0.550029", "0.54934543", "0.548803", "0.5485814", "0.5477849", "0.54698104", "0.5467721", "0.5446801", "0.54370666", "0.54366076", "0.54341185", "0.5431597", "0.5423838", "0.54088783", "0.5405531", "0.5371151", "0.5363524", "0.5349128", "0.5345117", "0.53353584" ]
0.6477381
1
TODO custom GameMapInfo support for maps
@Override public void addMapInfo(GameMapInfo mapInfo) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic IMapInfo getMapInfo() {\r\n\t\treturn replay.mapInfo;\r\n\t}", "public abstract void createMap(Game game) throws FreeColException;", "public abstract void createMap(Game game) throws FreeColException;", "public void printMap(GameMap map);", "private void viewMap() {\r\n \r\n // Get the current game \r\n theGame = cityofaaron.CityOfAaron.getTheGame();\r\n \r\n // Get the map \r\n Map map = theGame.getMap();\r\n Location locations = null;\r\n \r\n // Print the map's title\r\n System.out.println(\"\\n*** Map: CITY OF AARON and Surrounding Area ***\\n\");\r\n // Print the column numbers \r\n System.out.println(\" 1 2 3 4 5\");\r\n // for every row:\r\n for (int i = 0; i < max; i++){\r\n // Print a row divider\r\n System.out.println(\" -------------------------------\");\r\n // Print the row number\r\n System.out.print((i + 1) + \" \");\r\n // for every column:\r\n for(int j = 0; j<max; j++){\r\n // Print a column divider\r\n System.out.print(\"|\");\r\n // Get the symbols and locations(row, column) for the map\r\n locations = map.getLocation(i, j);\r\n System.out.print(\" \" + locations.getSymbol() + \" \");\r\n }\r\n // Print the ending column divider\r\n System.out.println(\"|\");\r\n }\r\n // Print the ending row divider\r\n System.out.println(\" -------------------------------\\n\");\r\n \r\n // Print a key for the map\r\n System.out.println(\"Key:\\n\" + \"|=| - Temple\\n\" + \"~~~ - River\\n\" \r\n + \"!!! - Farmland\\n\" + \"^^^ - Mountains\\n\" + \"[*] - Playground\\n\" \r\n + \"$$$ - Capital \" + \"City of Aaron\\n\" + \"### - Chief Judge/Courthouse\\n\" \r\n + \"YYY - Forest\\n\" + \"TTT - Toolshed\\n\" +\"xxx - Pasture with \"\r\n + \"Animals\\n\" + \"+++ - Storehouse\\n\" +\">>> - Undeveloped Land\\n\");\r\n }", "private void updateMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (newMap[i][j] instanceof Player) {\n\t\t\t\t\tmap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof BlankSpace) {\n\t\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Fence) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "public interface IMap \n{ \n String GetMaps(boolean showEnemyShips);\n String GetSpecifiedMap(MapSettings ms);\n \n MapSettings GetUserMap();\n\n boolean HitEnemyCell(int x, int y);\n boolean CheckVictory(boolean checkPlayerMap);\n boolean SetUserMap(MapSettings userMap);\n boolean SetEnemyMap(MapSettings enemyMap);\n}", "@Override\r\n public void mapshow() {\r\n showMap l_showmap = new showMap(d_playerList, d_country);\r\n l_showmap.check();\r\n }", "public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }", "String getMapCode();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "int getMapID();", "public void update_map(Player player) \n\t{\n\t\tfor (int i = 0; i < this.map.length; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.map[i].length;j++) \n\t\t\t{\n\t\t\t\tswitch (map[i][j]) \n\t\t\t\t{\n\t\t\t\tcase GRASS:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase PATH:\n\t\t\t\t\tthis.gc.drawImage(PATH_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase CROSS_ROADS:\n\t\t\t\t\tthis.gc.drawImage(PATH_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TA:\n\t\t\t\t\tthis.gc.drawImage(TA_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase RESEARCHER:\n\t\t\t\t\tthis.gc.drawImage(RESEARCHER_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase FIRST_YEAR:\n\t\t\t\t\tthis.gc.drawImage(FIRST_YEAR_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SECOND_YEAR:\n\t\t\t\t\tthis.gc.drawImage(SECOND_YEAR_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SCORE_AREA:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tFont titleFont = Font.font(\"arial\", FontWeight.EXTRA_BOLD, 25);\n\t\t\t this.gc.setFont(titleFont);\n\t\t\t\t\tString text = \"GPA: \" + player.getGPA();\n\t\t\t\t\tthis.gc.fillText(text, j*64, i*64);\n\t\t\t\t\tthis.gc.strokeText(text, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\tcase TUITION_AREA:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tFont title = Font.font(\"arial\", FontWeight.EXTRA_BOLD, 25);\n\t\t\t this.gc.setFont(title);\n\t\t\t\t\tString Tuition = \"Tuition: \" + (player.getTuition());\n\t\t\t\t\tthis.gc.fillText(Tuition, j*64, i*64);\n\t\t\t\t\tthis.gc.strokeText(Tuition, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }", "public void printDetailedMap(GameMap map, List<String> playersNames);", "String getMapName() {\n try {\n fd world = getWorld();\n Class<?> worldclass = world.getClass();\n Field worlddatafield = null;\n while (true) { //\n\n try {\n worlddatafield = worldclass.getDeclaredField(\"x\");\n break;\n } catch (NoSuchFieldException e) {\n worldclass = worldclass.getSuperclass();\n continue;\n }\n }\n if (worlddatafield == null)\n return null;\n worlddatafield.setAccessible(true);\n\n ei worldata;\n\n worldata = (ei) worlddatafield.get(world);\n return worldata.j();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public static void getMapDetails(){\n\t\tmap=new HashMap<String,String>();\r\n\t map.put(getProjName(), getDevID());\r\n\t //System.out.println(\"\\n[TEST Teamwork]: \"+ map.size());\r\n\t \r\n\t // The HashMap is currently empty.\r\n\t\tif (map.isEmpty()) {\r\n\t\t System.out.println(\"It is empty\");\r\n\t\t \r\n\t\t System.out.println(\"Trying Again:\");\r\n\t\t map=new HashMap<String,String>();\r\n\t\t map.put(getProjName(), getDevID());\r\n\t\t \r\n\t\t System.out.println(map.isEmpty());\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t//retrieving values from map\r\n\t Set<String> keys= map.keySet();\r\n\t for(String key : keys){\r\n\t \t//System.out.println(key);\r\n\t System.out.println(key + \": \" + map.get(key));\r\n\t }\r\n\t \r\n\t //searching key on map\r\n\t //System.out.println(\"Map Value: \"+map.containsKey(toStringMap()));\r\n\t System.out.println(\"Map Value: \"+map.get(getProjName()));\r\n\t \r\n\t //searching value on map\r\n\t //System.out.println(\"Map Key: \"+map.containsValue(getDevID()));\r\n\t \r\n\t\t\t\t\t // Put keys into an ArrayList and sort it.\r\n\t\t\t\t\t\t//ArrayList<String> list = new ArrayList<String>();\r\n\t\t\t\t\t\t//list.addAll(keys);\r\n\t\t\t\t\t\t//Collections.sort(list);\r\n\t\t\t\t\r\n\t\t\t\t\t\t// Display sorted keys and their values.\r\n\t\t\t\t\t\t//for (String key : list) {\r\n\t\t\t\t\t\t// System.out.println(key + \": \" + map.get(key));\r\n\t\t\t\t\t\t//}\t\t\t \r\n\t}", "public GameMap map() {\n\t\treturn map;\n\t}", "@Override\n\tpublic void getStat(Map<String, String> map) {\n\t\t\n\t}", "private void mapConfig(GoogleMap googleMap) {\n LatLng position=new LatLng(playerDetails.getLat(),playerDetails.getLongitude());\n\n googleMap.addMarker(new MarkerOptions().position(position).title(playerDetails.getWinnerName())).showInfoWindow();\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(position));\n }", "private void loadMapData(Context context, int pixelsPerMeter,int px,int py){\n\n char c;\n\n //keep track of where we load our game objects\n int currentIndex = -1;\n\n //calculate the map's dimensions\n mapHeight = levelData.tiles.size();\n mapWidth = levelData.tiles.get(0).length();\n\n //iterate over the map to see if the object is empty space or a grass\n //if it's other than '.' - a switch is used to create the object at this location\n //if it's '1'- a new Grass object it's added to the arraylist\n //if it's 'p' the player it's initialized at the location\n\n for (int i = 0; i < levelData.tiles.size(); i++) {\n for (int j = 0; j < levelData.tiles.get(i).length(); j++) {\n\n c = levelData.tiles.get(i).charAt(j);\n //for empty spaces nothing to load\n if(c != '.'){\n currentIndex ++;\n switch (c){\n case '1' :\n //add grass object\n gameObjects.add(new Grass(j,i,c));\n break;\n\n case 'p':\n //add the player object\n gameObjects.add(new Player(context,px,py,pixelsPerMeter));\n playerIndex = currentIndex;\n //create a reference to the player\n player = (Player)gameObjects.get(playerIndex);\n break;\n }\n\n //check if a bitmap is prepared for the object that we just added in the gameobjects list\n //if not (the bitmap is still null) - it's have to be prepared\n if(bitmapsArray[getBitmapIndex(c)] == null){\n //prepare it and put in the bitmap array\n bitmapsArray[getBitmapIndex(c)] =\n gameObjects.get(currentIndex).prepareBitmap(context,\n gameObjects.get(currentIndex).getBitmapName(),\n pixelsPerMeter);\n }\n\n }\n\n }\n\n }\n }", "private void updateMap(final PlayerVision vision){\r\n\t\tint i, y, x;\n\t\t\n\t\t// add the current point to the map\n\t\taddToMap(east, north, vision.CurrentPoint);\n\t\t\n\t\t// add everything west to the map\n\t\tfor (i = 0; i < vision.mWest; i++){\n\t\t\tx = east - i - 1;\r\n\t\t\t\n\t\t\taddToMap(x, north, vision.West[i]);\n\t\t}\r\n\t\t\r\n\t\t// add everything east to the map\n\t\tfor (i = 0; i < vision.mEast; i++){\n\t\t\tx = east + i + 1;\r\n\t\t\t\n\t\t\taddToMap(x, north, vision.East[i]);\n\t\t}\r\n\t\t\r\n\t\t// add everything north to the map\n\t\tfor (i = 0; i < vision.mNorth; i++){\n\t\t\ty = north + i + 1;\r\n\t\t\t\n\t\t\taddToMap(east, y, vision.North[i]);\n\t\t}\r\n\t\t\n\t\t// add everything south to the map\n\t\tfor (i = 0; i < vision.mSouth; i++){\n\t\t\ty = north - i - 1;\r\n\t\t\t\n\t\t\taddToMap(east, y, vision.South[i]);\n\t\t}\r\n\t\t\n\t}", "public interface GameMapBuilder {\n void sapperStyle();//小兵装饰\n void mapColor();//地图颜色\n}", "public void renderMap(GameMap gameMap, Player player)\n\t{\n\t\tthis.drawMapGlyphs(gameMap, player);\n\t\t// this.getGlyphs(gameMap, player);\n\t\t// for(Text text : this.getGlyphs(gameMap))\n\t\t// window.getRenderWindow().draw(text);\n\t}", "@Override\n\tpublic void drawMap(Map map) {\n\t\tSystem.out.println(\"Draw map\"+map.getClass().getName()+\"on SD Screen\");\n\t}", "public void printMiniMap() \n { \n /* this.miniMapFrame(); */\n }", "public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }", "public void displaymap(AircraftData data);", "protected boolean processGameInfo(GameInfoStruct data){return false;}", "public TiledMap createMap() {\n map_inter = new MapTile[g_logic.MAP_WIDTH][g_logic.MAP_HEIGHT];\n \n //drawing stuff\n tiles = new Texture(Gdx.files.internal(\"packed/terrain.png\"));\n TextureRegion[][] splitTiles = TextureRegion.split(tiles, 54, 54);\n map = new TiledMap();\n MapLayers layers = map.getLayers();\n TiledMapTileLayer new_layer = new TiledMapTileLayer(g_logic.MAP_WIDTH, g_logic.MAP_HEIGHT, g_logic.ISO_WIDTH, g_logic.ISO_HEIGHT);\n \n //actual generation\n for (int x = 0; x < g_logic.MAP_WIDTH; x++) \n {\n for (int y = 0; y < g_logic.MAP_HEIGHT; y++) \n {\n char chara = '.';\n int ty = 0;\n int tx;\n if (x == 0 || x == g_logic.MAP_WIDTH-1)\n {\n tx = 1;\n chara = '#';\n }\n else\n {\n tx = 0; \n chara = '.';\n }\n \n //set up map tiles\n MapTile tile = new MapTile(x, y, tx, ty, chara);\n Gdx.app.log(\"Map gen\", \"Created a map tile @\" + x + \",\" + y + \" \" + tx + \" \" + ty + \" \" + chara);\n \n //put them in the internal map\n putInterMap(tile, x, y);\n \n //set up renderer cells\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n //y,x\n cell.setTile(new StaticTiledMapTile(splitTiles[tile.getTextureY()][tile.getTextureX()]));\n new_layer.setCell(x, y, cell);\n }\n }\n \n \n float y_off = g_logic.getYOffset();\n new_layer.setOffsetY(y_off);\n layers.add(new_layer);\n \n g_logic.setInterMap(map_inter);\n\n return map;\n }", "public void printMiniMap() { }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n RequestQueue queue = Volley.newRequestQueue(this);\n String gamesUrl = \"https://treasurehunt-mamn01.herokuapp.com/api/games\";\n\n StringRequest strRequest = new StringRequest(Request.Method.GET, gamesUrl,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n ArrayList<Game> games = Parser.generateGames(response);\n\n for (Game g : games) {\n Log.i(\"Maps\", \"Game (\" + g.getId() + \"): \" + g.getName());\n\n Marker m = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(g.getPosition().getLatitude(), g.getPosition().getLongitude()))\n .title(g.getName()));\n\n gameMarkers.put(m, g.getId());\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Maps\", error.toString());\n }\n });\n\n queue.add(strRequest);\n\n /*\n Marker m = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(55.711165, 13.207776)).title(\"First Game\"));\n gameMarkers.put(m, 1);\n\n m = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(55.721001, 13.210863)).title(\"Delphi's Game\"));\n gameMarkers.put(m, 2);\n */\n\n locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n enableMyLocation();\n String provider = locationManager.getBestProvider(new Criteria(), true);\n Location location = getLastKnownLocation();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(location.getLatitude(), location.getLongitude()), 17.0f));\n }", "public void loadMap(Player player) {\r\n\tregionChucks = RegionBuilder.findEmptyChunkBound(8, 8); \r\n\tRegionBuilder.copyAllPlanesMap(235, 667, regionChucks[0], regionChucks[1], 8);\r\n\t\r\n\t}", "public String display(PlayMap aPlayMap) {\r\n String tmpOutput = \"\";\r\n Field tmpField;\r\n \r\n tmpOutput = \"<div class=\\\"map\\\" id=\\\"map\\\" style=\\\"width:\" + aPlayMap.getXDimension() * 34.75 + \"px; \";\r\n tmpOutput += \"height:\" + aPlayMap.getYDimension() * 34.75 + \"px;\\\">\\n\";\r\n // loop for row\r\n for (int i = 0; i < aPlayMap.getYDimension(); i++) {\r\n // loop for column\r\n for (int j = 0; j < aPlayMap.getXDimension(); j++) {\r\n tmpField = aPlayMap.getField(j, i);\r\n tmpOutput += \"<div id=\\\"\" + j + \"/\" + i + \"\\\" \";\r\n try {\r\n tmpOutput += \"class=\\\"field \" + Ground.getGroundLabeling(tmpField.getGround()) + \"\\\" \";\r\n } catch (UnknownFieldGroundException e) {\r\n e.printStackTrace();\r\n }\r\n Placeable tmpSetter = tmpField.getSetter();\r\n String tmpColor = new String (\"#000000\");\r\n String tmpPlacable = new String (\"item\");\r\n if (tmpSetter != null) {\r\n if (tmpSetter instanceof Figure) {\r\n tmpColor = new String();\r\n switch (tmpField.getSetter().getId()) {\r\n case 'A':\r\n tmpColor = \"#ff0000\";\r\n break;\r\n case 'B':\r\n tmpColor = \"#0000ff\";\r\n break;\r\n }\r\n tmpPlacable = \"figure\";\r\n }\r\n tmpOutput += \"onClick=\\\"checkUserAction(this);\\\" \";\r\n tmpOutput += \"onMouseOver=\\\"hoverOn(this);\\\" onMouseOut=\\\"hoverOff(this);\\\" status=\\\"placed\\\" filled=\\\"\" + tmpPlacable + \"\\\" placablecolor=\\\"\" + tmpColor + \"\\\" >\";\r\n String tmpImage = tmpSetter.getImage();\r\n tmpOutput += \"<img src=\\\"resources/pictures/\" + tmpImage + \"\\\">\";\r\n } else {\r\n tmpOutput += \"onClick=\\\"checkUserAction(this);\\\" \";\r\n tmpOutput += \"onMouseOver=\\\"hoverOn(this);\\\" onMouseOut=\\\"hoverOff(this);\\\" status=\\\"empty\\\" filled=\\\"no\\\" placablecolor=\\\"#000000\\\" >\";\r\n }\r\n tmpOutput += \"</div>\\n\";\r\n }\r\n }\r\n tmpOutput += \"</div>\\n\";\r\n\r\n return tmpOutput;\r\n }", "public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }", "public void setMap()\n {\n gameManager.setMap( savedFilesFrame.getCurrent_index() );\n }", "@Override\n\tpublic GameInfo getGameInfo() {\n\t\treturn gameInfo;\n\t}", "public java.util.Map<java.lang.Integer, java.lang.Integer> getInfoMap() {\n return internalGetInfo().getMap();\n }", "public String toString()\n {\n return super.toString() + \":\\n\" + getMap();\n }", "public void paint(Map map, Graphics graphics, Camera camera, GraphicsManager graphicsManager)\r\n\t{\r\n\t\tgraphics.drawImage(graphicsManager.getPanelGaucheBas(), 0, 0, GameConfiguration.WINDOW_WIDTH, GameConfiguration.WINDOW_HEIGHT, null);\r\n\t\tint tileSize = GameConfiguration.TILE_SIZE;\r\n\t\t\r\n\t\tTile[][] tiles = map.getTiles();\r\n\t\tint width = GameConfiguration.WINDOW_WIDTH;\r\n\t\tint height = GameConfiguration.WINDOW_HEIGHT;\r\n\t\tif(GameConfiguration.launchInFullScreen) {\r\n\t\t\twidth = Toolkit.getDefaultToolkit().getScreenSize().width;\r\n\t\t\theight = Toolkit.getDefaultToolkit().getScreenSize().height;\r\n\t\t}\r\n\t\t//draw map\r\n\t\tfor (int lineIndex = 0; lineIndex < map.getLineCount(); lineIndex++) \r\n\t\t{\r\n\t\t\tfor (int columnIndex = 0; columnIndex < map.getColumnCount(); columnIndex++) \r\n\t\t\t{\r\n\t\t\t\tTile tile = tiles[lineIndex][columnIndex];\r\n//tilePos.x + tilePos.w >= 0 && tilePos.y + tilePos.h >= 0 && tilePos.x <= GAME_WIDTH && tilePos.y <= GAME_HEIGHT\r\n\t\t\t\tif(tile.getColumn() * tileSize - camera.getX() + tileSize >= 0 \r\n\t\t\t\t\t&& tile.getLine() * tileSize - camera.getY() + tileSize >= 0 \r\n\t\t\t\t\t&& tile.getColumn() * tileSize - camera.getX() <= width && tile.getLine() * tileSize - camera.getY() <= height) {\r\n\t\t\t\t\tAnimation animation = tile.getAnimation();\r\n\t\t\t\t\tgraphics.drawImage(graphicsManager.getGrassTile(), tile.getColumn() * tileSize - camera.getX(), tile.getLine() * tileSize - camera.getY(), tileSize, tileSize, null);\r\n\t\t\t\t\tgraphics.drawImage(animation.getFrame(), tile.getColumn() * tileSize - camera.getX(), tile.getLine() * tileSize - camera.getY(), tileSize, tileSize, null);\r\n\t\t\t\t\t/*graphics.setColor(Color.white);\r\n\t\t\t\t\tgraphics.drawRect(tile.getColumn() * tileSize - camera.getX(), tile.getLine() * tileSize - camera.getY(), tileSize, tileSize);*/\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public interface MapGenerator {\n\n /**\n * Creates the map with the current set options\n */\n public abstract void createMap(Game game) throws FreeColException;\n\n /**\n * Creates a <code>Map</code> for the given <code>Game</code>.\n *\n * The <code>Map</code> is added to the <code>Game</code> after\n * it is created.\n *\n * @param game The game.\n * @param landMap Determines whether there should be land\n * or ocean on a given tile. This array also\n * specifies the size of the map that is going\n * to be created.\n * @see net.sf.freecol.common.model.Map\n */\n public abstract void createEmptyMap(Game game, boolean[][] landMap);\n\n /**\n * Gets the options used when generating the map.\n * @return The <code>MapGeneratorOptions</code>.\n */\n public abstract OptionGroup getMapGeneratorOptions();\n\n}", "private void populateMap() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n //database.updateLatLng(\"Gym\", 34.181243783767364, -117.31866795569658);\n\n while (cursor.moveToNext()) {\n double lat = cursor.getDouble(cursor.getColumnIndex(database.COL_LAT));\n double lng = cursor.getDouble(cursor.getColumnIndex(database.COL_LONG));\n int image = database.getImage(cursor.getString(cursor.getColumnIndex(database.COL_LOC)));\n\n //Log.i(\"ROW\", R.drawable.library + \"\");\n LatLng coords = new LatLng(lat, lng);\n\n GroundOverlayOptions overlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(image))\n .position(coords, 30f, 30f);\n\n mMap.addGroundOverlay(overlayOptions);\n }\n }", "public interface MapGenerator {\n\n /**\n * Creates the map with the current set options\n *\n * @param game a <code>Game</code> value\n * @exception FreeColException if an error occurs\n */\n public abstract void createMap(Game game) throws FreeColException;\n\n /**\n * Creates a <code>Map</code> for the given <code>Game</code>.\n *\n * The <code>Map</code> is added to the <code>Game</code> after\n * it is created.\n *\n * @param game The game.\n * @param landMap Determines whether there should be land\n * or ocean on a given tile. This array also\n * specifies the size of the map that is going\n * to be created.\n * @see net.sf.freecol.common.model.Map\n */\n public abstract void createEmptyMap(Game game, boolean[][] landMap);\n\n /**\n * Gets the options used when generating the map.\n * @return The <code>MapGeneratorOptions</code>.\n */\n public abstract OptionGroup getMapGeneratorOptions();\n\n}", "private void copyMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (map[i][j] instanceof Player) {\n\t\t\t\t\tnewMap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof BlankSpace) {\n\t\t\t\t\tnewMap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof Mho) {\n\t\t\t\t\tnewMap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof Fence) {\n\t\t\t\t\tnewMap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "public int getMapMode() {\r\n return MapMode;\r\n }", "public int getMapMode() {\r\n return MapMode;\r\n }", "public interface IDrawableMap {\n void prepareRenderingOnMap();\n void renderOnMap(SpriteBatch batch, float delta);\n}", "MAP createMAP();", "void willChooseGameMap() throws RemoteException;", "public abstract void createMap();", "public void printMap()\n {\n this.mapFrame.paint();\n this.miniMapFrame.paint();\n }", "public java.util.Map<java.lang.Integer, java.lang.Integer> getInfoMap() {\n return internalGetInfo().getMap();\n }", "public void populateMap(int playerNumber){\n\t\tint factor = 1;\n\t\t\n\t\t\n\t}", "public Map<String, Object> getInfo();", "private void processLayerMap() {\r\n for (int l = 0; l < layers.size(); l++) {\r\n Layer layer = layers.get(l);\r\n this.layerNameToIDMap.put(layer.name, l);\r\n }\r\n }", "private Bitmap decodeMapBitmap() {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = false;\n options.inScaled = false;\n options.outWidth = 2048;\n options.outHeight = 2048;\n\n return BitmapFactory.decodeResource(getResources(), R.drawable.map, options);\n }", "void updateMap(MapData map);", "public boolean getShowMap()\r\n {\r\n return showMap;\r\n }", "public void drawMap() {\n\t\tRoad[] roads = map.getRoads();\r\n\t\tfor (Road r : roads) {\r\n\t\t\tif (r.turn) {\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road = true;\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_vert = true;\r\n\t\t\t} else if (r.direction == Direction.NORTH)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_north = true;\r\n\t\t\telse if (r.direction == Direction.SOUTH)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_south = true;\r\n\t\t\telse if (r.direction == Direction.WEST)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_west = true;\r\n\t\t\telse if (r.direction == Direction.EAST)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_east = true;\r\n\t\t\ttry {\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].updateImage();\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\t}", "public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}", "private void processTilesetMap() {\r\n for (int t = 0; t < this.getTileSetCount(); t++) {\r\n TileSet tileSet = this.getTileSet(t);\r\n this.tilesetNameToIDMap.put(tileSet.name, t);\r\n }\r\n }", "public String getGameIdForMap(int gameId) {\n\t\tCursor cursor = getReadableDatabase().rawQuery(\n\t\t\t\t\"SELECT map_id FROM maps WHERE game.game_id =? LIMIT 1\",\n\t\t\t\tnew String[] { \"\" + gameId });\n\t\tcursor.moveToFirst();\n\t\tif (cursor.getCount() < 1) {\n\t\t\treturn \"Game/Map Not Available\";\n\t\t} else {\n\t\t\treturn cursor.getString(cursor.getColumnIndex(\"map_id\"));\n\t\t}\n\t}", "public int[] updateMap() {\r\n\t\tint[] isObstacle = super.updateMap();\r\n\t\tsmap.setMap(map);\r\n\t\treturn isObstacle;\r\n\t}", "public MapGenerator(GameMap map) {\n\n gameMap = map;\n setGuiHashMap();\n firstCountryFlag=true;\n validator = new MapValidator(gameMap);\n }", "private void m12807a(Map<String, String> map) {\n map.put(\"exoplayer\", String.valueOf(this.f10118e.mo1835a()));\n map.put(\"prep\", Long.toString(this.f10118e.getInitialBufferTime()));\n }", "public String getMapName() {\n return mapName;\n }", "@Override\n public void returnDamageMap(DamageMap damageMap) {\n }", "public void displayMap() {\n MapMenuView mapMenu = new MapMenuView();\r\n mapMenu.display();\r\n \r\n }", "@Override\r\n\tpublic void saveMap() {\n\r\n\t}", "private void setMapPos()\r\n {\r\n try\r\n {\r\n Thread.sleep(1000);//so that you can see players move\r\n }\r\n catch(Exception e){}\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int unitPos = 0;\r\n int firstX = 0;\r\n int firstY = 0;\r\n if (currentPlayer == 1)\r\n {\r\n unitPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n }\r\n if (currentPlayer == 2)\r\n {\r\n unitPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n }\r\n int tempX = unitPos % mapWidth;\r\n int tempY = unitPos - tempX;\r\n if (tempY == 0) {}\r\n else\r\n tempY = tempY / mapHeight;\r\n tempX = tempX - 11;\r\n tempY = tempY - 7;\r\n if (tempX >= 0)\r\n firstX = tempX;\r\n else\r\n firstX = tempX + mapWidth;\r\n if (tempY >= 0)\r\n firstY = tempY;\r\n else\r\n firstY = tempY + mapWidth;\r\n\r\n int drawWidth = worldPanel.getDrawWidth();\r\n int drawHeight = worldPanel.getDrawHeight();\r\n worldPanel.setNewXYPos(firstX, firstY);\r\n miniMap.setNewXY(firstX, firstY, drawWidth, drawHeight);\r\n }", "private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }", "private void inicMapComponent() {\n\t\tmapView = ((MapFragment) getFragmentManager()\n\t\t\t\t.findFragmentById(R.id.map)).getMap();\n\t\t\n\n\t\tlocationService = new LocationService(MapPage.this);\n\t\tlocationService.getLocation();\n\t\t\n\t\tmapView.setMyLocationEnabled(true);\n\n\t Location location = mapView.getMyLocation();\n\t LatLng myLocation = null; //new LatLng(44.8167d, 20.4667d);\n\t \n\t\tif (location != null) {\n\t myLocation = new LatLng(location.getLatitude(),\n\t location.getLongitude());\n\t } else {\n\t \tLocationManager service = (LocationManager) getSystemService(LOCATION_SERVICE);\n\t\t\tCriteria criteria = new Criteria();\n\t\t\tString provider = service.getBestProvider(criteria, false);\n\t\t\tLocation lastKnownLocation = service.getLastKnownLocation(provider);\n\t\t\tmyLocation = new LatLng(lastKnownLocation.getLatitude(),lastKnownLocation.getLongitude());\n\t }\n\t\t\n\t\tmapView.animateCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 13));\n\t\t\n\t\tmapView.setPadding(0, 0, 0, 80);\n\t\t\n\t\tmapView.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t//onMapWindwosClick(marker.getId(),marker.getTitle());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t\n\t}", "private static BufferedImage getMap(int art, GameModel gameModel, Color mapC, Color skyC){\n\n BufferedImage image = new BufferedImage(2800,1800,BufferedImage.TYPE_4BYTE_ABGR);\n\n int genauigkeit = 400;\n\n int[] mapX = new int[genauigkeit + 2];\n int[] mapY = new int[genauigkeit + 2];\n\n mapX[genauigkeit + 1] = 0;\n mapX[genauigkeit] = GameLoop.imgW;\n\n mapY[genauigkeit + 1] = GameLoop.imgH;\n mapY[genauigkeit] = GameLoop.imgH;\n\n double[] rnd = new double[8];\n\n for(int i = 0;i < 4;i++){\n rnd[i] = Math.random() * 0.1;\n rnd[i+4] = Math.random();\n }\n\n for(int i = 0;i < genauigkeit;i++){\n mapX[i] = (int) (GameLoop.imgW/(double)genauigkeit * (i));\n\n switch(art){\n case 1:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.1) * gameModel.getHeight()/8);\n break;\n case 2:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.01) * gameModel.getHeight()/8);\n break;\n case 3:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.1) * gameModel.getHeight()/12 + i);\n break;\n case 4:\n mapY[i] = (int) (gameModel.getHeight()*0.8 - 1/(2000 + Math.pow(i - (genauigkeit - 2)/2.0,2)) * 1500000);\n break;\n case 5:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.pow(Math.sin(i * 0.03),3) * gameModel.getHeight()/4);\n break;\n case 6:\n mapY[i] = (int) (gameModel.getHeight()/2.0);\n mapY[i] += Math.sin(i * (rnd[0])) * rnd[4] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[1])) * rnd[5] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[2])) * rnd[6] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[3])) * rnd[7] * gameModel.getHeight()*0.1;\n\n\n\n\n\n }\n\n }\n\n Polygon map = new Polygon(mapX,mapY,genauigkeit+2);\n\n Graphics2D g2d = image.createGraphics();\n\n g2d.setColor(skyC);\n\n g2d.fillRect(0,0,2800,1800);\n\n g2d.setColor(mapC);\n\n g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\n g2d.fillPolygon(map);\n\n return image;\n }", "private void ini_MapPaks()\r\n\t{\r\n\r\n\t}", "@Override\n public MapLocation getMap() {\n return null;\n }", "@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\r\n float zoomLevel = 16.0f; //This goes up to 21\r\n\r\n switch (mPost_L){\r\n\r\n case \"Mellor Building\":\r\n //Mellor Building\r\n LatLng mellor = new LatLng(53.010042, -2.180419);\r\n mMap.addMarker(new MarkerOptions()\r\n .position(mellor)\r\n .title(mPost_L).icon(BitmapDescriptorFactory\r\n .defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\r\n\r\n //Car park A\r\n LatLng carPark1 = new LatLng(53.010189, -2.180913);\r\n mMap.addMarker(new MarkerOptions().position(carPark1).title(mPost_L + \" Car park A\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark1, zoomLevel));\r\n\r\n //Car park B\r\n LatLng carPark2 = new LatLng(53.010197, -2.178928);\r\n mMap.addMarker(new MarkerOptions().position(carPark2).title(mPost_L +\" Car park B\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark2, zoomLevel));\r\n break;\r\n\r\n\r\n case \"Ember Lounge\":\r\n //Ember Lounge\r\n LatLng ember = new LatLng(53.009524, -2.179833);\r\n mMap.addMarker(new MarkerOptions()\r\n .position(ember)\r\n .title(mPost_L).icon(BitmapDescriptorFactory\r\n .defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\r\n\r\n //Car park A\r\n LatLng carPark1a = new LatLng(53.010189, -2.180913);\r\n mMap.addMarker(new MarkerOptions().position(carPark1a).title(mPost_L + \" Car park A\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark1a, zoomLevel));\r\n\r\n //Car park B\r\n LatLng carPark2b = new LatLng(53.010197, -2.178928);\r\n mMap.addMarker(new MarkerOptions().position(carPark2b).title(mPost_L +\" Car park B\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark2b, zoomLevel));\r\n break;\r\n\r\n case \"LRV and Verve\":\r\n //LRV and Verve\r\n LatLng lrvAndverve = new LatLng(53.007882, -2.175342);\r\n mMap.addMarker(new MarkerOptions()\r\n .position(lrvAndverve)\r\n .title(mPost_L).icon(BitmapDescriptorFactory\r\n .defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\r\n\r\n //Car Park A\r\n LatLng carPark3 = new LatLng(53.007652, -2.175546);\r\n mMap.addMarker(new MarkerOptions().position(carPark3).title(mPost_L + \" Car park A\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark3, zoomLevel));\r\n\r\n //Car park B\r\n LatLng carPark4 = new LatLng(53.008826, -2.175459);\r\n mMap.addMarker(new MarkerOptions().position(carPark4).title(mPost_L + \" Car park B\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark4, zoomLevel));\r\n break;\r\n\r\n\r\n case \"Sir Stanley Matthews Sports hall\":\r\n //Stanley Matthews Sports hall\r\n LatLng SMsportsHall = new LatLng(53.007882, -2.175342);\r\n mMap.addMarker(new MarkerOptions()\r\n .position(SMsportsHall)\r\n .title(mPost_L).icon(BitmapDescriptorFactory\r\n .defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\r\n\r\n\r\n //Car Park A\r\n LatLng carPark5 = new LatLng(53.008605, -2.174087);\r\n mMap.addMarker(new MarkerOptions().position(carPark5).title(mPost_L + \" Car park A\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark5, zoomLevel));\r\n\r\n //Car park B\r\n LatLng carPark6 = new LatLng(53.009739, -2.174776);\r\n mMap.addMarker(new MarkerOptions().position(carPark6).title(mPost_L + \" Car park B\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark6, zoomLevel));\r\n break;\r\n\r\n\r\n case \"S520 (Mellor Building)\":\r\n //Mellor Building (S520)\r\n LatLng s520mellor = new LatLng(53.010042, -2.180419);\r\n mMap.addMarker(new MarkerOptions()\r\n .position(s520mellor).snippet(\"5th Floor of Mellor Building!\")\r\n .title(mPost_L).icon(BitmapDescriptorFactory\r\n .defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\r\n\r\n //Car park A\r\n LatLng carPark7 = new LatLng(53.010189, -2.180913);\r\n mMap.addMarker(new MarkerOptions().position(carPark7).title(\"Mellor Building Car park A\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark7, zoomLevel));\r\n\r\n //Car park B\r\n LatLng carPark8 = new LatLng(53.010197, -2.178928);\r\n mMap.addMarker(new MarkerOptions().position(carPark8).title(\"Mellor Building Car park B\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carPark8, zoomLevel));\r\n break;\r\n\r\n }\r\n }", "private void generateMap() {\n\n\t\t//Used to ensure unique locations of each Gameboard element\n\t\tboolean[][] spaceUsed = new boolean[12][12];\n\n\t\t//A running total of fences generated\n\t\tint fencesGenerated = 0;\n\n\t\t//A running total of Mhos generated\n\t\tint mhosGenerated = 0;\n\n\t\t//Fill the board with spaces and spikes on the edge\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\tif (i == 0 || i == 11 || j ==0 || j == 11) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t\tspaceUsed[i][j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generate 20 spikes in unique locations\n\t\twhile (fencesGenerated < 20) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Fence(x, y, board);\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\tfencesGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate 12 mhos in unique locations\n\t\twhile (mhosGenerated < 12) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Mho(x, y, board);\n\n\t\t\t\tmhoLocations.add(x);\n\t\t\t\tmhoLocations.add(y);\n\n\t\t\t\tspaceUsed[x][y] = true;\n\n\t\t\t\tmhosGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate a player in a unique location\n\t\twhile (true) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Player(x, y, board);\n\t\t\t\tplayerLocation[0] = x;\n\t\t\t\tplayerLocation[1] = y;\n\t\t\t\tnewPlayerLocation[0] = x;\n\t\t\t\tnewPlayerLocation[1] = y;\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "private void returnDriverLocationstoMaps() {\n }", "private void createMapOfFirstType() {\n\n this.typeOfMap=1;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true, 0, 0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false, 0, 1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.RED, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n\n }", "private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void calculateMapSize() {\n calculateMapSize(true);\n }", "public void updateMap(HashMap<Coordinate, MapTile> currentView) {\n\t\t\tfor (Coordinate key : currentView.keySet()) {\n\t\t\t\tif (!map.containsKey(key)) {\n\t\t\t\t\tMapTile value = currentView.get(key);\n\t\t\t\t\tmap.put(key, value);\n\t\t\t\t\tif (value.getType() == MapTile.Type.TRAP) {\n\t\t\t\t\t\tTrapTile value2 = (TrapTile) value; // downcast to find type\n\t\t\t\t\t\tif (value2.getTrap().equals(\"parcel\") && possibleTiles.contains(key)) {\n\t\t\t\t\t\t\tparcelsFound++;\n\t\t\t\t\t\t\tparcels.add(key);\n\t\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\t\tphase = \"search\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"lava\")) {\n\t\t\t\t\t\t\tlava.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"health\")) {\n\t\t\t\t\t\t\thealth.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"water\")) {\n\t\t\t\t\t\t\twater.add(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (value.getType() == MapTile.Type.FINISH) {\n\t\t\t\t\t\texitFound = true;\n\t\t\t\t\t\texit.add(key);\n\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\tphase = \"search\";\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}", "protected void showMap() {\n \t\t\n \t\tApplicationData applicationData;\n \t\ttry {\n \t\t\tapplicationData = ApplicationData.readApplicationData(this);\n \t\t\tif(applicationData != null){\n \t\t\t\tIntent intent = getIntent();\n \t\t\t\tNextLevel nextLevel = (NextLevel)intent.getSerializableExtra(ApplicationData.NEXT_LEVEL_TAG);\n \t\t\t\tAppLevelDataItem item = applicationData.getDataItem(this, nextLevel);\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(Utils.hasLength(item.getGeoReferencia())){\n \t\t\t\t\tString urlString = \"http://maps.google.com/maps?q=\" + item.getGeoReferencia() + \"&near=Madrid,Espa�a\";\n \t\t\t\t\tIntent browserIntent = new Intent(\"android.intent.action.VIEW\", \n \t\t\t\t\t\t\tUri.parse(urlString ));\n \t\t\t\t\tstartActivity(browserIntent);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (InvalidFileException e) {\n \t\t}\n \t}", "@Test\n public void TEST_UR_MAP_LENGTH() {\n Object[] objects = loadSave(\"emptyRiver\");\n Map map = (Map) objects[0];\n Player player = (Player) objects[1];\n AI[] opponents = (AI[]) objects[2];\n boolean[] NO_KEYS_PRESSED = {false, false, false, false};\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertFalse(player.hasFinished());\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertTrue(player.hasFinished());\n }", "java.util.Map<java.lang.Integer, java.lang.Integer>\n getInfoMap();", "private void createMapOfSecondType(){\n\n this.typeOfMap=2;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = createSquare( ColorOfFigure_Square.GREEN, true,0,3);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.YELLOW, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.YELLOW, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, false,2,3);\n\n\n }", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "public MapLocation senseLocationOf(GameObject o) throws GameActionException;" ]
[ "0.71264076", "0.6691268", "0.6691268", "0.66180706", "0.6433291", "0.640266", "0.6375225", "0.6335823", "0.6333193", "0.630979", "0.62952524", "0.62952524", "0.62952524", "0.62952524", "0.62952524", "0.62952524", "0.62952524", "0.62952524", "0.62952524", "0.62952524", "0.62952524", "0.62952524", "0.62952524", "0.6241027", "0.61869204", "0.6174302", "0.6167753", "0.6159495", "0.612822", "0.6100614", "0.6064691", "0.6034537", "0.60337806", "0.60184944", "0.5965835", "0.5953482", "0.5951262", "0.59373623", "0.59095925", "0.58995277", "0.5898995", "0.58972806", "0.587282", "0.5868363", "0.58663476", "0.58583826", "0.5858016", "0.58323705", "0.5823449", "0.5822722", "0.58202887", "0.5814204", "0.57999945", "0.57912976", "0.5790706", "0.5789858", "0.5789858", "0.57848936", "0.5782278", "0.57810444", "0.5776356", "0.5765205", "0.5761089", "0.57524085", "0.573908", "0.5733878", "0.57248366", "0.5723815", "0.57177216", "0.57132083", "0.5709902", "0.5709812", "0.5707064", "0.5698407", "0.5691232", "0.5690645", "0.56882834", "0.5679941", "0.56771564", "0.567697", "0.56756914", "0.5674864", "0.56578976", "0.56577057", "0.5655013", "0.5651777", "0.5649884", "0.56445986", "0.5643412", "0.5641558", "0.5640113", "0.5639512", "0.5638154", "0.56303185", "0.5621978", "0.5618661", "0.5608113", "0.55940664", "0.55940664", "0.5593243" ]
0.72805417
0
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static Address createEntity(EntityManager em) { Address address = new Address() .addressLine1(DEFAULT_ADDRESS_LINE_1) .addressLine2(DEFAULT_ADDRESS_LINE_2) .postCode(DEFAULT_POST_CODE); return address; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "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 }", "protected abstract EntityBase createEntity() throws Exception;", "public static TestEntity createEntity(EntityManager em) {\n TestEntity testEntity = new TestEntity();\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n testEntity.setUserOneToMany(user);\n return testEntity;\n }", "void create(T entity) throws Exception;", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "protected T createSimulatedExistingEntity() {\n final T entity = createNewEntity();\n entity.setId(IDUtil.randomPositiveLong());\n\n when(getDAO().findOne(entity.getId())).thenReturn(entity);\n return entity;\n }", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "public static TranshipTube createEntity(EntityManager em) {\n TranshipTube transhipTube = new TranshipTube()\n .status(DEFAULT_STATUS)\n .memo(DEFAULT_MEMO)\n .columnsInTube(DEFAULT_COLUMNS_IN_TUBE)\n .rowsInTube(DEFAULT_ROWS_IN_TUBE);\n // Add required entity\n TranshipBox transhipBox = TranshipBoxResourceIntTest.createEntity(em);\n em.persist(transhipBox);\n em.flush();\n transhipTube.setTranshipBox(transhipBox);\n // Add required entity\n FrozenTube frozenTube = FrozenTubeResourceIntTest.createEntity(em);\n em.persist(frozenTube);\n em.flush();\n transhipTube.setFrozenTube(frozenTube);\n return transhipTube;\n }", "public static Student createEntity(EntityManager em) {\n Student student = new Student()\n .firstName(DEFAULT_FIRST_NAME)\n .middleName(DEFAULT_MIDDLE_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .studentRegNumber(DEFAULT_STUDENT_REG_NUMBER)\n .dateOfBirth(DEFAULT_DATE_OF_BIRTH)\n .regDocType(DEFAULT_REG_DOC_TYPE)\n .registrationDocumentNumber(DEFAULT_REGISTRATION_DOCUMENT_NUMBER)\n .gender(DEFAULT_GENDER)\n .nationality(DEFAULT_NATIONALITY)\n .dateJoined(DEFAULT_DATE_JOINED)\n .deleted(DEFAULT_DELETED)\n .wxtJwtPq55wd(DEFAULT_WXT_JWT_PQ_55_WD);\n // Add required entity\n NextOfKin nextOfKin;\n if (TestUtil.findAll(em, NextOfKin.class).isEmpty()) {\n nextOfKin = NextOfKinResourceIT.createEntity(em);\n em.persist(nextOfKin);\n em.flush();\n } else {\n nextOfKin = TestUtil.findAll(em, NextOfKin.class).get(0);\n }\n student.getRelatives().add(nextOfKin);\n return student;\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT)\n .dateRetour(DEFAULT_DATE_RETOUR);\n // Add required entity\n Usager usager = UsagerResourceIntTest.createEntity(em);\n em.persist(usager);\n em.flush();\n emprunt.setUsager(usager);\n // Add required entity\n Exemplaire exemplaire = ExemplaireResourceIntTest.createEntity(em);\n em.persist(exemplaire);\n em.flush();\n emprunt.setExemplaire(exemplaire);\n return emprunt;\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }", "public ClientEntity newEntity() {\r\n if (entityType == null) {\r\n entityType = getEntityType(entitySet);\r\n }\r\n return odataClient.getObjectFactory().newEntity(new FullQualifiedName(NAMESPAVE, entityType));\r\n }", "ID create(T entity);", "public static MotherBed createEntity(EntityManager em) {\n MotherBed motherBed = new MotherBed()\n .value(DEFAULT_VALUE)\n .status(DEFAULT_STATUS);\n // Add required entity\n Nursery nursery = NurseryResourceIntTest.createEntity(em);\n em.persist(nursery);\n em.flush();\n motherBed.setNursery(nursery);\n return motherBed;\n }", "private FailingEntity createFailingEntity() {\n FailingEntity entity = app.createAndManageChild(EntitySpec.create(FailingEntity.class)\n .configure(FailingEntity.FAIL_ON_START, true));\n return entity;\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity) {\n return super.createEntity(entitySetName, entityKey, navProp, entity);\n }", "public <T extends Entity> T createEntity(EntitySpec<T> spec) {\n Map<String,Entity> entitiesByEntityId = MutableMap.of();\n Map<String,EntitySpec<?>> specsByEntityId = MutableMap.of();\n \n T entity = createEntityAndDescendantsUninitialized(spec, entitiesByEntityId, specsByEntityId);\n initEntityAndDescendants(entity.getId(), entitiesByEntityId, specsByEntityId);\n return entity;\n }", "public static Prestamo createEntity(EntityManager em) {\n Prestamo prestamo = new Prestamo().observaciones(DEFAULT_OBSERVACIONES).fechaFin(DEFAULT_FECHA_FIN);\n // Add required entity\n Libro libro;\n if (TestUtil.findAll(em, Libro.class).isEmpty()) {\n libro = LibroResourceIT.createEntity(em);\n em.persist(libro);\n em.flush();\n } else {\n libro = TestUtil.findAll(em, Libro.class).get(0);\n }\n prestamo.setLibro(libro);\n // Add required entity\n Persona persona;\n if (TestUtil.findAll(em, Persona.class).isEmpty()) {\n persona = PersonaResourceIT.createEntity(em);\n em.persist(persona);\n em.flush();\n } else {\n persona = TestUtil.findAll(em, Persona.class).get(0);\n }\n prestamo.setPersona(persona);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n prestamo.setUser(user);\n return prestamo;\n }", "default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }", "public static Rentee createEntity(EntityManager em) {\n Rentee rentee = new Rentee();\n rentee = new Rentee()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .email(DEFAULT_EMAIL)\n .phoneNumber(DEFAULT_PHONE_NUMBER)\n .password(DEFAULT_PASSWORD);\n return rentee;\n }", "public static Pocket createEntity(EntityManager em) {\n Pocket pocket = new Pocket()\n .key(DEFAULT_KEY)\n .label(DEFAULT_LABEL)\n .startDateTime(DEFAULT_START_DATE_TIME)\n .endDateTime(DEFAULT_END_DATE_TIME)\n .amount(DEFAULT_AMOUNT)\n .reserved(DEFAULT_RESERVED);\n // Add required entity\n Balance balance = BalanceResourceIntTest.createEntity(em);\n em.persist(balance);\n em.flush();\n pocket.setBalance(balance);\n return pocket;\n }", "public static ItemSubstitution createEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(DEFAULT_TIMESTAMP)\n .type(DEFAULT_TYPE)\n .substituteType(DEFAULT_SUBSTITUTE_TYPE)\n .substituteNo(DEFAULT_SUBSTITUTE_NO)\n .description(DEFAULT_DESCRIPTION)\n .isInterchangeable(DEFAULT_IS_INTERCHANGEABLE)\n .relationsLevel(DEFAULT_RELATIONS_LEVEL)\n .isCheckedToOriginal(DEFAULT_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(DEFAULT_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }", "E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;", "public static A createEntity(EntityManager em) {\n A a = new A();\n return a;\n }", "public static Edge createEntity(EntityManager em) {\n Edge edge = new Edge()\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Stone from = StoneResourceIntTest.createEntity(em);\n em.persist(from);\n em.flush();\n edge.setFrom(from);\n // Add required entity\n Stone to = StoneResourceIntTest.createEntity(em);\n em.persist(to);\n em.flush();\n edge.setTo(to);\n return edge;\n }", "public static QuizQuestion createEntity(EntityManager em) {\n QuizQuestion quizQuestion = new QuizQuestion()\n .text(DEFAULT_TEXT)\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Quiz quiz;\n if (TestUtil.findAll(em, Quiz.class).isEmpty()) {\n quiz = QuizResourceIT.createEntity(em);\n em.persist(quiz);\n em.flush();\n } else {\n quiz = TestUtil.findAll(em, Quiz.class).get(0);\n }\n quizQuestion.setQuiz(quiz);\n return quizQuestion;\n }", "public static Partida createEntity(EntityManager em) {\n Partida partida = new Partida()\n .dataPartida(DEFAULT_DATA_PARTIDA);\n return partida;\n }", "public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }", "public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT);\n return emprunt;\n }", "public static SitAndGo createEntity(EntityManager em) {\n SitAndGo sitAndGo = new SitAndGo()\n .format(DEFAULT_FORMAT)\n .buyIn(DEFAULT_BUY_IN)\n .ranking(DEFAULT_RANKING)\n .profit(DEFAULT_PROFIT)\n .bounty(DEFAULT_BOUNTY);\n return sitAndGo;\n }", "public static Exercise createEntity(EntityManager em) {\n Exercise exercise = new Exercise()\n .minutes(DEFAULT_MINUTES);\n return exercise;\n }", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "public static House createEntity(EntityManager em) {\n House house = new House()\n .houseName(DEFAULT_HOUSE_NAME)\n .houseNo(DEFAULT_HOUSE_NO)\n .address(DEFAULT_ADDRESS)\n .houseToFloorNo(DEFAULT_HOUSE_TO_FLOOR_NO)\n .ownToFloorNo(DEFAULT_OWN_TO_FLOOR_NO)\n .lat(DEFAULT_LAT)\n .lon(DEFAULT_LON)\n .createdate(DEFAULT_CREATEDATE)\n .createBy(DEFAULT_CREATE_BY)\n .updateDate(DEFAULT_UPDATE_DATE)\n .updateBy(DEFAULT_UPDATE_BY)\n .image(DEFAULT_IMAGE)\n .imageContentType(DEFAULT_IMAGE_CONTENT_TYPE);\n // Add required entity\n Country country = CountryResourceIntTest.createEntity(em);\n em.persist(country);\n em.flush();\n house.setCountry(country);\n // Add required entity\n State state = StateResourceIntTest.createEntity(em);\n em.persist(state);\n em.flush();\n house.setState(state);\n // Add required entity\n City city = CityResourceIntTest.createEntity(em);\n em.persist(city);\n em.flush();\n house.setCity(city);\n // Add required entity\n Profile profile = ProfileResourceIntTest.createEntity(em);\n em.persist(profile);\n em.flush();\n house.setProfile(profile);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n house.setUser(user);\n return house;\n }", "public static CourtType createEntity(EntityManager em) {\n CourtType courtType = new CourtType()\n .type(DEFAULT_TYPE);\n return courtType;\n }", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "public static Ailment createEntity(EntityManager em) {\n Ailment ailment = new Ailment()\n .name(DEFAULT_NAME)\n .symptoms(DEFAULT_SYMPTOMS)\n .treatments(DEFAULT_TREATMENTS);\n return ailment;\n }", "public static Articulo createEntity(EntityManager em) {\n Articulo articulo = new Articulo()\n .titulo(DEFAULT_TITULO)\n .contenido(DEFAULT_CONTENIDO)\n .fechaCreacion(DEFAULT_FECHA_CREACION);\n return articulo;\n }", "void create(Student entity);", "public static TipoLocal createEntity(EntityManager em) {\n TipoLocal tipoLocal = new TipoLocal()\n .tipo(DEFAULT_TIPO);\n return tipoLocal;\n }", "public static Testtable2 createEntity(EntityManager em) {\n Testtable2 testtable2 = new Testtable2();\n testtable2.setColumn2(DEFAULT_COLUMN_2);\n return testtable2;\n }", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "public static OrderItem createEntity(EntityManager em) {\n OrderItem orderItem = new OrderItem().quantity(DEFAULT_QUANTITY).totalPrice(DEFAULT_TOTAL_PRICE).status(DEFAULT_STATUS);\n return orderItem;\n }", "public static Arrete createEntity(EntityManager em) {\n Arrete arrete = new Arrete()\n .intituleArrete(DEFAULT_INTITULE_ARRETE)\n .numeroArrete(DEFAULT_NUMERO_ARRETE)\n .dateSignature(DEFAULT_DATE_SIGNATURE)\n .nombreAgrement(DEFAULT_NOMBRE_AGREMENT);\n return arrete;\n }", "public static Tenant createEntity() {\n return new Tenant();\n }", "public static MyOrders createEntity(EntityManager em) {\n MyOrders myOrders = new MyOrders();\n return myOrders;\n }", "public static Enseigner createEntity(EntityManager em) {\n Enseigner enseigner = new Enseigner().dateDebut(DEFAULT_DATE_DEBUT).dateFin(DEFAULT_DATE_FIN);\n return enseigner;\n }", "@Test\n public void eventEntityConstructionTest() {\n\n Event event = new EventEntity();\n\n assertThat(event).isNotNull();\n\n }", "public static EnteteVente createEntity(EntityManager em) {\n EnteteVente enteteVente = new EnteteVente()\n .enteteVenteType(DEFAULT_ENTETE_VENTE_TYPE)\n .enteteVenteTotalHT(DEFAULT_ENTETE_VENTE_TOTAL_HT)\n .enteteVenteTotalTTC(DEFAULT_ENTETE_VENTE_TOTAL_TTC)\n .enteteVenteDateCreation(DEFAULT_ENTETE_VENTE_DATE_CREATION);\n return enteteVente;\n }", "public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}", "public static Organizer createEntity(EntityManager em) {\n Organizer organizer = new Organizer()\n .name(DEFAULT_NAME)\n .description(DEFAULT_DESCRIPTION)\n .facebook(DEFAULT_FACEBOOK)\n .twitter(DEFAULT_TWITTER);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n organizer.setUser(user);\n return organizer;\n }", "public static Note createEntity(EntityManager em) {\n Note note = new Note().content(DEFAULT_CONTENT).title(DEFAULT_TITLE).xpos(DEFAULT_XPOS).ypos(DEFAULT_YPOS);\n return note;\n }", "public static FillingGapsTestItem createEntity(EntityManager em) {\n FillingGapsTestItem fillingGapsTestItem = new FillingGapsTestItem()\n .question(DEFAULT_QUESTION);\n return fillingGapsTestItem;\n }", "public Entity build();", "@Test\n public void createQuejaEntityTest() {\n PodamFactory factory = new PodamFactoryImpl();\n QuejaEntity newEntity = factory.manufacturePojo(QuejaEntity.class);\n QuejaEntity result = quejaPersistence.create(newEntity);\n\n Assert.assertNotNull(result);\n QuejaEntity entity = em.find(QuejaEntity.class, result.getId());\n Assert.assertNotNull(entity);\n Assert.assertEquals(newEntity.getName(), entity.getName());\n}", "public abstract boolean create(T entity) throws ServiceException;", "public static Acheteur createEntity(EntityManager em) {\n Acheteur acheteur = new Acheteur()\n .typeClient(DEFAULT_TYPE_CLIENT)\n .nom(DEFAULT_NOM)\n .prenom(DEFAULT_PRENOM)\n .tel(DEFAULT_TEL)\n .cnib(DEFAULT_CNIB)\n .email(DEFAULT_EMAIL)\n .adresse(DEFAULT_ADRESSE)\n .numroBanquaire(DEFAULT_NUMRO_BANQUAIRE)\n .deleted(DEFAULT_DELETED);\n return acheteur;\n }", "public static RoomGenericProduct createEntity(EntityManager em) {\n RoomGenericProduct roomGenericProduct = new RoomGenericProduct()\n .quantity(DEFAULT_QUANTITY)\n .quantityUnit(DEFAULT_QUANTITY_UNIT);\n return roomGenericProduct;\n }", "public static TypeOeuvre createEntity(EntityManager em) {\n TypeOeuvre typeOeuvre = new TypeOeuvre()\n .intitule(DEFAULT_INTITULE);\n return typeOeuvre;\n }", "public static Reservation createEntity(EntityManager em) {\n Reservation reservation = ReservationTest.buildReservationTest(1L);\n //reservation.setUser(User.builder().email(\"adfad\").name(\"\").build());\n return reservation;\n }", "@Test\n public void testNewEntity() throws Exception {\n\n }", "public static Model createEntity(EntityManager em) {\n\t\tModel model = new Model().name(DEFAULT_NAME).type(DEFAULT_TYPE).algorithm(DEFAULT_ALGORITHM)\n\t\t\t\t.status(DEFAULT_STATUS).owner(DEFAULT_OWNER).performanceMetrics(DEFAULT_PERFORMANCE_METRICS)\n\t\t\t\t.modelLocation(DEFAULT_MODEL_LOCATION).featureSignificance(DEFAULT_FEATURE_SIGNIFICANCE)\n\t\t\t\t.builderConfig(DEFAULT_BUILDER_CONFIG).createdDate(DEFAULT_CREATED_DATE)\n\t\t\t\t.deployedDate(DEFAULT_DEPLOYED_DATE).trainingDataset(DEFAULT_TRAINING_DATASET)\n .library(DEFAULT_LIBRARY).project(DEFAULT_PROJECT).version(DEFAULT_VERSION);\n\t\treturn model;\n\t}", "public static ProcessExecution createEntity(EntityManager em) {\n ProcessExecution processExecution = new ProcessExecution()\n .execution(DEFAULT_EXECUTION);\n return processExecution;\n }", "public static Paiement createEntity(EntityManager em) {\n Paiement paiement = new Paiement()\n .dateTransation(DEFAULT_DATE_TRANSATION)\n .montantTTC(DEFAULT_MONTANT_TTC);\n return paiement;\n }", "public static Article createEntity(EntityManager em) {\n Article article = new Article()\n .name(DEFAULT_NAME)\n .content(DEFAULT_CONTENT)\n .creationDate(DEFAULT_CREATION_DATE)\n .modificationDate(DEFAULT_MODIFICATION_DATE);\n return article;\n }", "T makePersistent(T entity);", "void buildFromEntity(E entity);", "public static XepLoai createEntity(EntityManager em) {\n XepLoai xepLoai = new XepLoai()\n .tenXepLoai(DEFAULT_TEN_XEP_LOAI);\n return xepLoai;\n }", "public static Lot createEntity(EntityManager em) {\n Lot lot = new Lot()\n .createdAt(DEFAULT_CREATED_AT)\n .updatedAt(DEFAULT_UPDATED_AT)\n .qte(DEFAULT_QTE)\n .qtUg(DEFAULT_QT_UG)\n .num(DEFAULT_NUM)\n .dateFabrication(DEFAULT_DATE_FABRICATION)\n .peremption(DEFAULT_PEREMPTION)\n .peremptionstatus(DEFAULT_PEREMPTIONSTATUS);\n return lot;\n }", "private MetaEntityImpl createMetaEntity(Class<?> entityType) {\n String className = entityType.getSimpleName();\n MetaEntityImpl managedEntity = new MetaEntityImpl();\n managedEntity.setEntityType(entityType);\n managedEntity.setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setKeySpace(environment.getConfiguration().getKeySpace());\n return managedEntity;\n }", "public TransporteTerrestreEntity createTransporte(TransporteTerrestreEntity transporteEntity) throws BusinessLogicException {\n LOGGER.log(Level.INFO, \"Inicia proceso de creación del transporte\");\n super.createTransporte(transporteEntity);\n\n \n persistence.create(transporteEntity);\n LOGGER.log(Level.INFO, \"Termina proceso de creación del transporte\");\n return transporteEntity;\n }", "public static EmployeeCars createEntity(EntityManager em) {\n EmployeeCars employeeCars = new EmployeeCars()\n .previousReading(DEFAULT_PREVIOUS_READING)\n .currentReading(DEFAULT_CURRENT_READING)\n .workingDays(DEFAULT_WORKING_DAYS)\n .updateDate(DEFAULT_UPDATE_DATE);\n // Add required entity\n Employee employee = EmployeeResourceIT.createEntity(em);\n em.persist(employee);\n em.flush();\n employeeCars.setEmployee(employee);\n // Add required entity\n Car car = CarResourceIT.createEntity(em);\n em.persist(car);\n em.flush();\n employeeCars.setCar(car);\n return employeeCars;\n }", "public static TaskComment createEntity(EntityManager em) {\n TaskComment taskComment = new TaskComment()\n .value(DEFAULT_VALUE);\n // Add required entity\n Task newTask = TaskResourceIT.createEntity(em);\n Task task = TestUtil.findAll(em, Task.class).stream()\n .filter(x -> x.getId().equals(newTask.getId()))\n .findAny().orElse(null);\n if (task == null) {\n task = newTask;\n em.persist(task);\n em.flush();\n }\n taskComment.setTask(task);\n return taskComment;\n }", "public static Personel createEntity(EntityManager em) {\n Personel personel = new Personel()\n .fistname(DEFAULT_FISTNAME)\n .lastname(DEFAULT_LASTNAME)\n .sexe(DEFAULT_SEXE);\n return personel;\n }", "public static Ordre createEntity(EntityManager em) {\n Ordre ordre = new Ordre()\n .name(DEFAULT_NAME)\n .status(DEFAULT_STATUS)\n .price(DEFAULT_PRICE)\n .creationDate(DEFAULT_CREATION_DATE);\n return ordre;\n }", "public static Territorio createEntity(EntityManager em) {\n Territorio territorio = new Territorio().nome(DEFAULT_NOME);\n return territorio;\n }", "@Override\n @LogMethod\n public T create(T entity) throws InventoryException {\n \tInventoryHelper.checkNull(entity, \"entity\");\n repository.persist(entity);\n return repository.getByKey(entity.getId());\n }", "public static Poen createEntity(EntityManager em) {\n Poen poen = new Poen()\n .tip(DEFAULT_TIP);\n return poen;\n }", "public static Expediente createEntity(EntityManager em) {\n Expediente expediente = new Expediente()\n .horarioEntrada(DEFAULT_HORARIO_ENTRADA)\n .horarioSaida(DEFAULT_HORARIO_SAIDA)\n .diaSemana(DEFAULT_DIA_SEMANA);\n return expediente;\n }", "public static Unidade createEntity(EntityManager em) {\n Unidade unidade = new Unidade()\n .descricao(DEFAULT_DESCRICAO)\n .sigla(DEFAULT_SIGLA)\n .situacao(DEFAULT_SITUACAO)\n .controleDeEstoque(DEFAULT_CONTROLE_DE_ESTOQUE)\n .idAlmoxarifado(DEFAULT_ID_ALMOXARIFADO)\n .andar(DEFAULT_ANDAR)\n .capacidade(DEFAULT_CAPACIDADE)\n .horarioInicio(DEFAULT_HORARIO_INICIO)\n .horarioFim(DEFAULT_HORARIO_FIM)\n .localExame(DEFAULT_LOCAL_EXAME)\n .rotinaDeFuncionamento(DEFAULT_ROTINA_DE_FUNCIONAMENTO)\n .anexoDocumento(DEFAULT_ANEXO_DOCUMENTO)\n .setor(DEFAULT_SETOR)\n .idCentroDeAtividade(DEFAULT_ID_CENTRO_DE_ATIVIDADE)\n .idChefia(DEFAULT_ID_CHEFIA);\n // Add required entity\n TipoUnidade tipoUnidade;\n if (TestUtil.findAll(em, TipoUnidade.class).isEmpty()) {\n tipoUnidade = TipoUnidadeResourceIT.createEntity(em);\n em.persist(tipoUnidade);\n em.flush();\n } else {\n tipoUnidade = TestUtil.findAll(em, TipoUnidade.class).get(0);\n }\n unidade.setTipoUnidade(tipoUnidade);\n return unidade;\n }", "public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.position.y, entity.position.z, (float) -entity.angles.y, (float) entity.angles.x);\r\n\t\tbuilder.entity = entity;\r\n\t\tworld.spawnEntity(builder);\r\n }", "private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }", "public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }", "@Test\n public void testNewEntity_0args() {\n // newEntity() is not implemented!\n }", "public Camp newEntity() { return new Camp(); }", "public static NoteMaster createEntity(EntityManager em) {\n NoteMaster noteMaster = new NoteMaster()\n .semestre(DEFAULT_SEMESTRE)\n .noteCC1(DEFAULT_NOTE_CC_1)\n .noteCC2(DEFAULT_NOTE_CC_2)\n .noteFinal(DEFAULT_NOTE_FINAL)\n .date(DEFAULT_DATE);\n return noteMaster;\n }", "T create() throws PersistException;", "private EntityDef createEntityDef(Class<?> entityClass)\n {\n\t\tif (entityClass.isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass.SingleTableSuperclass(entityClass);\n } else if (entityClass.getSuperclass().isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass(entityClass);\n } else {\n return new EntityDef(entityClass);\n }\n\t}", "public static Restaurant createEntity(EntityManager em) {\n Restaurant restaurant = new Restaurant()\n .restaurantName(DEFAULT_RESTAURANT_NAME)\n .deliveryPrice(DEFAULT_DELIVERY_PRICE)\n .restaurantAddress(DEFAULT_RESTAURANT_ADDRESS)\n .restaurantCity(DEFAULT_RESTAURANT_CITY);\n return restaurant;\n }", "@Override\n\tpublic EmploieType creer(EmploieType entity) throws InvalideTogetException {\n\t\treturn emploieTypeRepository.save(entity);\n\t}", "public static Team createEntity(EntityManager em) {\n Team team = new Team().name(DEFAULT_NAME).description(DEFAULT_DESCRIPTION)\n .level(DEFAULT_LEVEL).totalMember(DEFAULT_TOTAL_MEMBER)\n .extraGroupName(DEFAULT_EXTRA_GROUP_NAME)\n .extraGroupDescription(DEFAULT_EXTRA_GROUP_DESCRIPTION)\n .extraGroupTotalMember(DEFAULT_EXTRA_GROUP_TOTAL_MEMBER);\n return team;\n }", "public void constructEntity (EntityBuilder entityBuilder, Position position){\n entityBuilder.createEntity();\n entityBuilder.buildPosition(position);\n entityBuilder.buildName();\n entityBuilder.buildPosition();\n entityBuilder.buildContComp();\n entityBuilder.buildPhysComp(length, width);\n entityBuilder.buildGraphComp(length, width);\n }", "public static Produit createEntity(EntityManager em) {\n Produit produit = new Produit()\n .designation(DEFAULT_DESIGNATION)\n .soldeInit(DEFAULT_SOLDE_INIT)\n .prixAchat(DEFAULT_PRIX_ACHAT)\n .prixVente(DEFAULT_PRIX_VENTE)\n .quantiteDispo(DEFAULT_QUANTITE_DISPO)\n .quantiteInit(DEFAULT_QUANTITE_INIT)\n .seuilReaprov(DEFAULT_SEUIL_REAPROV)\n .reference(DEFAULT_REFERENCE);\n return produit;\n }" ]
[ "0.7722264", "0.75040513", "0.748753", "0.7361405", "0.73142624", "0.71556175", "0.71556175", "0.715107", "0.7150143", "0.70781684", "0.7016357", "0.6802997", "0.6752251", "0.67394024", "0.67394024", "0.67115676", "0.66812336", "0.666615", "0.66396314", "0.662428", "0.6624199", "0.6606221", "0.6588361", "0.6573994", "0.65736717", "0.65666395", "0.6551675", "0.65304965", "0.65289974", "0.6481157", "0.64204335", "0.63864064", "0.6375566", "0.63674325", "0.63139534", "0.62975836", "0.6293727", "0.6258027", "0.62457675", "0.62426347", "0.62399447", "0.6218748", "0.62089634", "0.61815816", "0.61813337", "0.61745787", "0.6170041", "0.6163296", "0.61606807", "0.61586446", "0.6154558", "0.6149961", "0.6142545", "0.61367345", "0.6134683", "0.613034", "0.612388", "0.6121389", "0.6106778", "0.6106037", "0.61039126", "0.60924363", "0.60915995", "0.6081501", "0.60738105", "0.60689884", "0.6066682", "0.60659444", "0.60633034", "0.6057644", "0.6050991", "0.60410213", "0.60377616", "0.60322267", "0.6027247", "0.6021898", "0.602063", "0.6019853", "0.60150135", "0.60139936", "0.60131437", "0.6002246", "0.6001604", "0.60013616", "0.6000553", "0.59955037", "0.5993617", "0.5980938", "0.5977444", "0.59742457", "0.59741473", "0.5967026", "0.5963095", "0.59629875", "0.5952821", "0.5945231", "0.5943624", "0.5942097", "0.59369785", "0.5930378", "0.59300846" ]
0.0
-1
/ Initialise button and editTexts record text from editTexts when button is clicked and end the activity
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); username = getIntent().getStringExtra("Username"); Log.e("FridgeActivity", username); getSupportActionBar().setTitle("Insert Food Into Fridge"); getSupportActionBar().setDisplayHomeAsUpEnabled(true); setContentView(R.layout.fridge_activity); fridgeItems = Fridge.getFridgeItems(); submitItem = (Button) findViewById(R.id.fridge_submit_item); datePicker = (Button) findViewById(R.id.date_picker); foodNameInput = (EditText) findViewById(R.id.food_name_input); dateView = (TextView) findViewById(R.id.show_date); submitItem.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { foodNameString = foodNameInput.getText().toString(); if (foodNameString.isEmpty()) { foodNameInput.setError("\"Food\" cannot be empty."); Toast.makeText(getApplicationContext(), "Please fill in the necessary fields.", Toast.LENGTH_SHORT).show(); } else { Toast.makeText(getApplicationContext(), "Item added into fridge.", Toast.LENGTH_SHORT).show(); addItemToList(foodNameString, cookedDateString); // Fridge fridgeFragment = (Fridge) getSupportFragmentManager().findFragmentByTag("FridgeTag"); // FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); // ft.detach(fridgeFragment); // ft.attach(fridgeFragment); // ft.commit(); startFoodNotification(); finish(); } } }); datePicker.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { pickDate(view); } }); dateView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { pickDate(v); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.sub);\r\n \r\n Bundle extras = getIntent().getExtras(); \r\n \r\n final EditText text = (EditText)findViewById(R.id.EditText01);\r\n \r\n text.setText(extras.getCharSequence(TEXT_PARAM));\r\n\r\n Button buttonOK = (Button)findViewById(R.id.Button01);\r\n buttonOK.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tintent.putExtra(TEXT_RESULT, text.getText());\r\n\t\t\t\tsetResult(RESULT_OK, intent);\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t});\r\n \r\n Button buttonCancel = (Button)findViewById(R.id.Button02);\r\n buttonCancel.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tsetResult(RESULT_CANCELED);\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t});\r\n \r\n }", "public void onClick(View v) {\n\t\t\t\t((EditText) findViewById(R.id.d4et1)).setText(\"\");\r\n\t\t\t\t((EditText) findViewById(R.id.d4et2)).setText(\"\");\r\n\t\t\t\t((Button) findViewById(R.id.d4date1)).setText(\"DD/MM/YY\");\r\n\t\t\t\t((Button) findViewById(R.id.d4date2)).setText(\"DD/MM/YY\");\r\n\t\t\t\t((EditText) findViewById(R.id.d4et4)).setText(\"\");\r\n\t\t\t\t\r\n\t\t\t\tSharedPreferences.Editor editor = getPreferences(0).edit();\r\n\t\t\t\tString s=extractedsample.getText().toString();\r\n\t\t\t\teditor.putString(\"Name\", s);\r\n\t\t\t\tString s1=primerpair.getText().toString();\r\n\t\t\t\teditor.putString(\"Name1\", s1);\r\n\t\t\t\tString s2=date1.getText().toString();\r\n\t\t\t\teditor.putString(\"Name2\", s2);\r\n\t\t\t\tString s3=successfull.getText().toString();\r\n\t\t\t\teditor.putString(\"Name3\", s3);\r\n\t\t\t\tString s4=date2.getText().toString();\r\n\t\t\t\teditor.putString(\"Name4\", s4);\r\n\t\t\t\tString s5=tbtn.getText().toString();\r\n\t\t\t\teditor.putString(\"Name5\", s5);\r\n\t\t\t\teditor.commit();\r\n\t\t\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tIntent intent;\n\t\tswitch (v.getId()) {\n\t\tcase R.id.btn_myresume_edit_back:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tcase R.id.layout_myresume_edit_project_experience:\n\t\t\tintent = new Intent(MyresumeEditActivity.this, ProjectExperienceListActivity.class);\n\t\t\tintent.putExtra(\"uid\", \"\"+uid);\n\t\t\tintent.putExtra(\"writeable\", \"\"+0);\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\t\tcase R.id.tv_myresume_edit_save:\n\t\tcase R.id.btn_myresume_edit_save:\n\t\t\tcomStr = etMyresumeEditCompany.getText().toString();\n\t\t\tcontactStr = myresumeEditContact.getText().toString();\n\t\t\tmobileStr = myresumeEditMobile.getText().toString();\n\t\t\tqqStr = myresumeEditQQ.getText().toString();\n\t\t\temailStr = myresumeEditEmail.getText().toString();\n//\t\t\tjobStr = myresumeEditJob.getText().toString();\n//\t\t\texperienceStr = myresumeEditExperience.getText().toString();\n\t\t\taddressStr = myresumeEditAddress.getText().toString();\n\t\t\tidnumberStr = myresumeEditIdnumber.getText().toString();\n\t\t\tintroduceStr = myresumeEditIntroduce.getText().toString();\n\t\t\tif (resumeType == 2) {\n\t\t\t\tif (\"\".equals(comStr)) {\n\t\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入企业名称\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (\"\".equals(contactStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入联系人姓名\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(mobileStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入手机号码\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(qqStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入联系QQ\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(emailStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入联系E-mail\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t}\n//\t\t\telse if (\"\".equals(jobStr)) {\n//\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入职业状态\",\n//\t\t\t\t\t\tToast.LENGTH_LONG).show();\n//\t\t\t\tbreak;\n//\t\t\t}\n\t\t\telse if (\"\".equals(experienceStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入行业经验\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(addressStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入通讯地址\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(idnumberStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入证件号码\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (resumeType == 1 && idnumberStr.length() != 18) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"身份证号位数不正确,请重新输入\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (resumeType == 2 && idnumberStr.length() != 15) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"营业执照号位数不正确,请重新输入\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t} else if (\"\".equals(introduceStr)) {\n\t\t\t\tToast.makeText(MyresumeEditActivity.this, \"请输入自我介绍\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpd = new ProgressDialog(MyresumeEditActivity.this);\n\t\t\tpd.setMessage(\"请稍后…\");\n\t\t\tpd.show();\n\t\t\tList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n\t\t\t\n\t\t\tparams.add(new BasicNameValuePair(\"uid\", \"\"+uid));\n\t\t\tparams.add(new BasicNameValuePair(\"type\", \"\"+resumeType));\n\t\t\tparams.add(new BasicNameValuePair(\"comname\", comStr));\n\t\t\tparams.add(new BasicNameValuePair(\"linkname\", contactStr));\n\t\t\tparams.add(new BasicNameValuePair(\"mobile\", mobileStr));\n\t\t\tparams.add(new BasicNameValuePair(\"qq\", qqStr));\n\t\t\tparams.add(new BasicNameValuePair(\"email\", emailStr));\n\t\t\tparams.add(new BasicNameValuePair(\"status\", \"\"+status));\n\t\t\tparams.add(new BasicNameValuePair(\"workinglife\", experienceStr));\n\t\t\tparams.add(new BasicNameValuePair(\"address\", addressStr));\n\t\t\tparams.add(new BasicNameValuePair(\"idcardno\", idnumberStr));\n\t\t\tparams.add(new BasicNameValuePair(\"description\", introduceStr));\n\t\t\tparams.add(new BasicNameValuePair(\"goodin_item_num\", \"\"+(mArray.size() - 1)));\n\t\t\n\t\t\tfor(int i = 0; i < (mArray.size() - 1); i++){\n\t\t\t\tparams.add(new BasicNameValuePair(\"goodin_item\"+(i+1), \"\"+mArray.get(i).get(\"id\")));\n\t\t\t}\n\t\t\tnew Thread(new ConnectPHPToGetJSON(URL_ADDRESUME, handler, params))\n\t\t\t\t\t.start();\n\t\t\tbreak;\n\t\t}\n\t}", "private void initButtons() {\n btnNoteAdd.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n LayoutInflater li = LayoutInflater.from(MainActivity.this);\n View promptsView = li.inflate(R.layout.alertdiag_noteadd, null);\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n MainActivity.this);\n alertDialogBuilder.setView(promptsView);\n final EditText userInput = promptsView\n .findViewById(R.id.etAlertdiagNoteadd);\n\n // set dialog message\n alertDialogBuilder\n .setCancelable(false)\n .setPositiveButton(R.string.noteadd_pos_button,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n moodComment = userInput.getText().toString();\n currentMood.setTodaysNote(moodComment);\n }\n })\n .setNegativeButton(R.string.noteadd_neg_button,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n // create alert dialog & show\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }\n });\n // if clicking button History\n btnHistory.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), HistoryActivity.class);\n startActivity(intent);\n }\n });\n }", "public void doneClicked(View view)\n {\n EditText locationName = (EditText) findViewById(R.id.nameInput);\n EditText locationDesc = (EditText) findViewById(R.id.descInput);\n EditText locationCat = (EditText) findViewById(R.id.categoryInput);\n EditText locAddrTitle = (EditText) findViewById(R.id.addrTitleInput);\n EditText locAddrStreet = (EditText) findViewById(R.id.addrStreetInput);\n EditText locElevation = (EditText) findViewById(R.id.elevationInput);\n EditText locLatitude = (EditText) findViewById(R.id.latitudeInput);\n EditText locLongitude = (EditText) findViewById(R.id.longitudeInput);\n\n // Validate input\n if (!validEntry())\n {\n createStatusDialog(getResources().getString(R.string.create_title_fail),\n getResources().getString(R.string.create_msg_fail));\n }\n else\n {\n // Retrieve values from fields\n String name = locationName.getText().toString().trim();\n String description = locationDesc.getText().toString().trim();\n String category = locationCat.getText().toString().trim();\n String addrTitle = locAddrTitle.getText().toString().trim();\n String addrStreet = locAddrStreet.getText().toString().trim();\n float elevation = Float.parseFloat(locElevation.getText().toString().trim());\n float latitude = Float.parseFloat(locLatitude.getText().toString().trim());\n float longitude = Float.parseFloat(locLongitude.getText().toString().trim());\n\n // Generate place\n currentPlace = new PlaceDescription(name, description, category, addrTitle, addrStreet,\n elevation, latitude, longitude, currentPlace.id);\n\n // Add intent data and start activity\n Intent intent = new Intent(PlaceActivity.this, LibViewActivity.class);\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"place\", currentPlace);\n intent.putExtras(bundle);\n intent.putExtra(\"edit\", edit);\n startActivity(intent);\n }\n }", "@Override\n public void onClick(View v) {\n //EditText vacìo.\n\n etCardName.setText(\"\");\n etCardCVV.setText(\"\");\n etCardNumber.setText(\"\");\n etCardValidThru.setText(\"\"); //esperame miro el codigo\n\n Toast.makeText(getApplicationContext(),\"Pagado Exitosamente\",Toast.LENGTH_SHORT).show();\n Toast.makeText(getApplicationContext(),\"Brindanos tus Comentarios Para Nuestras Mejoras\",Toast.LENGTH_SHORT).show();\n //aqui pegas el codigo para abrir la otra activity\n startActivity(new Intent(Pago.this,Coomentarios.class));\n finish();\n\n\n//si ya sale amigo solo le agregare un evento mas q me envie a una nueva actividad desde el mismo si\n\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tquestionTxt = (EditText)findViewById(R.id.question);\n\t\t\t finish();\n\t\t\t}", "@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\r\n\t\t\r\n\t\tcase R.id.bSQLUpdate:\r\n\t\t\tboolean did=true;\r\n\t\t\ttry{\r\n\t\t\t\tString name=sqlName.getText().toString();\r\n\t\t\t\tString detail=sqlDetail.getText().toString();\r\n\t\t\t\tString date=sqlDate.getText().toString();\r\n\t\t\t\tString location=sqlLocation.getText().toString();\r\n\t\t\t\tString year=sqlYear.getText().toString();\r\n\t\t\t\tString year1=sqlYear1.getText().toString();\r\n\t\t\t\tint a=name.length();\r\n\t\t\t\tint b=5/a;\r\n\t\t\t\ta=detail.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=date.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=location.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=year.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=year1.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\t\r\n\t\t\t\tData entry=new Data(SQLexample.this);\r\n\t\t\tentry.open();\r\n\t\t\tentry.createEntry(name,detail,date,location,year,year1);\r\n\t\t\tentry.close();\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tdid=false;\r\n\t\t\t\t/*String error=e.toString();\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"Error\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(error);\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();*/\r\n\t\t\t\t\r\n\t\t\t}finally{\r\n\t\t\t\tif(did){\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"ok\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(\"Data Entered Successfully\");\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();}\r\n\t\t\telse{\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"alert\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(\"Fill all the fields**\");\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase R.id.bSQLopenView:\r\n\t\t\tIntent i=new Intent(SQLexample.this,SQLView.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t}", "@Override\r\n\t\tpublic void onClick(View view) {\n\t\t\ttry {\r\n\r\n\t\t\t\tString ad = editText01.getText().toString().trim();\r\n\t\t\t\tString we = editText02.getText().toString().trim();\r\n\t\t\t\tString fe = editText03.getText().toString().trim();\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * ContentValues类似于Map,相对于Map,它提供了存取数据对应的put(String key, Xxx\r\n\t\t\t\t * value)和getAsXxx(String key)方法,\r\n\t\t\t\t * key为字段名称,value为字段值,Xxx指的是各种常用的数据类型,如:String、Integer等。\r\n\t\t\t\t * ContentValues是用于数据库中存放数据的类,也是采用的键值对来存放数据的,\r\n\t\t\t\t * 有点类似content和bundle等。 该构造函数是建立一个默认大小的空的数据集。\r\n\t\t\t\t */\r\n\r\n\t\t\t\tContentValues values = new ContentValues();\r\n\t\t\t\tvalues.put(\"address\", ad);\r\n\t\t\t\tvalues.put(\"weather\", we);\r\n\t\t\t\tvalues.put(\"feeling\", fe);\r\n\r\n\t\t\t\tdatabase.insert(\"test\", null, values);\r\n\r\n\t\t\t\tToast.makeText(MainActivity.this, \"添加成功!!!\", Toast.LENGTH_SHORT).show();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tif (database!=null) {//只有数据库不为空才可以关闭,不然会抛出空指针异常\r\n\t\t\t\t\tdatabase.close();//关闭数据库\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "@Override\n public void onClick(View v) {\n GREETER=edit.getText().toString();\n\n //Acceder al segundo Activity y mandarle un string\n Intent intent=new Intent(MainActivity.this,SecondActivity.class);\n intent.putExtra(\"greeter\",GREETER); //ID + dato a enviar a Second Acitivty\n startActivity(intent);\n }", "private void submitButton() {\n Button submitButton = (Button) findViewById(R.id.activity_one_submit_button); // submit button declaration\n submitButton.setOnClickListener(new View.OnClickListener() //set listener for submit button\n {\n @Override\n public void onClick(View view) {\n EditText name = (EditText) findViewById(R.id.activity_one_name_editText); //name EditText declaration\n EditText email = (EditText) findViewById(R.id.activity_one_email_editText);//phone EditText declaration\n EditText phone = (EditText) findViewById(R.id.activity_one_number_editText);// email EditText declaration\n Spinner spinner = (Spinner) findViewById(R.id.activity_one_phonetype_spinner);//phone type Spinner declaration\n\n String namevalue = name.getText().toString();//get the name EditText value\n String emailvalue = email.getText().toString();//get the email EditText value\n String phonevalue = phone.getText().toString();//get the phone number EditText value\n String spinnerselection = spinner.getSelectedItem().toString(); //get the phone type Spinner selection\n\n Intent intent = new Intent(ActivityOne.this, ActivityTwo.class); //go to activity two\n intent.putExtra(Constants.NAME, namevalue); //store intent from name EditText\n intent.putExtra(Constants.EMAIL, emailvalue);//store intent from email EditText\n intent.putExtra(Constants.PHONE, phonevalue);//store intent from phone EditText\n intent.putExtra(Constants.PHONE_SPINNER, spinnerselection);//store intent from phone type Spinner\n startActivityForResult(intent, Constants.DATA_ENTERED); //start activity two with textviews replaced with intent from activity one\n\n }\n });\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tif(v==btnnext)\n\t\t{\n\t\t\tstitle =edittitle.getText().toString().trim();\n\t\t\tsdesc =editdesc.getText().toString().trim();\n\t\t\tsrent =editrent.getText().toString().trim();\n\t\t\tscontact =editcontact.getText().toString().trim();\n\t\t\t\n\t\t\tselectedarea = spinArea.getSelectedItemPosition();\n\t\t\t\n\t\t\tif(stitle.equals(\"\"))\n\t\t\t{\n\t\t\t\tedittitle.setError(\"Enter Title\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(sdesc.equals(\"\"))\n\t\t\t{\n\t\t\t\teditdesc.setError(\"Enter Description\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(selectedarea==0)\n\t\t\t{\n\t\t\t\tToast.makeText(AddFoodAdvActivity.this,\"Select Area\",Toast.LENGTH_SHORT).show();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(srent.equals(\"\"))\n\t\t\t{\n\t\t\t\teditrent.setError(\"Enter Rent\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if(scontact.equals(\"\"))\n\t\t\t{\n\t\t\t\teditcontact.setError(\"Enter Contact No\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsarea = AreaList.get(selectedarea-1).getArea_ID().toString().trim();\n\t\t\t\t\n\t\t\t\tif(!sarea.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tnew PostWaterAdv().execute();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t}\n\t}", "@Override\n\tpublic void onClick(View v) {\n\n\t\tString inputText_1 = edit_1.getText().toString();\n\t\tString inputText_2 = edit_2.getText().toString();\n\t\tString inputText_3 = edit_3.getText().toString();\n\t\tif(inputText_1.length() == 0 || inputText_2.length() == 0|| inputText_3.length() == 0)\n\t\t{\n\t\t\tToast.makeText(SetActivity.this,\"输入不能为空\",Toast.LENGTH_SHORT).show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tIntent intent = new Intent();\n\t\tintent.putExtra(\"data\",inputText_1+\"#\"\n\t\t\t\t+inputText_2+\"#\"\n\t\t\t\t+inputText_3);\n\t\t\n\t\t\n\t\tsetResult(RESULT_OK,intent);\n\t\tfinish();\n\t\t\n\t\t\n\t\t\n\t\t\n//\t\tfloat\tnum_1\t= Float.parseFloat(inputText_1);\n//\t\tfloat\tnum_2\t= Float.parseFloat(inputText_2);\n//\t\tfloat\tnum_3\t= Float.parseFloat(inputText_3);\n\t\t\n\t\t\n//\t\tswitch(v.getId()){\n//\t\tcase R.id.button_add:\n//\t\t\t\n//\t\t\t\n//\t\t\tint sum \t= num_1 + num_2;\n//\t\t\ttextView.setText(String.valueOf(sum));\n//\t\t\tToast.makeText(MainActivity.this,String.valueOf(sum),Toast.LENGTH_SHORT).show();\n//\t\t\tbreak;\n//\t\tcase R.id.button_sub:\n//\t\t\t\n//\t\t\t\n//\t\t\tint value \t= num_1 - num_2;\n//\t\t\ttextView.setText(String.valueOf(value));\n//\t\t\tToast.makeText(MainActivity.this,String.valueOf(value),Toast.LENGTH_SHORT).show();\n//\t\t\tbreak;\n//\t\tdefault:\n\t\t\n\t\t\n\t\t\n\t}", "protected void onCreate(Bundle savedInstanceState) {\n\tsuper.onCreate(savedInstanceState);\r\n\tsetContentView(R.layout.input_med);\r\n\tButton submit=(Button)findViewById(R.id.button1);\r\n\t\r\n\t//Toast.makeText(getApplicationContext(), \r\n // a, Toast.LENGTH_LONG).show();\r\n\tsubmit.setOnClickListener(new View.OnClickListener() {\r\n\t\t\r\n\t\t@Override\r\n\t\tpublic void onClick(View v) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tdrug=(EditText)findViewById(R.id.editText1);\r\n\t\t\tabc=drug.getText().toString();\r\n\t\t\tToast.makeText(getApplicationContext(), \r\n\t\t abc, Toast.LENGTH_LONG).show();\r\n\t\t\tIntent intent3=new Intent(Input_Med.this,Med_Info.class);\r\n\t\t\tintent3.putExtra(\"drug\", abc);\r\n\t\t\tstartActivity(intent3);\r\n\t\t\t\r\n\t\t}\r\n\t});\r\n}", "@Override\n public void onClick(View v) {\n if (etOne.getText().toString().trim().equalsIgnoreCase(\"\") ||\n etTwo.getText().toString().trim().equalsIgnoreCase(\"\")){\n Toast.makeText(SettingsActivity.this, \"Custom messages cannot be empty\", Toast.LENGTH_SHORT).show();\n }\n //use .comit() to save onto app's SharedPreferences\n else {\n saveBtn.setVisibility(View.INVISIBLE);\n etOne.setVisibility(View.INVISIBLE);\n etTwo.setVisibility(View.INVISIBLE);\n tvOne.setVisibility(View.INVISIBLE);\n tvTwo.setVisibility(View.INVISIBLE);\n editBtn.setEnabled(true);\n editBtn.setVisibility(View.VISIBLE);\n\n SharedPreferences sharedPref = getSharedPreferences(\"pref\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"value1\", etOne.getText().toString());\n editor.putString(\"value2\", etTwo.getText().toString());\n editor.commit();\n Toast.makeText(SettingsActivity.this, \"Custom messages saved\", Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tBoolean isBlank=false;\n\t\t\t\t\n\t \tint ldi=0;\n\t \tint rdi=0;\n\t \tDouble bqi=0.0;\n\t \tDouble eqi=0.0;\n\t \tString note=\"\";\n\t \tTimestamp timeStamp=null;\n\t \t\n\t\t\t\t\t\t\n\t\t\t\t\tif(mPickedTimeText!=null)\n\t \t{\n\t\t\t\t\t\tif(timeChanged)\n\t\t\t\t\t\t{\tif(newDate!=null)\n\t\t\t\t\t\t\t\ttimeStamp=new Timestamp(newDate.getTime());\n\t\t\t\t\t\t}\n\t \t\telse\n\t \t\t{\t//Long now = Long.valueOf(System.currentTimeMillis());\n\t \tif(mState==STATE_INSERT)\n\t \t\ttimeStamp=new Timestamp(preSetTime.getTime());\n\t \tif(mState==STATE_EDIT)\n\t \t\ttimeStamp=savedTS;\n\t \t\t}\n\t \t\t\n\t \t}\n\t\t\t\t\n\t\t\t\t\tif(ldEdit!=null)\n\t \t{\tString lds=ldEdit.getText().toString();\n\t \t\tldi= InputsValidation.intValidation(lds);\n\t \t\t//Log.i(\"onClicked-rb:\",\"rb1\");\n\t \t}\n\t \n\t \t\n\t \tif(rdEdit!=null)\n\t \t{\tString rds=rdEdit.getText().toString();\n\t \t\trdi= InputsValidation.intValidation(rds);\n\t \t\t//Log.i(\"onClicked-rb:\",\"rb2\");\n\t \t}\n\t \n\t \n\t \tif(bqEdit!=null)\n\t \t{\n\t \t\tif(bqChanged)\n\t \t\t{\n\t\t \t\tString bqs=bqEdit.getText().toString();\n\t\t \t\t\n\t\t \t\tbqi= (double) InputsValidation.doubleValidation(bqs);\n\t\t \t\tif(vup.equalsIgnoreCase(\"2\"))\n\t\t \t\t\t{\n\t\t \t\t\tbqi=bqi*30.00;\n\t\t \t\t\t}\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\tbqi=bqSaved;\n\t \t\t}\n\t \t\t\n\t \t}\n\t \tif(eqEdit!=null)\n\t \t{\n\t \t\tif(eqChanged)\n\t \t\t{\n\t\t \t\tString eqs=eqEdit.getText().toString();\n\t\t \t\teqi= (double) InputsValidation.doubleValidation(eqs);\n\t\t \t\tif(vup.equalsIgnoreCase(\"2\"))\n\t\t \t\t\t{\n\t\t \t\t\teqi=eqi*30.00;\n\t\t \t\t\t}\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\teqi=eqSaved;\n\t \t\t}\n\t \t}\n\t \t\n\t \t\n\t \tFeed feed=new Feed(timeStamp, ldi, rdi, bqi, eqi, note);\n\t \t\n\t \tupdateEvent(feed);\n\t \tsetResult(RESULT_OK);\t\n\t \tfinish();\n\t\t\t\t}", "@Override\n public void onClick(View v) {\n String question = newQuestion.getText().toString();\n String opt1 = option1.getText().toString();\n String opt2 = option2.getText().toString();\n\n // Checks that all fields are filled before continuing.\n if (question.equals(\"\") || opt1.equals(\"\") || opt2.equals(\"\")) {\n // Displays Toast if at least one field is empty.\n Toast.makeText(SurveyActivity.this, \"Please fill in all fields before submitting\", Toast.LENGTH_SHORT).show();\n } else {\n // Creates new Intent to return to MainActivity.\n Intent surveyIntent = new Intent();\n // Adds string values to Extra.\n surveyIntent.putExtra(EXTRA_FROM_SURVEY_QUESTION, question);\n surveyIntent.putExtra(EXTRA_FROM_SURVEY_OPT1, opt1);\n surveyIntent.putExtra(EXTRA_FROM_SURVEY_OPT2, opt2);\n setResult(RESULT_OK, surveyIntent);\n finish();\n }\n }", "private void setupView()\n\t{\n\t\tnameET = (EditText)findViewById(R.id.newPlaceName);\n\t\taddressET = (EditText)findViewById(R.id.placeAddress);\n\t\tcityET = (EditText)findViewById(R.id.cityET);\n\t\t\n\t\tView b = findViewById(R.id.placeBtnCancel);\n\t\tb.setOnTouchListener(TOUCH);\n\t\tb.setOnClickListener(this);\n\n\t\tView b2 = findViewById(R.id.btnAcceptPlace);\n\t\tb2.setOnTouchListener(TOUCH);\n\t\tb2.setOnClickListener(new View.OnClickListener() {\n\t\t @Override\n\t\t public void onClick(View v) {\n\t\t \tplacename = nameET.getText().toString();\n\t\t \tplaceaddress = addressET.getText().toString();\n\t\t \tplacecity = cityET.getText().toString();\n\t\t \tif(placename.equals(\"\") || placeaddress.equals(\"\") || placecity.equals(\"\")){\n\t\t \t\tToast.makeText(context, \"Fill in all fields!\", Toast.LENGTH_SHORT).show();\n\t\t \t\tfinish();\n\t\t \t\treturn;\n\t\t \t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tList<Address> list = gc.getFromLocationName(placeaddress + placecity, 1);\n\t\t\t\t\tif(list.size() == 0){\n\t\t\t \t\tToast.makeText(context, \"Place does not exist!\", Toast.LENGTH_SHORT).show();\n\t\t\t \t\tfinish();\n\t\t\t \t\treturn;\n\t\t\t \t}\n\t\t\t\t\tAddress add = list.get(0);\n\t\t\t\t\tDouble lat = add.getLatitude();\n\t\t\t\t\tDouble lng = add.getLongitude();\n\t\t\t\t\tPlace p = new Place(placename, placeaddress, placecity, ID, String.valueOf(lat), String.valueOf(lng));\n\t\t\t\t\tcurrentMember.addPlace(p);\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnew UpdatePlaceTask(lat, lng).execute().get();\n\t\t\t\t\t\tInputMethodManager imm =(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t\t\t\t\timm.hideSoftInputFromWindow(cityET.getWindowToken(),0);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t }\n\t\t});\n\t}", "private void InitView() {\n\t\toldpwd = (EditText) findViewById(R.id.oldpwd);\r\n\t\tnewpwdet = (EditText) findViewById(R.id.newpwdet);\r\n\t\tpwdconfirmet = (EditText) findViewById(R.id.pwdconfirmet);\r\n\t\tsubbtn = (Button) findViewById(R.id.subbtn);\r\n\t\tintent = getIntent();\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n Button button1;\n Button button2;\n Button button3;\n\n button1 = (Button)findViewById(R.id.actOneButton);\n button2 = (Button)findViewById(R.id.actTwoButton);\n button3 = (Button)findViewById(R.id.actThreeButton);\n\n final EditText num1Text = (EditText)findViewById(R.id.num1Text);\n final EditText num2Text = (EditText)findViewById(R.id.num2Text);\n final EditText num3Text = (EditText)findViewById(R.id.num3Text);\n final EditText num4Text = (EditText)findViewById(R.id.num4Text);\n final EditText num5Text = (EditText)findViewById(R.id.num5Text);\n\n button1.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view){\n int num1 = 100;\n int num2 = 400;\n int num3 = 300;\n int num4 = 50;\n int num5 = 102;\n\n Intent intent = new Intent(Activity_main.this, Activity_one.class);\n\n Bundle dataBundle = new Bundle();\n dataBundle.putInt(\"num1\", num1);\n dataBundle.putInt(\"num2\", num2);\n dataBundle.putInt(\"num3\", num3);\n dataBundle.putInt(\"num4\", num4);\n dataBundle.putInt(\"num5\", num5);\n\n intent.putExtras(dataBundle);\n startActivityForResult(intent, 1010);\n }\n });\n\n button2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String[] data = new String[5];\n\n //cater for blank strings\n\n //get input from text areas\n data[0] = num1Text.getText().toString();\n data[1] = num2Text.getText().toString();\n data[2] = num3Text.getText().toString();\n data[3] = num4Text.getText().toString();\n data[4] = num5Text.getText().toString();\n for(int i = 0; i < data.length; i ++){\n if (data[i].compareTo(\"\")==0) {\n data[i] = \"0\";\n }\n }\n Bundle dataBundle = new Bundle();\n dataBundle.putStringArray(\"data\",data);\n Intent intent = new Intent(Activity_main.this, Activity_two.class);\n\n intent.putExtras(dataBundle);\n startActivityForResult(intent, 2020);\n }\n });\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsuper.setContentView(R.layout.activity_addps_xqyz);\r\n\t\tbtnBack = (Button) findViewById(R.id.btnBack);\r\n\t\tbtnBack.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tAddPsXqyzActivity.this.finish();\r\n\t\t\t}\r\n\t\t});\r\n\t\tthis.btnSendPs = (MyTextButton) findViewById(R.id.btnSendPs);\r\n\t\t// this.btnSendPs.setFocusable(true);\r\n\t\t// this.btnSendPs.setFocusableInTouchMode(true);\r\n\t\t// this.btnSendPs.requestFocus();\r\n\t\t// this.btnSendPs.requestFocusFromTouch();\r\n\t\tthis.btnSendPs.setEnabled(false);\r\n\t\tthis.btnSendPs.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tAddPsXqyzActivity.this.btnSendPs.setEnabled(false);\r\n\t\t\t\tAddPsXqyzActivity.this.uploadPsIndustry();\r\n\t\t\t}\r\n\t\t});\r\n\t\tqymcEditText = (EditText) findViewById(R.id.qymcEt);\r\n\t\tfzrEditText = (EditText) findViewById(R.id.fzrEt);\r\n\t\tlxfsEditText = (EditText) findViewById(R.id.lxfsEt);\r\n\t\tmRegionSpinner = (Spinner) findViewById(R.id.regionSpin);\r\n\t\tnczEditText = (EditText) findViewById(R.id.nczEt);\r\n\t\tzhuEditText = (EditText) findViewById(R.id.zhuEt);\r\n\t\tniuEditText = (EditText) findViewById(R.id.niuEt);\r\n\t\tyangEditText = (EditText) findViewById(R.id.yangEt);\r\n\t\ttuEditText = (EditText) findViewById(R.id.tuEt);\r\n\t\tyslEditText = (EditText) findViewById(R.id.yslEt);\r\n\t\tfspflEditText = (EditText) findViewById(R.id.fspflEt);\r\n\t\tcodEditText = (EditText) findViewById(R.id.codEt);\r\n\t\tadEditText = (EditText) findViewById(R.id.adEt);\r\n\t\ttpEditText = (EditText) findViewById(R.id.tpEt);\r\n\t\ttnEditText = (EditText) findViewById(R.id.tnEt);\r\n\t\tthis.xTv = (TextView) findViewById(R.id.xTv);\r\n\t\tthis.yTv = (TextView) findViewById(R.id.yTv);\r\n\t\tthis.btnLocation = (Button) findViewById(R.id.btnAddLocation);\r\n\t\tthis.btnLocation.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent it = new Intent(AddPsXqyzActivity.this,\r\n\t\t\t\t\t\tLocationActivity.class);\r\n\t\t\t\tAddPsXqyzActivity.this.startActivityForResult(it, 2);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// 图片\r\n\t\tthis.imageGridView = (GridView) findViewById(R.id.imageGridView);\r\n\t\tthis.projectImages = new ArrayList<ProjectImage>();\r\n\t\tthis.imageAdapter = new AddImageAdapter(this, projectImages);\r\n\t\tthis.imageGridView.setAdapter(imageAdapter);\r\n\t\tpopView = LayoutInflater.from(AddPsXqyzActivity.this).inflate(\r\n\t\t\t\tR.layout.popupwindow_camera, null);\r\n\t\tthis.imageGridView.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\tint position, long id) {\r\n\t\t\t\tif (AddPsXqyzActivity.this.imageAdapter.getItem(position) == null) {\r\n\t\t\t\t\tif (mPopupWindow == null) {\r\n\t\t\t\t\t\tmPopupWindow = new PopupWindow(popView, DpTransform\r\n\t\t\t\t\t\t\t\t.dip2px(AddPsXqyzActivity.this, 180),\r\n\t\t\t\t\t\t\t\tDpTransform.dip2px(AddPsXqyzActivity.this, 100));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (mPopupWindow.isShowing()) {\r\n\t\t\t\t\t\tmPopupWindow.dismiss();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmPopupWindow.showAsDropDown(view,\r\n\t\t\t\t\t\t\t\t-DpTransform.dip2px(AddPsXqyzActivity.this, 0),\r\n\t\t\t\t\t\t\t\tDpTransform.dip2px(AddPsXqyzActivity.this, 0));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t// 相机按钮\r\n\t\tButton btnCamera = (Button) popView.findViewById(R.id.btnCamera);\r\n\t\tbtnCamera.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tFile fileCache = ImageOptions.getCache(AddPsXqyzActivity.this);\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tintent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);\r\n\t\t\t\t// intent.addCategory(Intent.CATEGORY_DEFAULT);\r\n\t\t\t\tcurrentfile = new File(fileCache.getPath() + \"/\"\r\n\t\t\t\t\t\t+ UUID.randomUUID().toString() + \".jpg\");\r\n\t\t\t\tif (currentfile.exists()) {\r\n\t\t\t\t\tcurrentfile.delete();\r\n\t\t\t\t}\r\n\t\t\t\tUri uri = Uri.fromFile(currentfile);\r\n\t\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, uri);\r\n\t\t\t\tstartActivityForResult(intent, 3);\r\n\t\t\t\tmPopupWindow.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n\t\t// 相册按钮\r\n\t\tButton btnPhoto = (Button) popView.findViewById(R.id.btnPhoto);\r\n\t\tbtnPhoto.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent it = new Intent(\r\n\t\t\t\t\t\tIntent.ACTION_PICK,\r\n\t\t\t\t\t\tandroid.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\r\n\t\t\t\tstartActivityForResult(it, 2);\r\n\t\t\t\tmPopupWindow.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n\t\tsetTextWatcher();\r\n\t\tlistRegions = WaterDectionary.getRegions();\r\n\t\tArrayList<String> arrayList = new ArrayList<String>();\r\n\t\tfor (Region region : listRegions) {\r\n\t\t\tif (region.getStatus()==1) {\r\n\t\t\t\tarrayList.add(\" \"+region.getName());\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (region.getStatus()==0) {\r\n\t\t\t\t\tarrayList.add(\" \"+region.getName());\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tarrayList.add(region.getName());\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(\r\n\t\t\t\tAddPsXqyzActivity.this, R.layout.simple_spinner_item, arrayList);\r\n\t\tAddPsXqyzActivity.this.mRegionSpinner.setAdapter(adapter);\r\n\t\tsetContent();\r\n\r\n\t}", "public void buttonIsClicked(View view){\n\n if(view.getId()==R.id.btnSave){\n\n String FN=etFN.getEditText().getText().toString().trim();\n String LN=etLN.getEditText().getText().toString().trim();\n String GL=etGL.getEditText().getText().toString().trim();\n String PN=etPN.getEditText().getText().toString().trim();\n String des=etDes.getEditText().getText().toString().trim();\n\n\n //----CHECKING THE EMPTINESS OF THE EDITTEXT-----\n if(FN.equals(\"\") || LN.equals(\"\") || GL.equals(\"\") || PN.equals(\"\") || des.equals(\"\")){\n Toast.makeText(EditProfileActivity.this, \"Please Fill Details\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n\n\n progressDialog.setTitle(\"Adding Details\");\n progressDialog.setMessage(\"Please wait while we are adding details... \");\n progressDialog.setCancelable(false);\n progressDialog.setProgress(ProgressDialog.STYLE_SPINNER);\n progressDialog.show();\n add_details_user(FN,LN,GL,PN,des);\n\n\n }\n }", "public void onClick(View view) {\n // this is from the activity main\n TextView tv = (TextView) findViewById(R.id.tv1);\n EditText et = (EditText) findViewById(R.id.et1);\n\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.buttonNext5:\n Context context = HelpActivity.this;\n Class destinationActivity = MainActivity.class;\n\n Intent intent = new Intent(context, destinationActivity);\n startActivity(intent);\n\n break;\n\n case R.id.enter:\n EditText mEdit;\n mEdit = (EditText)findViewById(R.id.UserIutput);\n String data = mEdit.getText().toString();\n\n writeToFile(data,getApplicationContext());\n\n Context context2 = HelpActivity.this;\n Class destinationActivity2 = MainActivity.class;\n\n Intent intent2 = new Intent(context2, destinationActivity2);\n startActivity(intent2);\n\n Toast.makeText(getApplicationContext(), \"Default SMS contact is: \" + data, Toast.LENGTH_SHORT).show();\n break;\n\n\n }\n\n }", "@Override\n public void onClick(View view) {\n\n //Lets take user input and send that to another activity\n String name = mEdiAnimalName.getText().toString().trim();\n String numbeOfLegs = mEditNumberOfLegs.getText().toString().trim();\n\n\n //Lets see if any of them is empty, if so, ask user to enter input by showing a toast\n if (name == null || name.isEmpty() || numbeOfLegs == null || numbeOfLegs.isEmpty()) {\n showToast(\"Please enter both values\");\n return;\n }\n // Lets check if user has entered any non-integer for the number of legs input\n\n int legsCount = 0;\n try {\n legsCount = Integer.parseInt(numbeOfLegs);\n } catch (NumberFormatException ne) {\n showToast(\"Please enter an integer for legs\");\n //lets clear the current input for legs\n mEditNumberOfLegs.setText(\"\");\n ne.printStackTrace();\n return;\n }\n\n\n //Intent extras are used to send data between activities\n //Lets create an intent to start another activity\n //Note that since we know which activity to start, we are mentioning the name of that activity\n //this is called Explicit Activity\n Intent newActivity = new Intent(MainActivity.this, SecondActivity.class);\n\n //Lets put some extras into the intent\n newActivity.putExtra(\"NAME\", name);\n newActivity.putExtra(\"LEGS\", legsCount);\n\n //Lets now start that activity using the intent that we have build above\n startActivity(newActivity);\n\n }", "@Override\n public void onClick(View v) {\n if(edTxtNoControl.getText().toString().equals(\"\") || edTxtNombre.getText().toString().equals(\"\") || edTxtApellido.getText().toString().equals(\"\")\n ||edTxtPassword.getText().toString().equals(\"\")){\n //Agregamos una notificación Toast para inficar que faltan campos por llenar\n Toast.makeText(getApplicationContext(), \"Faltan campos por llenar\", Toast.LENGTH_SHORT).show();\n }else{\n /*Mediante la instancia creada anteriormente llamamos al metodo \"agregarUsuario()\"\n y dentro de este colocamos los objetos de tipo EditText que se encargan de\n obtener los datos que se coloquen en el formulario de registro.*/\n objDB.agregarUsuario(edTxtNoControl.getText().toString(), edTxtNombre.getText().toString(),\n edTxtApellido.getText().toString(), edTxtPassword.getText().toString());\n //Agregamos una notificación Toast para ver si los datos fueron agregados correctamente.\n Toast.makeText(getApplicationContext(), \"Se agregó correctamente\", Toast.LENGTH_SHORT).show();\n //Finalizamos la actividad\n finish();\n }\n\n //Vaciamos los EditText del formulario\n edTxtNoControl.setText(\"\");\n edTxtNombre.setText(\"\");\n edTxtApellido.setText(\"\");\n edTxtPassword.setText(\"\");\n }", "protected void bindListeners() {\n ImageButton upload = (ImageButton) rootView.findViewById(R.id.btn_upload_photo);\n ImageButton continueBtn = (ImageButton) rootView.findViewById(R.id.btn_continue);\n // Configure edit text\n final EditText userReason = (EditText) rootView.findViewById(R.id.reason_for_quitting_desc);\n\n\n userReason.addTextChangedListener(new TextWatcher() {\n\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n /**\n * This listener is designed to close the soft keyboard when enter is typed.\n */\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n if (userReason != null) {\n if (s.length() > 1 && s.charAt(s.length() - 1) == '\\n') {\n userReason.setText(s.subSequence(0, s.length() - 1));\n InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(userReason.getWindowToken(), 0);\n } else if (s.length() > 0 && s.charAt(0) == '\\n') {\n userReason.setText(\"\");\n InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(userReason.getWindowToken(), 0);\n } else\n ; // normal behavior\n }\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n\n if (upload != null) {\n upload.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n promptUserForImage();\n }\n });\n }\n if (continueBtn != null) {\n continueBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n save();\n mCallbacks.onAnimatedNavigationAction(new SmokeDataIntroFragment(), \"\", R.animator.card_flip_left_in, R.animator.card_flip_left_out, R.animator.card_flip_right_in, R.animator.card_flip_right_out, true);\n }\n });\n\n }\n }", "private void addListenerOnButton() {\n\t\t\tfinal Context context = this;\n\t\t\t\n\t\t\tgetFromDate=MainActivity.fromdate;\n\t\t\tgetToDate=MainActivity.todate;\n\t\t\t//Create a class implementing “OnClickListener” and set it as the on click listener for the button\n\t\t\tbtnSkip.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif(editDetailsflag==false){\n\t\t\t\t\t\tIntent intent = new Intent(getApplicationContext(), menu.class);\n\t\t\t\t\t startActivity(intent);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\t\t\t builder.setMessage(\"Are you sure, you want to reset all fields? \")\n\t\t\t\t .setCancelable(false)\n\t\t\t\t .setPositiveButton(\"Yes\", \n\t\t\t\t new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\t\t\t\t\tetGetAddr.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tsGetPostal.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\teGetPhone.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\teGetFax.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\teGetEmailid.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetGetWebSite.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetMVATnum.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetServiceTaxnum.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetPanNo.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetMVATnum.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetServiceTaxnum.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetRegNum.setText(\"\"); \n\t\t\t\t\t\t\t\t\t\t\t\tetFcraNum.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tbtnRegDate.setText(Startup.getfinancialFromDate());\n\t\t\t\t\t\t\t\t\t\t\t\tbtnFcraDate.setText(Startup.getfinancialFromDate());\n\t\t\t\t\t\t\t\t\t\t\t\tgetstate.setSelection(0);\n\t\t\t\t\t\t\t\t\t\t\t\tgetcity.setSelection(0);\n\t\t\t\t }\n\t\t })\n\t\t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t dialog.cancel();\n\t\t\t }\n\t\t });\n\t\t AlertDialog alert = builder.create();\n\t\t alert.show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}); \n\t\t\tbtnorgDetailSave.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tsavedeatils();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}); \n\t\t\tbtnDeleteOrg.setOnClickListener(new OnClickListener() {\n\t\t\t\t\n\t\t\t\tprivate TextView tvWarning;\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View arg0) {\n \tLayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);\n\t\t\t\t\tView layout = inflater.inflate(R.layout.import_organisation, (ViewGroup) findViewById(R.id.layout_root));\n\t\t\t\t\t//Building DatepPcker dialog\n\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\t\t\t\tbuilder.setView(layout);\n\t\t\t\t\t//builder.setTitle(\"Delete orginsation for given financial year\");\n\t\t\t\t\ttrOrgnisation = (TableRow) layout.findViewById(R.id.trQuestion);\n\t\t\t\t\ttvWarning = (TextView) layout.findViewById(R.id.tvWarning);\n\t\t\t\t\ttrOrgnisation.setVisibility(View.GONE);\n\t\t\t\t\tgetFinancialyear = (Spinner)layout.findViewById(R.id.sYear);\n\t\t\t\t\tbtnDelete = (Button)layout.findViewById(R.id.btnImport);\n\t\t\t\t\tButton btnCancel = (Button) layout.findViewById(R.id.btnExit);\n\t\t\t\t\tbtnCancel.setText(\"Cancel\");\n\t\t\t TextView tvalertHead1 = (TextView) layout.findViewById(R.id.tvalertHead1);\n\t\t\t tvalertHead1.setText(\"Delete \"+getOrgName+\" orgnisation for given financial year?\");\n\t\t\t\t\tbtnDelete.setText(\"Delete\");\n\t\t\t\t\tSystem.out.println(\"print orgname : \"+getOrgName);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\taddListnerOnFinancialSpinner();\n\t\t\t\t\t\tbtnDelete.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(fromDate.equals(financialFrom)&&toDate.equals(financialTo))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmessage = \"Are you sure you want to permanently delete currently logged in \"+getOrgName+\" for financialyear \"+fromDate+\" To \"+toDate+\"?\\n\" +\n\t\t\t\t\t\t\t \t\t\"your data will be permanetly lost and session will be closed !\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tmessage = \"Are you sure you want to permanently delete \"+getOrgName+\" for financialyear \"+fromDate+\" To \"+toDate+\"?\\n\" +\n\t\t\t\t\t\t\t \t\t\"It will be permenantly lost !\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//tvalertHead1 \n\t\t\t\t\t\t\t System.out.println(\"print orgname : \"+getOrgName);\n\t\t\t\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\t\t\t\t\t\t builder.setMessage(message)\n\t\t\t\t\t\t\t .setCancelable(false)\n\t\t\t\t\t\t\t .setPositiveButton(\"Ok\",\n\t\t\t\t\t\t\t new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t \t//parameters pass to core_engine xml_rpc functions\n\t\t\t\t\t\t\t \t//addListnerOnFinancialSpinner();\n\t\t\t\t\t\t\t \tSystem.out.println(\"dlete params: \"+getOrgName+\"\"+fromDate+\"\"+toDate);\n\t\t\t\t\t\t\t \t\t\t\tdeleteprgparams=new Object[]{getOrgName,fromDate,toDate};\n\t\t\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t\t\t \t\t\t\tdeleted = startup.deleteOrgnisationName(deleteprgparams);\n\t\t\t\t\t\t\t \t\t \n\t\t\t\t\t\t\t \t\t\t\tif(fromDate.equals(financialFrom)&&toDate.equals(financialTo))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t \t\t\t\t\t//To pass on the activity to the next page\n\t\t\t\t\t\t\t \t\t\t\t\tIntent intent = new Intent(context,MainActivity.class);\n\t\t\t\t\t\t\t \t\t\t\t\tstartActivity(intent);\n//\t\t\t\t\t\t\t \t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}else{ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"In org details\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taddListnerOnFinancialSpinner();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttvWarning.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttvWarning.setText(\"Deleted \"+getOrgName+\" for \"+fromDate+\" to \"+toDate);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t \t\t\t\t \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t })\n\t\t\t\t\t\t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t dialog.cancel();\n\t\t\t\t\t\t\t dialog.dismiss();\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t });\n\t\t\t\t\t\t\t AlertDialog alert = builder.create();\n\t\t\t\t\t\t\t alert.show();\n \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t});\n\t\t\t\t\t\tbtnCancel.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tdialog=builder.create();\n\t \t\tdialog.show();\n\t \t\t\n\t \t\tWindowManager.LayoutParams lp = new WindowManager.LayoutParams();\n\t\t\t\t\t//customizing the width and location of the dialog on screen \n\t\t\t\t\tlp.copyFrom(dialog.getWindow().getAttributes());\n\t\t\t\t\tlp.width = 700;\n\t\t\t\t\tdialog.getWindow().setAttributes(lp);\n\t\t\t\t}\n\t\t\t});\n\t\t\tbtnRegDate.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\t\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t//for showing a date picker dialog that allows the user to select a date (Registration Date)\n\t\t\t\t\tString regDate = (String) btnRegDate.getText();\n\t\t\t\t\tString dateParts[] = regDate.split(\"-\");\n\t\t\t\t\tsetfromday = dateParts[0];\n\t\t\t\t\tsetfrommonth = dateParts[1];\n\t\t\t\t\tsetfromyear = dateParts[2];\n\t\t \n\t\t\t\t\tSystem.out.println(\"regdate is:\"+regDate);\n\t\t\t\t\tshowDialog(REG_DATE_DIALOG_ID);\n\t\t\t\t}\n\t\t\t});\n\t\t\tbtnFcraDate.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t//for showing a date picker dialog that allows the user to select a date (FCRA Registration Date)\n\t\t\t\t\tString fcraDate = (String) btnFcraDate.getText();\n\t\t\t\t\tString dateParts[] = fcraDate.split(\"-\");\n\t\t\t\t\tsetfromday1 = dateParts[0];\n\t\t\t\t\tsetfrommonth1 = dateParts[1];\n\t\t\t\t\tsetfromyear1 = dateParts[2];\n\t \n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfromday1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfrommonth1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfromyear1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+fcraDate);\n\t\t\t\t\tshowDialog(FCRA_DATE_DIALOG_ID);\n\t\t\t\t}\n\t\t\t});\n\t\t}", "@Override\n public void onClick(View v) {\n RetrieveEditTextData();\n if (v.equals(tvNext)) {\n validator.validate();\n\n//\t\t\tif(strFirstName.equalsIgnoreCase(\"\") || strFirstName.isEmpty())\n//\t\t\t{\n//\t\t\t\tToast.makeText(getActivity(), \"Please enter First Name\", Toast.LENGTH_SHORT).show();\n//\t\t\t}\n//\t\t\telse if(strLastName.equalsIgnoreCase(\"\")|| strLastName.isEmpty())\n//\t\t\t{\n//\t\t\t\tToast.makeText(getActivity(), \"Please enter Last Name\", Toast.LENGTH_SHORT).show();\n//\t\t\t}\n//\t\t\telse if(strCompName.equalsIgnoreCase(\"\")|| strCompName.isEmpty())\n//\t\t\t{\n//\t\t\t\tToast.makeText(getActivity(), \"Please enter Company Name\", Toast.LENGTH_SHORT).show();\n//\t\t\t}\n//\t\t\telse{\n /*Fragment mr = new OfficialInformation();\n\n\t\t\t\tBundle bundle = new Bundle();\n\t \tbundle.putString(\"firstName\", strFirstName);\n\t\t\t\tbundle.putString(\"middleName\", strMiddleName);\n\t\t\t\tbundle.putString(\"lastName\", strLastName);\n\t\t\t\tbundle.putString(\"employId\", strEmployId);\n\t\t\t\tbundle.putString(\"Designation\", strDesignation);\n\t\t\t\tbundle.putString(\"companyName\", strCompName);\n\t\t\t\tbundle.putString(\"Category\", strCategory);\n\t\t\t\tbundle.putString(\"dateOfBirth\", strDOB);\n\t \t\n\t \tmr.setArguments(bundle);\n\t\t\t\t\n\t\t\t\tFragmentManager fm = getFragmentManager();\n\t\t\t\tFragmentTransaction ft = fm.beginTransaction();\n\t\t\t\tft.addToBackStack(\"mobile\");\n\t\t\t\tft.replace(R.id.frame_container, mr, \"service\").addToBackStack(null).commit();*/\n//\t\t\t}\n\n }\n\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.btn_save:\n\t\ttxtt1 = (etxt1.getText().toString());\n\t\ttxtt2 = (etxt2.getText().toString());\n\t\ttxtt3 = (etxt3.getText().toString());\n\t\ttxtt4 = (etxt4.getText().toString());\n\t\ttxtt5 = (etxt5.getText().toString());\n\t\ttxtt6 = (etxt6.getText().toString());\n\t\ttxtt7 = (etxt7.getText().toString());\n\t\ttxtt8 = (etxt8.getText().toString());\n\t\tIntent R = new Intent(getApplicationContext(),ProfileActivity.class);\n\t\tR.putExtra(\"txtt1\", txtt1);\n\t\tR.putExtra(\"txtt2\", txtt2);\n\t\tR.putExtra(\"txtt3\", txtt3);\n\t\tR.putExtra(\"txtt4\", txtt4);\n\t\tR.putExtra(\"txtt5\", txtt5);\n\t\tR.putExtra(\"txtt6\", txtt6);\n\t\tR.putExtra(\"txtt7\", txtt7);\n\t\tR.putExtra(\"txtt8\", txtt8);\n\t\tstartActivity(R);\n\t\tbreak;\n\t\tdefault:\n\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (edtposition.getText().toString().equals(\"\")\n\t\t\t\t\t\t&& edtbrand.getText().toString().equals(\"\")\n\t\t\t\t\t\t&& edtdowhat.getText().toString().equals(\"\")) {\n\t\t\t\t\tToast.makeText(MainActivity.this, \"信息不能为空哦~\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\t\t\t\t\tposition.setText(edtposition.getText().toString());\n\t\t\t\t\tbrand.setText(edtbrand.getText().toString());\n\t\t\t\t\tdowhat.setText(edtdowhat.getText().toString());\n\t\t\t\t\tmypopupwindow.dismiss();\n\t\t\t\t\tposition_1.setText(edtposition.getText().toString());\n\t\t\t\t\tbrand_1.setText(edtbrand.getText().toString());\n\t\t\t\t\tdowhat_1.setText(edtdowhat.getText().toString());\n\t\t\t\t}\n\t\t\t}", "public void onClick(DialogInterface dialog, int id) {\n edit_btn_val.clearComposingText();\n edit_btn_val.setText(userInput.getText());\n preferencesEditor.putString(sw_no,edit_btn_val.getText().toString());\n preferencesEditor.commit();\n\n }", "@Override\n\tpublic void onClick(View v) {\n\t\t\n\t\tswitch( ( v.getId())){\n\t\tcase R.id.button1:\n\t\t\thideKeyboard();\n\t\t\tif (eagcode.getText().toString().length() ==0 ){\n\t\t\t\teagcode.setError(\"Agency Code required\");\n\t\t\t\t\n\t\t\t}\n\t\t\telse if (emobileno.getText().toString().length() == 0){\n\t\t\t\temobileno.setError(\"mobile Number required\");\n\t\t\t\t\n\t\t\t} else {\n\t\tnew gettask().execute(eagcode.getText().toString().trim(),emobileno.getText().toString().trim());}\n\t\t\t\n\t\tbreak;\n\t\t\n\t\tcase R.id.button2:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n\n case R.id.btnBack:\n\n if(InternetConnectivity.isConnectedFast(ChefEditKitchenPart2.this)){\n startActivity(new Intent(ChefEditKitchenPart2.this,ChefEditKitchen.class));\n finish();\n }else {\n Toast.makeText(getApplicationContext(),\"check your internet connection\",Toast.LENGTH_SHORT).show();\n }\n\n break;\n\n case R.id.btnLogout:\n\n Logout.logOut(this);\n finish();\n break;\n\n case R.id.btn_submit:\n\n kitchenAddressLine1 = chefKithenEditAddressLine1.getText().toString();\n kitchenAddressLine2 = chefKithenEditAddressline2.getText().toString();\n kitchenStreetAddress = chefKithenEditStreetAddress.getText().toString();\n kitchenAPT = chefKithenEditApt.getText().toString();\n kitchenZip = chefKithenEditZip.getText().toString();\n\n\n if(kitchenStreetAddress.equalsIgnoreCase(\"\")){\n CreateDialog.showDialog(this, \"Street address can not be blank \");\n }\n else if(chefRegCountry.equalsIgnoreCase(\"Select Country\")){\n\n CreateDialog.showDialog(this, \"Select Country\");\n }else if(chefRegState.equalsIgnoreCase(\"Select State\")){\n\n CreateDialog.showDialog(this, \"Select State\");\n }else if(kitchenCity.equalsIgnoreCase(\"Select City\")){\n\n CreateDialog.showDialog(this, \"Select City\");\n }else if(kitchenZip.equalsIgnoreCase(\"\")){\n\n CreateDialog.showDialog(this, \"Enter Zip code\");\n }\n else{\n /*String location=chefKithenEditStreetAddress.getText().toString()+\",\"+\n chefKithenEditZip.getText().toString();\n System.out.println(\"Location \"+location.replace(\" \", \"%20\").trim());\n getlatlongfromzipcode(location.replace(\" \", \"%20\").trim());*/\n if(InternetConnectivity.isConnectedFast(ChefEditKitchenPart2.this)){\n doKitchenUpdate();\n }else {\n Toast.makeText(getApplicationContext(),\"check your internet connection\",Toast.LENGTH_SHORT).show();\n }\n\n }\n break;\n\n }\n }", "@Override\n public void onClick(View v) {\n\n //edittext object of the item entered\n EditText text = (EditText) findViewById(R.id.item_text);\n\n //create new intent to put the item in\n Intent data = new Intent();\n data.putExtra(\"text\", text.getText().toString());\n\n //attach data to return call and go back to main view\n setResult(RESULT_OK, data);\n finish();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n\tsuper.onCreate(savedInstanceState);\n\tsetContentView(R.layout.edit_course_screen);\n\n\tgetWindow().setSoftInputMode(\n\t\tWindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n\tinitComponents();\n\n\tButton editButton = (Button) findViewById(R.id.edit_course_button);\n\teditButton.setOnClickListener(new OnClickListener() {\n\t public void onClick(View view) {\n\t\tdatabaseHelper = new DataHelper(EditCourseTeacherScreen.this);\n\t\tint id = extras.getInt(\"id\");\n\t\tString signature = extras.getString(\"signature\").trim();\n\t\tString name = nameEntry.getText().toString().trim();\n\t\tString type = extras.getString(\"type\").trim();\n\t\tString alarm = extras.getString(\"alarm\");\n\n\t\tdatabaseHelper.updateCourseOrTeacher(id, signature,\n\t\t\tname.toString(), pickedColor, type, alarm);\n\t\tdatabaseHelper.close();\n\t\tstartActivity(new Intent(EditCourseTeacherScreen.this,\n\t\t\tMain.class));\n\t\tfinish();\n\t }\n\t});\n\n\tButton cancelButton = (Button) findViewById(R.id.cancel_editing_course_button);\n\tcancelButton.setOnClickListener(new OnClickListener() {\n\t public void onClick(View arg0) {\n\t\tfinish();\n\t }\n\t});\n }", "@Override\n public void onClick(View v) {\n String newName = etname.getText().toString();\n String newAge = etage.getText().toString();\n String newPicture = etpicture.getText().toString();\n\n // put the strings into a message for MainActivity\n\n //start MainActivity again\n\n\n Intent i = new Intent(v.getContext(), MainActivity.class);\n\n i.putExtra(\"modifier\", positionToEdit);\n i.putExtra(\"nom\", newName);\n i.putExtra(\"age\", newAge);\n i.putExtra(\"photo\", newPicture);\n startActivity(i);\n }", "public void iniViwes() {\n txtcodigoAnimal = (EditText) findViewById(R.id.txtcodigoAnimal);\n btnBuscar = (Button) findViewById(R.id.btnBuscar);\n txtresultado = (ListView) findViewById(R.id.txtresultado);\n\n }", "public void onClick(View v) {\n\t\t\t\t\tSharedPreferences.Editor editor = getPreferences(0).edit();\r\n\t\t\t\t\tString s=extractedsample.getText().toString();\r\n\t\t\t\t\teditor.putString(\"Name\", s);\r\n\t\t\t\t\tString s1=primerpair.getText().toString();\r\n\t\t\t\t\teditor.putString(\"Name1\", s1);\r\n\t\t\t\t\tString s2=date1.getText().toString();\r\n\t\t\t\t\teditor.putString(\"Name2\", s2);\r\n\t\t\t\t\tString s3=successfull.getText().toString();\r\n\t\t\t\t\teditor.putString(\"Name3\", s3);\r\n\t\t\t\t\tString s4=date2.getText().toString();\r\n\t\t\t\t\teditor.putString(\"Name4\", s4);\r\n\t\t\t\t\tString s5=tbtn.getText().toString();\r\n\t\t\t\t\teditor.putString(\"Name5\", s5);\r\n\t\t\t\t\teditor.commit();\r\n\t\t\t\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main2);\n\n Bundle parametros = getIntent().getExtras(); \t\t\t// accede a todos los extras utilizados y declarados en el Intent\n String usuario = parametros.getString(\"sesion_usuario\"); //obtengo el usuario, queda guardado en session_usuario\n\n TextView saludo_usuario = (TextView) findViewById(R.id.saludo_usuario); //obteng el control del textview para poder editarlo por codigo\n String formaSaludo = \"Bievenido \"+usuario; //creo un string porque no puedo concatenar directamente en TextView\n saludo_usuario.setText(formaSaludo); // Muestro por pantalla\n\n Button btnMarcar = (Button) findViewById(R.id.btnMarcar); //instancion btnMarcar declarado en el xml para poder utilizarlo por codigo\n ncelular = (EditText) findViewById(R.id.ncelular);\n\n btnMarcar.setOnClickListener(new View.OnClickListener(){ //Si btnMarcar es precionado\n @Override\n public void onClick(View v) {\n marcarLlamada(v); //llama al metodo marcarLlamada\n }\n });\n\n Button btnFinalizar = (Button) findViewById(R.id.btnFinalizar);\n btnFinalizar.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v) {\n finalizaractividad(v);\n }\n });\n\n }", "@Override\n public void onClick(View v) {\n genderString = spinner_gender.getSelectedItem().toString();\n activityString = spinner_activity.getSelectedItem().toString();\n gainsString = spinner_gains.getSelectedItem().toString();\n //converts all entries to strings\n if(firstNameString.length()!=0 && surnameString.length()!=0 && ageString.length()!=0 && heightString.length()!=0 &&\n weightString.length()!=0 && genderString.length()!=0 && activityString.length()!=0 && gainsString.length()!=0){//checks if all fields have been entered\n AddData(firstNameString, surnameString, ageString, heightString, weightString, genderString, activityString, gainsString); //adds fields to database by calling adddata method\n }\n else{\n toastMessage(\"Enter data\");//if a field is empty, error displayed\n }\n startActivity(new Intent(SignUp2.this, MainActivity.class));//once this had passed, main activity is started\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}", "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_setting,container,false);\n\n inflatedview = inflater.inflate(R.layout.fragment_setting, container, false);\n name = (EditText) inflatedview.findViewById(R.id.edText_Name);\n phone_number = (EditText) inflatedview.findViewById(R.id.editPhone);\n dob = (EditText) inflatedview.findViewById(R.id.editDob);\n// address = (EditText) inflatedview.findViewById(R.id.edText_address);\n btn_edit = (Button) inflatedview.findViewById(R.id.btn_edit);\n\n name.setHint(LoginActivity.getCustomerModel().getName());\n phone_number.setHint(LoginActivity.getCustomerModel().getPhone());\n dob.setHint(LoginActivity.getCustomerModel().getDob());\n// address.setHint(\"សូមបញ្ចូលឤស័យដ្ឋានរបស់អ្នក\");\n\n btn_edit.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n update_controler++;\n\n Log.e(\"update_controller\", String.valueOf(update_controler));\n\n if (update_controler == 2) {\n\n name_str = name.getText().toString();\n phone_str = phone_number.getText().toString();\n dob_str = dob.getText().toString();\n// address_str = address.getText().toString();\n\n Log.e(\"name::\", name_str);\n Log.e(\"phone::\", phone_str);\n Log.e(\"dob::\", dob_str);\n// Log.e(\"address::\", address_str);\n\n update_controler = 0;\n btn_edit.setText(\"ផ្លាស់ប្តូរ\");\n\n// if (address_str == \"\" || address_str == null) {\n// address_str = \"null\";\n// }\n\n HashMap data = new HashMap();\n data.put(\"id\", LoginActivity.getCustomerModel().getId());\n data.put(\"name\",name_str);\n data.put(\"dob\",dob_str);\n data.put(\"phone\",phone_str);\n// data.put(\"address\",address_str);\n\n updateCustomer(url_update_customer, data);\n }\n else if (update_controler == 1) {\n\n name.setText(LoginActivity.getCustomerModel().getName());\n phone_number.setText(LoginActivity.getCustomerModel().getPhone());\n dob.setText(LoginActivity.getCustomerModel().getDob());\n// if (LoginActivity.getCustomerModel().getAddress() == \"null\"\n// || LoginActivity.getCustomerModel().getAddress() == null) {\n// address.setHint(\"សូមបញ្ចូលឤស័យដ្ឋានរបស់អ្នក\");\n// }\n// else {\n// address.setText(LoginActivity.getCustomerModel().getAddress());\n// }\n\n name.setInputType(InputType.TYPE_CLASS_TEXT);\n phone_number.setInputType(InputType.TYPE_CLASS_NUMBER);\n dob.setInputType(InputType.TYPE_DATETIME_VARIATION_DATE );\n// address.setInputType(InputType.TYPE_CLASS_TEXT);\n\n btn_edit.setText(\"រក្សាទុក\");\n\n name.setFocusable(true);\n phone_number.setFocusable(true);\n dob.setFocusable(false);\n// address.setFocusable(true);\n }\n else {\n name.setHint(LoginActivity.getCustomerModel().getName());\n phone_number.setHint(LoginActivity.getCustomerModel().getPhone());\n dob.setHint(LoginActivity.getCustomerModel().getDob());\n// if (LoginActivity.getCustomerModel().getAddress() == \"null\"\n// || LoginActivity.getCustomerModel().getAddress() == null) {\n// address.setHint(\"សូមបញ្ចូលឤស័យដ្ឋានរបស់អ្នក\");\n// }\n// else {\n// address.setText(LoginActivity.getCustomerModel().getAddress());\n// }\n\n name.setFocusable(false);\n phone_number.setFocusable(false);\n dob.setFocusable(false);\n// address.setFocusable(false);\n }\n }\n });\n\n dob.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int dayOfMonth = calendar.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog dialog = new DatePickerDialog(\n getContext(), android.R.style.Theme_Holo_Light_Dialog_MinWidth\n , onDateSetListener, year, month, dayOfMonth);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.show();\n }\n });\n\n onDateSetListener = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String Date = year + \"-\" + month + \"-\" + dayOfMonth;\n dob.setText(Date);\n }\n };\n\n return inflatedview;\n }", "public void button_proband_ok(View view){\n String codePart1 = getEditText(R.id.pc_1);\n String codePart2 = getEditText(R.id.pc_2);\n String codePart3 = getEditText(R.id.pc_3);\n String codePart4 = getEditText(R.id.pc_4);\n String codePart5 = getEditText(R.id.pc_5);\n // ToDo: check if all are actually characters\n // (and not numbers/other symbols)\n _control.newUser( codePart1+codePart2+codePart3+codePart4+codePart5 );\n setContentView(R.layout.set_time);\n }", "@Override\n public void editDescription() {\n final String[] desc = new String[1];\n desc[0] = null;\n\n\n AlertDialog.Builder builder = new AlertDialog.Builder(Overview.this);\n //inflate the layout\n View mView = getLayoutInflater().inflate(R.layout.description_dialog, null);\n\n final EditText description = (EditText) mView.findViewById(R.id.write);\n Button save = (Button) mView.findViewById(R.id.save);\n Button cancel = (Button) mView.findViewById(R.id.cancel);\n\n\n builder.setView(mView);\n final AlertDialog dialog = builder.create();\n dialog.show();\n\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // desc = description.getText().toString();\n Toast.makeText(Overview.this, \"Description Canceled\", Toast.LENGTH_SHORT).show();\n\n dialog.dismiss();\n }\n });\n\n save.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (!description.getText().toString().isEmpty()) {\n // desc = description.getText().toString();\n Toast.makeText(Overview.this, \"Saved Description\", Toast.LENGTH_SHORT).show();\n ai_frag.setReturnedDescription(description.getText().toString());\n\n } else {\n Toast.makeText(Overview.this, \"No Description changed\", Toast.LENGTH_SHORT).show();\n }\n dialog.dismiss();\n\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 }", "public void afterClickedEdit(View view) {\n GlobalUtils.showOpdtionDialog(this, new OptionDialogCallback() {\n @Override\n public void onActionHistory() {\n Intent intent = new Intent(MainActivity.this, HistoryActivity.class);\n startActivity(intent);\n }\n\n @Override\n public void onActionChangeTime() {\n if (GlobalUtils.TARGET_TREATMENT_TIME.equals(\"0\")) {\n GlobalUtils.showInfoDialog(MainActivity.this, \"Error\", \"You have not entered your total treatment time yet\", \"OK\", new SCDialogCallback() {\n @Override\n public void onAction1() {\n\n }\n\n @Override\n public void onAction2() {\n\n }\n\n @Override\n public void onAction3() {\n\n }\n\n @Override\n public void onAction4() {\n\n }\n });\n } else {\n aftererClickTarget();\n }\n }\n\n @Override\n public void onActionClear() {\n //show confirmation dialog\n GlobalUtils.showConfirmDialog(MainActivity.this, \"Confirmation\", \"Are you sure you want to clear all data?\", \"Yes\", \"No\", new SCDialogCallback() {\n @Override\n public void onAction1() {\n db.deleteSchedule(GlobalUtils.getCurrentDate().getFormattedDate());\n mListScheduleData.clear();\n GlobalUtils.calculated_schedule = new Schedule();\n initScheduleList();\n reset_Views();\n GlobalUtils.no_counting = true;\n GlobalUtils.TARGET_TREATMENT_TIME = \"0\";\n }\n\n @Override\n public void onAction2() {\n\n }\n\n @Override\n public void onAction3() {\n\n }\n\n @Override\n public void onAction4() {\n\n }\n });\n }\n\n @Override\n public void onActionSave() {\n\n }\n\n @Override\n public void onActionCancel() {\n\n }\n\n @Override\n public void onActionHelp() {\n Intent intent = new Intent(MainActivity.this,HelpActivity.class);\n startActivity(intent);\n }\n });\n\n\n }", "private void setupEditTexts() {\n EditText paino = findViewById(R.id.etWeight);\n EditText alaPaine = findViewById(R.id.etLowerBP);\n EditText ylaPaine = findViewById(R.id.etUpperBP);\n\n //Set the input filters\n paino.setFilters(new InputFilter[] { new InputFilterMinMax(0f, 999f)});\n alaPaine.setFilters(new InputFilter[] { new InputFilterMinMax(1, 999)});\n ylaPaine.setFilters(new InputFilter[] { new InputFilterMinMax(1, 999)});\n\n //Set listeners for the edit texts on when the user clicks something else on the screen while typing\n //When clicked outside, the keyboard closes\n paino.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n alaPaine.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n ylaPaine.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n }", "private void initViews() {\n textViewName = (EditText) findViewById(R.id.inputText_name);\n textViewEmail = (EditText) findViewById(R.id.inputText_email);\n textViewPhone = (EditText) findViewById(R.id.inputText_phone);\n textViewRent = (EditText) findViewById(R.id.inputText_rent);\n textViewChores = (EditText) findViewById(R.id.inputText_chores);\n\n updateUserButton = (Button) findViewById(R.id.button_updateUser);\n //redirectToUsers = (Button) findViewById(R.id.button_updateUser);\n }", "public void activarControladores() {\n tv_lugar.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n\n\n if(actionId == EditorInfo.IME_ACTION_SEARCH\n || actionId== EditorInfo.IME_ACTION_DONE\n || event.getAction()==KeyEvent.ACTION_DOWN\n || event.getAction()==KeyEvent.KEYCODE_ENTER ){\n\n buscarLugar();\n }\n\n return false;\n }\n });\n\n //se abre un fragmento para seleccionar la fecha\n tv_fecha.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n DatePickerFragment newFragment = DatePickerFragment.newInstance(new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n final String fechaSeleccionada = dayOfMonth + \"/\" + (month + 1) + \"/\" + year;\n tv_fecha.setText(fechaSeleccionada);\n }\n\n });\n newFragment.show(getActivity().getFragmentManager(), \"Seleccione Fecha\");\n }\n });\n\n //se abre un fragmento para seleccionar la hora\n tv_hora.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n TimePickerFragment timerFragment = TimePickerFragment.newInstance(new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n final String horaSeleccionada = \"\"+hourOfDay+\":\"+minute;\n tv_hora.setText(horaSeleccionada);\n }\n });\n timerFragment.show(getActivity().getFragmentManager(), \"Seleccione Hora\");\n }\n });\n\n\n btn_publicar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n if (isOnlineNet()) {\n\n lugar = \"\" + tv_lugar.getText().toString().trim();\n hora = \"\" + tv_hora.getText().toString().trim();\n fecha = \"\" + tv_fecha.getText().toString().trim();\n mas_info = \"\" + tv_mas_info.getText().toString().trim();\n plazas = \"\" + picker_plazas.getValue();\n deporte = \"\" + spinner_deporte.getSelectedItem().toString().trim();\n //se verifican los datos introducidos\n if (!lugar.isEmpty() && !hora.isEmpty() &&\n !fecha.isEmpty() && !deporte.isEmpty() && !plazas.isEmpty()) {\n //subir quedada\n String fecha_obtenida = \"\" + fecha + \" \" + hora;\n\n Validador validador= new Validador();\n if(validador.validateFecha(fecha)){\n if (compararFechaActualCon(fecha_obtenida)) {\n\n //se busca el lugar introducido en el texto para seleccionar ubicacion\n buscarLugar();\n\n btn_publicar.setEnabled(false);\n\n //si la ubicacion es valida\n if (ubicacionEncontrada == true) {\n\n progressDialog.setMessage(\"Se está creando la quedada\");\n progressDialog.setCancelable(false);\n progressDialog.show();\n\n longitud = \"\" + localizacion.getLongitude();\n latitud = \"\" + localizacion.getLatitude();\n id = \"\" + (localizacion.getLongitude() + localizacion.getLatitude()) + \"\" + fecha + hora;\n\n //se publica la quedada\n quedada = new Quedada(id.trim(), \"\", lugar, fecha, hora, deporte, mas_info, plazas,\n longitud, latitud);\n\n presenter.CrearQuedada(quedada);\n } else {\n btn_publicar.setEnabled(true);\n Snackbar.make(myView, \"No se pudo encontrar la ubicación seleccionada!\", 4000).show();\n\n }\n } else {\n AlertDialog.Builder myBuild = new AlertDialog.Builder(getContext());\n myBuild.setMessage(\"La fecha propuesta de la quedada ya ha expirado.\\n\\nIntroduzca una fecha válida!\");\n myBuild.setTitle(\"Alerta\");\n\n myBuild.setNegativeButton(\"Cerrar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n myBuild.show();\n }\n }else {\n\n Snackbar.make(myView, \"Fecha no valida!\", Snackbar.LENGTH_SHORT).show();\n\n }\n }else {\n\n Snackbar.make(myView, \"Debe de rellenar todos los campos obligatorios\", Snackbar.LENGTH_SHORT).show();\n\n }\n }else {\n\n Snackbar.make(myView, \"No hay conexión a internet\", Snackbar.LENGTH_SHORT).show();\n\n }\n }\n });\n\n btn_cancelar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n if (isOnlineNet()) {\n\n fragment = new ListadoQuedadasUsuarioVista();\n getFragmentManager().beginTransaction().replace(R.id.content_main, fragment).commit();\n } else {\n\n Snackbar.make(myView, \"No hay conexión a internet\", Snackbar.LENGTH_SHORT).show();\n\n }\n }\n });\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n String input = Text.getText().toString();\n\n Intent intent = new Intent();\n intent.putExtra(\"?\", input);\n\n setResult(RESULT_OK, intent);\n finish();\n\t\t\t}", "@Override\n public void onClick(View v) {\n etSignUpUsername.setText(\"\");\n etSignUpEmail.setText(\"\");\n etSignUpPassword.setText(\"\");\n etContactNumber.setText(\"\");\n //Initialize and launch intent.\n Intent intent = new Intent(RegistrationActivity.this, com.example.annadata.LoginActivity.class);\n startActivity(intent);\n RegistrationActivity.this.finish();\n }", "public void addListenerOnButton()\r\n {\r\n //undoButton1 is the undo text for email text field\r\n undoButton1.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View view) {\r\n mEmailView.setText(\"\"); //clear text in text field\r\n }\r\n });\r\n\r\n //undoButton2 is the undo text for password text field\r\n undoButton2.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View view) {\r\n mPasswordView.setText(\"\"); //clear text in text field\r\n }\r\n });\r\n\r\n //button1 is the LOGIN button on this activity\r\n button1.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View view) {\r\n //we need to check that both fields are NOT empty before we call attemptLogin()\r\n //get text from values entered and trim whitespace\r\n email = mEmailView.getText().toString().trim();\r\n password = mPasswordView.getText().toString().trim();\r\n\r\n //Detect empty fields before allowing user to continue to next activity\r\n if(TextUtils.isEmpty(email)){\r\n //firstName is empty\r\n Toast.makeText(getApplicationContext(), \"Please enter EMAIL\", Toast.LENGTH_SHORT).show();\r\n //stopping the function from executing further\r\n return;\r\n }\r\n if(TextUtils.isEmpty(password)){\r\n //lastName is empty\r\n Toast.makeText(getApplicationContext(), \"Please enter PASSWORD\", Toast.LENGTH_SHORT).show();\r\n //stopping the function from executing further\r\n return;\r\n }\r\n\r\n //User entered an text, but we need to check if text is valid email pattern\r\n wasEmailValid = isValidEmail(email);\r\n if (!(wasEmailValid)){\r\n //email text is INVALID email pattern\r\n Toast.makeText(getApplicationContext(), \"Please enter a valid EMAIL\", Toast.LENGTH_SHORT).show();\r\n //stopping the function from executing further\r\n return;\r\n }\r\n //email text was valid email pattern\r\n //Both text fields were filled, so we allow user to continue\r\n //place logic here to do login action\r\n attemptLogin2(email,password);\r\n }\r\n });\r\n\r\n //button2 is the BACK ARROW button\r\n button2 = ((ImageButton)findViewById(R.id.backtToStartButton));\r\n button2.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View view) {\r\n finish();\r\n }\r\n });\r\n\r\n //passwordreset is the text 'Password help?'\r\n passwordreset = ((Button)findViewById(R.id.passwordHelp));\r\n passwordreset.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View view) {\r\n //declare where you intend to go\r\n Intent intent = new Intent(loginActivity.this, resetPasswordActivity.class);\r\n //now make it happen\r\n startActivity(intent);\r\n }\r\n });\r\n }", "private void initView() {\n\t\tpasswd = (EditText) findViewById(R.id.password);\n\t\tpasswd.addTextChangedListener(new TextWatcher() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\t\t// TODO Auto-generated method stub\n//\t\t\t\tToast.makeText(getApplicationContext(), start +\"-\"+ before+\"-\" + count+\"-\" + s, Toast.LENGTH_LONG).show();\n\t\t\t\tif(s.toString().equals(PASSWD))\n\t\t\t\t{\n\t\t\t\t\tIntent intent = new Intent(MainActivity.this,TakePhoto.class);\n\t\t\t\t\tintent.putExtra(\"\", setting);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\tint after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n//\t\t\t\tToast.makeText(getApplicationContext(), s.toString(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t});\n\t\ttb1 = (ToggleButton) findViewById(R.id.tb1);\n\t\ttb2 = (ToggleButton) findViewById(R.id.tb2);\n\t\ttb1.setChecked(true);\n\t\tsetting[0] = true;\n\t\t\n\t\ttb1.setOnCheckedChangeListener(new OnCheckedChangeListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t// TODO Auto-generated method stub\n//\t\t\t\tToast.makeText(getApplicationContext(), isChecked+\"自动\", Toast.LENGTH_LONG).show();\n\t\t\t\tsetting[0] = isChecked;\n\t\t\t}\n\t\t});\n\t\t\n\t\ttb2.setOnCheckedChangeListener(new OnCheckedChangeListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t// TODO Auto-generated method stub\n//\t\t\t\tToast.makeText(getApplicationContext(), isChecked+\"前后\", Toast.LENGTH_LONG).show();\n\t\t\t\tsetting[1] = isChecked;\n\t\t\t}\n\t\t});\n\t\tpasswd.setOnEditorActionListener(new OnEditorActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(actionId == EditorInfo.IME_ACTION_GO)\n\t\t\t\t{\n\t\t\t\t\tif(passwd.getText().toString().equals(PASSWD))\n\t\t\t\t\t{\n//\t\t\t\t\t\tToast.makeText(getApplicationContext(), \n//\t\t\t\t\t\t\t\t\"进入传送门\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tIntent intent = new Intent(MainActivity.this,TakePhoto.class);\n\t\t\t\t\t\tintent.putExtra(\"\", setting);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t\telse if(passwd.getText().toString().equals(DELETE))\n\t\t\t\t\t{\n\t\t\t\t\t\t//删除记录\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\"SD卡挂载失败,即将退出\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\"网络错误,请稍后再试\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t\t\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.inputdialog);\r\n\t\tregion=(Spinner)findViewById(R.id.s_region);\r\n\t\tArrayAdapter<CharSequence> adapter=ArrayAdapter.createFromResource(InputDialog.this, R.array.region, android.R.layout.simple_spinner_item);\r\n\t\tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n\t\tregion.setAdapter(adapter);\r\n\t\tregion.setOnItemSelectedListener(new OnItemSelectedListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tregionText=arg0.getItemAtPosition(arg2).toString();\r\n\t\t\t\tsetTreeAdatpter(regionText);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\ttree=(Spinner)findViewById(R.id.s_tree);\r\n\t\tdb=(EditText)findViewById(R.id.db);\r\n\t\tdm=(EditText)findViewById(R.id.dm);\r\n\t\tdw=(EditText)findViewById(R.id.dw);\r\n\t\tde=(EditText)findViewById(R.id.de);\r\n\t\tar=(EditText)findViewById(R.id.ar);\r\n\t\tok=(Button)findViewById(R.id.in_ok);\r\n ok.setOnClickListener(new android.view.View.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(isSuccesfull()){\r\n\t\t\t\t\tIntent intent=new Intent();\r\n\t\t\t\t\tintent.putExtra(\"region\", regionText);\r\n\t\t\t\t\tintent.putExtra(\"tree\", treeText);\r\n\t\t\t\t\tintent.putExtra(\"ar\", iar);\r\n\t\t\t\t\tintent.putExtra(\"db\", idb);\r\n\t\t\t\t\tintent.putExtra(\"dm\", idm);\r\n\t\t\t\t\tintent.putExtra(\"dw\", idw);\r\n\t\t\t\t\tintent.putExtra(\"de\", ide);\r\n\t\t\t\t\tintent.putExtra(\"calV\", Calculate.CalV(transformStringToInt(regionText), transformStringToInt(treeText), idb, idm, idw, ide, iar));\r\n\t\t\t\t\tsetResult(RESULT_OK, intent);\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(InputDialog.this);\r\n\t\t\t\t\tbuilder.setTitle(R.string.app_name).setNegativeButton(\"知道了\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).setMessage(\"请按规定输入\");\r\n\t\t\t\t\tDialog dialog=builder.create();\r\n\t\t\t\t\tdialog.show();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tcancel=(Button)findViewById(R.id.in_cancel);\r\n cancel.setOnClickListener(new android.view.View.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tfinish();\r\n\t\t\t\tsetResult(RESULT_CANCELED);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n\tpublic void onClick(View arg0) {\n\t\tswitch(arg0.getId()){\n\t\tcase R.id.button1:\n\t\t\t//String value = disability.getText().toString();\n\t\t\t\n\t\t\tif(disability.isChecked()){\n\t\t\t\t valueDisability = disability.getText().toString();\n\t\t\t\t disMed = \"Disability: great caution\";\n\t\t\t\t \n\t\t\t}else{\n\t\t\t\tdisMed = \"\";\n\t\t\t }\n\t\t\t if(headache.isChecked()){\n\t\t\t\t valueHead = headache.getText().toString();\t\t\t\t \n\t\t\t\t headMed = \"Headache: panadol syrup 5ml 3 times a day\";\n\t\t\t}else{\n\t\t\t\theadMed = \"\";\n\t\t\t}\n\t\t\t if(fever.isChecked()){\n\t\t\t\t valueFever = fever.getText().toString();\n\t\t\t\t ferverMed = \"Fever: Less clothing\"+\"\\n\"+\"if symptoms persist book appointment\";\n\t\t\t} else{\n\t\t\t\tferverMed=\"\";\n\t\t\t}\n\t\t\t if(stomach.isChecked()){\n\t\t\t\t valueStomach = stomach.getText().toString();\n\t\t\t\t stomachMed = \"Stomachache: tumbocid\"+\"\\n\"+\"if symptoms persist book appointment\";\n\t\t\t}else{\n\t\t\t\tstomachMed=\"\";\n\t\t\t}\n\t\t\t if(diarrhoea.isChecked()){\n\t\t\t\t valueDiarrhoea = diarrhoea.getText().toString();\n\t\t\t\t diarMed=\"Diarrhoea: take capsules\";\n\t\t\t}else{\n\t\t\t\tdiarMed=\"\";\n\t\t\t}\n\t\t\t if(hiv.isChecked()){\n\t\t\t\t valueHiv = hiv.getText().toString();\n\t\t\t\t hivMed=\"HIV: take ARVs\";\n\t\t\t}else{\n\t\t\t\thivMed=\"\";\n\t\t\t}\n\t\t\t//Toast.makeText(this, \"Value is \"+value, Toast.LENGTH_LONG).show();\n\t\t\tboolean result = helper.insertAdvice(valueHead+\" \"+valueFever+\" \"+\n\t\t\t\t\tvalueStomach+\" \"+ valueDiarrhoea, valueHiv+\" \"+\n\t\t\t\t\tvalueDisability);\n\t\t\tif(result == true){\n\t\t\t\t AlertDialog.Builder alertBox = new AlertDialog.Builder(this);\n\t\t\t\t alertBox.setMessage(\"submitted successfully\");\n\t\t\t\t alertBox.setNeutralButton(\"OK\", 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 arg0, int arg1) {\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\tIntent i =new Intent(AdviceForm.this,AdviceFeedback.class);\n\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t alertBox.show();\n\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tToast.makeText(getApplicationContext(), \"not accessble\", Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t\tbreak;\ncase R.id.bExit:\n\tsymptoms.setText(\"\");\n other.setText(\"\");\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tthis.setContentView(R.layout.advance);\r\n\t\t\r\n\t\tButton cbtn = (Button) this.findViewById(R.id.cbtn);\r\n\t\t\r\n\t\tcbtn.setOnClickListener(new OnClickListener()\r\n\t\t{\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tDataHelper dataHelper = DataBaseContext.getInstance(getApplicationContext());\r\n\t\t\t\tdataHelper.initDB();\r\n\t\t\t\t\r\n\t\t\t\t//showDialog(TIME_ALERT_DIALOG_1);\r\n\t\t\t\t//Log.d(\"AdvancedInfoActivity\", \"clear button:\"+i);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tButton qbtn = (Button) this.findViewById(R.id.qbtn);\r\n\t\t\r\n\t\tqbtn.setOnClickListener(new OnClickListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\r\n/*\t\t\t\tDataHelper dataHelper = DataBaseContext.getInstance(getApplicationContext());\r\n\t\t\t\tdataHelper.testExists();\r\n\t\t\t\tList<ASDataObject> ObjList = dataHelper.getConfigList();\r\n\t\t\t\tfor(ASDataObject object : ObjList)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.d(\"AdvancedInfoActivity\", object.getEmpCode());\r\n\t\t\t\t\tLog.d(\"AdvancedInfoActivity\", object.getWorkDate());\r\n\t\t\t\t\tLog.d(\"AdvancedInfoActivity\", object.getAP());\r\n\t\t\t\t\tLog.d(\"AdvancedInfoActivity\", \"--------\");\r\n\t\t\t\t}*/\r\n\t\t\t\t\r\n\t\t\t\tshowDialog(TIME_ALERT_DIALOG_2);\r\n\t\t\t\t\r\n\t\t\t\tLog.d(\"AdvancedInfoActivity\", \"query data\");\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\t/*Builder dialog = new AlertDialog.Builder(AdvancedInfoActivity.this);\r\n\t\t\r\n\t\tdialog.setIcon(android.R.drawable.btn_star);\r\n\t\tdialog.setSingleChoiceItems(items, checkedItem, listener)*/\r\n\t\t\r\n\t\tspinner = (Spinner) findViewById(R.id.Spinner01);\r\n\t\t\r\n\t\tadapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item,m);\r\n\t\t\r\n\t\tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n\t\t\r\n\t\tspinner.setAdapter(adapter);\r\n\t\tspinner.setVisibility(View.VISIBLE);\r\n\t}", "public void init(){\n nomInscription = (EditText)findViewById(R.id.inscriptionNomEdit);\n prenomInscription = (EditText)findViewById(R.id.inscriptionPrenomEdit);\n mailInscription = (EditText)findViewById(R.id.inscriptionMailEdit);\n telInscription = (EditText)findViewById(R.id.inscriptionGSMEdit);\n mdpInscription = (EditText)findViewById(R.id.inscriptionPSWEdit);\n mdpConfirmation = (EditText)findViewById(R.id.inscriptionConfirmEdit);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (csm_ed_starter1.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_starter1_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_starter2.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_starter2_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_starter3.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_starter3_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_course1.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_course1_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_course2.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_course2_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_course3.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_course3_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_dessert1.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_dessert1_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_dessert2.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_dessert2_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_dessert3.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Name_Field_dessert3_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_starter1_price1.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_starter1_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_starter2_price2.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_starter2_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_starter3_price3.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_starter3_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_course1_price1.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_course1_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_course2_price2.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_course2_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_course3_price3.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_course3_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_dessert1_price1.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_dessert1_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_dessert2_price2.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_dessert2_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_dessert3_price3.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_Price_Field_dessert3_null,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tif (csm_ed_wine_glass_min_price.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_min_price_glass_wine,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse if (csm_ed_wine_glss_max_price.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_max_price_glass_wine,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (Integer.parseInt(csm_ed_wine_glass_min_price.getText()\n\t\t\t\t\t\t\t.toString()) > Integer\n\t\t\t\t\t\t\t.parseInt(csm_ed_wine_glss_max_price.getText()\n\t\t\t\t\t\t\t\t\t.toString())) \n\t\t\t\t\t{\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\tR.string.str_min_price_glass_wine_greater,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tif (csm_ed_wine_bottel_min_price.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_min_price_bottle_wine,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse if (csm_ed_wine_bottel_max_price.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_max_price_bottle_wine,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (Integer.parseInt(csm_ed_wine_bottel_min_price.getText()\n\t\t\t\t\t\t\t.toString()) > Integer\n\t\t\t\t\t\t\t.parseInt(csm_ed_wine_bottel_max_price.getText()\n\t\t\t\t\t\t\t\t\t.toString())) {\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\tR.string.str_min_price_bottle_wine_greater,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (csm_ed_bottel_of_water.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_price_bottle_water, Toast.LENGTH_LONG)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t}\n\t\t\t\telse if (csm_ed_half_bootel_price.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_price_half_bottle_water,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (Integer.parseInt(csm_ed_half_bootel_price.getText()\n\t\t\t\t\t\t\t.toString()) > Integer\n\t\t\t\t\t\t\t.parseInt(csm_ed_bottel_of_water.getText()\n\t\t\t\t\t\t\t\t\t.toString())) {\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\tR.string.str_price_full_bottle_water_greater,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (csm_ed_min_glass_of_champ.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_min_price_glass_Champagne,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse if (csm_ed_max_bottel_of_champ.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_max_price_glass_Champagne,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (Integer.parseInt(csm_ed_min_glass_of_champ.getText()\n\t\t\t\t\t\t\t.toString()) > Integer\n\t\t\t\t\t\t\t.parseInt(csm_ed_max_bottel_of_champ.getText()\n\t\t\t\t\t\t\t\t\t.toString())) {\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\tR.string.str_price_glass_Champagne_greater,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (csm_min_ed_coffee.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_min_price_cup_Coffee,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse if (csm_max_ed_coffee.getText().length() == 0) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.str_max_price_cup_Coffee,\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (Integer\n\t\t\t\t\t\t\t.parseInt(csm_min_ed_coffee.getText().toString()) > Integer\n\t\t\t\t\t\t\t.parseInt(csm_max_ed_coffee.getText().toString())) {\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\tR.string.str_price_cup_Coffee_greater,\n\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"flag\" + flag);\n\t\t\t\tif (flag == true) {\n\t\t\t\t\tnew update_setmenu().execute();\n\t\t\t\t} else {\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\n\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\tif(isShowDialog)\n\t\t\t\t\t\treturn;\n\t\t\t\t\tisShowDialog=true;\n\t\t\t\t\tfinal Button selectedButton=(Button)view;\n\t\t\t\t\tString dialogTitle=\"\";\n\t\t\t\t\tfinal EditText contentEditText = new EditText(PlayerMenu.this);\n\t\t\t\t\tif(selectedButton==te_ipEditText){\n\t\t\t\t\t\tdialogTitle=\"Server IP :\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(selectedButton==te_portEditText){\n\t\t\t\t\t\tdialogTitle=\"Server Port :\";\n\t\t\t\t\t}\n\t\t\t\t\tcontentEditText.setText(selectedButton.getText());\n\t\t\t\t\tcontentEditText.setSelection(selectedButton.getText().length());\n\t\t\t\t\tdialogBuilder =new Builder(PlayerMenu.this)\n\t\t\t\t\t.setTitle(\"Please input \"+dialogTitle) \n\t\t\t\t\t.setIcon(android.R.drawable.ic_dialog_info) \n\t\t\t\t\t.setView(contentEditText) \n\t\t\t\t\t.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {//���ȷ����ť \n\t\t\t\t \t @Override \n\t\t\t\t public void onClick(DialogInterface dialog, int which) {//ȷ����ť����Ӧ�¼� \n\t\t\t\t \t\t isShowDialog=false;\n\t\t\t\t \t }\n\t\t\t\t\t}).setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {//���ȷ����ť \n\t\t\t\t \t @Override \n\t\t\t\t public void onClick(DialogInterface dialog, int which) {//ȷ����ť����Ӧ�¼� \n\t\t\t\t \t\t String editTextString=contentEditText.getText().toString();\n\t\t\t\t \t\t selectedButton.setText(editTextString);\n\t\t\t\t \t\t if(selectedButton==te_ipEditText){\n\t\t\t\t \t\t\t MainActivity.Instance.PlayerSetting.setServerIP(editTextString);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t else if(selectedButton==te_portEditText){\n\t\t\t\t\t\t\t\t MainActivity.Instance.PlayerSetting.setServerPort(editTextString);\n\t\t\t\t\t\t\t }\n\t\t\t\t \t\t isModifySetting=true;\n\t\t\t\t \t\t isShowDialog=false;\n\t\t\t\t } \n\t\t\t\t });\n\t\t\t\t\tdialogBuilder.setCancelable(false);\n\t\t\t\t\tdialog=dialogBuilder.show(); \n\t\t\t\t\tpositiveButton=((AlertDialog)dialog).getButton(AlertDialog.BUTTON_POSITIVE);\n\t\t\t\t\tcontentEditText.addTextChangedListener(new TextWatcher() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onTextChanged(CharSequence text, int arg1, int arg2, int arg3) {\n\t\t\t\t\t\t\tString filter=\"\";\n\t\t\t\t\t\t\tif(selectedButton==te_ipEditText)\n\t\t\t\t\t\t\t\tfilter=\"^(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))$\";\n\t\t\t\t\t\t\telse filter=\"^[1-9]\\\\d*\";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(text.toString().matches(filter))\n\t\t\t\t\t\t\t\tpositiveButton.setEnabled(true);\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tpositiveButton.setEnabled(false);\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\t@Override\n\t\t\t\t\t\tpublic void beforeTextChanged(CharSequence arg0, int arg1, int arg2,int arg3) {}\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void afterTextChanged(Editable arg0) {}\n\t\t\t\t\t});\n\t\t\t\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n Button button = (Button) findViewById((R.id.Bbli));\n Button buttPlus = (Button) findViewById(R.id.Bplus);\n Button buttRaz = (Button) findViewById(R.id.Braz);\n final EditText nbOne = (EditText)findViewById(R.id.nbOne);\n final EditText nbTwo = (EditText) findViewById(R.id.nbTwo);\n final EditText resul = (EditText) findViewById(R.id.resultat);\n button.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View view) {\n //To change body of implemented methods use File | Settings | File Templates.\n Toast msg = Toast.makeText(NicogetActivity.this, \"Je confirme !\", Toast.LENGTH_LONG);\n msg.setGravity(Gravity.CENTER, msg.getXOffset()/2, msg.getYOffset()/2);\n msg.show();\n }\n });\n\n buttPlus.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View view) {\n try {\n int nbOneInt = Integer.parseInt(nbOne.getText().toString());\n int nbTwoInt = Integer.parseInt(nbTwo.getText().toString());\n int resulInt = Integer.parseInt(resul.getText().toString());\n resulInt = resulInt + (nbOneInt+nbTwoInt);\n resul.setText(String.valueOf(resulInt));\n } catch (Exception err) {\n Toast msg = Toast.makeText(NicogetActivity.this, err.getMessage(), Toast.LENGTH_LONG);\n msg.setGravity(Gravity.CENTER, msg.getXOffset()/2, msg.getYOffset()/2);\n msg.show();\n }\n }\n });\n\n buttRaz.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View view) {\n resul.setText(\"0\");\n }\n });\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetFinishOnTouchOutside(false);\n\t\tsetContentView(R.layout.edittext_view);\n\t\tLogUtils.d(\"EditTextActivity Oncreate is in \");\n\t\t\n\t\tBundle bundle = this.getIntent().getExtras();\n\t\tString bundlepar = (String) bundle.get(\"openflag\");\n\t\t\n\t\tInitFindViewID();\n\t\tsetListener();\n\t\t\n\t\tLogUtils.d(\"lrui 20151016 ShowPopupWindow bundlepar is ==>\" + bundlepar);\n\t\tif(bundlepar.equalsIgnoreCase(\"TRUE\")){\n\t\t\ttextViewOk.setVisibility(View.VISIBLE);\n\t\t\ttextViewAgain.setVisibility(View.GONE);\n\t\t}else if(bundlepar.equalsIgnoreCase(\"FALSE\")){\n\t\t\ttextViewOk.setVisibility(View.GONE);\n\t\t\ttextViewAgain.setVisibility(View.VISIBLE);\n\t\t}\n\t\t\n\t\tbut_Ok.setOnClickListener(this);\n\t\tbut_Cancle.setOnClickListener(this);\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t\taddView = (TextView) findViewById(R.id.id_submit_view);\r\n\t\taddView.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tgatewayId = gatewayView.getEditableText().toString();\r\n\t\t\t\tLog.i(TAG, \"gatewayId \" + gatewayId.trim());\r\n\t\t\t\tgatewayId = gatewayId.trim();\r\n\t\t\t\tif(gatewayId.trim().isEmpty()){\r\n\t\t\t\t\tbindHintView.setVisibility(View.VISIBLE);\r\n\t\t\t\t\tbindbarView.setVisibility(View.GONE);\r\n\t\t\t\t\tbindHintView.setText(R.string.bind_gateway_none);\r\n\t\t\t\t\tbindHintView.setTextColor(getResources().getColor((R.color.red)));\r\n\t\t\t\t}else {\r\n\t\t\t\t\tsetHintVisible(true);\r\n\t\t\t\t\tnew Thread(new BindRunnale()).start();\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\n TextView txtTitulo;\n Button btnGuardar;\n final TextInputEditText txtTituloPost;\n final TextInputEditText txtContenidoPost;\n\n dialogAgregarPost.setContentView(R.layout.activity_agregar);\n dialogAgregarPost.setCancelable(true);\n dialogAgregarPost.create();\n dialogAgregarPost.show();\n\n txtTitulo=dialogAgregarPost.findViewById(R.id.txtTitulo);\n btnGuardar=dialogAgregarPost.findViewById(R.id.btnGuardar);\n\n txtTituloPost=dialogAgregarPost.findViewById(R.id.titulo);\n txtContenidoPost=dialogAgregarPost.findViewById(R.id.contenido);\n\n\n //****** SE CREA UNA VARIABLE ESTÁTICA \"agregarEditar\" PARA VALIDAR Y CAMBIARLE EL TÍTULO AL DIALOG SEGÚN SEA INSERCION O ACTUALIZACION******//\n\n\n agregarEditar=\"AGREGAR\";\n\n if(PostActivity.agregarEditar==\"AGREGAR\")\n {\n txtTitulo.setText(\"AGREGAR POST\");\n }\n else\n {\n txtTitulo.setText(\"EDITAR POST\");\n }\n\n //****** EVENTO CLICK DE GUARDAR EN EL FORM DE INSERCION DE POSTS ******//\n\n btnGuardar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n //****** SE CREA LA URL ******//\n String url = \"https://jsonplaceholder.typicode.com/posts\";\n\n //****** SE CREA UNA SOLICITUD DE COLA DONDE SE LE MANDA EL MÉTODO \"POST\", LA URL Y SE CREAN LOS EVENTOS \"RESPONSE\" Y \"ON ERROR RESPONSE\" ******//\n\n StringRequest requestCrearPost = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n //****** SI LA SOLICITUD SE COMPLETA CORRECTAMENTE Y EL RESPONSE ES \"OK\", SE MUESTRA UN TOAST DE CONFIRMACIÓN Y SE RE-CREA LA ACTIVIDAD******//\n Toast.makeText(PostActivity.this, \"POST CREADO CORRECTAMENTE\", Toast.LENGTH_SHORT).show();\n recreate();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n //****** SI LA SOLICITU NO SE COMPLETA CORRECTAMENTE, SE MUESTRA UN TOAST CON EL ERROR ******//\n Toast.makeText(getApplicationContext(), error.toString(), Toast.LENGTH_SHORT).show();\n\n }\n }) {\n\n //****** SE MAPEAN Y SE RETORNAN LOS PARÁMETROS MANDÁNDOLE EL NOMBRE (COMO LO PIDE EL SERVIDOR) Y EL VALOR ******//\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", txtTituloPost.getText().toString());\n params.put(\"body\", txtContenidoPost.getText().toString());\n params.put(\"userId\", MainActivity.idUsuario);\n\n return params;\n }\n };\n //****** SE AGREGA A LA COLA DE SOLICITUDES LA SOLICITUD \"requestCrearPost\" ******//\n queue.add(requestCrearPost);\n }\n\n });\n\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n //getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n\n hours = (EditText) findViewById(R.id.HoursET);\n tipBonus = (EditText) findViewById(R.id.TipForsSalET);\n travelers = (EditText) findViewById(R.id.HowManyTravelersET);\n distance = (EditText) findViewById(R.id.DistanceET);\n parking = (EditText) findViewById(R.id.ParkingET);\n privateTip = (EditText) findViewById(R.id.PrivateTipET);\n waitersTip = (EditText) findViewById(R.id.WaitersTipET);\n locationET = (EditText) findViewById(R.id.locationET);\n manualSalaryTV = (TextView) findViewById(R.id.ManuallySalC);\n\n dateTV = (TextView) findViewById(R.id.DateTV);\n timeStartTV = (TextView) findViewById(R.id.timeStartTV);\n timeEndTV = (TextView) findViewById(R.id.timeEndTV);\n sumTv = (TextView) findViewById(R.id.sumTV);\n sumCashTV = (TextView) findViewById(R.id.sumCash);\n drivesP = (TextView) findViewById(R.id.drivesTV);\n tipP = (TextView) findViewById(R.id.TipTv);\n manualSalaryET = (EditText) findViewById(R.id.ManualSalET);\n idForRes=(TextView)findViewById(R.id.IdForRes);\n\n\n commentsET = (EditText) findViewById(R.id.CommentsET);\n\n drivesP.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (!flagDrive) {\n distance.setVisibility(View.VISIBLE);\n parking.setVisibility(View.VISIBLE);\n flagDrive = true;\n } else {\n distance.setVisibility(View.GONE);\n parking.setVisibility(View.GONE);\n flagDrive = false;\n }\n\n }\n });\n\n tipP.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (!flagTip) {\n privateTip.setVisibility(View.VISIBLE);\n waitersTip.setVisibility(View.VISIBLE);\n tipBonus.setVisibility(View.VISIBLE);\n flagTip = true;\n } else {\n privateTip.setVisibility(View.GONE);\n waitersTip.setVisibility(View.GONE);\n tipBonus.setVisibility(View.GONE);\n flagTip = false;\n }\n\n }\n });\n final Intent intentA = new Intent(this, SetWorksActivity.class);\n\n if (db.getAllWorks().size() == 0) {\n startActivity(intentA);\n }\n else {\n spinner = (Spinner) findViewById(R.id.spinnerTE);\n\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, getWorksName());\n// Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n// Apply the adapter to the spinner\n spinner.setAdapter(adapter);\n spinner.setOnItemSelectedListener(this);\n\n if (db.getAllWorks().get(workIdPosition).getTypeOfDrive() < 2)\n distance.setHint(R.string.MainDriveManually);\n\n\n\n Intent intent = getIntent();\n id = intent.getIntExtra(\"id\", 9999);\n if (id != 9999)\n flagIsUpdate = true;\n\n if(!flagIsUpdate) {\n if (db.getAllWorks().get(workIdPosition).getTypeOfDrive() == 1)\n distance.setText(String.valueOf(db.getAllWorks().get(workIdPosition).getPerKilometer()));\n if(intent.getStringExtra(\"date\")!=null) {\n dateCalender = intent.getStringExtra(\"date\");\n dateTV.setText(dateCalender);\n date=dateCalender;\n }\n }\n\n\n if (flagIsUpdate)\n updateShift();\n\n }\n }", "private void onLoadButtonPressed() {\n EditText name = ((EditText) findViewById(R.id.name_edit_text));\n EditText number = ((EditText) findViewById(R.id.number_edit_text));\n if (name.getText().toString().equals(\"\")) {\n Toast.makeText(MainActivity.this, \"Empty string is not valid!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n// String num = sharedPrefs.getString(name.getText().toString(), \"Contact don't exist.\");\n// number.setText(num);\n\n try (Cursor cursor = database.query(\n ContactDbSchema.TABLE_NAME,\n null,\n ContactDbSchema.Cols.NAME + \" = ? \",\n new String[]{name.getText().toString()},\n null, null, null)) {\n cursor.moveToFirst();\n\n if (cursor.isAfterLast()) {\n Toast.makeText(MainActivity.this, \"Error! The contact was not found.\", Toast.LENGTH_SHORT).show();\n return;\n }\n int colIndex = cursor.getColumnIndex(ContactDbSchema.Cols.NUMBER);\n if (colIndex < 0) {\n Toast.makeText(MainActivity.this, \"Error! The contact was not found in cursor.\", Toast.LENGTH_SHORT).show();\n return;\n }\n String numberStr = cursor.getString(colIndex);\n number.setText(numberStr);\n\n }\n }", "private void setupUI() {\n bankInput = (EditText) findViewById(R.id.bank_Input);\n startDateInput = (EditText) findViewById(R.id.start_Date_Input);\n endDateInput = (EditText) findViewById(R.id.end_Date_Input);\n amountInput = (EditText) findViewById(R.id.amount_Input);\n annualizedYieldInput = (EditText) findViewById(R.id.annualized_Yield_Input);\n expectedInterestInput = (EditText) findViewById(R.id.expected_Interest_Input);\n\n //Set Text Watcher to update interest\n bankInput.addTextChangedListener(mInterestTextWatcher);\n amountInput.addTextChangedListener(mInterestTextWatcher);\n annualizedYieldInput.addTextChangedListener(mInterestTextWatcher);\n amountInput.setOnFocusChangeListener(mOnFocusChangeListener);\n annualizedYieldInput.setOnFocusChangeListener(mOnFocusChangeListener);\n\n //set date field listener\n startDateInput.setOnFocusChangeListener(new View.OnFocusChangeListener(){\n @Override\n public void onFocusChange (View v, boolean hasFocus){\n Toast.makeText(getApplicationContext(),\"onFocusChange\",Toast.LENGTH_SHORT).show();\n if (hasFocus){\n Toast.makeText(getApplicationContext(),\"onFocusChange\",Toast.LENGTH_SHORT).show();\n showDatePicker((EditText) v, true);\n }\n }\n } );\n startDateInput.setInputType(InputType.TYPE_NULL);\n startDateInput.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n if (v.hasFocus()){\n showDatePicker((EditText)v, true);\n }\n }\n });\n endDateInput.setOnFocusChangeListener(new View.OnFocusChangeListener(){\n @Override\n public void onFocusChange (View v, boolean hasFocus){\n if (hasFocus){\n showDatePicker((EditText) v, false);\n }\n }\n } );\n endDateInput.setInputType(InputType.TYPE_NULL);\n endDateInput.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n if (v.hasFocus()){\n showDatePicker((EditText)v, false);\n }\n }\n });\n\n mSavingsBean = getIntent().getParcelableExtra(Constants.INTENT_EXTRA_SAVINGS_ITEM_PARCEL);\n if (mSavingsBean != null) {\n // set data to UI\n bankInput.setText(mSavingsBean.getBankName());\n startDateInput.setText(Utils.formatDate(mSavingsBean.getStartDate()));\n endDateInput.setText(Utils.formatDate(mSavingsBean.getEndDate()));\n amountInput.setText(Utils.formatFloat(mSavingsBean.getAmount()));\n annualizedYieldInput.setText(Utils.formatFloat(mSavingsBean.getYield()));\n expectedInterestInput.setText(Utils.formatFloat(mSavingsBean.getInterest()));\n\n // update the buttons\n ((Button) findViewById(R.id.save_Button)).setText(R.string.update);\n ((Button) findViewById(R.id.cancel_Button)).setText(R.string.delete);\n\n mEditMode = true;\n // update the data in this screen\n mStartDate = new Date(mSavingsBean.getStartDate());\n mEndDate = new Date(mSavingsBean.getEndDate());\n mAmount = mSavingsBean.getAmount();\n mYield = mSavingsBean.getYield();\n mInterest = mSavingsBean.getInterest();\n Log.d(Constants.LOG_TAG, \"Edit mode, displayed existing savings item:\");\n Log.d(Constants.LOG_TAG, mSavingsBean.toString());\n\n }\n }", "private void initViews() {\n\t\t\tfirstTimeEditor=(EditText) findViewById(R.id.get_one_square_first_time_editor);\r\n\t\t\tlastTimeEditor=(EditText) findViewById(R.id.get_one_square_last_time_editor);\r\n\t\t\t\r\n\t\t\tfirstLatitudeEditor=(EditText) findViewById(R.id.get_one_square_first_latitude_editor);\r\n\t\t\tsecondLatitudeEditor=(EditText) findViewById(R.id.get_one_square_second_latitude_editor);\r\n\t\t\t\r\n\t\t\tfirstLongitudeEditor=(EditText) findViewById(R.id.get_one_square_first_longitude_editor);\r\n\t\t\tsecondLongitudeEditor=(EditText) findViewById(R.id.get_one_square_second_longitude_editor);\r\n\t\t\t\r\n\t\t\tsureBtn=(Button) findViewById(R.id.get_one_square_sureBtn);\r\n\t\t\tsureBtn.setOnClickListener(new OnClickListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\r\n\t\t\t\t\tgetInputContent();\r\n\t\t\t\t\tif(checkInputContent())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tIntent intent=getIntent();\r\n\t\t\t\t\t\tBundle bundle=new Bundle();\r\n\t\t\t\t\t\tbundle.putString(\"firstTime\", firstTime);\r\n\t\t\t\t\t\tbundle.putString(\"lastTime\", lastTime);\r\n\t\t\t\t\t\tbundle.putString(\"firstLatitude\", firstLatitude);\r\n\t\t\t\t\t\tbundle.putString(\"secondLatitude\", secondLatitude);\r\n\t\t\t\t\t\tbundle.putString(\"firstLongitude\", firstLongitude);\r\n\t\t\t\t\t\tbundle.putString(\"secondLongitude\", secondLongitude);\r\n\t\t\t\t\t\tbundle.putString(Arguments.FINISH,Arguments.FINISH);\r\n\t\t\t\t\t\tintent.putExtras(bundle);\r\n\t\t\t\t\t\tsetResult(Arguments.GET_TIME_AND_RANGE_FROM_ONE_SPACE, intent);\r\n\t\t\t\t\t\tGetTimeRangeFromOneSpaceAty.this.finish();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse Toast.makeText(GetTimeRangeFromOneSpaceAty.this, \"ÊäÈëÓдí............\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}", "private void init() {\n\t\ttxt_account=(TextView) findViewById(R.id.txt_account);\n\t\ttxt_passwd=(TextView) findViewById(R.id.txt_passwd);\n\t\ttxt_passwd_again=(TextView) findViewById(R.id.txt_passwd_again);\n\t\ttxt_hit=(TextView) findViewById(R.id.txt_hit);\n\t\ttxt_hit.setVisibility(View.GONE);\n\t\t\n\t\tedt_account=(EditText) findViewById(R.id.edt_zhanghao);\n\t\tedt_passwd=(EditText) findViewById(R.id.edt_mima);\n\t\tedt_passwd_again=(EditText) findViewById(R.id.edt_passwd_again);\n\t\t\n\t\t\n\t\tbtn_ok=(Button) findViewById(R.id.btn_ok);\n\t\tbtn_ok.setOnClickListener(this);\n\t}", "public void continueOne(View view){\n EditText firstName= (EditText) findViewById(R.id.firstName);\n String firstNameString = firstName.getText().toString();\n EditText lastName= (EditText) findViewById(R.id.lastName);\n String lastNameString= lastName.getText().toString();\n EditText studentID= (EditText) findViewById(R.id.studentId);\n String studentIDString= studentID.getText().toString();\n\n /**Toasts are the things that are like mini notifications that you'll see at the bottom of the screen.*/\n Context context = getApplicationContext();\n CharSequence text = \"Let's do this, \" + firstNameString + \"!\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n /**The following is an intent to start the next activity (mainCodeOne), and carry the key user data with it. MainActivityOne*/\n Intent intentOne = new Intent(this, AndroidBarcodeActivityOne.class);\n intentOne.putExtra(\"firstNameString\", firstNameString);\n intentOne.putExtra(\"lastNameString\", lastNameString);\n intentOne.putExtra(\"studentIDString\", studentIDString);\n startActivity(intentOne);\n\n\n }", "@Override\n\tpublic void onClick(View v) {\n\t\t// TODO Auto-generated method stub\n\n\t\tif (getCurrentFocus() != null\n\t\t\t\t&& getCurrentFocus().getWindowToken() != null) {\n\t\t\tinputMethodManager.hideSoftInputFromWindow(getCurrentFocus()\n\t\t\t\t\t.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n\t\t}\n\n\t\tswitch (v.getId()) {\n\t\tcase R.id.layout_head_back:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tcase R.id.tv_agreement:\n\t\t\tString webViewUrl = \"http://manage.55178.com/mobile/page/shiyongxieyi.html\";\n\t\t\tString titleString = \"握握贷用户协议\";\n\t\t\tIntent intent = new Intent(context, Baozhang_detailActivity.class);\n\t\t\tintent.putExtra(\"webViewUrl\", webViewUrl);\n\t\t\tintent.putExtra(\"titleString\", titleString);\n\t\t\tstartActivity(intent);\n\n\t\t\tbreak;\n\t\tcase R.id.btn_ok:\n\t\t\tswitch (currentNO) {\n\t\t\tcase 1:\n\t\t\t\tif (!ckb_ok.isChecked()) {\n\t\t\t\t\tToast.makeText(context, \"请同意用户协议\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tLog.i(\"\", \"---et_one.getText()\"\n\t\t\t\t\t\t+ et_one.getText().toString().length());\n\n\t\t\t\tif (et_one.getText().toString().length() < 1) {\n\t\t\t\t\tToast.makeText(context, \"请输入用户名\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (et_two.getText().length() < 5) {\n\t\t\t\t\tToast.makeText(context, \"请输入正确的手机号\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tphoneNO = et_two.getText().toString();\n\n\t\t\t\t\tuserName = et_one.getText().toString();\n\n\t\t\t\t\tgetIdentifyingCode();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\tcase 2:\n\t\t\t\tuser_identifyingCode = et_one.getText().toString().trim();\n\t\t\t\tLog.i(\"\", \"---user_identifyingCode\"+user_identifyingCode);\n\t\t\t\tsubmitIdentifyingCode();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tif (et_one.getText() == null) {\n\t\t\t\t\tToast.makeText(context, \"请输入密码\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (et_two.getText() == null) {\n\t\t\t\t\tToast.makeText(context, \"请再次输入密码\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tString fristPswd = et_one.getText().toString();\n\t\t\t\tString secondPswd = et_two.getText().toString();\n\t\t\t\tif (!fristPswd.equals(secondPswd)) {\n\t\t\t\t\tToast.makeText(context, \"两次输入的密码不一致\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tuserPswd = fristPswd;\n\t\t\t\tregister();\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase R.id.btn_invite:\n\t\t\tToast.makeText(context, \"邀请\", Toast.LENGTH_SHORT).show();\n\t\t\tbreak;\n\t\tcase R.id.btn_head_ok:\n\t\t\tcurrentNO = 1;\n\t\t\tgetIdentifyingCode();\n\n\t\t\tbreak;\n\t\tcase R.id.tv_head_ok:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.part_layout);\n \n editTextforAll();\n setDoneButtonListener();\n setSafetyButtonListener();\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\tString retrieveFirstName = firstName.getText().toString();\n\t\t\t\t\tString retrieveLastName = lastName.getText().toString();\n\t\t\t\t\tString retrieveNumber = number.getText().toString();\n\t\t\t\t\tString retrieveEmail = email.getText().toString();\n\t\t\t\t\tString retrieveAddress = address.getText().toString();\n\t\t\t\t\tString retrieveDate = date.getText().toString();\n\t\t\t\t\tString retrieveNumberSpinner = numberSpinner.getSelectedItem().toString();\n\t\t\t\t\tString retrieveEmailSpinner = emailSpinner.getSelectedItem().toString();\n\t\t\t\t\tString retrieveAddressSpinner = addressSpinner.getSelectedItem().toString();\n\t\t\t\t\tString retrieveDateSpinner = dateSpinner.getSelectedItem().toString();\n\n\t\t\t\t\t//convert the image from a bit map to byte array\n\t\t\t\t\tBitmapDrawable bmd = ((BitmapDrawable) editPic.getDrawable());\n\t\t\t\t\tBitmap photo = bmd.getBitmap();\n\t\t\t\t\tByteArrayOutputStream stream = new ByteArrayOutputStream();\n\t\t\t\t\tphoto.compress(Bitmap.CompressFormat.PNG, 90, stream);\n\t\t\t\t\tbyte[] byteArray = stream.toByteArray();\n\n\t\t\t\t\t//if the user does not add a firstname, a error \n\t\t\t\t\t//is thrown and the user must add a first name.\n\t\t\t\t\tif(firstName.getText().toString().length() == 0) {\n\t\t\t\t\t\tfirstName.setError(\"A contact must be provided a first name\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tContact replaceContact = new Contact(retrieveFirstName, retrieveLastName, retrieveNumber, retrieveNumberSpinner, retrieveEmail, retrieveEmailSpinner, retrieveDate, retrieveDateSpinner, retrieveAddress, retrieveAddressSpinner,byteArray, currentContact.getFavourite());\n\t\t\t\t\t\t//and update the contact inside the database\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdatabaseHandler.openDataBase();\n\t\t\t\t\t\t\tdatabaseHandler.updateContact(replaceContact, currentContact.getFirstName(), currentContact.getLastName());\n\t\t\t\t\t\t\tdatabaseHandler.close();\n\t\t\t\t\t\t} catch (SQLException sqle) {\n\t\t\t\t\t\t\tthrow sqle;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//after saving all the information, we go back to the MainActivity\n\n\t\t\t\t\t\tIntent intentSave = new Intent(getApplicationContext(),MainActivity.class);\n\t\t\t\t\t\tintentSave.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\t\t\tstartActivity(intentSave);\n\n\t\t\t\t\t}\n\n\t\t\t\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n infoLog(\"onCreate\");\n //Lets initialise each ui object\n mEdiAnimalName = findViewById(R.id.edit_animal);\n mEditNumberOfLegs = findViewById(R.id.edit_number_of_legs);\n\n //Lets initialise button object\n mBtnSendData = findViewById(R.id.btn_start_activity);\n\n //Lets assigns button click listener\n mBtnSendData.setOnClickListener(new View.OnClickListener() {\n\n //This method will be called when user taps the button\n @Override\n public void onClick(View view) {\n\n //Lets take user input and send that to another activity\n String name = mEdiAnimalName.getText().toString().trim();\n String numbeOfLegs = mEditNumberOfLegs.getText().toString().trim();\n\n\n //Lets see if any of them is empty, if so, ask user to enter input by showing a toast\n if (name == null || name.isEmpty() || numbeOfLegs == null || numbeOfLegs.isEmpty()) {\n showToast(\"Please enter both values\");\n return;\n }\n // Lets check if user has entered any non-integer for the number of legs input\n\n int legsCount = 0;\n try {\n legsCount = Integer.parseInt(numbeOfLegs);\n } catch (NumberFormatException ne) {\n showToast(\"Please enter an integer for legs\");\n //lets clear the current input for legs\n mEditNumberOfLegs.setText(\"\");\n ne.printStackTrace();\n return;\n }\n\n\n //Intent extras are used to send data between activities\n //Lets create an intent to start another activity\n //Note that since we know which activity to start, we are mentioning the name of that activity\n //this is called Explicit Activity\n Intent newActivity = new Intent(MainActivity.this, SecondActivity.class);\n\n //Lets put some extras into the intent\n newActivity.putExtra(\"NAME\", name);\n newActivity.putExtra(\"LEGS\", legsCount);\n\n //Lets now start that activity using the intent that we have build above\n startActivity(newActivity);\n\n }\n });\n\n\n }", "public void onClick(View view){ // that executes the following code.\n // Take the text input to the EditText field...\n String changeText = editV.getText().toString();\n // and set the TextView to that input.\n textV.setText(changeText);\n }", "public void call()\n\t{\n\n\t\t\n\t\t\n\t\twadds=(EditText)findViewById(R.id.wadd);\n\t\tcomadd=(EditText)findViewById(R.id.compadd);\n\t\tepah=(EditText)findViewById(R.id.epah);\n\t\tnn=(EditText)findViewById(R.id.nname);\n\t\tbir=(EditText)findViewById(R.id.birth);\n\t\taniv=(EditText)findViewById(R.id.ani);\n\t\teorgwc=(EditText)findViewById(R.id.eorgcw);\n\t\teorgoc=(EditText)findViewById(R.id.eorgco);\n\t\teorgwp=(EditText)findViewById(R.id.eorgpw);\n\t\teorgop=(EditText)findViewById(R.id.eorgpo);\n\t\tepaw=(EditText)findViewById(R.id.epaw);\n\t\tepao=(EditText)findViewById(R.id.epao);\n\t\taddmoreorg=(Button)findViewById(R.id.borg);\n\t\taddmorepa=(Button)findViewById(R.id.bpa);\n\t\trempah=(Button)findViewById(R.id.bpah);\n\t\tremorgw=(Button)findViewById(R.id.borgw);\n\t\tremorgo=(Button)findViewById(R.id.borgo);\n\t\trempaw=(Button)findViewById(R.id.bpaw);\n\t\trempao=(Button)findViewById(R.id.bpao);\n\t\tspah=(Spinner)findViewById(R.id.spah);\n\t\tsorgw=(Spinner)findViewById(R.id.sorgw);\n\t\tsorgo=(Spinner)findViewById(R.id.sorgo);\n\t\tspaw=(Spinner)findViewById(R.id.spaw);\n\t\tspao=(Spinner)findViewById(R.id.spao);\n\t\t\n\t\t\t\n\t\t//Organization spinner for work\n\t\t\n\t\tadapterorgw = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterorgw.add(\"Work\");\n\t\tadapterorgw.add(\"Home\");\n\t\tadapterorgw.add(\"Other\");\n\t\tadapterorgw.add(\"Custom\");\n\t\tsorgw.setAdapter(adapterorgw);\n\t\t\n\t\t//Organization spinner for other\n\t\t\n\t\tadapterorgo = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterorgo.add(\"Other\");\n\t\tadapterorgo.add(\"Work\");\n\t\tadapterorgo.add(\"Home\");\n\t\tadapterorgo.add(\"Custom\");\n\t\tsorgo.setAdapter(adapterorgo);\n\t\t\n\t\t//Postal address spinner for home\n\t\t\n\t\tadapterpah = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterpah.add(\"Home\");\n\t\tadapterpah.add(\"Work\");\n\t\tadapterpah.add(\"Other\");\n\t\tadapterpah.add(\"Custom\");\n\t\tspah.setAdapter(adapterpah);\n\t\t\n\t\t//Postal Address spinner for work\n\t\t\n\t\tadapterpaw = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterpaw.add(\"Work\");\n\t\tadapterpaw.add(\"Other\");\n\t\tadapterpaw.add(\"Custom\");\n\t\tspaw.setAdapter(adapterpaw);\n\t\t\n\t\t//Postal Address spinner for other\n\t\t\n\t\tadapterpao = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterpao.add(\"Other\");\n\t\tadapterpao.add(\"Work\");\n\t\tadapterpao.add(\"Custom\");\n\t\tspao.setAdapter(adapterpao);\n\t\t\n\t\tflag2=1;\t\n\t\t//Add More fields button for org\n\t\t\n\t\taddmoreorg.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t if(flag2==1)\n\t\t\t\t{\n\t\t\t\t\teorgoc.setVisibility(0);\n\t\t\t\t eorgop.setVisibility(0);\n\t\t\t\t sorgo.setVisibility(0);\n\t\t\t\t remorgo.setVisibility(0);\n\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//remove org field for work\n\t\t\n\t\tremorgw.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\teorgwc.setVisibility(View.GONE);\n\t\t\t eorgwp.setVisibility(View.GONE);\n\t\t\t sorgw.setVisibility(View.GONE);\n\t\t\t remorgw.setVisibility(View.GONE);\n\t\t\t flag2=0;\n\t\t\t flag2=1;\n\t\t\t flag2=2;\n\t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\t//remove org field for other\n\t\t\n\t\tremorgo.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\teorgoc.setVisibility(View.GONE);\n\t\t\t eorgop.setVisibility(View.GONE);\n\t\t\t sorgo.setVisibility(View.GONE);\n\t\t\t remorgo.setVisibility(View.GONE);\n\t\t\t flag2=0;\n\t\t\t flag2=1;\n\t\t\t flag2=2;\n\t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\tflag3=1;\t\n\t\t//Add More fields button for org\n\t\t\n\t\taddmorepa.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t if(flag3==1)\n\t\t\t\t{\n\t\t\t epaw.setVisibility(0);\n\t\t\t spaw.setVisibility(0);\n\t\t\t rempaw.setVisibility(0);\n\t\t\t \n\t\t\t flag3=2;\n\t\t\t\t}\n\t\t\t\telse if(flag3==2)\n\t\t\t\t{\n\t\t\t epao.setVisibility(0);\n\t\t\t spao.setVisibility(0);\n\t\t\t rempao.setVisibility(0);\n\t\t\t flag3=1;\n\t\t\t \n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\t//remove postal add field for home\n\t\t\n\t\trempah.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tepah.setVisibility(View.GONE);\n\t\t\t spah.setVisibility(View.GONE);\n\t\t\t rempah.setVisibility(View.GONE);\n\t\t\t flag3=0;\n\t\t\t flag3=1;\n\t\t\t flag3=2;\n\t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t//remove postal address field for work\n\t\t\n\t\trempaw.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tepaw.setVisibility(View.GONE);\n\t\t\t spaw.setVisibility(View.GONE);\n\t\t\t spaw.setVisibility(View.GONE);\n\t\t\t rempaw.setVisibility(View.GONE);\n\t\t\t flag3=0;\n\t\t\t flag3=1;\n\t\t\t flag3=2;\n\t\t\t \t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\t//remove postal address field for other\n\t\t\n\t\trempao.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tepao.setVisibility(View.GONE);\n\t\t\t spao.setVisibility(View.GONE);\n\t\t\t rempao.setVisibility(View.GONE);\n\t\t\t flag3=0;\n\t\t\t flag3=1;\n\t\t\t flag3=2;\n\t\t\t \t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\t\n\t\t\n\t\tsorgw.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog5 = new Dialog(AddContact.this);\n\n\t\t dialog5.setContentView(R.layout.dialog);\n\t\t dialog5.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog5.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog5.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog5.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t {\n\t\t \t addNewSpinnerItem5();\n\t dialog5.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog5.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog5.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\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\n\t\tsorgo.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog6 = new Dialog(AddContact.this);\n\n\t\t dialog6.setContentView(R.layout.dialog);\n\t\t dialog6.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog6.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog6.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog6.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem6();\n\t dialog6.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog6.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog6.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\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\tspah.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog4 = new Dialog(AddContact.this);\n\n\t\t dialog4.setContentView(R.layout.dialog);\n\t\t dialog4.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog4.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog4.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog4.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem4();\n\t dialog4.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog4.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog4.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\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\tspaw.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog7 = new Dialog(AddContact.this);\n\n\t\t dialog7.setContentView(R.layout.dialog);\n\t\t dialog7.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog7.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog7.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog7.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem7();\n\t dialog7.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog7.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog7.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\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\tspao.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog8 = new Dialog(AddContact.this);\n\n\t\t dialog8.setContentView(R.layout.dialog);\n\t\t dialog8.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog8.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog8.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog8.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem8();\n\t dialog8.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog8.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog8.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\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\n data= new DataBaseHelper(this);\n\t\tCursor c1=data.getDataLastName(name);\n\t\tSystem.out.println(\"MYyyyyyyyyyyyyy\"+name);\n\t\twhile(c1.moveToNext())\n\t\t{\n\t\t\tid=c1.getInt(0);\n\t\t\tlname=c1.getString(1);\n\t\t\tSystem.out.println(\"IDDDDDD.....\"+id);\n\t\t\tSystem.out.println(\"LNAme.....\"+lname);\n\t\t}\n\t\tc1.close();\n\t\tbir.setOnTouchListener(new OnTouchListener()\n\t {\n\t \n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1)\n\t\t\t{\n\n\t showDialog(DATE_DIALOG_ID);\n\t\t\t\treturn false;\n\t\t\t}\n\t });\n\n\t\taniv.setOnTouchListener(new OnTouchListener()\n\t {\n\t \n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1)\n\t\t\t{\n\n\t showDialog(DATE_DIALOG_ID);\n\t\t\t\treturn false;\n\t\t\t}\n\t });\n\n\t\t// get the current date and time\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\tupdateDisplay();\n\t\t\n\t}", "public void onCreateButtonClick(View view){\n boolean isInserted;\n\n EditText editFirst = (EditText) findViewById(R.id.First_Name);\n EditText editLast = (EditText) findViewById(R.id.Last_Name);\n EditText editEmail = (EditText) findViewById(R.id.email);\n EditText PWD1 = (EditText) findViewById(R.id.password1ET);\n EditText PWD2 = (EditText) findViewById(R.id.password2ET);\n EditText usernameET = (EditText) findViewById(R.id.UserNameIDET);\n\n if (view.getId() == R.id.btn_CAA){\n\n String password1 = PWD1.getText().toString();\n String password2 = PWD2.getText().toString();\n\n // check password match\n if (!password1.equals(password2) || (password1.equals(\"\")) || (password2.equals(\"\"))){\n\n Toast.makeText(CreateAnAccount.this, \"Passwords do not match!\", Toast.LENGTH_LONG).show();\n }\n else {\n isInserted = mydb.insertData(editFirst.getText().toString(),\n editLast.getText().toString(), editEmail.getText().toString(),\n usernameET.getText().toString(), PWD1.getText().toString());\n if(isInserted){\n Toast.makeText(CreateAnAccount.this, \"Data inserted\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(CreateAnAccount.this, MainMenu.class));\n\n } else {\n Toast.makeText(CreateAnAccount.this, \"Data not inserted\", Toast.LENGTH_LONG).show();\n }\n }\n }\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, layout2Activity.class);\n\n //creo bundle que va a llevar los datos ingresados\n Bundle datos = new Bundle();\n\n //agrego datos ingresados al bundle creado\n datos.putString(\"nombre\", nombreIngresado.getText().toString());\n datos.putString(\"apellido\", apellidoIngresado.getText().toString());\n datos.putString(\"edad\", edadIngresada.getText().toString());\n\n //asocio el bundle con el intent creado arriba\n intent.putExtras(datos);\n\n //ejecuto el intent\n startActivity(intent);\n\n }", "@Override\n protected void onCreate(Bundle savedInstanceState){\n super.onCreate(savedInstanceState);\n setContentView(R.layout.vista_form_enviar_spei);\n causa_devolucionid = (EditText) findViewById(R.id.causa_devolucionid);\n clave_p_b = (EditText) findViewById(R.id.clave_p_b);\n clave_p_o = (EditText) findViewById(R.id.clave_p_o);\n clave_rastreo = (EditText) findViewById(R.id.clave_rastreo);\n clave_tc_b = (EditText) findViewById(R.id.clave_tc_b);\n clave_tc_o = (EditText) findViewById(R.id.clave_tc_o);\n clave_tipo_operacion = (EditText) findViewById(R.id.clave_tipo_operacion);\n comision = (EditText) findViewById(R.id.comision);\n concepto = (EditText) findViewById(R.id.concepto);\n entrada = (EditText) findViewById(R.id.entrada);\n estado_pago_speiid = (EditText) findViewById(R.id.estado_pago_speiid);\n fecha_hora = (EditText) findViewById(R.id.fecha_hora);\n folio = (EditText) findViewById(R.id.folio);\n folio_instruccion = (EditText) findViewById(R.id.folio_instruccion);\n iva_pago = (EditText) findViewById(R.id.iva_pago);\n monto_pago = (EditText) findViewById(R.id.monto_pago);\n nombreb = (EditText) findViewById(R.id.nombreb);\n nombre_estado = (EditText) findViewById(R.id.nombre_estado);\n nombreo = (EditText) findViewById(R.id.nombreo);\n Numero_cuenta_b = (EditText) findViewById(R.id.Numero_cuenta_b);\n Numero_cuenta_o = (EditText) findViewById(R.id.Numero_cuenta_o);\n pagos_speiid = (EditText) findViewById(R.id.pagos_speiid);\n polizaid = (EditText) findViewById(R.id.polizaid);\n prioridad = (EditText) findViewById(R.id.prioridad);\n recobranza = (EditText) findViewById(R.id.recobranza);\n rfnumerica = (EditText) findViewById(R.id.rfnumerica);\n rfc_curp_b = (EditText) findViewById(R.id.rfc_curp_b);\n rfc_curp_o = (EditText) findViewById(R.id.rfc_curp_o);\n tipo_pagoid = (EditText) findViewById(R.id.tipo_pagoid);\n topologia = (EditText) findViewById(R.id.topologia);\n cvoperacion = (EditText) findViewById(R.id.cvoperacion);\n btn_enviar = (Button) findViewById(R.id.btn_enviar);\n result = (TextView) findViewById(R.id.result);\n\n Bundle extras = getIntent().getExtras();\n\n String c_dev = extras.getString(\"causa_devolucionid \");\n String cv_pb = extras.getString(\"clave_p_b\");\n String cv_po = extras.getString(\"clave_p_o\");\n String cv_ra = extras.getString(\"clave_rastreo\");\n String cv_tb = extras.getString(\"clave_tc_b\");\n String cv_to = extras.getString(\"clave_tc_o\");\n String cv_ti = extras.getString(\"clave_tipo_operacion\");\n String comi = extras.getString(\"comision\");\n String conc = extras.getString(\"concepto_pago\");\n String entr = extras.getString(\"entrada\");\n String est_p = extras.getString(\"estado_pago_speiid \");\n String fcha = extras.getString(\"fecha_pago\");\n String foli = extras.getString(\"folio\");\n String fo_in = extras.getString(\"folio_instruccion\");\n String iva_p = extras.getString(\"iva_pago\");\n String mont = extras.getString(\"monto_pago\");\n String nom_b = extras.getString(\"nombre_b\");\n String nom_e = extras.getString(\"nombre_estado\");\n String nom_o = extras.getString(\"nombre_o\");\n String cuenta_b = extras.getString(\"numero_cuenta_b\");\n String cuenta_o = extras.getString(\"numero_cuenta_o\");\n String id_pa = extras.getString(\"pagos_speiid\");\n String rfc_b = extras.getString(\"rfc_curp_b\");\n String rfc_o = extras.getString(\"rfc_curp_o\");\n String tpago = extras.getString(\"tipo_pagoid\");\n String topo = extras.getString(\"topologia\");\n String ref_n = extras.getString(\"ref_numerica\");\n String re_co = extras.getString(\"ref_cobranza1\");\n\n causa_devolucionid.setText(c_dev);\n clave_p_b.setText(cv_pb);\n clave_p_o.setText(cv_po);\n clave_rastreo.setText(cv_ra);\n clave_tc_b.setText(cv_tb);\n clave_tc_o.setText(cv_to);\n clave_tipo_operacion.setText(cv_ti);\n comision.setText(comi);\n concepto.setText(conc);\n entrada.setText(entr);\n estado_pago_speiid.setText(est_p);\n fecha_hora.setText(fcha);\n folio.setText(foli);\n folio_instruccion.setText(fo_in);\n iva_pago.setText(iva_p);\n monto_pago.setText(mont);\n nombreb.setText(nom_b);\n nombre_estado.setText(nom_e);\n nombreo.setText(nom_o);\n Numero_cuenta_b.setText(cuenta_b);\n Numero_cuenta_o.setText(cuenta_o);\n pagos_speiid.setText(id_pa);\n rfc_curp_b.setText(rfc_b);\n rfc_curp_o.setText(rfc_o);\n tipo_pagoid.setText(tpago);\n topologia.setText(topo);\n rfnumerica.setText(ref_n);\n recobranza.setText(re_co);\n\n\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n btn_enviar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n //LayoutInflater inflater = getLayoutInflater();\n //View dialoglayout = inflater.inflate(R.layout.popup_enviar_spei, null);\n\n AlertDialog.Builder builder = new AlertDialog.Builder(FormEnviarSpei.this);\n builder.setMessage(\"Estas a punto de enviar el pago ¿Desea continuar?\")\n .setTitle(\"Alerta\")\n .setCancelable(true)\n .setNegativeButton(\"Cancelar\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n\n }\n })\n .setPositiveButton(\"Continuar\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n String c_dev = causa_devolucionid.getText().toString();\n String cv_pb = clave_p_b.getText().toString();\n String cv_po = clave_p_o.getText().toString();\n String cv_ra = clave_rastreo.getText().toString();\n String cv_tb = clave_tc_b.getText().toString();\n String cv_to = clave_tc_o.getText().toString();\n String cv_ti = clave_tipo_operacion.getText().toString();\n String comi = comision.getText().toString();\n String conc = concepto.getText().toString();\n String entr = entrada.getText().toString();\n String est_p = estado_pago_speiid.getText().toString();\n String fcha = fecha_hora.getText().toString();\n String foli = folio.getText().toString();\n String fo_in = folio_instruccion.getText().toString();\n String iva_p = iva_pago.getText().toString();\n String mont = monto_pago.getText().toString();\n String nom_b = nombreb.getText().toString();\n String nom_e = nombre_estado.getText().toString();\n String nom_o = nombreo.getText().toString();\n String cuen_b = Numero_cuenta_b.getText().toString();\n String cuen_o = Numero_cuenta_o.getText().toString();\n String id_pa = pagos_speiid.getText().toString();\n String rfc_b = rfc_curp_b.getText().toString();\n String rfc_o = rfc_curp_o.getText().toString();\n String tpago = tipo_pagoid.getText().toString();\n String topo = topologia.getText().toString();\n String ref_n = rfnumerica.getText().toString();\n String re_co = recobranza.getText().toString();\n String cv_op = cvoperacion.getText().toString();\n\n if (cv_op.isEmpty()){\n cvoperacion.setError(\"Campo vacio\");\n cvoperacion.requestFocus();\n }else {\n\n Conexion(c_dev, cv_pb, cv_po, cv_ra, cv_tb, cv_to, cv_ti, comi, conc, entr,\n est_p, fcha, foli, fo_in, iva_p, mont, nom_b, nom_e, nom_o, cuen_b,\n cuen_o, id_pa, rfc_b, rfc_o, tpago, topo, cv_op, ref_n, re_co);\n }\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n\n }\n });\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n motor_no.setText(editText.getText().toString().trim());\n } else {\n motor_no.setText(\"\");\n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_event_addition);\n\n ImageButton btnStart = findViewById(R.id.pickStartDate);\n ImageButton btnEnd = findViewById(R.id.pickEndDate);\n ImageButton btnFinal = findViewById(R.id.finalEvent);\n\n titleView = findViewById(R.id.eventTitle);\n sDayView = findViewById(R.id.enterDate);\n eDayView = findViewById(R.id.endDate);\n sTimeView = findViewById(R.id.startTime);\n eTimeView = findViewById(R.id.endTime);\n campusView = findViewById(R.id.campusSpin);\n buildingView = findViewById(R.id.buildingSpin);\n roomView = findViewById(R.id.enterRoom);\n catView = findViewById(R.id.catSpin);\n noteView = findViewById(R.id.enterNote);\n\n btnStart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showDatePickerDialog(1);\n }\n });\n btnEnd.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showDatePickerDialog(2);\n }\n });\n btnFinal.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (validate()) {\n returnReply();\n }\n }\n });\n\n sDayView.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 String edit = sDayView.getText().toString();\n if (edit.length() == 10 && before != 10) {\n Calendar c = Calendar.getInstance();\n\n int day = Integer.parseInt(edit.substring(0, 2));\n int mon = Integer.parseInt(edit.substring(3, 5));\n int year = Integer.parseInt(edit.substring(6, 10));\n\n //format to UK date standard if user does not use picker\n if (mon > 12) { mon = 12; }\n c.set(Calendar.MONTH, mon - 1);\n if (year < c.get(Calendar.YEAR) - 1) { year = c.get(Calendar.YEAR) - 1; }\n else if (year > c.get(Calendar.YEAR) + 1) { year = c.get(Calendar.YEAR) + 1; }\n c.set(Calendar.YEAR, year);\n if (day > c.getActualMaximum(Calendar.DATE)) { day = c.getActualMaximum(Calendar.DATE); }\n String strDate = String.format(Locale.UK, \"%02d%02d%02d\", day, mon, year);\n strDate = String.format(\"%s/%s/%s\", strDate.substring(0, 2),\n strDate.substring(2, 4),\n strDate.substring(4, 8));\n sDayView.setText(strDate);\n }\n if ((edit.length() == 2 || edit.length() == 5) && (before != 1)) {\n sDayView.append(\"/\");\n }\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n //do nothing\n }\n });\n\n eDayView.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 String edit = eDayView.getText().toString();\n if (edit.length() == 10 && before != 10) {\n Calendar c = Calendar.getInstance();\n\n int day = Integer.parseInt(edit.substring(0, 2));\n int mon = Integer.parseInt(edit.substring(3, 5));\n int year = Integer.parseInt(edit.substring(6, 10));\n\n //format to UK date standard if user does not use picker\n if (mon > 12) { mon = 12; }\n c.set(Calendar.MONTH, mon - 1);\n if (year < c.get(Calendar.YEAR) - 1) { year = c.get(Calendar.YEAR) - 1; }\n else if (year > c.get(Calendar.YEAR) + 1) { year = c.get(Calendar.YEAR) + 1; }\n c.set(Calendar.YEAR, year);\n if (day > c.getActualMaximum(Calendar.DATE)) { day = c.getActualMaximum(Calendar.DATE); }\n String strDate = String.format(Locale.UK, \"%02d%02d%02d\", day, mon, year);\n strDate = String.format(\"%s/%s/%s\", strDate.substring(0, 2),\n strDate.substring(2, 4),\n strDate.substring(4, 8));\n eDayView.setText(strDate);\n }\n if ((edit.length() == 2 || edit.length() == 5) && (before != 1)) {\n eDayView.append(\"/\");\n }\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n //do nothing\n }\n });\n\n sTimeView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showTimePickerDialog(1);\n }\n });\n\n eTimeView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showTimePickerDialog(2);\n }\n });\n\n Spinner campusView = findViewById(R.id.campusSpin);\n campusView.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View v, int pos, long id) {\n Spinner buildingView = findViewById(R.id.buildingSpin);\n ArrayAdapter<CharSequence> newSpin;\n switch (pos) {\n case 0:\n newSpin = ArrayAdapter.createFromResource(campusView.getContext(), R.array.granBuilding, android.R.layout.simple_spinner_item);\n break;\n case 1:\n newSpin = ArrayAdapter.createFromResource(campusView.getContext(), R.array.eastBuilding, android.R.layout.simple_spinner_item);\n break;\n case 2:\n newSpin = ArrayAdapter.createFromResource(campusView.getContext(), R.array.falmBuilding, android.R.layout.simple_spinner_item);\n break;\n case 3:\n newSpin = ArrayAdapter.createFromResource(campusView.getContext(), R.array.moulBuilding, android.R.layout.simple_spinner_item);\n break;\n default:\n newSpin = ArrayAdapter.createFromResource(campusView.getContext(), R.array.granBuilding, android.R.layout.simple_spinner_item);\n System.out.println(\"Invalid Campus selected.\");\n }\n buildingView.setAdapter(newSpin);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> arg0) {\n //do nothing\n }\n });\n }", "@Override\n public void onClick(View v){\n setResult(RESULT_OK);\n if (textboxInitialValue.getText().length() > 0) {\n textboxInitialValue.setEnabled(false);\n buttonAddInitialValue.setEnabled(false);\n if (fieldsAreFilled()) {\n buttonSubmit.setEnabled(true);\n }\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(AudioMainActivity.count!=0)\n\t\t\t\t\t{\n\t\t\t\t\t// CREATE A CONFIRMATION DIALOG\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tfinal Dialog emerdialog=new Dialog(AudioDoubt.this);\n\t\t\t\t\temerdialog.setContentView(R.layout.emerdg);\n\t\t\t\t\temerdialog.setCanceledOnTouchOutside(false);\n\t\t\t\t\temerdialog.setTitle(\"Enter Text-Doubt\");\n\n\t\t\t\t\tetopic=(EditText)emerdialog.findViewById(R.id.emertopic);\n\t\t\t\t\tetext=(EditText)emerdialog.findViewById(R.id.emertext);\n\t\t\t\t\t ebar=(ProgressBar)emerdialog.findViewById(R.id.emerbar); \n\t\t\t\t\t ebar.setVisibility(View.GONE);\n\t\t\t\t\tesend=(Button)emerdialog.findViewById(R.id.ebutton);\n\t\t\t\t\tecancelbut=(Button)emerdialog.findViewById(R.id.ecancel);\n\t\n\t\t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\n\t\t\t\t\tecancelbut.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\temerdialog.dismiss();\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch(Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.e(\"ecancel button\",e.toString());\n\t\t\t\t\t}\n\t\t\t\t\temerdialog.show();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tesend.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tString textSubject=etopic.getText().toString();\n\t\t\t\t\t\t\t\t\t\tString textMsg=etext.getText().toString();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif (textMsg.isEmpty() || textSubject.isEmpty()) \n\t\t\t\t\t\t\t\t\t\t{ // CHECK IF ANY OF\n\t\t\t\t\t\t\t\t\t\t\t// THE TWO FIELD\n\t\t\t\t\t\t\t\t\t\t\t// IS EMPTY\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this, \"Fill all the Fields...\",\n\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.count=5-AudioMainActivity.doubt.size();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t//Setting progressbar//\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\t\t\tebar.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\t\t\tesend.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tsendTextRequest();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tprivate void sendTextRequest() {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//MESSAGE SENDING THREAD STARTED\n\t\t\t\t\tfinal Thread textingThread = new Thread (new Runnable() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttextsent=0;\n\t\t\t\t\t\t\t\t\tesocket = new Socket(TestConnection.ip, TestConnection.port);\n\n\t\t\t\t\t\t\t\t// Log.e(\"ClientActivity\", \"C: Sending command.\");\n\t\t\t\t\t\t\t\t\tedos=new DataOutputStream(esocket.getOutputStream());\n\t\t\t\t\t\t\t\t\tedis=new DataInputStream(esocket.getInputStream());\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\tedos.writeUTF(\"DOUBT\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t// \tif(TestConnection.username!=null)\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.username);\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.roll);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.macid);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tedos.writeUTF(etopic.getText().toString()); // SEND\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// SUBJECT\n\t\t\t\t\t\t\t\t\tedos.writeUTF(etext.getText().toString()); // SEND\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// MESSAGE\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// Sending imageflag\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//Image sending\n\t\t\t\t\t\t\t\t\tif(AudioMainActivity.imageflag!=1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tedos.writeUTF(\"send_image\");\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Image flag sent\",\"send_image\");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tAudioMainActivity.imageflag=1;\n\t\t\t\t\t\t\t\t\tFile filedp = new File(mypath+\"/dp_th.jpg\");\n\t\t\t\t\t\t\t\t\tsendFile(filedp);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{edos.writeUTF(\"not_send_image\");\n\t\t\t\t\t\t\t\t\tLog.e(\"Image flag sent\",\"not_send_image\");\n\t\t\t\t\t\t\t\t\tString ifdone =edis.readUTF();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(ifdone.equals(\"not_done\"))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFile filedp = new File(mypath+\"/dp_th.jpg\");\n\t\t\t\t\t\t\t\t\t\tsendFile(filedp);\n\t\t\t\t\t\t\t\t\t\tLog.e(\"ZABARDASTI\",\"Image Sent\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfinal String msgServer = edis.readUTF(); // RECEIVE\n\t\t\t\t\t\t\t\t\tLog.e(\"Confirmation\", \"msgServer=\"+msgServer);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CONFIRMATION\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// IF MESSAGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// RECEIVED BY\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// SERVER\n\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\tif (msgServer.contains(\"received\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this, \"Doubt Sent\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t\temerdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t\ttextsent=1;\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.doubt.add(etopic.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.textMessage.add(etext.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.count=5-AudioMainActivity.doubt.size();\n\t\t\t\t\t\t\t\t\t\t\t\t//counter.setText(\"Doubts Remaining : \"+count);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"Server Error! Doubt not sent!\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//doubtSubject.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t//doubtText.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\tif (esocket != null) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t// close socket connection after using it\n\t\t\t\t\t\t\t\t\t\tesocket.close();\n\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic void sendFile(File file) throws IOException {\n\t\t\t\t\t FileInputStream fileIn = new FileInputStream(file);\n\t\t\t\t\t byte[] buf = new byte[Short.MAX_VALUE];\n\t\t\t\t\t int bytesRead; \n\t\t\t\t\t while( (bytesRead = fileIn.read(buf)) != -1 ) {\n\t\t\t\t\t dos.writeShort(bytesRead);\n\t\t\t\t\t dos.write(buf,0,bytesRead);\n\t\t\t\t\t }\n\t\t\t\t\t dos.writeShort(-1);\n\t\t\t\t\t fileIn.close();\n\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\t\n\t\t\t\t\ttextingThread.start();\n\t\t\t\t\t\n\t\t\t\t\tThread textTimer=new Thread (new Runnable() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlong startingtime = System.currentTimeMillis();\n\t\t\t\t\t\t\tlong endingtime = startingtime + 5*1000; // 60 seconds * 1000 ms/sec\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (true)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(textsent==1||System.currentTimeMillis() > endingtime)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(textsent!=1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttextingThread.interrupt();\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Texting thread\",\"Thread Interrupted\");\n\t\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tebar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\t\t\t\t\tesend.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Connection Error... Could not Send Doubt..\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\ttextTimer.start();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tfinal Dialog dialog = new Dialog(context);\n\t\t\t\t\t\t\t\t\tdialog.setContentView(R.layout.kickdialog);\n\t\t\t\t\t\t\t\t\tdialog.setTitle(\"Wait...\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// set the custom dialog components - text, image and button\n\t\t\t\t\t\t\t\t\tTextView text = (TextView) dialog.findViewById(R.id.kicktext);\n\t\t\t\t\t\t\t\t\ttext.setText(\"You already have 5 doubts in queue....\");\n\t\t\t\t\t\t\t\t\tButton dialogButton = (Button) dialog.findViewById(R.id.kickok);\n\t\t\t\t\t\t\t\t\t// if button is clicked, close the custom dialog\n\t\t\t\t\t\t\t\t\tdialogButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdialog.show();\n\t\t\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\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n\n TextInputLayout firstInputLayout = (TextInputLayout) findViewById(R.id.first_input_layout);\n TextInputLayout secondInputLayout = (TextInputLayout) findViewById(R.id.second_input_layout);\n TextInputLayout thirdInputLayout = (TextInputLayout) findViewById(R.id.third_input_layout);\n TextInputLayout fourthInputLayout = (TextInputLayout) findViewById(R.id.fourth_input_layout);\n\n // clear errors\n firstInputLayout.setError(null);\n secondInputLayout.setError(null);\n thirdInputLayout.setError(null);\n fourthInputLayout.setError(null);\n\n // Get username, first name, last name and email\n EditText getUsername = (EditText) findViewById(R.id.username);\n String username = getUsername.getText().toString();\n EditText getFirstName = (EditText) findViewById(R.id.first_name);\n String firstName = getFirstName.getText().toString();\n EditText getLastName = (EditText) findViewById(R.id.last_name);\n String lastName = getLastName.getText().toString();\n EditText getEmail = (EditText) findViewById(R.id.email);\n String email = getEmail.getText().toString();\n\n // Set errors, if they exist\n if (TextUtils.isEmpty(username)) {\n firstInputLayout.setError(\"This field is required\");\n }\n else if (TextUtils.isEmpty(firstName)) {\n secondInputLayout.setError(\"This field is required\");\n }\n else if (TextUtils.isEmpty(lastName)) {\n thirdInputLayout.setError(\"This field is required\");\n }\n else if (TextUtils.isEmpty(email)) {\n fourthInputLayout.setError(\"This field is required\");\n }\n else if (!validateEmail(email)){\n fourthInputLayout.setError(\"Invalid Email\");\n }\n else {\n //Send new user to ScrambleGame Instance\n sg.createUser(username,firstName,lastName,email);\n\n SharedPreferences pref = getSharedPreferences(\"LoginActivity\", Context.MODE_PRIVATE);\n SharedPreferences.Editor edit = pref.edit();\n edit.putBoolean(\"logged_in\", true);\n edit.commit();\n\n SharedPreferences curruser = getSharedPreferences(\"CurrentUser\", Context.MODE_PRIVATE);\n SharedPreferences.Editor edit2 = curruser.edit();\n edit2.putString(\"current_user\", sg.getCurrentPlayer().getUserName());\n edit2.commit();\n\n AlertDialog alertDialog = new AlertDialog.Builder(AddPlayerActivity.this).create();\n alertDialog.setTitle(\"Registered.\");\n alertDialog.setMessage(\"You have successfully registered. Your username is \" + sg.getCurrentPlayer().getUserName());\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"Login\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(AddPlayerActivity.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n finish();\n }\n });\n alertDialog.show();\n }\n }", "@Override\n\tprotected void InitButtonListener() {\n\t\ttextViewAvgInital.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tCursurIndex = 1;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickAverageInitial();\n\t\t\t}\n\t\t});\n\t\ttextViewDaysInital.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tCursurIndex = 2;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickDaysInitial();\n\t\t\t}\n\t\t});\t\t\n\t\timgbtnOK.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickOK();\n\t\t\t}\n\t\t});\t\t\n\t}", "@Override\r\n\tpublic void onClick(View v) {\n\t\tsuper.onClick(v);\r\n\t\tswitch (v.getId()) {\r\n\t\tcase R.id.top_return:\r\n\t\t\tthis.finish();\r\n\t\t\tbreak;\r\n\t\tcase R.id.top_righttext:\r\n\t\t\tif (TextUtils.isEmpty(editText.getText())) {\r\n\t\t\t\tMyUtils.showToast(activity, R.string.content_notnull);\r\n\t\t\t}else {\r\n\t\t\t\tif (typeString.equals(\"consult\")) {\r\n\t\t\t\t\tExecuteAsyncTask(\"SubmitJobQuestion\", mapUtil.SendConsultMap(intent.\r\n\t\t\t\t\t\t\tgetStringExtra(\"id\"), idShared.getString(\"id\", \"\"), \r\n\t\t\t\t\t\t\tMyUtils.UploadString(editText.getText().toString())));\r\n\t\t\t\t}else if (typeString.equals(\"complain\")) {\r\n\t\t\t\t\tExecuteAsyncTask(\"SubmitComplaint\", mapUtil.SendComplainMap(intent.getStringExtra(\"id\"), \r\n\t\t\t\t\t\t\t\"\", intent.getStringExtra(\"eid\"), editText.getText().toString(), idShared.getString(\"id\", \"\")));\r\n\t\t\t\t}else if (typeString.equals(\"feedback\")) {\r\n\t\t\t\t\tif (TextUtils.isEmpty(emailEditText.getText())) {\r\n\t\t\t\t\t\tMyUtils.showToast(activity, R.string.input_email);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tExecuteAsyncTask(\"SubmitFeedback\", mapUtil.SendFeedbackMap(emailEditText.getText().toString().trim(), \r\n\t\t\t\t\t\t\t\tidShared.getString(\"id\", \"\"), editText.getText().toString()));\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if (typeString.equals(\"reply\")) {\r\n\t\t\t\t\tExecuteAsyncTask(\"SubmitJobQuestionReply\", mapUtil.ConsultReplyMap(intent.getStringExtra(\"id\"), \r\n\t\t\t\t\t\t\tidShared.getString(\"id\", \"\"), MyUtils.UploadString(editText.getText().toString())));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.setting_myinfo);\n\t\tre_name=(RelativeLayout) findViewById(R.id.layout_name);\n\t\ttext_name=(TextView) findViewById(R.id.text_name);\n\t\ttext_name.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.i(\"点击事件\", \"点击事件被执行了\");\n\t\t\t\tfinal EditText localEditText = new EditText(getApplicationContext());\n\t\t\t\tAlertDialog.Builder aDialog=new AlertDialog.Builder(getApplicationContext());\n\t\t\t\taDialog.setTitle(\"请输入名字\")\n\t\t\t\t.setView(localEditText)\n\t\t\t\t.setPositiveButton(\"确定\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\n\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\tLog.i(\"点击事件\", \"编辑框点击事件被执行了\");\n\t\t\t\t\t\tString string=localEditText.getText().toString();\n\n\t\t\t\t\t\tif(string!=null){\n\t\t\t\t\t\t\tMyinfo.this.text_name.setText(string);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t Toast.makeText(getApplicationContext(), \"请输入ID\", 1000).show();\n\n\t\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\t\t\n\t\t\t\t/*setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfinal EditText localEditText = new EditText(getApplicationContext());\n\t\t\t\tAlertDialog.Builder aDialog=new AlertDialog.Builder(getApplicationContext());\n\t\t\t\taDialog.setTitle(\"请输入名字\")\n\t\t\t\t.setView(localEditText)\n\t\t\t\t.setPositiveButton(\"确定\", 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\tString string=localEditText.getText().toString();\n\n\t\t\t\t\t\tif(string!=null){\n\t\t\t\t\t\t\tMyinfo.this.text_name.setText(string);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t Toast.makeText(getApplicationContext(), \"请输入ID\", 1000).show();\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t/*\tnew AlertDialog.Builder(this).setTitle(\"请输入\").setIcon(\n\t\t\t\t\t android.R.drawable.ic_dialog_info).setView(\n\t\t\t\t\t new EditText(this)).setPositiveButton(\"确定\", null)\n\t\t\t\t\t .setNegativeButton(\"取消\", null).show();\n\t\t\t\t\n\t\t\t}\n\t\t});*/\n\t\t\n\t\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tsetContentView(R.layout.inputview);\n\n\t\t//\t\tmTts.setLanguage(Locale.UK);\n\t\t//\t\tprint(\"UK available: \" + mTts.isLanguageAvailable(Locale.UK));\n\n\n\t\tmInputEditText = (EditText) findViewById(R.id.input_edittext);\n\t\tmGoButton = (Button) findViewById(R.id.go_button);\n\n\t\tString extra = getIntent().getStringExtra(Constants.EXTRA_INPUT_STRING);\n\t\tif(null!=extra){\n\t\t\tmInputEditText.setText(extra);\n\t\t}\n\n\t\tmGoButton.setOnClickListener(new OnClickListener() {\n\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent i = new Intent(InputView.this,QuestionView.class);\n\t\t\t\ti.putExtra(Constants.EXTRA_INPUT_STRING, mInputEditText.getText().toString());\n\t\t\t\ti.putExtra(Constants.EXTRA_INPUT_TYPE, State.getDestinationType(mInputEditText.getText().toString()));\n\t\t\t\tstartActivity(i);\n\t\t\t}\n\t\t});\n\n\t\tmInputEditText.setOnKeyListener(new OnKeyListener() {\n\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\t// If the event is a key-down event on the \"enter\" button\n\t\t\t\tif ((event.getAction() == KeyEvent.ACTION_DOWN) &&\n\t\t\t\t\t\t(keyCode == KeyEvent.KEYCODE_ENTER)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.woodlot_input);\n\n Intent intent = getIntent();\n isEdit = intent.getBooleanExtra(QuadratScreen.EXTRA_ISEDIT, false);\n\n this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n\n nameEdit = (EditText) findViewById(R.id.woodlotNameEntry);\n numStandsEdit = (EditText) findViewById(R.id.woodlotStandInput);\n cancelButton = (Button) findViewById(R.id.woodlotCancel);\n acceptButton = (Button) findViewById(R.id.woodlotAccept);\n\n if(isEdit)\n {\n Woodlot currWoodlot = WCCCProgram.getCurrWoodlot();\n nameEdit.setText(currWoodlot.getName());\n Integer oldNumStands = currWoodlot.getStands().size();\n numStandsEdit.setText(oldNumStands.toString());\n }\n addListeners();\n }", "@Override\n public void onClick(View v) {\n name = editName.getText().toString();\n num = editNum.getText().toString();\n //if all sectors are not written, show message\n if(name.equalsIgnoreCase(\"\") || num.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"모든 항목을 입력해주세요.\", Toast.LENGTH_LONG).show();\n } else { //if all sectors are filled, store data in DB, and show list by using list view\n //reset editText\n editName.setText(\"\");\n editNum.setText(\"\");\n //insert data in DB\n insert(name, num);\n //show data list by using list view\n showList();\n }\n }", "@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(editText.getText().toString())){\n Toast.makeText(getContext(), \"Enter note!\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n alertDialog.dismiss();\n }\n\n // check if user updating note\n\n if (shouldUpdate && note != null){\n // update note by it's id\n note.setNote(editText.getText().toString());\n updateNote(note, position);\n } else {\n // create new note\n //createNote(editText.getText().toString());\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tString V =\tValidate();\n\t\t\t\t\n\t\t\t\tif(V.equals(\"\"))\n\t\t\t\t\tToast.makeText(getBaseContext(), \"Data Ok\", Toast.LENGTH_LONG).show();\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tAlertDialog ad = new AlertDialog.Builder(ADD2Activity.this).create();\n\t\t\t\t\tad.setTitle(\"Syntax Errorr\");\n\t\t\t\t\tad.setMessage(V);\t\t\t\t\t\n\t\t\t\t\tad.show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmydb.openDatabase();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tdata = new String[rs.getColumnCount()];\n\t\t\t\t\t\t\t\t\n\t\t\t\tfor(int i =0; i < editRow.getChildCount() ; i++)\n\t\t\t\t{\n\t\t\t\tdata[i] =((EditText)editRow.getChildAt(i)).getText().toString();\n\t\t\t\t\n\t\t\t\tif(data[i].equals(\"\"))\n\t\t\t\t\tdata[i]=\"null\";\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t data[i] = \"'\" + data[i] + \"'\";\n\t\t\t\n\t\t\t\t}//else\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}//for\n\t\t\t\t\n\t//______________________________________________________________________________\t\t\t\n\t\t\t\t\n\t\t\t\tString query= \"insert into \"+id+\" values(\";\n\t\t\t\t\n\t\t\t\tquery+=data[0];\n\t\t\t\tfor(int i =1;i<data.length;i++)\n\t\t\t\t{\n\t\t\t\t\tquery += \",\" + data[i];\n\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tquery+=\");\";\n\t\t\t\t\n\t\t\t\tSystem.out.println(query);\n\t\t\t\t\n mydb.sqldb.execSQL(query); \n\t\t\t\tmydb.sqldb.execSQL(\"create table fee\"+id.substring(3)+\"_\"+((EditText)editRow.getChildAt(0)).getText().toString().trim()+\"(\\n\" +\n \"sno integer primary key autoincrement,\\n\" +\n \"Submitted_On date,\\n\" +\n \"Amount float ); \");\n\n Toast.makeText(ADD2Activity.this, \"Record added successfully\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\n\t\t\t\tTL.removeAllViews();\n\t\t\t\t\n\t\t\t\trs= mydb.sqldb.rawQuery(\"select * from \"+id+\";\", null);\n\t\t\t\tcreateDB();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i =0; i < editRow.getChildCount() ; i++)\n\t\t\t\t{\n\t\t\t\t((EditText)editRow.getChildAt(i)).setText(\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsetId();\n\t\t\t\taddListen();\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.A11:\n buttonPressed = \"A-11\";\n parse_Field = \"arena=A 11-manna (Gstad)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.B11:\n buttonPressed = \"B-11\";\n parse_Field = \"arena=B 11-manna (Gstad)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.C11:\n buttonPressed = \"C-11\";\n parse_Field = \"arena=C 11-manna (Byavallen)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.C1_7:\n buttonPressed = \"C1-7\";\n parse_Field = \"arena=C1 7-manna (Gstad)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.C2_7:\n buttonPressed = \"C2-7\";\n parse_Field = \"arena=C2 7-manna (Gstad)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.C3_5:\n buttonPressed = \"C3-5\";\n parse_Field = \"arena=C3 5-manna (Gstad)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.C4_5:\n buttonPressed = \"C4-5\";\n parse_Field = \"arena=C4 5-manna (Gstad)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.D_7:\n buttonPressed = \"D-7\";\n parse_Field = \"arena=D 7-manna (Gstad)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.E1:\n buttonPressed = \"E1-7\";\n parse_Field = \"arena=E1 7-manna (Gstad)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.E2:\n buttonPressed = \"E2-5\";\n parse_Field = \"arena=E2 5-manna (Gstad)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.E3:\n buttonPressed = \"E3-5\";\n parse_Field = \"arena=E3 5-manna (Gstad)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.S1:\n buttonPressed = \"S1-11\";\n parse_Field = \"arena=S1 11-manna (Sunderbyn)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.R1:\n buttonPressed = \"R1-5\";\n parse_Field = \"arena=R1 5-manna (Rutvik)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.R2:\n buttonPressed = \"R2-5\";\n parse_Field = \"arena=R2 5-manna (Rutvik)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.R3:\n buttonPressed = \"R3-7\";\n parse_Field = \"arena=R3 7-manna (Rutvik)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.R4:\n buttonPressed = \"R4-7\";\n parse_Field = \"arena=R4 7-manna (Rutvik)\";\n out.setText(\"Field selected: \" + buttonPressed);\n break;\n\n case R.id.NextActivity:\n if(buttonPressed != null) {\n // If any button has been pressed, the continue button leads you to Screen 3\n // And sends through all necessary data\n Intent i = new Intent(this, Screen3.class);\n String date = getIntent().getStringExtra(\"DATE\");\n String email = getIntent().getStringExtra(\"ADMIN_EMAIL\");\n String adminOverride = getIntent().getStringExtra(\"ADMIN_OVERRIDE\");\n i.putExtra(\"FIELD_SELECTED\", buttonPressed);\n i.putExtra(\"PARSE_STRING_FIELD\", parse_Field);\n i.putExtra(\"DATE\", date);\n i.putExtra(\"ADMIN_EMAIL\", email);\n i.putExtra(\"ADMIN_OVERRIDE\", adminOverride);\n startActivity(i);\n } else {\n Toast toast = Toast.makeText(getApplicationContext(), \"Please select a field.\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n default:\n break;\n }\n }", "@SuppressLint(\"SetTextI18n\")\n public void setClicked(View view) {\n\n playersCount++;\n TextView textView = findViewById(R.id.textView2);\n TextView textPlayer1 = findViewById(R.id.textView3);\n TextView textPlayer2 = findViewById(R.id.textView4);\n Button button = findViewById(R.id.button);\n EditText editText = findViewById(R.id.editText);\n\n // adds player's names to screen\n if (playersCount == 1) {\n player1 = editText.getText().toString();\n editText.setHint(\"Player\");\n textPlayer1.setText(player1);\n } else if (playersCount == 2) {\n player2 = editText.getText().toString();\n textPlayer2.setText(player2);\n editText.setVisibility(View.INVISIBLE);\n button.setVisibility(View.INVISIBLE);\n textView.setText(\"\");\n }\n\n editText.setText(\"\");\n\n }", "public void onClick( View v ) {\n switch (v.getId()) {\n\n // Caso o botao de adicionar experimento for clicado\n case R.id.buttonDim:\n if( isNumeric(Largura.getEditText().getText().toString()) && isNumeric(Profundidade.getEditText().getText().toString())\n && !Unidade.getEditText().getText().toString().equals(\"\") && !Instituicao.getEditText().getText().toString().equals(\"\")\n && !Sala.getEditText().getText().toString().equals(\"\") && !NumLamp.getEditText().getText().toString().equals(\"\")\n && !NumLum.getEditText().getText().toString().equals(\"\") && !Potencia.getEditText().getText().toString().equals(\"\")){\n\n Global.X = Integer.parseInt(spinnerX.getSelectedItem().toString());\n Global.Y = Integer.parseInt(spinnerY.getSelectedItem().toString());\n\n Global.Sala = Integer.parseInt( Sala.getEditText().getText().toString());\n Global.NumLum = Integer.parseInt( NumLum.getEditText().getText().toString());\n Global.NumLamp = Integer.parseInt( NumLamp.getEditText().getText().toString());\n\n Global.Potencia = Double.parseDouble( Potencia.getEditText().getText().toString() );\n Global.Largura = Double.parseDouble(Largura.getEditText().getText().toString());\n Global.Profundidade = Double.parseDouble(Profundidade.getEditText().getText().toString());\n\n Global.Instituicao = Instituicao.getEditText().getText().toString();\n Global.Unidade = Unidade.getEditText().getText().toString();\n\n Global.Mapa = new int[ Global.Y ][ Global.X ];\n for ( int i = 0; i < Global.Y; i++ ){\n for ( int j = 0; j < Global.X; j++ ){\n Global.Mapa[i][j] = 0;\n }\n }\n\n Intent ClickMap = new Intent( mActivity, MapeamentoFisico.class );\n startActivity(ClickMap);\n finish();\n }\n else{\n Snackbar.make(findViewById(android.R.id.content), \"Existem campos ainda nao preenchidos. Preencha todos os campos e tente de novo.\", Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n }\n break;\n }\n }", "private void setContent() {\n\n\t\tsession = new SessionManager(getApplicationContext());\n\n\t\tedt_fname = (EditText) findViewById(R.id.edt_fname);\n\t\tedt_lname = (EditText) findViewById(R.id.edt_lname);\n\t\tedt_contactno = (EditText) findViewById(R.id.edt_contactno);\n\t\tedt_email = (EditText) findViewById(R.id.edt_email);\n\t\tedt_password = (EditText) findViewById(R.id.edt_password);\n\t\tedt_confirmpassword = (EditText) findViewById(R.id.edt_confirmpassword);\n\n\t\tbtn_register = (Button) findViewById(R.id.btn_register);\n\t\t// edt_email.setClickable(false);\n\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\ttx.setText(editText.getText().toString());\r\n\t\t\t\t\t}", "@Override\n\tpublic void onCreate(Bundle icicle) {\n\t\tsuper.onCreate(icicle);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.myclasslayout);\n\t\tthis.getWindow().setSoftInputMode(\n\t\t\t\tWindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n\t\tBundle extras = getIntent().getExtras();\n\t\tglob = (global) getApplication();\n\t\tif (extras == null) {\n\t\t\tToast.makeText(this, \"NO Class Info\", Toast.LENGTH_LONG).show();\n\n\t\t} else {\n\t\t\tci = (ClassInfo) (extras.getSerializable(\"ci\"));\n\t\t\ttv = new EditText[5];\n\t\t\ttv[0] = (EditText) findViewById(R.id.class_name);\n\t\t\ttv[1] = (EditText) findViewById(R.id.prof_name);\n\t\t\ttv[2] = (EditText) findViewById(R.id.time_slot);\n\t\t\ttv[3] = (EditText) findViewById(R.id.ed_books);\n\t\t\ttv[4] = (EditText) findViewById(R.id.subject_name);\n\t\t\tbtns = new Button[4];\n\t\t\tbtns[0] = (Button) findViewById(R.id.btn_exam);\n\t\t\tbtns[1] = (Button) findViewById(R.id.btn_assignment);\n\t\t\tbtns[2] = (Button) findViewById(R.id.btn_quizzez);\n\t\t\tbtns[3] = (Button) findViewById(R.id.btn_test);\n\n\t\t\ttv[0].setText(\" \" + ci.getClassName());\n\t\t\ttv[1].setText(\" \" + ci.getProfessor_name());\n\t\t\ttv[3].setText(\" \"\n\t\t\t\t\t+ (ci.getBooks().toString().replace(\"[\", \"\")).replace(\"]\",\n\t\t\t\t\t\t\t\"\"));\n\t\t\tString s = ci.getTime_slot().toString();\n\t\t\ts = s.replace(\",\", \"\\n\");\n\t\t\ttv[2].setText(\" \" + s);\n\t\t\ttv[4].setText(\" \" + AddClassActivity.subjectname);\n\t\t\ttv[2].setKeyListener(null);\n\t\t}\n\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n editKey = (EditText) findViewById(R.id.etKey);\n editText = (EditText) findViewById(R.id.etText);\n buttonSave = (Button) findViewById(R.id.btnSave);\n buttonLoad = (Button) findViewById(R.id.btnLoad);\n\n buttonSave.setOnClickListener(this);\n buttonLoad.setOnClickListener(this);\n }", "protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n try {\n\n Button button=(Button)findViewById(R.id.button_1);\n button.setOnClickListener(new MyButtonListener());\n String input=\"input:?\";\n TextView note=(TextView)findViewById(R.id.text_main);\n note.setText(input);\n\n\n Log.d(\"MainActivity\", \"onCreate: executive\");\n }catch(Exception e)\n {\n Log.d(\"exception\",e.getMessage());\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString name = editTextInput.getText().toString();\n\t\t\t\t// check the text the user enter \n\t\t\t\tif(name.equals(\"Yap\")) {\n\t\t\t\t\ttextViewGreeting.setText(\"Hello \" + name);\n\t\t\t\t\t// The intent to start the SecondActivity\n\t\t\t\t\tIntent i = new Intent(MainActivity.this, SecondActivity.class);\n\t\t\t\t\t// put a String into the intent with a specific key\t\t\t\t\t\n\t\t\t\t\ti.putExtra(\"name\", name);\n\t\t\t\t\t// put an integer into the intent with a specific key\n\t\t\t\t\ti.putExtra(\"year\", 2013);\n\t\t\t\t\t// will start the Second Activity\n\t\t\t\t\tstartActivity(i);\n\t\t\t\t} else {\n\t\t\t\t\ttextViewGreeting.setText(\"Wrong user\");\n\t\t\t\t}\n\t\t\t}" ]
[ "0.6854015", "0.67448145", "0.67184734", "0.6715988", "0.6606998", "0.65810436", "0.65354306", "0.6495022", "0.6452149", "0.64423263", "0.6431554", "0.6428987", "0.64128304", "0.63959885", "0.6395275", "0.6392754", "0.63872385", "0.6379933", "0.6378238", "0.63679636", "0.6361856", "0.6358386", "0.63543546", "0.63498914", "0.63486356", "0.6337787", "0.63304174", "0.6320573", "0.63123316", "0.6312041", "0.63003635", "0.62998617", "0.6294586", "0.6287419", "0.6284972", "0.62831926", "0.62825984", "0.627991", "0.62611383", "0.6254815", "0.62500477", "0.6237843", "0.6227842", "0.62198675", "0.621215", "0.6211134", "0.62110484", "0.62067395", "0.6204591", "0.62021804", "0.6193013", "0.6187683", "0.618725", "0.6181535", "0.6170506", "0.6169021", "0.6168497", "0.616568", "0.6165355", "0.6161288", "0.61604893", "0.61589086", "0.615143", "0.61380297", "0.61359966", "0.6134914", "0.6129426", "0.61244494", "0.61242026", "0.610998", "0.6109306", "0.6108004", "0.61062276", "0.6105978", "0.60979253", "0.6097597", "0.6094792", "0.60914075", "0.60900426", "0.6087805", "0.60875493", "0.6085158", "0.6081367", "0.608042", "0.6079415", "0.60787714", "0.6075216", "0.606726", "0.6053769", "0.6039786", "0.6037439", "0.60306317", "0.6030025", "0.6029482", "0.6027966", "0.6027547", "0.602724", "0.60267854", "0.60218203", "0.6021693", "0.6020009" ]
0.0
-1
/ Up navigation to finish the activity
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: finish(); return true; default: return super.onOptionsItemSelected(item); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public boolean onSupportNavigateUp() {\r\n finish();\r\n return true;\r\n }", "protected void goBack() {\r\n\t\tfinish();\r\n\t}", "public boolean onSupportNavigateUp(){\n onBackPressed();\n Intent intent_main = new Intent(CreatePersonalActivity.this, MainActivity.class);\n startActivity(intent_main);\n finish();\n return true;\n }", "@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 public boolean onSupportNavigateUp() {\n finish();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp() {\n finish();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp() {\n finish();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp() {\n finish();\n return true;\n }", "public void exitActivity() {\n\n finish();\n\n }", "public void onBackPressed() {\n Intent intent=new Intent(SignUpActivity.this,HomeActivity.class);\n startActivity(intent);\n overridePendingTransition(0,0);\n finish();\n }", "@Override\n public void handleOnBackPressed() {\n navController.navigateUp();\n }", "@Override\n public void onBackPressed() {\n this.finish();\n }", "@Override\n public void onBackPressed() {\n\n finish();\n }", "public void backPressed(View v){\n finish();\n }", "@Override\n public boolean onSupportNavigateUp(){\n finish();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp(){\n finish();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp(){\n finish();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp(){\n finish();\n return true;\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tthis.finish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public boolean onSupportNavigateUp() {\n finish();\n\n return super.onSupportNavigateUp();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t finish();\n\t}", "public void goBack(View view){\n finish();\n }", "@Override\n public boolean onSupportNavigateUp()\n {\n this.finish();\n return super.onSupportNavigateUp();\n\n }", "@Override\n public boolean onSupportNavigateUp()\n {\n this.finish();\n return super.onSupportNavigateUp();\n\n }", "public void backClick(View view) {\n finish();\n }", "@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 public void onClick(View v) {\n startActivity(finishIntent);\n }", "private void gotoOtherActivity() {\n finish();\n }", "public void goBack(View view){\n this.finish();\n }", "public void finishActivity(View view)\n {\n finish();\n }", "@Override\r\n public void onClick(View view) {\r\n finish();\r\n onBackPressed();\r\n\r\n }", "public void onBackPressed(){\n finish();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tthis.finish();\n\t}", "@Override\n public void onBackPressed() {\n finish();\n\n }", "@Override\n public void onBackPressed() {\n\n startActivity(new Intent(getApplicationContext(),ProfileActivity.class));\n finish();\n }", "@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}", "public void onBack(View v){\r\n finish();\r\n }", "@Override\n public void onBackPressed() {\n \tsetResult(RESULT_OK, getIntent());\n \tfinish();\n }", "public void goBack(View view) {\n end();\n }", "public void finishActivity(){\n this.finish ();\n }", "public void goBack(View view) {\n updateMortgage();\n this.finish(); //this ends the 2nd activity, thus taking you back where you came from\n }", "@Override\n public boolean onSupportNavigateUp() {\n onBackPressed();\n return super.onSupportNavigateUp();\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tArticleLatestMoreDetailActivity.this.finish();\r\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\n public boolean onSupportNavigateUp() {\n onBackPressed();\n return false;\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 }", "private void returnBack()\n {\n getActivity().onBackPressed();\n }", "public void goBack(View view) {\n this.finish();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n finish();\n }", "@Override\n public boolean onSupportNavigateUp() {\n onBackPressed();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp() {\n onBackPressed();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp() {\n onBackPressed();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp() {\n onBackPressed();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp() {\n onBackPressed();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp() {\n onBackPressed();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp() {\n onBackPressed();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp() {\n onBackPressed();\n return true;\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tupdata();\n\t\tsuper.onBackPressed();\n\t}", "public void onBackPressed() {\n\n Intent i = new Intent(Saved_Address.this, User_Profile.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n\n }", "public void back(View view) {\n finish();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n NavUtils.navigateUpFromSameTask(EditoryActivity.this);\n }", "public boolean onSupportNavigateUp() {\n onBackPressed();\n return true;\n }", "@Override\r\n public void onBackPressed() {\n setResult(Activity.RESULT_OK);\r\n this.finish();\r\n super.onBackPressed();\r\n }", "@Override\n public void onBackPressed() {\n runExitAnimation(new Runnable() {\n public void run() {\n // *Now* go ahead and exit the activity\n finish();\n }\n });\n }", "@Override\n public void onClick(View v) {\n finish ();\n }", "private void goBackToWelcome(){\n\t\tsetResult(RESULT_OK);\n\t\tfinish();\n\t}", "@Override\n public void onBackPressed() {\n Intent intent = new Intent(BillofLandingActivity.this, HomeActivity.class);\n startActivity(intent);\n finish();\n }", "@Override\n public boolean onSupportNavigateUp() {\n super.onBackPressed();\n\n //Do this to indicate the user is not leaving the quiz, but only leaving the activity..\n //So don't submit the quiz..\n SharedPreferences.Editor e=quizPrefs.edit();\n e.putInt(\"exit\",0);\n e.apply();\n return true;\n }", "@Override\n public boolean onSupportNavigateUp() {\n super.onBackPressed();\n return true;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinishActivity();\n\t\t\t}", "@Override\r\n public void onClick(View arg0) {\n finish();\r\n }", "public void gotoSignupActivity() {\n Intent intent = new Intent();\n intent.setClass(mContext, SignupActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivityForResult(intent, SIGNUP_ACTIVITY_CODE);\n }", "@Override\n public void onClick(View arg0) {\n finish();\n }", "@Override\n\tpublic void MyBack() {\n\t\tFindPasswordActivity.this.finish();\n\t}", "@Override\n public void handleOnBackPressed() {\n getActivity().finish();\n }", "@Override\n public boolean onSupportNavigateUp() {\n finish();\n overridePendingTransition(R.anim.slide_in_from_top, R.anim.slide_out_from_top);\n return false;\n }", "@Override\r\n public void onClick(View v) {\n finish();\r\n }", "@Override\r\n public void onClick(View v) {\n finish();\r\n }", "@Override\r\n public void onClick(View v) {\n finish();\r\n }", "@Override\n public void onClick(View v) {\n finish();\n }", "@Override\n\t\t public void onClick(View view) {\n\t\t \n\t\t finish();\n\t\t }", "@Override\n public void onClick(View v)\n {\n finish();\n }", "@Override\n public void onClick(View v) {\n onBackPressed();\n// Intent intent = new Intent(UnitCardSettingActivity.this, IndexActivity.class);\n// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n// startActivity(intent);\n// finish();\n }", "@Override\n public void onFinishButtonPressed() {\n Intent intent = new Intent(getApplicationContext(), HomeActivity.class);\n startActivity(intent);\n }", "@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}", "@Override\n public void onClick(View view) {\n finish();\n }", "@Override\n public void onClick(View view) {\n finish();\n }", "@Override\n public void onClick(View view) {\n finish();\n }", "@Override\n public void onClick(View view) {\n finish();\n }", "@Override\n public void onClick(View view) {\n finish();\n }" ]
[ "0.7737743", "0.77334523", "0.7726732", "0.76161873", "0.76161873", "0.76030713", "0.76030713", "0.76030713", "0.76030713", "0.7599757", "0.75619555", "0.75355256", "0.74892133", "0.74875146", "0.74837387", "0.7476555", "0.7476555", "0.7476555", "0.7476555", "0.74736774", "0.74736774", "0.74736774", "0.74736774", "0.74736774", "0.74736774", "0.74736774", "0.7462271", "0.74559516", "0.7454041", "0.7441688", "0.74361426", "0.74361426", "0.7410574", "0.7407277", "0.7407277", "0.73930657", "0.7384925", "0.73848283", "0.7379895", "0.7376431", "0.7371676", "0.73619795", "0.73579466", "0.73486614", "0.7324457", "0.7324457", "0.7324457", "0.73080087", "0.730773", "0.72890073", "0.7286413", "0.72863305", "0.7270874", "0.7270094", "0.7256259", "0.72535425", "0.72535425", "0.72531563", "0.7244446", "0.724217", "0.722787", "0.722787", "0.722787", "0.722787", "0.722787", "0.722787", "0.722787", "0.722787", "0.72185296", "0.7205485", "0.72027725", "0.7198569", "0.71937025", "0.7193329", "0.7187418", "0.71699667", "0.71575814", "0.7136402", "0.71342546", "0.7129173", "0.7126903", "0.7126353", "0.71195614", "0.7103365", "0.71025723", "0.7102376", "0.70979095", "0.7097517", "0.7097517", "0.7097517", "0.70948696", "0.70941675", "0.7093243", "0.70916075", "0.7088696", "0.7087845", "0.7085752", "0.7085752", "0.7085752", "0.7085752", "0.7085752" ]
0.0
-1
/ Add the expired date to the list based on the cooked input date Normally food can last up to 4 days before it goes bad
private void addItemToList(String name, String cookedDate) { // HashMap<String, String> item = new HashMap<>(); // item.put(RECIPE_NAME, name); SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy"); Date expired = new Date(); try { Date cooked = format.parse(cookedDate); long date = cooked.getTime() + 4*24*60*60*1000; expired = new Date(date); } catch (Exception e) { e.printStackTrace(); } // // item.put(EXPIRE_DATE, format.format(expired)); // fridgeItems.add(item); JSONObject fridgeJSON = new JSONObject(); try { fridgeJSON.put(RECIPE_NAME, name); fridgeJSON.put(EXPIRE_DATE, format.format(expired)); fridgeJSON.put(USERNAME, username); } catch (JSONException e) { e.printStackTrace(); } addIntoServer(fridgeJSON); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean add(Food food, Date currentDate) {\n if (checkExpiryDate(food, currentDate)) {\n this.foodList.add(food);\n return true;\n }\n return false;\n }", "private long getExpiringItemWithinDays(int day, ObservableList<Item> itemList) {\n LocalDate today = LocalDate.now();\n return itemList.stream().filter(item -> {\n if (item.getExpiryDate().expiryDate == null) {\n return false;\n }\n LocalDate itemExpiryDate = item.getExpiryDate().expiryDate;\n Long daysDifference = DAYS.between(today, itemExpiryDate);\n return daysDifference == day;\n }).count();\n }", "public int checkExpiryDate(LocalDate today) {\n\n final int limit = 100;\n long expirationDate = Duration.between(\n this.food.getCreateDate().atTime(0, 0), this.food.getExpiryDate().atTime(0, 0)\n ).toDays();\n long goneDate = Duration.between(\n this.food.getCreateDate().atTime(0, 0), today.atTime(0, 0)\n ).toDays();\n\n return (int) (limit * goneDate / expirationDate);\n\n }", "Date getExpiredDate();", "void setExpiredDate(Date expiredDate);", "public void addUsedEDay(Integer date) {\n pastEDays.add(date);\n }", "public void expiredate() {\n\t\tdr.findElement(By.xpath(\"//input[@id='expiryDate']\")).sendKeys(\"05/2028\");\r\n\t\t\r\n\t\t\r\n\t\t}", "@Override\n\tpublic List<FoodTruckEntity> findByExpirationDate() {\n\t\tDate date=new Date();\n\t\tList<FoodTruckEntity> list=repo.findByExpirationDateGreaterThanEqual(date);\n\t\treturn list;\n\t}", "@Test\r\n public void testIsExpiredToday_ExpirationDateToday_ExpirationDateEarlierTime() {\r\n doTest(TEST_DATE_2_TODAY, TEST_DATE_1_TODAY, false);\r\n }", "@Test\r\n public void testIsExpiredToday_ExpirationDateToday_ExpirationDateLaterTime() {\r\n doTest(TEST_DATE_2_TODAY, TEST_DATE_3_TODAY, false);\r\n }", "@Override\n public void setExpiration( Date arg0)\n {\n \n }", "public int removeExpired() throws ParseException {\n int removedQuantity = 0;\n List<Expiration> expirations = new ArrayList<Expiration>();\n\n for(Expiration e : expiration){\n Date expDate = strToDate(e.getExpiry_date());\n if(expDate.before(new Date())){\n removedQuantity += e.getQuantity();\n }else{ //adds expiration dates that are after today's date\n expirations.add(e);\n }\n }\n expiration = expirations;\n calculateQuantity();\n return removedQuantity;\n }", "public void setExpirationDate(java.util.Date value);", "private void checksOldExpense() {\n DateUtils dateUtils = new DateUtils();\n\n // Breaking date string from date base\n String[] expenseDate = dateDue.getText().toString().split(\"-\");\n\n if((Integer.parseInt(expenseDate[GET_MONTH]) < Integer.parseInt(dateUtils.currentMonth))\n && (Integer.parseInt(expenseDate[GET_YEAR]) <= Integer.parseInt(dateUtils.currentYear))){\n\n }\n }", "public void removeAfterDate(Date d) {\n for (int i = 0; i < this._noOfItems; i++) {\n FoodItem currentItem = this._stock[i];\n // if item's expiry date before the date param\n if (currentItem.getExpiryDate().before(d)) {\n // remove it from the stock\n removeAtIndex(i);\n // because an item was removed from [i], we'd like to stay in same indexer\n // (because all items are \"shifted\" back in the array)\n i--;\n }\n }\n }", "protected void deadlineLeasing() {\n log.info(\"OrdersBean : deadlineLeasing\");\n List<OrdersEntity> ordersEntitiesDeadline = ordersServices.findAllOrdersByIdUserAndStatusIsValidate(usersBean.getUsersEntity().getId());\n if (!ordersEntitiesDeadline.isEmpty()) {\n contractsBean.findAllContractsInAllMyOrdersForLeasingAndDeadlineIsLowerThan1Month(ordersEntitiesDeadline);\n }\n }", "@Test\r\n public void testIsExpiredToday_ExpirationDateTomorrow() {\r\n doTest(TEST_DATE_2_TOMORROW, TEST_DATE_1_TODAY, false);\r\n }", "public void setRenewalEffectiveDate(java.util.Date value);", "public boolean expired(){\n return !Period.between(dateOfPurchase.plusYears(1), LocalDate.now()).isNegative();\n }", "public abstract Date getExpirationDate();", "protected void addDay(Date date) throws Exception {\n Calendar cal = DateHelper.newCalendarUTC();\n cal.setTime(date);\n String datecode = cal.get(Calendar.YEAR) + \"-\" + (cal.get(Calendar.MONTH) + 1) + \"-\" + cal.get(Calendar.DAY_OF_MONTH);\n affectedDays.put(datecode, date);\n Date rDate = DateHelper.roundDownLocal(date);\n datesTodo.add(rDate);\n }", "public void setExpiredate(String expierdate) {\n\t\t\tthis.expiredate = expierdate;\n\t}", "private Date generateExpirationDate(){\n Calendar c = Calendar.getInstance();\n c.setTime(new Date());\n c.add(Calendar.DAY_OF_WEEK, CommonSecurityConfig.EXPIRATION);\n return c.getTime();\n }", "public void addUsedUDay(Integer date) {\n pastUDays.add(date);\n }", "public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "@Override\n\t\tpublic boolean clearExpired(Date date) {\n\t\t\treturn false;\n\t\t}", "@Test\r\n public void testIsExpiredToday_ExpirationDateYesterday() {\r\n doTest(TEST_DATE_2_YESTERDAY, TEST_DATE_1_TODAY, true);\r\n }", "@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }", "public void AddAvailableDates()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < openDates.size(); i++)\n\t\t\t{\n\t\t\t\tboolean inTable = CheckAvailableDate(openDates.get(i)); \n\t\t\t\tif(inTable == false)\n\t\t\t\t{\n\t\t\t\t\tquery = \"INSERT INTO Available(available_hid, price_per_night, startDate, endDate)\"\n\t\t\t\t\t\t\t+\" VALUE(\"+hid+\", \"+price+\", '\"+openDates.get(i).stringStart+\"', '\"+openDates.get(i).stringEnd+\"')\";\n\t\t\t\t\tint result = con.stmt.executeUpdate(query); \n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public static LocalDate generateExpiration() {\n LocalDate today = LocalDate.now(); //gives us the information at the moment the program is running\n int expYear = today.getYear() + 5;\n LocalDate exp = LocalDate.of(expYear, today.getMonth(), today.getDayOfMonth());\n return exp;\n }", "public void addToReminders(List<Date> reminders);", "@Override\n public synchronized boolean clearExpired(Date date) {\n return false;\n }", "List<ExamPackage> getListExpired();", "long getExpirationDate();", "public void add_item_button(View v){\n if(expiry_date==0){ //if no expiry date was chosen,\n if(product_name.equals(\"Milk\")){//and if the product is milk, \n expiry_date=7; //set it to the default of 7 days until expiry\n }else{//If the product is bread,\n expiry_date=3;//set it to the default of 7 days until expiry\n }\n }\n Product added_p=new Product(product_name,expiry_date); //added_p : product chosen by the user that they currently own\n added_list.add(added_p); //this product is added to the list \n text=(TextView) findViewById(R.id.added_list);\n String content=\"\";\n for(Product p:added_list){\n content=content+(p.getProduct_name()+\" \"+p.getProduct_exp()+\" days \\n\"); //then displayed to show the user \n }\n text.setText(content);\n }", "@Override\n public Date getExpiration()\n {\n return null;\n }", "public void CheckAvail(LocalDate indate, LocalDate outdate)\r\n {\n if (Days.daysBetween(lastupdate, outdate).getDays() > 30)\r\n {\r\n System.out.println(\"more than 30\");\r\n return;\r\n }//Check if checkin date is before today\r\n if (Days.daysBetween(lastupdate, indate).getDays() < 0)\r\n {\r\n System.out.println(\"Less than 0\");\r\n return;\r\n }\r\n int first = Days.daysBetween(lastupdate, indate).getDays();\r\n int last = Days.daysBetween(lastupdate, outdate).getDays();\r\n for (int i = 0; i < roomtypes.size(); i++)\r\n {\r\n boolean ispossible = true;\r\n for (int j = first; j < last; j++)\r\n {\r\n if (roomtypes.get(i).reserved[j] >= roomtypes.get(i).roomcount)\r\n {\r\n ispossible = false;\r\n }\r\n } \r\n \r\n if (ispossible)\r\n System.out.println(roomtypes.get(i).roomname);\r\n }\r\n }", "public void checkExpiration(){\n //Will grab the time from the timer and compare it to the job expiration\n //Then will grab each jobID that is expired\n //Will then add it to a String array\n //then remove all those jobs in the String array\n //return true if found\n\n for(int i=0; i < jobs.size(); i++){\n currentJob = jobs.get(i);\n if(currentJob.getExpData().compareTo(JobSystemCoordinator.timer.getCurrentDate())==0){\n currentJob.setStatus(\"EXPIRED\");\n }\n }\n }", "private void setDefaultExpiryDate() {\n int twoWeeks = 14;\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.add(Calendar.DAY_OF_YEAR, twoWeeks);\n this.expiryDate = calendar.getTime();\n }", "com.google.type.Date getExpireDate();", "@Transactional\n @Override\n public void updatedExpiredTradesStatus(LocalDate date) {\n tradeRepository.updateExpiredTradesStatus(date);\n }", "public void checkDate() throws InvalidDateException {\n Date todayDate = new Date();\n if (!todayDate.after(date)) {\n throw new InvalidDateException(\"Date is from the future!\");\n }\n }", "public String getExpirationDate() { return date; }", "private void updateDueList() {\n boolean status = customerDue.storeSellsDetails(new CustomerDuelDatabaseModel(\n selectedCustomer.getCustomerCode(),\n printInfo.getTotalAmountTv(),\n printInfo.getPayableTv(),\n printInfo.getCurrentDueTv(),\n printInfo.getInvoiceTv(),\n date,\n printInfo.getDepositTv()\n ));\n\n if (status) Log.d(TAG, \"updateDueList: --------------successful\");\n else Log.d(TAG, \"updateDueList: --------- failed to store due details\");\n }", "private void addDateAction(@NonNull Context context,\n @NonNull List<GuidedAction> actions,\n long currentDate) {\n actions.add(new GuidedDatePickerAction.Builder(context)\n .id(ACTION_DATE_PICKER)\n .date(currentDate)\n .build());\n }", "public List<Batch> generateExpiredList() throws Exception {\n\t\tList<Batch> res = new ArrayList<>();\n\t\tLocalDate date = LocalDate.now(); // get time\n\t\tfor (Batch batch : getPDList()) { // get batch\n\t\t\tif (date.isAfter(batch.getExpirationDate())) { // if batch expired\n\t\t\t\tif (batch.hasNotification()) { // if batch has notification\n\t\t\t\t\tbatch.getNotification().setStatus(Status.EXPIRED); // set state to expired\n\t\t\t\t\tbdb.updateBatch(batch);// save batch with updated state expired in database\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception(\"Batch ID:\" + batch.getBatchID() + \" Ingen notifikation\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tres.addAll(findAllByStatus(Status.EXPIRED)); // get batches with state expired\n\t\treturn res;\n\t}", "public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date for this project(dd/mm/yyyy): \");\r\n\r\n UpdateData.updateDueDate();\r\n updateMenu();\t//Return back to previous menu.\r\n }", "public static void resetDates() {\n arrivalDate = LocalDate.now();\n departureDate = arrivalDate.plusDays(1);\n }", "boolean hasExpirationDate();", "@Transactional\n public void markOverdueInvoices(LocalDate expiryDate) {\n List<Invoice> invoices = invoiceRepository.findByDueDateBeforeAndInvoiceState(fromLocalDate(expiryDate), Invoice.InvoiceState.OUTSTANDING);\n for (Invoice invoice : invoices) {\n log.info(\"Setting state to overdue on invoice {}\", invoice);\n invoice.setInvoiceState(Invoice.InvoiceState.OVERDUE);\n invoiceRepository.save(invoice);\n }\n }", "public PurchaseList(Date dateOfPurchase) {\n this.dateOfPurchase = dateOfPurchase;\n }", "public ArrayList<OverdueNotice> createOverdueNotices(){\n ArrayList<OverdueNotice> overdueList = new ArrayList<OverdueNotice>();\n Set<String> patronNames = this.patron.keySet();\n for (String patronName : patronNames){\n ArrayList<Book> books = this.patron.get(patronName).getBooks();\n for (Book book : books){\n if (book.getDueDate() == (this.calendar.getDate()-1)){\n overdueList.add(new OverdueNotice(this.patron.get(patronName),this.calendar.getDate()));\n break;\n }\n }\n }\n return overdueList;\n }", "private static String dateAddAndValidation() {\n Scanner scan = new Scanner(System.in);\r\n String date;\r\n while (true) {\r\n System.out.println(\"Please add task due date(YYYY-MM-DD)\");\r\n date = scan.nextLine().trim();\r\n String[] dateArray = date.split(\"-\");\r\n if (dateArray.length != 3 || date.length() != 10) {\r\n System.out.println(RED + \"Date format is incorrect. \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[0].length() != 4 || !StringUtils.isNumeric(dateArray[0])) {\r\n System.out.println(RED + \"You have typed incorrect Year format (not all of the data are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[1].length() != 2 || !NumberUtils.isDigits(dateArray[1])) {\r\n System.out.println(RED + \"You have given incorrect Month format (not all of the signs are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (Integer.parseInt(dateArray[1]) < 1 || Integer.parseInt(dateArray[1]) > 12) {\r\n System.out.println(RED + \"You have given incorrect Month date (Month date shouldn't be greater than 12 or less than 1). \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[2].length() != 2 || !NumberUtils.isDigits(dateArray[2])) {\r\n System.out.println(RED + \"You have given incorrect Day format (not all of the signs are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (Integer.parseInt(dateArray[2]) < 1 || Integer.parseInt(dateArray[2]) > 31) {\r\n System.out.println(RED + \"You have typed incorrect Day date (Day date shouldn't be greater than 31 or less than 1). \" + RESET);\r\n continue;\r\n }\r\n break;\r\n }\r\n return date;\r\n }", "public List<Employee> findEmployeesForServiceByDate(LocalDate date) {\n DayOfWeek dayOfWeek = date.getDayOfWeek();\n\n List<Employee> employeeAvailable = new ArrayList<>();\n\n List<Employee> allEmployees = employeeRepository.findAll();\n for (Employee employee: allEmployees) {\n // Check if employee is available on given days and posses certain skills\n if(employee.getDaysAvailable().contains(dayOfWeek)) {\n employeeAvailable.add(employee);\n }\n }\n\n return employeeAvailable;\n }", "boolean hasExpireDate();", "public void setDateHired(Date date) {\r\n\t\tdateHired = date;\r\n\t}", "public void appendToReminders(List<Date> reminders);", "public static List<Event> generateExpiredEvents() {\n\t\tEvent event1 = Event.create(0);\r\n\t\tevent1.infoStore().add(Info.create(1, 2, 3));\r\n\t\tList<Event> events = new ArrayList<Event>();\r\n\t\tevents.add(event1);\r\n\t\treturn events;\r\n\t}", "public void addToReminders(Date reminders);", "public void setLstLostDate(Date lstLostDate) {\n this.lstLostDate = lstLostDate;\n }", "public List<String> getEligibleForAutoApproval(Date todayAtMidnight);", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getExpirationDate();", "public boolean isOverdue(int today);", "public List<String> getDates() {\n\n List<String> listDate = new ArrayList<>();\n\n Calendar calendarToday = Calendar.getInstance();\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n String today = simpleDateFormat.format(calendarToday.getTime());\n\n Calendar calendarDayBefore = Calendar.getInstance();\n calendarDayBefore.setTime(calendarDayBefore.getTime());\n\n int daysCounter = 0;\n\n while (daysCounter <= 7) {\n\n if (daysCounter == 0) { // means that its present day\n listDate.add(today);\n } else { // subtracts 1 day after each pass\n calendarDayBefore.add(Calendar.DAY_OF_MONTH, -1);\n Date dateMinusOneDay = calendarDayBefore.getTime();\n String oneDayAgo = simpleDateFormat.format(dateMinusOneDay);\n\n listDate.add(oneDayAgo);\n\n }\n\n daysCounter++;\n }\n\n return listDate;\n\n }", "public void setActivationDate() {\r\n\t\tif(this.removalDate != null) {\r\n\t\t\tthrow new RuntimeException(\"This item has already been activated\");\r\n\t\t}\r\n\t\tthis.activationDate = new Date(); \r\n\t\tGregorianCalendar cal = new GregorianCalendar();\r\n\t\t\r\n\t\t// set date for test\r\n\t\t//cal.set(2010, 10, 29, 02, 55);\r\n\t\t\r\n\t\t\r\n\t\tcal.add(GregorianCalendar.HOUR_OF_DAY, this.itemType.getItemDuration());\r\n\t\tthis.removalDate = cal.getTime();\r\n\t}", "Date getInvoicedDate();", "private static List<Date> getTradeDays(Date startDate, Date expiration) {\r\n\t\t\r\n\t\tEntityManagerFactory emf = Persistence.createEntityManagerFactory(\"JPAOptionsTrader\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\t\r\n\t\t// Note: table name refers to the Entity Class and is case sensitive\r\n\t\t// field names are property names in the Entity Class\r\n\t\tQuery query = em.createQuery(\"select distinct(opt.trade_date) from \" + TradeProperties.SYMBOL_FOR_QUERY + \" opt where \"\r\n\t\t\t\t+ \"opt.trade_date >= :tradeDate \" \r\n\t\t\t\t+ \"and opt.expiration=:expiration \"\t\r\n\t\t\t\t+ \" order by opt.trade_date\");\r\n\t\t\r\n\t\tquery.setParameter(\"tradeDate\", startDate);\r\n\t\tquery.setParameter(\"expiration\", expiration);\r\n\r\n\t\tquery.setHint(\"odb.read-only\", \"true\");\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Date> tradeDates = query.getResultList();\r\n\t\t\r\n\t\tem.close();\r\n\t\t\r\n\t\treturn tradeDates;\r\n\t}", "public static void main(String[] args) {\r\n\t\tDate today = new Date(2, 26, 2012);\r\n\t\tSystem.out.println(\"Input date is \" + today);\r\n\t\tSystem.out.println(\"Printing the next 10 days after \" + today);\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\ttoday = today.next();\r\n\t\t\tSystem.out.println(today);\r\n\t\t}\r\n\t\tDate expiry = new Date(2011);\r\n\t\tSystem.out.println(\"testing year 2011 as input:\" + expiry);\r\n\r\n\t\tDate todayDate = new Date();\r\n\t\tSystem.out.println(\"todays date: \" + todayDate);\r\n\t\tSystem.out.println(\"current month:\" + todayDate.month);\r\n\r\n\t\t// testing isValidMonth function\r\n\t\tDate start = new Date(\"08-01-2010\");\r\n\t\tDate end1 = new Date(\"09-01-2010\");\r\n\t\tboolean param1 = start.isValidMonth(4, end1);\r\n\t\tSystem.out.println(\"is April valid between: \" + start + \" and \" + end1\r\n\t\t\t\t+ \": \" + param1);\r\n\t\tDate end2 = new Date(\"02-01-2011\");\r\n\t\tboolean param2 = start.isValidMonth(2, end2);\r\n\t\tSystem.out.println(\"is feb valid between: \" + start + \" and \" + end2\r\n\t\t\t\t+ \": \" + param2);\r\n\t\tboolean param3 = start.isValidMonth(8, start);\r\n\t\tSystem.out.println(\"is aug valid between: \" + start + \" and \" + start\r\n\t\t\t\t+ \": \" + param3);\r\n\t\tparam3 = start.isValidMonth(4, start);\r\n\t\tSystem.out.println(\"is april valid between: \" + start + \" and \" + start\r\n\t\t\t\t+ \": \" + param3);\r\n\t\tDate end3 = new Date(\"02-01-2010\");\r\n\t\tboolean param4 = start.isValidMonth(8, end3);\r\n\t\tSystem.out.println(\"is aug valid between: \" + start + \" and \" + end3\r\n\t\t\t\t+ \": \" + param4);\r\n\t\t \r\n\t\tDate lease = new Date(\"1-01-2012\");\r\n\t\tDate expiry1 = new Date(\"12-31-2012\");\r\n\r\n\t\t// testing daysBetween\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING daysBetween method\\n------------------------------\");\r\n\t\tint count = lease.daysBetween(expiry);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + expiry + \"is: \"\r\n\t\t\t\t+ count);\r\n count = new Date(\"1-01-2011\").daysBetween(new Date(\"12-31-2011\"));\r\n\t\tSystem.out.println(\"Days between [1-01-2011] and [12-31-2011]\" + \"is: \"\r\n\t\t\t\t+ count);\r\n\t\tcount = lease.daysBetween(expiry1);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + expiry1 + \"is: \"\r\n\t\t\t\t+ count);\r\n\t\tDate testDate = new Date(\"12-31-2013\");\r\n\t\tcount = lease.daysBetween(testDate);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and [12-31-2013] \"\r\n\t\t\t\t+ \"is: \" + count);\r\n\t\tcount = lease.daysBetween(lease);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + lease + \"is: \"\r\n\t\t\t\t+ count);\r\n count = lease.daysBetween(new Date(\"1-10-2012\"));\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and [1-10-2012\" + \"is: \"\r\n\t\t\t\t+ count);\r\n \r\n\t\tcount = testDate.daysBetween(lease);\r\n\t\tSystem.out.println(\"Days between \" + testDate + \" and \" + lease + \"is: \"\r\n\t\t\t\t+ count);\r\n\r\n\t\t// testin isBefore\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING isBefore method\\n------------------------------\");\r\n\t\tboolean isBefore = today.isBefore(today.next());\r\n\t\tSystem.out.println(today + \"is before \" + today.next() + \": \"\r\n\t\t\t\t+ isBefore);\r\n\t\tisBefore = today.next().isBefore(today);\r\n\t\tSystem.out.println(today.next() + \"is before \" + today + \": \"\r\n\t\t\t\t+ isBefore);\r\n\t\tisBefore = today.isBefore(today);\r\n\t\tSystem.out.println(today + \"is before \" + today + \": \" + isBefore);\r\n isBefore = today.isBefore(today.addMonths(12));\r\n\t\tSystem.out.println(today + \"is before \" + today.addMonths(12) + \": \" + isBefore);\r\n\r\n\t\t// testing addMonths\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING addMonths method\\n------------------------------\");\r\n\t\ttoday = new Date(\"1-31-2011\");\r\n\t\tDate newDate = today.addMonths(1);\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"adding 1 months to \" + today + \" gives: \" + newDate);\r\n\t\tnewDate = today.addMonths(13);\r\n\t\tSystem.out.println(\"adding 13 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\ttoday = new Date(\"3-31-2010\");\r\n\t\tnewDate = today.addMonths(15);\r\n\t\tSystem.out.println(\"adding 15 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(23);\r\n\t\tSystem.out.println(\"adding 23 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(49);\r\n\t\tSystem.out.println(\"adding 49 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(0);\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"adding 0 months to \" + today + \" gives: \" + newDate);\r\n\t\t\r\n\t\t// testing monthsBetween\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING monthsBetween method\\n------------------------------\");\r\n\t\tint monthDiff = today.monthsBetween(today.addMonths(1));\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + today.addMonths(1)\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\tmonthDiff = today.next().monthsBetween(today);\r\n\t\tSystem.out.println(\"months between \" + today.next() + \" and \" + today\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\ttoday = new Date(\"09-30-2011\");\r\n\t\tDate endDate = new Date(\"2-29-2012\");\r\n\t\tmonthDiff = today.monthsBetween(endDate);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate + \": \"\r\n\t\t\t\t+ monthDiff);\r\n\t\ttoday = new Date();\r\n\t\tDate endDate1 = new Date(\"12-04-2011\");\r\n\t\tmonthDiff = today.monthsBetween(endDate1);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate1\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\ttoday = new Date();\r\n\t\tDate endDate2 = new Date(\"12-22-2010\");\r\n\t\tmonthDiff = today.monthsBetween(endDate2);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate2\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\t\r\n\t\t// following should generate exception as date is invalid!\r\n\t\t// today = new Date(13, 13, 2010);\r\n\r\n\t\t// expiry = new Date(\"2-29-2009\");\r\n // newDate = today.addMonths(-11);\r\n\r\n\t}", "public static String searchExpireFromCategory(HttpServletRequest request, HttpServletResponse response) {\n Delegator delegator = (Delegator) request.getAttribute(\"delegator\");\n String productCategoryId = request.getParameter(\"SE_SEARCH_CATEGORY_ID\");\n String thruDateStr = request.getParameter(\"thruDate\");\n String errMsg = null;\n\n Timestamp thruDate;\n try {\n thruDate = Timestamp.valueOf(thruDateStr);\n } catch (RuntimeException e) {\n Map<String, String> messageMap = UtilMisc.toMap(\"errDateFormat\", e.toString());\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.thruDate_not_formatted_properly\", messageMap,\n UtilHttp.getLocale(request));\n Debug.logError(e, errMsg, MODULE);\n request.setAttribute(\"_ERROR_MESSAGE_\", errMsg);\n return \"error\";\n }\n\n try {\n boolean beganTransaction = TransactionUtil.begin(DEFAULT_TX_TIMEOUT);\n try (EntityListIterator eli = getProductSearchResults(request)) {\n if (eli == null) {\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.no_results_found_probably_error_constraints\",\n UtilHttp.getLocale(request));\n request.setAttribute(\"_ERROR_MESSAGE_\", errMsg);\n return \"error\";\n }\n\n GenericValue searchResultView = null;\n int numExpired = 0;\n while ((searchResultView = eli.next()) != null) {\n String productId = searchResultView.getString(\"mainProductId\");\n //get all tuples that match product and category\n List<GenericValue> pcmList = EntityQuery.use(delegator).from(\"ProductCategoryMember\").where(\"productCategoryId\",\n productCategoryId, \"productId\", productId).queryList();\n\n //set those thrudate to that specificed maybe remove then add new one\n for (GenericValue pcm : pcmList) {\n if (pcm.get(\"thruDate\") == null) {\n pcm.set(\"thruDate\", thruDate);\n pcm.store();\n numExpired++;\n }\n }\n }\n Map<String, String> messageMap = UtilMisc.toMap(\"numExpired\", Integer.toString(numExpired));\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.expired_x_items\", messageMap, UtilHttp.getLocale(request));\n request.setAttribute(\"_EVENT_MESSAGE_\", errMsg);\n } catch (GenericEntityException e) {\n Map<String, String> messageMap = UtilMisc.toMap(\"errSearchResult\", e.toString());\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.error_getting_search_results\", messageMap,\n UtilHttp.getLocale(request));\n Debug.logError(e, errMsg, MODULE);\n request.setAttribute(\"_ERROR_MESSAGE_\", errMsg);\n TransactionUtil.rollback(beganTransaction, errMsg, e);\n return \"error\";\n } finally {\n TransactionUtil.commit(beganTransaction);\n }\n } catch (GenericTransactionException e) {\n Map<String, String> messageMap = UtilMisc.toMap(\"errSearchResult\", e.toString());\n errMsg = UtilProperties.getMessage(RESOURCE, \"productsearchevents.error_getting_search_results\", messageMap, UtilHttp.getLocale(request));\n Debug.logError(e, errMsg, MODULE);\n request.setAttribute(\"_ERROR_MESSAGE_\", errMsg);\n return \"error\";\n }\n return \"success\";\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n Spinner spinner = (Spinner) parent;\n if(spinner.getId() == R.id.spinner) { //after a item is selected from the product drop down list,\n List<String> dates = new ArrayList<>(product_list.size()); //dates : options to set expiry date\n\n //an if statement is made since the sample size is only 2, \n //with larger sample sizes it would be a good idea to create a for loop.\n if (position == 0) { //if milk was selected,\n product_name = (product_list.get(0)).getProduct_name();\n Product object = product_list.get(0); //then the selected object will be recorded as milk\n dates.add(Integer.toString(object.getProduct_exp())); //and the expiry date is set to the default of milk\n } else { //if bread it selected\n\n product_name = (product_list.get(1)).getProduct_name();\n Product object = product_list.get(1);//then the selected object will be recorded as bread\n dates.add(Integer.toString(object.getProduct_exp()));//and the expiry date is set to the default of bread\n }\n\n //below are the options to select for te expiry date\n //again manual done, but a for loop would have been better in case the number of options change.\n dates.add(\"1\");\n dates.add(\"2\");\n dates.add(\"3\");\n dates.add(\"4\");\n dates.add(\"5\");\n dates.add(\"6\");\n dates.add(\"7\");\n\n //a drop down view is used as the layout for the spinner\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, dates);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n //the view for the spinner for the expiry date is used to display\n list = (Spinner) findViewById(R.id.spinner_day);\n list.setAdapter(adapter);\n }\n else if(spinner.getId() == R.id.spinner_day){//after the number of day(s) is selected from the expiry date drop down list,\n expiry_date=position; //that number is set to the user's desired expiry date.\n }\n }", "private void setComputedDatesForLeaveTypes(String leaveDates,float totalDays, float lwp,List<String> dateTokensList) {\n\t\t //computing dates for one page leave history report\n\t\t // String leaveDates=entity.getLeaveDates();\n\t\t String leaveDatesToken[]=leaveDates.split(\",\");\n\t\t //handle dates for Leaves first.\n\t\t float totaLeavesType=totalDays-lwp;//3.5 and lwp=1.5\n\t\t int totalLeaveCount=(int)Math.ceil(totaLeavesType);\n\t\t int totalLeaveLessCount=(int)Math.floor(totaLeavesType);\n\t\t StringBuilder compDateBuilder=new StringBuilder();\n\t\t for(int x=0;x<totalLeaveCount;x++) {\n\t\t\t String compDate=leaveDatesToken[x];\n\t\t\t String dd=compDate.split(\"-\")[2];\n\t\t\t if((x+1)==totalLeaveCount) { //last date\n\t\t\t \t if(totalLeaveCount>totalLeaveLessCount){\n\t\t\t \t \t//float tempLeave=totalLeaveCount-totaLeavesType;\n\t\t\t \t\t float tempLeave=(float)(totaLeavesType - Math.floor(totaLeavesType)); \n\t\t\t \t\t compDateBuilder.append(dd+\"(\"+tempLeave+\"),\");\n\t\t\t \t } else{\n\t\t\t \t \t compDateBuilder.append(dd+\"(1),\");\n\t\t\t \t }\n\t\t\t }else {\n\t\t\t \tcompDateBuilder.append(dd+\"(1),\");\n\t\t\t }\n\t\t }\n\t\t //handle dates for LWP.\n\t\t int totalLwpCount=(int)Math.ceil(lwp);\n\t\t int totalLwpLessCount=(int)Math.floor(lwp);\n\t\t //float \n\t\t //5->>2\n\t\t StringBuilder compLwpDateBuilder=new StringBuilder();\n\t\t for(int x=leaveDatesToken.length-totalLwpCount;x<leaveDatesToken.length;x++) {\n\t\t\t String compDate=leaveDatesToken[x];\n\t\t\t String dd=compDate.split(\"-\")[2];\n\t\t\t if(compDateBuilder.toString().length()==0 && ((x+1)==leaveDatesToken.length)) {\n\t\t\t \t if(totalLwpCount>totalLwpLessCount){\n\t\t\t \t \t float templwp=totalLwpCount-lwp;\n\t\t\t \t \t compLwpDateBuilder.append(dd+\"(\"+templwp+\"),\");\n\t\t\t \t }else{\n\t\t\t \t \t compLwpDateBuilder.append(dd+\",\");\n\t\t\t \t } \n\t\t\t }\n\t\t\t else if(compDateBuilder.toString().length()>0 && x==(leaveDatesToken.length-totalLwpCount)) { //first date\n\t\t\t \t if(totalLwpCount>totalLwpLessCount){\n\t\t\t \t \t //float templwp=totalLwpCount-lwp;\n\t\t\t \t \t float templwp=(float)(lwp - Math.floor(lwp)); \n\t\t\t \t \t compLwpDateBuilder.append(dd+\"(\"+templwp+\"),\");\n\t\t\t \t }else{\n\t\t\t \t \t compLwpDateBuilder.append(dd+\"(1),\");\n\t\t\t \t }\n\t\t\t }else {\n\t\t\t \t compLwpDateBuilder.append(dd+\"(1),\");\n\t\t\t }\n\t\t }\n\t\t dateTokensList.add(compDateBuilder.toString());\n\t\t dateTokensList.add(compLwpDateBuilder.toString());\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getRenewalEffectiveDate();", "public void setExpirationDate(Date expirationDate) {\r\n this.expirationDate = expirationDate;\r\n }", "public static void MakeNewClaims(model.Claims claims)\n {\n String ClaimsID = claims.getUsername();\n Date ClaimsDate = claims.getDate();\n String ClaimsRationale= claims.getRationale();\n String ClaimsStatus = claims.getStatus();\n int ClaimsAmount = claims.getAmount();\n\n ArrayList<Date> dates = new ArrayList<Date>();\n\n //DB Query\n String query = \"INSERT INTO XYZ.\\\"Claims\\\" (\\\"mem_id\\\",\\\"date\\\",\\\"rationale\\\",\\\"status\\\",\\\"amount\\\") VALUES ('\" + ClaimsID + \"', CURRENT_DATE ,'\" + ClaimsRationale + \"', '\" + ClaimsStatus + \"', \" + ClaimsAmount + \")\" ;\n String query1 = \"SELECT * FROM XYZ.\\\"Claims\\\" WHERE XYZ.\\\"Claims\\\".\\\"mem_id\\\" = \" + \"'\" + ClaimsID + \"'\";\n ResultSet rs = dao.DBConnectionProvider.executeQuery(query1);\n dao.DBConnectionProvider.commitQuery(query);\n /*try{\n\n while(rs.next()){\n dates.add(rs.getDate(\"date\"));\n }\n System.out.println(dates.size() + \" dates size\");\n if (dates.size() < 2){\n com.DBConnectionProvider.commitQuery(query);\n }else{\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date startOfYear = format.parse(\"2019-01-01\");\n int claimsThisYear = 0;\n for (int i = 0; i < dates.size();i++){\n if (dates.get(i).after(startOfYear)){\n claimsThisYear++;\n }\n }\n if (claimsThisYear < 2){\n com.DBConnectionProvider.commitQuery(query);\n }\n\n }\n }catch(SQLException | ParseException e){;}*/\n }", "boolean expired();", "public void setIssuanceDate(Date value) {\n setAttributeInternal(ISSUANCEDATE, value);\n }", "public ArrayList <User> getuserList2(){\n \n ArrayList<User> userList = new ArrayList<User>();\n Connection con = DBconnect.connectdb();\n \n Statement st;\n ResultSet rs;\n \n try {\n \n String today = new SimpleDateFormat(\"yyyy-MM-dd\").format(Calendar.getInstance().getTime());\n \n \n \n String query= \"SELECT * FROM Product WHERE Qty>0 and DATEDIFF(day,EXP_Date,'\" + today + \"')>=1 \";//DATEDIFF - today is current day , Date is database day\n \n st = con.createStatement();\n rs= st.executeQuery(query);\n User user;\n while(rs.next()){\n user = new User(rs.getDate(\"EXP_Date\"),rs.getInt(\"Product_Code\"),rs.getFloat(\"Total_Cost\"),rs.getFloat(\"Qty\"));\n userList.add(user);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return userList;\n }", "public Date getExpireDate() {\n return expireDate;\n }", "public Date getExpireDate() {\n return expireDate;\n }", "public Date getExpireDate() {\n return expireDate;\n }", "protected void updateTodaysDate() {\n\t\tthis.todaysDate = new Date();\n\t}", "List<Doctor> getAvailableDoctors(java.util.Date date, String slot) throws CliniqueException;", "@Given(\"^that the expiry date of Licence is in (\\\\d+) days$\")\n public void that_the_expiry_date_of_Licence_is_in_days(int arg1) throws Throwable {\n driverUser = new DriverUser(LocalDate.now().plusDays(arg1), LocalDate.now(), \"nu;;\", \"null\");\n }", "public void setExpirationDate(Date expirationDate) {\n this.expirationDate = expirationDate;\n }", "public void setEffectiveDate(java.util.Date value);", "private void setExpiresDate(Date date, long offset)\n {\n date.setTime(System.currentTimeMillis() + offset);\n }", "private void cleanSweep(){\n // Corrects the reminder dates for those reminders which will be repeating.\n refreshAllRepeatReminderDates();\n\n // Starts removing expired reminders.\n Calendar timeRightNow = Calendar.getInstance();\n boolean cleanList;\n for (int outerCounter=0; outerCounter<reminderItems.size();outerCounter++) {\n cleanList=true;\n for (int counter = 0; counter < reminderItems.size(); counter++) {\n int year = reminderItems.get(counter).getReminderYear();\n int month = reminderItems.get(counter).getReminderMonth();\n int day = reminderItems.get(counter).getReminderDay();\n int hour = reminderItems.get(counter).getReminderHour();\n int minute = reminderItems.get(counter).getReminderMinute();\n int second = 0;\n\n Calendar timeOfDeletion = Calendar.getInstance();\n timeOfDeletion.set(year, month, day, hour, minute, second);\n\n if (timeOfDeletion.before(timeRightNow)) {\n deleteReminderItem(counter);\n cleanList=false;\n break;\n }\n }\n if(cleanList){\n break;\n }\n }\n\n // Refreshes the reminder date descriptions (correcting \"Today\" and \"Tomorrow\" depending on the date).\n refreshAllDateDescriptions();\n }", "List<Expenses> latestExpenses();", "public void setIssuedDate(Date v) \n {\n \n if (!ObjectUtils.equals(this.issuedDate, v))\n {\n this.issuedDate = v;\n setModified(true);\n }\n \n \n }", "public Date getExpirationDate() {\r\n return expirationDate;\r\n }", "public Boolean isExpired() {\n\t\tCalendar today = Calendar.getInstance();\n\t\treturn today.get(Calendar.DAY_OF_YEAR) != date.get(Calendar.DAY_OF_YEAR);\n\t}", "Date getNextTodo();", "public List<TblStockOpnameDetailItemExpiredDate>getAllDataStockOpnameItemExp(TblItem item);", "@Override\r\n public JSONObject editFood(JSONObject input) {\n int id = (Integer) input.get(\"id\");\r\n Date dateExpired = (Date) input.get(\"dateExpired\");\r\n\r\n Refrigerator refrigerator = em.find(Refrigerator.class, id);\r\n if (refrigerator != null) {\r\n refrigerator.setDateExpired(dateExpired);\r\n\r\n em.merge(refrigerator);\r\n }\r\n \r\n //Tra ket qua\r\n JSONObject result = new JSONObject();\r\n result.put(\"result\", \"Edited\");\r\n return result;\r\n }", "public void deleteExpiredAbsences() throws SQLException {\n java.sql.Date sqlExpiryDate = java.sql.Date.valueOf(LocalDate.now());\n String SQLStmt = \"DELETE FROM ABSENCE WHERE DATE < '\" + sqlExpiryDate + \"';\";\n try (Connection con = dbc.getConnection()) {\n Statement statement = con.createStatement();\n statement.executeUpdate(SQLStmt); \n }\n }", "public void setExpireDate(Date expireDate) {\n this.expireDate = expireDate;\n }", "public void setExpireDate(Date expireDate) {\n this.expireDate = expireDate;\n }", "public void setExpireDate(Date expireDate) {\n this.expireDate = expireDate;\n }", "public void setExpireDate(Date expireDate) {\n this.expireDate = expireDate;\n }", "public static void main(String[] args) {\n date d1 = new date(8, 11, 2018);// integer\n date d2 = new date();\n date d3 = new date(15, 9, 1965);\n date d4 = new date(\"18.9.2019\"); // type of string\n date d5 = new date(18, 9, 2019);\n System.out.println(d1.toString());\n System.out.println(d2.toString());\n System.out.println(d3.getD() + \".\" + d3.getM() + \".\" + d3.getY());\n System.out.println(d4.dateSplit());\n d5.equals(d2);\n if (d5.equals(d2) == true) {\n System.out.println(\"match\");\n } else {\n System.out.println(\"Unmatch\");\n }\n //ask from the user\n Scanner sc = new Scanner(System.in);\n System.out.println(\"What is the day?\");\n String s = sc.nextLine();\n System.out.println(\"You entered string: \" + s);\n date user = new date(s);\n\n //compare\n d3.equals(user);\n // System.out.println(d3.equals(user));\n if (d3.equals(user) == true) {\n System.out.println(\"Match\");\n } else {\n System.out.println(\"Unmatch\");\n }\n\n\n System.out.println(\"enter a month: \");\n String monthh = sc.nextLine();\n System.out.println(date.getMonthNumber(monthh));\n\n\n date d7 = new date(11, 2, 2019);\n System.out.println(d7.returnLongForm());\n\n\n //Assignment3.1\n\n ArrayList<date> Date = new ArrayList<>();\n\n Scanner input = new Scanner(System.in);\n System.out.println(\"What is the day you want to add?\");\n\n int i;\n boolean empty = true;\n\n\n while (input.hasNextLine()) {\n String datee = input.nextLine();\n if (datee.isEmpty()) {\n System.out.println(\"Stop adding!\");\n break;\n } else {\n Date.add(new date(datee));\n System.out.println(\"What is the day you want to add?\");\n empty = false;\n }\n if (empty) {\n System.out.println(\"No valid date\");\n }\n }\n System.out.println(\"All the dates you have entered: \\n \");\n for (i = 0; i < Date.size(); i++) {\n System.out.println(Date.toString());\n }\n\n\n while (true) {\n System.out.println(\"The user give a date: \");\n String DATE = input.nextLine();\n\n if (DATE.isEmpty()) {\n System.out.println(\"Stop searching!\");\n break;\n }\n date a = new date(DATE);\n boolean check = false;\n for (int j = 0; j < Date.size(); j++) {\n if (a.equals(Date.get(j))) {\n System.out.println(\"The index of the date is \" + j);\n check = true;\n break;\n }\n }\n if (!check) System.out.println(\"Date not found\"); // check == false\n }\n\n while (true) {\n System.out.println(\"What year you want to search: (Enter <=0 to stop searching!) \");\n int year = input.nextInt();\n if (year <= 0) {\n System.out.println(\"Stop searching!\");\n boolean check = false;\n break;\n\n }\n boolean check = true;\n //date YEAR = new date(year);\n for (int j = 0; j < Date.size(); j++) {\n if (year == Date.get(j).getY()) {\n System.out.println(Date.get(j).toString());\n check = false;\n }\n }\n if (check) {\n System.out.println(\"No valid year\");\n }\n }\n\n }" ]
[ "0.64694196", "0.6194523", "0.6183355", "0.61015147", "0.5980566", "0.59582746", "0.58854085", "0.57756525", "0.5774967", "0.57521677", "0.574764", "0.5696154", "0.56725913", "0.5672581", "0.5633666", "0.56319463", "0.5614888", "0.5602504", "0.55455035", "0.55195504", "0.5483093", "0.5479172", "0.5475489", "0.5474917", "0.5464013", "0.54605985", "0.54211515", "0.541602", "0.54109645", "0.54060584", "0.53974324", "0.53872025", "0.5385658", "0.53832185", "0.5376169", "0.53711", "0.53694874", "0.53315675", "0.53279024", "0.5313586", "0.5264509", "0.5264114", "0.52575827", "0.52564037", "0.52525294", "0.52418834", "0.5234609", "0.5230356", "0.52197605", "0.5219259", "0.52163297", "0.5211535", "0.52086985", "0.5196587", "0.5191494", "0.51889014", "0.518313", "0.51779103", "0.5172435", "0.5162954", "0.515911", "0.51538867", "0.5153521", "0.5147643", "0.51444393", "0.5140453", "0.51347196", "0.51342845", "0.5118209", "0.51116115", "0.511037", "0.5092565", "0.50871724", "0.50777406", "0.50742143", "0.50734246", "0.50721365", "0.50715584", "0.50715584", "0.50715584", "0.5071446", "0.5062913", "0.50581056", "0.50543785", "0.50355476", "0.50353044", "0.5027707", "0.50268316", "0.502435", "0.5022931", "0.50165075", "0.5007677", "0.5003874", "0.5001981", "0.5001669", "0.50007176", "0.50007176", "0.50007176", "0.50007176", "0.5000263" ]
0.58853924
7
Transforms data and updates spectrum
public void transform(double[] x) { int i,j; double sumWindow=nn*nn; System.arraycopy(x,0,data,1,n); if(winNum>0) { for(i=0,j=1;i<nn;i++) { data[j]=data[j]*winMult[i]; j++; data[j]=data[j]*winMult[i]; j++; sumWindow=sumWindow+winMult[i]*winMult[i]; } } /* Test to plot windowed function nSpectrum++; for(i=0,j=0;i<nn;i++) { x[j]=i; j++; x[j]=data[j]; j++; } if(ncurve>=0) ncurve = graph.deleteAllCurves(); ncurve = graph.addCurve(x,nn,Color.blue); graph.paintAll=true; graph.repaint(); */ four1(data,nn,1); nSpectrum++; x[0]=0; spectrum[0]+=(data[0]*data[0]+data[1]*data[1])/sumWindow; for(i=1,j=2;i<nn/2;i++) { x[j]=i*scale; j++; spectrum[i]+=2.*(data[j]*data[j]+data[j+1]*data[j+1])/sumWindow; j++; } x[j]=(nn/2)*scale; j++; spectrum[nn/2]+=(data[j]*data[j]+data[j+1]*data[j+1])/sumWindow; for(i=0,j=1;i<=nn/2;i++) { x[j]=0.434*Math.log(floor+spectrum[i]/nSpectrum); j+=2; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void transform() {\r\n\r\n\t\tint x, y, i;\r\n\t\tComplex[] row = new Complex[width];\r\n\t\tfor (x = 0; x < width; ++x)\r\n\t\t\trow[x] = new Complex();\r\n\t\tComplex[] column = new Complex[height];\r\n\t\tfor (y = 0; y < height; ++y)\r\n\t\t\tcolumn[y] = new Complex();\r\n\r\n\t\tint direction;\r\n\t\tif (spectral)\r\n\t\t\tdirection = -1; // inverse transform\r\n\t\telse\r\n\t\t\tdirection = 1; // forward transform\r\n\r\n\t\t// Perform FFT on each row\r\n\r\n\t\tfor (y = 0; y < height; ++y) {\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\trow[x].re = data[i].re;\r\n\t\t\t\trow[x].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(row, width);\r\n\t\t\tfft(row, width, log2w, direction);\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\tdata[i].re = row[x].re;\r\n\t\t\t\tdata[i].im = row[x].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Perform FFT on each column\r\n\r\n\t\tfor (x = 0; x < width; ++x) {\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tcolumn[y].re = data[i].re;\r\n\t\t\t\tcolumn[y].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(column, height);\r\n\t\t\tfft(column, height, log2h, direction);\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tdata[i].re = column[y].re;\r\n\t\t\t\tdata[i].im = column[y].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (spectral)\r\n\t\t\tspectral = false;\r\n\t\telse\r\n\t\t\tspectral = true;\r\n\r\n\t}", "@Override\n\tpublic void process(TimeStamp startTime, TimeStamp endTime, float[] spectrum) {\n\t\tint numBins = maxBin - minBin;\n\t\t// 1. check to see if we need to create a new previousSpectrum cache\n\t\tif (lastBlockSize != spectrum.length) {\n\t\t\t// 2. calculate min and maxBin\n\t\t\tcalcMaxAndMinBin(spectrum.length);\n\n\t\t\t// 3. create a new spectrum cache of the appropriate size\n\t\t\tnumBins = maxBin - minBin;\n\t\t\tif (numBins > 0)\n\t\t\t\tpreviousSpectrum = new float[numBins];\n\n\t\t\tlastBlockSize = spectrum.length;\n\t\t}\n\n\t\tif (numBins > 0) {\n\t\t\tswitch (differenceType) {\n\t\t\tcase POSITIVERMS:\n\t\t\t\tfeatures = positiveRms(spectrum, minBin, previousSpectrum, 0,\n\t\t\t\t\t\tnumBins);\n\t\t\t\tbreak;\n\t\t\tcase RMS:\n\t\t\t\tfeatures = rms(spectrum, minBin, previousSpectrum, 0, numBins);\n\t\t\t\tbreak;\n\t\t\tcase POSITIVEMEANDIFFERENCE:\n\t\t\t\tfeatures = positiveMeanDifference(spectrum, minBin,\n\t\t\t\t\t\tpreviousSpectrum, 0, numBins);\n\t\t\t\tbreak;\n\t\t\tcase MEANDIFFERENCE:\n\t\t\t\tfeatures = meanDifference(spectrum, minBin, previousSpectrum,\n\t\t\t\t\t\t0, numBins);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// finally copy the current spectrum\n\t\t\tSystem.arraycopy(spectrum, minBin, previousSpectrum, 0, numBins);\n\t\t}\n\t\tforward(startTime, endTime);\n\t}", "private void updateChartPanel() {\n\n Rectangle region = new Rectangle(0, 0, clip.getFrameCount(), clip.getFrameFreqSamples());\n\n //toClipCoords(region);\n region.y = clip.getFrameFreqSamples() - (region.y + region.height);\n\n final int endCol = region.x + region.width;\n final int endRow = region.y + region.height;\n\n //System.out.println(\"endCol = \" + endCol + \" endRow = \" + endRow);\n\n XYSeries xy = new XYSeries(\"data\");\n XYSeries xySpline = new XYSeries(\"spline\");\n\n // Displays the single MAX or STRONGEST Frequency for each column\n // captures every x'th element for fitting spline\n int maxItensity = 0;\n int[] rows = new int[endCol];\n int[] intensities = new int[endCol];\n\n int SPLINEPRECISION = jSlider2.getValue(); // 1 is highest precision; default = 40\n// int SPLINEPRECISION = 40; // 1 is highest precision; default = 40\n int splineCounter = 0;\n\n for (int col = region.x; col < endCol; col++) {\n Frame fr = clip.getFrame(col);\n int strongestFreq = 0;\n int strongestFreqStrength = 0;\n for (int row = region.y; row < endRow; row++) {\n // the following is a MUCH faster equivalent to: img.setRGB(col, row, greyVal);\n //int greyVal = (int) (brightness + (contrast * Math.log1p(Math.abs(preMult * val))));\n int greyVal = (int) (0 + (625.0 * Math.log1p(Math.abs(11.2 * fr.getReal(row)))));\n greyVal = Math.min(255, Math.max(0, greyVal));\n int thisFreqStrength = (greyVal << 16) | (greyVal << 8) | (greyVal);\n\n if (thisFreqStrength > strongestFreqStrength) {\n strongestFreqStrength = thisFreqStrength;\n strongestFreq = row;\n }\n if (thisFreqStrength > maxItensity) {\n maxItensity = thisFreqStrength;\n }\n }\n rows[col] = strongestFreq;\n intensities[col] = strongestFreqStrength;\n }\n //System.out.println(\"maxItensity = \" + maxItensity);\n\n // Average neighboring data values\n // Use minIntensity amoung neighbors for averaged row\n // Use threshold to exclude weak signals\n //int NUMPOINTSAVERAGED = 20;\n int NUMPOINTSAVERAGED = jSlider1.getValue(); // default = 20\n double INTENSITYTHRESHOLD = 0.95;\n int[] data = new int[endCol - NUMPOINTSAVERAGED];\n int[] dataAveraged = new int[endCol - NUMPOINTSAVERAGED];\n int[] minIntensities = new int[endCol - NUMPOINTSAVERAGED];\n for (int col = region.x; col < endCol - NUMPOINTSAVERAGED; col++) {\n int sumRows = 0;\n int minIntensity = maxItensity;\n for (int i = col; i < col + NUMPOINTSAVERAGED; i++) {\n sumRows += rows[i];\n minIntensity = java.lang.Math.min(minIntensity, intensities[i]);\n }\n data[col] = rows[col];\n dataAveraged[col] = java.lang.Math.round(sumRows / NUMPOINTSAVERAGED);\n minIntensities[col] = minIntensity;\n }\n\n for (int col = region.x; col < endCol - 2 * NUMPOINTSAVERAGED; col++) {\n splineCounter++;\n for (int row = region.y; row < endRow; row++) {\n if (row == data[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds actual data\n xy.add((double) col, calibrate((double) convertYCoordToFreq(row)));\n System.out.println(\"adding data point (\" + col + \",\" + calibrate((double) convertYCoordToFreq(row)) + \")\");\n }\n if (row == dataAveraged[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds averaged data\n //xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n if (splineCounter % SPLINEPRECISION == 0) {\n xySpline.add((double) (col + NUMPOINTSAVERAGED / 2), calibrate((double) convertYCoordToFreq(row)));\n }\n }\n }\n }\n //replace Data with new series\n dataset.removeSeries(1);\n dataset.removeSeries(0);\n dataset.addSeries(xy);\n dataset.addSeries(xySpline);\n\n XYPlot xyplot = (XYPlot) chartPanel.getChart().getPlot();\n XYLineAndShapeRenderer xylineandshaperenderer = (XYLineAndShapeRenderer) xyplot.getRenderer();\n xylineandshaperenderer.setSeriesShapesVisible(0, jCheckBox1.isSelected());\n xylineandshaperenderer.setSeriesLinesVisible(1, jCheckBox2.isSelected());\n\n if (jCheckBox3.isSelected()) {\n xyplot.getRangeAxis().setLabel(jTextField8.getText() + \" (\" + jTextField3.getText() + \")\");\n } else {\n xyplot.getRangeAxis().setLabel(\"Frequency (Hz)\");\n }\n\n // Show Crosshairs\n chartPanel.setVerticalAxisTrace(true);\n\n chartPanel.repaint();\n }", "public void updateOscilloscopeData() {\n rmsSum = 0;\n boolean overshoot = false;\n int reactorFrequency = getReactorFrequency().intValue();\n int reactorAmplitude = getReactorAmplitude().intValue();\n double reactorPhase = getReactorPhase().doubleValue();\n int controlFrequency = getControlFrequency().intValue();\n int controlAmplitude = getControlAmplitude().intValue();\n double controlPhase = getControlPhase().doubleValue();\n for (int i = 0; i < 40; i++) { \n Double reactorValue = reactorAmplitude * Math.sin(2 * Math.PI * reactorFrequency * ((double) i * 5 / 10000) + reactorPhase);\n Double controlValue = controlAmplitude * Math.sin(2 * Math.PI * controlFrequency * ((double) i * 5 / 10000) + controlPhase);\n if (reactorValue + controlValue > 150) {\n this.outputData.get(0).getData().get(i).setYValue(149);\n overshoot = true;\n } else if (reactorValue + controlValue < -150) {\n this.outputData.get(0).getData().get(i).setYValue(-149);\n overshoot = true;\n } else {\n this.outputData.get(0).getData().get(i).setYValue(reactorValue + controlValue);\n }\n if (this.online == true) {\n this.rmsSum = this.rmsSum + Math.pow(reactorValue + controlValue, 2);\n }\n }\n calculateOutputPower();\n checkForInstability(overshoot);\n }", "public abstract float scaleIntensityData(float rawData);", "private void processData() {\n\t\tfloat S, M, VPR, VM;\n\t\tgetCal();\n\t\tgetTimestamps();\n\t\t\n \n\t\tfor(int i = 0; i < r.length; i++) {\n\t\t\t//get lux\n\t\t\tlux[i] = RGBcal[0]*vlam[0]*r[i] + RGBcal[1]*vlam[1]*g[i] + RGBcal[2]*vlam[2]*b[i];\n \n\t\t\t//get CLA\n\t\t\tS = RGBcal[0]*smac[0]*r[i] + RGBcal[1]*smac[1]*g[i] + RGBcal[2]*smac[2]*b[i];\n\t\t\tM = RGBcal[0]*mel[0]*r[i] + RGBcal[1]*mel[1]*g[i] + RGBcal[2]*mel[2]*b[i];\n\t\t\tVPR = RGBcal[0]*vp[0]*r[i] + RGBcal[1]*vp[1]*g[i] + RGBcal[2]*vp[2]*b[i];\n\t\t\tVM = RGBcal[0]*vmac[0]*r[i] + RGBcal[1]*vmac[1]*g[i] + RGBcal[2]*vmac[2]*b[i];\n \n\t\t\tif(S > CLAcal[2]*VM) {\n\t\t\t\tCLA[i] = M + CLAcal[0]*(S - CLAcal[2]*VM) - CLAcal[1]*683*(1 - pow((float)2.71, (float)(-VPR/4439.5)));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tCLA[i] = M;\n\t\t\t}\n\t\t\tCLA[i] = CLA[i]*CLAcal[3];\n\t\t\tif(CLA[i] < 0) {\n\t\t\t\tCLA[i] = 0;\n\t\t\t}\n \n\t\t\t//get CS\n\t\t\tCS[i] = (float) (.7*(1 - (1/(1 + pow((float)(CLA[i]/355.7), (float)1.1026)))));\n \n\t\t\t//get activity\n\t\t\ta[i] = (float) (pow(a[i], (float).5) * .0039 * 4);\n\t\t}\n\t}", "private void perform() {\r\n\r\n final double TWO_PI = 2 * java.lang.Math.PI;\r\n double wt1Imag, wt1Real;\r\n double angle, delta;\r\n double imag, real, fTemp, fReal, fImag;\r\n int i, j, k, m, index1, index2, index3;\r\n int j1, j2, j3;\r\n int k1, k1Double;\r\n int iSwap, i1Swap, i2Swap, index, dim;\r\n int direction;\r\n int dimNumber;\r\n int newLength;\r\n int originalSliceSize;\r\n int newSliceSize = 1;\r\n int originalVolumeSize;\r\n int newVolumeSize;\r\n\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n direction = 1;\r\n } else {\r\n direction = -1;\r\n }\r\n\r\n if (image25D) {\r\n dimNumber = 2;\r\n } else {\r\n dimNumber = ndim;\r\n }\r\n newLength = newArrayLength;\r\n\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n\r\n if ( !image25D) {\r\n fireProgressStateChanged( -1, null, \"Centering data after FFT algorithm ...\");\r\n }\r\n center(realData, imagData);\r\n }\r\n\r\n if ( !image25D) {\r\n fireProgressStateChanged( -1, null, \"Running FFT algorithm ...\");\r\n }\r\n\r\n j1 = 1;\r\n dim = 1;\r\n for (i = 0; (i < dimNumber) && !threadStopped; i++) {\r\n j1 *= dim;\r\n dim = newDimLengths[i];\r\n j2 = j1 * dim;\r\n j3 = j2 * (newLength / (dim * j1));\r\n\r\n i1Swap = 0;\r\n\r\n for (index1 = 0; (index1 < j2) && !threadStopped; index1 += j1) {\r\n\r\n for (index2 = index1; (index2 < (index1 + j1)) && (index1 < i1Swap); index2++) {\r\n\r\n for (index3 = index2; index3 < j3; index3 += j2) {\r\n i2Swap = -index1 + index3 + i1Swap;\r\n\r\n fTemp = imagData[index3];\r\n imagData[index3] = imagData[i2Swap];\r\n imagData[i2Swap] = fTemp;\r\n\r\n fTemp = realData[index3];\r\n realData[index3] = realData[i2Swap];\r\n realData[i2Swap] = fTemp;\r\n }\r\n }\r\n\r\n for (iSwap = j2 / 2; (iSwap >= j1) && (iSwap < (i1Swap + 1)); iSwap >>= 1) {\r\n i1Swap = i1Swap - iSwap;\r\n }\r\n\r\n i1Swap = i1Swap + iSwap;\r\n }\r\n for (k1 = j1; (k1 < j2) && !threadStopped; k1 <<= 1) {\r\n delta = TWO_PI / (k1 << 1) * direction * j1;\r\n angle = 0;\r\n for (index1 = 0, angle = 0; index1 < k1; index1 += j1) {\r\n wt1Imag = java.lang.Math.sin(angle);\r\n wt1Real = java.lang.Math.cos(angle);\r\n angle += delta;\r\n for (index2 = index1; index2 < (index1 + j1); index2++) {\r\n k1Double = k1 << 1;\r\n for (index3 = index2; index3 < j3; index3 += k1Double) {\r\n index = index3 + k1;\r\n fReal = realData[index];\r\n fImag = imagData[index];\r\n imag = ( (fImag * wt1Real) - (fReal * wt1Imag));\r\n real = ( (fReal * wt1Real) + (fImag * wt1Imag));\r\n imagData[index] = imagData[index3] - imag;\r\n realData[index] = realData[index3] - real;\r\n imagData[index3] = imagData[index3] + imag;\r\n realData[index3] = realData[index3] + real;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if ( !image25D) {\r\n fireProgressStateChanged( (Math.round(10 + ((i + 1) / ndim * 80))), null, null);\r\n }\r\n }\r\n\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n\r\n if ( !image25D) {\r\n fireProgressStateChanged( -1, null, \"Centering data before inverse FFT ...\");\r\n }\r\n\r\n center(realData, imagData);\r\n }\r\n\r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n \tif (ndim >= 2) {\r\n \t\tnewSliceSize = newDimLengths[0]*newDimLengths[1];\r\n \t}\r\n \tif (complexInverse) {\r\n \t\tfor (i = 0; i < newLength; i++) {\r\n \t\t\tif (image25D) {\r\n \t\t\t\trealData[i] = realData[i] / newSliceSize;\r\n \t\t\t\timagData[i] = imagData[i] / newSliceSize;\r\n \t\t\t}\r\n \t\t\telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t imagData[i] = imagData[i] / newLength;\r\n \t\t\t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[2 * AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t for (i = 0; i < originalDimLengths[0]; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t } else if (ndim == 2) {\r\n\t for (i = 0; i < originalDimLengths[1]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[0]; j++) {\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)] = realData[i*newDimLengths[0] + j];\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)+1] = imagData[i*newDimLengths[0] + j];\r\n\t \t}\r\n\t }\r\n\t } else if (ndim == 3) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t for (i = 0; i < originalDimLengths[2]; i++) {\r\n\t for (j = 0; j < originalDimLengths[1]; j++) {\r\n\t for (k = 0; k < originalDimLengths[0]; k++) {\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)] =\r\n\t realData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)+1] =\r\n\t\t imagData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t }\r\n\t }\r\n\t }\r\n\t } else if (ndim == 4) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t originalVolumeSize = originalSliceSize * originalDimLengths[2];\r\n\t newVolumeSize = newSliceSize * newDimLengths[2];\r\n\t for (i = 0; i < originalDimLengths[3]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[2]; j++) {\r\n\t \t\tfor (k = 0; k < originalDimLengths[1]; k++) {\r\n\t \t\t\tfor (m = 0; m < originalDimLengths[0]; m++) {\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)] =\r\n\t realData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)+1] =\r\n\t imagData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t}\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t\t }\t\r\n \t} // if (complexInverse)\r\n \telse { // !complexInverse\r\n\t imagData = null;\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tif (image25D) {\r\n\t \t realData[i] = realData[i] / newSliceSize;\t\r\n\t \t}\r\n\t \telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t // imagData[i] = imagData[i] / newLength;\r\n\t \t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t System.arraycopy(realData, 0, finalData, 0, originalDimLengths[0]);\r\n\t } else if (ndim == 2) {\r\n\t ArrayUtil.copy2D(realData, 0, newDimLengths[0], newDimLengths[1], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], false);\r\n\t } else if (ndim == 3) {\r\n\t ArrayUtil.copy3D(realData, 0, newDimLengths[0], newDimLengths[1], newDimLengths[2], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], originalDimLengths[2], false);\r\n\t } else if (ndim == 4) {\r\n\t ArrayUtil.copy4D(realData, newDimLengths[0], newDimLengths[1], newDimLengths[2], dimLengths[3],\r\n\t finalData, originalDimLengths[0], originalDimLengths[1], originalDimLengths[2],\r\n\t originalDimLengths[3], false);\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t\t }\r\n \t} // else !complexInverse\r\n } // if (transformDir == AlgorithmFFT2.INVERSE)\r\n\r\n }", "private synchronized void update() {\n int numberOfPoints = buffer.get(0).size();\n if (numberOfPoints == 0) return;\n\n for (int i = 0; i < getNumberOfSeries(); i++) {\n final List<Double> bufferSeries = buffer.get(i);\n final List<Double> dataSeries = data.get(i);\n dataSeries.clear();\n dataSeries.addAll(bufferSeries);\n bufferSeries.clear();\n }\n\n //D.info(SineSignalGenerator.this, \"Update triggered, ready: \" + getNumberOfSeries() + \" series, each: \" + data[0].length + \" points\");\n bufferIdx = 0;\n\n // Don't want to create event, just \"ping\" listeners\n setDataReady(true);\n setDataReady(false);\n }", "public void update() {\n\t\tif (c.getResamplingFactor() != 1) return;\n\t\trenderer.getVolume().updateData();\n\t}", "public void updateSMA(){\n audioInput.read(audioBuffer, 0, bufferSize);\n Complex [] FFTarr = doFFT(shortToDouble(audioBuffer));\n FFTarr = bandPassFilter(FFTarr);\n double sum = 0;\n for(int i = 0; i<FFTarr.length;i++){\n sum+=Math.abs(FFTarr[i].re()); // take the absolute value of the FFT raw value\n }\n double bandPassAverage = sum/FFTarr.length;\n Log.d(LOGTAG, \"bandPassAverage: \" + bandPassAverage);\n\n //Cut out loud samples, otherwise compute rolling average as usual\n if(bandPassAverage>THROW_OUT_THRESHOLD){\n mySMA.compute(mySMA.currentAverage());\n }else {\n mySMA.compute(bandPassAverage);\n }\n }", "private void fftAction() {\n float[] dataTemp = new float[outputDate.length];\n //此处添加dataTemp复制data数组中值,防止在排序后data数组值混乱,导致fft操作后重绘时域波形,发生错误。\n System.arraycopy(data, 0, dataTemp, 0, dataTemp.length);\n// outputDate = fft.i2Sort(dataTemp, (int) (Math.log(dataTemp.length) / Math.log(2)));\n outputDate = FFT.myFFT(dataTemp, (int) (Math.log(dataTemp.length) / Math.log(2)));\n }", "public void updateSamples();", "private void resampleAbdomenVOI() {\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n \r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n int x = xcm;\r\n int y = ycm;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xDim && curve.contains(x, y)) {\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > 0 && curve.contains(x, y)) {\r\n\r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > 0 && curve.contains(x, y)) {\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yDim && curve.contains(x, y)) {\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n }\r\n } // end for (angle = 0; ...\r\n \r\n// ViewUserInterface.getReference().getMessageFrame().append(\"resample VOI number of points: \" +xValsAbdomenVOI.size());\r\n curve.clear();\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n curve.add( new Vector3f( xValsAbdomenVOI.get(idx), yValsAbdomenVOI.get(idx), 0 ) );\r\n }\r\n }", "private void resample(){\n\n\t\tint iRow;\n\t\t\n\t\t//saving copies\n\t\tif(rgdX0==null){\n\t\t\trgdX0=rgdX;\n\t\t\trgdY0=rgdY;\n\t\t}\n\t\t\n\t\t//initializing resamples\n\t\trgdX = new double[rgdX0.length][rgdX0[0].length];\n\t\trgdY = new double[rgdY0.length];\n\t\t\n\t\t//resampling\n\t\tfor(int i=0;i<rgdX.length;i++){\n\t\t\tiRow = rnd1.nextInt(rgdX.length);\n\t\t\tfor(int j=0;j<rgdX[0].length;j++){\n\t\t\t\trgdX[i][j]=rgdX0[iRow][j];\n\t\t\t}\n\t\t\trgdY[i]=rgdY0[iRow];\n\t\t}\n\t\tloadData(rgdX,rgdY);\n\t\tthis.mapCoefficients=null;\n\t}", "public void rasterScanning(){\r\n ReadParameter embedPara = new ReadParameter();\r\n QuantisationEmbedding subband = new QuantisationEmbedding();\r\n int i,j,k,p;\r\n double[] coeffStream, modCoeffStream;\r\n //Modification in selected subband only\r\n if(embedPara.getSubbandChoice().compareTo(\"LF\") == 0){\r\n //Embed in low low subband only\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n coeffStream[k++] = subband.getSubbandLL()[i][j];\r\n }\r\n }\r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n // Write it back in proper order\r\n k = 0; // Reset k value\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n \r\n } else if(embedPara.getSubbandChoice().compareTo(\"HF\") == 0){\r\n //Embed in high frequency subband only\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length * 3];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n \r\n // Make it fir three high frequency subbands\r\n for(p=0; p<3; p++){\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n if(p==0){ //Get LH Subband values\r\n coeffStream[k++] = subband.getSubbandLH()[i][j];\r\n \r\n } else if(p==1){ //Get HL Subband values\r\n coeffStream[k++] = subband.getSubbandHL()[i][j];\r\n \r\n } else if(p==2){ //Get HH Subband values\r\n coeffStream[k++] = subband.getSubbandHH()[i][j];\r\n \r\n } // End of if-else condition \r\n } // End of inner loop\r\n } \r\n } // End of outer loop\r\n \r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n \r\n // Write it back in proper order\r\n k=0; // Reset k value\r\n //Write back LH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n \r\n \r\n } else if(embedPara.getSubbandChoice().compareTo(\"AF\") == 0){\r\n //Embed in all subbands\r\n //Initialise the coefficient stream to be modified\r\n coeffStream = new double[subband.getSubbandLL().length * subband.getSubbandLL()[0].length * 4];\r\n modCoeffStream = coeffStream; \r\n k=0;\r\n \r\n // Make it fir three high frequency subbands\r\n for(p=0; p<4; p++){\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n if(p==0){ //Get LL Subband values\r\n coeffStream[k++] = subband.getSubbandLL()[i][j];\r\n \r\n } else if(p==1){ //Get LH Subband values\r\n coeffStream[k++] = subband.getSubbandLH()[i][j];\r\n \r\n } else if(p==2){ //Get HL Subband values\r\n coeffStream[k++] = subband.getSubbandHL()[i][j];\r\n \r\n } else if(p==3){ //Get HH Subband values\r\n coeffStream[k++] = subband.getSubbandHH()[i][j];\r\n \r\n } // End of if-else condition \r\n } // End of inner loop\r\n } \r\n } // End of outer loop\r\n \r\n \r\n \r\n // Coeff modification\r\n modCoeffStream = subband.rasterEmbed(coeffStream);\r\n \r\n \r\n \r\n // Write it back in proper order\r\n k = 0; //Reset k value\r\n //Write back LL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back LH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandLH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HL Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHL()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n //Write back HH Subband\r\n for(i=0; i<subband.getSubbandLL().length; i++){\r\n for(j=0; j<subband.getSubbandLL()[0].length; j++){\r\n subband.getSubbandHH()[i][j] = modCoeffStream[k++];\r\n }\r\n }\r\n \r\n } // End subband choice if-else condition\r\n \r\n }", "private float[] calculateData(float[] data) {\n float total=0;\n for(int i=0;i<data.length;i++)\n {\n total+=data[i];\n }\n for(int i=0;i<data.length;i++)\n {\n data[i]=360*(data[i]/total); \n }\n return data;\n\n }", "@Override\n\tpublic void update(Object data) {\n\t\tbind(data,\"frequencyHz\",frequencyHz.slider);\n\t\tbind(data,\"dampingRatio\",dampingRatio.slider);\n\t\tsuper.update(data);\n\t}", "@Override\n public void runEffect(double[] fft) {\n\n\n for(int i = fft.length - 1; i - pitchMove >= 0; i--)\n {\n fft[i] = fft[i - pitchMove];\n }\n for(int i = 0; i < pitchMove; i++)\n fft[i] = fft[i]*0.5;\n// for(int i = 0, k = 0; i < fft.length; i+=2)\n// {\n// if(i < fft.length/2) {\n// fft2[fft.length / 2 + k - 1] = (fft[fft.length / 2 + i] + fft[fft.length / 2 + i]) / 2;\n// fft2[fft.length / 2 - k - 1] = (fft[fft.length / 2 - i] + fft[fft.length / 2 - i]) / 2;\n// }\n// //fft2[k] = 0;\n// //fft2[fft2.length - k -1] = 0;\n// k++;\n// }\n /*for(int i = 0; i < fft.length; i++)\n {\n fft[i] = Math.abs(fft[i]);\n if(fft[i] < 2){\n fft[i] = 0;\n }\n //Log.d(\"Log\", fft[i] + \" \");\n }*/\n }", "private void process(double sample)\r\n {\n System.arraycopy(samples, 0, samples, 1, sampleSize - 1);\r\n samples[0] = sample;\r\n\r\n currentValue = AnalysisUtil.rms(samples);\r\n }", "public void transform(double[] src, double[] dst){\n\tfor (int i = 0; i < dst.length; i++) {\n\t dst[i] = 0;\n\t for (int j = 0; j < src.length; j++)\n\t\tdst[i] += array[i][j] * src[j]; \n\t}\n }", "private void convertData() {\n m_traces = new ArrayList<Trace>();\n\n for (final TraceList trace : m_module.getContent().getTraceContainer().getTraces()) {\n m_traces.add(new Trace(trace));\n }\n\n m_module.getContent().getTraceContainer().addListener(m_traceListener);\n\n m_functions = new ArrayList<Function>();\n\n for (final INaviFunction function :\n m_module.getContent().getFunctionContainer().getFunctions()) {\n m_functions.add(new Function(this, function));\n }\n\n for (final Function function : m_functions) {\n m_functionMap.put(function.getNative(), function);\n }\n\n m_views = new ArrayList<View>();\n\n for (final INaviView view : m_module.getContent().getViewContainer().getViews()) {\n m_views.add(new View(this, view, m_nodeTagManager, m_viewTagManager));\n }\n\n createCallgraph();\n }", "private void initializeChartPanel() {\n\n Rectangle region = new Rectangle(0, 0, clip.getFrameCount(), clip.getFrameFreqSamples());\n\n //toClipCoords(region);\n region.y = clip.getFrameFreqSamples() - (region.y + region.height);\n\n final int endCol = region.x + region.width;\n final int endRow = region.y + region.height;\n\n //System.out.println(\"endCol = \" + endCol + \" endRow = \" + endRow);\n\n XYSeries xy = new XYSeries(\"data\");\n XYSeries xySpline = new XYSeries(\"spline\");\n\n // Displays the single MAX or STRONGEST Frequency for each column\n // captures every x'th element for fitting spline\n int maxItensity = 0;\n int[] rows = new int[endCol];\n int[] intensities = new int[endCol];\n\n// int SPLINEPRECISION = chartPrefJSlider2.getValue(); // 1 is highest precision; default = 40\n int SPLINEPRECISION = 40; // 1 is highest precision; default = 40\n int splineCounter = 0;\n\n for (int col = region.x; col < endCol; col++) {\n Frame fr = clip.getFrame(col);\n int strongestFreq = 0;\n int strongestFreqStrength = 0;\n for (int row = region.y; row < endRow; row++) {\n // the following is a MUCH faster equivalent to: img.setRGB(col, row, greyVal);\n //int greyVal = (int) (brightness + (contrast * Math.log1p(Math.abs(preMult * val))));\n int greyVal = (int) (0 + (625.0 * Math.log1p(Math.abs(11.2 * fr.getReal(row)))));\n greyVal = Math.min(255, Math.max(0, greyVal));\n int thisFreqStrength = (greyVal << 16) | (greyVal << 8) | (greyVal);\n\n if (thisFreqStrength > strongestFreqStrength) {\n strongestFreqStrength = thisFreqStrength;\n strongestFreq = row;\n }\n if (thisFreqStrength > maxItensity) {\n maxItensity = thisFreqStrength;\n }\n }\n rows[col] = strongestFreq;\n intensities[col] = strongestFreqStrength;\n }\n System.out.println(\"maxItensity = \" + maxItensity);\n\n // Average neighboring data values\n // Use minIntensity amoung neighbors for averaged row\n // Use threshold to exclude weak signals\n //int NUMPOINTSAVERAGED = 20;\n int NUMPOINTSAVERAGED = jSlider1.getValue(); // default = 20\n double INTENSITYTHRESHOLD = 0.95;\n int[] data = new int[endCol - NUMPOINTSAVERAGED];\n int[] dataAveraged = new int[endCol - NUMPOINTSAVERAGED];\n int[] minIntensities = new int[endCol - NUMPOINTSAVERAGED];\n for (int col = region.x; col < endCol - NUMPOINTSAVERAGED; col++) {\n int sumRows = 0;\n int minIntensity = maxItensity;\n for (int i = col; i < col + NUMPOINTSAVERAGED; i++) {\n sumRows += rows[i];\n minIntensity = java.lang.Math.min(minIntensity, intensities[i]);\n }\n data[col] = rows[col];\n dataAveraged[col] = java.lang.Math.round(sumRows / NUMPOINTSAVERAGED);\n minIntensities[col] = minIntensity;\n }\n\n for (int col = region.x; col < endCol - 2 * NUMPOINTSAVERAGED; col++) {\n splineCounter++;\n for (int row = region.y; row < endRow; row++) {\n if (row == data[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds actual data\n xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n }\n\n if (row == dataAveraged[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds averaged data\n //xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n if (splineCounter % SPLINEPRECISION == 0) {\n xySpline.add((double) (col + NUMPOINTSAVERAGED / 2), (double) convertYCoordToFreq(row));\n }\n }\n }\n }\n\n dataset.removeAllSeries();\n dataset.addSeries(xy);\n\n //XYSeriesCollection splineDataset = new XYSeriesCollection();\n dataset.addSeries(xySpline);\n\n JFreeChart chart = ChartFactory.createXYLineChart(\n //JFreeChart chart = ChartFactory.createScatterPlot(\n clip.getFileName(), \"Time (ms)\", \"Frequency (Hz)\", dataset, PlotOrientation.VERTICAL, true, true, false);\n XYPlot xyplot = (XYPlot) chart.getPlot();\n xyplot.setRenderer(new XYSplineRenderer());\n XYLineAndShapeRenderer xylineandshaperenderer = (XYLineAndShapeRenderer) xyplot.getRenderer();\n xylineandshaperenderer.setSeriesShape(0, new java.awt.Rectangle(1, 1, 1, 1));\n xylineandshaperenderer.setSeriesLinesVisible(0, false);\n xylineandshaperenderer.setSeriesShapesVisible(0, true);\n xylineandshaperenderer.setSeriesLinesVisible(1, false);\n xylineandshaperenderer.setSeriesShapesVisible(1, false);\n\n// ChartFrame frame = new ChartFrame(\"First\", chart);\n// frame.pack();\n// frame.setVisible(true);\n\n\n jCheckBox1.setEnabled(true);\n jCheckBox1.setSelected(true);\n\n jCheckBox2.setEnabled(true);\n jCheckBox2.setSelected(false);\n\n jSlider1.setEnabled(true);\n jSlider2.setEnabled(true);\n\n jTextField9.setText(clip.getFileName());\n\n chartPanel = new ChartPanel(chart);\n }", "public static void FFT(int dir, int s, double[] x,double[] y) {\n int n, i, i1, j, k, i2, l, l1, l2;\n double c1, c2, tx, ty, t1, t2, u1, u2, z;\n int m = (int) (Math.log(s)/Math.log(2));\n double[] spectrum = new double[s];\n \n /* Calculate the number of points */\n n = 1;\n for (i=0;i<m;i++)\n n *= 2;\n \n /* Do the bit reversal */\n i2 = n >> 1;\n j = 0;\n for (i=0;i<n-1;i++) {\n if (i < j) {\n tx = x[i];\n ty = y[i];\n x[i] = x[j];\n y[i] = y[j];\n x[j] = tx;\n y[j] = ty;\n }\n k = i2;\n while (k <= j) {\n j -= k;\n k >>= 1;\n }\n j += k;\n }\n \n /* Compute the FFT */\n c1 = -1.0;\n c2 = 0.0;\n l2 = 1;\n for (l=0;l<m;l++) {\n l1 = l2;\n l2 <<= 1;\n u1 = 1.0;\n u2 = 0.0;\n for (j=0;j<l1;j++) {\n for (i=j;i<n;i+=l2) {\n i1 = i + l1;\n t1 = u1 * x[i1] - u2 * y[i1];\n t2 = u1 * y[i1] + u2 * x[i1];\n x[i1] = x[i] - t1;\n y[i1] = y[i] - t2;\n x[i] += t1;\n y[i] += t2;\n }\n z = u1 * c1 - u2 * c2;\n u2 = u1 * c2 + u2 * c1;\n u1 = z;\n }\n c2 = Math.sqrt((1.0 - c1) / 2.0);\n if (dir == 1)\n c2 = -c2;\n c1 = Math.sqrt((1.0 + c1) / 2.0);\n }\n \n /* Scaling for forward transform */\n if (dir == 1) {\n for (i=0;i<n;i++) {\n x[i] /= n;\n y[i] /= n;\n \n }\n \n }\n \n }", "public void run() {\r\n /*try {\r\n AudioSystem.write(m_audioInputStream, m_targetType, outFile);\r\n } catch(IOException e) {\r\n e.printStackTrace();\r\n }*/\r\n //diagram.display();\r\n \r\n final java.util.List<Double> samples=new ArrayList<Double>();\r\n int nBytesRead=0;\r\n final int EXTERNAL_BUFFER_SIZE=(int)Math.pow(2, 13); //128000;\r\n byte[] abData=new byte[EXTERNAL_BUFFER_SIZE];\r\n //boolean isOn=false;\r\n while(nBytesRead != -1 && !stopped) {\r\n try {\r\n nBytesRead=m_audioInputStream.read(abData, 0, abData.length);\r\n } catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n if(nBytesRead > 0) {\r\n //System.err.println(\"data captured: \"+nBytesRead);\r\n final double[] in=new double[nBytesRead / 2+1]; // >>> 16 bit\r\n int j=0;\r\n for(int i=0; i < nBytesRead - 1; i+=2) {\r\n byte left=abData[i];\r\n int right=abData[i + 1];\r\n right<<=8;\r\n right|=(left & 0xFF);\r\n in[j+1]=right / 65536.0; // >>>65535=2^16\r\n j++;\r\n }\r\n\r\n double averageIntensity=0;\r\n try {\r\n final Sound intensitySound=Sound.Sound_createSimple(1, (in.length-1) / (double)SAMPLE_RATE, SAMPLE_RATE);\r\n intensitySound.z[1]=in;\r\n final SoundEditor edit=SoundEditor.SoundEditor_create(\"\", intensitySound);\r\n edit.computeIntensity();\r\n averageIntensity=edit.computeAverageIntensity();\r\n } catch(Exception e) {\r\n e.printStackTrace();\r\n continue; //>>>?\r\n }\r\n final double ai=averageIntensity;\r\n SwingUtilities.invokeLater(new Runnable() { //>>> not good\r\n public void run() {\r\n for(IntensityListener lis: itenListener) {\r\n lis.gotIntensity(ai); //notify listeners\r\n }\r\n }\r\n });\r\n\r\n /*if(INTENSITY_THRESHOLD<0) {\r\n INTENSITY_THRESHOLD=(int)ai+20;\r\n System.err.println(\"t:\"+ai);\r\n } else {*/\r\n//System.err.println(ai);\r\n if(ai>=settings.noiseLevel) { //filter weak noises\r\n //>>> too long? \r\n for(int i=1; i<in.length; i++) {\r\n samples.add(in[i]);\r\n }\r\n } else {\r\n analyzePitch(samples);\r\n samples.clear();\r\n }\r\n //}\r\n }\r\n }\r\n //System.err.println(\"got sample\");\r\n \r\n \r\n//System.err.println(\"done\");\r\n }", "protected void updateScales() {\n hscale = 1f;\n vscale = 1f;\n viewData.setHscale(hscale);\n viewData.setVscale(vscale);\n }", "private void read(double[][][] data) {\n // Verifies consistency of row lengths\n for (int i = 1; i < data.length; ++i) {\n if (data[i].length != data[i - 1].length) {\n throw new IllegalArgumentException(\"rows of data must be of same length\");\n }\n }\n\n width = data[0].length;\n height = data.length;\n // Extends width/height to the lowest multiple of 8 <= width/height\n int extWidth = width + Math.floorMod(8 - width, 8);\n int extHeight = height + Math.floorMod(8 - height, 8);\n\n alphaChannel = new int[extHeight][extWidth];\n double[][] yPlane = new double[extHeight][extWidth];\n double[][] cBPlane = new double[extHeight][extWidth];\n double[][] cRPlane = new double[extHeight][extWidth];\n\n // Fills in channels with values for data or values for a black pixel in yCbCr\n for (int x = 0; x < extHeight; ++x) {\n for (int y = 0; y < extWidth; ++y) {\n if (x < height && y < width) {\n alphaChannel[x][y] = (int) data[x][y][0];\n yPlane[x][y] = data[x][y][1];\n cBPlane[x][y] = data[x][y][2];\n cRPlane[x][y] = data[x][y][3];\n }\n else {\n // Default values if x and y are not in bounds of data\n alphaChannel[x][y] = 0xFF;\n yPlane[x][y] = 0x10;\n cBPlane[x][y] = 0x80;\n cRPlane[x][y] = 0x80;\n }\n }\n }\n\n // Downsamples chrominance channels and compresses both chrominance and luminance\n yChannel = compress(yPlane);\n cBChannel = compress(downsample(cBPlane));\n cRChannel = compress(downsample(cRPlane));\n }", "public void updateExtraTransformMatrix(float[] fArr) {\n }", "void calcWave() {\n yoff += 0.01f;\n \n //For every x value, calculate a y value based on sine or cosine\n float x = yoff; //**OPTION #1****/\n //float x = 0.0f; //**OPTION #2****/\n for (int i = 0; i < yvalues.length; i++) {\n float n = 2*noise(x)-1.0f; //**OPTION #1****/ //scale noise to be between 1 and -1\n //float n = 2*noise(x,yoff)-1.0f; //**OPTION #2****/ //scale noise to be between 1 and -1\n yvalues[i] = n*amplitude;\n x+=dx;\n }\n }", "@Override\r\n protected void calculateValues(DataContext ctx)\r\n {\r\n\t//Common MTF Inputs\r\n\tint mtfPeriod = getSettings().getInteger(MTF_MULTIPLIER);\r\n Object mtfInput = getSettings().getInput(SMI_INPUT, Enums.BarInput.CLOSE);\r\n \r\n int mtfSmooth = getSettings().getInteger(SMI_SMOOTH);\r\n int mtfSignal = getSettings().getInteger(SMI_SIGNAL);\r\n int mtfHLinc = getSettings().getInteger(SMI_HL_MTF_INC);\r\n int mtfMAinc = getSettings().getInteger(SMI_MA_MTF_INC);\r\n \r\n\tint mtfHL = getSettings().getInteger(SMI_HL1_MTF);\r\n\tint mtfMA = getSettings().getInteger(SMI_MA1_MTF);\r\n \r\n /* MTF Bar sizing */\r\n BarSize barSize = ctx.getChartBarSize(); //Gets the barsize off the chart\r\n int mtfbarint = barSize.getInterval(); //Gets the interval of the chart\r\n int barSizeint = mtfbarint * mtfPeriod; //Multiply the interval by the mtf multiplier\r\n \r\n //Calculates a longer period interval based upon the mtfPeriod\r\n BarSize barSizeNew = barSize.getBarSize(barSize.getType(), barSizeint); \r\n //Assembes the longer period timeframe series\r\n DataSeries series2 = ctx.getDataSeries(barSizeNew);\r\n\r\n String valStringOut; //variables for the return results\r\n String valStringD;\r\n String valStringHL;\r\n String valStringD_MA;\r\n String valStringHL_MA;\r\n int hlPeriodmtf;\r\n int maPeriodmtf;\r\n \r\n StudyHeader header = getHeader();\r\n boolean updates = getSettings().isBarUpdates() || (header != null && header.requiresBarUpdates());\r\n\r\n // Calculates Moving Average for the Secondary Data Series\r\n for(int i = 1; i < series2.size(); i++) {\r\n if (series2.isComplete(i)) continue;\r\n if (!updates && !series2.isBarComplete(i)) continue;\r\n //Double sma = series2.ma(MAMethod.SMA, i, mtfPeriod, mtfInput);\r\n \r\n //insert smi logic\r\n for(int j = 1; j <= 4; j++) {\r\n \t \r\n switch (j) {\r\n case 1:\r\n \t valStringOut \t = \"Values.MTF1\"; //D1, HL1, D_MA1, HL_MA1 mtfHLinc\r\n \t valStringD \t = \"Values.D1\";\r\n \t valStringHL \t = \"Values.HL1\";\r\n \t valStringD_MA\t = \"Values.D_MA1\";\r\n \t valStringHL_MA = \"Values.HL_MA1\";\r\n \t hlPeriodmtf = mtfHL; //Base HL\r\n \t maPeriodMA = mtfMA; //Base MA\r\n \t break;\r\n case 2:\r\n \t valStringOut = \"Values.MTF2\";\r\n \t valStringD \t = \"Values.D2\";\r\n \t valStringHL \t = \"Values.HL2\";\r\n \t valStringD_MA\t = \"Values.D_MA2\";\r\n \t valStringHL_MA = \"Values.HL_MA2\";\r\n \t hlPeriodmtf = mtfHL + mtfHLinc; //Base HL + Increment\r\n \t maPeriodMA = mtfMA + mtfMAinc; //Base MA + Increment \t \r\n \t break;\r\n case 3:\r\n \t valStringOut = \"Values.MTF3\";\r\n \t valStringD \t = \"Values.D3\";\r\n \t valStringHL \t = \"Values.HL3\";\r\n \t valStringD_MA\t = \"Values.D_MA3\";\r\n \t valStringHL_MA = \"Values.HL_MA3\";\r\n \t hlPeriodmtf = mtfHL + (mtfHLinc*2); //Base HL + Increment*2\r\n \t maPeriodMA = mtfMA + (mtfMAinc*2); //Base MA + Increment*2 \t \r\n \t break;\r\n case 4:\r\n \t valStringOut = \"Values.MTF4\";\r\n \t valStringD \t = \"Values.D4\";\r\n \t valStringHL \t = \"Values.HL4\";\r\n \t valStringD_MA\t = \"Values.D_MA4\";\r\n \t valStringHL_MA = \"Values.HL_MA4\";\r\n \t hlPeriodmtf = mtfHL + (mtfHLinc*3); //Base HL + Increment\r\n \t maPeriodMA = mtfMA + (mtfMAinc*3); //Base MA + Increment\r\n \t break;\r\n default:\r\n \t break;\t \r\n } //end switch\r\n \r\n //base HL period is mtfHL\r\n if (i < mtfHL) return;\r\n\r\n double HH = series2.highest(i, hlPeriodmtf, Enums.BarInput.HIGH);\r\n double LL = series2.lowest(i, hlPeriodmtf, Enums.BarInput.LOW);\r\n double M = (HH + LL)/2.0;\r\n double D = series2.getClose(i) - M;\r\n \r\n series.setDouble(i, valStringD, D);\r\n series.setDouble(i, valStringHL, HH - LL);\r\n \r\n int maPeriod = getSettings().getInteger(MA_PERIOD);\r\n if (index < hlPeriod + maPeriod) return;\r\n \r\n Enums.MAMethod method = getSettings().getMAMethod(Inputs.METHOD);\r\n series.setDouble(index, Values.D_MA, series.ma(method, index, maPeriod, Values.D));\r\n series.setDouble(index, Values.HL_MA, series.ma(method, index, maPeriod, Values.HL));\r\n \r\n int smoothPeriod= getSettings().getInteger(SMOOTH_PERIOD);\r\n if (index < hlPeriod + maPeriod + smoothPeriod) return;\r\n \r\n Double D_SMOOTH = series.ma(method, index, smoothPeriod, Values.D_MA);\r\n Double HL_SMOOTH = series.ma(method, index, smoothPeriod, Values.HL_MA);\r\n \r\n if (D_SMOOTH == null || HL_SMOOTH == null) return;\r\n double HL2 = HL_SMOOTH/2;\r\n double SMI = 0;\r\n if (HL2 != 0) SMI = 100 * (D_SMOOTH/HL2);\r\n\r\n series.setDouble(index, Values.SMI, SMI);\r\n\r\n int signalPeriod= getSettings().getInteger(Inputs.SIGNAL_PERIOD);\r\n if (index < hlPeriod + maPeriod + smoothPeriod + signalPeriod) return;\r\n\r\n Double signal = series.ma(method, index, signalPeriod, Values.SMI);\r\n if (signal == null) return;\r\n series.setDouble(index, Values.SMI_SIGNAL, signal);\r\n\r\n \r\n \r\n } //end j bracket\r\n \r\n \r\n \r\n \r\n \r\n series2.setDouble(i, Values.MTF, sma);\r\n }\r\n\r\n // Invoke the parent method to run the \"calculate\" method below for the primary (chart) data series\r\n super.calculateValues(ctx);\r\n }", "public void update(double[][] data) {\n for (double[] x : data) {\n update(x);\n }\n }", "public void updateData(int fromSample, int toSample) {\r\n\t\trepaintSampleRange(fromSample - pv.samplesOnePixel - 1, toSample\r\n\t\t\t\t+ pv.samplesOnePixel + 1);\r\n\t}", "public void createOscilloscopeData() {\n this.rmsSum = 0;\n int reactorFrequency = getReactorFrequency().intValue();\n int reactorAmplitude = getReactorAmplitude().intValue();\n double reactorPhase = getReactorPhase().doubleValue();\n int controlFrequency = getControlFrequency().intValue();\n int controlAmplitude = getControlAmplitude().intValue();\n double controlPhase = getControlPhase().doubleValue();\n XYChart.Series<Number, Number> dataSeriesOutput = new XYChart.Series<>();\n for (int i = 0; i < 40; i++) {\n createOscilloscopeDatapoint(dataSeriesOutput, reactorFrequency, reactorAmplitude, reactorPhase, \n controlFrequency, controlAmplitude, controlPhase, i);\n }\n dataSeriesOutput.setName(\"Reactor\" + number + \"OutputData\");\n this.outputData.addAll(dataSeriesOutput/*, dataSeriesReactor, dataSeriesControl */);\n \n \n if (this.online == true) {\n this.rms = Math.sqrt(this.rmsSum / 40);\n setOutputPower(100 - (this.rms));\n }\n }", "@Override\n public void draw() {\n if (!song.isPlaying()) {\n song.play(0);\n }\n fft.forward(song.mix);\n final float volume = song.getGain();\n\n //Calcul des \"scores\" (puissance) pour trois catégories de son\n //D'abord, sauvgarder les anciennes valeurs\n // Valeur précédentes, pour adoucir la reduction\n float oldScoreLow = scoreLow;\n float oldScoreMid = scoreMid;\n float oldScoreHi = scoreHi;\n\n //Réinitialiser les valeurs\n scoreLow = 0;\n scoreMid = 0;\n scoreHi = 0;\n\n //Calculer les nouveaux \"scores\"\n // Variables qui définissent les \"zones\" du spectre\n // Par exemple, pour les basses, on prend seulement les premières 4% du spectre total\n // 3%\n float specLow = 0.03f;\n for (int i = 0; i < fft.specSize() * specLow; i++) {\n scoreLow += fft.getBand(i);\n }\n\n // 12.5%\n float specMid = 0.125f;\n for (int i = (int) (fft.specSize() * specLow); i < fft.specSize() * specMid; i++) {\n scoreMid += fft.getBand(i);\n }\n\n for (int i = (int) (fft.specSize() * specMid); i < fft.specSize() * specHi; i++) {\n scoreHi += fft.getBand(i);\n }\n\n\n //Faire ralentir la descente.\n // Valeur d'adoucissement\n float scoreDecreaseRate = 25;\n if (oldScoreLow > scoreLow) {\n scoreLow = oldScoreLow - scoreDecreaseRate;\n }\n\n if (oldScoreMid > scoreMid) {\n scoreMid = oldScoreMid - scoreDecreaseRate;\n }\n\n if (oldScoreHi > scoreHi) {\n scoreHi = oldScoreHi - scoreDecreaseRate;\n }\n\n //Volume pour toutes les fréquences à ce moment, avec les sons plus haut plus importants.\n //Cela permet à l'animation d'aller plus vite pour les sons plus aigus, qu'on remarque plus\n float scoreGlobal = 0.66f * scoreLow + 0.8f * scoreMid + 1 * scoreHi;\n\n //Couleur subtile de background\n background(scoreLow / 100, scoreMid / 100, scoreHi / 100);\n\n //Cube pour chaque bande de fréquence\n for (int i = 0; i < nbCubes; i++) {\n //Valeur de la bande de fréquence\n float bandValue = fft.getBand(i);\n\n //La couleur est représentée ainsi: rouge pour les basses, vert pour les sons moyens et bleu pour les hautes.\n //L'opacité est déterminée par le volume de la bande et le volume global.\n cubes[i].display(scoreLow, scoreMid, scoreHi, bandValue, scoreGlobal);\n }\n\n //Murs lignes, ici il faut garder la valeur de la bande précédent et la suivante pour les connecter ensemble\n float previousBandValue = fft.getBand(0);\n\n //Distance entre chaque point de ligne, négatif car sur la dimension z\n float dist = -25;\n\n //Multiplier la hauteur par cette constante\n float heightMult = 2;\n\n //Pour chaque bande\n for (int i = 1; i < fft.specSize(); i++) {\n //Valeur de la bande de fréquence, on multiplie les bandes plus loins pour qu'elles soient plus visibles.\n float bandValue = fft.getBand(i) * (1 + (i / 50f));\n\n //Selection de la couleur en fonction des forces des différents types de sons\n stroke(100 + scoreLow, 100 + scoreMid, 100 + scoreHi, 255 - i);\n strokeWeight(1 + (scoreGlobal / 100));\n\n //ligne inferieure gauche\n line(0, height - (previousBandValue * heightMult), dist * (i - 1), 0, height - (bandValue * heightMult), dist * i);\n line((previousBandValue * heightMult), height, dist * (i - 1), (bandValue * heightMult), height, dist * i);\n line(0, height - (previousBandValue * heightMult), dist * (i - 1), (bandValue * heightMult), height, dist * i);\n\n //ligne superieure gauche\n line(0, (previousBandValue * heightMult), dist * (i - 1), 0, (bandValue * heightMult), dist * i);\n line((previousBandValue * heightMult), 0, dist * (i - 1), (bandValue * heightMult), 0, dist * i);\n line(0, (previousBandValue * heightMult), dist * (i - 1), (bandValue * heightMult), 0, dist * i);\n\n //ligne inferieure droite\n line(width, height - (previousBandValue * heightMult), dist * (i - 1), width, height - (bandValue * heightMult), dist * i);\n line(width - (previousBandValue * heightMult), height, dist * (i - 1), width - (bandValue * heightMult), height, dist * i);\n line(width, height - (previousBandValue * heightMult), dist * (i - 1), width - (bandValue * heightMult), height, dist * i);\n\n //ligne superieure droite\n line(width, (previousBandValue * heightMult), dist * (i - 1), width, (bandValue * heightMult), dist * i);\n line(width - (previousBandValue * heightMult), 0, dist * (i - 1), width - (bandValue * heightMult), 0, dist * i);\n line(width, (previousBandValue * heightMult), dist * (i - 1), width - (bandValue * heightMult), 0, dist * i);\n\n //Sauvegarder la valeur pour le prochain tour de boucle\n previousBandValue = bandValue;\n }\n\n //Murs rectangles\n for (int i = 0; i < nbMurs; i++) {\n //On assigne à chaque mur une bande, et on lui envoie sa force.\n float intensity = fft.getBand(i % ((int) (fft.specSize() * specHi)));\n murs[i].display(scoreLow, scoreMid, scoreHi, intensity, scoreGlobal);\n }\n }", "public void doFuncFourier() {\n setTypeAndS();\n N = 256;\n M = 256;\n\n ft2D = new Fourier2D(M, N);\n\n Complex2[][] sine = new Complex2[M][N];\n for(int y = 0; y < N; y++) {\n for(int x = 0; x < M; x++) {\n sine[x][y] = new Complex2(functionF(x, y), 0);\n }\n }\n\n Complex2[][] ftData = ft2D.fft(sine);\n\n plotFtMagnitude(ftData, M, N);\n }", "public synchronized void transform() {\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n String entity = it.next();\n double wx = entity_to_wxy.get(entity).getX(),\n wy = entity_to_wxy.get(entity).getY();\n int sx, sy;\n entity_to_sxy.put(entity, (sx = wxToSx(wx)) + BundlesDT.DELIM + (sy = wyToSy(wy)));\n entity_to_sx.put(entity, sx); entity_to_sy.put(entity, sy);\n }\n transform_id++;\n }", "protected void useDataOld() {\n\t\tfloat x = values[0];\n\t\tfloat y = values[1];\n\t\tfloat z = values[2];\n\n\t\tcallListener(new AccelarationSensorData(millis, nanos, x, y, z));\n\t}", "public void addSpectrum(LibrarySpectrum spectrum)\n\t{\n\t\tlibrarySpectra.add(spectrum);\n\t\tif (spectrum.precursor > maxMass) maxMass = spectrum.precursor;\n\t\tif (spectrum.precursor < minMass) minMass = spectrum.precursor;\n\t\tspectrum.scaleIntensities();\n\t}", "@Override\n public void onRender(Canvas canvas, FFTData data, Rect rect)\n {\n }", "void lowResolutionInference(Spectrum spectrum){\n\t}", "public void updateEncoders() {\n leftEnc.updateRate();\n rightEnc.updateRate();\n }", "public abstract float scaleIntensityData(float rawData, int mid, int gid,\n int sampleNbr);", "public ArrayList<Float> mathematicalFFT(ArrayList<Float> wave){\r\n ArrayList<Float> newWave = new ArrayList<>();\r\n //note the line above is here so i can run the program without any errors, it is not meant to help\r\n return newWave;\r\n }", "private void plotFtMagnitude(Complex2[][] data, int width, int height) {\n BufferedImage magnitudeImg = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n\n WritableRaster out = magnitudeImg.getRaster();\n\n double maxMagnitude = 0;\n\n for (int v = 0; v < height; v++) {\n for (int u = 0; u < width; u++) {\n Complex2 value = data[u][v];\n double magnitude = value.Betrag();\n\n if(magnitude > maxMagnitude) {\n maxMagnitude = magnitude;\n }\n }\n }\n\n for (int v = 0; v < height; v++) {\n for (int u = 0; u < width; u++) {\n int shiftedU = u;\n int shiftedV = v;\n\n // Get points centered around the middle of the image\n if(shiftedU >= (M / 2))\n shiftedU -= M;\n shiftedU += (M / 2);\n\n if(shiftedV >= (N / 2))\n shiftedV -= N;\n shiftedV += (N / 2);\n\n Complex2 value = data[u][v];\n\n // Scale values\n double magnitude = (value.Betrag() / maxMagnitude) * 255;\n\n out.setSample(shiftedU, shiftedV, 0, magnitude);\n out.setSample(shiftedU, shiftedV, 1, magnitude);\n out.setSample(shiftedU, shiftedV, 2, magnitude);\n }\n }\n\n CS450.setImageB(magnitudeImg);\n }", "public void updatePredictions (long currTime, TimeSeries inputSeries)\n {\n\n// TODO: decide if this is necessary, it's in PPALg >>\n this.state.clearPredictionsFrom (currTime + stepSize);\n//this.state.clearPredictions();\n\n TimeSeries timeSeries = (TimeSeries) inputSeries.clone();\n\n // if timeSeries is shorter than the minimum stream do nothing.\n if (timeSeries.size() < minStreamLength)\n return;\n\n // trim the first <minPeriod> number of elements from the timeSeries.\n // this removes non-periodicity that is seen in simulators first few elements.\n\n timeSeries.trimFromStart(minPeriodLength);\n\n df.addText (\"First trim of time series : \" + timeSeries.shortToString());\n\n // find the best shift of the time series against iteself that leads to the most matching\n ArrayList shiftGraph = findBestShiftGraph (timeSeries);\n\n // trim the shifted graph to make sure we aren't starting in the middle of an event\n int amountTrimmed = trimShiftGraph (shiftGraph);\n\n df.addText (\"Trim amount : \" + amountTrimmed);\n df.addText (\"final, trimmed shift graph : \" + shiftGraph.toString());\n\n // the offset is the total amount of the time series we have discarded, it is the offset\n // to the leading edge of a periodic repeating occurence\n int offset = amountTrimmed + minPeriodLength;\n\n // create a new periodic event object\n PeriodicEvent pe = getPeriod (shiftGraph, offset);\n\n if (pe == null || pe.getEvent().isEmpty())\n {\n df.addText (\" Periodic event is null \");\n return;\n }\n\n df.addText (\" Periodic Event is : \" + pe.toString());\n\n // get the current time from which we will extrapolate\n long time = currTime;\n\n int period = pe.getPeriod();\n ArrayList event = pe.getEvent();\n\n // if we divide the timeSeries into portions the size of the time period, how much is left over?\n // for this we do not consider the trimmed amount.\n int timeSeriesSize = timeSeries.size() - amountTrimmed;\n\n if (timeSeriesSize <= period)\n return;\n int remainder = getRemainder (timeSeriesSize, period);\n df.addText (\"remainder is : \" + remainder);\n\n // cycle through the remaining portion of the last period adding any predictions based on\n // our periodic event that we have identified.\n // must subtract 1 since index is zero-base, & reaminder is one-based\n for (int i = remainder -1 ; i < event.size(); i++)\n {\n double prediction;\n\n time = time + timeSeries.getTimeIncrement();\n\n if (i >= 0 && event.get (i) != null)\n {\n prediction = ((Double) event.get(i)).doubleValue();\n\n state.addPrediction ( time, prediction);\n df.addText (\"Adding prediction : \" + prediction + \" for time : \" + time);\n }\n } // end for (i)\n\n int extrapolationCount = 2;\n\n // We make <j> additional extapolation into the future beyond the last period fragment\n while (extrapolationCount > 0)\n {\n for (int j = 0; j < event.size(); j++)\n {\n double prediction;\n\n time = time + timeSeries.getTimeIncrement();\n\n if (event.get (j) != null)\n {\n prediction = ((Double) event.get(j)).doubleValue();\n\n state.addPrediction ( time, prediction);\n df.addText (\"Adding prediction : \" + prediction + \" for time : \" + time);\n }\n } // end for (j)\n\n extrapolationCount--;\n } // end while (extapoliationCount)\n\n\n state.updateError (timeSeries, currTime);\n }", "private void compose() {\n \tnumSamples = duration * sampleRate;\n \tsample = new double[numSamples];\n \tgeneratedSnd = new byte[2 * numSamples];\n\t}", "@Override\n\tprotected void uGenerate(float[] channels) \n\t{\n\t\tif (!isActivated)\n\t\t{\n\t\t\tArrays.fill( channels, begAmp );\n\t\t} \n\t\telse if (lineNow >= lineTime)\n\t\t{\n\t\t\tArrays.fill( channels, endAmp );\n\t\t} \n\t\telse \n\t\t{\n\t\t\tamp += ( endAmp - amp )*timeStepSize/( lineTime - lineNow );\n\t\t\t//Minim.debug(\" dampTime = \" + dampTime + \" begAmp = \" + begAmp + \" amp = \" + amp + \" dampNow = \" + dampNow);\n\t\t\tArrays.fill( channels, amp );\n\t\t\tlineNow += timeStepSize;\n\t\t}\n\t}", "private void processSound() {\r\n if (!isEnabled) {\r\n return;\r\n }\r\n\r\n Thread.currentThread().setPriority(Thread.MAX_PRIORITY);\r\n\r\n byte[] data = new byte[line.available()];\r\n if (data.length == 0) {\r\n return;\r\n }\r\n\r\n line.read(data, 0, data.length);\r\n \r\n double[][] partitionedAndTransformedData =\r\n getPartitionedAndTransformedData(SOUND_PARTITIONS, data);\r\n \r\n double[] offMagnitudes = getPartitionedFrequencyMagnitudes(\r\n Constants.FREQUENCY_OFF,\r\n partitionedAndTransformedData,\r\n Constants.SAMPLE_RATE);\r\n double[] offOffsetMagnitudes = getPartitionedFrequencyMagnitudes(\r\n Constants.FREQUENCY_OFF + Constants.FREQUENCY_SECOND_OFFSET,\r\n partitionedAndTransformedData,\r\n Constants.SAMPLE_RATE);\r\n double[] onMagnitudes = getPartitionedFrequencyMagnitudes(\r\n Constants.FREQUENCY_ON,\r\n partitionedAndTransformedData,\r\n Constants.SAMPLE_RATE);\r\n double[] onOffsetMagnitudes = getPartitionedFrequencyMagnitudes(\r\n Constants.FREQUENCY_ON + Constants.FREQUENCY_SECOND_OFFSET,\r\n partitionedAndTransformedData,\r\n Constants.SAMPLE_RATE);\r\n \r\n double offMagnitudeSum = 0.0;\r\n double onMagnitudeSum = 0.0;\r\n \r\n for (int i = 0; i < SOUND_PARTITIONS; i++) {\r\n double offMagnitude = offMagnitudes[i] + offOffsetMagnitudes[i];\r\n double onMagnitude = onMagnitudes[i] + onOffsetMagnitudes[i];\r\n \r\n offMagnitudeSum += offMagnitude;\r\n onMagnitudeSum += onMagnitude;\r\n \r\n// System.out.printf(\"%.2f %.2f%n\", offMagnitude, onMagnitude);\r\n\r\n boolean value = onMagnitude > offMagnitude;\r\n \r\n audioSignalParser.addSignal(value);\r\n \r\n if (value) {\r\n offRunningAverage.add(offMagnitude);\r\n } else {\r\n onRunningAverage.add(onMagnitude);\r\n }\r\n }\r\n\r\n if (offRunningAverage.haveAverage() && onRunningAverage.haveAverage()) {\r\n double offMagnitudeAverage = offMagnitudeSum / SOUND_PARTITIONS;\r\n double onMagnitudeAverage = onMagnitudeSum / SOUND_PARTITIONS;\r\n\r\n boolean isLineFree = \r\n Statistics.isWithinAverage(\r\n onMagnitudeAverage,\r\n onRunningAverage.getAverage(),\r\n onRunningAverage.getStandardDeviation(),\r\n 3 /* deviations */)\r\n && Statistics.isWithinAverage(\r\n offMagnitudeAverage,\r\n offRunningAverage.getAverage(),\r\n offRunningAverage.getStandardDeviation(),\r\n 3 /* deviations */);\r\n lineActivity.add(isLineFree ? 0 : 1);\r\n }\r\n }", "void scaleSampleRate(float scaleFactor) {\n if (debugFlag)\n debugPrintln(\"JSChannel: scaleSampleRate\");\n if (ais == null) {\n if (debugFlag) {\n debugPrint(\"JSChannel: Internal Error scaleSampleRate: \");\n debugPrintln(\"ais is null\");\n }\n return;\n }\n\n AudioFormat audioFormat = ais.getFormat();\n float rate = audioFormat.getSampleRate();\n\n double newRate = rate * scaleFactor;\n if (newRate > 48000.0) // clamp to 48K max\n newRate = 48000.0;\n/****\n// NOTE: This doesn't work...\n/// audioStream.setSampleRate(newRate);\n\n// need to set FloatControl.Type(SAMPLE_RATE) to new value somehow...\n\n if (debugFlag) {\n debugPrintln(\"JSChannel: scaleSampleRate: new rate = \" +\n rate * scaleFactor);\n debugPrintln(\" >>>>>>>>>>>>>>> using scaleFactor = \" +\n scaleFactor);\n }\n****/\n }", "@Override\n public synchronized void render(DssContext dssContext, Graphics2D g2d, int width, int height) \n {\n audioChannels = dssContext.getAudioData();\n channelSamples = averageChannels(audioChannels);// channelSamples has length blockLength\n applyWindow(fftWindowLength, channelSamples); // fftWindowLength = blockLength\n binValues = computeFFT(channelSamples); // binValues has length fftWindowLength/2\n whitener.whiten ( binValues, meanValues, whiteBinValues); // binValues typically range from 0.0 dB to 96.0 dB\n whitener.pickPeaks ( whiteBinValues, peakBinValues);\n \n bandHeight = (float) height / (float) bandCount;\n \n // Rendering:\n float y = height;\n int widthm1 = width - 1;// width minus 1\n int binNum; // binNum = bin number\n int bandNum; // bandNum = band number\n int topBinNum; // topBinNum = bin number of top bin in band\n int bottomBinNum = 0; // bottomBinNum = bin number of bottom bin in band\n float binValue; // binValue = value of selected FFT bin\n float bandValue; // bandValue = value of selected band (the loudest bin in the band)\n \n // Group up available bands using band distribution table:\n for (bandNum = 0; bandNum < bandCount; bandNum++)\n {\n topBinNum = topBinNumArray[bandNum];\n float tempFloat = 0;\n \n // Find loudest bin in the band. (The band is from bins 'bottomBinNum' to 'topBinNum').\n for (binNum = bottomBinNum; binNum <= topBinNum; binNum++)\n { binValue = whiteBinValues[binNum]; // binValue = Value of bin number binNum\n if (binValue > tempFloat)\n { tempFloat = binValue;\n }\n }\n bottomBinNum = topBinNum;\n\n // Calculate gain using a static gain factor and slope.\n bandValue = tempFloat * ( gain + (slope * bandNum) );\n if (bandValue < 0.0F) { bandValue = 0.0F; } // Limit under-saturation.\n if (bandValue > 1.0F) { bandValue = 1.0F; } // Limit over-saturation.\n\n // Calculate spectrogram color shifting between foreground and background colors.\n float _bandValue = 1.0F - bandValue;\n backgroundColor.getColorComponents(brgb);\n foregroundColor.getColorComponents(frgb);\n Color color = new Color(frgb[0] * bandValue + brgb[0] * _bandValue,\n frgb[1] * bandValue + brgb[1] * _bandValue,\n frgb[2] * bandValue + brgb[2] * _bandValue);\n g2d.setColor(color);\n g2d.drawLine(widthm1, Math.round(y), widthm1, Math.round(y - bandHeight));\n\n // Optionally, draw the peaks spectrum:\n tempFloat = peakBinValues[binNum]; // peakBinValues are either 0.1 or 50.0\n if(tempFloat > 10.0F)\n { g2d.setColor(Color.red);\n g2d.drawLine(widthm1, Math.round(y), widthm1, Math.round(y - bandHeight));\n }\n \n y -= bandHeight;\n }\n\n g2d.drawImage(buffImage, -1, 0, null);\n \n }", "private double[][] getPartitionedAndTransformedData(int partitions, byte[] soundData) {\r\n double[][] transformedData = new double[partitions][];\r\n \r\n int partitionSize = soundData.length / partitions;\r\n for (int i = 0; i < partitions; i++) {\r\n int partitionSizeHere = partitionSize;\r\n if (i == (partitions - 1)) {\r\n partitionSizeHere += soundData.length % partitions;\r\n }\r\n\r\n int start = partitionSize * i;\r\n byte[] partitionSoundData =\r\n Arrays.copyOfRange(soundData, start, start + partitionSizeHere);\r\n \r\n transformedData[i] = SoundMath.applyFft(partitionSoundData);\r\n }\r\n \r\n return transformedData;\r\n }", "private void compose() {\n \tnumSamples = duration * sampleRate;\n \tsample = new double[numSamples];\n \tgeneratedSnd = new byte[2 * numSamples];\t\t\n\t}", "@Override\n\tpublic void update(float[] val) {\n\t\t\n\t}", "public static double fourierTransform(double[] signal, double sampleWavelength) {\n double phaseSin = 0.0; //One possible phase for the frequency\n double phaseCos = 0.0; //The inverse phase for the frequency\n for (int i = 0; i < signal.length; i++) {\n double angleTraveled = 2*Math.PI*i/sampleWavelength;\n phaseSin += Math.sin(angleTraveled)*signal[i]; //sum correlation with sin phase\n phaseCos += Math.cos(angleTraveled)*signal[i]; //sum correlation with cos phase\n }\n phaseSin/=signal.length; //average correlation with the sin function\n phaseCos/=signal.length; //average correlation with the cos function\n return 2*Math.sqrt(phaseSin*phaseSin+phaseCos*phaseCos); //Perfect match gives value 1/2 the amplitude, hence *2\n }", "private void m18357t() {\n AudioProcessor[] k;\n ArrayList<AudioProcessor> newAudioProcessors = new ArrayList<>();\n for (AudioProcessor audioProcessor : m18348k()) {\n if (audioProcessor.mo25036a()) {\n newAudioProcessors.add(audioProcessor);\n } else {\n audioProcessor.flush();\n }\n }\n int count = newAudioProcessors.size();\n this.f16596P = (AudioProcessor[]) newAudioProcessors.toArray(new AudioProcessor[count]);\n this.f16597Q = new ByteBuffer[count];\n m18347j();\n }", "public void initEncoderTxData()\n\t{\n\t\tfor(counter_i=0;counter_i<sampleBit;counter_i++)\n\t\t{\n\t\t\thighLevel[counter_i] = (short) (audioAM * (-Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t\tlowLevel[counter_i] = (short) (audioAM * (Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t}\n\t}", "@Override\n\tpublic void onRxDataArray(String name, Matrix data) {\n\t\t\n\t}", "private void transpose() {\n\n // Make a copy of current orientation of rgb and energy arrays.\n int[][] rgbCopy = new int[width][height];\n for (int col = 0; col < width; col++) {\n rgbCopy[col] = rgb[col].clone();\n }\n double[][] energyCopy = new double[width][height];\n for (int col = 0; col < width; col++) {\n energyCopy[col] = energy[col].clone();\n }\n\n // Swap axes.\n int temp = width;\n width = height;\n height = temp;\n\n // Re-init arrays with swapped dimensions.\n rgb = new int[width][height];\n energy = new double[width][height];\n\n // Swap individual pixels in rgb and energy arrays.\n for (int col = 0; col < width; col++) {\n for (int row = 0; row < height; row++) {\n rgb[col][row] = rgbCopy[row][col];\n energy[col][row] = energyCopy[row][col];\n }\n }\n }", "private void arretes_fW(){\n\t\tthis.cube[4] = this.cube[1]; \n\t\tthis.cube[1] = this.cube[3];\n\t\tthis.cube[3] = this.cube[7];\n\t\tthis.cube[7] = this.cube[5];\n\t\tthis.cube[5] = this.cube[4];\n\t}", "private void dataFilterChanged() {\n\n\t\t// save prefs:\n\t\tappPrefes.SaveData(\"power_show_power\", mShowPower ? \"on\" : \"off\");\n\t\tappPrefes.SaveData(\"power_show_energy\", mShowEnergy ? \"on\" : \"off\");\n\n\t\t// check data status:\n\t\tif (!isPackValid())\n\t\t\treturn;\n\n\t\t// update charts:\n\t\tupdateCharts();\n\n\t\t// sync viewports:\n\t\tchartCoupler.syncCharts();\n\t}", "public void process(float[] sample) {\n\t\tfor (int i = 0; i < sample.length; i++) {\n\t\t\tfloat ms = sample[i] * (1 - Mixer);\n\t\t\t\n\t\t\tint j = (tap + 64) & Modulus;\n\t\t\tbuffer[j] = Mixer * buffer[j] + ms;\n\t\t\tj = (tap + 128) & Modulus;\n\t\t\tbuffer[j] = Mixer * buffer[j] + ms;\n\t\t\tj = (tap + 256) & Modulus;\n\t\t\tbuffer[j] = Mixer * buffer[j] + ms;\n\t\t\tj = (tap + 512) & Modulus;\n\t\t\tbuffer[j] = Mixer * buffer[j] + ms;\n\t\t\tj = (tap + 1024) & Modulus;\n\t\t\tbuffer[j] = Mixer * buffer[j] + ms;\n\t\t\tj = (tap + 2048) & Modulus;\n\t\t\tbuffer[j] = Mixer * buffer[j] + ms;\n\t\t\tj = (tap + 4096) & Modulus;\n\t\t\tbuffer[j] = Mixer * buffer[j] + ms;\n\t\t\tj = (tap + 8192) & Modulus;\n\t\t\tbuffer[j] = Mixer * buffer[j] + ms;\n\t\t\tj = (tap + 16384) & Modulus;\n\t\t\tbuffer[j] = Mixer * buffer[j] + ms;\n\t\t\tj = (tap + 32768) & Modulus;\n\t\t\tbuffer[j] = Mixer * buffer[j] + ms;\n\n\t\t\tj = tap++ & Modulus;\n\t\t\tsample[i] += buffer[j];\n\t\t}\n\t}", "private void update() {\n if (_dirty) {\n _fmin = _clips.getClipMin();\n _fmax = _clips.getClipMax();\n _fscale = 256.0f/(_fmax-_fmin);\n _flower = _fmin;\n _fupper = _flower+255.5f/_fscale;\n _dirty = false;\n }\n }", "public void transform(VertexArray in, float[] out, boolean W) {\n int c = in.numComponents;\n int len = in.numVertices;\n\n float fill = W ? 1 : 0;\n\n int s = in.componentSize;\n int op = 0;\n int ip = 0;\n\n for(int i = 0; i < len; i++){\n for(int j = 0; j < c; j++){\n out[op++] = s == 2 ? in.data2[ip] : in.data1[ip];\n ip++;\n }\n // fill components c..2 with 0\n for(int j = c; j < 3; j++){\n out[op++] = 0;\n }\n // fill W component (3) with fill value\n out[op++] = fill;\n }\n \n transform(out, len*4);\n }", "private boolean procSensorRawData(final double[] motionData, double[] dstData) {\n boolean isInDebugMode = true;\n if(isInDebugMode) {\n\n if (this.mIsFirst) {\n mDdwFusionData.setFileName(\"CmpSensorFusion.csv\");\n String hdLine = \"mag_x,mag_y,mag_z,gyro_x,gyro_y,\"\n + \"gyro_z,acc_x,acc_y,\" +\n \"acc_z,lin_x,lin_y,lin_z\\r\\n\";\n mDdwFusionData.setDataSetHeader(hdLine);\n mIsFirst = false;\n }\n\n // Write data for future compute the pose\n for (int i = 0; i < 12; i++) {\n dstData[i] = motionData[i];\n }\n\n // Write info for debug\n String tcLine = String.valueOf(dstData[0]) + \",\"\n + String.valueOf(dstData[1]) + \",\"\n + String.valueOf(dstData[2]) + \",\"\n + String.valueOf(dstData[3]) + \",\"\n + String.valueOf(dstData[4]) + \",\"\n + String.valueOf(dstData[5]) + \",\"\n + String.valueOf(dstData[6]) + \",\"\n + String.valueOf(dstData[7]) + \",\"\n + String.valueOf(dstData[8]) + \",\"\n + String.valueOf(dstData[9]) + \",\"\n + String.valueOf(dstData[10]) + \",\"\n + String.valueOf(dstData[11]) + \"\\r\\n\";\n mDdwFusionData.writeData(tcLine);\n } else {\n\n\n // <editor-fold desc=\"Median filter here first to remove the weird data BLOCK\">\n mMfMag.addData(new Point3(motionData[0], motionData[1], motionData[2]));\n mMfGyr.addData(new Point3(motionData[3], motionData[4], motionData[5]));\n mMfAcc.addData(new Point3(motionData[6], motionData[7], motionData[8]));\n mMfLin.addData(new Point3(motionData[9], motionData[10], motionData[11]));\n boolean bMag = mMfMag.process();\n boolean bGyr = mMfGyr.process();\n boolean bAcc = mMfAcc.process();\n boolean bLin = mMfLin.process();\n if (bMag && bGyr && bAcc && bLin) {\n motionData[0] = mMfMag.getResult().x;\n motionData[1] = mMfMag.getResult().y;\n motionData[2] = mMfMag.getResult().z;\n motionData[3] = mMfGyr.getResult().x;\n motionData[4] = mMfGyr.getResult().y;\n motionData[5] = mMfGyr.getResult().z;\n motionData[6] = mMfAcc.getResult().x;\n motionData[7] = mMfAcc.getResult().y;\n motionData[8] = mMfAcc.getResult().z;\n motionData[9] = mMfLin.getResult().x;\n motionData[10] = mMfLin.getResult().y;\n motionData[11] = mMfLin.getResult().z;\n } else {\n return false;\n }\n // </editor-fold>\n\n // <editor-fold desc=\"Average filter here for smoothing the data BLOCK\">\n mAfMag.addData(new Point3(motionData[0], motionData[1], motionData[2]));\n mAfGyr.addData(new Point3(motionData[3], motionData[4], motionData[5]));\n mAfAcc.addData(new Point3(motionData[6], motionData[7], motionData[8]));\n mAfLin.addData(new Point3(motionData[9], motionData[10], motionData[11]));\n bMag = mAfMag.process();\n bGyr = mAfGyr.process();\n bAcc = mAfAcc.process();\n bLin = mAfLin.process();\n if (bMag && bGyr && bAcc && bLin) {\n motionData[0] = mAfMag.getResult().x;\n motionData[1] = mAfMag.getResult().y;\n motionData[2] = mAfMag.getResult().z;\n motionData[3] = mAfGyr.getResult().x;\n motionData[4] = mAfGyr.getResult().y;\n motionData[5] = mAfGyr.getResult().z;\n motionData[6] = mAfAcc.getResult().x;\n motionData[7] = mAfAcc.getResult().y;\n motionData[8] = mAfAcc.getResult().z;\n motionData[9] = mAfLin.getResult().x;\n motionData[10] = mAfLin.getResult().y;\n motionData[11] = mAfLin.getResult().z;\n } else {\n return false;\n }\n // </editor-fold>\n\n if (!this.mIsStart) {\n // Record the accelerate sensor data in order to get the average for init\n mAccOffset[0] += motionData[9];\n mAccOffset[1] += motionData[10];\n mAccOffset[2] += motionData[11];\n\n mGyrOffset[0] += motionData[3];\n mGyrOffset[1] += motionData[4];\n mGyrOffset[2] += motionData[5];\n\n mInitCounter++;\n\n return false;\n } else {\n if (this.mIsFirst) {\n if (mInitCounter > 0) {\n\n // Compute the offset of accelerate sensor data\n mAccOffset[0] /= (double) mInitCounter;\n mAccOffset[1] /= (double) mInitCounter;\n mAccOffset[2] /= (double) mInitCounter;\n\n // Compute the offset of gyroscope sensor data\n mGyrOffset[0] /= (double) mInitCounter;\n mGyrOffset[1] /= (double) mInitCounter;\n mGyrOffset[2] /= (double) mInitCounter;\n\n System.out.println(\"##################################\");\n System.out.println(\"mAccOffset[0] = \" + mAccOffset[0]);\n System.out.println(\"mAccOffset[1] = \" + mAccOffset[1]);\n System.out.println(\"mAccOffset[2] = \" + mAccOffset[2]);\n System.out.println(\"mGyrOffset[0] = \" + mGyrOffset[0]);\n System.out.println(\"mGyrOffset[1] = \" + mGyrOffset[1]);\n System.out.println(\"mGyrOffset[2] = \" + mGyrOffset[2]);\n System.out.println(\"mInitCounter = \" + mInitCounter);\n }\n }\n // The frequency: 100Hz\n double t = motionData[12] * 0.01f;\n // For exception to restrict the data for accuracy\n if (t > 0.011 || t < 0.009)\n return false;\n\n motionData[9] -= mAccOffset[0];\n motionData[10] -= mAccOffset[1];\n motionData[11] -= mAccOffset[2];\n\n // Step1: use magnitude data & accelerate data to compute the\n // absolute pose data with noise-some think as Gaussian\n // TODO: 2017/3/5 Maybe convert this to c++ code for efficiency\n\n// System.out.println(\"t = \" + t);\n// System.out.println();\n\n double Ax = motionData[6] - mAccOffset[0];\n double Ay = motionData[7] - mAccOffset[1];\n double Az = motionData[8] - mAccOffset[2];\n final double Ex = motionData[0];\n final double Ey = motionData[1];\n final double Ez = motionData[2];\n double Hx = Ey * Az - Ez * Ay;\n double Hy = Ez * Ax - Ex * Az;\n double Hz = Ex * Ay - Ey * Ax;\n final double normH = Math.sqrt(Hx * Hx + Hy * Hy + Hz * Hz);\n if (normH < 0.1f) {\n // device is close to free fall (or in space?), or close to\n // magnetic north pole. Typical values are > 100.\n return false;\n }\n final double invH = 1.0f / normH;\n Hx *= invH;\n Hy *= invH;\n Hz *= invH;\n final double invA = 1.0f / (float) Math.sqrt(Ax * Ax + Ay * Ay + Az * Az);\n Ax *= invA;\n Ay *= invA;\n Az *= invA;\n final double Mx = Ay * Hz - Az * Hy;\n final double My = Az * Hx - Ax * Hz;\n final double Mz = Ax * Hy - Ay * Hx;\n\n // R is the rotation matrix for understanding\n // / R[0][0] R[0][1] R[0][2] \\\n // | R[1][0] R[1][1] R[1][2] |\n // \\ R[2][0] R[2][2] R[2][2] /\n double[][] R = new double[3][3];\n R[0][0] = Hx;\n R[0][1] = Hy;\n R[0][2] = Hz;\n R[1][0] = Mx;\n R[1][1] = My;\n R[1][2] = Mz;\n R[2][0] = Ax;\n R[2][1] = Ay;\n R[2][2] = Az;\n\n // Azimuth, angle of rotation about the -z axis. likewise: yaw\n // When facing north, this angle is 0, when facing south, this angle is &pi;.\n // Likewise, when facing east, this angle is &pi;/2, and when facing west,\n // this angle is -&pi;/2. The range of values is -&pi; to &pi;.\n double azimuth = (float) Math.atan2(R[0][1], R[1][1]);\n // Pitch, angle of rotation about the x axis.\n // This value represents the angle between a plane parallel to the device's\n // screen and a plane parallel to the ground. Assuming that the bottom\n // edge of the device faces the user and that the screen is face-up, tilting\n // the top edge of the device toward the ground creates a positive pitch angle.\n // The range of values is -&pi; to &pi;\n double pitch = (float) Math.asin(-R[2][1]);\n // Roll, angle of rotation about the y axis. This value represents the angle\n // between a plane perpendicular to the device's screen and a plane perpendicular\n // to the ground. Assuming that the bottom edge of the device faces the user\n // and that the screen is face-up, tilting the left edge of the device toward\n // the ground creates a positive roll angle.\n // The range of values is -&pi;/2 to &pi;/2.\n double roll = (float) Math.atan2(-R[2][0], R[2][2]);\n\n // Brief it so just like as below:\n azimuth = Math.atan2(Hy, My);\n pitch = Math.asin(-Ay);\n roll = Math.atan2(-Ax, Az);\n\n //Step2: Use gyroscope data to integrate the pose data\n // with high temporary accuracy but error grows with time\n // TODO: 2017/3/5 Make clear the position\n if (this.mIsFirst) {\n mLastAccPose.pitch = mAngle[0] = roll;\n mLastAccPose.roll = mAngle[1] = pitch;\n mLastAccPose.yaw = mAngle[2] = azimuth;\n\n System.out.println(\"Init the sensors successfully.\");\n\n // write debug information for debug\n mDdwDstData.setFileName(\"MotionPoseData.csv\");\n String hdLine = \"acc_x,acc_y,acc_z,vel_x,vel_y,vel_z,\"\n + \"path_x,path_y,path_z,roll,pitch,yaw\\r\\n\";\n mDdwDstData.setDataSetHeader(hdLine);\n mDdwFusionData.setFileName(\"CmpSensorFusion.csv\");\n hdLine = \"src1_roll,src1_pitch,src1_yaw,src2_roll,src2_pitch,\"\n + \"src2_yaw,src1_roll_check,src1_pitch_check,\" +\n \"src1_yaw_check,result_roll,result_pitch,result_yaw\\r\\n\";\n mDdwFusionData.setDataSetHeader(hdLine);\n\n mCFilter.setLeftRate(0.95);\n\n // Disable the first init\n this.mIsFirst = false;\n this.mIsNeedCalibrate = false;\n } else {\n double dGyroX = (motionData[3] - mGyrOffset[0]) * t;\n double dGyroY = (motionData[4] - mGyrOffset[1]) * t;\n // yaw and azimuth have different direction between acc_mag & gyro\n double dGyroZ = -(motionData[5] - mGyrOffset[2]) * t;\n\n // Deal with gimbal lock\n if (mLastAccPose.pitch > 2 && pitch < -2 ||\n mLastAccPose.pitch < -2 && pitch > 2) {\n mAngle[0] = pitch;\n }\n if (mLastAccPose.roll > 2 && roll < -2 ||\n mLastAccPose.roll < -2 && roll > 2) {\n mAngle[1] = roll;\n }\n if (mLastAccPose.yaw > 2 && azimuth < -2 ||\n mLastAccPose.yaw < -2 && azimuth > 2) {\n mAngle[2] = azimuth;\n }\n\n mAngle[0] += dGyroX;\n mAngle[1] += dGyroY;\n mAngle[2] += dGyroZ;\n\n Euler src1 = new Euler(mAngle[0], mAngle[1], mAngle[2]);\n Euler src2 = new Euler(roll, pitch, azimuth);\n\n mCFilter.step(src1, src2);\n\n Euler pose = mCFilter.getResultEuler();\n\n dstData[0] = roll;\n dstData[1] = pitch;\n dstData[2] = azimuth;\n\n dstData[3] = mAngle[0];\n dstData[4] = mAngle[1];\n dstData[5] = mAngle[2];\n\n dstData[9] = pose.roll;\n dstData[10] = pose.pitch;\n dstData[11] = pose.yaw;\n\n mLastAccPose.roll = mAngle[0] = pose.roll;\n mLastAccPose.pitch = mAngle[1] = pose.pitch;\n mLastAccPose.yaw = mAngle[2] = pose.yaw;\n\n // Write info for debug\n String tcLine = String.valueOf(dstData[0]) + \",\"\n + String.valueOf(dstData[1]) + \",\"\n + String.valueOf(dstData[2]) + \",\"\n + String.valueOf(dstData[3]) + \",\"\n + String.valueOf(dstData[4]) + \",\"\n + String.valueOf(dstData[5]) + \",\"\n + String.valueOf(dstData[6]) + \",\"\n + String.valueOf(dstData[7]) + \",\"\n + String.valueOf(dstData[8]) + \",\"\n + String.valueOf(dstData[9]) + \",\"\n + String.valueOf(dstData[10]) + \",\"\n + String.valueOf(dstData[11]) + \"\\r\\n\";\n mDdwFusionData.writeData(tcLine);\n\n // Compute the path there\n boolean ret;\n ret = calcTheWorld(pose, new Point3(motionData[9],\n motionData[10], motionData[11]), t);\n if (ret == true) {\n dstData[0] = mAccW[0];\n dstData[1] = mAccW[1];\n dstData[2] = mAccW[2];\n dstData[3] = mWorldSpeed[0];\n dstData[4] = mWorldSpeed[1];\n dstData[5] = mWorldSpeed[2];\n dstData[6] = mWorldPath[0];\n dstData[7] = mWorldPath[1];\n dstData[8] = mWorldPath[2];\n dstData[9] = pose.roll;\n dstData[10] = pose.pitch;\n dstData[11] = pose.yaw;\n return true;\n }\n }\n return false;\n }\n }\n return true;\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater,\n ViewGroup container,\n Bundle savedInstanceState) {\n\n if (Log.isLoggable(TAG, Log.DEBUG)) {\n Log.d(TAG, \"creating Fragment\");\n }\n\n if (container == null) {\n return null;\n }\n\n View view = inflater.inflate(R.layout.spectrumfragment, container, false);\n\n // setup the APR Levels plot:\n spectrumPlot = view.findViewById(R.id.spectrum_PlotView);\n spectrumPlot.setTitle(\"Frequency spectrum\");\n ToggleButton toggleButtonDoRecord = view.findViewById(R.id.spectrum_doRecord);\n toggleButtonDoRecord.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n nValues = 0;\n acceptData = true;\n } else {\n acceptData = false;\n }\n }\n });\n toggleButtonDoRecord.setChecked(true);\n Button saveButton = view.findViewById(R.id.spectrum_Save);\n saveButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n saveSpectrum();\n }\n });\n Spinner spinnerChannel = view.findViewById(R.id.spectrum_channel);\n ArrayAdapter<String> adapter = new ArrayAdapter<>(requireContext(),\n android.R.layout.simple_spinner_dropdown_item,\n AttysComm.CHANNEL_DESCRIPTION_SHORT);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinnerChannel.setAdapter(adapter);\n spinnerChannel.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n channel = position;\n spectrumSeries.setTitle(AttysComm.CHANNEL_DESCRIPTION[channel]);\n spectrumPlot.setRangeLabel(units[channel]);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n spinnerChannel.setBackgroundResource(android.R.drawable.btn_default);\n spinnerChannel.setSelection(AttysComm.INDEX_Analogue_channel_1);\n\n spectrumSeries = new SimpleXYSeries(\" \");\n\n for (int i = 0; i <= (BUFFERSIZE / 2); i++) {\n spectrumSeries.addLast(i * samplingRate / BUFFERSIZE, 0);\n }\n\n spectrumPlot.addSeries(spectrumSeries,\n new LineAndPointFormatter(\n Color.rgb(100, 255, 255), null, null, null));\n\n PanZoom panZoom = PanZoom.attach(spectrumPlot, PanZoom.Pan.BOTH, PanZoom.Zoom.STRETCH_BOTH);\n panZoom.setEnabled(true);\n\n Paint paint = new Paint();\n paint.setColor(Color.argb(128, 0, 255, 0));\n spectrumPlot.getGraph().setDomainGridLinePaint(paint);\n spectrumPlot.getGraph().setRangeGridLinePaint(paint);\n\n spectrumPlot.setDomainLabel(\"f/Hz\");\n spectrumPlot.setRangeLabel(\" \");\n\n spectrumPlot.setRangeLowerBoundary(0, BoundaryMode.FIXED);\n spectrumPlot.setRangeUpperBoundary(1, BoundaryMode.AUTO);\n spectrumPlot.setRangeLabel(units[channel]);\n\n spectrumPlot.setDomainLowerBoundary(0, BoundaryMode.FIXED);\n spectrumPlot.setDomainUpperBoundary(samplingRate/2, BoundaryMode.FIXED);\n\n XYGraphWidget.LineLabelRenderer lineLabelRendererY = new XYGraphWidget.LineLabelRenderer() {\n @Override\n public void drawLabel(Canvas canvas,\n XYGraphWidget.LineLabelStyle style,\n Number val, float x, float y, boolean isOrigin) {\n Rect bounds = new Rect();\n style.getPaint().getTextBounds(\"a\", 0, 1, bounds);\n drawLabel(canvas, String.format(Locale.US,\"%04.6f \", val.floatValue()),\n style.getPaint(), x + (float)bounds.width() / 2, y + bounds.height(), isOrigin);\n }\n };\n\n spectrumPlot.getGraph().setLineLabelRenderer(XYGraphWidget.Edge.LEFT, lineLabelRendererY);\n XYGraphWidget.LineLabelStyle lineLabelStyle = spectrumPlot.getGraph().getLineLabelStyle(XYGraphWidget.Edge.LEFT);\n Rect bounds = new Rect();\n String dummyTxt = String.format(Locale.US,\"%04.5f \", 1000.000597558899);\n lineLabelStyle.getPaint().getTextBounds(dummyTxt, 0, dummyTxt.length(), bounds);\n spectrumPlot.getGraph().setMarginLeft(bounds.width());\n\n XYGraphWidget.LineLabelRenderer lineLabelRendererX = new XYGraphWidget.LineLabelRenderer() {\n @Override\n public void drawLabel(Canvas canvas,\n XYGraphWidget.LineLabelStyle style,\n Number val, float x, float y, boolean isOrigin) {\n if (!isOrigin) {\n Rect bounds = new Rect();\n style.getPaint().getTextBounds(\"a\", 0, 1, bounds);\n drawLabel(canvas, String.format(Locale.US,\"%d\", val.intValue()),\n style.getPaint(), x + (float)bounds.width() / 2, y + bounds.height(), isOrigin);\n }\n }\n };\n\n spectrumPlot.getGraph().setLineLabelRenderer(XYGraphWidget.Edge.BOTTOM, lineLabelRendererX);\n\n spectrumSeries.setTitle(AttysComm.CHANNEL_DESCRIPTION[channel]);\n\n final Screensize screensize = new Screensize(getContext());\n if (screensize.isTablet()) {\n spectrumPlot.setDomainStep(StepMode.INCREMENT_BY_VAL, 25);\n } else {\n spectrumPlot.setDomainStep(StepMode.INCREMENT_BY_VAL, 50);\n }\n\n Spinner spinnerMaxY = view.findViewById(R.id.spectrum_maxy);\n ArrayAdapter<String> adapter1 = new ArrayAdapter<>(getContext(), android.R.layout.simple_spinner_dropdown_item, MAXYTXT);\n adapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinnerMaxY.setAdapter(adapter1);\n spinnerMaxY.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position == 0) {\n spectrumPlot.setRangeUpperBoundary(1, BoundaryMode.AUTO);\n spectrumPlot.setRangeStep(StepMode.INCREMENT_BY_PIXELS, 50);\n } else {\n float maxy = Float.parseFloat(MAXYTXT[position]);\n if (screensize.isTablet()) {\n spectrumPlot.setRangeStep(StepMode.INCREMENT_BY_VAL, maxy/10);\n } else {\n spectrumPlot.setRangeStep(StepMode.INCREMENT_BY_VAL, maxy/2);\n }\n spectrumPlot.setRangeUpperBoundary(maxy, BoundaryMode.FIXED);\n }\n }\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n spinnerMaxY.setBackgroundResource(android.R.drawable.btn_default);\n spinnerMaxY.setSelection(0);\n\n fourierTransformRunnable = new FourierTransformRunnable();\n\n Thread fourierTransformThread = new Thread(fourierTransformRunnable);\n fourierTransformThread.start();\n\n ready = true;\n\n return view;\n\n }", "private void updateSensors()\r\n\t{\t\t\r\n\t\tthis.lineSensorRight\t\t= perception.getRightLineSensor();\r\n\t\tthis.lineSensorLeft \t\t= perception.getLeftLineSensor();\r\n\t\t\r\n\t\tthis.angleMeasurementLeft \t= this.encoderLeft.getEncoderMeasurement();\r\n\t\tthis.angleMeasurementRight \t= this.encoderRight.getEncoderMeasurement();\r\n\r\n\t\tthis.mouseOdoMeasurement\t= this.mouseodo.getOdoMeasurement();\r\n\r\n\t\tthis.frontSensorDistance\t= perception.getFrontSensorDistance();\r\n\t\tthis.frontSideSensorDistance = perception.getFrontSideSensorDistance();\r\n\t\tthis.backSensorDistance\t\t= perception.getBackSensorDistance();\r\n\t\tthis.backSideSensorDistance\t= perception.getBackSideSensorDistance();\r\n\t}", "public SpectraData(PxlData2<T> input){\r\n\t\t\r\n\t\t//Find out number of pixels in a single dataset\r\n\t\tthis.noOfPixels = input.getWidth() * input.getHeight();\r\n\t\t\r\n\t\t//Get number of wavelengths\r\n\t\tthis.noOfWavelengths = input.getDepth();\r\n\t\t\r\n\t\t//Initialise array to hold data\r\n\t\tdata = new Array2DRowRealMatrix(noOfWavelengths,2);\r\n\t\t\r\n\t\t//Initialise selection\r\n\t\tselection = input.getSelection();\r\n\t\t\r\n\t\t//Initialise name\r\n\t\tname = null;\r\n\t\t\r\n\t\t//Initialise Matrix to hold flattened pxlData\r\n\t\tRealMatrix flattenedData = input.flatten();\t\r\n\t\t\r\n\t\t//Initialise arraylist to hold wavelengths\r\n\t\tArrayList<Integer> wavelengths = input.getWavelengths();\r\n\t\t\r\n\t\t//Calculate the mean of pixel data at each wavelength\r\n\t\tcalc(flattenedData, wavelengths);\r\n\t\t\t\t\r\n\t}", "@Override\n\tpublic void addToSamples(short[] data) throws SoundOverflowException {\n\t\tfor (int i = 0; i < data.length; ++i) {\n\t\t\tdouble scale = 1.0;\n\t\t\tif (i < RAMPUP_SAMPLES) {\n\t\t\t\tscale = (double) i / (double) RAMPUP_SAMPLES;\n\t\t\t}\n\t\t\telse if (i > data.length - RAMPUP_SAMPLES) {\n\t\t\t\tscale = (double) (data.length - i) / (double) RAMPUP_SAMPLES;\n\t\t\t}\n\n\t\t\tdouble v = compute(i) * scale * amplitude;\n\t\t\t\n\t\t\tif (Short.MAX_VALUE - v < data[i]) { \n\t\t\t\tthrow new SoundOverflowException();\n\t\t\t}\n\t\t\t\n\t\t\tif (Short.MIN_VALUE + v > data[i]) {\n\t\t\t\tthrow new SoundOverflowException();\n\t\t\t}\n\t\t\tdata[i] += Math.round(v);\n\t\t}\n\t}", "@Override\r\n\tpublic void control() {\r\n // data is aggregated this time step\r\n q.put(qCur);\r\n v.put(vCur);\r\n if (lane.model.settings.getBoolean(\"storeDetectorData\")) {\r\n qHist.add(qCur);\r\n vHist.add(vCur);\r\n tHist.add(lane.model.t);\r\n }\r\n // reset count\r\n qCur = 0;\r\n vCur = 0;\r\n }", "protected void audioDataChanged() {\r\n\t\tpv.update();\r\n\t\trepaint(); // is asynchronous\r\n\t}", "private static void ProcessObsValData(byte[] data) throws Exception{\n\t\tFloatType ft = new FloatType(0xFF000270);\n\t\t//System.out.println(\" byteValue: \" + getHexString(data));\n\t\tSystem.out.println(\" Value: \" + ft);\n\t}", "private void inverseFastFourierTransfrom(Complex[] F, Img i) {\n\n\t\tComplex[] F_u_y = new Complex[i.width * i.height];\n\t\t//do one-direction FFT first for each X\n\t\tfor(int u=0; u < i.height ; u++){\n\t\t\t\tComplex[] F_u_v_oneRow = Arrays.copyOfRange(F, u * i.width, (u+1) * i.width);\n\t\t\t\tComplex[] F_u_y_oneRow = oneDInverseFFT(F_u_v_oneRow);\n\t\t\t //put the one row FFT into F(u,y)\n\t\t\t for(int j = 0; j < F_u_y_oneRow.length; j++)\n\t\t\t {\n\t\t\t\t// F_x_v_oneRow[j].div(F_x_v_oneRow.length);\n\t\t\t\t //F_u_y_oneRow[j].mul(Math.pow(-1,j));\n\t\t\t\t //System.out.print(F_x_v_oneRow[j].r + \" \");\n\t\t\t\t F_u_y[j*i.width+u] = F_u_y_oneRow[j];\n\t\t\t }\n\t\t}\n\n\t\tfor(int y =0; y< i.width; y++){\n\t\t//\tSystem.out.println(\"Computing second FFT at x = \"+y);\n\t\t\tComplex[] F_u_y_oneRow = Arrays.copyOfRange(F_u_y, y * i.height, (y+1) * i.height);\n\t\t\tComplex[] f_x_y_oneRow = oneDInverseFFT(F_u_y_oneRow);\n\t\t\tfor(int j = 0; j < f_x_y_oneRow.length; j++)\n\t\t\t{\n\t\t\t\t//f_x_y_oneRow[j].mul(Math.pow(-1,j+y));\n\t\t\t\tf_x_y_oneRow[j].div(i.height*i.width);\n\t\t\t\t//if(f_x_y_oneRow[j].r<0) f_x_y_oneRow[j].r =0 ;\n\t\t\t\t//System.out.print(f_x_y_oneRow[j].r + \" \");\n\t\t\t\t//i.img[i.img.length - (j*i.width+y+1)] = (byte)(f_x_y_oneRow[j].getNorm());\n\t\t\t\tdouble result = f_x_y_oneRow[j].getNorm();\n\t\t\t\tif(result>255)\n\t\t\t\t{\n\t\t\t\t\tresult = 255;\n\t\t\t\t}\n\t\t\t\ti.img[j*i.width+y] = (byte)result;\n\t\t\t}\n\t\t}\n\n\t}", "private native void convertToLum( short[] data, int w, int h );", "private void scale(Complex[] F) {\r\n\t\r\n\t\tfor (int i = 0; i < F.length; i++) {\r\n\t\t\tF[i].setReal((double)255 * F[i].getReal() / (maX - miN));\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "public void Resample(double value, String units) {\n\n // dictionary with number of seconds per sampling unit\n Map<String, Double> units_dict = new HashMap<>();\n units_dict.put(\"week\", 7.0 * 24 * 60 * 60 * 60);\n units_dict.put(\"day\", 1.0 * 24 * 60 * 60 * 60);\n units_dict.put(\"hour\", 1.0 * 60 * 60);\n units_dict.put(\"minute\", 60.0);\n units_dict.put(\"second\", 1.0);\n\n int m = index.values.length;\n Double[] xnow = index.convert_to_seconds(); // get the index times in seconds to be able to resample\n\n // compute the new times array\n Double span = units_dict.get(units) * value; // get the selected time interval to resample\n int n = (int) Math.floor((xnow[m - 1] - xnow[0]) / span); //number of intervals\n Double[] xnew = new Double[n]; // new array of times\n Date[] new_dates = new Date[n];\n xnew[0] = Math.floor(xnow[0] / span) * span;\n for (int j = 1; j < n; j++) {\n xnew[j] = xnew[j - 1] + span;\n new_dates[j] = new Date((long) (xnew[j] * 1000));\n }\n // create the coefficients matrix A\n double T = 1.0 / n; // period\n Double[][] A = new Double[m][n];\n\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n A[i][j] = sinc((xnow[i] - xnew[j]) / T);\n\n Double[] ynew = new Double[n];\n }", "private void resampleAbdomenVOI( int sliceIdx, VOIContour curve ) {\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM(sliceIdx);\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n \r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n int x = xcm;\r\n int y = ycm;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xDim && curve.contains(x, y)) {\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > 0 && curve.contains(x, y)) {\r\n\r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > 0 && curve.contains(x, y)) {\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yDim && curve.contains(x, y)) {\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n }\r\n } // end for (angle = 0; ...\r\n \r\n// ViewUserInterface.getReference().getMessageFrame().append(\"resample VOI number of points: \" +xValsAbdomenVOI.size());\r\n\r\n curve.clear();\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n curve.add( new Vector3f( xValsAbdomenVOI.get(idx), yValsAbdomenVOI.get(idx), sliceIdx ) );\r\n }\r\n }", "public void updateExperimentalData() {\n experimentalData = dataProducer.getExperimentDataset();\n }", "public static double[] dft(double[] data, double[] idata, int dataLen){\n \n double[] spectrum = new double[dataLen];\n double delF = 1.0/dataLen;\n //Outer loop iterates on frequency\n // values.\n for(int i=0; i < dataLen;i++){\n double freq = i*delF;\n double real = 0;\n double imag = 0;\n //Inner loop iterates on time-\n // series points.\n for(int j=0; j < dataLen; j++){\n real += data[j]*Math.cos( 2*Math.PI*freq*j);\n imag += data[j]*Math.sin( 2*Math.PI*freq*j);\n }\n spectrum[i] = Math.sqrt(real*real + imag*imag);\n idata[i] = -imag;\n }\n return spectrum;\n }", "public void displaySpectrum() {\n if (this.spectrum == null) { // there is no data to display\n UI.println(\"No spectrum to display\");\n return;\n }\n UI.clearText();\n UI.println(\"Printing, please wait...\");\n\n UI.clearGraphics();\n\n // calculate the mode of each element\n ArrayList<Double> spectrumMod = new ArrayList<Double>();\n double max = 0;\n for (int i = 0; i < spectrum.size(); i++) {\n if (i == MAX_SAMPLES)\n break;\n\n double value = spectrum.get(i).mod();\n max = Math.max(max, value);\n spectrumMod.add(spectrum.get(i).mod());\n }\n\n double scaling = 300 / max;\n for (int i = 0; i < spectrumMod.size(); i++) {\n spectrumMod.set(i, spectrumMod.get(i) * scaling);\n }\n\n // draw x axis (showing where the value 0 will be)\n UI.setColor(Color.black);\n UI.drawLine(GRAPH_LEFT, ZERO_LINE, GRAPH_LEFT + GRAPH_WIDTH, ZERO_LINE);\n\n // plot points: blue line between each pair of values\n UI.setColor(Color.blue);\n\n double x = GRAPH_LEFT;\n for (int i = 1; i < spectrumMod.size(); i++) {\n double y1 = ZERO_LINE;\n double y2 = ZERO_LINE - spectrumMod.get(i);\n if (i > MAX_SAMPLES) {\n UI.setColor(Color.red);\n }\n UI.drawLine(x, y1, x + X_STEP, y2);\n x = x + X_STEP;\n }\n\n UI.println(\"Printing completed!\");\n }", "private static native void transformFD_0(long src_nativeObj, long t_nativeObj, long dst_nativeObj, boolean fdContour);", "public double[] processWindow(double[] window, int start) throws IllegalArgumentException\n {\n double value;\n int fftSize = (windowSize / 2) + 1;\n int barkSize = bark_upper.length;\n double[] output = new double[barkSize];\n\n //check start\n if(start < 0)\n throw new IllegalArgumentException(\"start must be a positve value\");\n\n //check window size\n if(window == null || window.length - start < windowSize)\n throw new IllegalArgumentException(\"the given data array must not be a null value and must contain data for one window\");\n\n //just copy to buffer\n for (int j = 0; j < windowSize; j++)\n buffer[j] = window[j + start];\n\n //performe power fft\n normalizedPowerFFT.transform(buffer, null);\n\n //calculate outer era model\n for (int i = 0; i < fftSize; i++)\n buffer[i] = buffer[i] * terhardtWeight[i];\n\n //calculate bark scale\n double freq = 0;\n value = 0;\n int band = 0;\n for (int i = 0; i < fftSize && band < bark_upper.length; i++)\n {\n if (freq <= bark_upper[band])\n {\n value += buffer[i];\n }\n else\n {\n buffer[band] = value;\n band++;\n value = buffer[i];\n }\n freq += baseFreq;\n }\n\n if(band < bark_upper.length)\n buffer[band] = value;\n\n //calculate spectral masking (in db)\n double log = 10 * (1 / Math.log(10)); // log for base 10 and scale by factor 10\n //matrix vector multiplication\n /*for (int j = 0; j < barkSize; j++)\n {\n value = 0;\n for (int i = 0; i < barkSize; i++)\n {\n value += spreadMatrix[j][i] * buffer[i];\n }\n\n if(value < 1)\n value = 1;\n\n output[j] = log * Math.log(value);\n }*/\n\n //calculate loudness Sone (from db)\n for (int i = 0; i < barkSize; i++)\n {\n //corrected version: without spektral masking step\n if(buffer[i] < 1)\n output[i] = 0.0d;\n else\n output[i] = log * Math.log(buffer[i]);\n\n if (output[i] >= 40d)\n output[i] = Math.pow(2d, (output[i] - 40d) / 10d);\n else\n output[i] = Math.pow(output[i] / 40d, 2.642d);\n }\n\n return output;\n }", "@Override\n public void onWaveFormDataCapture(Visualizer visualizer,\n byte[] waveform, int samplingRate) {\n mVisualizerView.updateVisualizer(waveform);\n }", "public void deconvolute(Spectrum spectrum){\n//\t\tTimer time = new Timer();\n\t\tif(spectrum == null)\n\t\t\treturn;\n\t\tmatcher.setResolution(spectrum.resolution);\n\t\t\n\t\tPeakSet unassigned = spectrum.copy();\n\t\t\n\t\tif(spectrum.scanMode == 0)\n\t\t\tapplyCache(spectrum, unassigned);\n\t\tdeisotope(spectrum, unassigned);\n\t\tdechargeDeisotoped(spectrum);\n\t\tdecharge(spectrum, unassigned);\n//\t\tSystem.out.println(\"Took \" + time.ms() + \" ms for an MS\" + (spectrum.scanMode + 1));\n\t}", "private void arretes_fR(){\n\t\tthis.cube[13] = this.cube[10]; \n\t\tthis.cube[10] = this.cube[12];\n\t\tthis.cube[12] = this.cube[16];\n\t\tthis.cube[16] = this.cube[14];\n\t\tthis.cube[14] = this.cube[13];\n\t}", "private void performMT() {\r\n int direction;\r\n int dimNumber;\r\n int newLength;\r\n int i, j, k, m;\r\n int originalSliceSize;\r\n int newSliceSize = 1;\r\n int originalVolumeSize;\r\n int newVolumeSize;\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n direction = 1;\r\n } else {\r\n direction = -1;\r\n }\r\n\r\n if (image25D) {\r\n dimNumber = 2;\r\n } else {\r\n dimNumber = ndim;\r\n }\r\n newLength = newArrayLength;\r\n final int xdim = newDimLengths[0];\r\n final int ydim = newDimLengths[1];\r\n final int zdim = (newDimLengths.length == 3) ? newDimLengths[2] : 1;\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n fireProgressStateChanged( -1, null, \"Centering data before FFT algorithm ...\");\r\n center(realData, imagData);\r\n }\r\n\r\n fireProgressStateChanged( -1, null, \"Running FFT algorithm ...\");\r\n\r\n //System.out.println(\"Number of Threads: \" + nthreads);\r\n if (threadStopped) {\r\n return;\r\n }\r\n /**\r\n * Initialize the progress step.\r\n */\r\n if (image25D) {\r\n setProgressStep((float) (100.0 / (nthreads * Math.log(xdim * ydim) / Math.log(2.0))));\r\n } else {\r\n setProgressStep((float) (100.0 / (nthreads * Math.log(xdim * ydim * zdim) / Math.log(2.0))));\r\n }\r\n\r\n final CountDownLatch doneSignalX = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_YZ);\r\n for (i = 0; i < nthreads; i++) {\r\n \tfinal int nslices;\r\n \tif (zdim < nthreads) {\r\n \t if (i < zdim) {\r\n \t\t nslices = 1;\r\n \t }\r\n \t else {\r\n \t\t nslices = 0;\r\n \t }\r\n \t}\r\n \telse {\r\n nslices = zdim / nthreads;\r\n \t} \r\n final int sliceLen = xdim * ydim;\r\n final int start = i * nslices * sliceLen;\r\n final int end = start + 1;\r\n final int length = (i + 1) * nslices * sliceLen;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, 1, xdim, length, dir);\r\n doneSignalX.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalX.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n final CountDownLatch doneSignalY = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_ZX);\r\n for (i = 0; i < nthreads; i++) {\r\n final int nslices = ydim / nthreads;\r\n final int start = i * nslices;\r\n final int end = (i + 1) * nslices;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, xdim, xdim * ydim, xdim * ydim * zdim, dir);\r\n doneSignalY.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalY.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (dimNumber == 3) {\r\n final CountDownLatch doneSignalZ = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_XY);\r\n for (i = 0; i < nthreads; i++) {\r\n final int nslices = ydim / nthreads;\r\n final int start = i * nslices * xdim;\r\n final int end = (i + 1) * nslices * xdim;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, xdim * ydim, xdim * ydim * zdim, xdim * ydim * zdim, dir);\r\n doneSignalZ.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalZ.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n fireProgressStateChanged( -1, null, \"Centering data after inverse FFT ...\");\r\n\r\n center(realData, imagData);\r\n }\r\n\r\n \r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n \tif (ndim >= 2) {\r\n \t\tnewSliceSize = newDimLengths[0]*newDimLengths[1];\r\n \t}\r\n \tif (complexInverse) {\r\n \t\tfor (i = 0; i < newLength; i++) {\r\n \t\t\tif (image25D) {\r\n \t\t\t\trealData[i] = realData[i] / newSliceSize;\r\n \t\t\t\timagData[i] = imagData[i] / newSliceSize;\r\n \t\t\t}\r\n \t\t\telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t imagData[i] = imagData[i] / newLength;\r\n \t\t\t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[2 * AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t for (i = 0; i < originalDimLengths[0]; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t } else if (ndim == 2) {\r\n\t for (i = 0; i < originalDimLengths[1]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[0]; j++) {\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)] = realData[i*newDimLengths[0] + j];\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)+1] = imagData[i*newDimLengths[0] + j];\r\n\t \t}\r\n\t }\r\n\t } else if (ndim == 3) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t for (i = 0; i < originalDimLengths[2]; i++) {\r\n\t for (j = 0; j < originalDimLengths[1]; j++) {\r\n\t for (k = 0; k < originalDimLengths[0]; k++) {\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)] =\r\n\t realData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)+1] =\r\n\t\t imagData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t }\r\n\t }\r\n\t }\r\n\t } else if (ndim == 4) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t originalVolumeSize = originalSliceSize * originalDimLengths[2];\r\n\t newVolumeSize = newSliceSize * newDimLengths[2];\r\n\t for (i = 0; i < originalDimLengths[3]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[2]; j++) {\r\n\t \t\tfor (k = 0; k < originalDimLengths[1]; k++) {\r\n\t \t\t\tfor (m = 0; m < originalDimLengths[0]; m++) {\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)] =\r\n\t realData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)+1] =\r\n\t imagData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t}\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t\t }\t\r\n \t} // if (complexInverse)\r\n \telse { // !complexInverse\r\n\t imagData = null;\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tif (image25D) {\r\n\t \t\trealData[i] = realData[i] / newSliceSize;\r\n\t \t}\r\n\t \telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t // imagData[i] = imagData[i] / newLength;\r\n\t \t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t System.arraycopy(realData, 0, finalData, 0, originalDimLengths[0]);\r\n\t } else if (ndim == 2) {\r\n\t ArrayUtil.copy2D(realData, 0, newDimLengths[0], newDimLengths[1], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], false);\r\n\t } else if (ndim == 3) {\r\n\t ArrayUtil.copy3D(realData, 0, newDimLengths[0], newDimLengths[1], newDimLengths[2], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], originalDimLengths[2], false);\r\n\t } else if (ndim == 4) {\r\n\t ArrayUtil.copy4D(realData, newDimLengths[0], newDimLengths[1], newDimLengths[2], dimLengths[3],\r\n\t finalData, originalDimLengths[0], originalDimLengths[1], originalDimLengths[2],\r\n\t originalDimLengths[3], false);\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t\t }\r\n \t} // else !complexInverse\r\n } // if (transformDir == AlgorithmFFT2.INVERSE)\r\n\r\n\r\n }", "private static double[] normalize(double[] data)\n {\n double sum = 0;\n \n for (double d : data)\n sum += d;\n \n if (sum != 1 && sum != 0)\n {\n for (int i = 0; i < data.length; i++)\n data[i] /= sum;\n }\n \n return data;\n }", "@Test\n public void testTransform() {\n File file1=new File(\"testData/testfile.mgf\");\n MgfReader rdr=new MgfReader(file1);\n ArrayList<Spectrum> specs = rdr.readAll();\n System.out.println(\"transform\");\n Spectrum spec = specs.get(0);\n ReciprocalTransform instance = new ReciprocalTransform();\n Spectrum expResult = null;\n Spectrum result = null;//instance.transform(spec);\n assertEquals(result, expResult);\n }", "public void handleWave(int frame, double waveData[], int length) {\n\t\tdemodulatedTextStringBuffer = new StringBuffer();\n\n\t\t// mix wavedata with phasor rotating at set frequency\n\t\tComplex result[] = mixer.mixIQ(waveData, length);\n\n\t\t// filter the wave data\n\t\tComplex result1[] = filter1.filter(result, length);\n\t\tint nunberOfSymbols = length / (symbolLength / 16);\n\t\tComplex result2[] = filter2.filter(result1, nunberOfSymbols);\n\n\t\t// work out position of bit in window\n\t\tfor (int sample = 0; sample < nunberOfSymbols; sample++) {\n\t\t\tComplex z = result2[sample];\n\t\t\tdouble zmag = z.abs();\n\t\t\tdouble sum = 0.0;\n\t\t\tdouble ampsum = 0.0;\n\t\t\tint idx = (int) bitClock;\n\n\t\t\t// decaying average - insert current sample magnitude\n\t\t\tsynchronisationBuffer[idx] = 0.8 * synchronisationBuffer[idx] + 0.2 * zmag;\n\n\t\t\t// added correction as per PocketDigi\n\t\t\t// vastly improved performance with synchronous interference !!\n\t\t\tfor (int i = 0; i < 8; i++) {\n\t\t\t\tsum += (synchronisationBuffer[i] - synchronisationBuffer[i + 8]);\n\t\t\t\tampsum += (synchronisationBuffer[i] + synchronisationBuffer[i + 8]);\n\t\t\t}\n\t\t\tsum = (ampsum == 0.0 ? 0.0 : (sum / ampsum));\n\t\t\tbitClock -= (sum / 5.0);\n\n\t\t\t// time minor ticks\n\t\t\tbitClock += 1;\n\n\t\t\t// ensure bitClock is between 0 and 16\n\t\t\tif (bitClock < 0) {\n\t\t\t\tbitClock += 16.0;\n\t\t\t}\n\t\t\tif (bitClock >= 16.0) {\n\t\t\t\tbitClock -= 16.0;\n\n\t\t\t\t// process symbol on each major time tick\n\t\t\t\treceiveSymbol(z);\n\t\t\t}\n\t\t}\n\n\t\tString demodulatedText = demodulatedTextStringBuffer.toString();\n\t\tcontroller.handleText(frame, demodulatedText);\n\t}", "@Test\n public void test() {\n int packLength = 156;\n DFTMainFreqEncoder encoder = new DFTMainFreqEncoder(packLength);\n encoder.setMainFreqNum(2);\n List<float[]> packs;\n\n for (int i = 0; i < 1000; i++) {\n // encoder.encode(2*i+3*Math.cos(2*Math.PI*0.4*i));\n// encoder.encode(3 * Math.cos(2 * Math.PI * 0.4 * i));\n encoder.encode(12.5);\n }\n for (int i = 2001; i < 3000; i++) {\n encoder.encode(37.5 + 10 * Math.cos(2 * Math.PI * 0.4 * i));\n // encoder.encode(i);\n }\n for (int i = 3001; i < 4000; i++) {\n // encoder.encode(2*i+3*Math.cos(2*Math.PI*0.4*i));\n// encoder.encode(3 * Math.cos(2 * Math.PI * 0.4 * i));\n encoder.encode(12.5);\n }\n\n System.out.println(\"data: line\");\n packs = encoder.getPackFrequency();\n for (int i = 0; i < packs.size(); i++) {\n System.out.println(i * packLength + \"\\t~\\t\" + ((i + 1) * packLength - 1) + \"\\t\"\n + Arrays.toString(packs.get(i)));\n }\n GtEq<Float> gtEq = FilterFactory.gtEq(FilterFactory.floatFilterSeries(\"a\", \"b\", FilterSeriesType.FREQUENCY_FILTER),0.2f,true);\n assertTrue(encoder.satisfy(gtEq));\n encoder.resetPack();\n\n }", "public void setMeasurementArray(){\n\t\tnResults = rt.size();\n\t\tData = new double[4][nResults];\n\t\tfor(int i =1; i<nResults; i++) {\n\t\t\tData[0][i]=i;\n\t\t\tData[1][i]=rt.getValueAsDouble(rt.getColumnIndex(\"Mean\"),i); \n\t\t\tData[2][i]=rt.getValueAsDouble(rt.getColumnIndex(\"StdDev\"),i);\n\t\t\tData[3][i]=rt.getValueAsDouble(rt.getColumnIndex(\"Max\"),i)-rt.getValueAsDouble(rt.getColumnIndex(\"Min\"),i);\n\t\t}\n\t\treturn;\n\t}", "@Override\n\tpublic Object process(Object input) {\n\t\treturn filter.process((Waveform2)input);\n\t}", "private void updateValues(){\n if (mCelsian != null) {\n mCelsian.readMplTemp();\n mCelsian.readShtTemp();\n mCelsian.readRh();\n mCelsian.readPres();\n mCelsian.readUvaValue();\n mCelsian.readUvbValue();\n mCelsian.readUvdValue();\n mCelsian.readUvcomp1Value();\n mCelsian.readUvcomp2Value();\n }\n }", "public Array2DRowRealMatrix getNormalisedData() {\r\n\t\t\r\n\t\t//declare variables\r\n\t\tdouble dataVal;\r\n\t\tdouble normalisationVal;\r\n\t\tdouble finalVal;\r\n\t\r\n\t\tArray2DRowRealMatrix returnMatrix = new Array2DRowRealMatrix(noOfWavelengths,2);\r\n\t\t\r\n\t\t//iterate through data\r\n\t\tfor(int rowIndex=0; rowIndex < noOfWavelengths; rowIndex++) {\r\n\t\t\t\r\n\t\t\t//normalised data value = (recorded data value / recorded normalisation value) * calibration ratio\r\n\t\t\tdouble[] normalData = new double[2];\r\n\r\n\t\t\tdataVal = data.getRow(rowIndex)[1];\r\n\t\t\tnormalisationVal = normalisationData.getRow(rowIndex)[1];\r\n\t\t\t\r\n\t\t\tnormalData[0] = data.getRow(rowIndex)[0];\r\n\t\t\tnormalData[1] = (dataVal / normalisationVal) * calibRatio;\r\n\t\t\t\r\n\t\t\treturnMatrix.setRow(rowIndex, normalData);\r\n\t\t}\r\n\r\n\t\treturn returnMatrix;\r\n\t}", "public void update() {\r\n\t\tif (firstRow > maxRows) {\r\n\t\t\tfirstRow = maxRows;\r\n\t\t\tfromRowField.setText(firstRow + \"\");\r\n\t\t}\r\n\t\tif (lastRow > maxRows) {\r\n\t\t\tlastRow = maxRows;\r\n\t\t\ttoRowField.setText(lastRow + \"\");\r\n\t\t}\r\n\t\tif (firstColumn > maxColumns) {\r\n\t\t\tfirstColumn = maxColumns;\r\n\t\t\tfromColumnField.setText(firstColumn + \"\");\r\n\t\t}\r\n\t\tif (lastColumn > maxColumns) {\r\n\t\t\tlastColumn = maxColumns;\r\n\t\t\ttoColumnField.setText(lastColumn + \"\");\r\n\t\t}\r\n\r\n\t\tIterator i = listeners.iterator();\r\n\t\twhile (i.hasNext()) {\r\n\t\t\t((DataControlListener) i.next()).update(firstRow, lastRow, firstColumn, lastColumn, fractionDigits);\r\n\t\t}\r\n\t}", "public FullWaveformData() {\n\t\tchannelSampleArrayList = new ArrayList<>();\n\t\tdataSetArray = new DataSet[34];\n\t\tfor (int i = 0; i < 34; i++) {\n\t\t\tchannelSampleArrayList.add(new ArrayList<>());\n\t\t}\n\t\tfor (int i = 0; i < 34; i++) {\n\t\t\ttry {\n\t\t\t\tdataSetArray[i] = new DataSet(DataSetType.XYXY, WavePlot.getColumnNames());\n\t\t\t} catch (DataSetException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "void postProcessData(){\n collectData = false;\n blueNumSteps = 0;\n List<double[]> inputListBlue = new ArrayList<>();\n List<double[]> outputListBlue = new ArrayList<>();\n for(int i = 0; i < blueList.size();i++){\n inputListBlue.add(new double[]{blueList.get(i).getYPos(), blueList.get(i).frame});\n }\n //Reset to zero\n while(blueList.size()>0){\n blueList.remove(0);\n }\n //Reset to zero\n for (int i = 0; i < outputListBlue.size(); i++) {\n outputListBlue.remove(0);\n }\n\n\n outputListBlue = cmwa(inputListBlue);\n outputListBlue = cmwa(outputListBlue);\n outputListBlue = cmwa(outputListBlue);\n outputListBlue = cmwa(outputListBlue);\n outputListBlue = cmwa(outputListBlue);\n\n\n blueNumSteps = findMax(outputListBlue);\n\n //Reset to zero\n for (int i = 0; i < inputListBlue.size(); i++) {\n inputListBlue.remove(0);\n }\n\n //Process red steps\n redNumSteps = 0;\n List<double[]> outputListRed = new ArrayList<>();\n List<double[]> inputListRed = new ArrayList<>();\n\n for(int i = 0; i < redList.size();i++){\n inputListRed.add(new double[]{redList.get(i).getYPos(), redList.get(i).frame});\n }\n //Reset to zero\n while(redList.size()>0){\n redList.remove(0);\n }\n //Reset to zero\n for (int i = 0; i < outputListRed.size(); i++) {\n outputListRed.remove(0);\n }\n\n outputListRed = cmwa(inputListRed);\n outputListRed = cmwa(outputListRed);\n outputListRed = cmwa(outputListRed);\n outputListRed = cmwa(outputListRed);\n outputListRed = cmwa(outputListRed);\n\n redNumSteps = findMax(outputListRed);\n\n //Reset to zero\n for (int i = 0; i < inputListRed.size(); i++) {\n inputListRed.remove(0);\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n enableVideo = false;\n System.out.println(\"RED STEPS:\"+ redNumSteps);\n System.out.println(\"BLUE STEPS:\"+ blueNumSteps);\n if(Math.abs(blueNumSteps - redNumSteps) < 2 && Math.abs(stepCount - (blueNumSteps + redNumSteps))<2) {\n stepText.setText(USER_NAME + \"'s step length: \" + String.format(\"%.3f\", STEP_LENGTH) + \"m\" + \"\\n\" + \"Number of Steps: \" + totalNumSteps + \"\\n\" + \"Collection Complete!\");\n saveData();\n }\n else{\n stepText.setText(USER_NAME + \"'s step length: \" + String.format(\"%.3f\", STEP_LENGTH) + \"m\"+\"\\n\" + \"Data Collection Error: Steps do not Match\");\n }\n }\n });\n }", "@Override\n protected void afterAttach(){\n\n float scaleE = (float) Math.pow(toValue, 1.0 / totalIterations);\n scaleTransform.updateValues(scaleE, scaleE, scaleE);\n }", "public static void main( String[] argv ) throws Exception\r\n\t{\r\n\t\t//Browse file system for the desired .mp3 file to be visualized\r\n\t\t//SELECTED FILE MUST BE A .mp3 FILE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n\t\tJFileChooser jfc = new JFileChooser();\r\n\t\tjfc.showDialog(null,\"Please Select the desired .mp3 file. \\n ***MUST BE A .mp3 FILE***\");\r\n\t\tjfc.setVisible(true);\r\n\t\tfinal String FILE = jfc.getSelectedFile().getPath();\r\n\t\tSystem.out.println(\"File name \"+FILE);\r\n\t\t\r\n\t\t\r\n\t\tMP3Decoder decoder = new MP3Decoder( new FileInputStream( FILE ) );\r\n\t\tAudioDevice device = new AudioDevice( );\r\n\t\t\r\n\t\t\r\n\t\t//Opens a color chooser so that the user can pick their desired colors for the animation\r\n\t\tColor bgcolor = JColorChooser.showDialog(null, \"Choose the background color for the animation:\", Color.BLACK);\r\n\t\tColor color1 = JColorChooser.showDialog(null, \"Choose the first animation color:\", Color.BLUE);\r\n\t\tColor color2 = JColorChooser.showDialog(null, \"Choose the second animation color:\", Color.WHITE);\r\n\t\t\r\n\t\t//Get Screen Dimensions\r\n\t\t//Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t//Convert Screen Dimensions to length and width\r\n\t\t//final int width = (int)screenSize.getWidth();\r\n\t\t//final int height = (int)screenSize.getHeight();\r\n\t\t\r\n\t\t\r\n\t\tMyPlot plot = new MyPlot( \"Animation\", 1024, 512 );\r\n\t\tFFT fft = new FFT( 1024, 44100 );\r\n\t\tfloat[] samples = new float[1024];\r\n\t\tfloat[] spectrum = new float[1024 / 2 + 1];\r\n\t\tfloat[] lastSpectrum = new float[1024 / 2 + 1];\r\n\t\t\r\n\t\tlong time = System.currentTimeMillis();\r\n\t\tlong lastTime = time;\r\n\t\tint count = 0;\r\n\t\tint bands = 64;\r\n\t\tint currentBands = bands;\r\n\t\tint cycle = 4;\r\n\t\tint c = cycle;\r\n\t\twhile( decoder.readSamples( samples ) > 0 )\r\n\t\t{\t\t\r\n\t\t\tfft.forward( samples );\r\n\t\t\tSystem.arraycopy( spectrum, 0, lastSpectrum, 0, spectrum.length );\r\n\t\t\tSystem.arraycopy( fft.getSpectrum(), 0, spectrum, 0, spectrum.length );\r\n\t\t\tif((time - lastTime) > 100) {\r\n\t\t\t\tplot.animate( spectrum, lastSpectrum, 1, bgcolor, color1, color2 , currentBands, count);\r\n\t\t\t\tlastTime = time;\r\n\t\t\t\tcount++;\r\n\t\t\t\tif(count%currentBands == 0){\r\n\t\t\t\t\tif(currentBands <= c || currentBands == bands) { \r\n\t\t\t\t\t\tcycle *= -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcurrentBands += cycle;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(currentBands);\r\n\t\t\t}\r\n\t\t\tdevice.writeSamples(samples);\r\n\r\n\t\t\ttime = System.currentTimeMillis();\r\n\t\t\tThread.sleep(15);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\t\r\n\t}", "public void refreshDataFilter();", "private List<SpectrumInterface> fetchSpectrum(List<String> spectrumIds)\r\n\t{\r\n\t\tif (spectrumIds == null)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tsetSpectrumIdsTarget(spectrumIds);\r\n\t\t/*\r\n\t\t * Reset spectrum data.\r\n\t\t */\r\n\t\tint nSpectra = spectrumIds.size();\r\n\t\tspectrumArray = new SpectrumImpl[nSpectra];\r\n\t\t\r\n\t\t/*\r\n\t\t * Reset spectrum id list data.\r\n\t\t */\r\n\t\tList<String> spectrumIdsFound = new ArrayList<String>();\r\n\t\tsetSpectrumIdsFound(spectrumIdsFound);\r\n\t\tInputStream iStream = getInputStream();\r\n\t\t\r\n\t\t/*\r\n\t\t * Create list of mass and intensity data and get dataLength as side\r\n\t\t * result.\r\n\t\t */\r\n\t\tint dataLength = 0;\r\n\t\tList<Double> peakMassData = new ArrayList<Double>();\r\n\t\tList<Double> peakIntensityData = new ArrayList<Double>();\r\n\t\t/*\r\n\t\t * Process spectra in PKL file\r\n\t\t */\r\n\t\tint numberOfSpectra = 0;\r\n\t\tfloat basePeakIntensity = 0, totalIntensity = 0;\r\n\t\t/*\r\n\t\t * Start of spectra reading\r\n\t\t */\r\n\t\ttry\r\n\t\t{\r\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\r\n\t\t\t\tiStream));\r\n\t\t\tspectrumTagsFound = 0;\r\n\t\t\tinTargetSpectrumBlock = false;\r\n\t\t\tString line;\r\n\t\t\tint lineNo = 0;\r\n\t\t\twhile ((line = in.readLine()) != null)\r\n\t\t\t{\r\n\t\t\t\tif (line.matches(\"^\\\\d+\\\\.\\\\d*[ \\\\t]\\\\d+\\\\.?\\\\d*[ \\\\t]\\\\d\"))\r\n\t\t\t\t{\r\n\t\t\t\t\t// Line with 3 columns (float, float, digit)\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * New spectrum\r\n\t\t\t\t\t */\r\n\t\t\t\t\t//log.debug(\"New spectrum: numberOfSpectra = \" + numberOfSpectra);\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Check if data for previous peak list has been collected.\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (numberOfSpectra > 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Save peak data for previous peak list.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tif (inTargetSpectrumBlock)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * Add retrieved spectrum data to all elements\r\n\t\t\t\t\t\t\t * in result list corresponding to current spectrum ids.\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tfor (int i = 0; i < getSpectrumIdsTarget().size(); i++) {\r\n\t\t\t\t\t\t\t\tif (getCurrentSpectrumId().equals(getSpectrumIdsTarget().get(i)))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t// Convert spectrum data arrays\r\n\t\t\t\t\t\t\t\t\tif (dataLength > 0)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tdouble peakMassArray[] = new double[dataLength];\r\n\t\t\t\t\t\t\t\t\t\tdouble peakIntensityArray[] = new double[dataLength];\r\n\t\t\t\t\t\t\t\t\t\tfor (int k = 0; k < dataLength; k++)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tpeakMassArray[k] = peakMassData.get(k).doubleValue();\r\n\t\t\t\t\t\t\t\t\t\t\tpeakIntensityArray[k] = peakIntensityData.get(k).doubleValue();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tgetSpectrum().setMass(peakMassArray);\r\n\t\t\t\t\t\t\t\t\t\tgetSpectrum().setIntensities(peakIntensityArray);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tspectrumArray[i] = getSpectrum();\r\n\t\t\t\t\t\t\t\t\tspectrumTagsFound++;\r\n\t\t\t\t\t\t\t\t\tlog.debug(\"SpectrumId (\" + i + \") = \\\"\" + getCurrentSpectrumId() + \"\\\" processed, spectrumTagsFound = \" + spectrumTagsFound);\r\n\t\t\t\t\t\t\t\t\tlog.debug(\"-----------------------------------------------\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tinTargetSpectrumBlock = false;\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Reset peak list data.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tdataLength = 0;\r\n\t\t\t\t\t\tpeakMassData = new ArrayList<Double>();\r\n\t\t\t\t\t\tpeakIntensityData = new ArrayList<Double>();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tnumberOfSpectra++;\r\n\t\t\t\t\t// Use spectra order number as spectrum id value\r\n\t\t\t\t\tString currentSpectrumIdStr = Integer.toString(numberOfSpectra);\r\n\t\t\t\t\tsetCurrentSpectrumId(currentSpectrumIdStr);\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Add spectrum id to list if not already in it.\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (!getSpectrumIdsFound().contains(currentSpectrumIdStr))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tgetSpectrumIdsFound().add(currentSpectrumIdStr);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Check if desired spectrum id found.\r\n\t\t\t\t\t */\r\n\t\t\t\t\tspectrumIndex = -1;\r\n\t\t\t\t\tfor (int i = 0; i < getSpectrumIdsTarget().size(); i++) {\r\n\t\t\t\t\t\tif (currentSpectrumIdStr.equals(getSpectrumIdsTarget().get(i)))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * Save information in order to get\r\n\t\t\t\t\t\t\t * spectrum mass and intensity values.\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tsetCurrentSpectrumId(currentSpectrumIdStr);\r\n\t\t\t\t\t\t\tinTargetSpectrumBlock = true;\r\n\t\t\t\t\t\t\tspectrumIndex = i;\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * Get new spectrum object to store retrieved data in.\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tSpectrumImpl currentSpectrum = SpectrumImpl.buildSpectrum(); // changed slewis to allow class to change\r\n\t\t\t\t\t\t\tsetSpectrum(currentSpectrum);\r\n\t\t\t\t\t\t\tlog.debug(\"SpectrumId (\" + spectrumIndex + \") = \\\"\" + getCurrentSpectrumId() + \"\\\" found.\");\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * Get spectrum header data from PKL file\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\ttotalIntensity = 0;\r\n\t\t\t\t\t\t\tbasePeakIntensity = 0;\r\n\t\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(line);\r\n\t\t\t\t\t\t\tFloat massToChargeRatio = Float.valueOf(st.nextToken());\r\n\t\t\t\t\t\t\tFloat intensity = Float.valueOf(st.nextToken());\r\n\t\t\t\t\t\t\tInteger chargeState = Integer.valueOf(st.nextToken());\r\n\t\t\t\t\t\t\t// Store spectrum header values from PKL file\r\n\t\t\t\t\t\t\t//log.debug(\"SpectrumId = \\\"\" + getCurrentSpectrumId() + \"\\\" massToChargeRatio = \" + massToChargeRatio + \" intensity = \" + intensity + \" chargeState = \" + chargeState);\r\n\t\t\t\t\t\t\tSpectrumPrecursor spectrumPrecursor = SpectrumPrecursor.buildSpectrumPrecursor(); // changed slewis to support overrides\r\n\t\t\t\t\t\t\tspectrumPrecursor.setMassToChargeRatio(massToChargeRatio.doubleValue());\r\n\t\t\t\t\t\t\tspectrumPrecursor.setIntensity(intensity.doubleValue());\r\n\t\t\t\t\t\t\tspectrumPrecursor.setCharge(chargeState);\r\n\t\t\t\t\t\t\tList<SpectrumPrecursor> precursors = new ArrayList<SpectrumPrecursor>();\r\n\t\t\t\t\t\t\tprecursors.add(spectrumPrecursor);\r\n\t\t\t\t\t\t\tgetSpectrum().setPrecursors(precursors);\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\telse if (inTargetSpectrumBlock && line.matches(\"^\\\\d+\\\\.\\\\d*[ \\\\t]\\\\d+\\\\.?\\\\d*\"))\r\n\t\t\t\t{\r\n\t\t\t\t\t// Line with 2 columns (float, float)\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Collect data for peak.\r\n\t\t\t\t\t */\r\n\t\t\t\t\tStringTokenizer st = new StringTokenizer(line);\r\n\t\t\t\t\tdouble peakMass = Double.valueOf(st.nextToken());\r\n\t\t\t\t\tdouble peakIntensity = Double.valueOf(st.nextToken());\r\n\t\t\t\t\t//log.debug(\"Spectra line (\" + lineNo + \") = \\\"\" + line + \"\\\", peakMass = \" + peakMass + \" peakIntensity = \" + peakIntensity);\r\n\t\t\t\t\tpeakMassData.add(dataLength, peakMass);\r\n\t\t\t\t\tpeakIntensityData.add(dataLength, peakIntensity);\r\n\t\t\t\t\tdataLength++;\r\n\t\t\t\t\t// Update statistical spectrum values\r\n\t\t\t\t\tif (peakIntensity > basePeakIntensity)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbasePeakIntensity = (float) peakIntensity;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttotalIntensity += peakIntensity;\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/*\r\n\t\t\t\t\t * Other line\r\n\t\t\t\t\t */\r\n\t\t\t\t\t//log.debug(\"Unidentified line (\" + lineNo + \") = \\\"\" + line + \"\\\"\");\r\n\t\t\t\t}\r\n\t\t\t\tlineNo++;\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * Check if data for peak list has been collected.\r\n\t\t\t */\r\n\t\t\tif (numberOfSpectra > 0)\r\n\t\t\t{\r\n\t\t\t\t/*\r\n\t\t\t\t * Save peak data for previous peak list.\r\n\t\t\t\t */\r\n\t\t\t\tif (inTargetSpectrumBlock)\r\n\t\t\t\t{\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Add retrieved spectrum data to all elements\r\n\t\t\t\t\t * in result list corresponding to current spectrum ids.\r\n\t\t\t\t\t */\r\n\t\t\t\t\tfor (int i = 0; i < getSpectrumIdsTarget().size(); i++) {\r\n\t\t\t\t\t\tif (getCurrentSpectrumId().equals(getSpectrumIdsTarget().get(i)))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Convert spectrum data arrays\r\n\t\t\t\t\t\t\tif (dataLength > 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tdouble peakMassArray[] = new double[dataLength];\r\n\t\t\t\t\t\t\t\tdouble peakIntensityArray[] = new double[dataLength];\r\n\t\t\t\t\t\t\t\tfor (int k = 0; k < dataLength; k++)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tpeakMassArray[k] = peakMassData.get(k).doubleValue();\r\n\t\t\t\t\t\t\t\t\tpeakIntensityArray[k] = peakIntensityData.get(k).doubleValue();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tgetSpectrum().setMass(peakMassArray);\r\n\t\t\t\t\t\t\t\tgetSpectrum().setIntensities(peakIntensityArray);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tspectrumArray[i] = getSpectrum();\r\n\t\t\t\t\t\t\tspectrumTagsFound++;\r\n\t\t\t\t\t\t\tlog.debug(\"SpectrumId (\" + i + \") = \\\"\" + getCurrentSpectrumId() + \"\\\" processed, spectrumTagsFound = \" + spectrumTagsFound);\r\n\t\t\t\t\t\t\tlog.debug(\"-----------------------------------------------\");\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\tinTargetSpectrumBlock = false;\r\n\t\t\t\t/*\r\n\t\t\t\t * Reset peak list data.\r\n\t\t\t\t */\r\n\t\t\t\tdataLength = 0;\r\n\t\t\t\tpeakMassData = new ArrayList<Double>();\r\n\t\t\t\tpeakIntensityData = new ArrayList<Double>();\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * Return result of search for PKL spectra.\r\n\t\t\t */\r\n\t\t\tList<SpectrumInterface> spectrumList = new ArrayList<SpectrumInterface>(nSpectra);\r\n\t\t\tfor (int i = 0; i < nSpectra; i++)\r\n\t\t\t{\r\n\t\t\t\tspectrumList.add(i, spectrumArray[i]);\r\n\t\t\t}\r\n\t\t\treturn spectrumList;\r\n\t\t}\r\n\t\tcatch (IOException exept)\r\n\t\t{\r\n\t\t\tString message = exept.getMessage();\r\n\t\t\tlog.warn(message);\r\n\t\t\tthrow new BaseException(message);\r\n\t\t}\r\n\t}", "public static float [] FourierTransform(final float [] x)\n {\n final int n = x.length;\n final int nu = (int) (Math.log(n) / Math.log(2));\n int n2 = n / 2;\n int nu1 = nu - 1;\n final float [] xre = new float [n];\n final float [] xim = new float [n];\n final float [] mag = new float [n2];\n float tr, ti, p, arg, c, s;\n for (int index = 0; index < n; index++)\n {\n xre[index] = x[index];\n xim[index] = 0.0f;\n }\n int k = 0;\n for (int l = 1; l <= nu; l++)\n {\n while (k < n)\n {\n for (int i = 1; i <= n2; i++)\n {\n p = bitrev(k >> nu1, nu);\n arg = (2 * (float) Math.PI * p) / n;\n c = (float) Math.cos(arg);\n s = (float) Math.sin(arg);\n tr = (xre[k + n2] * c) + (xim[k + n2] * s);\n ti = (xim[k + n2] * c) - (xre[k + n2] * s);\n xre[k + n2] = xre[k] - tr;\n xim[k + n2] = xim[k] - ti;\n xre[k] += tr;\n xim[k] += ti;\n k++;\n }\n k += n2;\n }\n k = 0;\n nu1--;\n n2 = n2 / 2;\n }\n k = 0;\n int r;\n while (k < n)\n {\n r = bitrev(k, nu);\n if (r > k)\n {\n tr = xre[k];\n ti = xim[k];\n xre[k] = xre[r];\n xim[k] = xim[r];\n xre[r] = tr;\n xim[r] = ti;\n }\n k++;\n }\n\n mag[0] = (float) (Math.sqrt((xre[0] * xre[0]) + (xim[0] * xim[0]))) / n;\n for (int i = 1; i < (n / 2); i++)\n {\n mag[i] = (2 * (float) (Math.sqrt((xre[i] * xre[i]) + (xim[i] * xim[i])))) / n;\n }\n return mag;\n }" ]
[ "0.6548058", "0.60506904", "0.5961685", "0.5813736", "0.5754168", "0.57189995", "0.56657857", "0.56589293", "0.56574094", "0.56008846", "0.5555882", "0.5427089", "0.5299717", "0.529453", "0.525571", "0.5214049", "0.52087986", "0.5188319", "0.51865304", "0.51577854", "0.5157211", "0.51566863", "0.51507556", "0.51371616", "0.51104563", "0.51061785", "0.51028055", "0.5092596", "0.50421923", "0.503775", "0.50293493", "0.5021187", "0.50106037", "0.5009134", "0.4995022", "0.4968265", "0.49586594", "0.49569294", "0.4940313", "0.49399784", "0.49312", "0.49139628", "0.49058554", "0.48998272", "0.4893455", "0.48752287", "0.48748702", "0.48743346", "0.4871854", "0.48699775", "0.48638022", "0.48501307", "0.48430198", "0.48382342", "0.4818832", "0.48126885", "0.4811392", "0.4811257", "0.4800615", "0.4794187", "0.4791093", "0.47896692", "0.47884864", "0.47876328", "0.4787595", "0.4784957", "0.47844878", "0.47809845", "0.47782332", "0.477356", "0.47717267", "0.47686845", "0.4759866", "0.47590968", "0.4754053", "0.47429895", "0.47346026", "0.4733565", "0.47272858", "0.4727101", "0.47259253", "0.47220948", "0.472152", "0.4718795", "0.47141412", "0.47117397", "0.47102726", "0.46991774", "0.46928144", "0.4689547", "0.4688901", "0.4682687", "0.46804595", "0.4675889", "0.46724144", "0.46626619", "0.4659151", "0.4658432", "0.4654764", "0.46460184" ]
0.6179826
1
Number of spectra calculated
public int getNumberOfSpectra() { return nSpectrum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumberOfSpectraPerFraction() {\n return numberOfSpectraPerFraction;\n }", "public int getNumberSpectra() {\n return numberSpectra;\n }", "long getNumberOfSpectra(String experimentAccession);", "public int getNumberOfSpectra() {\n return iPeptideIdentifications.size();\n }", "public int getNumSpectrumPeaks() {\r\n return numSpectrumPeaks;\r\n }", "public int getSpectrumCount(boolean onlyIdentified) throws InvalidFormatException;", "public int getNumberValidatedSpectra() {\n return numberValidatedSpectra;\n }", "public int nSamples() {\n return samples.nSamples();\n }", "public void setNumberSpectra(int numberSpectra) {\n this.numberSpectra = numberSpectra;\n }", "public static int size_sampleCnt() {\n return (32 / 8);\n }", "int getNumberFrames();", "public void setNumberOfSpectraPerFraction(int numberOfSpectraPerFraction) {\n this.numberOfSpectraPerFraction = numberOfSpectraPerFraction;\n }", "int getBurstNImages();", "int getFramesCount();", "public int calculateSize( int numSamples )\n {\n return numSamples * 2;\n }", "int getSubframesCount();", "int getScaleCount();", "int getNumSampleDimensions();", "int getMetricsCount();", "public int getNumberOfValidatedSpectra() {\n int lCount = 0;\n for (Object lPeptideIdentification : iPeptideIdentifications) {\n // Raise the count if the identification is validated.\n if (((PeptideIdentification) lPeptideIdentification).isValidated()) {\n lCount++;\n }\n }\n return lCount;\n }", "public static int size_infos_valid_noise_samples() {\n return (8 / 8);\n }", "int getInstrumentCount();", "public int getNumberOfSims() {\n\t\treturn numberOfSims;\n\t}", "int sizeOfSpeedsArray();", "public int size() {\r\n return macroSpeed.length;\r\n }", "private int numberOfCritters(int wave){\n\t\treturn 9 + (wave%3)*6;\n\t}", "public int getNumberOfRadialBuffers() {\n\t\treturn ((Integer) radialBufferSpinner.getValue()).intValue();\n\t}", "int getDataScansCount();", "public int getNumTimes();", "int getMonstersCount();", "int getMonstersCount();", "int getSampleSize();", "@Override\n\tpublic int getNumberOfTracks() {\n\t\treturn 6;\n\t}", "private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }", "private int getNumberOfSpectrumfiles(final Connection aConn) {\n int lResult = 10;\n try {\n PreparedStatement ps = aConn.prepareStatement(\"show variables where Variable_name='open_files_limit'\");\n ResultSet rs = ps.executeQuery();\n rs.next();\n Long lOpenFileLimit = Long.parseLong(rs.getString(\"Value\"));\n if (lOpenFileLimit > 1000) {\n lResult = 1000;\n } else {\n lResult = (int) (lOpenFileLimit / 2);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return lResult;\n }", "public int getAvgSpec() {\n return totalSpec/totalMatches;\n }", "public int getNumberOfSimulations(){\n return this.nMonteCarlo;\n }", "private int quantizeKurtosis(double spectralKurtosis) {\n\t\treturn (int) (spectralKurtosis / 100) + 1;\n\t}", "int sizeOfTrafficVolumeArray();", "@Override\n public int count() {\n return this.bench.size();\n }", "float getFrequency();", "public int getNumFrames() {\n if ( dofs == null ) return 0;\n return dofs.length;\n }", "int getCameraCount();", "private int quantizeSpread(double spectralSpread) {\n\t\treturn (int) (spectralSpread / 1000) + 1;\n\t}", "public double getTotalSignalEstBackCount(){\n\t\tdouble total=0;\n\t\tfor(ControlledExperiment r : replicates){\n\t\t\ttotal+=r.getNoiseCount();\n\t\t}\n\t\treturn total;\n\t}", "public void count (double x)\r\n\t{\r\n\t\tsuper.count(x);\r\n\t\tdouble tmp = SimState.s.now - lastSampleTime;\r\n\t\t// If this statement is true there must be an error in the simulation\r\n\t\t// => abort\r\n\t\tif( tmp < 0 )\r\n\t\t{\r\n\t\t\tSystem.out.println(\"last = \" + lastSampleTime + \" now = \" + SimState.s.now);\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t\tsumPowerOne+= (lastSampleSize*tmp);\r\n\t\tsumPowerTwo+= (lastSampleSize*lastSampleSize*tmp);\r\n\t\tlastSampleTime = SimState.s.now;\r\n\t\tlastSampleSize = x;\r\n\t}", "public native int getNumFrames() throws MagickException;", "public static int calcNumBursts(final int numTimeseries) {\n int numVectors = 0;\n for (int i = 1; i <= numTimeseries; ++i) {\n numVectors += (i + (CORRELATION_NUM_PIPES - 1)) / CORRELATION_NUM_PIPES;\n }\n\n return (numVectors + (CORRELATION_NUM_VECTORS_PER_BURST - 1))\n / CORRELATION_NUM_VECTORS_PER_BURST;\n }", "public int cameraCount() \n {\n int device_counts = 0; \n while (true) \n {\n if (capture.open(device_counts)) {\n device_counts++;\n } else {\n break;\n }\n }\n return device_counts;\n }", "public int getRecordCount(){\n return numShapes;\n }", "public int SampleNum() {\n\t\treturn sample_map.size();\n\t}", "public final int[] getSampleSize() {\n int sampleSize[] = new int[numBands];\n int sizeInBits = getSampleSize(0);\n\n for (int i = 0; i < numBands; i++)\n sampleSize[i] = sizeInBits;\n\n return sampleSize;\n }", "public int getNumberOfCameras() {\r\n int num = 1;\r\n try {\r\n if (mMethodGetNumberOfCamerasLevel9 != null) {\r\n Integer integer = (Integer) mMethodGetNumberOfCamerasLevel9.invoke(null);\r\n num = integer.intValue();\r\n }\r\n } catch (Exception e) {\r\n Log.w(LOG_TAG, \"CameraHideMethods:mMethodGetNumberOfCamerasLevel9()\", e);\r\n }\r\n\r\n return num;\r\n }", "@Test\n public void testDFTOneFreq() {\n for (int freq = 0; freq < 1000; freq += 200) {\n SoundWave wave = new SoundWave(freq, 5, 0.5, 0.1);\n double maxFreq = wave.highAmplitudeFreqComponent();\n assertEquals(freq, maxFreq, 0.00001);\n }\n }", "public abstract double samplingFrequency();", "int getNumHar();", "public int mo1067a() {\n return this.f3256d.size();\n }", "public double getTotalSignalCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: signalSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}", "public int size()\r\n\t{\r\n\t\treturn midiIndividualTracks.size();\r\n\t}", "public int getWaveOrdersTaken() {\n return waveOrdersTaken;\n }", "private void determineCounts( )\n {\n for( int r = 0; r < rows; r++ )\n {\n for( int c = 0; c < cols; c++ )\n {\n if( theMines[ r ][ c ] == 1 )\n theCounts[ r ] [ c ] = 9;\n else\n count( r, c );\n }\n }\n }", "int getNumberOfCurveSegments();", "int getSampleMs();", "@Override\r\n\t@Basic\r\n\tpublic int getNbSquares() {\r\n\t\treturn squares.size();\r\n\t}", "public int numberOfEllipsoids() { \r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n return list.size(); \r\n }", "public int samplesOnePixel() {\r\n\t\tif (getGraphWidth() > 0) {\r\n\t\t\t// avoid division by zero\r\n\t\t\treturn section.getLength() / getGraphWidth();\r\n\t\t}\r\n\t\treturn 1;\r\n\t}", "public static int offset_sampleCnt() {\n return (24 / 8);\n }", "int getFreq();", "int getAcksCount();", "int getAcksCount();", "@Override\n\tpublic int countIndex() {\n\t\treturn logoMapper.selectCountLogo()+headbannerMapper.selecCountHB()+succefulMapper.selecCountSucc()+solutionMapper.selecCountSolu();\n\t}", "public int mo75900a() {\n return this.f51596a.size();\n }", "public void setSamples(int samples){ \n this.samples = samples; \n }", "int getFigureListCount();", "@Test\n public void testDFTMultipleFreq() {\n int freq1;\n int freq2;\n int freq3;\n for (int i = 1; i < 10; i += 2) {\n freq1 = i * 100;\n freq2 = i * 200;\n freq3 = i * 300;\n SoundWave wave1 = new SoundWave(freq1, 0, 0.3, 0.1);\n SoundWave wave2 = new SoundWave(freq2, 2, 0.3, 0.1);\n SoundWave wave3 = new SoundWave(freq3, 3, 0.3, 0.1);\n SoundWave wave = wave1.add(wave2.add(wave3));\n\n double maxFreq = wave.highAmplitudeFreqComponent();\n assertEquals(freq3, maxFreq, 0.00001);\n }\n }", "int getExamplesCount();", "int getExamplesCount();", "public void setNumberOfSimulations(int nSimul){\n this.nMonteCarlo = nSimul;\n }", "public int getTotalFrames() {\n int frame = 0;\n for (MOFPartPolyAnimEntry entry : getEntryList().getEntries())\n frame += entry.getDuration();\n return frame;\n }", "public float findFrequency(ArrayList<Float> wave){\n\r\n ArrayList<Float> newWave = new ArrayList<>();\r\n\r\n for(int i=0;i<wave.size()-4;i++){\r\n newWave.add((wave.get(i)+wave.get(i+1)+wave.get(i+2)+wave.get(i+4))/4f);\r\n }\r\n\r\n\r\n boolean isBelow = wave1.get(0)<triggerVoltage;\r\n\r\n ArrayList<Integer> triggerSamples = new ArrayList<>();\r\n\r\n\r\n System.out.println(\"starting f calc\");\r\n\r\n for(int i=1;i<newWave.size();i++){\r\n if(isBelow){\r\n if(newWave.get(i)>triggerVoltage){\r\n triggerSamples.add(i);\r\n isBelow=false;\r\n }\r\n }else{\r\n if(newWave.get(i)<triggerVoltage){\r\n triggerSamples.add(i);\r\n isBelow=true;\r\n }\r\n }\r\n }\r\n System.out.println(\"F len in \"+triggerSamples.size());\r\n\r\n ArrayList<Float> freqValues = new ArrayList<>();\r\n\r\n\r\n for(int i=0;i<triggerSamples.size()-2;i++){\r\n freqValues.add(1/(Math.abs(SecondsPerSample*(triggerSamples.get(i)-triggerSamples.get(i+2)))));\r\n }\r\n\r\n float finalAVG =0;\r\n for (Float f : freqValues) {\r\n finalAVG+=f;\r\n }\r\n finalAVG/=freqValues.size();\r\n\r\n\r\n return finalAVG;\r\n //System.out.println(finalAVG);\r\n }", "int getNumParameters();", "int getNumChannels();", "int imageCount();", "public Integer countMedicines();", "public static int sizeBits_sampleCnt() {\n return 32;\n }", "int getWpaCount();", "public void calculateStastics() {\t\t\n\t\t\n\t\t/* remove verboten spectra */\n\t\tArrayList<String> verbotenSpectra = new ArrayList<String>();\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.7436.7436.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.5161.5161.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.4294.4294.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.4199.4199.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.5085.5085.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.4129.4129.2.dta\");\n\t\tfor (int i = 0; i < positiveMatches.size(); i++) {\n\t\t\tMatch match = positiveMatches.get(i);\n\t\t\tfor (String name: verbotenSpectra) {\n\t\t\t\tif (name.equals(match.getSpectrum().getFile().getName())) {\n\t\t\t\t\tpositiveMatches.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < spectra.size(); i++) {\n\t\t\tSpectrum spectrum = spectra.get(i);\n\t\t\tfor (String name: verbotenSpectra) {\n\t\t\t\tif (name.equals(spectrum.getFile().getName())) {\n\t\t\t\t\tspectra.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* finding how much time per spectrum */\n\t\tmilisecondsPerSpectrum = (double) timeElapsed / spectra.size();\n\n\n\t\tMatch.setSortParameter(Match.SORT_BY_SCORE);\n\t\tCollections.sort(positiveMatches);\n\t\t\n\t\t\n\t\t/* Identify if each match is true or false */\n\t\ttestedMatches = new ArrayList<MatchContainer>(positiveMatches.size());\n\t\tfor (Match match: positiveMatches) {\n\t\t\tMatchContainer testedMatch = new MatchContainer(match);\n\t\t\ttestedMatches.add(testedMatch);\n\t\t}\n\t\t\n\t\t/* sort the tested matches */\n\t\tCollections.sort(testedMatches);\n\t\t\n\t\t\n\n\t\t/*account for the fact that these results might have the wrong spectrum ID due to\n\t\t * Mascot having sorted the spectra by mass\n\t\t */\n\t\tif (Properties.scoringMethodName.equals(\"Mascot\")){\n\t\t\t\n\t\t\t/* hash of true peptides */\n\t\t\tHashtable<String, Peptide> truePeptides = new Hashtable<String, Peptide>();\n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tString truePeptide = mc.getCorrectAcidSequence();\n\t\t\t\ttruePeptides.put(truePeptide, mc.getTrueMatch().getPeptide());\n\t\t\t}\n\t\t\t\n\t\t\t/* making a hash of the best matches */\n\t\t\tHashtable<Integer, MatchContainer> bestMascotMatches = new Hashtable<Integer, MatchContainer>(); \n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tMatchContainer best = bestMascotMatches.get(mc.getMatch().getSpectrum().getId());\n\t\t\t\tif (best == null) {\n\t\t\t\t\tbestMascotMatches.put(mc.getMatch().getSpectrum().getId(), mc);\n\t\t\t\t} else {\n\t\t\t\t\tif (truePeptides.get(mc.getMatch().getPeptide().getAcidSequenceString()) != null) {\n\t\t\t\t\t\tbestMascotMatches.put(mc.getMatch().getSpectrum().getId(), mc);\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* need to set the peptide, because though it may have found a correct peptide, it might not be the right peptide for this particular spectrum */\n\t\t\t\t\t\tmc.getMatch().setPeptide(mc.getTrueMatch().getPeptide());\n\t\t\t\t\t\tmc.validate();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttestedMatches = new ArrayList<MatchContainer>(bestMascotMatches.values());\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t/* reduce the tested matches to one per spectrum, keeping the one that is correct if there is a correct one \n\t\t * else keep the match with the best score */\n\t\tArrayList<MatchContainer> reducedTestedMatches = new ArrayList<MatchContainer>(testedMatches.size());\n\t\tfor (Spectrum spectrum: spectra) {\n\t\t\tMatchContainer toAdd = null;\n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tif (mc.getMatch().getSpectrum().getId() == spectrum.getId()) {\n\t\t\t\t\tif (toAdd == null) {\n\t\t\t\t\t\ttoAdd = mc; \n\t\t\t\t\t}\n\t\t\t\t\tif (toAdd.getMatch().getScore() < mc.getMatch().getScore()) {\n\t\t\t\t\t\ttoAdd = mc;\n\t\t\t\t\t}\n\t\t\t\t\tif (toAdd.getMatch().getScore() == mc.getMatch().getScore() && mc.isTrue()) {\n\t\t\t\t\t\ttoAdd = mc;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (toAdd != null) {\n\t\t\t\treducedTestedMatches.add(toAdd);\n\t\t\t}\n\t\t}\n\t\ttestedMatches = reducedTestedMatches;\n\t\t\n\t\t/* ensure the testedMatches are considering the correct peptide */\n\t\tif (Properties.scoringMethodName.equals(\"Peppy.Match_IMP\")){\n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tif (mc.getMatch().getScore() < mc.getTrueMatch().getScore()) {\n\t\t\t\t\tmc.getMatch().setPeptide(mc.getTrueMatch().getPeptide());\n\t\t\t\t\tmc.getMatch().calculateScore();\n\t\t\t\t\tmc.validate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/* again sort the tested matches */\n\t\tCollections.sort(testedMatches);\n\t\n\t\t\n\t\t//count total true;\n\t\tfor (MatchContainer match: testedMatches) {\n\t\t\tif (match.isTrue()) {\n\t\t\t\ttrueTally++;\n\t\t\t} else {\n\t\t\t\tfalseTally++;\n\t\t\t}\n\t\t\tif ((double) falseTally / (trueTally + falseTally) <= 0.01) {\n\t\t\t\ttrueTallyAtOnePercentError = trueTally;\n\t\t\t\tpercentAtOnePercentError = (double) trueTallyAtOnePercentError / spectra.size();\n\t\t\t}\n\t\t\tif ((double) falseTally / (trueTally + falseTally) <= 0.05) {\n\t\t\t\ttrueTallyAtFivePercentError = trueTally;\n\t\t\t\tpercentAtFivePercentError = (double) trueTallyAtFivePercentError / spectra.size();\n\t\t\t}\n\t\t}\n\t\t\n\t\tgeneratePrecisionRecallCurve();\n\t}", "private void countSizes() {\r\n Double pageWidth = Double.valueOf(pageWidthParameter.getType().getValue().replace(\",\", \".\"));\r\n double pageHeight = Double.valueOf(pageHeightParameter.getType().getValue().replace(\",\", \".\"));\r\n Double max = Math.max(pageWidth, pageHeight);\r\n max /= PAPER_SIZE;\r\n widthSize = (int) (pageWidth / max);\r\n heightSize = (int) (pageHeight / max);\r\n }", "private static int calcularMedia(int[] notas) {\n\t\tint media = 0;\n\n\t\tfor (int i = 0; i < notas.length; i++) {\n\n\t\t\tmedia = media + notas[i];\n\n\t\t}\n\t\treturn media/notas.length;\n\t}", "static int getNumPatterns() { return 64; }", "public void updateSamples();", "public final int getSampleSize(int band) {\n return DataBuffer.getDataTypeSize(dataType);\n }", "int getOutputsCount();", "int getOutputsCount();", "int getOutputsCount();", "int getOutputsCount();", "int getOutputsCount();", "protected int numGenes() {\n\t\treturn genes.size();\n\t}", "public void displaySpectrum() {\n if (this.spectrum == null) { // there is no data to display\n UI.println(\"No spectrum to display\");\n return;\n }\n UI.clearText();\n UI.println(\"Printing, please wait...\");\n\n UI.clearGraphics();\n\n // calculate the mode of each element\n ArrayList<Double> spectrumMod = new ArrayList<Double>();\n double max = 0;\n for (int i = 0; i < spectrum.size(); i++) {\n if (i == MAX_SAMPLES)\n break;\n\n double value = spectrum.get(i).mod();\n max = Math.max(max, value);\n spectrumMod.add(spectrum.get(i).mod());\n }\n\n double scaling = 300 / max;\n for (int i = 0; i < spectrumMod.size(); i++) {\n spectrumMod.set(i, spectrumMod.get(i) * scaling);\n }\n\n // draw x axis (showing where the value 0 will be)\n UI.setColor(Color.black);\n UI.drawLine(GRAPH_LEFT, ZERO_LINE, GRAPH_LEFT + GRAPH_WIDTH, ZERO_LINE);\n\n // plot points: blue line between each pair of values\n UI.setColor(Color.blue);\n\n double x = GRAPH_LEFT;\n for (int i = 1; i < spectrumMod.size(); i++) {\n double y1 = ZERO_LINE;\n double y2 = ZERO_LINE - spectrumMod.get(i);\n if (i > MAX_SAMPLES) {\n UI.setColor(Color.red);\n }\n UI.drawLine(x, y1, x + X_STEP, y2);\n x = x + X_STEP;\n }\n\n UI.println(\"Printing completed!\");\n }", "public int getNumPageFrames() {\n return ram.length;\n }" ]
[ "0.75671756", "0.75203353", "0.7318194", "0.71367264", "0.6646643", "0.6521267", "0.6454669", "0.63097316", "0.62940186", "0.62385005", "0.6142307", "0.6133588", "0.6076295", "0.59979343", "0.59925365", "0.59757394", "0.588825", "0.5868929", "0.58490145", "0.582001", "0.57596415", "0.57474923", "0.5744637", "0.5743192", "0.57375264", "0.57324904", "0.57322776", "0.57299066", "0.5723243", "0.5675458", "0.5675458", "0.5669612", "0.566635", "0.56365407", "0.5620506", "0.5618959", "0.5615546", "0.5610039", "0.55832726", "0.55791855", "0.55750716", "0.55438614", "0.554192", "0.5531225", "0.55216646", "0.55084044", "0.54937565", "0.5492584", "0.54820055", "0.54797316", "0.5474949", "0.5464046", "0.5460792", "0.5442344", "0.54356164", "0.5417103", "0.54058903", "0.5378902", "0.5374609", "0.53662634", "0.53652924", "0.53631455", "0.5361019", "0.5355527", "0.53525203", "0.53453386", "0.5345233", "0.5342519", "0.5336543", "0.5336543", "0.5323593", "0.53211236", "0.5316717", "0.53081095", "0.53057677", "0.53046685", "0.53046685", "0.53006035", "0.5288085", "0.5281982", "0.5278937", "0.5278376", "0.5276152", "0.5273657", "0.52597165", "0.5258416", "0.5252635", "0.52477735", "0.5246561", "0.5238378", "0.52295816", "0.5229051", "0.52180374", "0.52180374", "0.52180374", "0.52180374", "0.52180374", "0.5215024", "0.52136475", "0.52105206" ]
0.8397019
0
Set floor for log functio
public void setFloor(double input) { floor=input; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static float log(float base, float arg) {\n return (nlog(arg)) / nlog(base);\n }", "public static double logarit(double value, double base) {\n\t\tif (base == Math.E)\n\t\t\treturn Math.log(value);\n\t\telse if (base == 10)\n\t\t\treturn Math.log10(value);\n\t\telse\n\t\t\treturn Double.NaN;\n\t\t\t\n\t}", "public double logZero(double x);", "public void setFloor(int floor) {\n this.floor = floor;\n }", "private static int getlog(int operand, int base) {\n double answ = Math.log(operand)/Math.log(base);\n if (answ == Math.ceil(answ)) {\n return (int)answ;\n }\n else {\n return (int)answ+1;\n }\n }", "static private float _log(float x) {\n \t\tif (!(x > 0f)) {\n \t\t\treturn Float.NaN;\n \t\t}\n \t\t//\n \t\tfloat f = 0f;\n \t\t//\n \t\tint appendix = 0;\n \t\twhile ((x > 0f) && (x <= 1f)) {\n \t\t\tx *= 2f;\n \t\t\tappendix++;\n \t\t}\n \t\t//\n \t\tx /= 2f;\n \t\tappendix--;\n \t\t//\n \t\tfloat y1 = x - 1f;\n \t\tfloat y2 = x + 1f;\n \t\tfloat y = y1 / y2;\n \t\t//\n \t\tfloat k = y;\n \t\ty2 = k * y;\n \t\t//\n \t\tfor (long i = 1; i < 10; i += 2) {\n \t\t\tf += k / i;\n \t\t\tk *= y2;\n \t\t}\n \t\t//\n \t\tf *= 2f;\n \t\tfor (int i = 0; i < appendix; i++) {\n \t\t\tf += FLOAT_LOGFDIV2;\n \t\t}\n \t\t//\n //\t\tlogger.info(\"exit _log\" + f);\n \t\treturn f;\n \t}", "static private float exact_log(float x) {\n \t\tif (!(x > 0f)) {\n \t\t\treturn Float.NaN;\n \t\t}\n \t\t//\n \t\tfloat f = 0f;\n \t\t//\n \t\tint appendix = 0;\n \t\twhile ((x > 0f) && (x <= 1f)) {\n \t\t\tx *= 2f;\n \t\t\tappendix++;\n \t\t}\n \t\t//\n \t\tx /= 2f;\n \t\tappendix--;\n \t\t//\n \t\tfloat y1 = x - 1f;\n \t\tfloat y2 = x + 1f;\n \t\tfloat y = y1 / y2;\n \t\t//\n \t\tfloat k = y;\n \t\ty2 = k * y;\n \t\t//\n \t\tfor (long i = 1; i < 50; i += 2) {\n \t\t\tf += k / i;\n \t\t\tk *= y2;\n \t\t}\n \t\t//\n \t\tf *= 2f;\n \t\tfor (int i = 0; i < appendix; i++) {\n \t\t\tf += FLOAT_LOGFDIV2;\n \t\t}\n \t\t//\n //\t\tlogger.info(\"exit _log\" + f);\n \t\treturn f;\n \t}", "private static final int calcLog (int value)\n {\n // Shortcut for uncached_data_length\n if (value <= 1023 )\n {\n return MIN_CACHE;\n }\n else\n {\n return (int)(Math.floor (Math.log (value) / LOG2));\n }\n }", "@JSProperty(\"floor\")\n void setFloor(double value);", "public static double logBase2(double x){\n return Math.log(x)/Math.log(2);\n }", "public void cal_FireLoadRating(){\r\n\tFLOAD=1.75*Math.log10(TIMBER)+0.32*Math.log10(BUO)-1.640;\r\n\t//ensure that FLOAD is greater than 0, otherwise set it to 0;\r\n\tif (FLOAD<0){FLOAD=0;\r\n\t\t}else{FLOAD=Math.pow(10, FLOAD);\r\n\t}\r\n}", "public static double floor(double a) {\t\n\t\treturn ((a<0)?(int)(a-1):(int)a);\t\n\t}", "public void setFloor(String floor) {\n\t\tthis.floor = floor;\n\t}", "private void naturalLog()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.naturalLog ( );\n\t\t\tupdateText();\n\t\t}\n\t}", "private static double lg(double x) {\n return Math.log(x) / Math.log(2.0);\n }", "public static final float log(float x) {\n \t\tif (!(x > 0f)) {\n \t\t\treturn Float.NaN;\n \t\t}\n \t\t//\n \t\tif (x == 1f) {\n \t\t\treturn 0f;\n \t\t}\n \t\t// Argument of _log must be (0; 1]\n \t\tif (x > 1f) {\n \t\t\tx = 1 / x;\n \t\t\treturn -_log(x);\n \t\t}\n \t\t;\n \t\t//\n \t\treturn _log(x);\n \t}", "public final void log() throws ArithmeticException {\n\t\tif ((mksa&_LOG) != 0) throw new ArithmeticException\n\t\t(\"****Unit: log(\" + symbol + \")\") ;\n\t\tvalue = AstroMath.log(value);\n\t\tmksa |= _log;\n\t\tif (symbol != null) \n\t\t\tsymbol = \"[\" + symbol + \"]\";\t// Enough to indicate log\n\t}", "private static int fastfloor(double x){\n\t\tint xi=(int)x;\n\t\treturn x<xi?xi-1:xi;\n\t}", "public static double log(double x)\n\t{\n\t if (x < 1.0)\n\t return -log(1.0/x);\n\t \n\t double m=0.0;\n\t double p=1.0;\n\t while (p <= x) {\n\t m++;\n\t p=p*2;\n\t }\n\t \n\t m = m - 1;\n\t double z = x/(p/2);\n\t \n\t double zeta = (1.0 - z)/(1.0 + z);\n\t double n=zeta;\n\t double ln=zeta;\n\t double zetasup = zeta * zeta;\n\t \n\t for (int j=1; true; j++)\n\t {\n\t n = n * zetasup;\n\t double newln = ln + n / (2 * j + 1);\n\t double term = ln/newln;\n\t if (term >= LOWER_BOUND && term <= UPPER_BOUND)\n\t return m * ln2 - 2 * ln;\n\t ln = newln;\n\t }\n\t}", "private double log2(double number){\n return (Math.log(number) / Math.log(2));\n }", "public int getFloor();", "public void setActualFloor(int _actualFloor) {\n\t\tactualFloor = _actualFloor;\n\t}", "public int getCurrentFloor();", "public float nextLog ()\n {\n // Generate a non-zero uniformly-distributed random value.\n float u;\n while ((u = GENERATOR.nextFloat ()) == 0)\n {\n // try again if 0\n }\n\n return (float) (-m_fMean * Math.log (u));\n }", "private static int fastfloor(final double x) {\n int floorX = (int) x;\n if (x < floorX) {\n return floorX - 1;\n } else {\n return floorX;\n }\n }", "public void setCurrentFloor(int i);", "public static String logaritName(double base) {\n\t\tif (base == Math.E)\n\t\t\treturn \"log\";\n\t\telse if (base == 10)\n\t\t\treturn \"log10\";\n\t\telse\n\t\t\treturn \"log\" + MathUtil.format(base);\n\t}", "private static double log2(double x) {\n return Math.log(x) / Math.log(2);\n }", "public void setFloorLimit(java.lang.String floorLimit) {\r\n this.floorLimit = floorLimit;\r\n }", "public static double lg(double x) {\n return Math.log(x) / Math.log(2);\n }", "public int getMinFloor();", "public static double log(double a){ \n // migrated from jWMMG - the origin of the algorithm is not known.\n if (Double.isNaN(a) || a < 0) {\n return Double.NaN;\n } else if (a == Double.POSITIVE_INFINITY) {\n return Double.POSITIVE_INFINITY;\n } else if (a == 0) {\n return Double.NEGATIVE_INFINITY;\n }\n \n long lx;\n if (a > 1) {\n lx = (long)(0.75*a); // 3/4*x\n } else {\n lx = (long)(0.6666666666666666666666666666666/a); // 2/3/x\n }\n \n int ix;\n int power;\n if (lx > Integer.MAX_VALUE) {\n ix = (int) (lx >> 31);\n power = 31;\n } else {\n ix = (int) lx;\n power = 0;\n }\n \n while (ix != 0) {\n ix >>= 1;\n power++;\n }\n \n double ret;\n if (a > 1) {\n ret = lnInternal(a / ((long) 1<<power)) + power * LN_2;\n } else {\n ret = lnInternal(a * ((long) 1<<power)) - power * LN_2;\n }\n return ret;\n }", "public double log(double d){\r\n\r\n\t\tif(d == 0){\r\n\t\t\treturn 0.0;\r\n\t\t} else {\r\n\t\t\treturn Math.log(d)/Math.log(2);\r\n\t\t}\r\n\r\n\t}", "public void setLogScaleX(boolean scale);", "public int getFloor() {\n return floor;\n }", "public static double CalcLevel_Log(double SlopeStart, double SlopeStop,double FreqPoint)\r\n {\n double levelLog = 0.0;\r\n double tempY = 0.0;\r\n\r\n tempY = SlopeStart * (Math.log10(FreqPoint)) + SlopeStop;\r\n levelLog = (Math.pow(10, tempY));\r\n\r\n return levelLog;\r\n }", "public void set_log_level(int level) {\r\n logLevel = Math.max(0,level);\r\n }", "@Test\n public void whenInvokeThenReturnsLogarithmValues() {\n Funcs funcs = new Funcs();\n\n List<Double> expected = Arrays.asList(0D, 0.301D, 0.477D);\n List<Double> result = funcs.range(1, 3,\n (pStart) -> {\n double resultValue = Math.log10(pStart);\n resultValue = Math.rint(resultValue * 1000) / 1000;\n return resultValue;\n });\n\n assertThat(result, is(expected));\n }", "public double logResult(double f) {\n double r;\n try {\n r = 20 * Math.log10(result(f));\n } catch (Exception e) {\n r = -100;\n }\n if (Double.isInfinite(r) || Double.isNaN(r)) {\n r = -100;\n }\n return r;\n }", "@Override\r\n\tpublic double t(double x) {\r\n\t\treturn Math.log( (x - this.getLower_bound() ) / (this.getUpper_bound() - x) );\r\n\t}", "@Override\n public void init()\n {\n out = mul(num(100.0/Math.log10(length)), log10(div(sum(truerange(), length), diff(highest(length), lowest(length)))));\n }", "public java.lang.String getFLOOR()\n {\n \n return __FLOOR;\n }", "public static float nlog(float x) {\n if (x == 1) return 0;\n\n float agm = 1f;\n float g1 = 1 / (x * (1 << (DEFAULT_ACCURACY - 2)));\n float arithmetic;\n float geometric;\n\n for (int i = 0; i < 5; i++) {\n arithmetic = (agm + g1) / 2f;\n geometric = BAKSH_sqrt(agm * g1);\n agm = arithmetic;\n g1 = geometric;\n }\n\n return (PI / 2f) * (1 / agm) - DEFAULT_ACCURACY * LN2;\n }", "private void log(Complex[] F) {\r\n\r\n\t\tF[0].setReal(Math.log10(1 + F[0].getReal()));\r\n\t\tmaX = F[0].getReal();\r\n\r\n\t\tmiN = F[0].getReal();\r\n\r\n\t\tfor (int i = 1; i < F.length; i++) {\r\n\t\t\tF[i].setReal(Math.log10(1 + F[i].getReal()));\r\n\t\t\tif (F[i].getReal() > maX) {\r\n\t\t\t\tmaX = F[i].getReal();\r\n\t\t\t}\r\n\t\t\tif (F[i].getReal() < miN) {\r\n\t\t\t\tmiN = F[i].getReal();\r\n\t\t\t}\r\n\r\n\t\t} \r\n\r\n\t}", "public int getFloorNumber(){\r\n\t\treturn iFloorNumber;\r\n\t}", "public int floorNumber() {\n return _number;\n }", "public static double QESPRLOG(double val) {\n\t\treturn (8.0 + Math.log10(QESPR(val)))/ 8.0;\n\t}", "public static Matrix logN(double base, Matrix matrix)\n {\n Matrix result = null;\n try\n {\n result = logN(matrix, base);\n }\n catch (Exception ex)\n {\n }\n return result;\n }", "private void extendLogGammaRatioCache(int upTo) {\n\t\tif (logGammaRatioCache == null) {\n\t\t\tcomputeLogGammaRatioCache();\n\t\t}\n\t\tfor (int i = indexLastValidLogGammaRatio + 1; i <= upTo; i++) {\n\t\t\tdouble val = logGammaRatioCache.get(i - 1) + FastMath.log((i - 1) + c);\n\t\t\tif (i < logGammaRatioCache.size()) {\n\t\t\t\tlogGammaRatioCache.set(i, (float) val);\n\t\t\t} else {\n\t\t\t\tlogGammaRatioCache.add((float) val);\n\t\t\t}\n\t\t}\n\t\tindexLastValidLogGammaRatio = upTo;\n\t\tlogGammaRatioCache.trimToSize();\n\t}", "public int getMaxFloor();", "public String getFloor() {\n return this.floor;\n }", "public static int floor(int nValue, int nPrecision)\n\t{\n\t\t// this integer flooring method returns the next smallest integer\n\t\tint nFlooredValue = nValue / nPrecision * nPrecision;\n\n\t\t// correct for negative numbers \n\t\t// ensure the value was not previously floored or this will return the wrong result\n\t\tif (nValue < 0 && nFlooredValue != nValue)\n\t\t\tnFlooredValue -= nPrecision;\n\n\t\treturn nFlooredValue;\n\t}", "public String getFloor() {\n\t\treturn floor;\n\t}", "public static double log2(double x) {\n\t\tint base = 2;\n\t\treturn Math.log(x) / Math.log(base);\n\t}", "public void setCurrentFloor(int currentFloor) {\n this.currentFloor = currentFloor;\n }", "public int getGotoFloor();", "public static void setLevel(int level){\n\tlogLevel = level;\n }", "private double log2(double n) {\r\n\t\treturn Math.log(n) / Math.log(2);\r\n\t}", "public void setFLOOR(java.lang.String value)\n {\n if ((__FLOOR == null) != (value == null) || (value != null && ! value.equals(__FLOOR)))\n {\n _isDirty = true;\n }\n __FLOOR = value;\n }", "public static void main(String[] args) {\n// System.out.println(Math.floor(12.34));/\n// System.out.println(Math.(12.34));/\n// System.out.println(Math.ceil(12.34));/\n// System.out.println(Math.ceil(12.34));/\n int start=5;\n int end=66;\n int i=start+(int)(Math.round(Math.random()*(end-start)) );\n System.out.println(i);\n }", "private static int floor(final double d) {\r\n return (int)Math.floor(d);\r\n }", "public Series logarithmic()\n {\n Series logarithmic = new Series();\n logarithmic.x = new double[logarithmic.size = size];\n logarithmic.r = r;\n for(int t = 0; t<size; t++)\n logarithmic.x[t] = Math.log(x[t]);\n return logarithmic;\n }", "private native void Df1_Set_Log_Filter_Level(int level);", "private static final long floorDivide(long n, long d) {\n\treturn ((n >= 0) ? \n\t\t(n / d) : (((n + 1L) / d) - 1L));\n }", "static public int logaritam2(int x) {\r\n\t\tint lg = 0;\r\n\t\twhile(x != 1) {\r\n\t\t\tx /= 2;\r\n\t\t\tlg++;\r\n\t\t}\r\n\t\treturn lg;\r\n\t}", "public int currentFloor(){\n return currentFloor;\n }", "public void setLimit_lin_x_lower(float limit_lin_x_lower) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 32, limit_lin_x_lower);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 24, limit_lin_x_lower);\n\t\t}\n\t}", "void log(Log log);", "@JSProperty(\"floor\")\n double getFloor();", "static int exp(int base, long n) {\n\n // 2^3=8 , 2^x=8 -> x = ln8/ln2 , otherwise x=Math.log(8)/Math/log(2)\n\n return (int) ( Math.log(n)/Math.log(base) );\n }", "public void setX_Log(boolean xLog){\n this.xLog = xLog;\n drawGraph();\n }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(Math.log(Math.E));\t// natural log, no negative numbers\n\t\t\n\t\tSystem.out.println(Math.log10(10));\n\n\t}", "public void setLogtime(Date logtime)\r\n {\r\n this.logtime = logtime;\r\n }", "public static double[] logarit(double[] data, double base) {\n\t\tdouble[] result = new double[data.length];\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tif (base == Math.E)\n\t\t\t\tresult[i] = Math.log(data[i]);\n\t\t\telse if (base == 10)\n\t\t\t\tresult[i] = Math.log10(data[i]);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void setLogLevel(int logLevel) {\n\t\tif(logLevel > 5 || logLevel < 0) \n\t\t\tthrow new IllegalArgumentException(\"invalid parameter logLevel, please use Logger's static level constant.\");\n\t\tmLogLevel = logLevel;\n\t}", "public void setL(double value) {\n this.l = value;\n }", "private Float scale(Float datapoint){\n\n float range = (float)(20 * (max / Math.log(max)));\n range-=min;\n float scalar = DisplayImage.IMAGE_SIZE_SCALAR / range;\n\n if(nightMode){\n datapoint = (float) (100 * (datapoint / Math.log(datapoint)));\n datapoint *= scalar*5;\n }else {\n datapoint = (float) (20* (datapoint / Math.log(datapoint)));\n datapoint *= scalar;\n }\n\n return datapoint;\n }", "public static double floorMod(double x, double y) {\n return x - y * (Math.floor(x / y));\n }", "public Log() { //Null constructor is adequate as all values start at zero\n\t}", "private ArrayList<Float> convertToLog(ArrayList<Float> list){\n ArrayList<Float> convertedList = new ArrayList<>();\n for (Float current:list){\n double temp = Math.log(current);\n float newValue = (float) temp;\n convertedList.add(newValue);\n }\n return convertedList;\n\n }", "private Node floor(Node x, int key) {\n if (x == null)\n return null;\n int cmp = key - x.key;\n if (cmp == 0)\n return x;\n if (cmp < 0)\n return floor(x.left, key);\n Node t = floor(x.right, key);\n if (t != null)\n return t;\n else\n return x;\n }", "public void setLogdate(long newVal) {\n setLogdate(new java.sql.Timestamp(newVal));\n }", "public Logger(int loglv) {\r\n LOGLV = loglv;\r\n }", "private void clampZoom()\n\t{\n\t\tif (zoom < ZOOM_MINIMUM)\n\t\t{\n\t\t\tzoom = ZOOM_MINIMUM;\n\t\t}\n\t\telse if (zoom > ZOOM_MAXIMUM)\n\t\t{\n\t\t\tzoom = ZOOM_MAXIMUM;\n\t\t}\n\t}", "public static double limitRange( double val )\n {\n if( val > 1.0 )//If number is greater than 1.0, it becomes 1.0.\n {\n val = 1.0; \n }\n else if( val < -1.0 )//Else if number is less than -1.0, it becomes -1.0.\n {\n val = -1.0;\n }\n \n //Returns the limited number\n return val;\n }", "public void setLimit_lin_x_upper(float limit_lin_x_upper) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 36, limit_lin_x_upper);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 28, limit_lin_x_upper);\n\t\t}\n\t}", "private Boolean floorVerfication(int floor){\n \n if(Elevator.MIN_FLOOR <= floor && floor <= Elevator.MAX_FLOOR)\n return true;\n else \n return false;\n }", "private String calcMod(double val) {\n double vall = (val - 10) / 2;\n if (vall < 0) {\n val = Math.floor(vall);\n return String.valueOf((int)val);\n }\n else {\n val = Math.ceil(vall);\n return \"+\" + String.valueOf((int)val);\n }\n }", "public int getCurrentFloor() {\n return currentFloor;\n }", "public int getCurrentFloor() {\n return currentFloor;\n }", "public static boolean isPowerof4Log(int num){\n\t\tdouble logNum = Math.log(num)/Math.log(4) % 4;\n\t\tif (logNum == (int)logNum){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private static void normalizeFromLog10(double[] array) {\n double maxValue = findMaxEntry(array).first;\n for (int i = 0; i < array.length; i++)\n array[i] = Math.pow(10, array[i] - maxValue);\n \n // normalize\n double sum = 0.0;\n for (int i = 0; i < array.length; i++)\n sum += array[i];\n for (int i = 0; i < array.length; i++)\n array[i] /= sum;\n }", "public long roundHalfFloor(long instant) {\n return roundFloor(instant);\n }", "public java.lang.String getFloorLimit() {\r\n return floorLimit;\r\n }", "public synchronized void setZoom(float zoom)\r\n {\r\n this.zoom = Utils.clampFloat(zoom, .4f, 1.5f);\r\n }", "public void setLogFilterLevel(int level)\n\t{\n\t\tDf1_Set_Log_Filter_Level(level);\n\t}", "public void setLevel(int level) {\n if(level > Constant.MAX_LEVEL){\n this.level = Constant.MAX_LEVEL;\n }else {\n this.level = level;\n }\n this.expToLevelUp = this.expValues[this.level];\n }", "@Test\n public void whenLogarithmicFunctionThenLogarithmicResults() {\n FunctionMethod functionMethod = new FunctionMethod();\n List<Double> result = functionMethod.diapason(16, 18, x -> Math.log(x) / Math.log(2.0));\n List<Double> expected = Arrays.asList(4D, 4.08746284125034D);\n assertThat(result, is(expected));\n }", "public static Matrix logN(Matrix matrix, double base)\n {\n double b = 1.0;\n double[][] temp = matrix.getArray();\n int row = matrix.getRowDimension();\n int col = matrix.getColumnDimension();\n double[][] result = new double[row][col];\n if (base <= 0)\n {\n throw new IllegalArgumentException(\n \"logN : Negative or zero base result in a Complex Number or negative Infinity.\");\n }\n\n b = Math.log(base);\n for (int i = 0; i < row; i++)\n {\n for (int j = 0; j < col; j++)\n {\n if (temp[i][j] == 0.0)\n {\n result[i][j] = Double.NEGATIVE_INFINITY;\n }\n else if (temp[i][j] < 0.0)\n {\n result[i][j] = Double.NaN;\n }\n else\n {\n result[i][j] = Math.log(temp[i][j]) / b;\n }\n }// end for\n }// end for\n return new Matrix(result);\n }", "public void setDefault(int floorNum) {\n\t\t\n\t\tDEFAULT = floorNum;\n\t\tcurrFloor = DEFAULT;\n\t}" ]
[ "0.6675527", "0.64423823", "0.64374244", "0.63079774", "0.62658143", "0.6153716", "0.6150976", "0.60419136", "0.5999683", "0.5963341", "0.5936156", "0.58598644", "0.5855071", "0.5791761", "0.57741934", "0.574888", "0.57475054", "0.57234466", "0.5690349", "0.5595452", "0.5592608", "0.5590764", "0.5587998", "0.55401164", "0.5539266", "0.5513348", "0.55021757", "0.5488409", "0.5435319", "0.54254395", "0.541298", "0.5411812", "0.5408185", "0.5382619", "0.53745276", "0.53517956", "0.5327883", "0.5327751", "0.53264666", "0.5314317", "0.52617496", "0.5234443", "0.523369", "0.52310497", "0.52140504", "0.52139723", "0.51999223", "0.51860595", "0.5180581", "0.5179074", "0.5178663", "0.5170491", "0.51621014", "0.51577914", "0.5141111", "0.5100818", "0.5100137", "0.5095726", "0.50939023", "0.5060794", "0.5060194", "0.5059854", "0.5048454", "0.503832", "0.50242805", "0.5016817", "0.49995568", "0.49925053", "0.499036", "0.4983776", "0.49766898", "0.4976378", "0.49422058", "0.4934826", "0.49223763", "0.4918965", "0.49165106", "0.49160644", "0.49093145", "0.49045298", "0.49041268", "0.49023995", "0.4894445", "0.4880962", "0.48580512", "0.48553947", "0.48540467", "0.48457065", "0.4835222", "0.4835222", "0.48171607", "0.48149368", "0.48119748", "0.48118946", "0.48099512", "0.4803014", "0.48025575", "0.4792072", "0.47853187", "0.47784498" ]
0.6965656
0
FFT from Numerical recipes
private void four1(double data[], int nn, int isign) { int n,mmax,m,j,istep,i; double wtemp,wr,wpr,wpi,wi,theta; double tempr,tempi; double swap; n=2*nn; j=1; for (i=1;i<n;i+=2) { if (j > i) { swap=data[j]; data[j]=data[i]; data[i]=swap; swap=data[j+1]; data[j+1]=data[i+1]; data[i+1]=swap; } m=n >> 1; while (m >= 2 && j > m) { j -= m; m >>= 1; } j += m; } mmax=2; while (n > mmax) { istep=2*mmax; theta=isign*(6.28318530717959/mmax); wtemp=Math.sin(0.5*theta); wpr = -2.0*wtemp*wtemp; wpi=Math.sin(theta); wr=1.0; wi=0.0; for (m=1;m<mmax;m+=2) { for (i=m;i<=n;i+=istep) { j=i+mmax; tempr=wr*data[j]-wi*data[j+1]; tempi=wr*data[j+1]+wi*data[j]; data[j]=data[i]-tempr; data[j+1]=data[i+1]-tempi; data[i] += tempr; data[i+1] += tempi; } wr=(wtemp=wr)*wpr-wi*wpi+wr; wi=wi*wpr+wtemp*wpi+wi; } mmax=istep; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doFuncFourier() {\n setTypeAndS();\n N = 256;\n M = 256;\n\n ft2D = new Fourier2D(M, N);\n\n Complex2[][] sine = new Complex2[M][N];\n for(int y = 0; y < N; y++) {\n for(int x = 0; x < M; x++) {\n sine[x][y] = new Complex2(functionF(x, y), 0);\n }\n }\n\n Complex2[][] ftData = ft2D.fft(sine);\n\n plotFtMagnitude(ftData, M, N);\n }", "public void fft (double[] re, double[] im) {\n int n = mN;\n \n double ld = Math.log(n) / Math.log(2.0);\n if (((int) ld) - ld != 0) {\n System.out.println(\"The number of elements is not a power of 2.\");\n return;\n }\n \n // Declaration and initialization of the variables\n // ld should be an integer, actually, so I don't lose any information in\n // the cast\n int nu = (int) ld;\n int n2 = n / 2;\n int nu1 = nu - 1;\n double[] xReal = new double[n];\n double[] xImag = new double[n];\n double tReal, tImag, p, arg, c, s;\n \n double constant= -2 * Math.PI;\n \n for (int i = 0; i < n; i++) {\n xReal[i] = mXr[i];\n xImag[i] = 0.0;\n }\n \n // First phase - calculation\n int k = 0;\n for (int l = 1; l <= nu; l++) {\n while (k < n) {\n for (int i = 1; i <= n2; i++) {\n p = bitreverseReference(k >> nu1, nu);\n // direct FFT or inverse FFT\n arg = constant * p / n;\n c = Math.cos(arg);\n s = Math.sin(arg);\n tReal = xReal[k + n2] * c + xImag[k + n2] * s;\n tImag = xImag[k + n2] * c - xReal[k + n2] * s;\n xReal[k + n2] = xReal[k] - tReal;\n xImag[k + n2] = xImag[k] - tImag;\n xReal[k] += tReal;\n xImag[k] += tImag;\n k++;\n }\n k += n2;\n }\n k = 0;\n nu1--;\n n2 /= 2;\n }\n \n // Second phase - recombination\n k = 0;\n int r;\n while (k < n) {\n r = bitreverseReference(k, nu);\n if (r > k) {\n tReal = xReal[k];\n tImag = xImag[k];\n xReal[k] = xReal[r];\n xImag[k] = xImag[r];\n xReal[r] = tReal;\n xImag[r] = tImag;\n }\n k++;\n }\n \n double radice = 1.0 / Math.sqrt(n);\n for (int i = 0; i < mN; i++) {\n re[i] = xReal[i/2] * radice;\n im[i] = xImag[i/2] * radice;\n }\n }", "public static float [] FourierTransform(final float [] x)\n {\n final int n = x.length;\n final int nu = (int) (Math.log(n) / Math.log(2));\n int n2 = n / 2;\n int nu1 = nu - 1;\n final float [] xre = new float [n];\n final float [] xim = new float [n];\n final float [] mag = new float [n2];\n float tr, ti, p, arg, c, s;\n for (int index = 0; index < n; index++)\n {\n xre[index] = x[index];\n xim[index] = 0.0f;\n }\n int k = 0;\n for (int l = 1; l <= nu; l++)\n {\n while (k < n)\n {\n for (int i = 1; i <= n2; i++)\n {\n p = bitrev(k >> nu1, nu);\n arg = (2 * (float) Math.PI * p) / n;\n c = (float) Math.cos(arg);\n s = (float) Math.sin(arg);\n tr = (xre[k + n2] * c) + (xim[k + n2] * s);\n ti = (xim[k + n2] * c) - (xre[k + n2] * s);\n xre[k + n2] = xre[k] - tr;\n xim[k + n2] = xim[k] - ti;\n xre[k] += tr;\n xim[k] += ti;\n k++;\n }\n k += n2;\n }\n k = 0;\n nu1--;\n n2 = n2 / 2;\n }\n k = 0;\n int r;\n while (k < n)\n {\n r = bitrev(k, nu);\n if (r > k)\n {\n tr = xre[k];\n ti = xim[k];\n xre[k] = xre[r];\n xim[k] = xim[r];\n xre[r] = tr;\n xim[r] = ti;\n }\n k++;\n }\n\n mag[0] = (float) (Math.sqrt((xre[0] * xre[0]) + (xim[0] * xim[0]))) / n;\n for (int i = 1; i < (n / 2); i++)\n {\n mag[i] = (2 * (float) (Math.sqrt((xre[i] * xre[i]) + (xim[i] * xim[i])))) / n;\n }\n return mag;\n }", "public void transform() {\r\n\r\n\t\tint x, y, i;\r\n\t\tComplex[] row = new Complex[width];\r\n\t\tfor (x = 0; x < width; ++x)\r\n\t\t\trow[x] = new Complex();\r\n\t\tComplex[] column = new Complex[height];\r\n\t\tfor (y = 0; y < height; ++y)\r\n\t\t\tcolumn[y] = new Complex();\r\n\r\n\t\tint direction;\r\n\t\tif (spectral)\r\n\t\t\tdirection = -1; // inverse transform\r\n\t\telse\r\n\t\t\tdirection = 1; // forward transform\r\n\r\n\t\t// Perform FFT on each row\r\n\r\n\t\tfor (y = 0; y < height; ++y) {\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\trow[x].re = data[i].re;\r\n\t\t\t\trow[x].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(row, width);\r\n\t\t\tfft(row, width, log2w, direction);\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\tdata[i].re = row[x].re;\r\n\t\t\t\tdata[i].im = row[x].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Perform FFT on each column\r\n\r\n\t\tfor (x = 0; x < width; ++x) {\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tcolumn[y].re = data[i].re;\r\n\t\t\t\tcolumn[y].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(column, height);\r\n\t\t\tfft(column, height, log2h, direction);\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tdata[i].re = column[y].re;\r\n\t\t\t\tdata[i].im = column[y].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (spectral)\r\n\t\t\tspectral = false;\r\n\t\telse\r\n\t\t\tspectral = true;\r\n\r\n\t}", "public static double[] dft(double[] data, double[] idata, int dataLen){\n \n double[] spectrum = new double[dataLen];\n double delF = 1.0/dataLen;\n //Outer loop iterates on frequency\n // values.\n for(int i=0; i < dataLen;i++){\n double freq = i*delF;\n double real = 0;\n double imag = 0;\n //Inner loop iterates on time-\n // series points.\n for(int j=0; j < dataLen; j++){\n real += data[j]*Math.cos( 2*Math.PI*freq*j);\n imag += data[j]*Math.sin( 2*Math.PI*freq*j);\n }\n spectrum[i] = Math.sqrt(real*real + imag*imag);\n idata[i] = -imag;\n }\n return spectrum;\n }", "public static Complex[] fft(Complex[] x) {\n int N = x.length;\n\n // base case\n if (N == 1) return new Complex[] { x[0] };\n\n // radix 2 Cooley-Tukey FFT\n if (N % 2 != 0) { throw new RuntimeException(\"N is not a power of 2\"); }\n\n // fft of even terms\n Complex[] even = new Complex[N/2];\n for (int k = 0; k < N/2; k++) {\n even[k] = x[2*k];\n }\n Complex[] q = fft(even);\n\n // fft of odd terms\n Complex[] odd = even; // reuse the array\n for (int k = 0; k < N/2; k++) {\n odd[k] = x[2*k + 1];\n }\n Complex[] r = fft(odd);\n\n // combine\n Complex[] y = new Complex[N];\n for (int k = 0; k < N/2; k++) {\n double kth = -2 * k * Math.PI / N;\n Complex wk = new Complex(Math.cos(kth), Math.sin(kth));\n y[k] = q[k].plus(wk.times(r[k]));\n y[k + N/2] = q[k].minus(wk.times(r[k]));\n }\n\n\t\treturn y;\n }", "void IFFT(COMPLEX []xin,int N)\n {\n int LH,m,i,j,l,le,B,ip,w_index;\n COMPLEX t1 = new COMPLEX(), t2 = new COMPLEX();\n\n if ( !InitW( N ) ) return;\n\n l=N;\n m=0;\n while (l == 0)\n {\n \tl>>=1;\n m++;\n }\n \t\n\n for (l=m;l>=1;l--)\n {\n le = (int)(1<<l);\n B = (le>>1);\n for (j=0;j<=B-1;j++)\n {\n w_index = (1<<(m-l))*j;\n for (i=j;i<=N-1;i=i+le)\n {\n ip=i+B;\n t1.real=(xin[i].real+xin[ip].real);\n t1.image=(xin[i].image+xin[ip].image);\n t2.real=(xin[i].real-xin[ip].real);\n t2.image=(xin[i].image-xin[ip].image);\n xin[ip].real=t2.real*W_FFT[w_index].real+t2.image*W_FFT[w_index].image;\n xin[ip].image=t2.image*W_FFT[w_index].real-t2.real*W_FFT[w_index].image;\n xin[i]=t1;\n }\n }\n }\n\n /* output reverse */\n for (LH=j=N>>1, i=1, m=N-2; i<=m; i++)\n {\n if (i<j){t1=xin[j]; xin[j]=xin[i]; xin[i]=t1;}\n l=LH;\n while (j>=l){j-=l; l>>=1;}\n j+=l;\n }\n\n /* scale output */\n for (i=0; i<N; i++)\n {\n \n //Log.i(TAG, \"IFFT: \" + i + \",\" + Double.toString(xin[i].real) + \",\" + Double.toString(xin[i].image)); \n \t\n xin[i].real/=N;\n xin[i].image/=N;\n }\n }", "public void fft(double[] x, double[] y) {\n int i, j, k, n1, n2, a;\n double c, s, t1, t2;\n\n // Bit-reverse\n j = 0;\n n2 = nfft / 2;\n for (i = 1; i < nfft - 1; i++) {\n n1 = n2;\n while (j >= n1) {\n j = j - n1;\n n1 = n1 / 2;\n }\n j = j + n1;\n\n if (i < j) {\n t1 = x[i];\n x[i] = x[j];\n x[j] = t1;\n t1 = y[i];\n y[i] = y[j];\n y[j] = t1;\n }\n }\n\n // FFT\n n1 = 0;\n n2 = 1;\n\n for (i = 0; i < m; i++) {\n n1 = n2;\n n2 = n2 + n2;\n a = 0;\n\n for (j = 0; j < n1; j++) {\n c = cos[a];\n s = sin[a];\n a += 1 << (m - i - 1);\n\n for (k = j; k < nfft; k = k + n2) {\n t1 = c * x[k + n1] - s * y[k + n1];\n t2 = s * x[k + n1] + c * y[k + n1];\n x[k + n1] = x[k] - t1;\n y[k + n1] = y[k] - t2;\n x[k] = x[k] + t1;\n y[k] = y[k] + t2;\n }\n }\n }\n }", "public double[] getFFTMagnitudesForOneFrame(double frame[]){\n double magSpectrum[] = new double[frame.length];\n \n // calculate FFT for current frame\n fft.computeFFT( frame );\n \n // calculate magnitude spectrum\n for (int k = 0; k < frame.length; k++){\n magSpectrum[k] = Math.pow(fft.real[k] * fft.real[k] + fft.imag[k] * fft.imag[k], 0.5);\n }\n\n return magSpectrum;\n }", "private void inverseFastFourierTransfrom(Complex[] F, Img i) {\n\n\t\tComplex[] F_u_y = new Complex[i.width * i.height];\n\t\t//do one-direction FFT first for each X\n\t\tfor(int u=0; u < i.height ; u++){\n\t\t\t\tComplex[] F_u_v_oneRow = Arrays.copyOfRange(F, u * i.width, (u+1) * i.width);\n\t\t\t\tComplex[] F_u_y_oneRow = oneDInverseFFT(F_u_v_oneRow);\n\t\t\t //put the one row FFT into F(u,y)\n\t\t\t for(int j = 0; j < F_u_y_oneRow.length; j++)\n\t\t\t {\n\t\t\t\t// F_x_v_oneRow[j].div(F_x_v_oneRow.length);\n\t\t\t\t //F_u_y_oneRow[j].mul(Math.pow(-1,j));\n\t\t\t\t //System.out.print(F_x_v_oneRow[j].r + \" \");\n\t\t\t\t F_u_y[j*i.width+u] = F_u_y_oneRow[j];\n\t\t\t }\n\t\t}\n\n\t\tfor(int y =0; y< i.width; y++){\n\t\t//\tSystem.out.println(\"Computing second FFT at x = \"+y);\n\t\t\tComplex[] F_u_y_oneRow = Arrays.copyOfRange(F_u_y, y * i.height, (y+1) * i.height);\n\t\t\tComplex[] f_x_y_oneRow = oneDInverseFFT(F_u_y_oneRow);\n\t\t\tfor(int j = 0; j < f_x_y_oneRow.length; j++)\n\t\t\t{\n\t\t\t\t//f_x_y_oneRow[j].mul(Math.pow(-1,j+y));\n\t\t\t\tf_x_y_oneRow[j].div(i.height*i.width);\n\t\t\t\t//if(f_x_y_oneRow[j].r<0) f_x_y_oneRow[j].r =0 ;\n\t\t\t\t//System.out.print(f_x_y_oneRow[j].r + \" \");\n\t\t\t\t//i.img[i.img.length - (j*i.width+y+1)] = (byte)(f_x_y_oneRow[j].getNorm());\n\t\t\t\tdouble result = f_x_y_oneRow[j].getNorm();\n\t\t\t\tif(result>255)\n\t\t\t\t{\n\t\t\t\t\tresult = 255;\n\t\t\t\t}\n\t\t\t\ti.img[j*i.width+y] = (byte)result;\n\t\t\t}\n\t\t}\n\n\t}", "private void fftAction() {\n float[] dataTemp = new float[outputDate.length];\n //此处添加dataTemp复制data数组中值,防止在排序后data数组值混乱,导致fft操作后重绘时域波形,发生错误。\n System.arraycopy(data, 0, dataTemp, 0, dataTemp.length);\n// outputDate = fft.i2Sort(dataTemp, (int) (Math.log(dataTemp.length) / Math.log(2)));\n outputDate = FFT.myFFT(dataTemp, (int) (Math.log(dataTemp.length) / Math.log(2)));\n }", "public ArrayList<Float> mathematicalFFT(ArrayList<Float> wave){\r\n ArrayList<Float> newWave = new ArrayList<>();\r\n //note the line above is here so i can run the program without any errors, it is not meant to help\r\n return newWave;\r\n }", "public FastFourierTransformation(int n) {\n // compute the length of the FastFourierTransformation to the nearest power of 2 to\n // the length of the input param n (desired length)\n double constant;\n\n m = nearest_power_of_two(n);\n nfft = (int)Math.pow(2.0d, (double)m);\n\n //Log.d(LOG_TAG, \"fft() - nfft=\"+nfft+\" m=\"+m+\" (1 << m)=\"+(1<<m));\n\n // pre-compute the sine and cosine tables\n cos = new double[nfft / 2];\n sin = new double[nfft / 2];\n\n constant = -2.0 * Math.PI / nfft;\n for (int i = 0; i < nfft / 2; i++) {\n cos[i] = Math.cos(constant * i);\n sin[i] = Math.sin(constant * i);\n }\n }", "public static Complex[] ifft(Complex[] x) {\n int N = x.length;\n Complex[] y = new Complex[N];\n\n // take conjugate\n for (int i = 0; i < N; i++) {\n y[i] = x[i].conjugate();\n }\n\n // compute forward FFT\n y = fft(y);\n\n // take conjugate again\n for (int i = 0; i < N; i++) {\n y[i] = y[i].conjugate();\n }\n\n // divide by N\n for (int i = 0; i < N; i++) {\n\t y[i] = y[i].conjugate();\n y[i] = y[i].times(1.0 / N);\n }\n\n return y;\n\n }", "static void fft2d(double [] [] re, double [] [] im, int isgn) {\n \t \t\n \tfor(int i = 0; i < N; i++) {\n \t\tFFT.fft1d(re[i], im[i], isgn);\n \t}\n\n re = transpose(re) ;\n im = transpose(im) ;\n\n //... fft1d on all rows of re, im ...\n \n for(int i = 0; i < N; i++) {\n \t\tFFT.fft1d(re[i], im[i], isgn);\n \t}\n\n re = transpose(re) ;\n im = transpose(im) ;\n \n }", "public static void main(String[] args) {\n //launch(FFTApp.class, args);\n Complex c[] = new Complex[8];\n c[0] = new Complex(1);\n c[1] = new Complex(2);\n c[2] = new Complex(3);\n c[3] = new Complex(4);\n\n FFT a = new FFT(2);\n a.hacerFFT(c, true);\n for( Complex x : c )\n System.out.println(x);\n }", "private void fft1D(Complex[] fx, Complex[] Fu, int twoK) {\r\n\r\n\t\t// base case\r\n\t\tif (twoK <= 1) {\r\n\t\t\tFu[0] = fx[0];\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tComplex[] even = new Complex[twoK / 2];\r\n\r\n\t\tfor (int k = 0; k < twoK / 2; k++) {\r\n\t\t\teven[k] = fx[2 * k];\r\n\t\t}\r\n\r\n\t\tComplex[] odd = new Complex[twoK / 2];\r\n\t\tfor (int k = 0; k < twoK / 2; k++) {\r\n\t\t\todd[k] = fx[2 * k + 1];\r\n\t\t}\r\n\r\n\t\tComplex[] q = new Complex[twoK / 2];\r\n\t\tfft1D(even, q, twoK / 2);\r\n\r\n\t\tComplex[] r = new Complex[twoK / 2];\r\n\t\tfft1D(odd, r, twoK / 2);\r\n\r\n\t\tfor (int k = 0; k < twoK / 2; k++) {\r\n\t\t\tdouble kth = -2 * k * Math.PI / twoK;\r\n\t\t\tComplex wk = new Complex(Math.cos(kth), Math.sin(kth));\r\n\t\t\tFu[k] = q[k].plus(wk.mul(r[k]));\r\n\t\t\tFu[k + twoK / 2] = q[k].minus(wk.mul(r[k]));\r\n\t\t}\r\n\r\n\t}", "public float[] eFFT(float[] e) {\n //copy the new data.\n System.arraycopy(e, 0, this.eFFTSegment, 0, this.fftSize);\n //calcuate frequency domain of block 0\n this.fft.realForward(this.eFFTSegment);\n\n return this.eFFTSegment;\n }", "public static double fourierTransform(double[] signal, double sampleWavelength) {\n double phaseSin = 0.0; //One possible phase for the frequency\n double phaseCos = 0.0; //The inverse phase for the frequency\n for (int i = 0; i < signal.length; i++) {\n double angleTraveled = 2*Math.PI*i/sampleWavelength;\n phaseSin += Math.sin(angleTraveled)*signal[i]; //sum correlation with sin phase\n phaseCos += Math.cos(angleTraveled)*signal[i]; //sum correlation with cos phase\n }\n phaseSin/=signal.length; //average correlation with the sin function\n phaseCos/=signal.length; //average correlation with the cos function\n return 2*Math.sqrt(phaseSin*phaseSin+phaseCos*phaseCos); //Perfect match gives value 1/2 the amplitude, hence *2\n }", "static void FastFourierTransform(Complex[] A, boolean inverse) {\n FastFourierTransformHelper(A, inverse);\n int N = A.length;\n if (inverse) {\n for (Complex c : A) {\n c.scale(1.0 / N);\n }\n }\n }", "public static void FFT(int dir, int s, double[] x,double[] y) {\n int n, i, i1, j, k, i2, l, l1, l2;\n double c1, c2, tx, ty, t1, t2, u1, u2, z;\n int m = (int) (Math.log(s)/Math.log(2));\n double[] spectrum = new double[s];\n \n /* Calculate the number of points */\n n = 1;\n for (i=0;i<m;i++)\n n *= 2;\n \n /* Do the bit reversal */\n i2 = n >> 1;\n j = 0;\n for (i=0;i<n-1;i++) {\n if (i < j) {\n tx = x[i];\n ty = y[i];\n x[i] = x[j];\n y[i] = y[j];\n x[j] = tx;\n y[j] = ty;\n }\n k = i2;\n while (k <= j) {\n j -= k;\n k >>= 1;\n }\n j += k;\n }\n \n /* Compute the FFT */\n c1 = -1.0;\n c2 = 0.0;\n l2 = 1;\n for (l=0;l<m;l++) {\n l1 = l2;\n l2 <<= 1;\n u1 = 1.0;\n u2 = 0.0;\n for (j=0;j<l1;j++) {\n for (i=j;i<n;i+=l2) {\n i1 = i + l1;\n t1 = u1 * x[i1] - u2 * y[i1];\n t2 = u1 * y[i1] + u2 * x[i1];\n x[i1] = x[i] - t1;\n y[i1] = y[i] - t2;\n x[i] += t1;\n y[i] += t2;\n }\n z = u1 * c1 - u2 * c2;\n u2 = u1 * c2 + u2 * c1;\n u1 = z;\n }\n c2 = Math.sqrt((1.0 - c1) / 2.0);\n if (dir == 1)\n c2 = -c2;\n c1 = Math.sqrt((1.0 + c1) / 2.0);\n }\n \n /* Scaling for forward transform */\n if (dir == 1) {\n for (i=0;i<n;i++) {\n x[i] /= n;\n y[i] /= n;\n \n }\n \n }\n \n }", "@Test\n public void test() {\n int packLength = 156;\n DFTMainFreqEncoder encoder = new DFTMainFreqEncoder(packLength);\n encoder.setMainFreqNum(2);\n List<float[]> packs;\n\n for (int i = 0; i < 1000; i++) {\n // encoder.encode(2*i+3*Math.cos(2*Math.PI*0.4*i));\n// encoder.encode(3 * Math.cos(2 * Math.PI * 0.4 * i));\n encoder.encode(12.5);\n }\n for (int i = 2001; i < 3000; i++) {\n encoder.encode(37.5 + 10 * Math.cos(2 * Math.PI * 0.4 * i));\n // encoder.encode(i);\n }\n for (int i = 3001; i < 4000; i++) {\n // encoder.encode(2*i+3*Math.cos(2*Math.PI*0.4*i));\n// encoder.encode(3 * Math.cos(2 * Math.PI * 0.4 * i));\n encoder.encode(12.5);\n }\n\n System.out.println(\"data: line\");\n packs = encoder.getPackFrequency();\n for (int i = 0; i < packs.size(); i++) {\n System.out.println(i * packLength + \"\\t~\\t\" + ((i + 1) * packLength - 1) + \"\\t\"\n + Arrays.toString(packs.get(i)));\n }\n GtEq<Float> gtEq = FilterFactory.gtEq(FilterFactory.floatFilterSeries(\"a\", \"b\", FilterSeriesType.FREQUENCY_FILTER),0.2f,true);\n assertTrue(encoder.satisfy(gtEq));\n encoder.resetPack();\n\n }", "public FFT_HalfComplex(int fftSize) {\n\n this.fftSize = fftSize;\n this.fft = new FloatFFT_1D(this.fftSize);\n this.yFFTSegment = new float[this.fftSize];\n this.eFFTSegment = new float[this.fftSize];\n this.jtransform_miu_t = new float[this.fftSize];\n //System.out.println(\"fftSize:\" + this.fftSize);\n }", "public void showFourierSpectrum(Complex[] f, int width, int height) {\r\n\t\t// No need to modify!\r\n\t\tComplex[] F = new Complex[width * height];\r\n\t\tfor (int i = 0; i < F.length; i++)\r\n\t\t\tF[i] = new Complex();\r\n\t\tcenter(f, width, height);\r\n\t\tfft2D(f, F, width, height);\r\n\t\tfor (int i = 0; i < F.length; i++)\r\n\t\t\tf[i].setReal(Math.sqrt(Math.pow(F[i].getReal(), 2)\r\n\t\t\t\t\t+ Math.pow(F[i].getImaginary(), 2)));\r\n\t\tlog(f);\r\n\t\tscale(f);\r\n\t}", "@Override\n public void runEffect(double[] fft) {\n\n\n for(int i = fft.length - 1; i - pitchMove >= 0; i--)\n {\n fft[i] = fft[i - pitchMove];\n }\n for(int i = 0; i < pitchMove; i++)\n fft[i] = fft[i]*0.5;\n// for(int i = 0, k = 0; i < fft.length; i+=2)\n// {\n// if(i < fft.length/2) {\n// fft2[fft.length / 2 + k - 1] = (fft[fft.length / 2 + i] + fft[fft.length / 2 + i]) / 2;\n// fft2[fft.length / 2 - k - 1] = (fft[fft.length / 2 - i] + fft[fft.length / 2 - i]) / 2;\n// }\n// //fft2[k] = 0;\n// //fft2[fft2.length - k -1] = 0;\n// k++;\n// }\n /*for(int i = 0; i < fft.length; i++)\n {\n fft[i] = Math.abs(fft[i]);\n if(fft[i] < 2){\n fft[i] = 0;\n }\n //Log.d(\"Log\", fft[i] + \" \");\n }*/\n }", "private void doFFT(final double[] rdata, final double[] idata, final int start, final int end, final int startDist,\r\n final int endDist, final int length, final int direction) {\r\n if (threadStopped) {\r\n return;\r\n }\r\n final float progressStep = getProgressStep();\r\n for (int l = startDist; l < endDist; l <<= 1) {\r\n final double delta = 2.0 * Math.PI / (l << 1) * direction * startDist;\r\n double angle = 0;\r\n for (int i = 0; i < l; i += startDist) {\r\n final double wtImag = Math.sin(angle);\r\n final double wtReal = Math.cos(angle);\r\n angle += delta;\r\n for (int j = start; j < end; j++) {\r\n final int step = l << 1;\r\n for (int p = j + i; p < length; p += step) {\r\n if (threadStopped) {\r\n return;\r\n }\r\n final int k = p + l;\r\n final double tempReal = rdata[k];\r\n final double tempImag = idata[k];\r\n final double imag = ( (tempImag * wtReal) - (tempReal * wtImag));\r\n final double real = ( (tempReal * wtReal) + (tempImag * wtImag));\r\n rdata[k] = rdata[p] - real;\r\n idata[k] = idata[p] - imag;\r\n rdata[p] = rdata[p] + real;\r\n idata[p] = idata[p] + imag;\r\n }\r\n }\r\n }\r\n makeProgress(progressStep);\r\n fireProgressStateChanged((int) getProgress(), null, null);\r\n }\r\n }", "public static double[] rawFreqCreator(){\n\t\tfinal int EXTERNAL_BUFFER_SIZE = 2097152;\n\t\t//128000\n\n\t\t//Get the location of the sound file\n\t\tFile soundFile = new File(\"MoodyLoop.wav\");\n\n\t\t//Load the Audio Input Stream from the file \n\t\tAudioInputStream audioInputStream = null;\n\t\ttry {\n\t\t\taudioInputStream = AudioSystem.getAudioInputStream(soundFile);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t//Get Audio Format information\n\t\tAudioFormat audioFormat = audioInputStream.getFormat();\n\n\t\t//Handle opening the line\n\t\tSourceDataLine\tline = null;\n\t\tDataLine.Info\tinfo = new DataLine.Info(SourceDataLine.class, audioFormat);\n\t\ttry {\n\t\t\tline = (SourceDataLine) AudioSystem.getLine(info);\n\t\t\tline.open(audioFormat);\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t//Start playing the sound\n\t\t//line.start();\n\n\t\t//Write the sound to an array of bytes\n\t\tint nBytesRead = 0;\n\t\tbyte[]\tabData = new byte[EXTERNAL_BUFFER_SIZE];\n\t\twhile (nBytesRead != -1) {\n\t\t\ttry {\n\t\t \t\tnBytesRead = audioInputStream.read(abData, 0, abData.length);\n\n\t\t\t} catch (IOException e) {\n\t\t \t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (nBytesRead >= 0) {\n\t\t \t\tint nBytesWritten = line.write(abData, 0, nBytesRead);\n\t\t\t}\n\n\t\t}\n\n\t\t//close the line \n\t\tline.drain();\n\t\tline.close();\n\t\t\n\t\t//Calculate the sample rate\n\t\tfloat sample_rate = audioFormat.getSampleRate();\n\t\tSystem.out.println(\"sample rate = \"+sample_rate);\n\n\t\t//Calculate the length in seconds of the sample\n\t\tfloat T = audioInputStream.getFrameLength() / audioFormat.getFrameRate();\n\t\tSystem.out.println(\"T = \"+T+ \" (length of sampled sound in seconds)\");\n\n\t\t//Calculate the number of equidistant points in time\n\t\tint n = (int) (T * sample_rate) / 2;\n\t\tSystem.out.println(\"n = \"+n+\" (number of equidistant points)\");\n\n\t\t//Calculate the time interval at each equidistant point\n\t\tfloat h = (T / n);\n\t\tSystem.out.println(\"h = \"+h+\" (length of each time interval in second)\");\n\t\t\n\t\t//Determine the original Endian encoding format\n\t\tboolean isBigEndian = audioFormat.isBigEndian();\n\n\t\t//this array is the value of the signal at time i*h\n\t\tint x[] = new int[n];\n\n\t\t//convert each pair of byte values from the byte array to an Endian value\n\t\tfor (int i = 0; i < n*2; i+=2) {\n\t\t\tint b1 = abData[i];\n\t\t\tint b2 = abData[i + 1];\n\t\t\tif (b1 < 0) b1 += 0x100;\n\t\t\tif (b2 < 0) b2 += 0x100;\n\t\t\tint value;\n\n\t\t\t//Store the data based on the original Endian encoding format\n\t\t\tif (!isBigEndian) value = (b1 << 8) + b2;\n\t\t\telse value = b1 + (b2 << 8);\n\t\t\tx[i/2] = value;\n\t\t\t\n\t\t}\n\t\t\n\t\t//do the DFT for each value of x sub j and store as f sub j\n\t\tdouble f[] = new double[n/2];\n\t\tfor (int j = 0; j < n/2; j++) {\n\n\t\t\tdouble firstSummation = 0;\n\t\t\tdouble secondSummation = 0;\n\n\t\t\tfor (int k = 0; k < n; k++) {\n\t\t \t\tdouble twoPInjk = ((2 * Math.PI) / n) * (j * k);\n\t\t \t\tfirstSummation += x[k] * Math.cos(twoPInjk);\n\t\t \t\tsecondSummation += x[k] * Math.sin(twoPInjk);\n\t\t\t}\n\n\t\t f[j] = Math.abs( Math.sqrt(Math.pow(firstSummation,2) + \n\t\t Math.pow(secondSummation,2)) );\n\n\t\t\tdouble amplitude = 2 * f[j]/n;\n\t\t\tdouble frequency = j * h / T * sample_rate;\n\t\t\tSystem.out.println(\"frequency = \"+frequency+\", amp = \"+amplitude);\n\t\t}\n\t\tSystem.out.println(\"DONE\");\n\t\treturn f;\n\t\t\n\t}", "public static List<Float> findFrequency(ComplexNum[] wave)\n\t{\n\t\t\n\t\tComplexNum temp = new ComplexNum();\n\t\tComplexNum sum = new ComplexNum(0,0);\n\t\t\n\t\tdouble mag[] = new double [wave.length];\n\t\tlong timeStart = System.currentTimeMillis();\n\t\tfor(int k = 0; k < wave.length; k++)\n\t\t{\t\n\t\t\tsum.setReal(0.0);\n\t\t\tsum.setImaginary(0.0);\n\t\t\t\n\t\t\tfor(int t = 0; t < wave.length; t++)\n\t\t\t{\n\t\t\t\tdouble realTemp = Math.cos(-2 * Math.PI * k * t /wave.length);\n\t\t\t\tdouble imagTemp = Math.sin(- 2 * Math.PI * k * t /wave.length);\n\t\t\t\t\n\t\t\t\ttemp.setReal((realTemp*wave[t].getReal()));\n\t\t\t\ttemp.setImaginary((imagTemp*wave[t].getReal()));\n\t\t\t\t\n\t\t\t\tsum = sum.add(temp);\t\n\t\t\t}\n\t\t\t\n\t\t\tmag[k] = sum.magnitude();\n\t\t\t\n\t\t}\n\t\t\n\t\tList<Float> found = process(mag, testSampleRate, wave.length, 0.5);\n\t\tList<Float> foundFrequencies = new ArrayList<Float>();\n\t\tlong timeEnd = System.currentTimeMillis();\n\t\tfor (float freq : found) \n\t\t{\n\t\t\tif(freq > 20 && freq < 20000)\n\t\t\t\tfoundFrequencies.add(freq);\n\t\t}\n\n\t return (foundFrequencies);\n\t}", "public double[] getFFTBinFrequencies()\n {\n \tdouble[] FFTBins = new double[frameLength];\n \tdouble interval = samplingRate / frameLength;\n \tfor(int i = 0; i < frameLength; i++)\n \t{\n \t\tFFTBins[i] = interval * i;\n \t}\n \t\n \treturn FFTBins;\n }", "void example6() {\n\t\n\t\t// allocate some data\n\t\t\n\t\tIndexedDataSource<ComplexFloat32Member> data =\n\t\t\t\tnom.bdezonia.zorbage.storage.Storage.allocate(G.CFLT.construct(), 1234);\n\t\t\n\t\t// elsewhere fill it with something\n\t\t\n\t\t// then define an out of bounds padding that is all zero\n\t\t\n\t\tProcedure2<Long,ComplexFloat32Member> proc = new Procedure2<Long, ComplexFloat32Member>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void call(Long a, ComplexFloat32Member b) {\n\t\t\t\tb.setR(0);\n\t\t\t\tb.setI(0);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// tie the padding and the zero proc together. reads beyond data's length will return 0\n\t\t\n\t\tIndexedDataSource<ComplexFloat32Member> padded =\n\t\t\t\tnew ProcedurePaddedDataSource<>(G.CFLT, data, proc);\n\t\t\n\t\t// compute an ideal power of two size that the FFT algorithm will want to use\n\t\t\n\t\tlong idealSize = FFT.enclosingPowerOf2(data.size());\n\t\t\n\t\t// make the FixedsizeDataSource here that satisfies the FFT algorithm's requirements\n\t\t\n\t\tIndexedDataSource<ComplexFloat32Member> fixedSize =\n\t\t\t\tnew FixedSizeDataSource<>(idealSize, padded);\n\t\t\n\t\t// allocate the same amount of space for the results\n\t\t\n\t\tIndexedDataSource<ComplexFloat32Member> outList =\n\t\t\t\tnom.bdezonia.zorbage.storage.Storage.allocate(G.CFLT.construct(), idealSize);\n\n\t\t// and compute the FFT\n\t\t\n\t\tFFT.compute(G.CFLT, G.FLT, fixedSize, outList);\n\t}", "private static native void fourierDescriptor_0(long src_nativeObj, long dst_nativeObj, int nbElt, int nbFD);", "private void fft2D(Complex[] f, Complex[] F, int width, int height) {\r\n\r\n\t\tComplex[] riz = new Complex[width];\r\n\t\tComplex[] container = new Complex[width];\r\n\r\n\t\tfor (int i = 0; i < height; i++) {\r\n\t\t\tfor (int ii = 0; ii < width; ii++) {\r\n\t\t\t\triz[ii] = f[i * width + ii];\r\n\t\t\t}\r\n\r\n\t\t\tfft1D(riz, container, width);\r\n\r\n\t\t\tfor (int r = 0; r < width; r++) {\r\n\t\t\t\tF[i * width + r] = container[r];\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tComplex[] CLMriz = new Complex[height];\r\n\t\tComplex[] CLMcontainer = new Complex[height];\r\n\r\n\t\tfor (int i = 0; i < width; i++) {\r\n\t\t\tfor (int ii = 0; ii < height; ii++) {\r\n\t\t\t\tCLMriz[ii] = F[ii * width + i];\r\n\t\t\t}\r\n\r\n\t\t\tfft1D(CLMriz, CLMcontainer, height);\r\n\r\n\t\t\tfor (int c = 0; c < height; c++) {\r\n\t\t\t\tF[c * width + i] = CLMcontainer[c];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void perform() {\r\n\r\n final double TWO_PI = 2 * java.lang.Math.PI;\r\n double wt1Imag, wt1Real;\r\n double angle, delta;\r\n double imag, real, fTemp, fReal, fImag;\r\n int i, j, k, m, index1, index2, index3;\r\n int j1, j2, j3;\r\n int k1, k1Double;\r\n int iSwap, i1Swap, i2Swap, index, dim;\r\n int direction;\r\n int dimNumber;\r\n int newLength;\r\n int originalSliceSize;\r\n int newSliceSize = 1;\r\n int originalVolumeSize;\r\n int newVolumeSize;\r\n\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n direction = 1;\r\n } else {\r\n direction = -1;\r\n }\r\n\r\n if (image25D) {\r\n dimNumber = 2;\r\n } else {\r\n dimNumber = ndim;\r\n }\r\n newLength = newArrayLength;\r\n\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n\r\n if ( !image25D) {\r\n fireProgressStateChanged( -1, null, \"Centering data after FFT algorithm ...\");\r\n }\r\n center(realData, imagData);\r\n }\r\n\r\n if ( !image25D) {\r\n fireProgressStateChanged( -1, null, \"Running FFT algorithm ...\");\r\n }\r\n\r\n j1 = 1;\r\n dim = 1;\r\n for (i = 0; (i < dimNumber) && !threadStopped; i++) {\r\n j1 *= dim;\r\n dim = newDimLengths[i];\r\n j2 = j1 * dim;\r\n j3 = j2 * (newLength / (dim * j1));\r\n\r\n i1Swap = 0;\r\n\r\n for (index1 = 0; (index1 < j2) && !threadStopped; index1 += j1) {\r\n\r\n for (index2 = index1; (index2 < (index1 + j1)) && (index1 < i1Swap); index2++) {\r\n\r\n for (index3 = index2; index3 < j3; index3 += j2) {\r\n i2Swap = -index1 + index3 + i1Swap;\r\n\r\n fTemp = imagData[index3];\r\n imagData[index3] = imagData[i2Swap];\r\n imagData[i2Swap] = fTemp;\r\n\r\n fTemp = realData[index3];\r\n realData[index3] = realData[i2Swap];\r\n realData[i2Swap] = fTemp;\r\n }\r\n }\r\n\r\n for (iSwap = j2 / 2; (iSwap >= j1) && (iSwap < (i1Swap + 1)); iSwap >>= 1) {\r\n i1Swap = i1Swap - iSwap;\r\n }\r\n\r\n i1Swap = i1Swap + iSwap;\r\n }\r\n for (k1 = j1; (k1 < j2) && !threadStopped; k1 <<= 1) {\r\n delta = TWO_PI / (k1 << 1) * direction * j1;\r\n angle = 0;\r\n for (index1 = 0, angle = 0; index1 < k1; index1 += j1) {\r\n wt1Imag = java.lang.Math.sin(angle);\r\n wt1Real = java.lang.Math.cos(angle);\r\n angle += delta;\r\n for (index2 = index1; index2 < (index1 + j1); index2++) {\r\n k1Double = k1 << 1;\r\n for (index3 = index2; index3 < j3; index3 += k1Double) {\r\n index = index3 + k1;\r\n fReal = realData[index];\r\n fImag = imagData[index];\r\n imag = ( (fImag * wt1Real) - (fReal * wt1Imag));\r\n real = ( (fReal * wt1Real) + (fImag * wt1Imag));\r\n imagData[index] = imagData[index3] - imag;\r\n realData[index] = realData[index3] - real;\r\n imagData[index3] = imagData[index3] + imag;\r\n realData[index3] = realData[index3] + real;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if ( !image25D) {\r\n fireProgressStateChanged( (Math.round(10 + ((i + 1) / ndim * 80))), null, null);\r\n }\r\n }\r\n\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n\r\n if ( !image25D) {\r\n fireProgressStateChanged( -1, null, \"Centering data before inverse FFT ...\");\r\n }\r\n\r\n center(realData, imagData);\r\n }\r\n\r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n \tif (ndim >= 2) {\r\n \t\tnewSliceSize = newDimLengths[0]*newDimLengths[1];\r\n \t}\r\n \tif (complexInverse) {\r\n \t\tfor (i = 0; i < newLength; i++) {\r\n \t\t\tif (image25D) {\r\n \t\t\t\trealData[i] = realData[i] / newSliceSize;\r\n \t\t\t\timagData[i] = imagData[i] / newSliceSize;\r\n \t\t\t}\r\n \t\t\telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t imagData[i] = imagData[i] / newLength;\r\n \t\t\t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[2 * AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t for (i = 0; i < originalDimLengths[0]; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t } else if (ndim == 2) {\r\n\t for (i = 0; i < originalDimLengths[1]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[0]; j++) {\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)] = realData[i*newDimLengths[0] + j];\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)+1] = imagData[i*newDimLengths[0] + j];\r\n\t \t}\r\n\t }\r\n\t } else if (ndim == 3) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t for (i = 0; i < originalDimLengths[2]; i++) {\r\n\t for (j = 0; j < originalDimLengths[1]; j++) {\r\n\t for (k = 0; k < originalDimLengths[0]; k++) {\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)] =\r\n\t realData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)+1] =\r\n\t\t imagData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t }\r\n\t }\r\n\t }\r\n\t } else if (ndim == 4) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t originalVolumeSize = originalSliceSize * originalDimLengths[2];\r\n\t newVolumeSize = newSliceSize * newDimLengths[2];\r\n\t for (i = 0; i < originalDimLengths[3]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[2]; j++) {\r\n\t \t\tfor (k = 0; k < originalDimLengths[1]; k++) {\r\n\t \t\t\tfor (m = 0; m < originalDimLengths[0]; m++) {\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)] =\r\n\t realData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)+1] =\r\n\t imagData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t}\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t\t }\t\r\n \t} // if (complexInverse)\r\n \telse { // !complexInverse\r\n\t imagData = null;\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tif (image25D) {\r\n\t \t realData[i] = realData[i] / newSliceSize;\t\r\n\t \t}\r\n\t \telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t // imagData[i] = imagData[i] / newLength;\r\n\t \t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t System.arraycopy(realData, 0, finalData, 0, originalDimLengths[0]);\r\n\t } else if (ndim == 2) {\r\n\t ArrayUtil.copy2D(realData, 0, newDimLengths[0], newDimLengths[1], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], false);\r\n\t } else if (ndim == 3) {\r\n\t ArrayUtil.copy3D(realData, 0, newDimLengths[0], newDimLengths[1], newDimLengths[2], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], originalDimLengths[2], false);\r\n\t } else if (ndim == 4) {\r\n\t ArrayUtil.copy4D(realData, newDimLengths[0], newDimLengths[1], newDimLengths[2], dimLengths[3],\r\n\t finalData, originalDimLengths[0], originalDimLengths[1], originalDimLengths[2],\r\n\t originalDimLengths[3], false);\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t\t }\r\n \t} // else !complexInverse\r\n } // if (transformDir == AlgorithmFFT2.INVERSE)\r\n\r\n }", "@Override\n public void onFftDataCapture(Visualizer visualizer, byte[] fft,\n int samplingRate) {\n\n }", "public ArrayList<ComplexNumber> FFTHelper(ArrayList<ComplexNumber> waveformComplexList) {\n if (waveformComplexList == null) {\n throw new NullPointerException(\"It's null, you haven't load the file yet\");\n }\n int N = waveformComplexList.size();\n if (N == 1) {\n // can not divide only 1 instance into 2 half, so just return it\n return waveformComplexList;\n }\n ArrayList<ComplexNumber> xeven = new ArrayList<ComplexNumber>();\n ArrayList<ComplexNumber> xodd = new ArrayList<ComplexNumber>();\n for (int i = 0; i < N / 2; i++) {\n xeven.add(null);\n xodd.add(null);\n }\n\n for (int k = 0; k < N / 2; k++) {\n xeven.set(k, waveformComplexList.get(k * 2));\n xodd.set(k, waveformComplexList.get(1 + k * 2));\n }\n\n // do the recursion DFS\n ArrayList<ComplexNumber> Xeven = FFTHelper(xeven);\n ArrayList<ComplexNumber> Xodd = FFTHelper(xodd);\n\n // initiallize arrayList X\n ArrayList<ComplexNumber> X = new ArrayList<ComplexNumber>();\n for (int i = 0; i < N; i++) {\n X.add(new ComplexNumber());\n }\n\n // since the period is periodic , so each corresponding value is match, use d&c to\n // assign and calculate X from Xeven, Xodd and W[k]\n for (int k = 0; k < N / 2; k++) {\n // set up & assign the Maths value\n double img = -1 * (k * 2 * Math.PI) / N;// (2PI*k)/N\n double img1 = -1 * ((k + N / 2) * 2 * Math.PI) / N;// (2PI*(k+N/2))/N\n // Xeven(k)+Xodd(K)*W(K,N)\n ComplexNumber W_K_N = ComplexNumber.exp(new ComplexNumber(0, img));\n // Xeven(k)+Xodd(K)*W(K+N/2,N)\n ComplexNumber W_KN2_N = ComplexNumber.exp(new ComplexNumber(0, img1));\n // assert W_KN2_N.getIm() != 0;\n // ComplexNumber or1 = X.get(k);\n X.set(k,\n ComplexNumber.add(Xeven.get(k), ComplexNumber.multiply(Xodd.get(k), W_K_N)));\n\n int nextPeriodIndex = k + N / 2;\n // ComplexNumber or2 = X.get(nextPeriodIndex);\n X.set(nextPeriodIndex,\n ComplexNumber.add(Xeven.get(k), ComplexNumber.multiply(Xodd.get(k), W_KN2_N)));\n }\n\n return X;\n }", "private void plotAmplitudeSpectrum(Sampling st, float[] f, \n int itmin, int itmax, String title) {\n int nt = itmax-itmin;\n double dt = st.getDelta();\n double ft = st.getValue(itmin);\n float[] subf = zerofloat(nt);\n Sampling subst = new Sampling(nt,dt,ft);\n for (int i=0; i<nt; ++i) \n subf[i] = f[itmin+i];\n\n //Frequency sampling\n int nfft = FftReal.nfftSmall(4*nt);//more time sample, the finer freq. samples\n int nf = nfft/2+1;\n double df = 1.0/(nfft*dt);\n double ff = 0.0;\n Sampling sf = new Sampling(nf,df,ff);\n float[] amp = computeAmplitudeSpectrum(subst,sf,nfft,subf);\n plotSpectrum(sf,amp,title);\n }", "public Complex[] fourierTransfrom(Img i) {\n Complex[] F = new Complex[i.width * i.height];\n for (int u = 0; u < i.height; u++) {\n for (int v = 0; v < i.width; v++) {\n F[u * i.width + v] = new Complex();\n for (int x = 0; x < i.height; x++) {\n for (int y = 0; y < i.width; y++) {\n double f = (double) (i.img[x * i.width + y] & 0xFF) * Math.pow(-1, x + y);\n double theta = -2 * Math.PI * (u * x / (double) i.height + v * y / (double) i.width);\n F[u * i.width + v].plus(new Complex(Math.cos(theta) * f, Math.sin(theta) * f));\n }\n }\n }\n }\n return F;\n }", "static double triangleWave(double timeInSeconds, double frequency) {\r\n\t\treturn 0;\r\n\t}", "public MagnitudeSignal(ComplexSignal s) {\n\t\tlength = s.length();\n\t\tdata = new float[length];\n\t\tfloat r, im;\n\t\tfor (int x = 0; x < s.length; x++) {\n\t\t\tr = s.getReal(x);\n\t\t\tim = s.getImag(x);\n\t\t\tdata[x] = (float) Math.sqrt(r * r + im * im);\n\t\t}\n\t}", "private double[] getPartitionedFrequencyMagnitudes(\r\n double frequency,\r\n double[][] partitionedAndTransformedData,\r\n int sampleRate) {\r\n\r\n double[] magnitudes = new double[partitionedAndTransformedData.length];\r\n \r\n for (int i = 0; i < magnitudes.length; i++) {\r\n magnitudes[i] = SoundMath.getMagnitudeOfFrequency(\r\n frequency,\r\n partitionedAndTransformedData[i],\r\n sampleRate);\r\n }\r\n \r\n return magnitudes;\r\n }", "public float[] yFFT(float[] y) {\n\n //copy the new data.\n System.arraycopy(y, 0, this.yFFTSegment, 0, this.fftSize);\n //calcuate frequency domain of block 0\n this.fft.realForward(this.yFFTSegment);\n\n return this.yFFTSegment;\n }", "private short[] generateSineInTimeDomain(float frequency) {\n short sample[] = new short[sample_size];\n for(int i = 0; i < sample.length; ++i) {\n float currentTime = (float)(i) / samplingRate;\n sample[i] = (short) (Short.MAX_VALUE * sin(Math.PI * 2 * frequency * currentTime));\n }\n return sample;\n }", "@Test\n public void testDFTOneFreq() {\n for (int freq = 0; freq < 1000; freq += 200) {\n SoundWave wave = new SoundWave(freq, 5, 0.5, 0.1);\n double maxFreq = wave.highAmplitudeFreqComponent();\n assertEquals(freq, maxFreq, 0.00001);\n }\n }", "static double sineWave(double timeInSeconds, double frequency) {\r\n\t\tdouble result= Math.sin(timeInSeconds);\r\n\t\t\t\r\n\t\treturn result; // hint: use Math.sin(...)\r\n\t}", "static double sawtoothWave(double timeInSeconds, double frequency) {\r\n\t\treturn 0;\t\t\r\n\t}", "public float findFrequency(ArrayList<Float> wave){\n\r\n ArrayList<Float> newWave = new ArrayList<>();\r\n\r\n for(int i=0;i<wave.size()-4;i++){\r\n newWave.add((wave.get(i)+wave.get(i+1)+wave.get(i+2)+wave.get(i+4))/4f);\r\n }\r\n\r\n\r\n boolean isBelow = wave1.get(0)<triggerVoltage;\r\n\r\n ArrayList<Integer> triggerSamples = new ArrayList<>();\r\n\r\n\r\n System.out.println(\"starting f calc\");\r\n\r\n for(int i=1;i<newWave.size();i++){\r\n if(isBelow){\r\n if(newWave.get(i)>triggerVoltage){\r\n triggerSamples.add(i);\r\n isBelow=false;\r\n }\r\n }else{\r\n if(newWave.get(i)<triggerVoltage){\r\n triggerSamples.add(i);\r\n isBelow=true;\r\n }\r\n }\r\n }\r\n System.out.println(\"F len in \"+triggerSamples.size());\r\n\r\n ArrayList<Float> freqValues = new ArrayList<>();\r\n\r\n\r\n for(int i=0;i<triggerSamples.size()-2;i++){\r\n freqValues.add(1/(Math.abs(SecondsPerSample*(triggerSamples.get(i)-triggerSamples.get(i+2)))));\r\n }\r\n\r\n float finalAVG =0;\r\n for (Float f : freqValues) {\r\n finalAVG+=f;\r\n }\r\n finalAVG/=freqValues.size();\r\n\r\n\r\n return finalAVG;\r\n //System.out.println(finalAVG);\r\n }", "public void transform(double[] x) {\r\n int i,j;\r\n double sumWindow=nn*nn;\r\n\r\n System.arraycopy(x,0,data,1,n);\r\n if(winNum>0) {\r\n for(i=0,j=1;i<nn;i++) {\r\n data[j]=data[j]*winMult[i];\r\n j++;\r\n data[j]=data[j]*winMult[i];\r\n j++;\r\n sumWindow=sumWindow+winMult[i]*winMult[i];\r\n }\r\n }\r\n/* Test to plot windowed function\r\n nSpectrum++;\r\n for(i=0,j=0;i<nn;i++) {\r\n x[j]=i;\r\n j++;\r\n x[j]=data[j];\r\n j++;\r\n }\r\n if(ncurve>=0) ncurve = graph.deleteAllCurves();\r\n ncurve = graph.addCurve(x,nn,Color.blue);\r\n graph.paintAll=true;\r\n graph.repaint();\r\n*/\r\n four1(data,nn,1);\r\n nSpectrum++;\r\n x[0]=0;\r\n spectrum[0]+=(data[0]*data[0]+data[1]*data[1])/sumWindow;\r\n for(i=1,j=2;i<nn/2;i++) {\r\n x[j]=i*scale;\r\n j++;\r\n spectrum[i]+=2.*(data[j]*data[j]+data[j+1]*data[j+1])/sumWindow;\r\n j++;\r\n }\r\n x[j]=(nn/2)*scale;\r\n j++;\r\n spectrum[nn/2]+=(data[j]*data[j]+data[j+1]*data[j+1])/sumWindow;\r\n for(i=0,j=1;i<=nn/2;i++) {\r\n x[j]=0.434*Math.log(floor+spectrum[i]/nSpectrum);\r\n j+=2;\r\n }\r\n }", "private int buildSawtoothForFrequency(int freq,int sampleRate, short[] buffer) {\n\t\t\tint cycleLength=sampleRate/freq;\n\t\t\tint startPosition=cycleLength/2;\n\t\t\t\n\t\t\tint noOfCycles=buffer.length/cycleLength;\n\t\t\tif(noOfCycles<=0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t\n\t\t\tint i;\n\t\t\tfor(i=0;i<noOfCycles*cycleLength;++i) {\n\t\t\t\tbuffer[i]=(short)(32767*(-2.0/Math.PI)*Math.atan(1/Math.tan((Math.PI * (i+startPosition) / (sampleRate))/(1.0/freq))));\n\t\t\t}\n\t\t\t\n\t\t\treturn i;\n\t\t\t\n\t\t}", "@Test\n public void testDFTMultipleFreq() {\n int freq1;\n int freq2;\n int freq3;\n for (int i = 1; i < 10; i += 2) {\n freq1 = i * 100;\n freq2 = i * 200;\n freq3 = i * 300;\n SoundWave wave1 = new SoundWave(freq1, 0, 0.3, 0.1);\n SoundWave wave2 = new SoundWave(freq2, 2, 0.3, 0.1);\n SoundWave wave3 = new SoundWave(freq3, 3, 0.3, 0.1);\n SoundWave wave = wave1.add(wave2.add(wave3));\n\n double maxFreq = wave.highAmplitudeFreqComponent();\n assertEquals(freq3, maxFreq, 0.00001);\n }\n }", "static double squareWave(double timeInSeconds, double frequency) {\r\n\t\treturn 0;\r\n\t}", "void doRun() {\n\n\t Object line;\n\t Method wrmeth = null;\n\t try {\n\t\tClass afclass = Class.forName(\"javax.sound.sampled.AudioFormat\");\n\t\tConstructor cstr = afclass.getConstructor(\n\t\t new Class[] { float.class, int.class, int.class,\n\t\t\t\t boolean.class, boolean.class });\n\t\tObject format = cstr.newInstance(new Object[]\n\t\t { new Float(rate), new Integer(16), new Integer(1),\n\t\t new Boolean(true), new Boolean(true) });\n\t\tClass ifclass = Class.forName(\"javax.sound.sampled.DataLine$Info\");\n\t\tClass sdlclass =\n\t\t Class.forName(\"javax.sound.sampled.SourceDataLine\");\n\t\tcstr = ifclass.getConstructor(\n\t\t new Class[] { Class.class, afclass });\n\t\tObject info = cstr.newInstance(new Object[]\n\t\t { sdlclass, format });\n\t\tClass asclass = Class.forName(\"javax.sound.sampled.AudioSystem\");\n\t\tClass liclass = Class.forName(\"javax.sound.sampled.Line$Info\");\n\t\tMethod glmeth = asclass.getMethod(\"getLine\",\n\t\t\t\t\t\t new Class[] { liclass });\n\t\tline = glmeth.invoke(null, new Object[] {info} );\n\t\tMethod opmeth = sdlclass.getMethod(\"open\",\n\t\t\t new Class[] { afclass, int.class });\n\t\topmeth.invoke(line, new Object[] { format,\n\t\t\t new Integer(4096) });\n\t\tMethod stmeth = sdlclass.getMethod(\"start\", null);\n\t\tstmeth.invoke(line, null);\n\t\tbyte b[] = new byte[1];\n\t\twrmeth = sdlclass.getMethod(\"write\",\n\t\t\t new Class[] { b.getClass(), int.class, int.class });\n\t } catch (Exception e) {\n\t\te.printStackTrace();\n\t\treturn;\n\t }\n\n\t int playSampleCount = 16384;\n\t FFT playFFT = new FFT(playSampleCount);\n\t double playfunc[] = null;\n\t byte b[] = new byte[4096];\n\t int offset = 0;\n\t int dampCount = 0;\n\t double mx = .2;\n\t\t \n\t while (soundCheck.getState() && applet.ogf != null) {\n\t\tdouble damper = dampcoef*1e-2;\n\t\t\n\t\tif (playfunc == null || changed) {\n\t\t playfunc = new double[playSampleCount*2];\n\t\t int i;\n\t\t //double bstep = 2*pi*440./rate;\n\t\t //int dfreq0 = 440; // XXX\n\t\t double n = 2*pi*20.0*\n\t\t\tjava.lang.Math.sqrt((double)tensionBarValue);\n\t\t n /= omega[1];\n\t\t changed = false;\n\t\t mx = .2;\n\t\t for (i = 1; i != maxTerms; i++) {\n\t\t\tint dfreq = (int) (n*omega[i]);\n\t\t\tif (dfreq >= playSampleCount)\n\t\t\t break;\n\t\t\tplayfunc[dfreq] = magcoef[i];\n\t\t }\n\t\t playFFT.transform(playfunc, true);\n\t\t for (i = 0; i != playSampleCount; i++) {\n\t\t\tdouble dy = playfunc[i*2]*Math.exp(damper*i);\n\t\t\tif (dy > mx) mx = dy;\n\t\t\tif (dy < -mx) mx = -dy;\n\t\t }\n\t\t dampCount = offset = 0;\n\t\t}\n\t\t\n\t\tdouble mult = 32767/mx;\n\t\tint bl = b.length/2;\n\t\tint i;\n\t\tfor (i = 0; i != bl; i++) {\n\t\t short x = (short) (playfunc[(i+offset)*2]*mult*\n\t\t\t\t Math.exp(damper*dampCount++));\n\t\t b[i*2] = (byte) (x/256);\n\t\t b[i*2+1] = (byte) (x & 255);\n\t\t}\n\t\toffset += bl;\n\t\tif (offset == playfunc.length/2)\n\t\t offset = 0;\n\n\t\ttry {\n\t\t wrmeth.invoke(line, new Object[] { b, new Integer(0),\n\t\t\t\t\t\t new Integer(b.length) });\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t break;\n\t\t}\n\t }\n\t}", "@Test\r\n public void phasorsOnNominalFrequency(){ \r\n double precision = 1e-13;\r\n double frequencyDeviation = 0.0;\r\n double amplitude = 100.0;\r\n double phase = Math.PI/4;\r\n int limitPointNumbers = 36;\r\n \r\n double[] sinArray = new double[WINDOW_WIDTH];\r\n double[] cosArray = new double[WINDOW_WIDTH];\r\n \r\n for(int i=0;i<cosArray.length;i++){\r\n cosArray[i] = Math.cos( i * 2.0 * Math.PI / cosArray.length ); \r\n sinArray[i] = Math.sin( i * 2.0 * Math.PI / cosArray.length ); \r\n }\r\n \r\n \r\n RecursiveDFT recursiveDFT = new RecursiveDFT(cosArray,sinArray);\r\n CosineFunction cosine = new CosineFunction(amplitude,phase ,WINDOW_WIDTH ,NOMINAL_FREQUECY); \r\n List<Double> samples = Utils.generateSamples(cosine,limitPointNumbers,frequencyDeviation);\r\n \r\n List<Complex> phasors = Utils.getPhasors(samples,recursiveDFT).stream()\r\n .filter(phasor->phasor!=null)\r\n .collect(Collectors.toList());\r\n \r\n \r\n // Amplitude and phase are phaser representation \r\n assertTrue(\"Phase must be constant and equals to pi/4 for all samples on nominal frequency 50Hz\",\r\n isPhaseConstant(phase , phasors, precision)\r\n ); \r\n assertTrue(\"Amplitude must be constant and equals to 100/sqrt(2) for all samples on nominal frequency 50Hz\",\r\n isAmplitudeConstant(100/Math.sqrt(2), phasors, precision)\r\n ); \r\n }", "public abstract double samplingFrequency();", "public void create_dataset(double sampling_rate, double freq, int n) {\n double amplitude = 10.0d;\n double constant = freq/sampling_rate*2.0d*Math.PI;\n double sumTWD=0.0d;\n\n for (int i = 0; i < n; i++) {\n NavigationTools.TWD.add((Math.sin((double)i*constant)+Math.random()*0.2d)*amplitude);\n sumTWD += NavigationTools.TWD.getLast();\n }\n\n NavigationTools.TWD_longAVG=sumTWD/(double)n;\n }", "private static double[] note(double hz, double duration, double amplitude) {\n int N = (int) (StdAudio.SAMPLE_RATE * duration);\n double[] a = new double[N + 1];\n for (int i = 0; i <= N; i++)\n a[i] = amplitude * Math.sin(2 * Math.PI * i * hz / StdAudio.SAMPLE_RATE);\n return a;\n }", "private void ifft2D(Complex[] F, Complex[] f, int width, int height) {\r\n\t\r\n\t\r\n\t\tComplex[] riz = new Complex[width*height];\r\n\t\tComplex[] container = new Complex[width*height];\r\n\r\n\r\n\t\t\tfor (int ii = 0; ii < width*height; ii++)\r\n\t\t\t\tcontainer[ii] = F[ii].getConjugate();\r\n\t\t\r\n\t\t\tfft2D(container, riz, width, height);\r\n\r\n\t\t\tfor (int r = 0; r < width*height; r++) {\r\n\t\t\tf[r] = riz[r].getConjugate();\r\n\t\t\tf[r] = f[r].div((double)width*height); \r\n\t\t\t \r\n\t\t\t}\r\n\t}", "public void idft(double[] x, double[] y) {\n\n dft(x, y);\n\n double scale = 1.0 / N;\n\n x[0] *= scale; // special case at DC\n y[0] *= scale;\n x[N / 2] *= scale; // special case at Nyquist\n y[N / 2] *= scale;\n\n int i = 1;\n int j = N - 1;\n while (i < j) {\n double temp = x[i];\n x[i] = x[j] * scale;\n x[j] = temp * scale;\n temp = y[i];\n y[i] = y[j] * scale;\n y[j] = temp * scale;\n i++;\n j--;\n }\n\n }", "void genTone(){\n for (int i = 0; i < numSamples; ++i) {\n sample[i] = Math.sin(2 * Math.PI * i / (sampleRate/freqOfTone));\n }\n\n // convert to 16 bit pcm sound array\n // assumes the sample buffer is normalised.\n int idx = 0;\n for (final double dVal : sample) {\n // scale to maximum amplitude\n final short val = (short) ((dVal * 32767));\n // in 16 bit wav PCM, first byte is the low order byte\n generatedSnd[idx++] = (byte) (val & 0x00ff);\n generatedSnd[idx++] = (byte) ((val & 0xff00) >>> 8);\n }\n }", "float getFrequency();", "public void start() {\n enable = true;\n audioRecord.startRecording();\n Thread monitorThread = new Thread(new Runnable() {\n public void run() {\n char lastDtmf = ' ';\n do {\n audioRecord.read(recordBuffer, 0, BUFFER_SIZE, AudioRecord.READ_BLOCKING);\n im = zero.clone(); //memset, I hope?\n System.arraycopy(recordBuffer, 0, re, 0, BUFFER_SIZE); //memset, I presume\n fft.fft(re, im);\n int f1 = 0, f2 = 0;\n char dtmf = ' ';\n for (int i = 0; i < BUFFER_SIZE/2; i++) {\n if ((Math.abs(im[i]) > 10)) {\n if ((i > 258) && (i < 261))\n f1 = 697;\n if ((i > 285) && (i < 289))\n f1 = 770;\n if ((i > 315) && (i < 318))\n f1 = 852;\n if ((i > 349) && (i < 352))\n f1 = 941;\n if ((i > 446) && (i < 451))\n f2 = 1209;\n if ((i > 493) && (i < 505))\n f2 = 1336;\n if ((i > 544) && (i < 553))\n f2 = 1477;\n if ((i > 605) && (i < 608))\n f2 = 1633;\n }\n }\n if ((f1 == 697) && (f2 == 1209))\n dtmf = '1';\n if ((f1 == 697) && (f2 == 1336))\n dtmf = '2';\n if ((f1 == 697) && (f2 == 1477))\n dtmf = '3';\n if ((f1 == 697) && (f2 == 1633))\n dtmf = 'A';\n if ((f1 == 770) && (f2 == 1209))\n dtmf = '4';\n if ((f1 == 770) && (f2 == 1336))\n dtmf = '5';\n if ((f1 == 770) && (f2 == 1477))\n dtmf = '6';\n if ((f1 == 770) && (f2 == 1633))\n dtmf = 'B';\n if ((f1 == 852) && (f2 == 1209))\n dtmf = '7';\n if ((f1 == 852) && (f2 == 1336))\n dtmf = '8';\n if ((f1 == 852) && (f2 == 1477))\n dtmf = '9';\n if ((f1 == 852) && (f2 == 1633))\n dtmf = 'C';\n if ((f1 == 941) && (f2 == 1209))\n dtmf = '*';\n if ((f1 == 941) && (f2 == 1336))\n dtmf = '0';\n if ((f1 == 941) && (f2 == 1477))\n dtmf = '#';\n if ((f1 == 941) && (f2 == 1633))\n dtmf = 'D';\n\n if (dtmf == ' ') {\n lastDtmf = ' ';\n } else {\n if (listener != null)\n if (dtmf != lastDtmf) {\n lastDtmf = dtmf;\n listener.receivedDTMF(dtmf);\n }\n }\n } while (enable);\n audioRecord.stop();\n }\n });\n monitorThread.start();\n }", "public static double[][] doFraming(double[] samples){\n\t\tdouble[][] framedSignal;\n\t\tint noOfFrames = 2 * samples.length / samplePerFrame - 1;\n\t\t/*System.out.println(\"noOfFrames \" + noOfFrames + \" samplePerFrame \" + samplePerFrame + \" EPD length \"\n\t\t\t\t+ samples.length);*/\n\t\tframedSignal = new double[noOfFrames][samplePerFrame];\n\t\tfor (int i = 0; i < noOfFrames; i++) {\n\t\t\tint startIndex = (i * samplePerFrame / 2);\n\t\t\tfor (int j = 0; j < samplePerFrame; j++) {\n\t\t\t\tframedSignal[i][j] = samples[startIndex + j];\n\t\t\t}\n\t\t}\n\t\treturn framedSignal;\n\t}", "@Override\n public void onRender(Canvas canvas, FFTData data, Rect rect)\n {\n }", "private static double fds_h(Vec v) { return 2*ASTMad.mad(new Frame(v), null, 1.4826)*Math.pow(v.length(),-1./3.); }", "void genTone() {\n for (int i = 0; i < numSamples; ++i) {\n sample[i] = Math.sin(2 * Math.PI * i / (sampleRate / freqOfTone));\n }\n\n // convert to 16 bit pcm sound array\n // assumes the sample buffer is normalised.\n int idx = 0;\n for (final double dVal : sample) {\n // scale to maximum amplitude\n final short val = (short) ((dVal * 32767));\n // in 16 bit wav PCM, first byte is the low order byte\n generatedSnd[idx++] = (byte) (val & 0x00ff);\n generatedSnd[idx++] = (byte) ((val & 0xff00) >>> 8);\n\n }\n }", "void genTone() {\n for (int i = 0; i < numSamples; ++i) {\n sample[i] = Math.sin(2 * Math.PI * i / (sampleRate / freqOfTone));\n }\n\n // convert to 16 bit pcm sound array\n // assumes the sample buffer is normalised.\n int idx = 0;\n for (final double dVal : sample) {\n // scale to maximum amplitude\n final short val = (short) ((dVal * 32767));\n // in 16 bit wav PCM, first byte is the low order byte\n generatedSnd[idx++] = (byte) (val & 0x00ff);\n generatedSnd[idx++] = (byte) ((val & 0xff00) >>> 8);\n\n }\n }", "public void calculateSpeedFunction(double t)\r\n {\n \r\n if(speedChoice == 0) // Constant, positive F\r\n {\r\n Fc = 1.0;\r\n } else if (speedChoice == 1) {\r\n Fc = Math.sin(t/10);\r\n } else if (speedChoice == 2) {\r\n Fc = -1.0; \r\n } else {\r\n for(int i=0; i<pixelsWide; i++) {\r\n for(int j=0; j<pixelsHigh; j++) {\r\n F[i][j] = 1.0;\r\n }\r\n }\r\n }\r\n \r\n }", "public static double[] makeFreqArray( double timestep, int arraylen) {\r\n if ((arraylen == 0) || (Math.abs(timestep - 0.0) < OPS_EPSILON)) {\r\n return new double[0];\r\n }\r\n int halflen = arraylen / 2;\r\n double freqstep = 1.0 / (arraylen * timestep);\r\n double[] freq = new double[halflen];\r\n for (int i = 0; i < halflen; i++) {\r\n freq[i] = (i+1) * freqstep;\r\n }\r\n return freq;\r\n }", "private void performMT() {\r\n int direction;\r\n int dimNumber;\r\n int newLength;\r\n int i, j, k, m;\r\n int originalSliceSize;\r\n int newSliceSize = 1;\r\n int originalVolumeSize;\r\n int newVolumeSize;\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n direction = 1;\r\n } else {\r\n direction = -1;\r\n }\r\n\r\n if (image25D) {\r\n dimNumber = 2;\r\n } else {\r\n dimNumber = ndim;\r\n }\r\n newLength = newArrayLength;\r\n final int xdim = newDimLengths[0];\r\n final int ydim = newDimLengths[1];\r\n final int zdim = (newDimLengths.length == 3) ? newDimLengths[2] : 1;\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n fireProgressStateChanged( -1, null, \"Centering data before FFT algorithm ...\");\r\n center(realData, imagData);\r\n }\r\n\r\n fireProgressStateChanged( -1, null, \"Running FFT algorithm ...\");\r\n\r\n //System.out.println(\"Number of Threads: \" + nthreads);\r\n if (threadStopped) {\r\n return;\r\n }\r\n /**\r\n * Initialize the progress step.\r\n */\r\n if (image25D) {\r\n setProgressStep((float) (100.0 / (nthreads * Math.log(xdim * ydim) / Math.log(2.0))));\r\n } else {\r\n setProgressStep((float) (100.0 / (nthreads * Math.log(xdim * ydim * zdim) / Math.log(2.0))));\r\n }\r\n\r\n final CountDownLatch doneSignalX = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_YZ);\r\n for (i = 0; i < nthreads; i++) {\r\n \tfinal int nslices;\r\n \tif (zdim < nthreads) {\r\n \t if (i < zdim) {\r\n \t\t nslices = 1;\r\n \t }\r\n \t else {\r\n \t\t nslices = 0;\r\n \t }\r\n \t}\r\n \telse {\r\n nslices = zdim / nthreads;\r\n \t} \r\n final int sliceLen = xdim * ydim;\r\n final int start = i * nslices * sliceLen;\r\n final int end = start + 1;\r\n final int length = (i + 1) * nslices * sliceLen;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, 1, xdim, length, dir);\r\n doneSignalX.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalX.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n final CountDownLatch doneSignalY = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_ZX);\r\n for (i = 0; i < nthreads; i++) {\r\n final int nslices = ydim / nthreads;\r\n final int start = i * nslices;\r\n final int end = (i + 1) * nslices;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, xdim, xdim * ydim, xdim * ydim * zdim, dir);\r\n doneSignalY.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalY.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (dimNumber == 3) {\r\n final CountDownLatch doneSignalZ = new CountDownLatch(nthreads);\r\n AlgorithmFFT2.swapSlices(realData, imagData, xdim, ydim, zdim, AlgorithmFFT2.SLICE_XY);\r\n for (i = 0; i < nthreads; i++) {\r\n final int nslices = ydim / nthreads;\r\n final int start = i * nslices * xdim;\r\n final int end = (i + 1) * nslices * xdim;\r\n final int dir = direction;\r\n final Runnable task = new Runnable() {\r\n public void run() {\r\n doFFT(realData, imagData, start, end, xdim * ydim, xdim * ydim * zdim, xdim * ydim * zdim, dir);\r\n doneSignalZ.countDown();\r\n }\r\n };\r\n ThreadUtil.mipavThreadPool.execute(task);\r\n }\r\n try {\r\n doneSignalZ.await();\r\n } catch (final InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n fireProgressStateChanged( -1, null, \"Centering data after inverse FFT ...\");\r\n\r\n center(realData, imagData);\r\n }\r\n\r\n \r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n \tif (ndim >= 2) {\r\n \t\tnewSliceSize = newDimLengths[0]*newDimLengths[1];\r\n \t}\r\n \tif (complexInverse) {\r\n \t\tfor (i = 0; i < newLength; i++) {\r\n \t\t\tif (image25D) {\r\n \t\t\t\trealData[i] = realData[i] / newSliceSize;\r\n \t\t\t\timagData[i] = imagData[i] / newSliceSize;\r\n \t\t\t}\r\n \t\t\telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t imagData[i] = imagData[i] / newLength;\r\n \t\t\t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[2 * AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t for (i = 0; i < originalDimLengths[0]; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t } else if (ndim == 2) {\r\n\t for (i = 0; i < originalDimLengths[1]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[0]; j++) {\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)] = realData[i*newDimLengths[0] + j];\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)+1] = imagData[i*newDimLengths[0] + j];\r\n\t \t}\r\n\t }\r\n\t } else if (ndim == 3) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t for (i = 0; i < originalDimLengths[2]; i++) {\r\n\t for (j = 0; j < originalDimLengths[1]; j++) {\r\n\t for (k = 0; k < originalDimLengths[0]; k++) {\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)] =\r\n\t realData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)+1] =\r\n\t\t imagData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t }\r\n\t }\r\n\t }\r\n\t } else if (ndim == 4) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t originalVolumeSize = originalSliceSize * originalDimLengths[2];\r\n\t newVolumeSize = newSliceSize * newDimLengths[2];\r\n\t for (i = 0; i < originalDimLengths[3]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[2]; j++) {\r\n\t \t\tfor (k = 0; k < originalDimLengths[1]; k++) {\r\n\t \t\t\tfor (m = 0; m < originalDimLengths[0]; m++) {\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)] =\r\n\t realData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)+1] =\r\n\t imagData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t}\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t\t }\t\r\n \t} // if (complexInverse)\r\n \telse { // !complexInverse\r\n\t imagData = null;\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tif (image25D) {\r\n\t \t\trealData[i] = realData[i] / newSliceSize;\r\n\t \t}\r\n\t \telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t // imagData[i] = imagData[i] / newLength;\r\n\t \t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t System.arraycopy(realData, 0, finalData, 0, originalDimLengths[0]);\r\n\t } else if (ndim == 2) {\r\n\t ArrayUtil.copy2D(realData, 0, newDimLengths[0], newDimLengths[1], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], false);\r\n\t } else if (ndim == 3) {\r\n\t ArrayUtil.copy3D(realData, 0, newDimLengths[0], newDimLengths[1], newDimLengths[2], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], originalDimLengths[2], false);\r\n\t } else if (ndim == 4) {\r\n\t ArrayUtil.copy4D(realData, newDimLengths[0], newDimLengths[1], newDimLengths[2], dimLengths[3],\r\n\t finalData, originalDimLengths[0], originalDimLengths[1], originalDimLengths[2],\r\n\t originalDimLengths[3], false);\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t\t }\r\n \t} // else !complexInverse\r\n } // if (transformDir == AlgorithmFFT2.INVERSE)\r\n\r\n\r\n }", "protected static void makeSingleWave (double f, byte[] out)\n {\n double period = (double) SAMPLE_RATE / f;\n for (int i = 0; i < out.length; i++)\n {\n double angle = 2d * Math.PI * i / period;\n out[i] = (byte) (Math.sin (angle) * 127f);\n }\n }", "public double MACDSignal(int t)\n {\n Series macd = new Series();\n macd.x = new double[macd.size = t + 1];\n for(int i = 0; i<=t; i++)\n macd.x[i] = MACD(i);\n return macd.expMovingAverage(9, t);\n }", "private void ding(float freq, int durationInMillisecs, double cf) {\n this.dingFreq = freq;\n this.chirpFactor = cf;\n transientFrameCount = transientNumFrames = (int) Math.rint(frameRate * (transientDuration = durationInMillisecs / 1000.0));\n this.lambda = MultiWave.DECAY_MULTIPLE / transientDuration;\n }", "@Override\n public void draw() {\n if (!song.isPlaying()) {\n song.play(0);\n }\n fft.forward(song.mix);\n final float volume = song.getGain();\n\n //Calcul des \"scores\" (puissance) pour trois catégories de son\n //D'abord, sauvgarder les anciennes valeurs\n // Valeur précédentes, pour adoucir la reduction\n float oldScoreLow = scoreLow;\n float oldScoreMid = scoreMid;\n float oldScoreHi = scoreHi;\n\n //Réinitialiser les valeurs\n scoreLow = 0;\n scoreMid = 0;\n scoreHi = 0;\n\n //Calculer les nouveaux \"scores\"\n // Variables qui définissent les \"zones\" du spectre\n // Par exemple, pour les basses, on prend seulement les premières 4% du spectre total\n // 3%\n float specLow = 0.03f;\n for (int i = 0; i < fft.specSize() * specLow; i++) {\n scoreLow += fft.getBand(i);\n }\n\n // 12.5%\n float specMid = 0.125f;\n for (int i = (int) (fft.specSize() * specLow); i < fft.specSize() * specMid; i++) {\n scoreMid += fft.getBand(i);\n }\n\n for (int i = (int) (fft.specSize() * specMid); i < fft.specSize() * specHi; i++) {\n scoreHi += fft.getBand(i);\n }\n\n\n //Faire ralentir la descente.\n // Valeur d'adoucissement\n float scoreDecreaseRate = 25;\n if (oldScoreLow > scoreLow) {\n scoreLow = oldScoreLow - scoreDecreaseRate;\n }\n\n if (oldScoreMid > scoreMid) {\n scoreMid = oldScoreMid - scoreDecreaseRate;\n }\n\n if (oldScoreHi > scoreHi) {\n scoreHi = oldScoreHi - scoreDecreaseRate;\n }\n\n //Volume pour toutes les fréquences à ce moment, avec les sons plus haut plus importants.\n //Cela permet à l'animation d'aller plus vite pour les sons plus aigus, qu'on remarque plus\n float scoreGlobal = 0.66f * scoreLow + 0.8f * scoreMid + 1 * scoreHi;\n\n //Couleur subtile de background\n background(scoreLow / 100, scoreMid / 100, scoreHi / 100);\n\n //Cube pour chaque bande de fréquence\n for (int i = 0; i < nbCubes; i++) {\n //Valeur de la bande de fréquence\n float bandValue = fft.getBand(i);\n\n //La couleur est représentée ainsi: rouge pour les basses, vert pour les sons moyens et bleu pour les hautes.\n //L'opacité est déterminée par le volume de la bande et le volume global.\n cubes[i].display(scoreLow, scoreMid, scoreHi, bandValue, scoreGlobal);\n }\n\n //Murs lignes, ici il faut garder la valeur de la bande précédent et la suivante pour les connecter ensemble\n float previousBandValue = fft.getBand(0);\n\n //Distance entre chaque point de ligne, négatif car sur la dimension z\n float dist = -25;\n\n //Multiplier la hauteur par cette constante\n float heightMult = 2;\n\n //Pour chaque bande\n for (int i = 1; i < fft.specSize(); i++) {\n //Valeur de la bande de fréquence, on multiplie les bandes plus loins pour qu'elles soient plus visibles.\n float bandValue = fft.getBand(i) * (1 + (i / 50f));\n\n //Selection de la couleur en fonction des forces des différents types de sons\n stroke(100 + scoreLow, 100 + scoreMid, 100 + scoreHi, 255 - i);\n strokeWeight(1 + (scoreGlobal / 100));\n\n //ligne inferieure gauche\n line(0, height - (previousBandValue * heightMult), dist * (i - 1), 0, height - (bandValue * heightMult), dist * i);\n line((previousBandValue * heightMult), height, dist * (i - 1), (bandValue * heightMult), height, dist * i);\n line(0, height - (previousBandValue * heightMult), dist * (i - 1), (bandValue * heightMult), height, dist * i);\n\n //ligne superieure gauche\n line(0, (previousBandValue * heightMult), dist * (i - 1), 0, (bandValue * heightMult), dist * i);\n line((previousBandValue * heightMult), 0, dist * (i - 1), (bandValue * heightMult), 0, dist * i);\n line(0, (previousBandValue * heightMult), dist * (i - 1), (bandValue * heightMult), 0, dist * i);\n\n //ligne inferieure droite\n line(width, height - (previousBandValue * heightMult), dist * (i - 1), width, height - (bandValue * heightMult), dist * i);\n line(width - (previousBandValue * heightMult), height, dist * (i - 1), width - (bandValue * heightMult), height, dist * i);\n line(width, height - (previousBandValue * heightMult), dist * (i - 1), width - (bandValue * heightMult), height, dist * i);\n\n //ligne superieure droite\n line(width, (previousBandValue * heightMult), dist * (i - 1), width, (bandValue * heightMult), dist * i);\n line(width - (previousBandValue * heightMult), 0, dist * (i - 1), width - (bandValue * heightMult), 0, dist * i);\n line(width, (previousBandValue * heightMult), dist * (i - 1), width - (bandValue * heightMult), 0, dist * i);\n\n //Sauvegarder la valeur pour le prochain tour de boucle\n previousBandValue = bandValue;\n }\n\n //Murs rectangles\n for (int i = 0; i < nbMurs; i++) {\n //On assigne à chaque mur une bande, et on lui envoie sa force.\n float intensity = fft.getBand(i % ((int) (fft.specSize() * specHi)));\n murs[i].display(scoreLow, scoreMid, scoreHi, intensity, scoreGlobal);\n }\n }", "private void plotFtMagnitude(Complex2[][] data, int width, int height) {\n BufferedImage magnitudeImg = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n\n WritableRaster out = magnitudeImg.getRaster();\n\n double maxMagnitude = 0;\n\n for (int v = 0; v < height; v++) {\n for (int u = 0; u < width; u++) {\n Complex2 value = data[u][v];\n double magnitude = value.Betrag();\n\n if(magnitude > maxMagnitude) {\n maxMagnitude = magnitude;\n }\n }\n }\n\n for (int v = 0; v < height; v++) {\n for (int u = 0; u < width; u++) {\n int shiftedU = u;\n int shiftedV = v;\n\n // Get points centered around the middle of the image\n if(shiftedU >= (M / 2))\n shiftedU -= M;\n shiftedU += (M / 2);\n\n if(shiftedV >= (N / 2))\n shiftedV -= N;\n shiftedV += (N / 2);\n\n Complex2 value = data[u][v];\n\n // Scale values\n double magnitude = (value.Betrag() / maxMagnitude) * 255;\n\n out.setSample(shiftedU, shiftedV, 0, magnitude);\n out.setSample(shiftedU, shiftedV, 1, magnitude);\n out.setSample(shiftedU, shiftedV, 2, magnitude);\n }\n }\n\n CS450.setImageB(magnitudeImg);\n }", "public ComplexFrame toComplexFrame(float[] fftValues) {\n int length = resolution / 2 + 1;\n float[] real = new float[length];\n float[] imag = new float[length];\n\n //bin 0 and n/2 always have an imaginary value of 0\n real[0] = fftValues[0];\n imag[0] = 0;\n real[length - 1] = fftValues[1];\n imag[length - 1] = 0;\n for (int i = 1; i < resolution / 2; i++) {\n real[i] = fftValues[2 * i];\n imag[i] = fftValues[2 * i + 1];\n }\n return new ComplexFrame(real, imag);\n }", "public void genTone() {\n\t\tfor (int i = 0; i < numSamples; ++i) {\n\t\t\tsample[i] = -(Math.sin(2 * Math.PI * i / (sampleRate / freqOfTone)));\n\t\t}\n\n\t\t// convert to 16 bit pcm sound array\n\t\t// assumes the sample buffer is normalised.\n\t\tint idx = 0;\n\t\tfor (final double dVal : sample) {\n\t\t\t// scale to maximum amplitude\n\t\t\tfinal short val = (short) ((dVal * 32767));\n\t\t\t// in 16 bit wav PCM, first byte is the low order byte\n\t\t\tgeneratedSnd[idx++] = (byte) (val & 0x00ff);\n\t\t\tgeneratedSnd[idx++] = (byte) ((val & 0xff00) >>> 8);\n\n\t\t}\n\t}", "public float waveForm(double x, int wf, int fNum) {\n switch (wf) {\n case MultiWave.SINE:\n // return (float)Math.sin(x);\n return sine(x);\n\n case MultiWave.SAW:\n return (float) (x / Math.PI - 1f);\n\n case MultiWave.TRIANGLE:\n return (float) (1.0 - 2.0 * Math.abs(x - Math.PI) / Math.PI);\n\n case MultiWave.SQUARE:\n return (x < Math.PI) ? 1f : -1f;\n\n case MultiWave.VARIABLE: {\n double r = 0.0, s = 0.0;\n\n for (int i = MultiWave.SINE; i < MultiWave.VARIABLE; i++) {\n r += mixingCoefficients[fNum][i] * waveForm(x, i, -1);\n s += (mixingCoefficients[fNum][i] * mixingCoefficients[fNum][i]);\n }\n return (float) (r / Math.sqrt(s));\n }\n\n default:\n throw new RuntimeException();\n } // end switch\n }", "@Test\n public void addEchoSinWave() {\n int freq1;\n int freq2;\n int freq3;\n\n double[] zeros = {0, 0, 0};\n\n\n for (int i = 1; i < 10; i += 2) {\n int freq = i * 100;\n\n SoundWave wave2 = new SoundWave(zeros, zeros);\n\n SoundWave wave1 = new SoundWave(freq, 0, 0.5, 0.1);\n wave2.append(new SoundWave(freq, 0, 0.25, 0.1));\n SoundWave waveEcho = wave1.addEcho(3, 0.5);\n SoundWave waveAdd = wave1.add(wave2);\n\n Assert.assertArrayEquals(waveEcho.getRightChannel(),\n waveAdd.getRightChannel(), 0.00001);\n }\n }", "public static final int[] generateFFTIndices(final int l) {\r\n final int n = (int) (Math.log(l) / Math.log(2));\r\n final int l2 = (int) Math.pow(2, n);\r\n if (l != l2) {\r\n System.out.println(\"The value of l must be the power of 2: \" + l);\r\n return null;\r\n }\r\n\r\n final int[] indices = new int[l];\r\n for (int i = 0; i < n; i++) {\r\n final int max = (int) Math.pow(2, i);\r\n\r\n for (int j = 0; j < max; j++) {\r\n indices[max + j] += indices[j] + (int) Math.pow(2, n - i - 1);\r\n }\r\n }\r\n\r\n for (int i = 0; i < l; i++) {\r\n System.out.println(i + \"\\t\" + indices[i]);\r\n }\r\n return indices;\r\n }", "private double[] generateSinusoidalTone(int sinusoidCount, double frequency, double sampleRate) {\n int size = (int) Math.round(sinusoidCount * sampleRate / frequency);\n double twoPi = 2 * Math.PI;\n double[] audio = new double[size]; \n for(int i = 0; i < audio.length; i++) {\n double time = i / sampleRate;\n audio[i] = Math.sin(twoPi * frequency * time);\n }\n return audio;\n }", "private void convoluteMatrix(){\n\t\tDoubleFFT_2D fft = new DoubleFFT_2D(CELL_SIDE_COUNT,CELL_SIDE_COUNT);\n\t\tdouble[][] convolutedDoubles = Complex.complexToDoubleArray2D(convolutedMatrix);\n\t\tfft.complexForward(convolutedDoubles);\n\t\tconvolutedMatrix = Complex.doubleToComplexArray2D(convolutedDoubles); //F(B C F^-1(Q)) Pg. 182 Lee[05]\n\t}", "public static void getOriginalFrequencies(double[] f)\n {\n f[0] = 0.0866;\n f[1] = 0.0440;\n f[2] = 0.0391;\n f[3] = 0.0570;\n f[4] = 0.0193;\n f[5] = 0.0367;\n f[6] = 0.0581;\n f[7] = 0.0833;\n f[8] = 0.0244;\n f[9] = 0.0485;\n f[10] = 0.0862;\n f[11] = 0.0620;\n f[12] = 0.0195;\n f[13] = 0.0384;\n f[14] = 0.0458;\n f[15] = 0.0695;\n f[16] = 0.0610;\n f[17] = 0.0144;\n f[18] = 0.0353;\n f[19] = 0.0709;\n }", "void calcWave() {\n yoff += 0.01f;\n \n //For every x value, calculate a y value based on sine or cosine\n float x = yoff; //**OPTION #1****/\n //float x = 0.0f; //**OPTION #2****/\n for (int i = 0; i < yvalues.length; i++) {\n float n = 2*noise(x)-1.0f; //**OPTION #1****/ //scale noise to be between 1 and -1\n //float n = 2*noise(x,yoff)-1.0f; //**OPTION #2****/ //scale noise to be between 1 and -1\n yvalues[i] = n*amplitude;\n x+=dx;\n }\n }", "public float[] mjuIFFT(float[] mju_HalfComplex_f) {\n\n //rearrange order of frequency in JTransfermation format for half complex inverse FFT. \n this.jtransform_miu_t[0] = mju_HalfComplex_f[0];\n this.jtransform_miu_t[1] = mju_HalfComplex_f[this.fftSize / 2];\n for (int i = 2; i < this.fftSize / 2; i = i + 2) {\n this.jtransform_miu_t[i] = mju_HalfComplex_f[i];\n this.jtransform_miu_t[i + 1] = 0;\n }\n this.fft.realInverse(this.jtransform_miu_t, true);\n\n return this.jtransform_miu_t;\n }", "public double[][] fetch_data(LinkedList<Double> list, double mean) {\n double[][] array = new double[2][this.nfft];\n int size = list.size();\n\n for (int i = 0; i < nfft; i++) {\n if (i < size) {\n array[0][i] = NavigationTools.HeadingDelta(list.get(i), mean);\n array[1][i] = 0.0d;\n } else {\n // pad array with zeros\n array[0][i] = 0.0d;\n array[1][i] = 0.0d;\n }\n }\n return array;\n }", "private void calculatefundamentalFreq() {\n\t\tint count;\n\t\tfloat f0 = 0;\n\t\tSystem.out.println(\"pitches\");\n\t\tSystem.out.println(pitches);\n\t\tfor(count = 0; count < pitches.size(); count++)\n\t\t{\n\t\t\tf0 += pitches.get(count);\n\t\t}\n\t\tif(count != 0)\n\t\t\tfundamentalFreq = f0 / count;\n\t\telse\n\t\t\tfundamentalFreq = 0;\n\t}", "static double[][] getSpectrum(MSRun run, int scan)\r\n {\r\n MSScan s = run.getScan(scan);\r\n float[][] t1 = s.getSpectrum();\r\n double[][] peaks = new double[2][t1[0].length];\r\n for (int j = 0; j < t1[0].length; j++)\r\n {\r\n peaks[0][j] = t1[0][j];\r\n peaks[1][j] = t1[1][j];\r\n }\r\n return peaks;\r\n }", "public byte[] genTone(){ \n //Ramp time is the denominator of the total sample.\n //This really should be a ration of samples per cycle.\n //do this math to get a smooth sound\n int rampTime = 2000;\n //Fill the sample array.\n for (int i = 0; i < numSamples; ++i) {\n \t//Here is the brains of the operation. Don't axe me what it does\n \t//But it pretty much unrolls a sin curve into a wave\n sample[i] = Math.sin(freqOfTone * 2 * Math.PI * i / (sampleRate));\n }\n\n // convert to 16 bit pcm sound array\n // assumes the sample buffer is normalized.\n int PCMindex = 0;\n int i;\n //The ramp. It is how many samples will be ramped up.\n int ramp = numSamples/rampTime; \n\n /**\n * Ramp up the tone to avoid clicks\n */\n for (i = 0; i< ramp; ++i) { \n \t//Grab the values from the sample array for each i\n double dVal = sample[i];\n //Ramp down the value. \n //Convert a -1.0 - 1.0 double into a short. 32767 should be contant for max 16 bit signed int value \n final short val = (short) ((dVal * 32767 * i/ramp));\n //Put the value into the PCM byte array\n //Break the short into a byte using a bit mask. \n //First bit mask adds the second byte. Second bit mask adds the second byte.\n PcmArray[PCMindex++] = (byte) (val & 0x00ff);\n PcmArray[PCMindex++] = (byte) ((val & 0xff00) >>> 8);\n }\n\n for (i = ramp; i< numSamples - ramp; ++i) { \n \t//Grab the values from the sample array for each i\n double dVal = sample[i];\n //Convert a -1.0 - 1.0 double into a short. 32767 should be contant for max 16 bit signed int value\n final short val = (short) ((dVal * 32767));\n //Put the value into the PCM byte array\n //Break the short into a byte using a bit mask. \n //First bit mask adds the second byte. Second bit mask adds the second byte.\n PcmArray[PCMindex++] = (byte) (val & 0x00ff);\n PcmArray[PCMindex++] = (byte) ((val & 0xff00) >>> 8);\n }\n\n for (i = (int) (numSamples - ramp); i< numSamples; ++i) {\n \t//Grab the values from the sample array for each i\n double dVal = sample[i];\n //Convert a -1.0 - 1.0 double into a short. 32767 should be contant for max 16 bit signed int value \n //Ramp down the values\n final short val = (short) ((dVal * 32767 * (numSamples-i)/ramp ));\n //Put the value into the PCM byte array\n //Break the short into a byte using a bit mask. \n //First bit mask adds the second byte. Second bit mask adds the second byte.\n PcmArray[PCMindex++] = (byte) (val & 0x00ff);\n PcmArray[PCMindex++] = (byte) ((val & 0xff00) >>> 8);\n }\n return PcmArray;\n }", "public AudioHashInfo calc(float[] buffer, int p) {\n\t\tint start = 0;\n\t\tint end = start + framelength - 1;\n\t\tint totalframes = (int)(Math.floor(buffer.length / advance - Math.floor(framelength / advance) + 1));\n\t\tint nbhashes = totalframes - 2;\n\t\tint nbtoggles = (p <= 12) ? p : 12;\n\n\t\tAudioHashInfo hashresult = new AudioHashInfo();\n\t\thashresult.hasharray = new int[nbhashes];\n\t\thashresult.toggles = (p > 0) ? new int[nbhashes] : null;\n\t\thashresult.coeffs = new double[totalframes][nfilts];\n\n\t\tint index = 0;\n\t\twhile(end < buffer.length) {\n\t\t\t// apply hamming window to frame\n\t\t\tfor(int i = 0; i < framelength; i++) {\n\t\t\t\tframe[i] = window[i] * buffer[start + i];\n\t\t\t}\n\n\t\t\t// forward fft transform\n\t\t\tfftTransform.realForward(frame);\n\n\t\t\tmagnF[0] = frame[0];\n\t\t\tfor(int i = 1; i < nffthalf - 1; i++) {\n\t\t\t\tmagnF[i] = (float)Math.abs(Math.sqrt((Math.pow(frame[2 * i], 2)\n\t\t\t\t\t\t+ Math.pow(frame[2 * i + 1], 2))));\n\t\t\t}\n\t\t\tmagnF[nffthalf - 1] = frame[1];\n\n\t\t\t// critical band integration\n\t\t\tfor(int i = 0; i < nfilts; i++) {\n\t\t\t\thashresult.coeffs[index][i] = 0.0;\n\t\t\t\tfor(int j = 0; j < nffthalf; j++) {\n\t\t\t\t\thashresult.coeffs[index][i] += wts[i][j] * magnF[j];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tindex += 1;\n\t\t\tstart += advance;\n\t\t\tend += advance;\n\t\t}\n\n\t\tindex = 0;\n\t\tfor(int i = 1; i < totalframes - 1; i++) {\n\t\t\tint hashvalue = 0;\n\t\t\tfor(int m = 0; m < nfilts - 1; m++) {\n\t\t\t\tdouble diff = (hashresult.coeffs[i + 1][m] - hashresult.coeffs[i + 1][m + 1]) -\n\t\t\t\t\t\t(hashresult.coeffs[i - 1][m] - hashresult.coeffs[i - 1][m + 1]);\n\t\t\t\thashvalue <<= 1;\n\t\t\t\tif(diff > 0)\n\t\t\t\t\thashvalue |= 0x01;\n\t\t\t\tfreqdiffs[m].diff = Math.floor(Math.abs(diff));\n\t\t\t\tfreqdiffs[m].index = m;\n\t\t\t}\n\t\t\thashresult.hasharray[index] = hashvalue;\n\t\t\tif(p > 0) {\n\t\t\t\tint tog = 0;\n\t\t\t\tsortFreqDiffs(freqdiffs);\n\t\t\t\tfor(int j = 0; j < nbtoggles; j++) {\n\t\t\t\t\ttog |= (0x80000000 >>> freqdiffs[j].index);\n\t\t\t\t}\n\t\t\t\thashresult.toggles[index] = tog;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\n\t\treturn hashresult;\n\t}", "public void onFftDataCapture(Visualizer visualizer, byte[] bytes, int samplingRate) {}", "public float getSampleRate();", "@Test\n public void testHighPassFilter() {\n int freq1;\n int freq2;\n for (int i = 1; i < 10; i += 2) {\n freq1 = i * 100;\n freq2 = i * 200;\n SoundWave wave1 = new SoundWave(freq1, 0, 0.4, 0.1);\n SoundWave wave2 = new SoundWave(freq2, 2, 0.3, 0.1);\n SoundWave wave = wave1.add(wave2);\n\n double maxFreq = wave.highAmplitudeFreqComponent();\n assertEquals(freq1, maxFreq, 0.00001);\n\n wave = wave.highPassFilter(5, 6);\n\n maxFreq = wave.highAmplitudeFreqComponent();\n assertEquals(freq2, maxFreq, 0.00001);\n }\n }", "@Override\n public void init(int blockLength, SourceDataLine sourceDataLine)\n { this.fftWindowLength = blockLength; // fftWindowLength = 8192\n this.fftSampleRate = sourceDataLine.getFormat().getFrameRate(); // fftSampleRate = 44100\n this.maxFreq = fftSampleRate / 2.0f; // maxFreq = 22050 Hz\n this.audioChannels = new float[2][blockLength];\n this.channelSamples = new float[blockLength];\n\n this.fft = new FloatFFT_1D(fftWindowLength);\n calculateWindowCoefficients(fftWindowLength);\n setBinCount( fftWindowLength / 2 ); // 8192 / 2 = 4096\n setBandCount(octaveCount*notesPerOctave*bandsPerNote + bandsPerNote); // covers 8 octaves plus 1 note\n // 8*12*1 + 1 = 97 bands or 8*12*5 + 5 = 485 bands or 8*12*9 + 9 = 873\n computeBandTables(); \n }", "static public double[] getReParts(Complex[] sig) {\n int N = sig.length;\n double[] realParts = new double[N];\n for (int k = 0; k < N; k++)\n realParts[k] = sig[k].getReal();\n return realParts;\n }", "public int readSamples(float[] samples);", "public SpectralDifference(float samplerate, float minf, float maxf) {\n\t\tminFreq = minf;\n\t\tmaxFreq = maxf;\n\t\tsampleRate = samplerate;\n\t}", "public static void main( String[] argv ) throws Exception\r\n\t{\r\n\t\t//Browse file system for the desired .mp3 file to be visualized\r\n\t\t//SELECTED FILE MUST BE A .mp3 FILE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n\t\tJFileChooser jfc = new JFileChooser();\r\n\t\tjfc.showDialog(null,\"Please Select the desired .mp3 file. \\n ***MUST BE A .mp3 FILE***\");\r\n\t\tjfc.setVisible(true);\r\n\t\tfinal String FILE = jfc.getSelectedFile().getPath();\r\n\t\tSystem.out.println(\"File name \"+FILE);\r\n\t\t\r\n\t\t\r\n\t\tMP3Decoder decoder = new MP3Decoder( new FileInputStream( FILE ) );\r\n\t\tAudioDevice device = new AudioDevice( );\r\n\t\t\r\n\t\t\r\n\t\t//Opens a color chooser so that the user can pick their desired colors for the animation\r\n\t\tColor bgcolor = JColorChooser.showDialog(null, \"Choose the background color for the animation:\", Color.BLACK);\r\n\t\tColor color1 = JColorChooser.showDialog(null, \"Choose the first animation color:\", Color.BLUE);\r\n\t\tColor color2 = JColorChooser.showDialog(null, \"Choose the second animation color:\", Color.WHITE);\r\n\t\t\r\n\t\t//Get Screen Dimensions\r\n\t\t//Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t//Convert Screen Dimensions to length and width\r\n\t\t//final int width = (int)screenSize.getWidth();\r\n\t\t//final int height = (int)screenSize.getHeight();\r\n\t\t\r\n\t\t\r\n\t\tMyPlot plot = new MyPlot( \"Animation\", 1024, 512 );\r\n\t\tFFT fft = new FFT( 1024, 44100 );\r\n\t\tfloat[] samples = new float[1024];\r\n\t\tfloat[] spectrum = new float[1024 / 2 + 1];\r\n\t\tfloat[] lastSpectrum = new float[1024 / 2 + 1];\r\n\t\t\r\n\t\tlong time = System.currentTimeMillis();\r\n\t\tlong lastTime = time;\r\n\t\tint count = 0;\r\n\t\tint bands = 64;\r\n\t\tint currentBands = bands;\r\n\t\tint cycle = 4;\r\n\t\tint c = cycle;\r\n\t\twhile( decoder.readSamples( samples ) > 0 )\r\n\t\t{\t\t\r\n\t\t\tfft.forward( samples );\r\n\t\t\tSystem.arraycopy( spectrum, 0, lastSpectrum, 0, spectrum.length );\r\n\t\t\tSystem.arraycopy( fft.getSpectrum(), 0, spectrum, 0, spectrum.length );\r\n\t\t\tif((time - lastTime) > 100) {\r\n\t\t\t\tplot.animate( spectrum, lastSpectrum, 1, bgcolor, color1, color2 , currentBands, count);\r\n\t\t\t\tlastTime = time;\r\n\t\t\t\tcount++;\r\n\t\t\t\tif(count%currentBands == 0){\r\n\t\t\t\t\tif(currentBands <= c || currentBands == bands) { \r\n\t\t\t\t\t\tcycle *= -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcurrentBands += cycle;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(currentBands);\r\n\t\t\t}\r\n\t\t\tdevice.writeSamples(samples);\r\n\r\n\t\t\ttime = System.currentTimeMillis();\r\n\t\t\tThread.sleep(15);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\t\r\n\t}", "protected double compute(int sample) {\n\t\tdouble v = Math.sin((double) sample * 2.0 * Math.PI * (double) frequency\n\t\t\t\t/ (double) AudioSequence.SAMPLES_PER_SECOND);\n\t\treturn v;\n\t}", "@Override\n\tpublic void process(TimeStamp startTime, TimeStamp endTime, float[] spectrum) {\n\t\tint numBins = maxBin - minBin;\n\t\t// 1. check to see if we need to create a new previousSpectrum cache\n\t\tif (lastBlockSize != spectrum.length) {\n\t\t\t// 2. calculate min and maxBin\n\t\t\tcalcMaxAndMinBin(spectrum.length);\n\n\t\t\t// 3. create a new spectrum cache of the appropriate size\n\t\t\tnumBins = maxBin - minBin;\n\t\t\tif (numBins > 0)\n\t\t\t\tpreviousSpectrum = new float[numBins];\n\n\t\t\tlastBlockSize = spectrum.length;\n\t\t}\n\n\t\tif (numBins > 0) {\n\t\t\tswitch (differenceType) {\n\t\t\tcase POSITIVERMS:\n\t\t\t\tfeatures = positiveRms(spectrum, minBin, previousSpectrum, 0,\n\t\t\t\t\t\tnumBins);\n\t\t\t\tbreak;\n\t\t\tcase RMS:\n\t\t\t\tfeatures = rms(spectrum, minBin, previousSpectrum, 0, numBins);\n\t\t\t\tbreak;\n\t\t\tcase POSITIVEMEANDIFFERENCE:\n\t\t\t\tfeatures = positiveMeanDifference(spectrum, minBin,\n\t\t\t\t\t\tpreviousSpectrum, 0, numBins);\n\t\t\t\tbreak;\n\t\t\tcase MEANDIFFERENCE:\n\t\t\t\tfeatures = meanDifference(spectrum, minBin, previousSpectrum,\n\t\t\t\t\t\t0, numBins);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// finally copy the current spectrum\n\t\t\tSystem.arraycopy(spectrum, minBin, previousSpectrum, 0, numBins);\n\t\t}\n\t\tforward(startTime, endTime);\n\t}", "public void startRecording(){\n String samplerateString = null, buffersizeString = null;\n if (Build.VERSION.SDK_INT >= 17) {\n AudioManager audioManager = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE);\n samplerateString = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE);\n buffersizeString = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER);\n }\n samplerateString= \"48000\";\n buffersizeString = \"256\";\n\n System.loadLibrary(\"FrequencyDomain\");\n FrequencyDomain(Integer.parseInt(samplerateString), Integer.parseInt(buffersizeString));\n }", "public void setFrequency(int f){\n this.frequency = f;\n }" ]
[ "0.6799437", "0.6798768", "0.6740952", "0.65223396", "0.64954007", "0.6434896", "0.63126016", "0.6198656", "0.61630726", "0.61607933", "0.61531746", "0.6133474", "0.60574913", "0.6033043", "0.5972536", "0.59050786", "0.5875126", "0.5874467", "0.58687985", "0.58533514", "0.58297646", "0.5753698", "0.57275903", "0.56823856", "0.5655253", "0.54941857", "0.54920083", "0.5473415", "0.54519206", "0.54388016", "0.5363452", "0.5337599", "0.53308886", "0.52068144", "0.52001965", "0.51990616", "0.5190406", "0.5185019", "0.51833653", "0.518199", "0.51738054", "0.5173771", "0.5173211", "0.5166708", "0.5135591", "0.50956804", "0.5071267", "0.50684273", "0.50415504", "0.5026048", "0.49927282", "0.49654412", "0.49642736", "0.4949255", "0.49482808", "0.4948247", "0.49472234", "0.49279094", "0.4907694", "0.48989347", "0.48950818", "0.48924074", "0.48827627", "0.4880281", "0.4880281", "0.48568925", "0.48474073", "0.48376", "0.482543", "0.48164484", "0.4804643", "0.47380736", "0.4730071", "0.47232053", "0.46777046", "0.4650982", "0.46494722", "0.46245176", "0.46186903", "0.4605281", "0.45816737", "0.45759845", "0.45645937", "0.45569345", "0.45522803", "0.45477295", "0.45414335", "0.45258924", "0.4524267", "0.45013073", "0.44939652", "0.44926226", "0.448917", "0.4482309", "0.4472645", "0.44668692", "0.4466145", "0.44589093", "0.44571608", "0.44481295" ]
0.44780463
94
/ JADX WARNING: Illegal instructions before constructor call / Code decompiled incorrectly, please refer to instructions dump.
C1477ma(java.lang.String r16, com.google.android.gms.internal.ads.awd r17) { /* r15 = this; r0 = r17 java.lang.String r3 = r0.f2954b long r4 = r0.f2955c long r6 = r0.f2956d long r8 = r0.f2957e long r10 = r0.f2958f java.util.List<com.google.android.gms.internal.ads.bff> r1 = r0.f2960h if (r1 == 0) goto L_0x0014 java.util.List<com.google.android.gms.internal.ads.bff> r1 = r0.f2960h r12 = r1 goto L_0x0049 L_0x0014: java.util.Map<java.lang.String, java.lang.String> r1 = r0.f2959g java.util.ArrayList r2 = new java.util.ArrayList int r12 = r1.size() r2.<init>(r12) java.util.Set r1 = r1.entrySet() java.util.Iterator r1 = r1.iterator() L_0x0027: boolean r12 = r1.hasNext() if (r12 == 0) goto L_0x0048 java.lang.Object r12 = r1.next() java.util.Map$Entry r12 = (java.util.Map.Entry) r12 com.google.android.gms.internal.ads.bff r13 = new com.google.android.gms.internal.ads.bff java.lang.Object r14 = r12.getKey() java.lang.String r14 = (java.lang.String) r14 java.lang.Object r12 = r12.getValue() java.lang.String r12 = (java.lang.String) r12 r13.<init>(r14, r12) r2.add(r13) goto L_0x0027 L_0x0048: r12 = r2 L_0x0049: r1 = r15 r2 = r16 r1.<init>(r2, r3, r4, r6, r8, r10, r12) byte[] r0 = r0.f2953a int r0 = r0.length long r0 = (long) r0 r2 = r15 r2.f5708a = r0 return */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.C1477ma.<init>(java.lang.String, com.google.android.gms.internal.ads.awd):void"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void translateConstructor( ) {\n \n Set<MethodInfoFlags> flags = EnumSet.noneOf( MethodInfoFlags.class );\n \n AVM2Method method = new AVM2Method( null, flags );\n avm2Class.avm2Class.constructor = method;\n \n AVM2MethodBody body = method.methodBody;\n body.maxStack = 1;\n body.maxRegisters = 1;\n body.maxScope = 11;\n body.scopeDepth = 10;\n \n InstructionList il = body.instructions;\n \n// il.append( OP_getlocal0 );\n// il.append( OP_pushscope );\n il.append( OP_getlocal0 );\n il.append( OP_constructsuper, 0 );\n \n// il.append( OP_findpropstrict, new AVM2QName( PUBLIC_NAMESPACE, \"drawTest\" ));\n il.append( OP_getlocal0 );\n \n il.append( OP_callpropvoid, new AVM2QName( EmptyPackage.namespace, \"drawTest\" ), 0 );\n\n il.append( OP_returnvoid );\n }", "public C23317d() {\n }", "private void __sep__Constructors__() {}", "AnonymousClass1() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.location.GpsClock.1.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.1.<init>():void\");\n }", "AnonymousClass1() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.telephony.SmsCbCmasInfo.1.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.1.<init>():void\");\n }", "public native void constructor();", "private JadTool() { }", "CollationDataBuilder() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.icu.impl.coll.CollationDataBuilder.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.<init>():void\");\n }", "public Constructor(){\n\t\t\n\t}", "public WorldPhoneOp01() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.<init>():void\");\n }", "Constructor() {\r\n\t\t \r\n\t }", "public ecDSAnone() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSAnone.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSAnone.<init>():void\");\n }", "public As21Id27()\n\t{\n\t\tsuper() ;\n\t}", "Reproducible newInstance();", "protected Signer() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.security.Signer.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.<init>():void\");\n }", "protected DiagClassVisitor() {\n super(ASM5);\n }", "public dxm(boolean r3) {\n /*\n r2 = this;\n r2.<init>()\n esb r0 = defpackage.esb.a.a\n java.lang.Class<cuh> r1 = defpackage.cuh.class\n esc r0 = r0.a(r1)\n cuh r0 = (defpackage.cuh) r0\n r1 = 0\n if (r0 == 0) goto L_0x001b\n cug r0 = r0.c()\n boolean r0 = r0.c()\n goto L_0x001c\n L_0x001b:\n r0 = 0\n L_0x001c:\n if (r0 == 0) goto L_0x0021\n if (r3 != 0) goto L_0x0021\n r1 = 1\n L_0x0021:\n r3 = 8\n if (r1 == 0) goto L_0x003b\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r1 = java.lang.Integer.valueOf(r3)\n boolean r0 = r0.contains(r1)\n if (r0 != 0) goto L_0x0056\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n r0.add(r3)\n return\n L_0x003b:\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r1 = java.lang.Integer.valueOf(r3)\n boolean r0 = r0.contains(r1)\n if (r0 == 0) goto L_0x0056\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n int r3 = r0.indexOf(r3)\n java.util.ArrayList<java.lang.Integer> r0 = a\n r0.remove(r3)\n L_0x0056:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxm.<init>(boolean):void\");\n }", "public ecDSA512() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA512.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA512.<init>():void\");\n }", "public Attributes2Impl() {\n /*\n // Can't load method instructions: Load method exception: null in method: org.xml.sax.ext.Attributes2Impl.<init>():void, dex: in method: org.xml.sax.ext.Attributes2Impl.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.<init>():void\");\n }", "public Pitonyak_09_02() {\r\n }", "private Rekenhulp()\n\t{\n\t}", "private Main()\n {{\n System.err.println ( \"Internal error: \"+\n\t \"unexpected call to default constructor for Main.\" );\n System.exit(-127);\n }}", "GpsClock() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.location.GpsClock.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.<init>():void\");\n }", "private BigB()\r\n{\tsuper();\t\r\n}", "private CodeRef() {\n }", "private ElementDebugger() {\r\n\t\t/* PROTECTED REGION ID(java.constructor._17_0_5_12d203c6_1363681638138_829588_2092) ENABLED START */\r\n\t\t// :)\r\n\t\t/* PROTECTED REGION END */\r\n\t}", "private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}", "public Clade() {}", "public Code() {\n\t}", "protected abstract void construct();", "private FlexOrderTransformer() {\n // constructor preventing instantiation.\n }", "private StdDSAEncoder() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.<init>():void\");\n }", "public ecDSA() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA.<init>():void\");\n }", "public S11()\r\n {\r\n super();\r\n strapAllowed = false;\r\n }", "private Solution() {\n /**.\n * { constructor }\n */\n }", "private CZ()\n {\n }", "private Instantiation(){}", "public static void copyConstructor(){\n\t}", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "public Hacker() {\r\n \r\n }", "JsrInstruction() {}", "public void testConstructor() throws Exception {\n\t\tStringWriter source = new StringWriter();\n\t\tthis.compiler.writeConstructor(source, \"Simple\", this.compiler.createField(String.class, \"field\"),\n\t\t\t\tthis.compiler.createField(int.class, \"value\"), this.compiler.createField(boolean[].class, \"flags\"));\n\t\tStringWriter expected = new StringWriter();\n\t\texpected.append(\" private java.lang.String field;\\n\");\n\t\texpected.append(\" private int value;\\n\");\n\t\texpected.append(\" private boolean[] flags;\\n\");\n\t\texpected.append(\" public Simple(java.lang.String field, int value, boolean[] flags) {\\n\");\n\t\texpected.append(\" this.field = field;\\n\");\n\t\texpected.append(\" this.value = value;\\n\");\n\t\texpected.append(\" this.flags = flags;\\n\");\n\t\texpected.append(\" }\\n\");\n\t\tassertEquals(\"Incorrect constructor\", expected.toString(), source.toString());\n\t}", "public ContactsProvider() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: org.gsma.joyn.contacts.ContactsProvider.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.gsma.joyn.contacts.ContactsProvider.<init>():void\");\n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "public SIPDate() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e6 in method: gov.nist.javax.sip.header.SIPDate.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.<init>():void\");\n }", "public ecDSA256() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA256.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA256.<init>():void\");\n }", "protected CodeStub() {\n entry = new Label();\n continuation = new Label();\n }", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public static void __init() {\r\n\t\t__name__ = new str(\"code\");\r\n\r\n\t\t/**\r\n\t\t copyright Sean McCarthy, license GPL v2 or later\r\n\t\t*/\r\n\t\tdefault_0 = null;\r\n\t\tcl_Code = new class_(\"Code\");\r\n\t}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public FactoryImpl() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.icu.text.TimeZoneNames.DefaultTimeZoneNames.FactoryImpl.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.text.TimeZoneNames.DefaultTimeZoneNames.FactoryImpl.<init>():void\");\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public Codegen() {\n assembler = new LinkedList<LlvmInstruction>();\n symTab = new SymTab();\n }", "defaultConstructor(){}", "public SourceCode() {\n }", "public MonHoc() {\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "public Signer(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.security.Signer.<init>(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.<init>(java.lang.String):void\");\n }", "private SourcecodePackage() {}", "private ByteTools(){}", "public HCERTCHAINENGINE(Pointer p) {\n/* 1085 */ super(p);\n/* */ }", "public Callback() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.hardware.radio.RadioTuner.Callback.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.radio.RadioTuner.Callback.<init>():void\");\n }", "private TMCourse() {\n\t}", "public p7p2() {\n }", "private Ex() {\n }", "public _355() {\n\n }", "public ecDSA384() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA384.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSA384.<init>():void\");\n }", "public Self__1() {\n }", "protected TestBench() {}", "public Soil()\n\t{\n\n\t}", "public IncorrectType58119e() {\n }", "public OOP_207(){\n\n }", "private State5() {\n\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.996 -0500\", hash_original_method = \"CB9D9CAF93B6F7C6AC078700B30D5B3A\", hash_generated_method = \"6EEF3712392D06942F0E7086316BBAB4\")\n \n private void nativeConstructor(){\n }", "public Vbc(java.lang.Object instance) throws Throwable {\n super(instance);\n if (instance instanceof JCObject) {\n classInstance = (JCObject) instance;\n } else\n throw new Exception(\"Cannot manage object, it is not a JCObject\");\n }", "public static void main(String[] args) {\n\t\tthisconstructor rv = new thisconstructor();\n\t\n\t\n\t}", "private CompressionTools() {}", "public static void main(String[] args) throws Exception{\n\t\tUnsafe unsafe = getUnsafe();// unsafe\n\t\t// 它跳过了构造方法\n\t\tInitDemo initDemo = (InitDemo) unsafe.allocateInstance(InitDemo.class);\n\t}", "public MethodEx2() {\n \n }", "public Fun_yet_extremely_useless()\n {\n\n }", "protected Compiler() {\r\n\t\ttempTable = new TempTable();\r\n\t\toriginalTextLength = 0;\r\n\t\tthis.cpt = null;\r\n\t}", "protected void method_2045(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public ParseAce_old ()\n{\n initialize ();\n}", "public LegacyResultMapper() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.hardware.camera2.legacy.LegacyResultMapper.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.<init>():void\");\n }", "public D() {}", "public CSSTidier() {\n\t}", "private void method_7082(class_1293 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public Pleasure() {\r\n\t\t}", "private Solution() {\n }", "public AbstractT602()\n {\n }", "protected DenseMatrix()\n\t{\n\t}", "public Method(String name, String desc) {\n/* 82 */ this.name = name;\n/* 83 */ this.desc = desc;\n/* */ }", "private IndexBitmapObject() {\n\t}", "private Solution() { }", "private Solution() { }", "public JavaException()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public AnimationParameters() {\n/* 279 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private SingleObject()\r\n {\r\n }", "@Override\n public String visit(ExplicitConstructorInvocationStmt n, Object arg) {\n return null;\n }", "protected void method_2246(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }" ]
[ "0.71027625", "0.7059306", "0.6989805", "0.6781654", "0.67255014", "0.67179495", "0.667156", "0.6659096", "0.66507", "0.6587682", "0.6583588", "0.6542303", "0.65142536", "0.65081567", "0.64886755", "0.64718777", "0.64674413", "0.64514107", "0.6440572", "0.64309573", "0.6429616", "0.63896936", "0.63792515", "0.6368357", "0.6367485", "0.63454264", "0.6335618", "0.6331637", "0.63108736", "0.6303385", "0.6290718", "0.62861824", "0.6269253", "0.6263504", "0.6230175", "0.62263274", "0.6225367", "0.6213197", "0.6200023", "0.61956733", "0.6192243", "0.6178052", "0.61717665", "0.6170407", "0.6169765", "0.61577094", "0.6152457", "0.6149009", "0.6144943", "0.6141795", "0.6139552", "0.6139032", "0.6133517", "0.6132824", "0.6128986", "0.6123013", "0.6117694", "0.6109392", "0.6107473", "0.6105973", "0.60896724", "0.60879105", "0.60842323", "0.6083161", "0.6076007", "0.60753864", "0.60746384", "0.6074584", "0.6068136", "0.6064894", "0.6064622", "0.6062719", "0.60578215", "0.60549533", "0.6052819", "0.6051407", "0.6047526", "0.6046774", "0.6043104", "0.6041443", "0.60293555", "0.60250723", "0.60234237", "0.6021399", "0.600725", "0.600634", "0.6001792", "0.59991884", "0.59970146", "0.59933764", "0.5991345", "0.5990026", "0.5989779", "0.5986521", "0.5979966", "0.5979966", "0.59793746", "0.5974626", "0.59723186", "0.5971056", "0.5967462" ]
0.0
-1
/ renamed from: a
static C1477ma m7591a(C1502mz mzVar) { if (C1458li.m7405a((InputStream) mzVar) == 538247942) { return new C1477ma(C1458li.m7407a(mzVar), C1458li.m7407a(mzVar), C1458li.m7413b((InputStream) mzVar), C1458li.m7413b((InputStream) mzVar), C1458li.m7413b((InputStream) mzVar), C1458li.m7413b((InputStream) mzVar), C1458li.m7414b(mzVar)); } throw new IOException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ access modifiers changed from: packageprivate / renamed from: a
public final boolean mo12782a(OutputStream outputStream) { try { C1458li.m7408a(outputStream, 538247942); C1458li.m7410a(outputStream, this.f5709b); C1458li.m7410a(outputStream, this.f5710c == null ? "" : this.f5710c); C1458li.m7409a(outputStream, this.f5711d); C1458li.m7409a(outputStream, this.f5712e); C1458li.m7409a(outputStream, this.f5713f); C1458li.m7409a(outputStream, this.f5714g); List<bff> list = this.f5715h; if (list != null) { C1458li.m7408a(outputStream, list.size()); for (bff next : list) { C1458li.m7410a(outputStream, next.mo11807a()); C1458li.m7410a(outputStream, next.mo11808b()); } } else { C1458li.m7408a(outputStream, 0); } outputStream.flush(); return true; } catch (IOException e) { C1264ee.m6817b("%s", e.toString()); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\tpublic void a() {\n\t\t\n\t}", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "@Override\n public void func_104112_b() {\n \n }", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public void a() {\r\n }", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "public void m23075a() {\n }", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }", "void m1864a() {\r\n }", "public static void a() {\n\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public void a() {\n }", "public void a() {\n }", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public void mo2740a() {\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public void mo44053a() {\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public void mo12930a() {\n }", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public void mo4359a() {\n }", "public void b() {\r\n }", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public void mo6944a() {\n }", "public static a c() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "@Override\n public void b() {\n }", "public static aa a() {\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public abstract void m15813a();", "public void mo115188a() {\n }", "private stendhal() {\n\t}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public abstract void mo70713b();", "public void a() {\n ((a) this.a).a();\n }", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface C0069a {\n void a();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public void mo1531a() {\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void b() {\n }", "public void b() {\n }", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo23813b() {\n }", "public abstract void mo27464a();", "public abstract void mo53562a(C18796a c18796a);", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public void mo5248a() {\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "public String i() {\n/* 44 */ return this.a.toString();\n/* */ }", "@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "public abstract Object mo1771a();", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface a {\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "interface C0868a {\n /* renamed from: a */\n void mo3207a(Object obj);\n\n /* renamed from: a */\n void mo3208a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo3209a(String str, Bundle bundle, ResultReceiver resultReceiver);\n\n /* renamed from: a */\n boolean mo3210a(Intent intent);\n }", "interface C9251a {\n /* renamed from: a */\n boolean mo24941a(Context context);\n }", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "public interface C48855s {\n\n /* renamed from: a */\n public static final C48856a f124209a = C48856a.f124210a;\n\n /* renamed from: shark.s$a */\n public static final class C48856a {\n\n /* renamed from: a */\n static final /* synthetic */ C48856a f124210a = new C48856a();\n\n private C48856a() {\n }\n }\n\n /* renamed from: a */\n void mo123342a(C48857t tVar);\n}", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C3660a {\n /* renamed from: a */\n void mo9777a();\n }", "public interface AbstractC16592a {\n /* renamed from: a */\n void mo67920a();\n\n /* renamed from: a */\n void mo67921a(Object obj);\n\n /* renamed from: a */\n void mo67922a(AbstractC32732ag agVar, Throwable th);\n\n /* renamed from: b */\n void mo67923b();\n\n /* renamed from: c */\n void mo67924c();\n }", "public void method_4270() {}", "@Override\n\tpublic void b() {\n\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public interface a {\n\n /* compiled from: DiskCache */\n /* renamed from: com.bumptech.glide.load.engine.a.a$a reason: collision with other inner class name */\n public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean f(@NonNull File file);\n }\n\n void a(c cVar, b bVar);\n\n void clear();\n\n @Nullable\n File e(c cVar);\n\n void f(c cVar);\n}" ]
[ "0.72647583", "0.7027308", "0.6932353", "0.67963594", "0.6744744", "0.66718376", "0.65831935", "0.6568693", "0.6556423", "0.65451646", "0.6518747", "0.650733", "0.64985996", "0.64938843", "0.64893854", "0.64701945", "0.6464074", "0.6460309", "0.6458465", "0.64509946", "0.643186", "0.6427179", "0.6419455", "0.64049494", "0.6395156", "0.6395156", "0.6378282", "0.63768566", "0.6363736", "0.6356563", "0.6299064", "0.6276125", "0.6272923", "0.62520134", "0.6251762", "0.6221248", "0.6220622", "0.6218144", "0.621636", "0.6216286", "0.6209636", "0.6195781", "0.6193595", "0.6184515", "0.61769086", "0.61750984", "0.6173085", "0.6167652", "0.61671597", "0.61656874", "0.6163014", "0.6158435", "0.6142869", "0.61415905", "0.6137351", "0.6133502", "0.6133217", "0.6129663", "0.61237186", "0.6122764", "0.6108453", "0.61054856", "0.61054856", "0.6105089", "0.6105089", "0.61013615", "0.6093955", "0.60925406", "0.6090081", "0.6085911", "0.60787773", "0.6072023", "0.6068931", "0.6068869", "0.60570276", "0.60554385", "0.6053668", "0.604404", "0.6043717", "0.60427934", "0.60409576", "0.6039098", "0.603881", "0.6038171", "0.60264635", "0.6021221", "0.6014869", "0.60147643", "0.6012015", "0.60056275", "0.60039663", "0.6001122", "0.60010886", "0.5999939", "0.5998138", "0.59913003", "0.5991137", "0.59897935", "0.5986967", "0.598586", "0.59844047" ]
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { if(e.getSource()==send){ if (inputArea.getText() != null || inputArea.getText() != "") { message = new Message(); // message.setIp(adress.getText()); // message.setPort(port.getText()); message.setContain(inputArea.getText()); message.setFlag("single_chat"); message.setIp(ip); message.setPort(""); try { os = socket.getOutputStream(); oos = new MyObjectOutputStream(os); oos.writeObject(message); oos.flush(); Thread.sleep(200); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (InterruptedException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } dlmClinetMessage.addElement(message.getContain()); inputArea.setText(""); } else { JOptionPane.showMessageDialog(null, "发送消息不能为空!", "错误", JOptionPane.ERROR_MESSAGE); } }else if(e.getSource()==sendFile){ JFileChooser jfc = new JFileChooser(); jfc.setFileSelectionMode(JFileChooser.FILES_ONLY); jfc.showDialog(new JLabel(), "选择"); File file = jfc.getSelectedFile(); if (file != null) { name = ou.queryOnlineUserNameByIp("/" + ip ); setTitle("与" + name + "聊天中"); message = new Message(); // message.setIp(adress.getText()); // message.setPort(port.getText()); message.setFlag("send_File"); message.setContain(file.getName()); System.out.println(file.getFreeSpace()); System.out.println(file.getTotalSpace()); System.out.println(file.getUsableSpace()); message.setIp(ip); message.setPort(""); try { os = socket.getOutputStream(); oos = new MyObjectOutputStream(os); oos.writeObject(message); oos.flush(); DataInputStream dis=new DataInputStream(new FileInputStream(file)); DataOutputStream dos=new DataOutputStream(socket.getOutputStream()); //ObjectOutputStream oos=new ObjectOutputStream(s.getOutputStream()); //oos.writeObject(f); dos.writeLong(file.length()); dos.writeUTF(file.getName()); System.out.println("长度:"+file.length()); int count=-1,sum=0; byte[] buffer=new byte[1024*1024]; while((count=dis.read(buffer))!=-1){ dos.write(buffer,0,count); sum+=count; System.out.println("以传输"+sum+"byte"); } System.out.println("发送完毕!"); dos.flush(); } catch (IOException e2) { // TODO: handle exception e2.printStackTrace(); } // byte[] buffer = new byte[1024]; // FileInputStream fis = null; // // // 这里要重新new一个os // // try { // os = socket.getOutputStream(); // oos = new MyObjectOutputStream(os); // oos.writeObject(message); // oos.flush(); // // fis = new FileInputStream(file); // // while (fis.read(buffer) > 0) { // os.write(buffer); // os.flush(); // } // // } catch (IOException e1) { // // TODO Auto-generated catch block // e1.printStackTrace(); // } // dlmClinetMessage.addElement("成功发送:" + file.getName()); } }else if(e.getSource()==snake){ new Thread(new Runnable() { @Override public void run() { for (int i = 0; i < 20; i++) {// 使用for循环让窗体震动20次 int newPoint = (int) (100 + Math.pow(-1, i) * 10);// 根据循环次数计算新点的位置 setLocation(newPoint, newPoint);// 设置窗体的显示位置 try { Thread.sleep(50);// 线程休眠0.05秒来实现动态效果 } catch (InterruptedException e) { e.printStackTrace(); } } } }).start();// 启动新线程 message = new Message(); // message.setIp(adress.getText()); // message.setPort(port.getText()); message.setContain("发送了一个抖动!"); message.setFlag("snake"); message.setIp(ip); message.setPort(""); try { os = socket.getOutputStream(); oos = new MyObjectOutputStream(os); oos.writeObject(message); oos.flush(); Thread.sleep(200); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (InterruptedException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } dlmClinetMessage.addElement("你发送了一个抖动!"); } }
{ "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
we create a node and call its constructor, basically this is just holding the information for us
public void insert(String name){ ArtistNode node = new ArtistNode(name); //if head is null then we know our list is empty and we set the newly created node as our first node if(head==null){ head = node; } //if the list is not empty and our first node has a value then we enter the else statement else{ //we create a temporary node and set it equal to the firt node ArtistNode traverseNode = head; //we now traverse the list by entering a while loop that keeps iterating if the next node is not null while(traverseNode.next!=null){ //we set our temp node to equal the next node only stopping when temp node gets a value of null. Once we get null, we know that we are at the last node //in the linked list and can exit the while loop. traverseNode = traverseNode.next; } //We have exited the while loop because tempNode.next returned null. We want our information to be stored in that location so we say the node that we first created //and its information is now going to be stored at the location. Traverse node hit the end of the list and said hey I know where the null is, im going to now point to the //the new node instead and the new node can then point to null because it wont have a next value traverseNode.next=node; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node() {\n\n }", "public Node(){\n\n\t\t}", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "public Node() {\n }", "public NodeInfo() {\n }", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {\n\t}", "public Node(){}", "public Node() {\n\n }", "public Node()\r\n {\r\n initialize(null);\r\n lbl = id;\r\n }", "public Node(){\n }", "public Node(){\n this(9);\n }", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "public Node()\n {\n this.name=\"/\";\n this.type=0;\n this.stage=0;\n children=new ArrayList<Node>();\n }", "private void init() {\n myNodeDetails = new NodeDetails();\n try {\n //port will store value of port used for connection\n //eg: port = 5554*2 = 11108\n String port = String.valueOf(Integer.parseInt(getMyNodeId()) * 2);\n //nodeIdHash will store hash of nodeId =>\n // eg: nodeIdHash = hashgen(5554)\n String nodeIdHash = genHash(getMyNodeId());\n myNodeDetails.setPort(port);\n myNodeDetails.setNodeIdHash(nodeIdHash);\n myNodeDetails.setPredecessorPort(port);\n myNodeDetails.setSuccessorPort(port);\n myNodeDetails.setSuccessorNodeIdHash(nodeIdHash);\n myNodeDetails.setPredecessorNodeIdHash(nodeIdHash);\n myNodeDetails.setFirstNode(true);\n\n if (getMyNodeId().equalsIgnoreCase(masterPort)) {\n chordNodeList = new ArrayList<NodeDetails>();\n chordNodeList.add(myNodeDetails);\n }\n\n } catch (Exception e) {\n Log.e(TAG,\"**************************Exception in init()**********************\");\n e.printStackTrace();\n }\n }", "protected AST_Node() {\r\n\t}", "public Node()\r\n\t{\r\n\t\tnext = null;\r\n\t\tinfo = 0;\r\n\t}", "private Node(int c) {\n this.childNo = c; // Construct a node with c children.\n }", "public Node()\n {\n \n name = new String();\n type = new String(\"internal\"); //Initial Node type set to internal\n length = new Double(0); //Set initial branch length to zero\n children = new ArrayList<Node>();\n level = 0;\n treesize = new Double(0);\n depth = 0;\n newicklength = 0;\n startycoord = -1;\n startxcoord = -1;\n endxcoord = -1;\n endycoord = -1;\n standardy = -1;\n selected = false;\n xmultiplier = 0;\n ymultiplier = 0;\n }", "Node()\r\n { // constructor for head Node \r\n prev = this;\r\n next = this;\r\n trafficEntry = new TrafficEntry();\r\n }", "private BTNode createNode() {\n BTNode btNode;\n btNode = new <DataPair>BTNode ();\n btNode.mIsLeaf = true;\n btNode.mCurrentKeyNum = 0;\n return btNode;\n }", "void nodeCreate( long id );", "TNode createTNode();", "public FlowNodeInstance() {\n\t}", "public Node(State state) {\r\n\t\t\tthis.state=state;\r\n\t\t}", "private Node( T data_ )\n {\n data = data_;\n parent = this;\n }", "public CWLNodeFactory() {\n super(true);\n }", "protected SceneGraphObject createNode() {\n\tthrow new SGIORuntimeException(\"createNode() not implemented in class \"+this.getClass().getName());\n }", "public Node(T data) {this.data = data;}", "Node(String d) {\n data = d;\n }", "public Node(Node< ? > node)\n {\n id = node.getId();\n name = node.getName();\n idVirtualAppliance = node.getIdVirtualAppliance();\n nodeType = node.getNodeType();\n posX = node.getPosX();\n posY = node.getPosY();\n modified = node.getModified();\n }", "public SNode(object obj)\r\n {\r\n\t\r\n\toop=obj;\r\n }", "Constructor() {\r\n\t\t \r\n\t }", "public Node(String n) {\n\t\tname = n;\n\t\t//connections = new ArrayList<Node>();\n\t\t//connections = new HashSet<String>();\n\t\t\n\t\t//checkRep();\n\t}", "void create(Node node) {\n if (node.table.negatives() == 0) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n if (node.table.positives() == 0) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n\r\n //If no test split the data, make it a leaf with the majoriti of the target atribute\r\n int atr;\r\n //Choose the best atribute\r\n atr = this.chooseBestAtrib(node);\r\n node.atribute = atr;\r\n\r\n //No atribute split the data, so make the node a leaf with the majoriti of the class (either positive or negative)\r\n if (node.atribute == -1) {\r\n //System.out.println(\"Atribute is -1 in TeeBuidler.create\");\r\n if (node.table.negatives() > node.table.positives()) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n if (node.table.positives() >= node.table.negatives()) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n }\r\n\r\n Table table_left = new Table(), table_right = new Table();\r\n node.table.splitByAtrib(node.atribute, table_left, table_right);\r\n\r\n //Create two children for the current node //parameters: identifier,parent_result,atribute of split,id_child1, id_child2, table\r\n node.child_left = new Node(node.id + node.id, \"1\", -1, -1, -1, table_left);\r\n node.child_right = new Node(node.id + node.id+1, \"0\", -1, -1, -1, table_right);\r\n node.id_child_left = node.id + node.id;\r\n node.id_child_right = node.id + node.id+1;\r\n\r\n\r\n TreeBuilder builder = new TreeBuilder();\r\n builder.create(node.child_left);\r\n builder.create(node.child_right);\r\n\r\n }", "public CassandraNode() {\r\n\t\tthis(null, 0);\r\n\t}", "protected CreateMachineNodeModel() {\r\n super(0,1);\r\n }", "public Node(Node<D> n) {\n\t\tdata = n.getData();\n\t\tnext = n.getNext();\n\t}", "public Node()\n\t{\n\t\toriginalValue = sumValue = 0;\n\t\tparent = -1;\n\t}", "public TreeNode() {\n }", "public Node() {\n this.nodeMap = new HashMap<>();\n }", "Node(T data) {\n\t\t\tthis(data, null);\n\t\t}", "public Node(T data) {\n\n this.data = data;\n\n\n }", "public Node( String id )\r\n {\r\n initialize(id);\r\n lbl = id;\r\n }", "protected Node(int xp, int yp) {\n\t\tx = xp;\n\t\ty = yp;\n\t\tEngine.getSingleton().addNode(this);\n\t}", "public Node() \r\n\t{\r\n\t\tincludedNode = new ArrayList<Node>();\r\n\t\tin = false; \r\n\t\tout = false;\r\n\t}", "public TreeNode(){ this(null, null, 0);}", "public Node(T data) {\r\n this.data = data;\r\n }", "public Node() {\n name = null;\n missionDescription = null;\n roles = null;\n stateValueBindings = null;\n nodeRuntime = null;\n isNetworkSingleton = false;\n }", "private Node(T value) {\n\t\t\tthis.value = value;\n\t\t}", "public Node(T data) {\n this(data, null, null, null);\n }", "private Node() {\n // Start empty.\n element = null;\n }", "public RBTree() {\r\n\t\t// well its supposed just create a new Red Black Tree\r\n\t\t// Maybe create a new one that does a array of Objects\r\n\t}", "public FileNode() {\n\t}", "@Test\n\tpublic void testNodeInit() {\n\t\tNode<Integer> node = new Node<Integer>(3);\n\t\tassertTrue(node.getData() == 3);\n\t\tassertTrue(node.getParent() == null);\n\t\tassertTrue(node.countChildren() == 0);\n\t}", "protected NodeProperties() {\r\n }", "public TreeNode() {\n // do nothing\n }", "void createNode(NodeKey key);", "public Node() {\n\t\tnumberOfAttacks = Integer.MAX_VALUE;\n\t\tstate = new State(); // Generate a random state.\n\t\t// Calculate its number of attacks.\n\t\tnumberOfAttacks = state.calculatenumberOfAttacks();\n\t}", "public Node(T data){\n this.data = data;\n }", "Node(){\n\t\t\tthis.array = new Node[256];\n\t\t\tthis.val = null;\n\t\t}", "public Node()\n\t{\n\t\ttitle = \" \";\n\t\tavail = 0;\n\t\trented = 0;\n\t\tleft = null;\n\t\tright = null;\n\t\t\n\t}", "public NetworkNode(Node treeNode) {\n height = treeNode.getHeight();\n label = treeNode.getID();\n metaDataString = treeNode.metaDataString;\n for (String metaDataKey: treeNode.getMetaDataNames()) {\n Object metaDataValue = treeNode.getMetaData(metaDataKey);\n metaData.put(metaDataKey, metaDataValue);\n }\n }", "public Node() {\n portnum = 0;\n senders = new Hashtable<String, Sender>();\n }", "public void create(NetworkNode networkNode);", "private SceneGraphObject createNode( String className, Class[] parameterTypes, Object[] parameters ) {\n SceneGraphObject ret;\n Constructor constructor;\n\n try {\n Class state = Class.forName( className );\n constructor = state.getConstructor( parameterTypes );\n ret = (SceneGraphObject)constructor.newInstance( parameters );\n\t} catch(ClassNotFoundException e1) {\n if (control.useSuperClassIfNoChildClass())\n ret = createNodeFromSuper( className, parameterTypes, parameters );\n else\n throw new SGIORuntimeException( \"No State class for \"+\n\t\t\t\t\t\tclassName );\n\t} catch( IllegalAccessException e2 ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tclassName+\" - IllegalAccess\" );\n\t} catch( InstantiationException e3 ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tclassName );\n } catch( java.lang.reflect.InvocationTargetException e4 ) {\n\t throw new SGIORuntimeException( \"InvocationTargetException for \"+\n\t\t\t\t\t\tclassName );\n } catch( NoSuchMethodException e5 ) {\n for(int i=0; i<parameterTypes.length; i++)\n System.err.println( parameterTypes[i].getName() );\n System.err.println(\"------\");\n\t throw new SGIORuntimeException( \"Invalid constructor for \"+\n\t\t\t\t\t\tclassName );\n }\n\n return ret;\n }", "public TreeNode()\r\n\t\t{\r\n\t\t\thead = null; //no data so set head to null\r\n\t\t}", "public Node(Object data) {\n\t\t\tthis.data = data;\n\t\t}", "public Node(T t, Node n) {\r\n \r\n element = t;\r\n next = n;\r\n }", "private Node(E dataItem)\n {\n data = dataItem;\n next = null;\n }", "public SystemNode(SystemInfo sys) {\n\t\tsuper(sys);\n\t}", "public BoxNode() {\n initProperties();\n }", "public VISNode() {\n this.model = new VISNodeModel();\n }", "Node(T data)\n\t{\n\t\tthis.data=data;\n\t\tthis.next=null;\n\t}", "public Node createNode(String p_name) {\n\t\tNode n = new Node(p_name, this);\n\t\taddNode(n);\n\t\treturn n;\n\t}", "protected SceneGraphObject createNode( Class state ) {\n\tSceneGraphObject ret;\n\n\ttry {\n\t ret = (SceneGraphObject)state.newInstance();\n\n\t //System.err.println(\"Created J3D node for \"+className );\n\t} catch( IllegalAccessException exce ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tstate.getClass().getName()+\" - IllegalAccess\" );\n\t} catch( InstantiationException excep ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tstate.getClass().getName() );\n\t}\n\n\treturn ret;\n }", "public Node(T value) \n\t\t//PRE: T is initialized\n\t\t//POST: A node is created with value T \n\t\t{\n\t\t\tthis.value = value;\t\n\t\t\tnext = null;\n\t\t\tisCurrent = false;\n\t\t}", "public Jode(Node n) {\n this.node = n;\n this.v = node.getTextContent();\n this.n = node.getNodeName();\n }", "public TreeNode() { \n this.name = \"\"; \n this.rule = new ArrayList<String>(); \n this.child = new ArrayList<TreeNode>(); \n this.datas = null; \n this.candAttr = null; \n }", "private Node createNode(EventPair ep, Color c, Node parent) {\n Node node = new Node();\n node.ID = ep.ID;\n node.count = ep.count;\n node.color = c;\n node.left = createNullLeaf(node);\n node.right = createNullLeaf(node);\n node.parent = parent;\n return node;\n }", "public Node(E data) {\r\n\t\tthis.data = data;\r\n\t}", "FractalTree() {\r\n }", "protected abstract void construct();", "public Node(T ele) {\r\n\t\t\tthis.ele = ele;\r\n\t\t}", "public ClassNode(OClass clas) {\n\t\tname = clas.getName();\n\t\tsource = clas;\n\t}", "@Test\r\n\tpublic void constructorTests() {\n\t\tLibraryNode ln = ml.createNewLibrary(\"http://example.com/resource\", \"RT\", pc.getDefaultProject());\r\n\t\tBusinessObjectNode bo = ml.addBusinessObjectToLibrary(ln, \"MyBo\");\r\n\t\tNode node = bo;\r\n\t\tTLResource mbr = new TLResource();\r\n\t\tmbr.setName(\"MyTlResource\");\r\n\t\tmbr.setBusinessObjectRef(bo.getTLModelObject());\r\n\r\n\t\t// When - used in LibraryNode.generateLibrary()\r\n\t\tTLResource tlr = new ResourceBuilder().buildTL(); // get a populated tl resource\r\n\t\ttlr.setBusinessObjectRef(bo.getTLModelObject());\r\n\t\tResourceNode rn1 = new ResourceNode(tlr, ln);\r\n\r\n\t\t// When - used in tests\r\n\t\tResourceNode rn2 = ml.addResource(bo);\r\n\r\n\t\t// When - used in NodeFactory\r\n\t\tResourceNode rn3 = new ResourceNode(mbr);\r\n\t\tln.addMember(rn3);\r\n\r\n\t\t// When - used in ResourceCommandHandler to launch wizard\r\n\t\tResourceNode rn4 = new ResourceNode(node.getLibrary(), bo);\r\n\t\t// When - builder used as in ResourceCommandHandler\r\n\t\tnew ResourceBuilder().build(rn4, bo);\r\n\r\n\t\t// Then - must be complete\r\n\t\tcheck(rn1);\r\n\t\tcheck(rn2);\r\n\t\tcheck(rn3);\r\n\t\tcheck(rn4);\r\n\t}", "public TreeNode(String syscall){\r\n\t\t\tthis.syscall = syscall;\r\n\t\t\tchildren = new ArrayList<TreeNode>();\r\n\t\t\tfrequency = 0;\r\n\t\t\t//parent = null;\r\n\t\t\tindex = -1;\r\n\t\t}", "public BTNode(int value){ \r\n node = value; \r\n leftleaf = null;\r\n rightleaf = null;\r\n }", "public Node(String name) {\n this.name = name;\n }", "protected SceneGraphObject createNode( String className ) {\n\tSceneGraphObject ret;\n\n\ttry {\n Class state = Class.forName( className, true, control.getClassLoader() );\n\n\t ret = createNode( state );\n\n\t //System.err.println(\"Created J3D node for \"+className );\n\t} catch(ClassNotFoundException e) {\n if (control.useSuperClassIfNoChildClass())\n ret = createNodeFromSuper( className );\n else\n throw new SGIORuntimeException( \"No Such Class \"+\n\t\t\t\t\t\tclassName );\n\t}\n\n\treturn ret;\n }", "public MyNode() {\r\n\t\tdefine(\"load\",new Integer(getID()),true);\r\n }", "public InternalNode (int d, Node p0, String k1, Node p1, Node n, Node p){\n\n super (d, n, p);\n ptrs [0] = p0;\n keys [1] = k1;\n ptrs [1] = p1;\n lastindex = 1;\n\n if (p0 != null) p0.setParent (new Reference (this, 0, false));\n if (p1 != null) p1.setParent (new Reference (this, 1, false));\n }", "public Node(SimacogoBoard board) {\n nodeType = MAXNODE;\n bestScore = Integer.MIN_VALUE;\n limit = board.getAvailableSlotArray();\n parent = null;\n depth = 0;\n }", "public DancingNode()\n {\n L=R=U=D=this;\n }", "public Regular(Node t) {\n }", "public Constructor(){\n\t\t\n\t}" ]
[ "0.76325953", "0.7514495", "0.749731", "0.749731", "0.74776363", "0.7475214", "0.74501777", "0.74501777", "0.74501777", "0.74501777", "0.739393", "0.73275393", "0.730391", "0.72394764", "0.722919", "0.7002666", "0.6986308", "0.6986308", "0.6920932", "0.68562835", "0.68560207", "0.6811516", "0.67818946", "0.6727401", "0.67075497", "0.66984504", "0.66735417", "0.66598195", "0.66432273", "0.6624706", "0.66018903", "0.65876424", "0.6586141", "0.6558556", "0.65285283", "0.6522971", "0.65070283", "0.64742583", "0.64681137", "0.6457267", "0.64241487", "0.64239293", "0.64214414", "0.64002866", "0.6397115", "0.63965815", "0.63891333", "0.6376107", "0.6366043", "0.636581", "0.6354111", "0.6350135", "0.6348943", "0.6340399", "0.633669", "0.6323058", "0.6315672", "0.63079774", "0.63074934", "0.6302831", "0.6291164", "0.6287776", "0.6284789", "0.6282042", "0.62816024", "0.6278633", "0.62713605", "0.6271008", "0.6270696", "0.6261744", "0.62538344", "0.62535506", "0.6251965", "0.6249651", "0.6249466", "0.624732", "0.62425464", "0.6240752", "0.6240181", "0.6231438", "0.62275827", "0.621986", "0.6212661", "0.62086964", "0.62036866", "0.62035644", "0.6193472", "0.6182847", "0.61808777", "0.617789", "0.6167826", "0.61614275", "0.61608994", "0.6158579", "0.6158121", "0.61545473", "0.6153525", "0.6137444", "0.6134691", "0.61318016", "0.6120262" ]
0.0
-1
We create a node to traverse our linked list, starting with the first node
public void displayList(){ ArtistNode node = head; //while the next node isnt null, we print out the node while(node.next!=null){ System.out.println(node); //once we've printed out the current node, we set our node equal to the next node. node=node.next; } //We need this because it stops printing when node.next has a null value which the end node will always have a null value so we must print the last node //after the while loop ends System.out.println(node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addFirst (E item)\n {\n Node<E> temp = new Node<E>(item); // create a new node\n // and link to the first node\n head = temp;\n size++;\n }", "public Node<T> addFirst(T t) { \r\n Node<T> currFirst = sentinel.next;\r\n Node<T> newNode = new Node<T>(t, sentinel, currFirst);\r\n sentinel.next = newNode;\r\n currFirst.prev = newNode;\r\n size++;\r\n return newNode; \r\n }", "public LinkedListIterator(LLNode<T> firstNode) {\r\n\t\tnodeptr = firstNode;\r\n\t}", "@Override \r\n\tpublic LLNode<T> next() throws NoSuchElementException{\r\n\t\tLLNode<T> node = nodeptr;\r\n\t\tif (nodeptr == null)\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\tnodeptr = nodeptr.getNext();\r\n\t\treturn node;\r\n\t}", "private void linkFirst(E e) {\r\n \tfinal Node<E> f= first;\r\n \tfinal Node<E> newNode = new Node<>(null, e, f);\r\n \tfirst = newNode;\r\n \tif (f == null)\r\n \t\tlast = newNode;\r\n \telse\r\n \t\tf.prev = newNode;\r\n \tsize++;\r\n \tmodCount++;\r\n }", "public ListIterator(Node node) {\n\t\tcurrent = node;\n\t}", "private static Node createLoopedList()\n {\n Node n1 = new Node(1);\n Node n2 = new Node(2);\n Node n3 = new Node(3);\n Node n4 = new Node(4);\n Node n5 = new Node(5);\n Node n6 = new Node(6);\n Node n7 = new Node(7);\n Node n8 = new Node(8);\n Node n9 = new Node(9);\n Node n10 = new Node(10);\n Node n11 = new Node(11);\n\n n1.next = n2;\n n2.next = n3;\n n3.next = n4;\n n4.next = n5;\n n5.next = n6;\n n6.next = n7;\n n7.next = n8;\n n8.next = n9;\n n9.next = n10;\n n10.next = n11;\n n11.next = n5;\n\n return n1;\n }", "Node(Object newItem){\n item = newItem; //--points to a different\n next = null;\n }", "public void addFirst(Item item) {\n Node newNode = new Node();\n newNode.data = item;\n // if the DList was already empty:\n if(isEmpty()) {\n // set the next pointer of newNode to last\n newNode.next=last;\n last.prev = newNode;\n newNode.prev=first;\n first.next = newNode;\n }\n // no need to touch the last sentinel node, unless the list was already empty:\n else {\n // copy the old actual node that frist sentinel was point to\n Node oldFirst = first.next;\n first.next = newNode;\n newNode.next = oldFirst;\n newNode.prev=first;\n oldFirst.prev = newNode;\n }\n // update size\n size++;\n }", "public void addFirst(E element){\n Node<E> newNode = new Node<E>(element);\n newNode.setNext(head.getNext());\n head.setNext(newNode);\n newNode.getNext().setPrevious(newNode);\n newNode.setPrevious(head); \n size++;\n }", "public void addFirst(Object e) {\n if(head == null) {\n tail = head = new Node(e, null, null);\n return;\n }\n\n Node n = new Node(e, null, head);\n head.setPrevious(n);\n head = n;\n }", "public ListNode<T> getNext();", "public void addFirst(E e) {\n\r\n Node newNode = new Node(e,head);\r\n head = newNode;\r\n\r\n if(head.getNext() == null){\r\n tail = head;\r\n }\r\n\r\n }", "private Node<E> getNode(int index)\n {\n Node<E> node = head;\n for (int i = 0; i < index && node != null; i++) {\n node = node.next;\n }\n return node;\n }", "public void addfirst(Item item)\r\n {\r\n Node first = pre.next;\r\n Node x = new Node();\r\n x.item = item;\r\n x.prev = pre;\r\n x.next = first;\r\n pre.next = x;\r\n first.prev = x;\r\n n++;\r\n }", "void addFirst(Key k) {\n\t\tfirstNode = new Node(k, getFirstNode()); // creates new node, pointing to the previous first node and sets it to firstNode\n\t\tif(size++==0) lastNode = firstNode;\n\t}", "public void addFirst(T item) {\n\t\tNode nn = new Node();\n\t\tnn.data = item;\n\t\tnn.next = null;\n\n\t\t// linking\n\t\tnn.next = head;\n\t\thead = nn;\n\n\t}", "public void addFirst(E e) {\n this.head = new Node<>(e, head);\t// create and link a new node\r\n if (this.size == 0)\r\n this.tail = this.head;\r\n this.size ++;\r\n }", "public Node setNextNode(Node node);", "Node(Object e, Node p, Node n) {\n element = e;\n previous = p;\n next = n;\n }", "Node firstNode() {\r\n\t\treturn first.next.n;\r\n\t}", "public void addFirst(Object element)\n {\n Node newNode = new Node();\n newNode.data = element;\n newNode.next = first;\n first = newNode; \n \n }", "public LinkedListNode<T> getFirstNode() {\n\t\t//return the head node of the list\n\t\treturn head;\t\t\n\t}", "public void addFirst(E e){\n head = new Node(e, head);\n size++;\n }", "private void addNodeAtTheBeginning(int data) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n newNode.next = head;\n head = newNode;\n }", "private Node findNode(int index){\n Node current = start;\n for(int i = 0; i < index; i++){\n current = current.getNext();\n }\n return current;\n }", "public SkipListIterator(SkipListNode<K> head) {\n\ttargetHead = head;\n\tcurrent = targetHead.next(0);\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new NullPointerException(\"Item Null\");\n } else {\n\n if (isEmpty()) {\n first = new Node<Item>();\n first.item = item;\n last = first;\n } else {\n Node<Item> oldFrist = first;\n first = new Node<Item>();\n first.item = item;\n first.next = oldFrist;\n oldFrist.prev = first;\n }\n N++;\n }\n }", "public void addFirst(E item) {\n Node<E> n = new Node<>(item, head);\n size++;\n if(head == null) {\n // The list was empty\n head = tail = n;\n } else {\n head = n;\n }\n }", "public void addFirst(T value) {\n Node<T> node = new Node<T>(value);\n Node<T> next = sentinel.next;\n\n node.next = next;\n next.prev = node;\n sentinel.next = node;\n node.prev = sentinel;\n\n size += 1;\n }", "private Node<E> getNode(int index)\n {\n Node<E> node=head;\n for(int i=0;i < index && node != null;++i)\n node = node.next;\n return node;\n }", "public void addFirst(Object item){\n MovieNode first = new MovieNode(item);\t//Step 1: Create the MovieNode\n first.next = head.next;\t\t\t//Step 2: Copy the next of head to the next of MovieNode\n head.next = first;\t\t\t\t//Step 3: Update the head next value to point to the new MovieNode\n size++;\t\t\t\t\t\t\t//Step 4: Update the number of nodes in the list\n }", "private ListNode nodeAt(int index) {\n\t\tListNode current = front;\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tcurrent = current.next;\n\t\t}\n\t\treturn current;\n\t}", "private Node(Node p, E e) {\n \tCLinkedList.this.size++;\n \tthis.data = e;\n \tthis.pred = p;\n \tthis.succ = p.succ;\n \tthis.pred.succ = this;\n \tthis.succ.pred = this;\n }", "public void addAtStart(int item) {\n\t\tCLL_LinkNode new_node = new CLL_LinkNode(item);\n\t\tif (this.length == 0) {\n\t\t\tthis.headNode = new_node;\n\t\t\tthis.headNode.setNext(this.headNode);\n\t\t} else {\n\t\t\tCLL_LinkNode temp_node = this.headNode;\n\t\t\twhile (temp_node.getNext() != this.headNode)\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\ttemp_node.setNext(new_node);\n\t\t\tnew_node.setNext(headNode);\n\t\t\tthis.headNode = new_node;\n\t\t}\n\t\tthis.length++;\n\t}", "public void addFirst(Object value)\n {\n if(last == null && first == null)\n {\n ListNode temp = new ListNode(value, null);\n last = temp;\n first = temp;\n }\n else\n {\n first = new ListNode(value, first);\n }\n \n }", "public void addNode(String item){\n Node newNode = new Node(item,null);\nif(this.head == null){\n this.head = newNode;\n}else{\n Node currNode = this.head;\n while(currNode.getNextNode() != null){\n currNode = currNode.getNextNode();\n }\n currNode.setNextNode(newNode);\n}\nthis.numNodes++;\n }", "public void start(Node n) {}", "NodeIterable(Node firstChild) {\n next = firstChild;\n }", "public Node (Object newItem) {\n next = null; // set intially to null\n item = newItem;\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new NullPointerException(\"Element cannot be null.\");\n }\n Node node = new Node(item);\n node.next = head.next;\n node.prev = head;\n head.next.prev = node;\n head.next = node;\n size++;\n }", "public KListIterator(KNode<E> start){\r\n node = start;\r\n }", "static Node addOne(Node head){\n Node currentNode = head;\n int carry = 1;\n Node previousNode = null;\n\n while(currentNode!=null){\n int newValue = currentNode.data + carry;\n currentNode.data = newValue%10;\n carry = newValue/10;\n previousNode = currentNode;\n currentNode = currentNode.next;\n }\n if(carry > 0){\n previousNode.next = new Node(carry);\n }\n return head;\n }", "public SinglyLinkedList(){\n this.first = null;\n }", "Node<E> node(int index) {\n\t // assert isElementIndex(index);\n\n\t if (index < (size >> 1)) {\n\t Node<E> x = first;\n\t for (int i = 0; i < index; i++)\n\t x = x.next;\n\t return x;\n\t } else {\n\t Node<E> x = last;\n\t for (int i = size - 1; i > index; i--)\n\t x = x.prev;\n\t return x;\n\t }\n\t }", "public static Node createList(){\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter size of linked list:\");\n int n = sc.nextInt();\n\n Node head = new Node(sc.nextInt());\n Node ref = head;\n while(--n!=0) {\n head.next = new Node(sc.nextInt());\n head = head.next;\n }\n return ref;\n\n }", "private static ListNode initializeListNode() {\n\n\t\tRandom rand = new Random();\n\t\tListNode result = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\tresult.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\treturn result;\n\t}", "Node()\r\n { // constructor for head Node \r\n prev = this;\r\n next = this;\r\n trafficEntry = new TrafficEntry();\r\n }", "public Node() {\n pNext = null;\n }", "public ListNode getFirstNode(){\n\t\treturn firstNode;\n\t}", "public void addFirst(E e) { // adds element e to the front of the list\n // TODO\n if (size == 0) {\n tail = new Node<>(e, null);\n tail.setNext(tail);\n } else {\n Node<E> newest = new Node<>(e, tail.getNext());\n tail.setNext(newest);\n }\n size++;\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException(\"Can not call addFirst() with a null argument\");\n }\n Node<Item> oldFirst = first;\n first = new Node<Item>();\n first.item = item;\n first.next = oldFirst;\n if (isEmpty()) {\n last = first;\n }\n else {\n // first.prev = oldFirst;\n oldFirst.prev = first;\n }\n n++;\n }", "public void addFirst(E item){\r\n\r\n //checking the precondition\r\n\tif(item == null){\r\n\t\tthrow new IllegalArgumentException(\" item cannot equal null \");\r\n\t}\r\n\t\r\n\t//creating a new front of the list\r\n\tDoubleListNode<E> firstNode = new DoubleListNode<E>(end.getPrev(), item, null);\r\n\t\r\n\t//setting the front of the list to the head\r\n\tfirstNode.setNext(head);\r\n\t\r\n\t//setting the head to new first node\r\n\thead = firstNode;\r\n\t\r\n\t//setting the headData\r\n\theadData = head.getData();\r\n\t\r\n\r\n\r\n }", "public Node<T> getFirst() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.next;\r\n }", "private void addToHead() {\n Node currentNode = null;\n switch (head.dir) {\n case LEFT:\n currentNode = new Node(head.row - 1, head.col, head.dir);\n break;\n case RIGHT:\n currentNode = new Node(head.row + 1, head.col, head.dir);\n break;\n case UP:\n currentNode = new Node(head.row, head.col - 1, head.dir);\n break;\n case DOWN:\n currentNode = new Node(head.row, head.col + 1, head.dir);\n break;\n }\n currentNode.next = head;\n head.pre = currentNode;\n head = currentNode;\n size++;\n }", "public Node<E> getFirst(){\n Node<E> toReturn = head.getNext();\n return toReturn == tail ? null: toReturn;\n }", "private void createNodes() {\n head = new ListNode(30);\n ListNode l2 = new ListNode(40);\n ListNode l3 = new ListNode(50);\n head.next = l2;\n l2.next = l3;\n }", "public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }", "public void addToStart(Order ord){\n\t\tNode temp= new Node(ord, null, head);\n\t\tif(head!=null){\n\t\t\thead.previous=temp;\n\t\t}\n\t\thead=temp;\t\n\t}", "public void addFirst(Item item) {\n Node oldFirst = first;\n first = new Node(null, item, oldFirst);\n if (oldFirst == null)\n last = first;\n else\n oldFirst.prev = first;\n size++;\n }", "public void addFirst(Item item) {\n if (item == null) throw new NullPointerException(\"Item is null\");\n if (isEmpty()) {\n first = new Node<Item>(item);\n last = first;\n } else {\n Node<Item> newFirst = new Node<Item>(item);\n newFirst.next = first;\n first.prev = newFirst;\n first = newFirst;\n }\n size++;\n }", "public void addFirst(Item item) {\n if (item == null) throw new IllegalArgumentException(\"argument is null\");\n if (!isEmpty()) {\n Node a = new Node();\n a.item = item;\n a.prev = null;\n a.next = first;\n first.prev = a;\n first = a;\n }\n else {\n Node a = new Node();\n a.item = item;\n a.next = null;\n a.prev = null;\n first = a;\n last = a;\n }\n size++;\n }", "public LinkedListNode<T> getFirstNode()\n\t{\n\t\treturn head;\n\t}", "public void addFirst(Item item) {\n\t\tif (item == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tNode<Item> node = new Node<Item>();\n\t\tnode.item = item;\n\t\tif (head == null) {\n\t\t\ttail = node;\n\t\t} else {\n\t\t\thead.prev = node;\n\t\t}\n\t\tnode.next = head;\n\t\thead = node;\n\t\tN++;\n\t}", "public void addFirst(Item item) {\n if (item == null)\n throw new IllegalArgumentException();\n\n if (this.first == null) {\n this.first = new Node();\n this.first.item = item;\n this.last = this.first;\n } else {\n Node newfirst = new Node();\n newfirst.item = item;\n newfirst.next = this.first;\n this.first.prev = newfirst;\n this.first = newfirst;\n }\n this.n++;\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException();\n }\n Node node = new Node();\n node.item = item;\n node.next = first;\n if (first == null) {\n first = node;\n last = first;\n }\n else {\n first.pre = node;\n first = node;\n }\n len++;\n }", "SkipList()\r\n {\r\n head = new Node<T>(1); //Create a new head of our skip list and give it height 1.\r\n }", "public SkipListNode() {\n\t// construct a dummy node\n\tdata = null;\n\tnext = new ArrayList<SkipListNode<K>>();\n\tnext.add(null);\n }", "public void addFirst(Item item) {\n\t\tif (item == null) throw new NullPointerException();\n\t\t\n\t\tcount++;\n\t\t\n\t\tNode firstNode = new Node();\n\t\tfirstNode.item = item;\n\t\tif (count > 1) {\n\t\t\tfirstNode.next = first;\n\t\t\tfirst.previous = firstNode;\n\t\t} else {\n\t\t\tlast = firstNode;\n\t\t}\n\t\tfirst = firstNode;\n\t}", "public LinkedNode() {\n\t myNextNode = null;\n }", "public Node<E> addToBeginning(Node<E> node){\n node.setNext(head.getNext());\n head.getNext().setPrevious(node);\n node.setPrevious(head);\n head.setNext(node);\n size++;\n return node;\n }", "public void addFirst(Object data) {\n Node newNode = new Node(data);\n newNode.next = head;\n head = newNode;\n size ++;\n if (head.next == null) {\n tail = head;\n }\n }", "public Node next(Point p){\n\t\t// int r, Point p, LinkedList<Point> parents\n\t\t// Time? Previous time + distance\n\t\tLinkedList<Point> nextParents = new LinkedList<Point>(parents);\n\t\tnextParents.add(p);\n\t\t\n\t\tdouble nextTime = this.time + (pos.distance(p) * this.speed);\n\t\t\n\t\treturn new Node(nextTime, p, nextParents, this.speed);\n\t}", "public MyLinkedList() {\n first = null;\n n = 0;\n }", "public void addFirst(Item item){\n if (item == null)\n throw new NullPointerException();\n\n DoublyLinkedListNode<Item> node = new DoublyLinkedListNode<Item>(item);\n\n if (this.count == 0){\n this.head = this.tail = node;\n this.count++;\n return;\n }\n\n DoublyLinkedListNode tmp = head;\n head = node;\n head.next = tmp;\n tmp.previous = head;\n\n this.count++;\n }", "public ListIterator() {current=first.next;}", "public void addFirst(MemoryBlock block) {\n\t\tNode clone = tail.next; \n\t\tNode newNode = new Node(block);\n\t\tnewNode.next = clone;\n\t\tnewNode.previous = tail;\n\t\ttail.next = newNode;\n\t\tclone.previous = newNode;\n\t\tsize++;\n\t}", "@Override\n public void addFirst(E element) {\n Node<E> newNodeList = new Node<>(element, head);\n\n head = newNodeList;\n cursor = newNodeList;\n size++;\n }", "public void updateFirstNode()\n {\n firstNode = (lastNode.getNext() == null) ? lastNode : lastNode.getNext();\n }", "T addAtHead(T t) {\n new Node<T>(t, this.next, this);\n return this.next.getData();\n }", "private static Node traverseList(Node n){\n\t if(n == null)\n\t return null;\n\t if(n.visited)\n\t return n;\n\t \n\t n.visited = true;\n\t return traverseList(n.next);\n\t }", "public MyLinkedList()\n {\n head = new Node(null, null, tail);\n tail = new Node(null, head, null);\n }", "public void addFirst(T item) {\n\tif ( _size == 0 ) {\n\t _front = _end = new DLLNode<T>(item, null, null);\n\n\t}\n\telse{\n\t DLLNode<T> temp = new DLLNode<T>(item, _front, null);\n\t _front.setNext(temp);\n\t _front = temp;\n\t}\n\t_size++;\n }", "public void addFirst(Item item) {\n\t\tif (item == null) {\n\t\t\tthrow new IllegalArgumentException(\"Cannot add null item\");\n\t\t}\n\n\t\tNode node = new Node(item);\n\t\tif (first == null) {\n\t\t\tfirst = last = node;\n\t\t} else {\n\t\t\tnode.next = first;\n\t\t\tfirst.previous = node;\n\t\t\tfirst = node;\n\t\t}\n\t\tsize++;\n\n\t}", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException();\n }\n Node<Item> node = new Node<Item>(item);\n if (head == null) {\n head = node;\n tail = head;\n } else {\n head.prev = node;\n node.next = head;\n head = node;\n }\n\n size++;\n }", "public void setNext(Node<E> next) { this.next = next; }", "Iterable<T> followNode(T start) throws NullPointerException;", "public void addAtStart(Node node) {\n if(this.head == null) {\n add(node);\n return;\n };\n\n node.next = this.head;\n this.head = node;\n this.length++;\n }", "public void newNode(E value) throws Exception {\n\t\tif(!hasNext())\n\t\t\tthrow new Exception(\"This node has already been linked\");\n\t\t\n\t\tnext_node = new Node<E>(value);\n\t}", "public ListNode(E d, ListNode<E> node)\n { \n nextNode = node;\n data = d;\n }", "Node(TNode i, Node n){\t\t\t//A function to create a Node\n\t\telement = i;\t\t\t\t\n\t\tnext = n;\n\t}", "public Node method1(Node head) {\n Node fastPointer = head;\n Node slowPointer = head;\n\n while (fastPointer != null && fastPointer.next != null) {\n fastPointer = fastPointer.next.next;\n slowPointer = slowPointer.next;\n }\n\n return slowPointer;\n }", "public void addFirst(String val)\n {\n ListNode newNode = new ListNode();\n newNode.setData(val);\n newNode.setNext(head);\n head = newNode;\n if (tail == null)\n {\n tail = head;\n }\n size++;\n }", "public ListNode findIndexNode(int index)\n {\n //should probably hande this by throwing an exception when head == null rather than using the if statement.\n if (head != null)\n {\n int counter = 0;\n ListNode iteratorNode = head;\n do\n { \n if (counter + 1 == index)\n {\n return iteratorNode;\n }\n if (iteratorNode.getNext() != null)\n {\n iteratorNode = iteratorNode.getNext();\n counter++;\n }\n } while(counter + 1 <= size);\n }\n return head;\n }", "public LLNode<T> getNext() {\n return next;\n }", "@Override\n public void insertFirst(E e) {\n if (listHead == null) {\n listHead = new Node(e);\n listTail = listHead;\n }\n\n // In the general case, we simply add a new node at the start\n // of the list via the head pointer.\n else {\n listHead = new Node(e, listHead);\n }\n }", "private void linkFirst(final T element) {\r\n\t\tfinal int f = first;\r\n\t\tfinal int newNode = setFirstFree(element);\r\n\r\n\t\tsetNextPointer(newNode, f);\r\n\t\tsetPrevPointer(newNode, -1); // undefined\r\n\t\tfirst = newNode;\r\n\r\n\t\tif (f == -1) {\r\n\t\t\tlast = newNode;\r\n\t\t} else {\r\n\t\t\tsetPrevPointer(f, newNode);\r\n\t\t}\r\n\t\tsize++;\r\n\t\tmodCount++;\r\n\t}", "public LinkedListNode<T> getFirstNode()\n\t{\n\t\treturn this.head;\n\t}", "public LinkedList() {\n\t\tfirst = null;\n\t}", "public Nodo getnext ()\n\t\t{\n\t\t\treturn next;\n\t\t\t\n\t\t}", "public void addNodeToTheStart(int data){\n Node newNode = new Node(data);\n if(head == null){\n head = newNode;\n }else{\n Node tmp = head;\n head = newNode;\n head.next = tmp;\n }\n }" ]
[ "0.702138", "0.68924224", "0.680418", "0.6756058", "0.67014265", "0.66932523", "0.66666234", "0.66582274", "0.65737474", "0.6565721", "0.65652466", "0.6557887", "0.65282756", "0.65276235", "0.65198743", "0.65123373", "0.65017855", "0.6473928", "0.64559925", "0.6448088", "0.6443335", "0.64160603", "0.64094937", "0.63957125", "0.6388569", "0.63806874", "0.6372794", "0.63623893", "0.6348276", "0.63473654", "0.63420993", "0.63372654", "0.6325427", "0.6316357", "0.6302892", "0.6299563", "0.6293127", "0.6273197", "0.62643933", "0.6257597", "0.6254677", "0.62488514", "0.6238379", "0.62353015", "0.62269914", "0.62265855", "0.6226253", "0.6214358", "0.6211906", "0.6204864", "0.620324", "0.6196597", "0.61933184", "0.619224", "0.61921144", "0.6190544", "0.6176664", "0.6169139", "0.6164635", "0.6159565", "0.61592644", "0.61517775", "0.6143906", "0.6136999", "0.6135694", "0.6131033", "0.6128692", "0.61219376", "0.61212564", "0.6115629", "0.6114466", "0.6104813", "0.61045927", "0.61044246", "0.61026895", "0.60911524", "0.60902995", "0.6084816", "0.6079328", "0.60702515", "0.60694903", "0.6056735", "0.60489607", "0.60458744", "0.6044406", "0.60416466", "0.6041545", "0.6039956", "0.6034198", "0.6030474", "0.60303354", "0.6030143", "0.60273546", "0.60272074", "0.60226834", "0.6017168", "0.6014977", "0.6009996", "0.60097295", "0.6002441", "0.60004836" ]
0.0
-1
A ClientBundle that provides images for this widget.
public static interface Resources extends ClientBundle { /** * The image used to skip ahead multiple pages. */ @ImageOptions(flipRtl = true) ImageResource simplePagerFastForward(); /** * The disabled "fast forward" image. */ @ImageOptions(flipRtl = true) ImageResource simplePagerFastForwardDisabled(); /** * The image used to go to the first page. */ @ImageOptions(flipRtl = true) ImageResource simplePagerFirstPage(); /** * The disabled first page image. */ @ImageOptions(flipRtl = true) ImageResource simplePagerFirstPageDisabled(); /** * The image used to go to the last page. */ @ImageOptions(flipRtl = true) ImageResource simplePagerLastPage(); /** * The disabled last page image. */ @ImageOptions(flipRtl = true) ImageResource simplePagerLastPageDisabled(); /** * The image used to go to the next page. */ @ImageOptions(flipRtl = true) ImageResource simplePagerNextPage(); /** * The disabled next page image. */ @ImageOptions(flipRtl = true) ImageResource simplePagerNextPageDisabled(); /** * The image used to go to the previous page. */ @ImageOptions(flipRtl = true) ImageResource simplePagerPreviousPage(); /** * The disabled previous page image. */ @ImageOptions(flipRtl = true) ImageResource simplePagerPreviousPageDisabled(); /** * The styles used in this widget. */ @Source("SimplePager.css") Style simplePagerStyle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Images extends ClientBundle {\n\n\t\t@Source(\"gr/grnet/pithos/resources/mimetypes/document.png\")\n\t\tImageResource fileContextMenu();\n\n\t\t@Source(\"gr/grnet/pithos/resources/doc_versions.png\")\n\t\tImageResource versions();\n\n\t\t@Source(\"gr/grnet/pithos/resources/groups22.png\")\n\t\tImageResource sharing();\n\n\t\t@Source(\"gr/grnet/pithos/resources/border_remove.png\")\n\t\tImageResource unselectAll();\n\n\t\t@Source(\"gr/grnet/pithos/resources/demo.png\")\n\t\tImageResource viewImage();\n\n @Source(\"gr/grnet/pithos/resources/folder_new.png\")\n ImageResource folderNew();\n\n @Source(\"gr/grnet/pithos/resources/folder_outbox.png\")\n ImageResource fileUpdate();\n\n @Source(\"gr/grnet/pithos/resources/view_text.png\")\n ImageResource viewText();\n\n @Source(\"gr/grnet/pithos/resources/folder_inbox.png\")\n ImageResource download();\n\n @Source(\"gr/grnet/pithos/resources/trash.png\")\n ImageResource emptyTrash();\n\n @Source(\"gr/grnet/pithos/resources/refresh.png\")\n ImageResource refresh();\n\n /**\n * Will bundle the file 'editcut.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editcut.png\")\n ImageResource cut();\n\n /**\n * Will bundle the file 'editcopy.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editcopy.png\")\n ImageResource copy();\n\n /**\n * Will bundle the file 'editpaste.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editpaste.png\")\n ImageResource paste();\n\n /**\n * Will bundle the file 'editdelete.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editdelete.png\")\n ImageResource delete();\n\n /**\n * Will bundle the file 'translate.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/translate.png\")\n ImageResource selectAll();\n \n @Source(\"gr/grnet/pithos/resources/internet.png\")\n ImageResource internet();\n }", "interface Resources extends ClientBundle {\n @Source(\"gwtia.jpg\") public ImageResource logo();\n }", "public interface CommonClientBundle extends ClientBundle {\n public static final CommonClientBundle INSTANCE = GWT.create(CommonClientBundle.class);\n\n @Source(\"sign.png\")\n ImageResource sign();\n\n @Source(\"woodburry.png\")\n ImageResource logo();\n}", "interface Resources extends ClientBundle {\n\t\t@Source(\"gwtia.jpg\")\n\t\tpublic ImageResource logo();\n\t}", "public interface ResourceBundle extends ClientBundle {\n\tpublic static final ResourceBundle INSTANCE = GWT.create(ResourceBundle.class);\n\n\t/**\n\t * The application css\n\t * \n\t */\n\t@Source(\"ApplicationStyle.css\")\n\[email protected]\n\tpublic Style css();\n\n\t/**\n\t * The create new substitution control icon\n\t * \n\t */\n\t@Source(\"create.gif\")\n\tpublic ImageResource createIcon();\n\n\t/**\n\t * The create new substitution control icon as DataResource\n\t * \n\t */\n\t@Source(\"create.gif\")\n\tpublic DataResource createIconResource();\n\n\t/**\n\t * \n\t * Update control icon\n\t */\n\t@Source(\"update_active_icon.gif\")\n\tpublic DataResource updateIconResource();\n\n\t/**\n\t * Update controll icon in disabled state\n\t * \n\t */\n\t@Source(\"update.gif\")\n\tpublic DataResource updateIconDisabledResource();\n\n\t/**\n\t * Delete icon\n\t * \n\t */\n\t@Source(\"delete_active_icon.gif\")\n\tpublic DataResource deleteIconResource();\n\n\t/**\n\t * Delete icon disabled\n\t * \n\t */\n\t@Source(\"delete.gif\")\n\tpublic DataResource deleteIconDisabledResource();\n\n\t/**\n\t * The window icon on substitution management window\n\t * \n\t */\n\t@Source(\"wind_icon.gif\")\n\tpublic ImageResource substitutionWindowIcon();\n\n\t/**\n\t * The window icon on edit substitution window\n\t * \n\t */\n\t@Source(\"wind_icon2.gif\")\n\tpublic ImageResource substitutionEditWindowIcon();\n\n\t/**\n\t * \n\t * The X image\n\t */\n\t@Source(\"close_btn.gif\")\n\tpublic ImageResource closeButtonIcon();\n\n\t/**\n\t * \n\t * The X image as resource\n\t * \n\t */\n\t@Source(\"close_btn.gif\")\n\tpublic DataResource closeButtonIconResource();\n\n\t/**\n\t * \n\t * Window styling corner\n\t * \n\t */\n\t@Source(\"top_left_corner.png\")\n\tpublic DataResource topLeftCorner();\n\n\t/**\n\t * \n\t * Window styling corner\n\t * \n\t */\n\t@Source(\"top_right_corner.png\")\n\tpublic DataResource topRightCorner();\n\n\t/**\n\t * \n\t * Window styling corner\n\t * \n\t */\n\t@Source(\"bottom_left_corner.png\")\n\tpublic DataResource bottomLeftCorner();\n\n\t/**\n\t * \n\t * Window styling corner\n\t * \n\t */\n\t@Source(\"bottom_right_corner.png\")\n\tpublic DataResource bottomRightCorner();\n\n\t/**\n\t * \n\t * Window styling background\n\t * \n\t */\n\t@Source(\"top_repeat_center.png\")\n\tpublic DataResource topCenterBackground();\n\n\t/**\n\t * \n\t * Window styling background\n\t * \n\t */\n\t@Source(\"left_middle_cen.png\")\n\tpublic DataResource middleLeftBackground();\n\n\t/**\n\t * \n\t * Window styling background\n\t * \n\t */\n\t@Source(\"bottom_repeat_center.png\")\n\tpublic DataResource bottomCenterBackground();\n\n\t/**\n\t * \n\t * Window styling background\n\t * \n\t */\n\t@Source(\"right_middle_cen.png\")\n\tpublic DataResource middleRightBackground();\n\n\t/**\n\t * \n\t * The button styling\n\t * \n\t */\n\t@Source(\"btn_bg_l.png\")\n\tpublic DataResource buttonLeftBackgroungResource();\n\n\t/**\n\t * \n\t * The button styling\n\t * \n\t */\n\t@Source(\"btn_bg_r.png\")\n\tpublic DataResource buttonRightBackgroungResource();\n\n\t/**\n\t * \n\t * The button styling\n\t * \n\t */\n\t@Source(\"btn_bg_c.png\")\n\tpublic DataResource buttonCenterBackgroungResource();\n\n\t/**\n\t * \n\t * Cancel button icon resource\n\t */\n\t@Source(\"cancel_icon.png\")\n\tpublic DataResource cancelIconResource();\n\n\t/**\n\t * The tabs styling resource\n\t * \n\t */\n\t@Source(\"tab_active_bg_l.jpg\")\n\tpublic DataResource tabActiveBackgroundLeftResource();\n\n\t/**\n\t * The tabs styling resource\n\t * \n\t */\n\t@Source(\"tab_active_bg_r.jpg\")\n\tpublic DataResource tabActiveBackgroundRightResource();\n\n\t/**\n\t * The tabs styling resource\n\t * \n\t */\n\t@Source(\"tab_state_bg_l.jpg\")\n\tpublic DataResource tabBackgroundLeftResource();\n\n\t/**\n\t * The tabs styling resource\n\t * \n\t */\n\t@Source(\"tab_state_bg_r.jpg\")\n\tpublic DataResource tabBackgroundRightResource();\n\n\t/**\n\t * The tabs styling resource\n\t * \n\t */\n\t@Source(\"tab_nav_bg.gif\")\n\tpublic DataResource tabNavigationBackgroundRightResource();\n\n\t/**\n\t * The background image for control panel\n\t * \n\t */\n\t@Source(\"control_panel_bg.gif\")\n\tpublic DataResource controlPanelBackgroundResource();\n\n\t/**\n\t * \n\t * The date piker icon\n\t * \n\t */\n\t@Source(\"date_picker.gif\")\n\tpublic DataResource datePickerIconResource();\n\n\t/**\n\t * Save button icom\n\t * \n\t */\n\t@Source(\"save_icon.png\")\n\tpublic DataResource saveButtonIconResource();\n\n\t/**\n\t * The CSSResource style class\n\t * \n\t * @author Ilya Sviridov\n\t * \n\t */\n\tpublic interface Style extends CssResource {\n\t\t/**\n\t\t * Returns tabTyle\n\t\t */\n\t\tString tabStyle();\n\t}\n}", "private static ImageResource initImageResource() {\n\t\tImageResource imageResource = new ImageResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\timageResource.addResource(ImageTypeAWMS.VERTICAL_BAR.name(), imagePath + \"blue_vertical_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.HORIZONTAL_BAR.name(), imagePath + \"blue_horizontal_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.WELCOME.name(), imagePath + \"welcome.png\");\n\t\t\n\t\t\n\t\treturn imageResource;\n\t}", "public interface SearchBoxUserRecordResources extends ClientBundle {\n\n /**\n * The style source to be used in this widget\n */\n @Source(\"SearchBoxUserRecord.css\")\n Style searchBoxUserRecordStyle();\n\n /**\n * Icon used as the default user avatar\n */\n @Source(\"images/Default_user_icon.png\")\n @ImageOptions(flipRtl = true)\n ImageResource defaultUserAvatar();\n\n /**\n * Icon used as the default user avatar\n */\n @Source(\"images/deleteButton.png\")\n @ImageOptions(flipRtl = true)\n ImageResource removeIcon();\n }", "public AlternateImageRenderer() {\r\n super(\"\");\r\n images = new Image[2];\r\n try {\r\n Resources imageRes = UIDemoMain.getResource(\"images\");\r\n images[0] = imageRes.getImage(\"sady.png\");\r\n images[1] = imageRes.getImage(\"smily.png\");\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n setUIID(\"ListRenderer\");\r\n }", "public ImagePanel() {\n\t\ttry {\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigorest.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigono.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigolow.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigohigh.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigocondensation.png\").getPath())));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }", "@Override\n public String getImagePath() {\n return IMAGE_PATH;\n }", "@Override\n public String GetImagePart() {\n return \"coal\";\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n// Image image = new Image(\"/Icons/communication.jpg\");\r\n// ImageView iv = new ImageView();\r\n// imgA.setImage(image);\r\n }", "public Client() {\n initComponents();\n setIcon();\n }", "@Override\n\tpublic String getImagesUrl() {\n\t\treturn SERVER;\n\t}", "public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }", "public interface LeadImageContainer {\n\tLeadAsset getImage();\n}", "@Override\n\tpublic BufferedImage getImage() {\n\t\tif (cimg == null)\n\t\t\ttry {\n\t\t\t\tcimg = ImageIO.read(WizardRpgXpVxLicenePage.class.getResource(\"licence.jpg\"));\n\t\t\t} catch (Throwable t) {\n\t\t\t\tYEx.info(\"Can not load Image \" + getImgName() + \" for wizard\", t);\n\t\t\t}\n\t\treturn cimg;\n\t}", "public javafx.scene.image.Image getImage() {\n return super.getImage();\n }", "public javafx.scene.image.Image getImage() {\n return super.getImage();\n }", "public javafx.scene.image.Image getImage() {\n return super.getImage();\n }", "@Override\n public void initialize(URL url, ResourceBundle resourceBundle) {\n File file = new File(\"src/chat/images/send.png\");\n Image image = new Image(file.toURI().toString());\n sendButton.setImage(image);\n\n // change list background\n messagesList.setStyle(\"-fx-control-inner-background: none;\");\n usersList.setStyle(\"-fx-control-inner-background: none;\");\n\n }", "public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "@Override\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tImage imgcontact = new Image(\"/images/Contact.png\");\n\t\tthis.contactUs.setImage(imgcontact);\n\t}", "public ImageIcon getHandlerImageIcon();", "public String getImage() { return image; }", "private Images() {}", "public BufferedImage getImage() {\n return embeddedImage;\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}", "@Override\n \n \n public void initialize(URL url, ResourceBundle rb) {\n retornararImg();\n\n }", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:image\")\n public HippoGalleryImageSet getImage() {\n return getLinkedBean(IMAGE, HippoGalleryImageSet.class);\n }", "Images getImages(){\n return images;\n }", "public SpinningKartJPanel() \n {\n images = new ImageIcon[ TOTAL_IMAGES ];\n \n // Load 16 images\n for ( int count = 0; count < images.length; count++ )\n images[ count ] = new ImageIcon( getClass().getResource( \"C1_ARU/\" + IMAGE_NAME + count + \".png\" ) );\n \n // All images have the same width and height\n width = images[ 0 ].getIconWidth(); // get icon width\n height = images[ 0 ].getIconHeight(); // get icon height \n }", "public String getImageUrl();", "@ApiModelProperty(value = \"An image to give an indication of what to expect when renting this vehicle.\")\n public List<Image> getImages() {\n return images;\n }", "@Override\n\tImageIcon getImage() {\n\t\treturn img;\n\t}", "protected ImagePanel() {\n pictureBox = new AWTPictureBox(getWidth(), getHeight());\n //add(pictureBox);\n }", "public Image getSemibreveRest();", "private Images() {\n \n imgView = new ImageIcon(this,\"images/View\");\n\n imgUndo = new ImageIcon(this,\"images/Undo\");\n imgRedo = new ImageIcon(this,\"images/Redo\");\n \n imgCut = new ImageIcon(this,\"images/Cut\");\n imgCopy = new ImageIcon(this,\"images/Copy\");\n imgPaste = new ImageIcon(this,\"images/Paste\");\n \n imgAdd = new ImageIcon(this,\"images/Add\");\n \n imgNew = new ImageIcon(this,\"images/New\");\n imgDel = new ImageIcon(this,\"images/Delete\");\n \n imgShare = new ImageIcon(this,\"images/Share\");\n }", "public InlineImage getInlineImage(\n )\n {return getBaseDataObject();}", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "public interface ImageRenderer {\n /** Set displayed image from ImageProvider. This method is recommended,\n * because it allows the Rendered to choose the most efficient transfer\n * format. \n */\n void setImageFromSpec(ImageProvider spec);\n\n /** Set displayed image from buffered image. */\n void setImage(BufferedImage i);\n \n /** \n * Specify whether rendering should keep the aspect ratio of the image. \n * If no, it well be stretched to the display surface. If yes, borders\n * may occur, if the aspect ratio of surface and source image are different.\n * The default is false.\n */\n public void setKeepAspectRatio(boolean keepAspect);\n \n /**\n * Setter for property imageLocation.\n * @param imageLocation New value of property imageLocation.\n */\n void setImageLocation(URL imageLocation) throws IOException;\n\n /**\n * Setter for property imageResource.\n * @param imageResource New value of property imageResource.\n */\n void setImageResource(String imageResource) throws IOException;\n\n}", "public HippoGalleryImageSetBean getImage() {\n return getLinkedBean(\"myspringbasedhippoproject:image\", HippoGalleryImageSetBean.class);\n }", "String getItemImage();", "public ImageIcon displayItem(Player owner){\n\t\treturn image;\n\t}", "java.lang.String getImagePath();", "public interface HtmlResources extends ClientBundle {\n HtmlResources INSTANCE = GWT.create(HtmlResources.class);\n\n @NotNull\n @Source(\"com/murrayc/bigoquiz/client/ui/reading.html\")\n TextResource getReadingHtml();\n\n @NotNull\n @Source(\"com/murrayc/bigoquiz/client/ui/sidebar-advert.html\")\n TextResource getSidebarAdvertHtml();\n\n @NotNull\n @Source(\"com/murrayc/bigoquiz/client/ui/about.html\")\n TextResource getAboutHtml();\n\n @NotNull\n @Source(\"com/murrayc/bigoquiz/client/ui/home.html\")\n TextResource getHomeHtml();\n\n @NotNull\n @Source(\"com/murrayc/bigoquiz/client/ui/home-end.html\")\n TextResource getHomeEndHtml();\n}", "@Override\n public String getImageLink() {\n return imageLink;\n }", "public Add_Book() {\n initComponents();\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"ic_logo.png\")));\n }", "public String getImage() {\n return image;\n }", "public Image getSemibreve();", "public ImageIcon getImage();", "private void createUIComponents() {\n Fond = new JLabel(new ImageIcon(\"maxresdefault.jpg\"));\r\n Fond.setIcon(new ImageIcon(\"maxresdefault.jpg\"));\r\n }", "String getImagePath();", "String getImagePath();", "public ImageList() {\n\t\timageList = new ImageIcon[] { ImageList.BALLOON, ImageList.BANANA, ImageList.GENIE, ImageList.HAMSTER,\n\t\t\t\tImageList.HEART, ImageList.LION, ImageList.MONEY, ImageList.SMOOTHIE, ImageList.TREE, ImageList.TRUCK };\n\t}", "public interface ImageView {\n void addImages(List<ImageBean> list);\n void showProgress();\n void hideProgress();\n void showLoadFailMsg();\n}", "public String getStaticPicture();", "@Output(\"image\")\n public Image getImage() {\n return image;\n }", "public interface ImageServer extends Remote {\n\n /**\n * Returns the identifier of the remote image. This method should be\n * called to return an identifier before any other methods are invoked.\n * The same ID must be used in all subsequent references to the remote\n * image.\n */\n Long getRemoteID() throws RemoteException;\n\n /**\n * Disposes of any resouces allocated to the client object with\n * the specified ID.\n */\n void dispose(Long id) throws RemoteException;\n\n /**\n * Increments the reference count for this id, i.e. increments the\n * number of RMIServerProxy objects that currently reference this id.\n */\n void incrementRefCount(Long id) throws RemoteException;\n\n\n /// Methods Common To Rendered as well as Renderable modes.\n\n\n /**\n * Gets a property from the property set of this image.\n * If the property name is not recognized, java.awt.Image.UndefinedProperty\n * will be returned.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param name the name of the property to get, as a String.\n * @return a reference to the property Object, or the value\n * java.awt.Image.UndefinedProperty.\n */\n Object getProperty(Long id, String name) throws RemoteException;\n\n /**\n * Returns a list of names recognized by getProperty(String).\n *\n * @return an array of Strings representing proeprty names.\n */\n String [] getPropertyNames(Long id) throws RemoteException;\n\n /**\n * Returns a list of names recognized by getProperty().\n *\n * @return an array of Strings representing property names.\n */\n String[] getPropertyNames(String opName) throws RemoteException;\n\n\n /// Rendered Mode Methods\n\n\n /** Returns the ColorModel associated with this image. */\n SerializableState getColorModel(Long id) throws RemoteException;\n\n /** Returns the SampleModel associated with this image. */\n SerializableState getSampleModel(Long id) throws RemoteException;\n\n /** Returns the width of the image on the ImageServer. */\n int getWidth(Long id) throws RemoteException;\n\n /** Returns the height of the image on the ImageServer. */\n int getHeight(Long id) throws RemoteException;\n\n /**\n * Returns the minimum X coordinate of the image on the ImageServer.\n */\n int getMinX(Long id) throws RemoteException;\n\n /**\n * Returns the minimum Y coordinate of the image on the ImageServer.\n */\n int getMinY(Long id) throws RemoteException;\n\n /** Returns the number of tiles across the image. */\n int getNumXTiles(Long id) throws RemoteException;\n\n /** Returns the number of tiles down the image. */\n int getNumYTiles(Long id) throws RemoteException;\n\n /**\n * Returns the index of the minimum tile in the X direction of the image.\n */\n int getMinTileX(Long id) throws RemoteException;\n\n /**\n * Returns the index of the minimum tile in the Y direction of the image.\n */\n int getMinTileY(Long id) throws RemoteException;\n\n /** Returns the width of a tile in pixels. */\n int getTileWidth(Long id) throws RemoteException;\n\n /** Returns the height of a tile in pixels. */\n int getTileHeight(Long id) throws RemoteException;\n\n /** Returns the X offset of the tile grid relative to the origin. */\n int getTileGridXOffset(Long id) throws RemoteException;\n\n /** Returns the Y offset of the tile grid relative to the origin. */\n int getTileGridYOffset(Long id) throws RemoteException;\n\n /**\n * Returns tile (x, y). Note that x and y are indices into the\n * tile array, not pixel locations. Unlike in the true RenderedImage\n * interface, the Raster that is returned should be considered a copy.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param x the x index of the requested tile in the tile array\n * @param y the y index of the requested tile in the tile array\n * @return a copy of the tile as a Raster.\n */\n SerializableState getTile(Long id, int x, int y) throws RemoteException;\n\n /**\n * Compresses tile (x, y) and returns the compressed tile's contents\n * as a byte array. Note that x and y are indices into the\n * tile array, not pixel locations.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param x the x index of the requested tile in the tile array\n * @param y the y index of the requested tile in the tile array\n * @return a byte array containing the compressed tile contents.\n */\n byte[] getCompressedTile(Long id, int x, int y) throws RemoteException;\n\n /**\n * Returns the entire image as a single Raster.\n *\n * @return a SerializableState containing a copy of this image's data.\n */\n SerializableState getData(Long id) throws RemoteException;\n\n /**\n * Returns an arbitrary rectangular region of the RenderedImage\n * in a Raster. The rectangle of interest will be clipped against\n * the image bounds.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param bounds the region of the RenderedImage to be returned.\n * @return a SerializableState containing a copy of the desired data.\n */\n SerializableState getData(Long id, Rectangle bounds) \n\tthrows RemoteException;\n\n /**\n * Returns the same result as getData(Rectangle) would for the\n * same rectangular region.\n */\n SerializableState copyData(Long id, Rectangle bounds)\n\tthrows RemoteException;\n\n /**\n * Creates a RenderedOp on the server side with a parameter block\n * empty of sources. The sources are set by separate calls depending\n * upon the type and serializabilty of the source.\n */\n\n void createRenderedOp(Long id, String opName,\n\t\t\t ParameterBlock pb,\n\t\t\t SerializableState hints) throws RemoteException;\n\n /**\n * Calls for Rendering of the Op and returns true if the RenderedOp\n * could be rendered else false\n */\n boolean getRendering(Long id) throws RemoteException;\n\n /**\n * Retrieve a node from the hashtable.\n */\n RenderedOp getNode(Long id) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderedImage on the server side\n */\n void setRenderedSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image as a RenderedOp on the server side\n */\n void setRenderedSource(Long id, RenderedOp source, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image which is on the same\n * server\n */\n void setRenderedSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image which is on a different\n * server\n */\n void setRenderedSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;\n\n\n /// Renderable mode methods\n\n\n /** \n * Gets the minimum X coordinate of the rendering-independent image\n * stored against the given ID.\n *\n * @return the minimum X coordinate of the rendering-independent image\n * data.\n */\n float getRenderableMinX(Long id) throws RemoteException;\n\n /** \n * Gets the minimum Y coordinate of the rendering-independent image\n * stored against the given ID.\n *\n * @return the minimum X coordinate of the rendering-independent image\n * data.\n */\n float getRenderableMinY(Long id) throws RemoteException;\n\n /** \n * Gets the width (in user coordinate space) of the \n * <code>RenderableImage</code> stored against the given ID.\n *\n * @return the width of the renderable image in user coordinates.\n */\n float getRenderableWidth(Long id) throws RemoteException;\n \n /**\n * Gets the height (in user coordinate space) of the \n * <code>RenderableImage</code> stored against the given ID.\n *\n * @return the height of the renderable image in user coordinates.\n */\n float getRenderableHeight(Long id) throws RemoteException;\n\n /**\n * Creates a RenderedImage instance of this image with width w, and\n * height h in pixels. The RenderContext is built automatically\n * with an appropriate usr2dev transform and an area of interest\n * of the full image. All the rendering hints come from hints\n * passed in.\n *\n * <p> If w == 0, it will be taken to equal\n * Math.round(h*(getWidth()/getHeight())).\n * Similarly, if h == 0, it will be taken to equal\n * Math.round(w*(getHeight()/getWidth())). One of\n * w or h must be non-zero or else an IllegalArgumentException \n * will be thrown.\n *\n * <p> The created RenderedImage may have a property identified\n * by the String HINTS_OBSERVED to indicate which RenderingHints\n * were used to create the image. In addition any RenderedImages\n * that are obtained via the getSources() method on the created\n * RenderedImage may have such a property.\n *\n * @param w the width of rendered image in pixels, or 0.\n * @param h the height of rendered image in pixels, or 0.\n * @param hints a RenderingHints object containg hints.\n * @return a RenderedImage containing the rendered data.\n */\n RenderedImage createScaledRendering(Long id, \n\t\t\t\t\tint w, \n\t\t\t\t\tint h, \n\t\t\t\t\tSerializableState hintsState) \n\tthrows RemoteException;\n \n /** \n * Returnd a RenderedImage instance of this image with a default\n * width and height in pixels. The RenderContext is built\n * automatically with an appropriate usr2dev transform and an area\n * of interest of the full image. The rendering hints are\n * empty. createDefaultRendering may make use of a stored\n * rendering for speed.\n *\n * @return a RenderedImage containing the rendered data.\n */\n RenderedImage createDefaultRendering(Long id) throws RemoteException;\n \n /** \n * Creates a RenderedImage that represented a rendering of this image\n * using a given RenderContext. This is the most general way to obtain a\n * rendering of a RenderableImage.\n *\n * <p> The created RenderedImage may have a property identified\n * by the String HINTS_OBSERVED to indicate which RenderingHints\n * (from the RenderContext) were used to create the image.\n * In addition any RenderedImages\n * that are obtained via the getSources() method on the created\n * RenderedImage may have such a property.\n *\n * @param renderContext the RenderContext to use to produce the rendering.\n * @return a RenderedImage containing the rendered data.\n */\n RenderedImage createRendering(Long id, \n\t\t\t\t SerializableState renderContextState) \n\tthrows RemoteException;\n\n /**\n * Creates a RenderableOp on the server side with a parameter block\n * empty of sources. The sources are set by separate calls depending\n * upon the type and serializabilty of the source.\n */\n void createRenderableOp(Long id, String opName, ParameterBlock pb)\n\tthrows RemoteException;\n\n /**\n * Calls for rendering of a RenderableOp with the given SerializableState\n * which should be a RenderContextState.\n */\n Long getRendering(Long id, SerializableState rcs) throws RemoteException;\n\n /**\n * Sets the source of the image which is on the same\n * server\n */\n void setRenderableSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image which is on a different\n * server\n */\n void setRenderableSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;\n\n /**\n * Sets the source of the operation refered to by the supplied \n * <code>id</code> to the <code>RenderableRMIServerProxy</code>\n * that exists on the supplied <code>serverName</code> under the\n * supplied <code>sourceId</code>. \n */\n void setRenderableRMIServerProxyAsSource(Long id,\n\t\t\t\t\t Long sourceId, \n\t\t\t\t\t String serverName,\n\t\t\t\t\t String opName,\n\t\t\t\t\t int index) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderableOp on the server side.\n */\n void setRenderableSource(Long id, RenderableOp source,\n\t\t\t int index) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderableImage on the server side.\n */\n void setRenderableSource(Long id, SerializableRenderableImage source,\n\t\t\t int index) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderedImage on the server side\n */\n void setRenderableSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;\n\n /**\n * Maps the RenderContext for the remote Image\n */\n SerializableState mapRenderContext(int id, Long nodeId,\n\t\t\t\t String operationName,\n\t\t\t\t SerializableState rcs)\n\tthrows RemoteException;\n\n /**\n * Gets the Bounds2D of the specified Remote Image\n */\n SerializableState getBounds2D(Long nodeId, String operationName)\n\tthrows RemoteException;\n\n /**\n * Returns <code>true</code> if successive renderings with the same\n * arguments may produce different results for this opName\n *\n * @return <code>false</code> indicating that the rendering is static.\n */\n public boolean isDynamic(String opName) throws RemoteException;\n\n /**\n * Returns <code>true</code> if successive renderings with the same\n * arguments may produce different results for this opName\n *\n * @return <code>false</code> indicating that the rendering is static.\n */\n public boolean isDynamic(Long id) throws RemoteException;\n\n /**\n * Gets the operation names supported on the Server\n */\n String[] getServerSupportedOperationNames() throws RemoteException;\n\n /**\n * Gets the <code>OperationDescriptor</code>s of the operations\n * supported on this server.\n */\n List getOperationDescriptors() throws RemoteException;\n\n /**\n * Calculates the region over which two distinct renderings\n * of an operation may be expected to differ.\n *\n * <p> The class of the returned object will vary as a function of\n * the nature of the operation. For rendered and renderable two-\n * dimensional images this should be an instance of a class which\n * implements <code>java.awt.Shape</code>.\n *\n * @return The region over which the data of two renderings of this\n * operation may be expected to be invalid or <code>null</code>\n * if there is no common region of validity.\n */\n SerializableState getInvalidRegion(Long id,\n\t\t\t\t ParameterBlock oldParamBlock,\n\t\t\t\t SerializableState oldHints,\n\t\t\t\t ParameterBlock newParamBlock,\n\t\t\t\t SerializableState newHints)\n\tthrows RemoteException;\n\n /**\n * Returns a conservative estimate of the destination region that\n * can potentially be affected by the pixels of a rectangle of a\n * given source. \n *\n * @param id A <code>Long</code> identifying the node for whom\n * the destination region needs to be calculated .\n * @param sourceRect The <code>Rectangle</code> in source coordinates.\n * @param sourceIndex The index of the source image.\n *\n * @return A <code>Rectangle</code> indicating the potentially\n * affected destination region, or <code>null</code> if\n * the region is unknown.\n */\n Rectangle mapSourceRect(Long id, Rectangle sourceRect, int sourceIndex)\n\tthrows RemoteException;\n\n /**\n * Returns a conservative estimate of the region of a specified\n * source that is required in order to compute the pixels of a\n * given destination rectangle. \n *\n * @param id A <code>Long</code> identifying the node for whom\n * the source region needs to be calculated .\n * @param destRect The <code>Rectangle</code> in destination coordinates.\n * @param sourceIndex The index of the source image.\n *\n * @return A <code>Rectangle</code> indicating the required source region.\n */\n Rectangle mapDestRect(Long id, Rectangle destRect, int sourceIndex)\n\tthrows RemoteException;\n\n /**\n * A method that handles a change in some critical parameter.\n */\n Long handleEvent(Long renderedOpID, \n\t\t String propName,\n\t\t Object oldValue, \n\t\t Object newValue) throws RemoteException;\n\n /**\n * A method that handles a change in one of it's source's rendering,\n * i.e. a change that would be signalled by RenderingChangeEvent.\n */\n Long handleEvent(Long renderedOpID, \n\t\t int srcIndex,\n\t\t SerializableState srcInvalidRegion, \n\t\t Object oldRendering) throws RemoteException;\n\n /**\n * Returns the server's capabilities as a\n * <code>NegotiableCapabilitySet</code>. Currently the only capabilities\n * that are returned are those of TileCodecs.\n */\n NegotiableCapabilitySet getServerCapabilities() throws RemoteException;\n\n /**\n * Informs the server of the negotiated values that are the result of\n * a successful negotiation.\n *\n * @param id An ID for the node which must be unique across all clients.\n * @param negotiatedValues The result of the negotiation.\n */\n void setServerNegotiatedValues(Long id, \n\t\t\t\t NegotiableCapabilitySet negotiatedValues)\n\tthrows RemoteException; \n}", "public Image getImage() {\r\n\t\treturn GDAssemblerUI.getImage(GDAssemblerUI.IMAGE_GD);\r\n\t}", "@Source(\"control_panel_bg.gif\")\n\tpublic DataResource controlPanelBackgroundResource();", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n photo.setImage(new Image(\"/Image/photobtn.png\"));\n KING.setImage(new Image(\"/Image/king-8.png\"));\n validerbtn.setImage(new Image(\"/Image/validerbtn.png\"));\n retourbtn.setImage(new Image(\"/Image/retour-8.png\"));\n bgimg.setImage(new Image(\"/Image/bgmain.png\"));\n }", "public List<WebResource> getImages() {\r\n\t\tList<WebResource> result = new Vector<WebResource>();\r\n\t\tList<WebComponent> images = wcDao.getImages();\r\n\t\t// settare l'href corretto...\r\n\t\tfor (Iterator<WebComponent> iter = images.iterator(); iter.hasNext();) {\r\n\t\t\tresult.add((WebResource) iter.next());\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public ImageView getImage() {\n ImageView and = new ImageView(Image);\n and.setFitWidth(70);\n and.setFitHeight(50);\n return and;\n }", "@Override\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\t// set images\n\t\tImage img1 = new Image(this.getClass().getResource(\"loginForm.PNG\").toString());\n\t\timgLogin.setImage(img1);\n\t\tImage img2 = new Image(this.getClass().getResource(\"logo.png\").toString());\n\t\timgLogo.setImage(img2);\n\t\tImage img3 = new Image(this.getClass().getResource(\"copyright.png\").toString());\n\t\timgCopyRights.setImage(img3);\n\t}", "@Override\n\tpublic void loadImages() {\n\t\tsuper.setImage((new ImageIcon(\"pacpix/QuestionCandy.png\")).getImage());\t\n\t}", "private Container buildNewButtonContainer() {\n\n\t\tImage cancelImage = new Image(\"static/images/cancel.gif\", \"Cancel\");\n\t\tcancelImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\tcancelImage.addAttribute(\"onClick\", \"javascript:cancelReload()\");\n\n\t\tImage addAssetImage = new Image(\"static/images/save.gif\", \"Save\");\n\t\taddAssetImage.addAttribute(\"style\", \"cursor: pointer;\");\n\t\taddAssetImage.addAttribute(\"onClick\",\n\t\t\t\t\"javascript:InsertNewAssetDetails()\");\n\n\t\tContainer container = new Container(Type.DIV);\n\t\tcontainer.addComponent(addAssetImage);\n\t\tcontainer.addComponent(cancelImage);\n\t\tcontainer.addAttribute(\"style\", \"width: 100%\");\n\t\tcontainer.addAttribute(\"align\", \"center;\");\n\n\t\treturn container;\n\t}", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "String[] getToolBarImages()\n {\n return new String[]{\n configfile.header_home, \n configfile.header_home_pop,\n configfile.header_refresh,\n configfile.header_options,\n configfile.header_navigator,\n configfile.header_navigator_pop,\n configfile.header_configure,\n configfile.header_help,\n configfile.header_whatsthis,\n configfile.header_ifs_logo\n };\n }", "public String getImageUrl() {\n return imageUrl;\n }", "java.lang.String getProductImageUrl();", "public ImageIcon getImage()\n {\n return image;\n }", "public SplashWindow() {\n imagem = new JLabel(new ToImageIcon().toImageIcon(new ImagemLoad().imageLoader(img)));\n imagem.setBorder(BorderFactory.createLineBorder(Color.black, 1));\n }", "public Sniffer() { \n initComponents(); \n setLocationRelativeTo(getRootPane());\n setIconImage(Toolkit.getDefaultToolkit().getImage(MainFrame.class.getResource(\"/views/images/sam_icon.png\")));\n }", "public JPanel getImageButtonsPanel() {\r\n\t\treturn imageButtonsPanel;\r\n\t}", "void setImageResource(String imageResource) throws IOException;", "public Tela_Livro() {\n initComponents();\n this.setTitle(\"Sistema de Bibliotecas Columba - Admnistrador\"); \n URL iconURL = getClass().getResource(\"/org/me/myimageapp/resources/lib_icon.png\");\n // iconURL is null when not found\n ImageIcon icon = new ImageIcon(iconURL);\n this.setIconImage(icon.getImage());\n }", "@Override\n\tpublic Image[] getStaticImages() {\n\t\treturn null;\n\t}", "private ImageView getListItemGameImage(final Project project) throws IOException {\n\t\tfinal ImageView iv = new ImageView(getResourceAsUrl(gameService.getGameItemPath(project.getGame())).toString());\n\t\tiv.setFitHeight(32);\n\t\tiv.setFitWidth(32);\n\t\treturn iv;\n\t}", "public String getImage()\n {\n return image;\n }", "public YourImage() {\n initComponents();\n }", "private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }", "@Source(\"create.gif\")\n\tpublic ImageResource createIcon();", "public ImageIcon image() {\n return image;\n }", "java.lang.String getImage();", "private static Component createIconComponent()\n {\n JPanel wrapIconPanel = new TransparentPanel(new BorderLayout());\n\n JLabel iconLabel = new JLabel();\n\n iconLabel.setIcon(DesktopUtilActivator.getResources()\n .getImage(\"service.gui.icons.AUTHORIZATION_ICON\"));\n\n wrapIconPanel.add(iconLabel, BorderLayout.NORTH);\n\n return wrapIconPanel;\n }", "public ImageEditor() {\r\n initComponents(); \r\n }", "@AutoGenerated\r\n\tprivate VerticalLayout buildPnlLogo() {\n\t\tpnlLogo = new VerticalLayout();\r\n\t\tpnlLogo.setImmediate(false);\r\n\t\tpnlLogo.setWidth(\"400px\");\r\n\t\tpnlLogo.setHeight(\"106px\");\r\n\t\tpnlLogo.setMargin(false);\r\n\t\t\r\n\t\t// imgLogin\r\n\t\timgLogin = new Embedded();\r\n\t\timgLogin.setImmediate(false);\r\n\t\timgLogin.setWidth(\"100.0%\");\r\n\t\timgLogin.setHeight(\"100.0%\");\r\n\t\timgLogin.setSource(new ThemeResource(\"img/logo.png\"));\r\n\t\timgLogin.setType(1);\r\n\t\timgLogin.setMimeType(\"image/png\");\r\n\t\tpnlLogo.addComponent(imgLogin);\r\n\t\t\r\n\t\treturn pnlLogo;\r\n\t}", "public Image getBikeImage() {\r\n\t\treturn bikeImage;\r\n\t}", "public String getImagePath() {\n\t\treturn imagePath;\n\t}", "public VirtualMachineImageResourceList() {\n super();\n this.setResources(new LazyArrayList<VirtualMachineImageResource>());\n }", "public ImageHandler() {\n if (System.getProperty(\"os.name\").toLowerCase().contains(\"win\")) {\n this.OS = \"windows/\";\n } else {\n this.OS = \"mac/\";\n }\n }", "public com.yahoo.xpathproto.TransformTestProtos.ContentImage.Builder getImageByHandlerBuilder() {\n bitField0_ |= 0x00004000;\n onChanged();\n return getImageByHandlerFieldBuilder().getBuilder();\n }", "public synchronized BufferedImage image() {\n\t\tif (this.image == null) {\n\t\t\tString name;\n\t\t\tswitch (this) {\n\t\t\tcase INFO:\n\t\t\t\tname = \"info.png\"; // NOI18N\n\t\t\t\tbreak;\n\t\t\tcase WARNING:\n\t\t\t\tname = \"warning.png\"; // NOI18N\n\t\t\t\tbreak;\n\t\t\tcase FATAL:\n\t\t\t\tname = \"error.png\"; // NOI18N\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new AssertionError();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tthis.image = ImageIO.read(Severity.class.getResourceAsStream(name));\n\t\t\t} catch (final IOException ex) {\n\t\t\t\tthrow new IllegalArgumentException(ex);\n\t\t\t}\n\t\t}\n\t\treturn this.image;\n\t}", "@Inject\n public ImageBindingAdapter() {\n }" ]
[ "0.74535084", "0.71673423", "0.71448165", "0.71128315", "0.63695604", "0.6311232", "0.6300884", "0.6098567", "0.58168447", "0.5778947", "0.57579374", "0.57445854", "0.5721753", "0.5606497", "0.55175287", "0.5501007", "0.5493344", "0.54799724", "0.5475984", "0.5475984", "0.5475984", "0.5472362", "0.54518145", "0.541478", "0.5399293", "0.5397486", "0.5393762", "0.5384074", "0.53786033", "0.5373208", "0.5372068", "0.5358825", "0.53587717", "0.53505737", "0.5349556", "0.53318214", "0.5328899", "0.5319781", "0.5296795", "0.5276432", "0.52618706", "0.5254503", "0.5247071", "0.52246016", "0.5223795", "0.518526", "0.5183719", "0.5183583", "0.5174346", "0.5153518", "0.5139655", "0.5129069", "0.512292", "0.5121184", "0.51200473", "0.51200473", "0.511785", "0.5115029", "0.5114267", "0.5100079", "0.50964063", "0.5093352", "0.5091458", "0.50913537", "0.5090575", "0.50845194", "0.5084435", "0.5065955", "0.50652856", "0.50646883", "0.50646883", "0.50646883", "0.50646883", "0.5063213", "0.5052618", "0.50466734", "0.504438", "0.5042222", "0.50410664", "0.5040339", "0.50393426", "0.50391525", "0.5035729", "0.5033619", "0.50330323", "0.5030892", "0.5026107", "0.5025941", "0.50218636", "0.5020092", "0.50083935", "0.49989337", "0.49940994", "0.49938887", "0.49938396", "0.4988473", "0.4983338", "0.4982794", "0.4980417", "0.49784964" ]
0.6596546
4
The image used to skip ahead multiple pages.
@ImageOptions(flipRtl = true) ImageResource simplePagerFastForward();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadPreviousPage() {\n// System.out.println(\"index :\"+i);\r\n// System.out.println(\"##########\");\r\n lisOfProduct = serv.read();\r\n CurrP--;\r\n if (CurrP < nbP) {\r\n i = 0;\r\n indexOfImage = CurrP * 6 + i;\r\n loadImage1(lisOfProduct.get(x).getImg_url());\r\n i++;\r\n x = CurrP * 6 + i;\r\n System.out.println(\" i: \" + i + \"Curr: \" + CurrP + \"i in page: \" + x);\r\n\r\n loadImage1(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage2(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage3(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage4(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage5(lisOfProduct.get(indexOfImage).getImg_url()); \r\n indexOfImage++;\r\n loadImage6(lisOfProduct.get(indexOfImage).getImg_url());\r\n \r\n indexOfImage++;\r\n }\r\n indexOfImage -= 5;\r\n// IntStream.range(0, 1).forEach(\r\n// i -> next.fire()\r\n// ); \r\n\r\n// CurrP = 0;\r\n// i = 0;\r\n }", "@Override\n public void renderNextImage() {\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPageDisabled();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPage();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPageDisabled();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPageDisabled();", "public ImageObj nextImage() {\n if (position == model.getImageList().size() - 1) {\n position = 0;\n }\n else {\n position++;\n }\n return model.getImageList().get(position);\n }", "public byte[] getPageImage()\n {\n return Resources.getImage(Resources.PAGE_IMAGE);\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPage();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPage();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPageDisabled();", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "protected int getSkipPage(){\n\t\tint pageNum = 0;\n\t\tfor (Integer p : mPageNum){\n\t\t\tpageNum *= 10;\n\t\t\tpageNum += p.intValue();\n\t\t}\n\t\tif (pageNum > Integer.MAX_VALUE){\n\t\t\tpageNum = Integer.MAX_VALUE;\n\t\t}\n\t\tif (pageNum <= getTotalPage()){\n\t\t\tmSkipPage = pageNum;\n\t\t}\n\t\treturn mSkipPage;\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPage();", "protected native MagickImage nextImage() throws MagickException;", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "public int getPageStartEntry() {\n\t\treturn this.skipEntries;\n\t}", "protected Image getP0Image(){\n if (isBoosting()) {\n if (getAnimationStep()==3) return Boost4Image;\n if (getAnimationStep()==2) return Boost3Image;\n else return Boost2Image;\n }\n else return BoostImage;\n }", "private Picture getNextPicture() {\n if (this.curImageIndex == this.pictures.size()) {\n this.curImageIndex = 0;\n }\n\n Picture nextPicture = this.pictures.get(this.curImageIndex);\n this.curImageIndex++;\n return nextPicture;\n }", "protected boolean setSkipToPage(int num) {\n\t\tif (mControlView != null) {\n\t\t\tString result = \"\";\n\t\t\tint currentPos = num;\n\t\t\tint count = getTotalPage();\n\t\t\tif (currentPos > 0 && count > 0 && num <= count) {\n\t\t\t\tresult = currentPos + \"/\" + count;\n\t\t\t\tmControlView.setPhotoTimeType(result);\n\t\t\t\treturn true;\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public void setStartingImages() {\n\t\t\n\t}", "public int getSkipNum() {\r\n return this.skipNum;\r\n }", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "public ImageObj prevImage() {\n if (position != 0) {\n position--;\n }\n else {\n position = model.getImageList().size() - 1;\n }\n\n return model.getImageList().get(position);\n }", "public Image getNine();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFastForwardDisabled();", "public int getSkipCount ()\n {\n return skipCount;\n }", "int getExpoBracketingNImagesPref();", "public int getimagecounter() {\n\t\treturn imagecounter;\r\n\t}", "public Image getFive();", "public int getImageNumber() {\n return imageNumber;\n }", "public int getSkipCount()\n {\n return skipCount;\n }", "public abstract void onLoadMore(int skipStart);", "@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\t\tgc.drawImage(image.get(n), x, y);\n\t\tn++;\n\t\tif (n>=15) n=0;\n\t}", "private void displayPrevious() {\r\n\t\ti--;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "protected DraggableImage getPanelStartImage() {\n\treturn startImage;\n }", "public int getPageStart(){\r\n\t\treturn (this.page -1) * perPageNum;\r\n\t}", "public JsonImage() {\n this.fileName = \"untitled\";\n this.numPagesDisplayed = 0;\n this.pageList = new ArrayList<>();\n }", "private int calculateImagesNotFound() {\n int imagesNotFound = 0;\n for (int count : countImagesNotFound) {\n imagesNotFound += count;\n }\n\n return imagesNotFound;\n }", "public int getIconImageNumber(){return iconImageNumber;}", "int getPageNumber();", "private void displayNext() {\r\n\t\ti++;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "private int getImageBufferStartIndex(int trackNumber, FloppyDriveSide side) {\n return BYTES_PER_SECTOR * (SECTORS_PER_TRACK * (trackNumber * 2 + side.ordinal())\n + sectorIndex);\n }", "private File getNextPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() == listFiles.size() - 1) {\r\n retVal = listFiles.get(0);\r\n fileList.setSelectedIndex(0);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() + 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() + 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "public void previousPage() {\n\t\tthis.skipEntries -= NUM_PER_PAGE;\n\t\tif (this.skipEntries < 1) {\n\t\t\tskipEntries = 1;\n\t\t}\n\t\tloadEntries();\n\t}", "public int getNoOfImages() {\n return noOfImages;\n }", "public Image getFour();", "void skip();", "@FXML\r\n private void Next_Image() {\r\n ImageView imagev = (ImageView) hbox.getChildren().get(image_index);\r\n img_v.setImage(imagev.getImage());\r\n if (transitor_next_last) {\r\n image_index += 2;\r\n }\r\n image_index += 2;\r\n transitor_next_last = false;\r\n if (image_index == hbox.getChildren().size()) {\r\n image_index = 0;\r\n }\r\n\r\n }", "@Override\n public void onSkipPressed() {\n setCurrentSlide(4);\n }", "short getPageStart();", "public static String getImageId(WebElement image) {\n String imageUrl = image.getAttribute(\"src\");\n\n int indexComparisonStart = imageUrl.indexOf(START_TOKEN) + START_TOKEN.length();\n int indexComparisonFinish = imageUrl.substring(indexComparisonStart).indexOf(STOP_TOKEN);\n\n return imageUrl.substring(indexComparisonStart, indexComparisonStart + indexComparisonFinish);\n }", "public Image getImg(){\n\t\treturn imgs[count];\n\t}", "public void skip()\n {\n skip(1);\n }", "private static native void getPageImage(Bitmap bitmap);", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "@Override public BufferedImage getImg(){\n if(jumpState >= 1){\n return jumpingImg;\n }\n else\n return super.getImg();\n}", "public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }", "public Image getImage() {\n float percent = (System.currentTimeMillis() - animationStart) % animationDuration / (float)animationDuration;\n return frames[(int) (percent * frames.length)];\n }", "public int getImageOffset() {\n\n\t\tif (isGated()) {\n\n\t\t\tif (isReconstruction()) {\n\n\t\t\t\t// Must have a gated reconstruction. For each gated interval\n\t\t\t\t// there is an extra 128 byte header (beginning \"adac01\") block\n\t\t\t\t// starting at the normal image offset location. Add this to the\n\t\t\t\t// offset:\n\t\t\t\treturn ADACDictionary.IM_OFFSET + getNumberOfGatedIntervals() * 128;\n\n\t\t\t} else {\n\n\t\t\t\t// Gated SPECT data set. For each azimuth there is an additional\n\t\t\t\t// 1664 byte header (beginning \"adac01\") at the normal image\n\t\t\t\t// offset location. Add this to the image offset.\n\t\t\t\treturn ADACDictionary.IM_OFFSET + getNumberOfGatedIntervals() * 1664;\n\n\t\t\t}\n\n\t\t} else {\n\t\t\t// Non gated data - simplest case\n\t\t\treturn ADACDictionary.IM_OFFSET;\n\t\t}\n\n\t}", "public Image getSix();", "public Image getWalkImage() {\r\n\t\treturn walkImage;\r\n\t}", "int getBurstNImages();", "private Image[] getColorizedImages(String name, int skip, int color) {\r\n\t\tInputStream inputStream = getClass().getResourceAsStream(name);\r\n\t\tDataInputStream dataStream = new DataInputStream(inputStream);\r\n\r\n\t\tImage[] images = null;\r\n\r\n\t\ttry {\r\n\t\t\tdataStream.skip(skip);\r\n\t\t\tint imagesCount = dataStream.readByte();\r\n\t\t\timages = new Image[imagesCount];\r\n\r\n\t\t\tfor (int i = 0; i < imagesCount; i++) {\r\n\t\t\t\tint imageLength = dataStream.readShort();\r\n\t\t\t\tbyte [] buffer = new byte[imageLength];\r\n\t\t\t\tdataStream.read(buffer, 0, imageLength);\r\n\r\n\t\t\t\tif (!compareBytes(buffer, 0, PNG_SIGNATURE)) {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tint paletteOffset = getChunk(buffer, 8, \"PLTE\");\r\n\t\t\t\tif (paletteOffset >= 0) {\r\n\t\t\t\t\tcolorizePalette(buffer, paletteOffset, color);\r\n\t\t\t\t\timages[i] = Image.createImage(buffer, 0, imageLength);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tinputStream.close();\r\n\t\t\t} catch (IOException e) {};\r\n\t\t}\r\n\r\n\t\treturn images;\r\n\t}", "public Image getTieOver();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public Image getMinimRest();", "private void imageSearch(ArrayList<Html> src) {\n // loop through the Html objects\n for(Html page : src) {\n\n // Temp List for improved readability\n ArrayList<Image> images = page.getImages();\n\n // loop through the corresponding images\n for(Image i : images) {\n if(i.getName().equals(this.fileName)) {\n this.numPagesDisplayed++;\n this.pageList.add(page.getLocalPath());\n }\n }\n }\n }", "public int getNumberOfImages() { return this.images.size(); }", "public void skip(int steps)\n {\n _index = (_index + steps) % _pattern.length;\n }", "public static void incrementCountNotImage(int actual) {\n ++countImagesNotFound[actual];\n }", "public int getImage();", "void skip(int n);", "Integer getPage();", "public int getOffset() {\r\n\t\t\t\tint offset = pageCount * (currentPage - 1);\r\n\t\t\t\treturn offset < 0 ? 0 : offset;\r\n\t\t\t}", "public Image getSeven();", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "public MagickImage[] breakFrames() throws MagickException {\n\t\tint length = getNumFrames();\n\t\tMagickImage[] list = new MagickImage[length];\n\t\tMagickImage image = this;\n\t\tfor (int i = 0; i < length && image != null; i++) {\n\t\t\tlist[i] = image;\n\t\t\timage = image.nextImage();\n\t\t}\n\t\treturn list;\n\t}", "private void createPaginationPageFactory() {\n pdfViewer.setPageFactory(pageNumber -> {\n if (currentFile.get() == null) {\n return null ;\n } else {\n if (pageNumber >= currentFile.get().getNumPages() || pageNumber < 0) {\n return null ;\n } else {\n updateImage(currentFile.get(), pageNumber);\n return scroller;\n }\n }\n });\n }", "public Image getEight();", "public void viewPrevPhoto(ActionEvent event) {\n\t\t\n\t\t//System.out.println(\"left check: \" + listOfPhotos);\n\t\t\n\t\tif (displayedPhoto.isEmpty()) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"Cannot find next image!\");\n\t\t\talert.setContentText(\"No photo selected. Failed to display next image.\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tint photosList_size = listOfPhotos.size();\n\t\t\n\t\tif(currPhotoIndex == 0) {\n\t\t\tcurrPhotoIndex = photosList_size - 1;\n\t\t} else {\n\t\t\tcurrPhotoIndex = currPhotoIndex - 1;\n\t\t}\n\t\t\n\t\tImageView nextPhoto = listOfPhotos.get(currPhotoIndex);\n\t\tcurrPhotoIndex = listOfPhotos.indexOf(nextPhoto);\n\t\t//System.out.println(currPhotoIndex);\n\t\tImageView newimg = new ImageView();\n\t\tnewimg.setImage(nextPhoto.getImage());\n\t\tnewimg.setFitWidth(480);\n\t\tnewimg.setFitHeight(330);\n\t\tdisplayedPhoto.clear();\n\t\tdisplayedPhoto = FXCollections.observableArrayList();\n\t\tdisplayedPhoto.add(newimg);\n\t\tDisplayedImage.setItems(displayedPhoto);\n\t}", "public final String getPrefix() {\n/* 70 */ return \"jpegImage\";\n/* */ }", "void previousPage() throws IndexOutOfBoundsException;", "public String getNextPageMarker() {\n return this.nextPageMarker;\n }", "public static void take() {\r\n\t\t\r\n\t\tif (ths.page == 4) {\r\n\t\t\tths.page++;\r\n\t\t}\r\n\t}", "public int getImageCount() {\n return imageCount;\n }", "@Override\n\tpublic void skip() {\n\t}", "public String getSlideOneimg() {\n return slideOneimg;\n }", "public String getImage(){\n StringBuilder sb = new StringBuilder();\n for (char[] subArray : hidden) {\n sb.append(subArray);\n sb.append(\"\\n\");\n }\n return sb.toString();\n }", "public BufferedImage next() {\r\n if (ix >= numTiles) \r\n throw new NoSuchElementException();\r\n \r\n ix++;\r\n int c = ix % numCols;\r\n int r = ix / numCols;\r\n \r\n int w = getWidth();\r\n int h = getHeight();\r\n \r\n int x = c * tileWidth;\r\n int y = r * tileHeight;\r\n \r\n BufferedImage result = new BufferedImage(getWidth(), getHeight(), imageType);\r\n Graphics g = result.getGraphics();\r\n g.drawImage(m_source, 0, 0, w, h, x, y, (x + w), (y + h), null);\r\n g.dispose();\r\n \r\n return result;\r\n }", "@Override\n \tpublic Object[] getImageArray() {\n \t\t// Release 3 times an RGB stack with this dimensions.\n \t\tlayers.get(0).getProject().getLoader().releaseToFit((long)(getSize() * getWidth() * getHeight() * 4 * 3));\n \t\tfinal Object[] ia = new Object[getSize()];\n \t\tfor (int i=0; i<ia.length; i++) {\n \t\t\tia[i] = getProcessor(i+1).getPixels(); // slices 1<=slice<=n_slices\n \t\t}\n \t\treturn ia;\n \t}", "public int getPageNumber() {\r\n\t\t\t\treturn currentPage;\r\n\t\t\t}", "public static BodyImage getWalkImage() {return walkImage;}", "public void showNextImageSet(View view) { // when \"Next\" button is clicked, shows new set of images\n displayingCarMakes.clear();\n displayingImageIndexes.clear();\n\n // resetting the car image for picking an image again\n userPickedCarImage = false;\n\n // if next is touched repeatedly, this will prevent the countdown timer messing up\n if (toggleCountdown) {\n if (roundCountDownTimer != null) {\n roundCountDownTimer.cancel();\n }\n runTimer(20000);\n }\n showImageSet();\n }", "private int getPetImages() {\n int nUserPets = user.getPets().size();\n Drawable defaultDrawable = getResources().getDrawable(R.drawable.single_paw, null);\n Bitmap defaultBitmap = ((BitmapDrawable) defaultDrawable).getBitmap();\n countImagesNotFound = new int[nUserPets];\n Arrays.fill(countImagesNotFound, 0);\n\n ExecutorService executorService = Executors.newCachedThreadPool();\n startRunnable(nUserPets, executorService);\n executorService.shutdown();\n\n try {\n executorService.awaitTermination(3, TimeUnit.MINUTES);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n return calculateImagesNotFound();\n }", "public String getPd_img() {\n\t\treturn pd_img;\n\t}", "private void startImagePagerActivity(int position) {\n\t}", "public YuiImage getDefaultImgOver() {\r\n\t\treturn defaultImgOver;\r\n\t}", "public Pixel next() {\n\t\treturn (isEmpty()) ? null : iterator().next();\n\t}", "public int getPictureMargin() {\n return pictureMargin;\n }" ]
[ "0.6345126", "0.6315303", "0.6219058", "0.6196115", "0.61579", "0.6066745", "0.5997674", "0.5990528", "0.5981193", "0.5957461", "0.5881906", "0.5861613", "0.58285856", "0.580214", "0.57656455", "0.5614315", "0.56111026", "0.55982715", "0.5589201", "0.5561415", "0.55600387", "0.5548904", "0.5545514", "0.5542456", "0.5536304", "0.54768026", "0.5451594", "0.54471725", "0.54218864", "0.53688145", "0.5366083", "0.5358993", "0.5352079", "0.5346401", "0.53434116", "0.5331149", "0.5306088", "0.53013486", "0.52770776", "0.5273124", "0.52717304", "0.526278", "0.52478206", "0.52474463", "0.52376765", "0.52348965", "0.5234148", "0.5205753", "0.51874", "0.5186063", "0.51766676", "0.517247", "0.5161858", "0.51594007", "0.51550555", "0.51410764", "0.51354104", "0.5107578", "0.51004434", "0.50972116", "0.50796777", "0.5076508", "0.50683665", "0.5067941", "0.5050486", "0.5036279", "0.5033504", "0.5031713", "0.5027981", "0.5027118", "0.5019162", "0.50108355", "0.50083584", "0.50035125", "0.4997378", "0.49904698", "0.49894568", "0.4985726", "0.4982522", "0.49755523", "0.4959832", "0.4958182", "0.49558428", "0.49534932", "0.49533454", "0.49437088", "0.49374443", "0.49315143", "0.49172947", "0.49156126", "0.49155712", "0.4913965", "0.4908006", "0.49059796", "0.49000883", "0.48915142", "0.48857927", "0.4883484", "0.48779905", "0.4875882" ]
0.5681036
15
The disabled "fast forward" image.
@ImageOptions(flipRtl = true) ImageResource simplePagerFastForwardDisabled();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void disableFlipMode();", "private void setFastForwardDisabled(boolean disabled) {\r\n\t\tif (fastForward == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (disabled) {\r\n\t\t\tfastForward.setResource(resources.simplePagerFastForwardDisabled());\r\n\t\t\tfastForward.getElement().getParentElement()\r\n\t\t\t\t\t.addClassName(style.disabledButton());\r\n\t\t} else {\r\n\t\t\tfastForward.setResource(resources.simplePagerFastForward());\r\n\t\t\tfastForward.getElement().getParentElement()\r\n\t\t\t\t\t.removeClassName(style.disabledButton());\r\n\t\t}\r\n\t}", "void enableFlipMode();", "public ImageIcon getSliderTick1_notrangle_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_dark.png\");\r\n\t}", "public Image getDisabledImage () {\r\n\tcheckWidget();\r\n\treturn disabledImage;\r\n}", "protected Image getP0Image(){\n if (isBoosting()) {\n if (getAnimationStep()==3) return Boost4Image;\n if (getAnimationStep()==2) return Boost3Image;\n else return Boost2Image;\n }\n else return BoostImage;\n }", "void setForward(boolean isForward);", "public Boolean off()\r\n\t{\r\n\t\tString cmd;\r\n\t\t\r\n\t\tcmd = \"flippers/off?null=true\";\r\n\t\treturn cmdSimpleResult(cmd);\r\n\t}", "public void reverseFrame() {\r\n if (reversedImage) {\r\n reversedImage = false;\r\n } else {\r\n reversedImage = true;\r\n }\r\n }", "public ImageIcon getSliderTick1_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_dark.png\");\r\n\t}", "public void setXForwarding(boolean enable){\n xforwading=enable; \n }", "public boolean hideCameraForced() {\n return false;\n }", "void disableAutomaticHeaderImage();", "public Image getSemiquaverDown();", "@Override public BufferedImage getImg(){\n if(jumpState >= 1){\n return jumpingImg;\n }\n else\n return super.getImg();\n}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPageDisabled();", "public void disabledInit() {\n\t\tvision.disableCameraSaving();\n\t}", "@Override\r\n\tpublic ImageDescriptor getImageDescriptor() {\n\t\treturn null;\r\n\t}", "public void disablecameraLights(){\n \tcamLights.set(true);\n }", "private void createBackBuffer() {\r\n GraphicsConfiguration gc = getGraphicsConfiguration();\r\n volatileImg = gc.createCompatibleVolatileImage(getWidth(), getHeight());\r\n// volatileImg.setAccelerationPriority(1);\r\n }", "@Override\n\tpublic ImageDescriptor getImageDescriptor() {\n\t\treturn null;\n\t}", "static void disableImageViews() {\n\t\tfor (int i=0; i<Play.NUM[TOTAL]; i++) {\n\t\t\tPlay.pieceViews.get(i).setEnabled(false);\n\t\t}\n\t}", "public void setImage25D(boolean flag) {\r\n image25D = flag;\r\n }", "public void noSmooth() {\n\t\tthis.dst.noSmooth();\n\t\tthis.src.noSmooth();\n\t}", "public Image getHotImage () {\r\n\tcheckWidget();\r\n\treturn hotImage;\r\n}", "@Override\n\t\tpublic ImageDescriptor getImageDescriptor() {\n\t\t\treturn null;\n\t\t}", "public boolean needFaceDetection() {\n return false;\n }", "void disable();", "void disable();", "public void disable();", "public void disable() {\r\n m_enabled = false;\r\n useOutput(0, 0);\r\n }", "public ImageIcon getSliderTick1_notrangle_VERTICAL_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_v_dark.png\");\r\n\t}", "public void turnOff() {\n // set the flag\n onFlag = false;\n \n // set the image\n setIcon(Utilities.resizeImageIcon(getWidth(), getHeight(), offImageIcon));\n }", "public abstract void Disabled();", "public Graphics setOffScreen() {\n\t\tjava.awt.Image tempSignal;\n\t\tGraphics g;\n\n\t\ttempSignal = image;\n\t\timage = this.createImage(image.getWidth(this), image.getHeight(this));\n\t\tg = image.getGraphics();\n\t\tg.drawImage(tempSignal, 0, 0, this);\n\n\t\treturn g;\n\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPageDisabled();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPageDisabled();", "public Image getMinimDown();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPageDisabled();", "@Override\n\tpublic int getTexture() {\n\t\treturn 0;\n\t}", "public void disableMonsters(){\n enabled = false;\n }", "private void ignite(boolean boosterOn) \n {\n if(boosterOn) {\n //setImage(rocketWithThrust);\n acceleration.setDirection(getRotation());\n increaseSpeed(acceleration);\n }\n else {\n //setImage(\"Fighter.png\"); \n }\n }", "public boolean isSupportFlipCover() {\r\n return sIsFilpCoverSystemFeatureEnabled;\r\n }", "@Override\n public void disabledInit()\n {\n driver.setRumble(RumbleType.kLeftRumble, 0);\n driver.setRumble(RumbleType.kRightRumble, 0);\n driveTrain.zeroSensors();\n pigeonInitializing = false;\n }", "default boolean isPaintballEnabled() {\n return false;\n }", "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "boolean useCamera2FastBurst();", "public boolean getNotSoFast() {\n return this.notSoFast;\n }", "public ImageIcon getSliderTick1_notrangle()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle.png\");\r\n\t}", "@Override\n\tpublic boolean isMyImage() {\n\t\treturn false;\n\t}", "void resetDragImage();", "@Override\r\n public void onStopTrackingTouch(SeekBar seekBar) {\n mImgView.setImageBitmap(null);\r\n //softskin\r\n mImgView.setImageBitmap(mFaceEditor.BFSoftskin(Math.abs(seekBar.getProgress()/10), GlobalDefinitions.whiteRatio));//));//change to 0-100\r\n\r\n }", "public static void testNegate()\n {\n\t Picture thrudoor = new Picture(\"thruDoor.jpg\");\n\t thrudoor.toNegative();\n\t thrudoor.explore();\n }", "boolean restoreBufferedImage();", "@Override\n\tpublic String getImageURL() {\n\t\treturn \"\";\n\t}", "@Override\n\tpublic boolean fadeBack() {\n\t\treturn false;\n\t}", "@Override\n public void onCameraPreviewStarted() {\n enableTorchButtonIfPossible();\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFastForward();", "public Boolean down()\r\n\t{\r\n\t\tString cmd;\r\n\t\t\r\n\t\tcmd = \"flippers/down?null=true\";\r\n\t\treturn cmdSimpleResult(cmd);\r\n\t}", "@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(true);\r\n }", "public void disable()\r\n\t{\r\n\t\tenabled = false;\r\n\t}", "public Image getTieOver();", "void disable() {\n }", "public boolean isLowLightShow() {\n return false;\n }", "public void disable() {\n\t\tm_enabled = false;\n\t\tuseOutput(0);\n\t}", "public void setImage25D(boolean b) {\r\n do25D = b;\r\n }", "public NinePatch getButtonArrow_disable()\r\n\t{\r\n\t\treturn getRaw(IMGS_ROOT+\"/button_arrow_disable.9.png\");\r\n\t}", "@Override\n public boolean isAIEnabled() {\n return false;\n }", "private void unsetWorking(){\n\t\tcalibrationButtonImageView.setClickable(true);\n\t\tcalibrationButtonImageView.setEnabled(true);\n progressDialog.dismiss();\n\t}", "public void updateFrontPhotoflipMode() {\n if (isCameraFrontFacing()) {\n this.mCameraSettings.setMirrorSelfieOn(Keys.isMirrorSelfieOn(this.mAppController.getSettingsManager()));\n }\n }", "@Override\n public void updateImages()\n {\n image = ThemeManager.getInstance().getObstacleImage();\n blackedOutImage = ThemeManager.getInstance().getDisabledImage(\"obstacle\");\n }", "@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setPassivateOrgINT(true);\r\n }", "boolean useCamera2FakeFlash();", "public void disable ( ) {\r\n\t\tenabled = false;\r\n\t}", "public void unsetDirectForward()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DIRECTFORWARD$14, 0);\n }\n }", "public BufferedImage getDrawable(){\n\t\tif(this.isOilContamination()){\n\t\t\treturn this.myFlyweight.getDeadDrawable();\n\t\t}\n\t\t//check direction -- such a horrible way to write a method\n\t\t//redundant checking and ugh.... design this away please...........................\n\t\tif(this.getDirection().getX() > 0 && !this.myFlyweight.getMovingBackAnimationSequence().isEmpty()){\n\t\t\treturn this.myFlyweight.getMovingBackAnimationSequence().get(animationFrame);\n\t\t}\n\t\treturn this.myFlyweight.getAnimationSequence().get(animationFrame);\n\t}", "public Image() {\n\t\t\tthis(Color.white, 0);\n\t\t}", "public static void testZeroRed()\n {\n\t Picture wall = new Picture(\"wall.jpg\");\n\t wall.zeroRed();\n\t wall.explore();\n }", "public BufferedImage NOT(BufferedImage timg) {\n int width = timg.getWidth();\n int height = timg.getHeight();\n\n int[][][] ImageArray1 = convertToArray(timg);\n int[][][] ImageArray2 = convertToArray(timg);\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n\n int r = ImageArray1[x][y][1]; //r\n int g = ImageArray1[x][y][2]; //g\n int b = ImageArray1[x][y][3]; //b\n\n ImageArray2[x][y][1] = (~r) & 0xFF; //r\n ImageArray2[x][y][2] = (~g) & 0xFF; //g\n ImageArray2[x][y][3] = (~b) & 0xFF; //b\n\n }\n }\n return convertToBimage(ImageArray2);\n\n }", "public ImageIcon getSliderTick1_VERTICAL_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_v_dark.png\");\r\n\t}", "@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(false);\r\n }", "public boolean isForward() {\n return true;\n }", "public Pic noRed() {\n Pic output = image.deepCopy();\n Pixel[][] outputPixels = output.getPixels();\n for (int row = 0; row < output.getHeight(); row++) {\n for (int col = 0; col < output.getWidth(); col++) {\n Pixel current = outputPixels[row][col];\n current.setRed(0);\n }\n }\n return output;\n }", "public YuiImage getDefaultImgOver() {\r\n\t\treturn defaultImgOver;\r\n\t}", "protected boolean getNoFallback() {\n return noFallback;\n }", "void enableAutomaticHeaderImage();", "default void disableFollowButton() {}", "public BufferedImage getWhiteImage() {\n return whiteImages[imageNumber];\n }", "public void disableWarp() {\n warpEnabled = false;\n }", "public void deactivate() {\n\t\tcameraNXT.enableTracking(false);\n\t}", "protected abstract void disable();", "private Image getBackImage() {\n return getImage(\"playing-cards/blue-back.png\");\n }", "public void disabledInit()\n {\n //cam.stopCapture();\n m_USBVCommand.start();\n }", "public ImageDescriptor getImageDescriptor() {\n\t\treturn null;\r\n\t}", "public Image getSharp();", "public Element disabledFireEffect()\n\t{\n\t\tthis.canAppliedFire = false;\n\t\treturn this;\n\t}", "public abstract void disableStreamFlow();", "abstract BufferedImage getBackround();", "public Image getMinimRest();", "public void DIRECT()//TODO rececheck!\n {\n ea = IMMBYTE();\n ea |= konami.dp << 8;\n }" ]
[ "0.6324349", "0.6197257", "0.5927967", "0.59016997", "0.57676446", "0.56211156", "0.55792946", "0.55204237", "0.54673344", "0.54638195", "0.5459886", "0.5441113", "0.53745437", "0.5370032", "0.5350244", "0.53225076", "0.5295726", "0.5290055", "0.5269674", "0.5268773", "0.525614", "0.525526", "0.52469087", "0.52452964", "0.5239146", "0.5239137", "0.52304906", "0.5221518", "0.5221518", "0.5209396", "0.5208341", "0.5195409", "0.5180555", "0.5180112", "0.51787823", "0.51778936", "0.51746446", "0.5167532", "0.5167322", "0.51519346", "0.5134521", "0.5116258", "0.5108856", "0.5108441", "0.5106653", "0.51042354", "0.5102962", "0.50929624", "0.50688", "0.50415725", "0.50352365", "0.5029534", "0.5024732", "0.501238", "0.5009408", "0.5006465", "0.5005877", "0.49991494", "0.49906233", "0.49873996", "0.49824232", "0.49820274", "0.49797237", "0.49797198", "0.4977873", "0.4976364", "0.49732667", "0.4972143", "0.49700046", "0.49672946", "0.49628252", "0.49563", "0.4951242", "0.49444994", "0.49442333", "0.49275053", "0.49242234", "0.49203697", "0.49202892", "0.4919825", "0.49194333", "0.49174726", "0.49160138", "0.49144185", "0.4911922", "0.49111155", "0.49092573", "0.4908142", "0.4900313", "0.48985335", "0.48971832", "0.48914772", "0.4889718", "0.4888432", "0.48855728", "0.48846278", "0.48718303", "0.48561603", "0.48550284", "0.4848213" ]
0.6175337
2
The image used to go to the first page.
@ImageOptions(flipRtl = true) ImageResource simplePagerFirstPage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] getPageImage()\n {\n return Resources.getImage(Resources.PAGE_IMAGE);\n }", "public String logoRedirect() {\n miroLogo.click();\n return webDriver.getTitle();\n }", "public boolean isFirstPage();", "public String getDefaultImgSrc(){return \"/students/footballstudentdefault.png\";}", "public int getFirstPage() {\n\t\treturn firstPage;\n\t}", "String getStartpage();", "private static Image getStartScreen(int screenNum)\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + screen + screenNum\n\t\t\t\t\t+ \".png\"));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}", "public String getSlideOneimg() {\n return slideOneimg;\n }", "public String getHeadImg() {\n return headImg;\n }", "public Object getFirstPageIdentifier()\n {\n return firstWizardPage.getIdentifier();\n }", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "public Image getPrimaryImage() {\n return primaryImage;\n }", "public String getHeadimg() {\n return headimg;\n }", "public String getHeadimg() {\n return headimg;\n }", "@Override\n public void renderNextImage() {\n }", "public int getDefaultPage()\n\t{\n\t\treturn defaultPage;\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPage();", "protected abstract String getInitialPageId();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPageDisabled();", "public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }", "public Image getOne();", "public String getHeadimgurl() {\n return headimgurl;\n }", "public String getHeadimgurl() {\n return headimgurl;\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPage();", "protected int getInitialPage(HttpServletRequest request) {\n return 0;\n }", "@Nullable\n final public String getMainImageUrl() {\n return mMainImageUrl;\n }", "public String getHeadImgurl() {\n return headImgurl;\n }", "Image getOpenPerspectiveImage() {\n\t\treturn iconService.getIcon(\"new_persp.gif\");\n\t}", "int getFirstItemOnPage();", "public int getStartingPage() {\n return startingPage;\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPage();", "public int getCurrentPage();", "public String getHeadimgUrl() {\n return headimgUrl;\n }", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "public String getTitleImage() {\n return titleImage;\n }", "public YuiImage getDefaultImg() {\r\n\t\treturn defaultImg;\r\n\t}", "@Override\n public String getImageLink() {\n return imageLink;\n }", "private void loadDefaultPage() {\n loadPage(DEFAULT_PAGE.toExternalForm());\n }", "public int getPageStart(){\r\n\t\treturn (this.page -1) * perPageNum;\r\n\t}", "short getPageStart();", "public void setFirstPage(int firstPage) {\n\t\tthis.firstPage = firstPage;\n\t}", "protected DraggableImage getPanelStartImage() {\n\treturn startImage;\n }", "public String getImageToDisplay() {\n return imageToDisplay;\n }", "public String getStaticPicture();", "public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}", "public String getImage() {\n\t\treturn null;\n\t}", "int getCurrentPage();", "java.lang.String getImage();", "public Integer getCurrentPage();", "@Override\r\n\t\tpublic int getCurrentpage() throws Exception\r\n\t\t\t{\n\t\t\t\treturn 0;\r\n\t\t\t}", "public static Image startScreen(int screenNum)\n\t{\n\t\tif (screenNum >= 0 && screenNum < startScreens.length)\n\t\t\treturn startScreens[screenNum];\n\t\treturn null;\n\t}", "public int getStartPage() {\n return startPage;\n }", "public JsonImage() {\n this.fileName = \"untitled\";\n this.numPagesDisplayed = 0;\n this.pageList = new ArrayList<>();\n }", "public void firstSlide() {\r\n\t\tpresentation.setSlideNumber(0);\r\n\t}", "@Override\n\tpublic String getImageURL() {\n\t\treturn \"\";\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFastForward();", "PreViewPopUpPage clickImageLink();", "public int getMasterSignedImage() {\n\t\treturn _tempNoTiceShipMessage.getMasterSignedImage();\n\t}", "public int getImage();", "private ImageView setStartMenuImage() {\r\n Image image = null;\r\n try {\r\n image = new Image(new FileInputStream(\"images/icon1.png\"));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n ImageView imageView = new ImageView(image);\r\n imageView.setFitHeight(HEIGHT / 4);\r\n imageView.setPreserveRatio(true);\r\n return imageView;\r\n }", "String getImage();", "public Image getShowImage() {\n\t\treturn showImage;\n\t}", "@Override\r\n\tpublic int nombrePage() {\n\t\treturn 0;\r\n\t}", "public String gotoPage() {\n return FxJsfUtils.getParameter(\"page\");\n }", "public String getImage() { return image; }", "private PageId getHeaderPage(RelationInfo relInfo) {\n\t\treturn new PageId(0, relInfo.getFileIdx());\n\t}", "public void onStartPage(PdfWriter writer, Document document) {\r\n\t\tpagenumber++;\r\n\r\n\t\tImage image;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\timage = Image.getInstance(ResourceUtils.getFile(\"classpath:images\"+File.separator+\"cpmis-submission-pdf-hrader.png\").getAbsolutePath());\r\n\t\t\tint indentation = 0;\r\n\t\t\tfloat scaler = ((document.getPageSize().getWidth() - indentation) / image.getWidth()) * 100;\r\n\t\t\timage.scalePercent(scaler);\r\n\t\t\timage.setAbsolutePosition(0, document.getPageSize().getHeight() + document.topMargin() - image.getHeight());\r\n\t\t\tdocument.add(image);\r\n\t\t\tdocument.add(Chunk.NEWLINE);\r\n\t\t\tdocument.add(Chunk.NEWLINE);\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}", "public static String getPageImagePath(final Resource resource) {\n String imgSrc = StringUtils.EMPTY;\n if (resource == null) {\n return imgSrc;\n }\n final Image image = new Image(resource, \"image\");\n // check if the image from dam\n String fileReference = image.getFileReference();\n if (StringUtils.isNotEmpty(fileReference)) {\n return fileReference;\n }\n // else drag & drop image\n image.setSelector(\".img\");\n if (image.hasContent()) {\n imgSrc = image.getSrc();\n imgSrc = imgSrc.replaceAll(\"image.img\", \"image/file.img\");\n }\n return imgSrc;\n }", "public String getImg_1() {\n return img_1;\n }", "public static BodyImage getWalkImage() {return walkImage;}", "public Image getImage() {\n return (isFacingRight) ? Images.get(\"rightTedhaun\") : Images.get(\"leftTedhaun\");\n }", "public String getImageUrl();", "@Override\n\tprotected String getImageUrl() {\n\t\treturn user.getUserInfo().getImageUrl();\n\t}", "private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }", "public String smallImage() {\n return this.smallImage;\n }", "public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }", "public PdfPage getFirstPage() {\n if (this.pages == null || this.pages.isEmpty()) {\n return null;\n }\n return this.pages.get(0);\n }", "private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }", "public Texture getImage(){\n\t\treturn images[0];\t\t\n\t}", "public static int getAboutImage() {\n switch (RANDOM.nextInt(4)) {\n default:\n case 0:\n return R.drawable.devteam;\n case 1:\n return R.drawable.devteam;\n case 2:\n return R.drawable.devteam;\n case 3:\n return R.drawable.devteam;\n }\n }", "public abstract Address getBootImageStart();", "@Override\n public boolean didFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions) {\n PhotoViewController pageZero = PhotoViewController.create(0);\n if (pageZero != null) {\n // assign the first page to the pageViewController (our\n // rootViewController)\n UIPageViewController pageViewController = (UIPageViewController) getWindow().getRootViewController();\n pageViewController.setDataSource(new UIPageViewControllerDataSourceAdapter() {\n @Override\n public UIViewController getViewControllerBefore(UIPageViewController pageViewController,\n UIViewController viewController) {\n int index = ((PhotoViewController) viewController).getPageIndex();\n return PhotoViewController.create(index - 1);\n }\n\n @Override\n public UIViewController getViewControllerAfter(UIPageViewController pageViewController,\n UIViewController viewController) {\n int index = ((PhotoViewController) viewController).getPageIndex();\n return PhotoViewController.create(index + 1);\n }\n });\n\n pageViewController.setViewControllers(new NSArray<UIViewController>(pageZero),\n UIPageViewControllerNavigationDirection.Forward, false, null);\n }\n\n return true;\n }", "public String logo() {\n int number = faker.random().nextInt(13) + 1;\n return \"https://pigment.github.io/fake-logos/logos/medium/color/\" + number + \".png\";\n }", "protected Image getP0Image(){\n if (isBoosting()) {\n if (getAnimationStep()==3) return Boost4Image;\n if (getAnimationStep()==2) return Boost3Image;\n else return Boost2Image;\n }\n else return BoostImage;\n }", "public int getCurrentPage() {\n\t\treturn currentPage;\n\t}", "String getItemImage();", "public PrologueStart(int num){\n\t\t\n\timg = getImage(\"/textures/sheets/LookingBack\" +num +\".png\");\n\tthis.setPreferredSize(new Dimension(img.getWidth() - 15 , img.getHeight()-15));\n\t}", "public String getSourceImage() {\n return sourceImage;\n }", "public String getImg_0() {\n return img_0;\n }", "private static native void getPageImage(Bitmap bitmap);", "public String getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "public static String getRandomImageUrl() {\n int index = RandomNumberGenerator.getRandomInt(0, images.length / 2 - 1);\n return images[index * 2 + 1];\n }", "public ImageIcon getCurrentImage() {\n\t\t\treturn this.currentImage;\n\t}", "private void createFirstPage() {\n BooleanSupplier showWelcomePage = () -> !FirstRunStatus.shouldSkipWelcomePage();\n mPages.add(new FirstRunPage<>(SigninFirstRunFragment.class, showWelcomePage));\n mFreProgressStates.add(MobileFreProgress.WELCOME_SHOWN);\n mPagerAdapter = new FirstRunPagerAdapter(FirstRunActivity.this, mPages);\n mPager.setAdapter(mPagerAdapter);\n // Other pages will be created by createPostNativeAndPoliciesPageSequence() after\n // native and policy service have been initialized.\n }", "public void setStartingImages() {\n\t\t\n\t}", "public BufferedImage getCurrentImage(){\n\t\treturn getCurrentImage(System.currentTimeMillis()-lastUpdate);\n\t}", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "private void displayCurrentPicture() {\r\n\t\tglobalContainer.setWidget(0, 0, getCurrentPicture());\r\n\t}", "Icon getSplashImage();" ]
[ "0.6555439", "0.6078935", "0.60412395", "0.6011919", "0.5991507", "0.5930695", "0.5872793", "0.5821773", "0.58215326", "0.58136296", "0.5801964", "0.5794415", "0.5793579", "0.5793579", "0.57722616", "0.57549345", "0.57473034", "0.57349646", "0.57319653", "0.5704493", "0.56776047", "0.56698686", "0.56698686", "0.5661716", "0.5637417", "0.5636184", "0.5616155", "0.5592809", "0.5582225", "0.5582176", "0.55819964", "0.5573421", "0.5559669", "0.55437624", "0.55299866", "0.55142903", "0.5512857", "0.5510276", "0.55039823", "0.54879797", "0.54841703", "0.54791254", "0.5464111", "0.54532623", "0.5449006", "0.5439769", "0.5429363", "0.54286176", "0.53916293", "0.5384051", "0.53623784", "0.5353947", "0.53526413", "0.53475153", "0.53417456", "0.5336336", "0.53316605", "0.5326593", "0.53120404", "0.5303078", "0.5298771", "0.52945054", "0.5292549", "0.5264822", "0.525053", "0.5249529", "0.5246046", "0.52449596", "0.5243251", "0.5240511", "0.5234749", "0.5234547", "0.5229103", "0.5227396", "0.5217638", "0.52169824", "0.5216522", "0.521635", "0.52049315", "0.52042633", "0.520008", "0.5192758", "0.51761377", "0.51741815", "0.515927", "0.51546264", "0.51543367", "0.515374", "0.51527745", "0.5151717", "0.514759", "0.514759", "0.5134643", "0.51333773", "0.51257837", "0.51236105", "0.5118515", "0.51168084", "0.5111458", "0.51090485" ]
0.6930106
0
The disabled first page image.
@ImageOptions(flipRtl = true) ImageResource simplePagerFirstPageDisabled();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPageDisabled();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPageDisabled();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPageDisabled();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPage();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFastForwardDisabled();", "public Image getDisabledImage () {\r\n\tcheckWidget();\r\n\treturn disabledImage;\r\n}", "public byte[] getPageImage()\n {\n return Resources.getImage(Resources.PAGE_IMAGE);\n }", "public ImageIcon getSliderTick1_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_dark.png\");\r\n\t}", "void disableAutomaticHeaderImage();", "public ImageIcon getSliderTick1_notrangle_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_dark.png\");\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPage();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPage();", "protected DraggableImage getPanelStartImage() {\n\treturn startImage;\n }", "void enableAutomaticHeaderImage();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPage();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFastForward();", "public ImageIcon getSliderTick1_notrangle()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle.png\");\r\n\t}", "private void displayNoImage() {\n\t\tGRect imageRect = new GRect(LEFT_MARGIN, nameY + IMAGE_MARGIN,\n\t\t\t\tIMAGE_WIDTH, IMAGE_HEIGHT);\n\t\tadd(imageRect);\n\t\tGLabel noImage = new GLabel(\"No Image\");\n\t\tnoImage.setFont(PROFILE_IMAGE_FONT);\n\t\tdouble labelWidth = LEFT_MARGIN + IMAGE_WIDTH / 2 - noImage.getWidth()\n\t\t\t\t/ 2;\n\t\tdouble labelHeight = nameY + IMAGE_MARGIN + IMAGE_HEIGHT / 2;\n\t\tadd(noImage, labelWidth, labelHeight);\n\t}", "public YuiImage getDefaultImgOver() {\r\n\t\treturn defaultImgOver;\r\n\t}", "public void setDisabledImage (Image image) {\r\n\tcheckWidget();\r\n\tif (image != null && image.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);\r\n\tif ((style & SWT.SEPARATOR) != 0) return;\r\n\tdisabledImage = image;\r\n}", "boolean isAutomaticHeaderImageEnabled();", "public ImageIcon getSliderTick1_notrangle_VERTICAL_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_v_dark.png\");\r\n\t}", "public ImageIcon getSliderTick1_VERTICAL_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_v_dark.png\");\r\n\t}", "@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tswitch (arg0) {\n\t\t\tcase 0:\n\t\t\t\tImgLeft.setVisibility(8);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tImgRight.setVisibility(8);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tImgLeft.setVisibility(0);\n\t\t\t\tImgRight.setVisibility(0);\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "private void setNextPageButtonsDisabled(boolean disabled) {\r\n\t\tnextPage.setDisabled(disabled);\r\n\t\tif (lastPage != null) {\r\n\t\t\tlastPage.setDisabled(disabled);\r\n\t\t}\r\n\t}", "public YuiImage getDefaultImg() {\r\n\t\treturn defaultImg;\r\n\t}", "boolean isNextButtonDisabled() {\r\n\t\treturn nextPage.isDisabled();\r\n\t}", "private void setPrevPageButtonsDisabled(boolean disabled) {\r\n\t\tfirstPage.setDisabled(disabled);\r\n\t\tprevPage.setDisabled(disabled);\r\n\t}", "public NinePatch getButtonArrow_disable()\r\n\t{\r\n\t\treturn getRaw(IMGS_ROOT+\"/button_arrow_disable.9.png\");\r\n\t}", "public boolean isRandomStartImage() {\n return randomStatImage;\n }", "public String getDefaultImgSrc(){return \"/students/footballstudentdefault.png\";}", "public boolean isFirstPage();", "@Override\n\tpublic String getImageURL() {\n\t\treturn \"\";\n\t}", "@Override\n public void renderNextImage() {\n }", "@Override\n public void onPageSelected(int position) {\n int currentItem = bViewPager.getCurrentItem();\n initTabImage();\n switch (currentItem) {\n case 0:\n firstImage.setImageResource(R.drawable.homeb);\n break;\n case 1:\n secondImage.setImageResource(R.drawable.profileb);\n break;\n// case 2:\n// thirdImage.setImageResource(R.drawable.addcontent);\n// break;\n case 2:\n fourthImage.setImageResource(R.drawable.channelsb);\n break;\n case 3:\n fifthImage.setImageResource(R.drawable.searchb);\n break;\n\n }\n }", "static void disableImageViews() {\n\t\tfor (int i=0; i<Play.NUM[TOTAL]; i++) {\n\t\t\tPlay.pieceViews.get(i).setEnabled(false);\n\t\t}\n\t}", "protected Image getP0Image(){\n if (isBoosting()) {\n if (getAnimationStep()==3) return Boost4Image;\n if (getAnimationStep()==2) return Boost3Image;\n else return Boost2Image;\n }\n else return BoostImage;\n }", "private static Image getStartScreen(int screenNum)\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + screen + screenNum\n\t\t\t\t\t+ \".png\"));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}", "protected boolean setSkipToPage(int num) {\n\t\tif (mControlView != null) {\n\t\t\tString result = \"\";\n\t\t\tint currentPos = num;\n\t\t\tint count = getTotalPage();\n\t\t\tif (currentPos > 0 && count > 0 && num <= count) {\n\t\t\t\tresult = currentPos + \"/\" + count;\n\t\t\t\tmControlView.setPhotoTimeType(result);\n\t\t\t\treturn true;\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn false;\n\t}", "String disabledButton();", "@Override\n\tpublic boolean isMyImage() {\n\t\treturn false;\n\t}", "public String getSlideOneimg() {\n return slideOneimg;\n }", "@Override\n public void setNormal()\n {\n setImage(\"Minus.png\");\n }", "public int getPageStart(){\r\n\t\treturn (this.page -1) * perPageNum;\r\n\t}", "public void setStartingImages() {\n\t\t\n\t}", "public PageState getDefaultPageState() {\r\n\t\t// TODO nel file di configurazione\r\n\t\treturn pageStateDao.findById(PageState.DRAFT_ID, false);\r\n\t}", "boolean isPreviousButtonDisabled() {\r\n\t\treturn prevPage.isDisabled();\r\n\t}", "public void setActiveImage() {\n\t\tsetGraphic(new ImageView(activePiece));\n\t\tisActiveImageOn = true;\t\t\n\t}", "public void firstSlide() {\r\n\t\tpresentation.setSlideNumber(0);\r\n\t}", "public boolean getUnselectedImageVisible() {\n checkWidget();\n return showUnselectedImage;\n }", "@Override\r\n\tpublic ImageDescriptor getImageDescriptor() {\n\t\treturn null;\r\n\t}", "String getDefaultDisabledByPolicyTitle();", "public Image getHotImage () {\r\n\tcheckWidget();\r\n\treturn hotImage;\r\n}", "@Override\n\tpublic BufferedImage getImage() {\n\t\tif (cimg == null)\n\t\t\ttry {\n\t\t\t\tcimg = ImageIO.read(WizardRpgXpVxLicenePage.class.getResource(\"licence.jpg\"));\n\t\t\t} catch (Throwable t) {\n\t\t\t\tYEx.info(\"Can not load Image \" + getImgName() + \" for wizard\", t);\n\t\t\t}\n\t\treturn cimg;\n\t}", "public String getImage() {\n\t\treturn null;\n\t}", "@Source(\"tab_active_bg_l.jpg\")\n\tpublic DataResource tabActiveBackgroundLeftResource();", "public JsonImage() {\n this.fileName = \"untitled\";\n this.numPagesDisplayed = 0;\n this.pageList = new ArrayList<>();\n }", "@Override\r\n protected String[] getImageNames()\r\n {\n return new String[] {\r\n \"\", // empty string allows to disable element image\r\n MaruSpacecraftResources.SPACECRAFT_DEFAULT_1.getName(),\r\n MaruSpacecraftResources.SPACECRAFT_DEFAULT_2.getName(),\r\n MaruSpacecraftResources.SPACECRAFT_DEFAULT_3.getName(),\r\n MaruSpacecraftResources.SPACECRAFT_ISS_1.getName(),\r\n MaruSpacecraftResources.SPACECRAFT_ISS_2.getName(),\r\n MaruSpacecraftResources.SPACECRAFT_ASTRONAUT_1.getName(),\r\n MaruSpacecraftResources.SPACECRAFT_ROCKET_1.getName(),\r\n MaruSpacecraftResources.SPACECRAFT_SHUTTLE_1.getName(),\r\n MaruSpacecraftResources.SPACECRAFT_SHUTTLE_2.getName(),\r\n };\r\n }", "@Override\n\t\tpublic ImageDescriptor getImageDescriptor() {\n\t\t\treturn null;\n\t\t}", "public void setBeforeImage(boolean beforeImage)\n\t{\n\t\tthis.beforeImage = beforeImage;\n\t}", "protected void snatchCurrent()\r\n\t{\r\n\t\tfinal int targetX=(mCurrentPage-1)*mScreenWidth;\r\n\t\t\r\n\t\tsnatchTo(targetX,0);\t\r\n\t\t\r\n\t\tif(mDotPanel!=null)\r\n\t\t{\r\n\t\t\tint childCount=mDotPanel.getChildCount();\r\n\t\t\tif(mCurrentPage<=childCount)\r\n\t\t\t{\r\n\t\t\t\tfor(int i=0;i<childCount;i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tView view=mDotPanel.getChildAt(i);\r\n\t\t\t\t\tview.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmDotPanel.getChildAt(mCurrentPage-1).setEnabled(false);\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n\tpublic int nombrePage() {\n\t\treturn 0;\r\n\t}", "public ImageIcon getSliderTick1()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1.png\");\r\n\t}", "private void initTabImage() {\n firstImage.setImageResource(R.drawable.home);\n secondImage.setImageResource(R.drawable.profile);\n// thirdImage.setImageResource(R.drawable.addcontent);\n fourthImage.setImageResource(R.drawable.channels);\n fifthImage.setImageResource(R.drawable.search);\n }", "public Image getPrimaryImage() {\n return primaryImage;\n }", "@Override\n\tpublic String getImageName() {\n\t\treturn \"\";\n\t}", "public boolean isBeforeImage()\n\t{\n\t\treturn beforeImage;\n\t}", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "@Override\n\tpublic ImageDescriptor getImageDescriptor() {\n\t\treturn null;\n\t}", "public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }", "public int getDefaultPage()\n\t{\n\t\treturn defaultPage;\n\t}", "public int getIconImageNumber(){return iconImageNumber;}", "public void setFirstPage(int firstPage) {\n\t\tthis.firstPage = firstPage;\n\t}", "private void initPicDownloadPage() {\n\n\t\tif (mScrollLayout.getChildCount() <= 0) {\n\t\t\tfor (File dir : getSearchFiles()) {\n\t\t\t\tif (dir == null || !dir.exists())\n\t\t\t\t\tcontinue;\n\t\t\t\tif (dir.list().length <= 0\n\t\t\t\t\t\t&& dir != StorageUtils.getFavorDir(this))\n\t\t\t\t\tcontinue;\n\t\t\t\tWallpaperPage wallpaperPage = new WallpaperPage(\n\t\t\t\t\t\tgetApplicationContext());\n\t\t\t\tpages.add(wallpaperPage);\n\t\t\t\twallpaperPage.setAdapter(new LocalWallpaperAdapter(this,dir.getAbsolutePath()));\n\t\t\t\tAsyncTaskLoadLocalPic loader = new AsyncTaskLoadLocalPic(\n\t\t\t\t\t\tnew PageLoadListener(wallpaperPage), this);\n\t\t\t\tloader.execute(dir);\n\t\t\t}\n\n\t\t\tpageCount = pages.size();\n\t\t\t// PAGE_MAX_INDEX = pages.size() - 1;\n\t\t\tpageAdapter.notifyDataSetChanged();\n\t\t}\n\t}", "private void setFastForwardDisabled(boolean disabled) {\r\n\t\tif (fastForward == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (disabled) {\r\n\t\t\tfastForward.setResource(resources.simplePagerFastForwardDisabled());\r\n\t\t\tfastForward.getElement().getParentElement()\r\n\t\t\t\t\t.addClassName(style.disabledButton());\r\n\t\t} else {\r\n\t\t\tfastForward.setResource(resources.simplePagerFastForward());\r\n\t\t\tfastForward.getElement().getParentElement()\r\n\t\t\t\t\t.removeClassName(style.disabledButton());\r\n\t\t}\r\n\t}", "@Source(\"tab_state_bg_l.jpg\")\n\tpublic DataResource tabBackgroundLeftResource();", "public int getFirstPage() {\n\t\treturn firstPage;\n\t}", "@Override\n public void onPageSelected(int arg0) {\n if (arg0 == 1) {\n mViewPager.setPagingEnabled(false);\n }\n }", "public boolean isActiveImage() {\r\n return this.activeImage;\r\n }", "Image getOpenPerspectiveImage() {\n\t\treturn iconService.getIcon(\"new_persp.gif\");\n\t}", "public ImageIcon getSliderTick1_notrangle_vertical()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_v.png\");\r\n\t}", "public boolean getPageNoNull() {\n return pageNoNull_;\n }", "private void setImage() {\n\t\t\n\t\tfor(int i=0; i<user.getIsVisited().length; i++) {\n\t\t\tif(user.getIsVisited()[i])\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1_certified + i*2);\n\t\t\telse\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1 + i*2);\n\t\t}\n\t}", "@Override\r\n\tpublic Image getHighlightImage() {\n\t\treturn null;\r\n\t}", "public boolean getPageNoNull() {\n return pageNoNull_;\n }", "public BufferedImage getWhiteImage() {\n return whiteImages[imageNumber];\n }", "boolean getPageNoNull();", "@Override\r\n\tpublic void createPageControls(Composite pageContainer) {\n\t\tsuper.createPageControls(pageContainer);\r\n\t\tthis.getShell().setImage(IImageKey.getImage(IImageKey.KEY_WIZADSMALL));\r\n\t}", "boolean isImageDisplayed();", "protected int getSkipPage(){\n\t\tint pageNum = 0;\n\t\tfor (Integer p : mPageNum){\n\t\t\tpageNum *= 10;\n\t\t\tpageNum += p.intValue();\n\t\t}\n\t\tif (pageNum > Integer.MAX_VALUE){\n\t\t\tpageNum = Integer.MAX_VALUE;\n\t\t}\n\t\tif (pageNum <= getTotalPage()){\n\t\t\tmSkipPage = pageNum;\n\t\t}\n\t\treturn mSkipPage;\n\t}", "public void onStartingReservation() {\n this.reserveImageButton.setEnabled(false);\n }", "private void loadDefaultPage() {\n loadPage(DEFAULT_PAGE.toExternalForm());\n }", "public static Image startScreen(int screenNum)\n\t{\n\t\tif (screenNum >= 0 && screenNum < startScreens.length)\n\t\t\treturn startScreens[screenNum];\n\t\treturn null;\n\t}", "public Image getImage() {\n return null;\r\n }", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "public Image getShowImage() {\n\t\treturn showImage;\n\t}", "public Image getImage() {\r\n\t\tif (isShieldActivated()) {\r\n\t\t\treturn GameGUI.SPACESHIP_IMAGE_SHIELD;\r\n\t\t}\r\n\t\treturn GameGUI.SPACESHIP_IMAGE;\r\n\t}", "public void setRandomStartImage(final boolean randomStartImage) {\n this.randomStatImage = randomStartImage;\n }", "String getDefaultDisabledByPolicyContent();" ]
[ "0.74268466", "0.73016024", "0.70699704", "0.6849566", "0.6775307", "0.6615679", "0.61256385", "0.61221087", "0.61136866", "0.60550606", "0.6034078", "0.5866721", "0.5860946", "0.58554685", "0.5816493", "0.5774031", "0.5749491", "0.56874406", "0.56072885", "0.55740863", "0.55702984", "0.5536923", "0.55343646", "0.55195737", "0.55057806", "0.5483963", "0.54364526", "0.5423347", "0.5420382", "0.5413302", "0.54010504", "0.533838", "0.53141844", "0.5307964", "0.53008264", "0.52775073", "0.5265896", "0.52422184", "0.5229139", "0.5178691", "0.51382667", "0.5130671", "0.51219785", "0.5118881", "0.51183856", "0.5102879", "0.5097226", "0.50939184", "0.5081413", "0.5078707", "0.50566167", "0.50544477", "0.50476307", "0.5045903", "0.5038447", "0.5018387", "0.50179875", "0.50135744", "0.5007728", "0.50060886", "0.49998713", "0.49971485", "0.4993744", "0.4978268", "0.49775732", "0.49691856", "0.4969131", "0.4965961", "0.49614272", "0.49600223", "0.49489918", "0.4941787", "0.4937909", "0.49346706", "0.49312887", "0.49235237", "0.49225017", "0.49081197", "0.49070036", "0.4906821", "0.4906595", "0.4906196", "0.48918882", "0.4888283", "0.48822504", "0.48811534", "0.4880553", "0.4875311", "0.48723805", "0.4863122", "0.48628083", "0.48509425", "0.48433825", "0.48414832", "0.4832829", "0.48226762", "0.48226392", "0.48182732", "0.48169523", "0.48135805" ]
0.7918251
0
The image used to go to the last page.
@ImageOptions(flipRtl = true) ImageResource simplePagerLastPage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLastPage() {\n\t\treturn lastPage;\n\t}", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }", "public byte[] getPageImage()\n {\n return Resources.getImage(Resources.PAGE_IMAGE);\n }", "public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }", "int getLastItemOnPage();", "public Object getLastPageIdentifier()\n {\n return firstWizardPage.getIdentifier();\n }", "protected DraggableImage getPanelEndImage() {\n\treturn endImage;\n }", "public synchronized int getLastPos() {\n PageMeta pm = pmList.get(numPages - 1);\n return pm.startPos + pm.numPairs - 1;\n }", "public Image getBlast() { return blast;\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPageDisabled();", "public void lastSlide() {\t\t\r\n\t\tpresentation.setSlideNumber(presentation.getSize() - 1);\t\t\r\n\t}", "public PdfPage getLastPage() {\n if (this.pages == null || this.pages.isEmpty()) {\n return null;\n }\n return this.pages.get(this.pages.size() - 1);\n }", "public String getImageToDisplay() {\n return imageToDisplay;\n }", "public int getEndingPage() {\n return endingPage;\n }", "private static int lastPage(PdfReader pdfFile){\n int pages;\n\n pages = pdfFile.getNumberOfPages();\n\n return(pages);\n }", "private File getPreviousPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() <= 0) {\r\n retVal = listFiles.get(listFiles.size() - 1);\r\n fileList.setSelectedIndex(listFiles.size() - 1);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() - 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() - 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "public BufferedImage getCurrentImage(){\n\t\treturn getCurrentImage(System.currentTimeMillis()-lastUpdate);\n\t}", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "private int getPageEnd() {\n if(itemrow==0)\n return 1;\n if(itemrow%displaylimit!=0)\n return itemrow / displaylimit + 1;\n else\n return itemrow / displaylimit;\n }", "@Override\n public void renderNextImage() {\n }", "public boolean isLastPage();", "public ImageObj prevImage() {\n if (position != 0) {\n position--;\n }\n else {\n position = model.getImageList().size() - 1;\n }\n\n return model.getImageList().get(position);\n }", "private static ImageFile mostTaggedImage()\n {\n ImageFile currentMostTaggedImage;\n currentMostTaggedImage = Log.allImages.get(0);\n for (ImageFile i : Log.allImages)\n {\n if (i.tagList.size() > currentMostTaggedImage.tagList.size())\n {\n currentMostTaggedImage = i;\n }\n }\n return currentMostTaggedImage;\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPage();", "public StrColumn getPageLast() {\n return delegate.getColumn(\"page_last\", DelegatingStrColumn::new);\n }", "public String getLastViewedURL() {\n return mPreference.getString(\"LastViewedURL\", NULL_STRING);\n }", "public int getEndPage() {\n return endPage;\n }", "public GImage getBack(){\r\n \t\t return back;\r\n\t }", "public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }", "public int getImageNumber() {\n return imageNumber;\n }", "public E getLastSrc() {\r\n\t\treturn lastSrc.getElement();\r\n\t}", "@Override\n public String getImageLink() {\n return imageLink;\n }", "public abstract Address getBootImageEnd();", "public ImageIcon getCurrentImage() {\n\t\t\treturn this.currentImage;\n\t}", "public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}", "public String getName() {\n return \"last\";\n }", "public String getImage() {\n\t\treturn null;\n\t}", "private File getNextPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() == listFiles.size() - 1) {\r\n retVal = listFiles.get(0);\r\n fileList.setSelectedIndex(0);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() + 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() + 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPage();", "private Image getBackImage() {\n return getImage(\"playing-cards/blue-back.png\");\n }", "@Override\n\tpublic String getImageURL() {\n\t\treturn \"\";\n\t}", "public String getNewImage() {\r\n\t\treturn newImage;\r\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "private void displayPrevious() {\r\n\t\ti--;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "public String getImageURl(){\r\n\t\treturn this.lePanel.chEventImage;\r\n\t}", "public ImageObj nextImage() {\n if (position == model.getImageList().size() - 1) {\n position = 0;\n }\n else {\n position++;\n }\n return model.getImageList().get(position);\n }", "public int getLast() {\n\t\treturn last;\n\t}", "public void setLastPage(int lastPage) {\n\t\tthis.lastPage = lastPage;\n\t}", "@Override\r\n\t\tpublic int getCurrentpage() throws Exception\r\n\t\t\t{\n\t\t\t\treturn 0;\r\n\t\t\t}", "public int getCurrentPage() {\n\t\treturn currentPage;\n\t}", "public Integer getCurrentPage();", "public java.lang.String getIdleImage() {\n return localIdleImage;\n }", "public String logoRedirect() {\n miroLogo.click();\n return webDriver.getTitle();\n }", "public Stack<ColorImage> getCurrentImageHistory() {\n return currentImage;\n }", "public int getCurrentPage();", "public Image getImage() {\r\n\t\treturn GDAssemblerUI.getImage(GDAssemblerUI.IMAGE_GD);\r\n\t}", "java.lang.String getImage();", "public Image getImage() {\n return (isFacingRight) ? Images.get(\"rightTedhaun\") : Images.get(\"leftTedhaun\");\n }", "public String getImage() {\n return this.Image;\n }", "public String getImage() { return image; }", "public int getEndIndex() {\n int cacheRange = 100 / numResultsPerPage;\n int base = pageNumber % cacheRange;\n if (base == 0) {\n return 100;\n } else {\n return base * numResultsPerPage;\n }\n }", "public Number getCurrentPage() {\r\n\t\treturn this.currentPage;\r\n\t}", "public String getCurrentUserPicture() {\n\t\treturn currentUser.getPicture();\n\t}", "public static int getTotalPage() {\n List<WebElement> PAGINATION = findElements(pagination);\n int size = PAGINATION.size() - 1;\n //Get the number of the second-last item which next to the \">\" icon\n WebElement lastPage = findElement(By.xpath(String.format(last_page, size)));\n return Integer.parseInt(lastPage.getText());\n }", "public int getLast() {\n\treturn _last;\n }", "public String largeImage() {\n return this.largeImage;\n }", "public BufferedImage getCurrentImage(long elapsed){\n\t\telapsed += millisIntoFrame;\n\t\tthis.millisIntoFrame = elapsed%millisPerFrame;\n\t\tif (looping){\n\t\t\tthis.currentFrame = (int) ((currentFrame+(elapsed/millisPerFrame))%images.length);\n\t\t}\n\t\telse{\n\t\t\tthis.currentFrame = (int) (currentFrame+(elapsed/millisPerFrame));\n\t\t\tif(currentFrame >= images.length){\n\t\t\t\tthis.currentFrame = images.length-1;\n\t\t\t\tthis.finished = true;\n\t\t\t}\n\t\t}\n\t\treturn images[currentFrame];\n\t}", "public ImageIdentifier getImageIdentifier() {\n synchronized (this.imageLock) {\n return this.animation.getCurrentImage();\n }\n }", "public String getLastDocRepository() {\n return \"\";\n }", "int getCurrentPage();", "public int getPageEnd() {\n int val = (_pageIndex + 1) * _pageSize;\n return (val > _totalRecords) ? _totalRecords : val;\n }", "public int getimagecounter() {\n\t\treturn imagecounter;\r\n\t}", "public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}", "protected int lastIdx() {\n return arrayIndex(currentWindowIndex() - 1);\n }", "public String getImage() {\n return image;\n }", "public int getImage();", "public String getImageURL() \r\n\t{\r\n\t\t\r\n\t\treturn imageURL;\r\n\t\t\r\n\t}", "public Image getImage() {\n if (tamagoStats.getAge() <= 0) {\n return images.get(\"oeuf\").get(\"noeuf\");\n } else if (tamagoStats.getAge() <= 3) {\n return images.get(\"bebe\").get(\"metamorph\");\n } else if (tamagoStats.getAge() <= 7) {\n return images.get(\"enfant\").get(\"evoli\");\n } else {\n return images.get(\"adulte\").get(\"noctali\");\n }\n }", "public String getNextPageMarker() {\n return this.nextPageMarker;\n }", "public int getLastPos ()\r\n {\r\n return (getFirstPos() + getThickness()) - 1;\r\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "@Override\n public void onPageSelected(int arg0) {\n currentPosition = arg0;\n tv_count.setText((arg0 + 1) + \"/\" + imageBigs.size());\n\n }", "public String getLast()\n {\n return lastItem;\n }", "public String getImageURL()\n\t{\n\t\treturn imageURL;\n\t}", "int goBackSlide(){\n if (this.currentSlide>slides.size()){\n this.currentSlide--;\n }\n return this.currentSlide;\n }", "public Image getEight();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPage();", "public String getImage()\n {\n return image;\n }", "public int getPageEndEntry() {\n\t\tint end = this.skipEntries + NUM_PER_PAGE - 1;\n\t\tif (end > this.totalEntries) {\n\t\t\tend = this.totalEntries;\n\t\t}\n\t\treturn end;\n\t}", "private Picture getNextPicture() {\n if (this.curImageIndex == this.pictures.size()) {\n this.curImageIndex = 0;\n }\n\n Picture nextPicture = this.pictures.get(this.curImageIndex);\n this.curImageIndex++;\n return nextPicture;\n }", "public static Coordinates getLastClicked() {\n return lastClicked;\n }", "@Nullable\n final public String getMainImageUrl() {\n return mMainImageUrl;\n }", "public Point getLastMousePosition () {\r\n return myLastMousePosition;\r\n }", "public String getCurrUrl() {\n return driver.getCurrentUrl();\n }", "public Image getSnapshot() {\n\t\treturn null;\n\t}" ]
[ "0.6626506", "0.6576206", "0.6321227", "0.6305452", "0.6302009", "0.6217435", "0.6177131", "0.61490136", "0.6054698", "0.6037712", "0.60240686", "0.5962476", "0.5933758", "0.5887163", "0.5883292", "0.5864789", "0.5842086", "0.583039", "0.58188796", "0.5793459", "0.5784823", "0.5781476", "0.57788384", "0.57650757", "0.5763876", "0.575397", "0.5748772", "0.57033694", "0.56690794", "0.56508905", "0.56294847", "0.56231046", "0.5593496", "0.5566475", "0.5559577", "0.5552846", "0.5549168", "0.5530985", "0.5526332", "0.5498766", "0.54704094", "0.5460431", "0.54360485", "0.5432931", "0.5432931", "0.5430982", "0.54240745", "0.54171914", "0.5409449", "0.54047036", "0.5402544", "0.5392145", "0.53833646", "0.538136", "0.537125", "0.535137", "0.5349225", "0.5349146", "0.5347041", "0.53356254", "0.53335786", "0.53199553", "0.5317953", "0.53131914", "0.53083867", "0.5288573", "0.52850604", "0.5278644", "0.52756894", "0.52575076", "0.5250305", "0.52477473", "0.52474785", "0.52462775", "0.5239448", "0.52287406", "0.5226693", "0.52247393", "0.52187294", "0.5204553", "0.52042174", "0.52022207", "0.5193812", "0.5193812", "0.5193812", "0.5193812", "0.51933813", "0.5191802", "0.5190587", "0.51885194", "0.5186111", "0.51854944", "0.51849085", "0.5184447", "0.51837045", "0.5175592", "0.51748043", "0.51682967", "0.5160395", "0.5160318" ]
0.7353653
0
The disabled last page image.
@ImageOptions(flipRtl = true) ImageResource simplePagerLastPageDisabled();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPage();", "public Image getDisabledImage () {\r\n\tcheckWidget();\r\n\treturn disabledImage;\r\n}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPageDisabled();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPageDisabled();", "protected DraggableImage getPanelEndImage() {\n\treturn endImage;\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPageDisabled();", "public ImageIcon getSliderTick1_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_dark.png\");\r\n\t}", "public ImageIcon getSliderTick1_notrangle_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_dark.png\");\r\n\t}", "public byte[] getPageImage()\n {\n return Resources.getImage(Resources.PAGE_IMAGE);\n }", "public ImageIcon getSliderTick1_VERTICAL_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_v_dark.png\");\r\n\t}", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "public ImageIcon getSliderTick1_notrangle_VERTICAL_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_v_dark.png\");\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFastForwardDisabled();", "public NinePatch getButtonArrow_disable()\r\n\t{\r\n\t\treturn getRaw(IMGS_ROOT+\"/button_arrow_disable.9.png\");\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPage();", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "public ImageIcon getSliderTick1_notrangle()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle.png\");\r\n\t}", "public YuiImage getDefaultImgOver() {\r\n\t\treturn defaultImgOver;\r\n\t}", "@Override\n\tpublic String getImageURL() {\n\t\treturn \"\";\n\t}", "public boolean isLastPage();", "public ImageIcon getSliderTick1_notrangle_vertical()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_v.png\");\r\n\t}", "public int getLastPage() {\n\t\treturn lastPage;\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPage();", "private void setNextPageButtonsDisabled(boolean disabled) {\r\n\t\tnextPage.setDisabled(disabled);\r\n\t\tif (lastPage != null) {\r\n\t\t\tlastPage.setDisabled(disabled);\r\n\t\t}\r\n\t}", "public void setDisabledImage (Image image) {\r\n\tcheckWidget();\r\n\tif (image != null && image.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);\r\n\tif ((style & SWT.SEPARATOR) != 0) return;\r\n\tdisabledImage = image;\r\n}", "public BufferedImage getCurrentImage(){\n\t\treturn getCurrentImage(System.currentTimeMillis()-lastUpdate);\n\t}", "protected DraggableImage getPanelStartImage() {\n\treturn startImage;\n }", "public abstract Address getBootImageEnd();", "private void displayNoImage() {\n\t\tGRect imageRect = new GRect(LEFT_MARGIN, nameY + IMAGE_MARGIN,\n\t\t\t\tIMAGE_WIDTH, IMAGE_HEIGHT);\n\t\tadd(imageRect);\n\t\tGLabel noImage = new GLabel(\"No Image\");\n\t\tnoImage.setFont(PROFILE_IMAGE_FONT);\n\t\tdouble labelWidth = LEFT_MARGIN + IMAGE_WIDTH / 2 - noImage.getWidth()\n\t\t\t\t/ 2;\n\t\tdouble labelHeight = nameY + IMAGE_MARGIN + IMAGE_HEIGHT / 2;\n\t\tadd(noImage, labelWidth, labelHeight);\n\t}", "@Override\n public void renderNextImage() {\n }", "public java.lang.String getIdleImage() {\n return localIdleImage;\n }", "public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }", "boolean isPreviousButtonDisabled() {\r\n\t\treturn prevPage.isDisabled();\r\n\t}", "public String getImage() {\n\t\treturn null;\n\t}", "boolean isNextButtonDisabled() {\r\n\t\treturn nextPage.isDisabled();\r\n\t}", "public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }", "public ImageObj prevImage() {\n if (position != 0) {\n position--;\n }\n else {\n position = model.getImageList().size() - 1;\n }\n\n return model.getImageList().get(position);\n }", "public BufferedImage getTrayiconInactive() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_INACTIVE);\n }", "public void lastSlide() {\t\t\r\n\t\tpresentation.setSlideNumber(presentation.getSize() - 1);\t\t\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPage();", "@Override\n public String getImageLink() {\n return imageLink;\n }", "public boolean getUnselectedImageVisible() {\n checkWidget();\n return showUnselectedImage;\n }", "public Page getLastPageObject() {\n return getPageObject(pages.length - 1);\n }", "public static BodyImage getIdleImage() {return idleImage;}", "public YuiImage getDefaultImg() {\r\n\t\treturn defaultImg;\r\n\t}", "public int getIconImageNumber(){return iconImageNumber;}", "public ImageIcon getCurrentImage() {\n\t\t\treturn this.currentImage;\n\t}", "public Image getHotImage () {\r\n\tcheckWidget();\r\n\treturn hotImage;\r\n}", "public String getImageToDisplay() {\n return imageToDisplay;\n }", "int getLastItemOnPage();", "public GImage getBack(){\r\n \t\t return back;\r\n\t }", "public Object getLastPageIdentifier()\n {\n return firstWizardPage.getIdentifier();\n }", "public Image getBlast() { return blast;\t}", "@Override\n public java.lang.Object getUilButtonDisabledColor() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (UIL_BUTTON_DISABLED_COLOR_);\n return (java.lang.Object)retnValue;\n }", "protected Image getP0Image(){\n if (isBoosting()) {\n if (getAnimationStep()==3) return Boost4Image;\n if (getAnimationStep()==2) return Boost3Image;\n else return Boost2Image;\n }\n else return BoostImage;\n }", "@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}", "@Override\n public void updateImages()\n {\n image = ThemeManager.getInstance().getObstacleImage();\n blackedOutImage = ThemeManager.getInstance().getDisabledImage(\"obstacle\");\n }", "private Image getBackImage() {\n return getImage(\"playing-cards/blue-back.png\");\n }", "private int getPageEnd() {\n if(itemrow==0)\n return 1;\n if(itemrow%displaylimit!=0)\n return itemrow / displaylimit + 1;\n else\n return itemrow / displaylimit;\n }", "public Image getImage() {\n return null;\r\n }", "public void setTempImage()\n {\n URL url = this.getClass().getResource(lastselection.getImage());\n\t\tImage image = Toolkit.getDefaultToolkit().getImage(url);\n\t\ttempImage = new PImage(image);\n\t\ttempImage.setBounds(0,0,65,170);\n\t\ttempImage.setTransparency(0);\n\t\tlayer.addChild(tempImage);\n\t}", "public void setLastPage(int lastPage) {\n\t\tthis.lastPage = lastPage;\n\t}", "public Image getEight();", "public String getImageURl(){\r\n\t\treturn this.lePanel.chEventImage;\r\n\t}", "public boolean isActiveImage() {\r\n return this.activeImage;\r\n }", "public Image getImage() {\r\n\t\tif (isShieldActivated()) {\r\n\t\t\treturn GameGUI.SPACESHIP_IMAGE_SHIELD;\r\n\t\t}\r\n\t\treturn GameGUI.SPACESHIP_IMAGE;\r\n\t}", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "int getExpoBracketingNImagesPref();", "@Override\n\tpublic BufferedImage getImage() {\n\t\tif (cimg == null)\n\t\t\ttry {\n\t\t\t\tcimg = ImageIO.read(WizardRpgXpVxLicenePage.class.getResource(\"licence.jpg\"));\n\t\t\t} catch (Throwable t) {\n\t\t\t\tYEx.info(\"Can not load Image \" + getImgName() + \" for wizard\", t);\n\t\t\t}\n\t\treturn cimg;\n\t}", "private File getPreviousPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() <= 0) {\r\n retVal = listFiles.get(listFiles.size() - 1);\r\n fileList.setSelectedIndex(listFiles.size() - 1);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() - 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() - 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "void disableAutomaticHeaderImage();", "@Override\n\tpublic String getImageName() {\n\t\treturn \"\";\n\t}", "private void setPrevPageButtonsDisabled(boolean disabled) {\r\n\t\tfirstPage.setDisabled(disabled);\r\n\t\tprevPage.setDisabled(disabled);\r\n\t}", "static void disableImageViews() {\n\t\tfor (int i=0; i<Play.NUM[TOTAL]; i++) {\n\t\t\tPlay.pieceViews.get(i).setEnabled(false);\n\t\t}\n\t}", "private void displayPrevious() {\r\n\t\ti--;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "public ImageIcon getBullet() {\n\t\treturn imgBullet;\n\t}", "public Image getImage() {\r\n\t\treturn GDAssemblerUI.getImage(GDAssemblerUI.IMAGE_GD);\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFastForward();", "public String getNewImage() {\r\n\t\treturn newImage;\r\n\t}", "protected DraggableImage getPanelPathImage() {\n\treturn pathImage;\n }", "@Source(\"update.gif\")\n\tpublic DataResource updateIconDisabledResource();", "public boolean isUpperThumbEnabled() {\n return upperThumbEnabled;\n }", "public int getImageNumber() {\n return imageNumber;\n }", "@Override\n public void setNormal()\n {\n setImage(\"Minus.png\");\n }", "public boolean hasNoImages() {\n return noImages;\n }", "public String getPd_img() {\n\t\treturn pd_img;\n\t}", "public YuiImage getSelectedImgOver() {\r\n\t\treturn selectedImgOver;\r\n\t}", "public ImageArray getCurrentImage() {\n return currentIm;\n }", "abstract BufferedImage getBackround();", "public String getImage() {\n return this.Image;\n }", "public Image getSnapshot() {\n\t\treturn null;\n\t}", "public String getpImage() {\n return pImage;\n }", "public JPanel getImageButtonsPanel() {\r\n\t\treturn imageButtonsPanel;\r\n\t}", "@Override\n\tImageIcon getImage() {\n\t\treturn img;\n\t}", "@Override\n\tpublic int getTexture() {\n\t\treturn 0;\n\t}", "private static int lastPage(PdfReader pdfFile){\n int pages;\n\n pages = pdfFile.getNumberOfPages();\n\n return(pages);\n }", "public PPMFile getfinishedImage() {\n while (finishedImage == null) {\n // if you call this before you know we're ready due to the semaphore, having to spinlock is your own fault\n }\n\n return finishedImage;\n }", "public BufferedImage getImage ( ) {\n\n BufferedImage img =\n param.Parameters.PROBLEM.getData(param.Parameters.STATE, program, 0, 0);\n\n System.gc();\n\n return img;\n \n }", "public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}", "protected boolean setSkipToPage(int num) {\n\t\tif (mControlView != null) {\n\t\t\tString result = \"\";\n\t\t\tint currentPos = num;\n\t\t\tint count = getTotalPage();\n\t\t\tif (currentPos > 0 && count > 0 && num <= count) {\n\t\t\t\tresult = currentPos + \"/\" + count;\n\t\t\t\tmControlView.setPhotoTimeType(result);\n\t\t\t\treturn true;\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn false;\n\t}" ]
[ "0.7036446", "0.67920405", "0.6703082", "0.6670244", "0.6490905", "0.6487847", "0.61655825", "0.6163698", "0.61621237", "0.5926232", "0.592412", "0.5881366", "0.58534306", "0.579342", "0.5748202", "0.5691813", "0.5654633", "0.55831146", "0.55406326", "0.5517623", "0.5469339", "0.5467978", "0.54534847", "0.54490954", "0.5422894", "0.54205364", "0.5413415", "0.5404218", "0.53851116", "0.5381605", "0.5378744", "0.5357287", "0.5335203", "0.53347135", "0.53327024", "0.5324584", "0.5316426", "0.53142565", "0.53065205", "0.5286783", "0.5282721", "0.5265697", "0.52477133", "0.5247705", "0.5243412", "0.5236168", "0.52015555", "0.5199667", "0.5188655", "0.517801", "0.51709753", "0.51659346", "0.516516", "0.515153", "0.51377404", "0.5134255", "0.5114933", "0.5114597", "0.511014", "0.5105144", "0.51003075", "0.5099309", "0.5097996", "0.5093825", "0.5092187", "0.50865066", "0.5082845", "0.50817233", "0.50816846", "0.5078326", "0.50771827", "0.5070588", "0.50687844", "0.5059619", "0.5056942", "0.5054222", "0.50506467", "0.5050484", "0.5045823", "0.5041135", "0.5040866", "0.5037334", "0.5024615", "0.50225323", "0.50034106", "0.5001479", "0.49926206", "0.49914744", "0.49849966", "0.49808842", "0.49698335", "0.496776", "0.49656782", "0.49646688", "0.4934379", "0.49231806", "0.49231523", "0.4914273", "0.4909238", "0.49075422" ]
0.77496934
0
The image used to go to the next page.
@ImageOptions(flipRtl = true) ImageResource simplePagerNextPage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void renderNextImage() {\n }", "public byte[] getPageImage()\n {\n return Resources.getImage(Resources.PAGE_IMAGE);\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPage();", "public ImageObj nextImage() {\n if (position == model.getImageList().size() - 1) {\n position = 0;\n }\n else {\n position++;\n }\n return model.getImageList().get(position);\n }", "@Override\n public String getImageLink() {\n return imageLink;\n }", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPage();", "private Picture getNextPicture() {\n if (this.curImageIndex == this.pictures.size()) {\n this.curImageIndex = 0;\n }\n\n Picture nextPicture = this.pictures.get(this.curImageIndex);\n this.curImageIndex++;\n return nextPicture;\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPage();", "private void displayNext() {\r\n\t\ti++;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFastForward();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPageDisabled();", "@FXML\r\n private void Next_Image() {\r\n ImageView imagev = (ImageView) hbox.getChildren().get(image_index);\r\n img_v.setImage(imagev.getImage());\r\n if (transitor_next_last) {\r\n image_index += 2;\r\n }\r\n image_index += 2;\r\n transitor_next_last = false;\r\n if (image_index == hbox.getChildren().size()) {\r\n image_index = 0;\r\n }\r\n\r\n }", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "@Override\n\tpublic String getImageAssociee() {\n\t\treturn Images.plusFour;\n\t}", "protected native MagickImage nextImage() throws MagickException;", "private File getNextPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() == listFiles.size() - 1) {\r\n retVal = listFiles.get(0);\r\n fileList.setSelectedIndex(0);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() + 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() + 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "public String getSlideOneimg() {\n return slideOneimg;\n }", "private void nextButtonActionPerformed() {//GEN-FIRST:event_nextButtonActionPerformed\r\n getNextPicture();\r\n\r\n }", "private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }", "public String getNextPageMarker() {\n return this.nextPageMarker;\n }", "public String getImage() { return image; }", "public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}", "public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }", "public String getImageUrl();", "public IWizardPage getNextPage();", "public String logoRedirect() {\n miroLogo.click();\n return webDriver.getTitle();\n }", "public int getImageNumber() {\n return imageNumber;\n }", "public Image getFive();", "java.lang.String getImage();", "public Image getImage() {\n return (isFacingRight) ? Images.get(\"rightTedhaun\") : Images.get(\"leftTedhaun\");\n }", "public String getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "public Image getFour();", "public ImageIcon getCurrentImage() {\n\t\t\treturn this.currentImage;\n\t}", "void onNextIconClick();", "PreViewPopUpPage clickImageLink();", "public static int getAboutImage() {\n switch (RANDOM.nextInt(4)) {\n default:\n case 0:\n return R.drawable.devteam;\n case 1:\n return R.drawable.devteam;\n case 2:\n return R.drawable.devteam;\n case 3:\n return R.drawable.devteam;\n }\n }", "public String getImage() {\n return this.Image;\n }", "public int getImage();", "abstract public String imageUrl ();", "@Nullable\n final public String getMainImageUrl() {\n return mMainImageUrl;\n }", "String getItemImage();", "private void showImageDetail() {\n }", "public Image getSeven();", "public Image getShowImage() {\n\t\treturn showImage;\n\t}", "public Image getImage() {\r\n\t\treturn GDAssemblerUI.getImage(GDAssemblerUI.IMAGE_GD);\r\n\t}", "public String getImage() {\n return image;\n }", "public Image getImage(ImageManager imageManager) {\n String playerColor = isRedPlayer ? \"red_bot_\" : \"blue_bot_\";\n String directionName = moveToDirectionMap.get(lastMove);\n return imageManager.getScaledImage(playerColor + directionName);\n }", "public int getIconImageNumber(){return iconImageNumber;}", "public String getStaticPicture();", "public String getImageToDisplay() {\n return imageToDisplay;\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPageDisabled();", "@Override\n\tpublic BufferedImage getImage() {\n\t\tif (cimg == null)\n\t\t\ttry {\n\t\t\t\tcimg = ImageIO.read(WizardRpgXpVxLicenePage.class.getResource(\"licence.jpg\"));\n\t\t\t} catch (Throwable t) {\n\t\t\t\tYEx.info(\"Can not load Image \" + getImgName() + \" for wizard\", t);\n\t\t\t}\n\t\treturn cimg;\n\t}", "public WebElement getNext_page() {\n\t\treturn null;\n\t}", "String getImage();", "public String getImage()\n {\n return image;\n }", "public Image getEight();", "public void nextSlide() {\r\n\t\tpresentation.nextSlide();\r\n\t}", "public String getDefaultImgSrc(){return \"/students/footballstudentdefault.png\";}", "public Image getWalkImage() {\r\n\t\treturn walkImage;\r\n\t}", "public Page getNextPageObject() {\n return getPageObject(this.currentIndex.viewIndex + 1);\n }", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "public String getImage() {\n\t\treturn null;\n\t}", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getHeadImg() {\n return headImg;\n }", "@Override\n\tpublic void loadNextPage() {\n\t\tif(curr_content.isLastPage){\n\t\t\tPigAndroidUtil.showToast(mContext, \"以是最后一页:\", 3000);\n\t\t}else{\n\t\t\texchangeNext(m_bookFactory.getNextPageContent(next_content));\n\t\t}\n\t}", "@Override\n\tprotected String getImageUrl() {\n\t\treturn user.getUserInfo().getImageUrl();\n\t}", "public void loadPreviousPage() {\n// System.out.println(\"index :\"+i);\r\n// System.out.println(\"##########\");\r\n lisOfProduct = serv.read();\r\n CurrP--;\r\n if (CurrP < nbP) {\r\n i = 0;\r\n indexOfImage = CurrP * 6 + i;\r\n loadImage1(lisOfProduct.get(x).getImg_url());\r\n i++;\r\n x = CurrP * 6 + i;\r\n System.out.println(\" i: \" + i + \"Curr: \" + CurrP + \"i in page: \" + x);\r\n\r\n loadImage1(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage2(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage3(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage4(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage5(lisOfProduct.get(indexOfImage).getImg_url()); \r\n indexOfImage++;\r\n loadImage6(lisOfProduct.get(indexOfImage).getImg_url());\r\n \r\n indexOfImage++;\r\n }\r\n indexOfImage -= 5;\r\n// IntStream.range(0, 1).forEach(\r\n// i -> next.fire()\r\n// ); \r\n\r\n// CurrP = 0;\r\n// i = 0;\r\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}", "public String getImageURL() \r\n\t{\r\n\t\t\r\n\t\treturn imageURL;\r\n\t\t\r\n\t}", "public static BodyImage getWalkImage() {return walkImage;}", "public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}", "public String getImageURL()\n\t{\n\t\treturn imageURL;\n\t}", "public String getImg(){\n switch(image){\n case 0: // Case 0: Ant looks up/north\n return \"imgs/ant_n.png\";\n case 1: // Case 1: Ant looks right/east\n return \"imgs/ant_e.png\";\n case 2: // Case 2: Ant looks down/south\n return \"imgs/ant_s.png\";\n case 3: // Case 3: Ant looks left/west\n return \"imgs/ant_w.png\";\n default: // Default: This shouldn't happen on a normal run. It returns an empty string and prints an error.\n System.err.println(\"Something went wrong while the ant was trying change direction\");\n return \"\";\n }\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "private void displayCurrentPicture() {\r\n\t\tglobalContainer.setWidget(0, 0, getCurrentPicture());\r\n\t}", "public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }", "public String getPd_img() {\n\t\treturn pd_img;\n\t}", "public String getImageUrl() {\n return imageUrl;\n }", "public String getpImage() {\n return pImage;\n }", "public String getNewImage() {\r\n\t\treturn newImage;\r\n\t}", "public String getImg_1() {\n return img_1;\n }", "public int getCurrentPage();", "public void filmAgeRestImage() {\n\t\tif (ageAll == ageFilm) {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/6/68/Edad_TP.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\t\t} else if (age7 == ageFilm) {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/5/55/Edad_7.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\n\t\t} else if (age13 == ageFilm) {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/b/bd/Edad_13.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\n\t\t} else if (age16 == ageFilm) {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/4/4b/Edad_16.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/c/ca/Edad_18.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\t\t}\n\t}", "public String getImageURl(){\r\n\t\treturn this.lePanel.chEventImage;\r\n\t}", "protected DraggableImage getPanelEndImage() {\n\treturn endImage;\n }", "@Override\n\tString getImageUrl() throws SmsException {\n\t\treturn \"http://tele2.ru/controls/ImageCode.aspx\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Returns product image.\";\n\t}", "public void goToNextPage() {\n nextPageButton.click();\n }", "public PageInfo nextPageInfo(){\r\n return hasNext() ? new PageInfo(pageNumber + 1, pageSize) : null;\r\n }", "private static native void getPageImage(Bitmap bitmap);", "private String nextURL() {\n\n\t\tString url;\n\t\t// Search the next url until the unique url is found\n\t\tdo {\n\t\t\turl = this.pagesToVisit.remove(0);\n\t\t} while (this.pagesVisited.contains(url));\n\t\tthis.pagesVisited.add(url);\n\t\treturn url;\n\n\t}", "public Image getNine();", "public Image getOne();", "java.lang.String getProductImageUrl();", "public Integer getCurrentPage();" ]
[ "0.6987164", "0.6567359", "0.6411242", "0.6322319", "0.6034116", "0.59871686", "0.5985766", "0.5939604", "0.5932901", "0.5915288", "0.58144337", "0.5793549", "0.578519", "0.57746595", "0.57732147", "0.56789905", "0.56594104", "0.56504434", "0.56189233", "0.5601181", "0.5591455", "0.55907327", "0.55846953", "0.5583808", "0.5569185", "0.5565714", "0.55519646", "0.555066", "0.5548296", "0.5533883", "0.5533115", "0.55087394", "0.55087394", "0.5507954", "0.550128", "0.54920965", "0.5481483", "0.5479573", "0.54723865", "0.5471906", "0.5454051", "0.5446879", "0.54255676", "0.54159915", "0.53913635", "0.53902483", "0.5377173", "0.53770566", "0.5373519", "0.53668004", "0.53616077", "0.53526145", "0.535177", "0.5339909", "0.5338369", "0.5332833", "0.53214604", "0.5319513", "0.5317091", "0.5309313", "0.53065455", "0.5305571", "0.5305426", "0.53045225", "0.5304265", "0.5304265", "0.5304265", "0.5304265", "0.53024906", "0.5292632", "0.5290408", "0.52844304", "0.5283592", "0.5283411", "0.5275981", "0.5250509", "0.52487606", "0.5247131", "0.5242561", "0.52421707", "0.52372503", "0.52350485", "0.5234782", "0.5231657", "0.52294433", "0.5226053", "0.52247787", "0.5211121", "0.5209019", "0.52013946", "0.5199756", "0.5195748", "0.5192525", "0.5183246", "0.51817006", "0.5178004", "0.5175006", "0.51732713", "0.51616687", "0.51579684" ]
0.69049644
1
The disabled next page image.
@ImageOptions(flipRtl = true) ImageResource simplePagerNextPageDisabled();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPageDisabled();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPageDisabled();", "boolean isNextButtonDisabled() {\r\n\t\treturn nextPage.isDisabled();\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPage();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPageDisabled();", "private void setNextPageButtonsDisabled(boolean disabled) {\r\n\t\tnextPage.setDisabled(disabled);\r\n\t\tif (lastPage != null) {\r\n\t\t\tlastPage.setDisabled(disabled);\r\n\t\t}\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFastForwardDisabled();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPage();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPage();", "public Image getDisabledImage () {\r\n\tcheckWidget();\r\n\treturn disabledImage;\r\n}", "public void disableNextButton(boolean disable) {\n this.jNextButton.setEnabled(disable);\n }", "@Override\n public void renderNextImage() {\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFastForward();", "public void setNextEnabled(boolean b){\n\t\tbtnNext.setEnabled(b);\n\t}", "public NinePatch getButtonArrow_disable()\r\n\t{\r\n\t\treturn getRaw(IMGS_ROOT+\"/button_arrow_disable.9.png\");\r\n\t}", "public ImageIcon getSliderTick1_notrangle_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_dark.png\");\r\n\t}", "public ImageIcon getSliderTick1_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_dark.png\");\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPage();", "protected void showNextPage() {\n\t\tif (currPageIndex.equals(pages.size() - 1)) {\n\t\t\t// Last page so dispose\n\n\t\t\tcleanup();\n\t\t\treturn;\n\t\t}\n\n\t\tAbstractWizardPanel page = pages.get(currPageIndex);\n\n\t\t// Remove page from ignored list if requested\n\t\tif (page.getEnablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getEnablePageClassArray()) {\n\t\t\t\tignoredPages.remove(ignorePage);\n\t\t\t}\n\t\t}\n\n\t\t// Add page to ignored list if requested\n\t\tif (page.getDisablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getDisablePageClassArray()) {\n\t\t\t\tif (!ignoredPages.contains(ignorePage)) {\n\t\t\t\t\tignoredPages.add(ignorePage);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tshowPage(currPageIndex + 1, Direction.FORWARD);\n\n\t}", "private void setPrevPageButtonsDisabled(boolean disabled) {\r\n\t\tfirstPage.setDisabled(disabled);\r\n\t\tprevPage.setDisabled(disabled);\r\n\t}", "public ImageIcon getSliderTick1_VERTICAL_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_v_dark.png\");\r\n\t}", "public ImageIcon getSliderTick1_notrangle_VERTICAL_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_v_dark.png\");\r\n\t}", "void onNextIconClick();", "boolean isPreviousButtonDisabled() {\r\n\t\treturn prevPage.isDisabled();\r\n\t}", "public void setNextPage(boolean value) {\n this.nextPage = value;\n }", "private void nextButtonActionPerformed() {//GEN-FIRST:event_nextButtonActionPerformed\r\n getNextPicture();\r\n\r\n }", "private void nextPage()\n {\n if(currentPage + 1 <= maxPage)\n {\n prevPageButton.setEnabled(true);\n if(currentPage + 2 > maxPage)\n nextPageButton.setEnabled(false);\n \n paginate(++currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "@Override\n public void onSkipPressed() {\n setCurrentSlide(4);\n }", "private void CheckEnable()\n {\n btn_prev.setEnabled(true);\n btn_next.setEnabled(true);\n\n if(increment+1 == pageCount)\n {\n btn_next.setEnabled(false);\n }\n if(increment == 0)\n {\n btn_prev.setEnabled(false);\n }\n }", "private void autoEnableNavButtons() {\n\t\tif (currPageIndex.equals(pages.size() - 1)) {\n\t\t\tbtnNext.setText(\"Finish\");\n\t\t} else {\n\t\t\tbtnNext.setText(\"Next >\");\n\t\t}\n\n\t\tbtnPrevious.setEnabled(!currPageIndex.equals(0));\n\t}", "@Override\n public boolean canFlipToNextPage() {\n return true;\n }", "public byte[] getPageImage()\n {\n return Resources.getImage(Resources.PAGE_IMAGE);\n }", "public boolean isNextPage() {\n return nextPage;\n }", "protected boolean setSkipToPage(int num) {\n\t\tif (mControlView != null) {\n\t\t\tString result = \"\";\n\t\t\tint currentPos = num;\n\t\t\tint count = getTotalPage();\n\t\t\tif (currentPos > 0 && count > 0 && num <= count) {\n\t\t\t\tresult = currentPos + \"/\" + count;\n\t\t\t\tmControlView.setPhotoTimeType(result);\n\t\t\t\treturn true;\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public ImageIcon getSliderTick1_notrangle()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle.png\");\r\n\t}", "protected JButton getNext()\n {\n return next;\n }", "public void setDisabledImage (Image image) {\r\n\tcheckWidget();\r\n\tif (image != null && image.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);\r\n\tif ((style & SWT.SEPARATOR) != 0) return;\r\n\tdisabledImage = image;\r\n}", "@FXML\r\n private void Next_Image() {\r\n ImageView imagev = (ImageView) hbox.getChildren().get(image_index);\r\n img_v.setImage(imagev.getImage());\r\n if (transitor_next_last) {\r\n image_index += 2;\r\n }\r\n image_index += 2;\r\n transitor_next_last = false;\r\n if (image_index == hbox.getChildren().size()) {\r\n image_index = 0;\r\n }\r\n\r\n }", "private void hideNextButton(){\n\t\tif(nextButton != null){\n\t\t\tmainWindow.getContainer().remove(nextButton);\n\t\t\tshowSubmitBtn();\n\t\t}\n\t}", "private void displayNext() {\r\n\t\ti++;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "public ImageObj nextImage() {\n if (position == model.getImageList().size() - 1) {\n position = 0;\n }\n else {\n position++;\n }\n return model.getImageList().get(position);\n }", "public IWizardPage getNextPage();", "public void testSetNextFinishButtonEnabled() {\n System.out.println(\"setNextFinishButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setNextFinishButtonEnabled(newValue);\n }", "void nextPage() throws IndexOutOfBoundsException;", "protected DraggableImage getPanelEndImage() {\n\treturn endImage;\n }", "public BooleanProperty canNavigateToNextPageProperty() { return canNavigateToNextPage; }", "private void setFastForwardDisabled(boolean disabled) {\r\n\t\tif (fastForward == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (disabled) {\r\n\t\t\tfastForward.setResource(resources.simplePagerFastForwardDisabled());\r\n\t\t\tfastForward.getElement().getParentElement()\r\n\t\t\t\t\t.addClassName(style.disabledButton());\r\n\t\t} else {\r\n\t\t\tfastForward.setResource(resources.simplePagerFastForward());\r\n\t\t\tfastForward.getElement().getParentElement()\r\n\t\t\t\t\t.removeClassName(style.disabledButton());\r\n\t\t}\r\n\t}", "private Picture getNextPicture() {\n if (this.curImageIndex == this.pictures.size()) {\n this.curImageIndex = 0;\n }\n\n Picture nextPicture = this.pictures.get(this.curImageIndex);\n this.curImageIndex++;\n return nextPicture;\n }", "@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tswitch (arg0) {\n\t\t\tcase 0:\n\t\t\t\tImgLeft.setVisibility(8);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tImgRight.setVisibility(8);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tImgLeft.setVisibility(0);\n\t\t\t\tImgRight.setVisibility(0);\n\t\t\t}\n\t\t}", "@Override\n public void onNextPressed() {\n }", "public ImageIcon getSliderTick1_notrangle_vertical()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_v.png\");\r\n\t}", "private void showNextButton(){\n\t\tif(nextButton != null){\n\t\t\thideSubmitBtn();\n\t\t\tmainWindow.addLayer(nextButton, BUTTON_LAYER, submitBtnX, submitBtnY);\n\t\t}\n\t}", "public void resetSlide() {\n\t\t resetButtons();\n\t\t next.setEnabled(false); //set disabled until a radio button is clicked\n\t }", "private void initNextBtn() throws IOException{\n\t\tnextButton = new ContentPane(ImageLoader.getBufferedImage(\"\\\\images\\\\test\\\\Next.png\"), true, false);\n\t\tnextButton.registerObserver(this);\n\t}", "public boolean isEnabled_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isEnabled()) { return true; } else { return false;} \r\n\t}", "public void setNext(Tile next){\n\t\tthis.next=next;\n\t}", "String disabledButton();", "public void setMyNextInstructionIndex(int myNextInstructionIndex) {\n this.myNextInstructionIndex = myNextInstructionIndex;\n }", "@Override\n\tpublic void loadNextPage() {\n\t\tif(curr_content.isLastPage){\n\t\t\tPigAndroidUtil.showToast(mContext, \"以是最后一页:\", 3000);\n\t\t}else{\n\t\t\texchangeNext(m_bookFactory.getNextPageContent(next_content));\n\t\t}\n\t}", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "public WebElement getNext_page() {\n\t\treturn null;\n\t}", "public Pageable next() {\n\t\t\t\treturn null;\r\n\t\t\t}", "static void disableImageViews() {\n\t\tfor (int i=0; i<Play.NUM[TOTAL]; i++) {\n\t\t\tPlay.pieceViews.get(i).setEnabled(false);\n\t\t}\n\t}", "protected Component createNextButton() {\n JButton b = new BasicArrowButton(SwingConstants.NORTH);\n b.addActionListener(nextButtonHandler);\n b.addMouseListener(nextButtonHandler);\n return b; }", "private void setUpThisPageForReturn() {\n ImageButton returnButton = findViewById(R.id.return_icon);\n returnButton.setVisibility(View.INVISIBLE);\n }", "void disableAutomaticHeaderImage();", "@Override\n protected void onNextPageRequested(int page) {\n\n }", "protected int getSkipPage(){\n\t\tint pageNum = 0;\n\t\tfor (Integer p : mPageNum){\n\t\t\tpageNum *= 10;\n\t\t\tpageNum += p.intValue();\n\t\t}\n\t\tif (pageNum > Integer.MAX_VALUE){\n\t\t\tpageNum = Integer.MAX_VALUE;\n\t\t}\n\t\tif (pageNum <= getTotalPage()){\n\t\t\tmSkipPage = pageNum;\n\t\t}\n\t\treturn mSkipPage;\n\t}", "protected native MagickImage nextImage() throws MagickException;", "@Override\n public String getImageLink() {\n return imageLink;\n }", "protected void snatchCurrent()\r\n\t{\r\n\t\tfinal int targetX=(mCurrentPage-1)*mScreenWidth;\r\n\t\t\r\n\t\tsnatchTo(targetX,0);\t\r\n\t\t\r\n\t\tif(mDotPanel!=null)\r\n\t\t{\r\n\t\t\tint childCount=mDotPanel.getChildCount();\r\n\t\t\tif(mCurrentPage<=childCount)\r\n\t\t\t{\r\n\t\t\t\tfor(int i=0;i<childCount;i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tView view=mDotPanel.getChildAt(i);\r\n\t\t\t\t\tview.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmDotPanel.getChildAt(mCurrentPage-1).setEnabled(false);\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void setNext(SlideNode node) {\n\t\tthis.next = node;\n\t}", "public boolean canFlipToNextPage();", "private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }", "private String nextUrl()\n {\n String nextUrl;\n do\n {\n nextUrl = this.pagesToVisit.remove(0);\n } while(this.pagesVisited.contains(nextUrl));\n this.pagesVisited.add(nextUrl);\n return nextUrl;\n }", "public void nextSlide() {\n\t\tif (currentSlideNumber < (showList.size()-1)) {\n\t\t\tsetSlideNumber(currentSlideNumber + 1);\n\t\t}\n\t}", "private void displayNoImage() {\n\t\tGRect imageRect = new GRect(LEFT_MARGIN, nameY + IMAGE_MARGIN,\n\t\t\t\tIMAGE_WIDTH, IMAGE_HEIGHT);\n\t\tadd(imageRect);\n\t\tGLabel noImage = new GLabel(\"No Image\");\n\t\tnoImage.setFont(PROFILE_IMAGE_FONT);\n\t\tdouble labelWidth = LEFT_MARGIN + IMAGE_WIDTH / 2 - noImage.getWidth()\n\t\t\t\t/ 2;\n\t\tdouble labelHeight = nameY + IMAGE_MARGIN + IMAGE_HEIGHT / 2;\n\t\tadd(noImage, labelWidth, labelHeight);\n\t}", "private void prevPage()\n {\n if(currentPage - 1 >= 1)\n {\n nextPageButton.setEnabled(true);\n if(currentPage -2 < 1)\n prevPageButton.setEnabled(false);\n \n paginate(--currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "@Override\n\tpublic Pageable nextPageable() {\n\t\treturn null;\n\t}", "public JPanel getImageButtonsPanel() {\r\n\t\treturn imageButtonsPanel;\r\n\t}", "@Override\n public void onPageSelected(int position) {\n int currentItem = bViewPager.getCurrentItem();\n initTabImage();\n switch (currentItem) {\n case 0:\n firstImage.setImageResource(R.drawable.homeb);\n break;\n case 1:\n secondImage.setImageResource(R.drawable.profileb);\n break;\n// case 2:\n// thirdImage.setImageResource(R.drawable.addcontent);\n// break;\n case 2:\n fourthImage.setImageResource(R.drawable.channelsb);\n break;\n case 3:\n fifthImage.setImageResource(R.drawable.searchb);\n break;\n\n }\n }", "public void loadPreviousPage() {\n// System.out.println(\"index :\"+i);\r\n// System.out.println(\"##########\");\r\n lisOfProduct = serv.read();\r\n CurrP--;\r\n if (CurrP < nbP) {\r\n i = 0;\r\n indexOfImage = CurrP * 6 + i;\r\n loadImage1(lisOfProduct.get(x).getImg_url());\r\n i++;\r\n x = CurrP * 6 + i;\r\n System.out.println(\" i: \" + i + \"Curr: \" + CurrP + \"i in page: \" + x);\r\n\r\n loadImage1(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage2(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage3(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage4(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage5(lisOfProduct.get(indexOfImage).getImg_url()); \r\n indexOfImage++;\r\n loadImage6(lisOfProduct.get(indexOfImage).getImg_url());\r\n \r\n indexOfImage++;\r\n }\r\n indexOfImage -= 5;\r\n// IntStream.range(0, 1).forEach(\r\n// i -> next.fire()\r\n// ); \r\n\r\n// CurrP = 0;\r\n// i = 0;\r\n }", "public SelectGradableItemsPage clickNextButton() throws Exception {\n try {\n logInstruction(\"LOG INSTRUCTION:clicking the next button\");\n frameSwitch.switchToFrameContent();\n uiDriver.waitToBeDisplayed(btnNextButton, waitTime);\n btnNextButton.click();\n } catch (Exception e) {\n throw new Exception(\"ISSUE IN CLICKING THE 'Next' BUTTON\" + \"clickNextButton\" + e\n .getLocalizedMessage());\n }\n return new SelectGradableItemsPage(uiDriver);\n }", "protected DraggableImage getPanelStartImage() {\n\treturn startImage;\n }", "@Override\n\tpublic String getImageAssociee() {\n\t\treturn Images.plusFour;\n\t}", "protected void showPreviousPage() {\n\t\tshowPage(currPageIndex - 1, Direction.BACKWARD);\n\n\t}", "@Override\n public void onPageSelected(int position) {\n if (position == 0 || position == layouts.size()-1) {\n btnPrevious.setVisibility(View.GONE);\n } else {\n btnPrevious.setVisibility(View.VISIBLE);\n }\n }", "private void displayPrevious() {\r\n\t\ti--;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "public void nextSlide() {\r\n\t\tpresentation.nextSlide();\r\n\t}", "public String getNextPageMarker() {\n return this.nextPageMarker;\n }", "public NinePatch getButtonArrow_normal()\r\n\t{\r\n\t\treturn getRaw(IMGS_ROOT+\"/button_arrow.9.png\");\r\n\t}", "public void nextPage() {\n\t\tthis.skipEntries += NUM_PER_PAGE;\n\t\tloadEntries();\n\t}", "public int getIconImageNumber(){return iconImageNumber;}", "@Nullable\n WizardPage flipToNext();", "@Override\n public void onPageScrollStateChanged(int arg0) {\n System.out.println(\"onPageScrollStateChanged is called =\"+arg0);\n\n if(viewPager.getCurrentItem()!=0){\n back.setVisibility(View.VISIBLE);\n }\n else{\n back.setVisibility(View.INVISIBLE);\n }\n\n if(viewPager.getCurrentItem()==5){\n next.setVisibility(View.INVISIBLE);\n }\n else{\n next.setVisibility(View.VISIBLE);\n }\n }", "private void getNextQuestionHandler() {\n //Log.i(TAG, \"getNextQuestionHandler\");\n p.setVisibility(View.VISIBLE);\n questionText.setText(\"Loading...\");\n readableCheck.setChecked(false);\n readableCheck.setEnabled(false);\n submitBtn.setEnabled(false);\n skipBtn.setEnabled(false);\n img01.setImageResource(R.drawable.new_rating_smile_grey);\n img02.setImageResource(R.drawable.new_rating_nutral_grey);\n img03.setImageResource(R.drawable.new_rating_angry_grey);\n imgb01 = false;\n imgb02 = false;\n imgb03 = false;\n rateValue = 0;\n\n controller.getNextQuestion();\n }", "private void setEndingButtons() {\n Button btnFinishEnable = (Button) findViewById(R.id.btnFinish);\n btnFinishEnable.setEnabled(true);\n Button btnNextEnable = (Button) findViewById(R.id.btnNext);\n btnNextEnable.setEnabled(false);\n }", "@Source(\"update.gif\")\n\tpublic DataResource updateIconDisabledResource();", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "void enableAutomaticHeaderImage();" ]
[ "0.7517452", "0.7312709", "0.7125856", "0.7100959", "0.7063934", "0.6888662", "0.6794342", "0.6505803", "0.630647", "0.62546605", "0.6249811", "0.62154704", "0.61786085", "0.61165994", "0.6096461", "0.6035018", "0.6012633", "0.5978112", "0.59568286", "0.5952765", "0.5896364", "0.5881108", "0.5815261", "0.56946254", "0.56805164", "0.56459206", "0.5629586", "0.552632", "0.55258214", "0.55021805", "0.54812485", "0.5463695", "0.5461054", "0.5429745", "0.542457", "0.5423472", "0.54193485", "0.5412589", "0.540986", "0.5398351", "0.5379725", "0.5359851", "0.53101534", "0.52987957", "0.52972615", "0.527492", "0.5255636", "0.5249284", "0.5245908", "0.52355057", "0.52044934", "0.5201053", "0.5191456", "0.51901484", "0.518681", "0.5172632", "0.51670885", "0.516278", "0.516172", "0.5156335", "0.51436216", "0.51407945", "0.5127323", "0.51220334", "0.51018476", "0.50767726", "0.50714594", "0.50619346", "0.50610894", "0.504126", "0.5038193", "0.5036703", "0.50325197", "0.5010004", "0.50051916", "0.49991336", "0.49958435", "0.49815106", "0.49730274", "0.49695012", "0.4965663", "0.4951136", "0.4929227", "0.4918307", "0.4909987", "0.49063382", "0.49027377", "0.49016458", "0.4882478", "0.48719087", "0.48681784", "0.48505405", "0.4848637", "0.48438528", "0.48428255", "0.4833599", "0.48310494", "0.48305282", "0.48290434", "0.48219055" ]
0.80877846
0
The image used to go to the previous page.
@ImageOptions(flipRtl = true) ImageResource simplePagerPreviousPage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayPrevious() {\r\n\t\ti--;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "public ImageObj prevImage() {\n if (position != 0) {\n position--;\n }\n else {\n position = model.getImageList().size() - 1;\n }\n\n return model.getImageList().get(position);\n }", "public String returnToPreviousPage() {\n if (datasetVersion.isDraft()) {\n return \"/dataset.xhtml?persistentId=\" +\n datasetVersion.getDataset().getGlobalId().asString() + \"&version=DRAFT&faces-redirect=true\";\n }\n return \"/dataset.xhtml?persistentId=\"\n + datasetVersion.getDataset().getGlobalId().asString()\n + \"&faces-redirect=true&version=\"\n + datasetVersion.getVersionNumber() + \".\" + datasetVersion.getMinorVersionNumber();\n }", "private void previousButtonActionPerformed() {//GEN-FIRST:event_previousButtonActionPerformed\r\n getPreviousPicture();\r\n }", "public void previous();", "private File getPreviousPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() <= 0) {\r\n retVal = listFiles.get(listFiles.size() - 1);\r\n fileList.setSelectedIndex(listFiles.size() - 1);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() - 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() - 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "public GImage getBack(){\r\n \t\t return back;\r\n\t }", "protected void showPreviousPage() {\n\t\tshowPage(currPageIndex - 1, Direction.BACKWARD);\n\n\t}", "private Image getBackImage() {\n return getImage(\"playing-cards/blue-back.png\");\n }", "public void previousSlide() {\r\n\t\tpresentation.prevSlide();\r\n\t}", "public IWizardPage getPreviousPage();", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "public static void previous() {\n\t\tsendMessage(PREVIOUS_COMMAND);\n\t}", "private void prevPage()\n {\n if(currentPage - 1 >= 1)\n {\n nextPageButton.setEnabled(true);\n if(currentPage -2 < 1)\n prevPageButton.setEnabled(false);\n \n paginate(--currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "protected JButton getPrevious()\n {\n return previous;\n }", "@Nullable\n WizardPage flipToPrevious();", "void previousPage() throws IndexOutOfBoundsException;", "public Content getNavLinkPrevious() {\n Content li;\n if (prev != null) {\n Content prevLink = getLink(new LinkInfoImpl(configuration,\n LinkInfoImpl.Kind.CLASS, prev)\n .label(prevclassLabel).strong(true));\n li = HtmlTree.LI(prevLink);\n }\n else\n li = HtmlTree.LI(prevclassLabel);\n return li;\n }", "public\tString\tgetPreviousSignature() {\n\t\t\treturn\tthis.prevSignature;\n\t\t}", "public void prevSlide() {\n\t\tif (currentSlideNumber > 0) {\n\t\t\tsetSlideNumber(currentSlideNumber - 1);\n\t }\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPageDisabled();", "private JButton getJbtnPreviousStep() {\n\t\tif (jbtnPreviousStep == null) {\n\t\t\tjbtnPreviousStep = new JButton();\n\t\t\tjbtnPreviousStep.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\tjbtnPreviousStep.setHorizontalTextPosition(SwingConstants.TRAILING);\n\t\t\tjbtnPreviousStep.setIcon(new ImageIcon(getClass().getResource(\"/org/measureyourgradient/images/back.png\")));\n\t\t\tjbtnPreviousStep.setText(\" Previous Step\");\n\t\t\tjbtnPreviousStep.setSize(new Dimension(178, 34));\n\t\t\tjbtnPreviousStep.setLocation(new Point(6, 576));\n\t\t\tjbtnPreviousStep.setActionCommand(\"Previous Step\");\n\t\t}\n\t\treturn jbtnPreviousStep;\n\t}", "public void Back(){\n setImage(\"button-blue.png\");\n }", "public void back() {\n //noinspection ResultOfMethodCallIgnored\n previous();\n }", "protected ActionForward previousPage( UserRequest request )\n {\n int pageNumber = request.getParameterAsInt( PAGE_KEY, 2 );\n HttpServletRequest req = request.getRequest();\n req.setAttribute( PAGE_KEY, \"\"+ --pageNumber );\n return request.getMapping().findForward( PAGE_KEY + pageNumber );\n }", "public Page getPrevPageObject() {\n return getPageObject(this.currentIndex.viewIndex - 1);\n }", "public void previous() {\n if (hasPrevious()) {\n setPosition(position - 1);\n }\n }", "public void prev();", "public String back(int steps) {\n while (steps != 0 && current.previous != null) {\n steps--;\n current = current.previous;\n }\n return current.url;\n }", "private void previous() {\n if (position > 0) {\n Player.getInstance().stop();\n\n // Set a new position:w\n --position;\n\n ibSkipNextTrack.setImageDrawable(getResources()\n .getDrawable(R.drawable.ic_skip_next_track_on));\n\n try {\n Player.getInstance().play(tracks.get(position));\n } catch (IOException playerException) {\n playerException.printStackTrace();\n }\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_pause_track);\n setCover(Player.getInstance().getCover(tracks.get(position), this));\n\n tvTrack.setText(tracks.get(position).getName());\n tvTrackEndTime.setText(playerUtils.toMinutes(Player.getInstance().getTrackEndTime()));\n }\n\n if (position == 0) {\n setImageDrawable(ibSkipPreviousTrack, R.drawable.ic_skip_previous_track_off);\n }\n }", "String getPrevious();", "private void previousButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n if(this.page == 0){\n Warning.run(\"No previous page here.\");\n }\n else{\n this.page--;\n this.update();\n }\n }", "public void previousPage() {\n\t\tthis.skipEntries -= NUM_PER_PAGE;\n\t\tif (this.skipEntries < 1) {\n\t\t\tskipEntries = 1;\n\t\t}\n\t\tloadEntries();\n\t}", "Object previous();", "public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}", "public JButton getBtnBack(){\n\t\treturn btnBack;\n\t}", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n Intent intent=new Intent();\n // intent.putExtra(\"image\",path.substring(path.indexOf(\"/\")+1));\n setResult(Activity.RESULT_CANCELED,intent);\n finish();\n\n // overridePendingTransition(R.anim.slide_out, R.anim.slide_in);\n }", "public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }", "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "@Override\n\tpublic Pageable previousPageable() {\n\t\treturn null;\n\t}", "private JButton getBtnBack() {\r\n\t\tif (btnBack == null) {\r\n\t\t\tbtnBack = new JButton();\r\n\t\t\tbtnBack.setText(\"<\");\r\n\t\t\tbtnBack.setToolTipText(\"Back\");\r\n\t\t\tbtnBack.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tif(historyIndex > 0) {\r\n\t\t\t\t\t\thistoryIndex --;\r\n\t\t\t\t\t\tgoTo(history.get(historyIndex), HistoryManagement.NAVIGATE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn btnBack;\r\n\t}", "@Override\r\n\tpublic void onBackPressed()\r\n\t{\r\n\t\tif (flipper.getDisplayedChild() != 0)\r\n\t\t{\r\n\t\t\tflipper.showPrevious();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.onBackPressed();\r\n\t\t}\r\n\t}", "public void loadPreviousPage() {\n// System.out.println(\"index :\"+i);\r\n// System.out.println(\"##########\");\r\n lisOfProduct = serv.read();\r\n CurrP--;\r\n if (CurrP < nbP) {\r\n i = 0;\r\n indexOfImage = CurrP * 6 + i;\r\n loadImage1(lisOfProduct.get(x).getImg_url());\r\n i++;\r\n x = CurrP * 6 + i;\r\n System.out.println(\" i: \" + i + \"Curr: \" + CurrP + \"i in page: \" + x);\r\n\r\n loadImage1(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage2(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage3(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage4(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage5(lisOfProduct.get(indexOfImage).getImg_url()); \r\n indexOfImage++;\r\n loadImage6(lisOfProduct.get(indexOfImage).getImg_url());\r\n \r\n indexOfImage++;\r\n }\r\n indexOfImage -= 5;\r\n// IntStream.range(0, 1).forEach(\r\n// i -> next.fire()\r\n// ); \r\n\r\n// CurrP = 0;\r\n// i = 0;\r\n }", "protected abstract IssueLink getPreviousIssue();", "public void viewPrevPhoto(ActionEvent event) {\n\t\t\n\t\t//System.out.println(\"left check: \" + listOfPhotos);\n\t\t\n\t\tif (displayedPhoto.isEmpty()) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"Cannot find next image!\");\n\t\t\talert.setContentText(\"No photo selected. Failed to display next image.\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tint photosList_size = listOfPhotos.size();\n\t\t\n\t\tif(currPhotoIndex == 0) {\n\t\t\tcurrPhotoIndex = photosList_size - 1;\n\t\t} else {\n\t\t\tcurrPhotoIndex = currPhotoIndex - 1;\n\t\t}\n\t\t\n\t\tImageView nextPhoto = listOfPhotos.get(currPhotoIndex);\n\t\tcurrPhotoIndex = listOfPhotos.indexOf(nextPhoto);\n\t\t//System.out.println(currPhotoIndex);\n\t\tImageView newimg = new ImageView();\n\t\tnewimg.setImage(nextPhoto.getImage());\n\t\tnewimg.setFitWidth(480);\n\t\tnewimg.setFitHeight(330);\n\t\tdisplayedPhoto.clear();\n\t\tdisplayedPhoto = FXCollections.observableArrayList();\n\t\tdisplayedPhoto.add(newimg);\n\t\tDisplayedImage.setItems(displayedPhoto);\n\t}", "public Pageable previousOrFirst() {\n\t\t\t\treturn null;\r\n\t\t\t}", "private void onBack(McPlayerInterface player, GuiSessionInterface session, ClickGuiInterface gui)\r\n {\r\n session.setNewPage(this.prevPage);\r\n }", "int goBackSlide(){\n if (this.currentSlide>slides.size()){\n this.currentSlide--;\n }\n return this.currentSlide;\n }", "@Override\n\tpublic void onBackPressed() {\n\t\ttry {\n\t\t\tif(imageManager != null)\n\t\t\t\timageManager.interrupThread();\n\t\t}catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\tsuper.onBackPressed();\n\t}", "public T previous()\n {\n // TODO: implement this method\n return null;\n }", "public void setPreviousPage(MouseEvent event) {\n\t\tm_previousPage = event;\n\t}", "public int getPrevious() {\n\t\treturn this.previous;\n\t}", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "static public Icon getBackCardIcon()\n {\n iconBack = new ImageIcon(\"images/\" + \"BK.gif\");\n return iconBack;\n }", "@Override\r\n public int previousIndex() {\r\n if (previous == null) {\r\n return -1;\r\n }\r\n return previousIndex;\r\n }", "private void backPage()\n {\n page--;\n open();\n }", "public static Result prev() {\r\n\t\tMap<String, String> requestData = Form.form().bindFromRequest().data();\r\n\t\tString idCurrentNode = requestData.get(RequestParams.CURRENT_NODE);\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tString username = CMSSession.getEmployeeName();\r\n\r\n\t\tDecision previousDecision = CMSGuidedFormFill.getPreviousDecision(\r\n\t\t\t\tformName, username, idCurrentNode);\r\n\r\n\t\treturn ok(backdrop.render(previousDecision));\r\n\t}", "@Override\r\n\tpublic String prev() {\n\t\tString pre;\r\n\r\n\t\tpre = p.getPrev();\r\n\r\n\t\tif (pre != null) {\r\n\t\t\tthisPrevious = true;\r\n\t\t\tinput(pre);\r\n\t\t}\r\n\t\treturn pre;\r\n\t}", "public PrevPage getPP(){\r\n\t\treturn ppage;\r\n\t}", "public Index previous() {\n return Index.valueOf(value - 1);\n }", "void onGoBackButtonClick();", "public int previousIndex() {\r\n \treturn index - 1; \r\n }", "public void moveBack() {\r\n\t\tsetY(getY() - 134);\r\n\t\tmyImage = myImage.getScaledInstance(100, 100, 60);\r\n\r\n\t}", "public int getPreviousHop() {\n return previousHop;\n }", "public Layer getPrevLayer() {\r\n\t\treturn this.prevLayer;\r\n\t}", "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "public static Previous getPreviousWindow() {\n\t\treturn previousWindow;\n\t}", "public boolean isPreviousPage() {\n return previousPage;\n }", "public void back() {\n Views.goBack();\n }", "public int getPreviousScene(){\n\t\treturn _previousScene;\n\t}", "public void setPreviousPage(IWizardPage page);", "public void Prev();", "private void setUpBackButton() {\n mBackButton = mDetailToolbar.getChildAt(0);\n if (null != mBackButton && mBackButton instanceof ImageView) {\n\n // the scrim makes the back arrow more visible when the image behind is very light\n mBackButton.setBackgroundResource(R.drawable.scrim);\n\n ViewGroup.MarginLayoutParams lpt = (ViewGroup.MarginLayoutParams) mBackButton.getLayoutParams();\n lpt.setMarginStart((int) getResources().getDimension(R.dimen.keyline_1));\n\n ViewGroup.LayoutParams lp = mBackButton.getLayoutParams();\n lp.height = (int) getResources().getDimension(R.dimen.small_back_arrow);\n lp.width = (int) getResources().getDimension(R.dimen.small_back_arrow);\n\n // tapping the back button or the Up button should return to the list of articles\n mBackButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onBackPressed();\n supportFinishAfterTransition();\n }\n });\n }\n }", "@Nullable\n public String getOldAvatarUrl() {\n return previous == null ? null : String.format(Member.AVATAR_URL, getMember().getGuild().getId(), getMember().getId(), previous, previous.startsWith(\"a_\") ? \"gif\" : \"png\");\n }", "public String back() {\r\n\t\treturn \"/private/admin/Admin?faces-redirect=true\";\r\n\t}", "public SlideNode getPrev() {\n\t\treturn prev;\n\t}", "public String goBack() {\n driver.navigate().back();\n return driver.getContext();\n }", "public int previousIndex()\n {\n // TODO: implement this method\n return -1;\n }", "private String doGoBack( HttpServletRequest request )\r\n {\r\n String strJspBack = request.getParameter( StockConstants.MARK_JSP_BACK );\r\n\r\n return StringUtils.isNotBlank( strJspBack ) ? ( AppPathService.getBaseUrl( request ) + strJspBack )\r\n : ( AppPathService.getBaseUrl( request ) + JSP_MANAGE_CATEGORYS );\r\n }", "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "private void previousQuestion() {\n if (mCurrentIndex > 0) {\n mCurrentIndex = (mCurrentIndex - 1) % questions.length;\n }\n else\n mCurrentIndex = questions.length - 1;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }", "@Override\n\tpublic Menu previousMenu() {\n\t\treturn prevMenu;\n\t}", "@Override\n\tpublic boolean hasPreviousPage() {\n\t\treturn false;\n\t}", "private JButton getPreButton() {\r\n\t\tif (preButton == null) {\r\n\t\t\tpreButton = new JButton();\r\n\t\t\tpreButton.setText(\"Prev Page\");\r\n\t\t\tpreButton.setSize(new Dimension(120, 30));\r\n\t\t\tpreButton.setLocation(new java.awt.Point(10,480));\r\n\t\t}\r\n\t\treturn preButton;\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPage();", "public void previous() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getPreviousMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getPreviousModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }", "public DSAGraphNode<E> getPrevious()\n {\n return previous;\n }", "private Token previous() {\n return tokens.get(current-1);\n }", "public void PrevTurn(){\n currentTurn = currentTurn.getAnterior();\n String turno = (String) currentTurn.getDato();\n String info[] = turno.split(\"#\");\n\n int infoIn = 4;\n for (int i = 0; i < 10; i++, infoIn += 1) {\n label_list[i].setIcon(new ImageIcon(info[infoIn]));\n this.screen.add(label_list[i]);\n }\n HP.setText(\"HP: \"+info[2]);\n action.setText(\"Action: \"+info[1]);\n mana.setText(\"Mana: \"+info[3]);\n game.setText(\"Game \"+String.valueOf(partidaNum)+\", Turn \"+info[0]);\n\n VerifyButtons();\n\n }", "public DependencyElement previous() {\n\t\treturn prev;\n\t}", "private JMenuItem getMniBack() {\r\n\t\tif (mniBack == null) {\r\n\t\t\tmniBack = new JMenuItem();\r\n\t\t\tmniBack.setText(\"Back\");\r\n\t\t\tmniBack.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tbtnBack.doClick();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn mniBack;\r\n\t}", "private void backActionPerformed(ActionEvent e) {\r\n ctr_pres.principal();\r\n setVisible(false);\r\n }", "public static void back() {\n driver.navigate().back();\n }", "private void previousQuestion()\r\n {\r\n Intent question = new Intent(AnswerActivity.this, QuestionActivity.class);\r\n Bundle bundle = new Bundle();\r\n bundle.putIntArray(QuestionActivity.FLASH_CARD_ARRAY, intArray);\r\n bundle.putInt(QuestionActivity.NUMBER_OF_FLASH_CARDS, numberOfFlashCards);\n bundle.putBoolean(PREVIOUS_QUESTION, true); \r\n bundle.putInt(QuestionActivity.CURRENT_INDEX, currentIndex);\r\n question.putExtras(bundle);\r\n startActivity(question);\r\n overridePendingTransition(R.anim.fade, R.anim.hold);\n finish();\r\n }", "public ListElement getPrevious()\n\t {\n\t return this.previous;\n\t }", "public void goBack() {\n goBackBtn();\n }", "private JButton getJButton_back() {\r\n\t\tif (jButton_back == null) {\r\n\t\t\tjButton_back = new JButton();\r\n\t\t\tjButton_back.setLocation(new Point(94, 480));\r\n\t\t\tjButton_back.setText(\"Back\");\r\n\t\t\tjButton_back.setSize(new Dimension(208, 34));\r\n\t\t\tjButton_back.addActionListener(this);\r\n\t\t}\r\n\t\treturn jButton_back;\r\n\t}", "protected void drawBackButton() {\n backButton = new TextButton(\"Back\", skin);\n stage.addActor(backButton);\n\n setPrevious();\n }", "private int previousSong() {\n if (playListAdapter != null) {\n playListAdapter.clickPreviousNext(1);\n }\n serviceBound = false;\n player.stopMedia();\n if (currentSong > 0) {\n currentSong--;\n }\n return currentSong;\n }", "public void setPreviousHop(int previousHop) {\n this.previousHop = previousHop;\n }" ]
[ "0.6825175", "0.68201923", "0.6794768", "0.6573107", "0.6555852", "0.65393734", "0.6534178", "0.65304273", "0.6508739", "0.65024734", "0.64345145", "0.64303863", "0.6322994", "0.6236597", "0.620873", "0.6207661", "0.61845297", "0.6161818", "0.6144132", "0.6139062", "0.613666", "0.61330646", "0.6121631", "0.61146295", "0.6112314", "0.6103343", "0.6054671", "0.60506487", "0.60090804", "0.5952708", "0.59489423", "0.593868", "0.5933775", "0.5924389", "0.59027344", "0.589748", "0.58853513", "0.5880998", "0.58802956", "0.58596206", "0.5857203", "0.5852949", "0.58397347", "0.583743", "0.582933", "0.5818117", "0.58155763", "0.58128196", "0.5795607", "0.5785244", "0.5783446", "0.5782525", "0.5779539", "0.57756513", "0.5775268", "0.5772762", "0.57727295", "0.5756856", "0.57493585", "0.5743605", "0.57369673", "0.5735981", "0.5731992", "0.5718568", "0.5714357", "0.5704937", "0.5694471", "0.56902", "0.5687493", "0.5684655", "0.56844026", "0.5681485", "0.56807196", "0.5678363", "0.56776303", "0.56759435", "0.56626725", "0.5658017", "0.5655692", "0.5653472", "0.56506145", "0.56439936", "0.56403434", "0.5633267", "0.5632658", "0.5597131", "0.55829626", "0.55745", "0.55620795", "0.5561595", "0.55560845", "0.5554426", "0.55441093", "0.5537522", "0.5533272", "0.55311567", "0.5524113", "0.5522359", "0.55187887", "0.55082285" ]
0.7020853
0
The disabled previous page image.
@ImageOptions(flipRtl = true) ImageResource simplePagerPreviousPageDisabled();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isPreviousButtonDisabled() {\r\n\t\treturn prevPage.isDisabled();\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPage();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPageDisabled();", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPageDisabled();", "private void prevPage()\n {\n if(currentPage - 1 >= 1)\n {\n nextPageButton.setEnabled(true);\n if(currentPage -2 < 1)\n prevPageButton.setEnabled(false);\n \n paginate(--currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "private void setPrevPageButtonsDisabled(boolean disabled) {\r\n\t\tfirstPage.setDisabled(disabled);\r\n\t\tprevPage.setDisabled(disabled);\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPageDisabled();", "public Image getDisabledImage () {\r\n\tcheckWidget();\r\n\treturn disabledImage;\r\n}", "private void displayPrevious() {\r\n\t\ti--;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "private void previousButtonActionPerformed() {//GEN-FIRST:event_previousButtonActionPerformed\r\n getPreviousPicture();\r\n }", "public NinePatch getButtonArrow_disable()\r\n\t{\r\n\t\treturn getRaw(IMGS_ROOT+\"/button_arrow_disable.9.png\");\r\n\t}", "public ImageObj prevImage() {\n if (position != 0) {\n position--;\n }\n else {\n position = model.getImageList().size() - 1;\n }\n\n return model.getImageList().get(position);\n }", "protected void showPreviousPage() {\n\t\tshowPage(currPageIndex - 1, Direction.BACKWARD);\n\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFastForwardDisabled();", "@Override\n\tpublic boolean hasPreviousPage() {\n\t\treturn false;\n\t}", "protected JButton getPrevious()\n {\n return previous;\n }", "public void previousSlide() {\r\n\t\tpresentation.prevSlide();\r\n\t}", "public ImageIcon getSliderTick1_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_dark.png\");\r\n\t}", "public ImageIcon getSliderTick1_notrangle_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_dark.png\");\r\n\t}", "@Override\n\tpublic Pageable previousPageable() {\n\t\treturn null;\n\t}", "private void previousButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n if(this.page == 0){\n Warning.run(\"No previous page here.\");\n }\n else{\n this.page--;\n this.update();\n }\n }", "void previousPage() throws IndexOutOfBoundsException;", "public boolean isPreviousPage() {\n return previousPage;\n }", "public void setPreviousPage(boolean value) {\n this.previousPage = value;\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPage();", "public IWizardPage getPreviousPage();", "public void prevSlide() {\n\t\tif (currentSlideNumber > 0) {\n\t\t\tsetSlideNumber(currentSlideNumber - 1);\n\t }\n\t}", "private JButton getJbtnPreviousStep() {\n\t\tif (jbtnPreviousStep == null) {\n\t\t\tjbtnPreviousStep = new JButton();\n\t\t\tjbtnPreviousStep.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\tjbtnPreviousStep.setHorizontalTextPosition(SwingConstants.TRAILING);\n\t\t\tjbtnPreviousStep.setIcon(new ImageIcon(getClass().getResource(\"/org/measureyourgradient/images/back.png\")));\n\t\t\tjbtnPreviousStep.setText(\" Previous Step\");\n\t\t\tjbtnPreviousStep.setSize(new Dimension(178, 34));\n\t\t\tjbtnPreviousStep.setLocation(new Point(6, 576));\n\t\t\tjbtnPreviousStep.setActionCommand(\"Previous Step\");\n\t\t}\n\t\treturn jbtnPreviousStep;\n\t}", "private void previous() {\n if (position > 0) {\n Player.getInstance().stop();\n\n // Set a new position:w\n --position;\n\n ibSkipNextTrack.setImageDrawable(getResources()\n .getDrawable(R.drawable.ic_skip_next_track_on));\n\n try {\n Player.getInstance().play(tracks.get(position));\n } catch (IOException playerException) {\n playerException.printStackTrace();\n }\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_pause_track);\n setCover(Player.getInstance().getCover(tracks.get(position), this));\n\n tvTrack.setText(tracks.get(position).getName());\n tvTrackEndTime.setText(playerUtils.toMinutes(Player.getInstance().getTrackEndTime()));\n }\n\n if (position == 0) {\n setImageDrawable(ibSkipPreviousTrack, R.drawable.ic_skip_previous_track_off);\n }\n }", "public void previousPage() {\n\t\tthis.skipEntries -= NUM_PER_PAGE;\n\t\tif (this.skipEntries < 1) {\n\t\t\tskipEntries = 1;\n\t\t}\n\t\tloadEntries();\n\t}", "public void previous();", "public ImageIcon getSliderTick1_VERTICAL_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_v_dark.png\");\r\n\t}", "public GImage getBack(){\r\n \t\t return back;\r\n\t }", "public void setPreviousPage(MouseEvent event) {\n\t\tm_previousPage = event;\n\t}", "public String returnToPreviousPage() {\n if (datasetVersion.isDraft()) {\n return \"/dataset.xhtml?persistentId=\" +\n datasetVersion.getDataset().getGlobalId().asString() + \"&version=DRAFT&faces-redirect=true\";\n }\n return \"/dataset.xhtml?persistentId=\"\n + datasetVersion.getDataset().getGlobalId().asString()\n + \"&faces-redirect=true&version=\"\n + datasetVersion.getVersionNumber() + \".\" + datasetVersion.getMinorVersionNumber();\n }", "private JButton getPreButton() {\r\n\t\tif (preButton == null) {\r\n\t\t\tpreButton = new JButton();\r\n\t\t\tpreButton.setText(\"Prev Page\");\r\n\t\t\tpreButton.setSize(new Dimension(120, 30));\r\n\t\t\tpreButton.setLocation(new java.awt.Point(10,480));\r\n\t\t}\r\n\t\treturn preButton;\r\n\t}", "private File getPreviousPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() <= 0) {\r\n retVal = listFiles.get(listFiles.size() - 1);\r\n fileList.setSelectedIndex(listFiles.size() - 1);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() - 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() - 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "public ImageIcon getSliderTick1_notrangle_VERTICAL_disable()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle_v_dark.png\");\r\n\t}", "public void Back(){\n setImage(\"button-blue.png\");\n }", "public void prev();", "@Nullable\n WizardPage flipToPrevious();", "private void setNextPageButtonsDisabled(boolean disabled) {\r\n\t\tnextPage.setDisabled(disabled);\r\n\t\tif (lastPage != null) {\r\n\t\t\tlastPage.setDisabled(disabled);\r\n\t\t}\r\n\t}", "public void loadPreviousPage() {\n// System.out.println(\"index :\"+i);\r\n// System.out.println(\"##########\");\r\n lisOfProduct = serv.read();\r\n CurrP--;\r\n if (CurrP < nbP) {\r\n i = 0;\r\n indexOfImage = CurrP * 6 + i;\r\n loadImage1(lisOfProduct.get(x).getImg_url());\r\n i++;\r\n x = CurrP * 6 + i;\r\n System.out.println(\" i: \" + i + \"Curr: \" + CurrP + \"i in page: \" + x);\r\n\r\n loadImage1(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage2(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage3(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage4(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage5(lisOfProduct.get(indexOfImage).getImg_url()); \r\n indexOfImage++;\r\n loadImage6(lisOfProduct.get(indexOfImage).getImg_url());\r\n \r\n indexOfImage++;\r\n }\r\n indexOfImage -= 5;\r\n// IntStream.range(0, 1).forEach(\r\n// i -> next.fire()\r\n// ); \r\n\r\n// CurrP = 0;\r\n// i = 0;\r\n }", "public void setPreviousPage(IWizardPage page);", "boolean isNextButtonDisabled() {\r\n\t\treturn nextPage.isDisabled();\r\n\t}", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "public ImageIcon getSliderTick1_notrangle()\r\n\t{\r\n\t\treturn getImage(IMGS_ROOT+\"/slider_tick1_notrangle.png\");\r\n\t}", "boolean hasPreviousPage();", "public PrevPage getPP(){\r\n\t\treturn ppage;\r\n\t}", "private Image getBackImage() {\n return getImage(\"playing-cards/blue-back.png\");\n }", "public Page getPrevPageObject() {\n return getPageObject(this.currentIndex.viewIndex - 1);\n }", "public void setDisabledImage (Image image) {\r\n\tcheckWidget();\r\n\tif (image != null && image.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);\r\n\tif ((style & SWT.SEPARATOR) != 0) return;\r\n\tdisabledImage = image;\r\n}", "public YuiImage getDefaultImgOver() {\r\n\t\treturn defaultImgOver;\r\n\t}", "public Pageable previousOrFirst() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public void previous() {\n if (hasPrevious()) {\n setPosition(position - 1);\n }\n }", "public boolean hasPrevious() {\n return getPage() > 0;\n }", "protected Component createPreviousButton() {\n/* 65 */ JButton b = new SpecialUIButton(new LiquidSpinnerButtonUI(5));\n/* 66 */ b.addActionListener(previousButtonHandler);\n/* 67 */ b.addMouseListener(previousButtonHandler);\n/* 68 */ return b;\n/* */ }", "@Override\r\n\tpublic void onBackPressed()\r\n\t{\r\n\t\tif (flipper.getDisplayedChild() != 0)\r\n\t\t{\r\n\t\t\tflipper.showPrevious();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.onBackPressed();\r\n\t\t}\r\n\t}", "public Content getNavLinkPrevious() {\n Content li;\n if (prev != null) {\n Content prevLink = getLink(new LinkInfoImpl(configuration,\n LinkInfoImpl.Kind.CLASS, prev)\n .label(prevclassLabel).strong(true));\n li = HtmlTree.LI(prevLink);\n }\n else\n li = HtmlTree.LI(prevclassLabel);\n return li;\n }", "public boolean isBeforeImage()\n\t{\n\t\treturn beforeImage;\n\t}", "@Override\n public void setNormal()\n {\n setImage(\"Minus.png\");\n }", "@Override\n public void onPageSelected(int position) {\n if (position == 0 || position == layouts.size()-1) {\n btnPrevious.setVisibility(View.GONE);\n } else {\n btnPrevious.setVisibility(View.VISIBLE);\n }\n }", "public NinePatch getButtonArrow_normal()\r\n\t{\r\n\t\treturn getRaw(IMGS_ROOT+\"/button_arrow.9.png\");\r\n\t}", "public void skipToPrevious() {\n try {\n mSessionBinder.previous(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling previous.\", e);\n }\n }", "public void setBeforeImage(boolean beforeImage)\n\t{\n\t\tthis.beforeImage = beforeImage;\n\t}", "@Override\r\n\t\tpublic boolean hasPrevious() {\n\t\t\treturn false;\r\n\t\t}", "public static void previous() {\n\t\tsendMessage(PREVIOUS_COMMAND);\n\t}", "protected Component createPreviousButton() {\n JButton b = new BasicArrowButton(SwingConstants.SOUTH);\n b.addActionListener(previousButtonHandler);\n b.addMouseListener(previousButtonHandler);\n return b; }", "public void Prev();", "@Override\n public void onSkipPressed() {\n setCurrentSlide(4);\n }", "public boolean hasPrevious()\n {\n // TODO: implement this method\n return false;\n }", "public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }", "public boolean prevPageNumber() {\n if (pageNumber == 1) {\n this.errorMessage = \"Error: already at start. \";\n return false;\n }\n this.errorMessage = \"\";\n this.pageNumber--;\n return true;\n }", "public int previousIndex() {\r\n throw new UnsupportedOperationException();\r\n }", "Object previous();", "void disableAutomaticHeaderImage();", "public boolean hasPrevious() {\n\t\t\t\treturn false;\r\n\t\t\t}", "@Override\n\tpublic String getImageURL() {\n\t\treturn \"\";\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\ttry {\n\t\t\tif(imageManager != null)\n\t\t\t\timageManager.interrupThread();\n\t\t}catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\tsuper.onBackPressed();\n\t}", "public JButton getBtnBack(){\n\t\treturn btnBack;\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPage();", "private JButton getBtnBack() {\r\n\t\tif (btnBack == null) {\r\n\t\t\tbtnBack = new JButton();\r\n\t\t\tbtnBack.setText(\"<\");\r\n\t\t\tbtnBack.setToolTipText(\"Back\");\r\n\t\t\tbtnBack.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tif(historyIndex > 0) {\r\n\t\t\t\t\t\thistoryIndex --;\r\n\t\t\t\t\t\tgoTo(history.get(historyIndex), HistoryManagement.NAVIGATE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn btnBack;\r\n\t}", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "private void restorePreviousState() {\n\n\t\tif (StoreAnalysisStateApplication.question1Answered) {\n\t\t\tfirstImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question2Answered) {\n\t\t\tsecondImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question3Answered) {\n\t\t\tthirdImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.stageCleared) {\n\t\t\tfirstImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreDesignStateApplication.stageCleared) {\n\t\t\tsecondImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.voicereadingenabled);\n\t\t}\n\n\t\tif (StoreImplementationStateApplication.stageCleared) {\n\t\t\tthirdImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.microphonenabled);\n\t\t}\n\n\t}", "public SlideNode getPrev() {\n\t\treturn prev;\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFastForward();", "public void setBackArrowIcon() {\n Log.i(tag, \"setBackArrowIcon\");\n this.actionBarDrawerToggle.setHomeAsUpIndicator(this.chevronIcon);\n this.settingsButton.setVisibility(4);\n }", "private void previousButtonMouseClicked(java.awt.event.MouseEvent evt) {\n if(previousButton.isEnabled() == false || checkUpdateInventoryError() == true) return;\n recordChanged();\n current --;\n displayCurrentStock();\n }", "private void backActionPerformed(ActionEvent e) {\r\n ctr_pres.principal();\r\n setVisible(false);\r\n }", "public PrevPageAbstract getPPAbst(){\r\n\t\treturn ppagea;\r\n\t}", "public byte[] getPageImage()\n {\n return Resources.getImage(Resources.PAGE_IMAGE);\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPage();", "public Layer getPrevLayer() {\r\n\t\treturn this.prevLayer;\r\n\t}", "int goBackSlide(){\n if (this.currentSlide>slides.size()){\n this.currentSlide--;\n }\n return this.currentSlide;\n }", "public void pgr_D_Prev(ActionEvent e) throws Exception\n\t{\n\t\t//#CM5134\n\t\t// Store listbox to the Session\n\t\tSessionDeadStockListRet listbox =\n\t\t\t(SessionDeadStockListRet) this.getSession().getAttribute(\"LISTBOX\");\n\t\tsetList(listbox, \"previous\");\n\t}", "public TeacherPage clickPreviousPageButton() {\n previousPage.click();\n return this;\n }", "private int previousSong() {\n if (playListAdapter != null) {\n playListAdapter.clickPreviousNext(1);\n }\n serviceBound = false;\n player.stopMedia();\n if (currentSong > 0) {\n currentSong--;\n }\n return currentSong;\n }", "@Override\n public void setFocused()\n {\n setImage(\"MinusFocused.png\");\n }", "@Override\n\tpublic Menu previousMenu() {\n\t\treturn prevMenu;\n\t}", "@Override\n public void setPressed()\n {\n setImage(\"MinusPressed.png\");\n }" ]
[ "0.7276841", "0.71718365", "0.71274483", "0.6838176", "0.6705672", "0.664974", "0.6602809", "0.6494813", "0.645071", "0.64355326", "0.6385895", "0.6307286", "0.6298791", "0.62030363", "0.61902785", "0.61283046", "0.61242664", "0.6093056", "0.6073118", "0.60241634", "0.5995815", "0.5972763", "0.5971881", "0.5958977", "0.59576464", "0.5953873", "0.5939034", "0.59173083", "0.5910147", "0.5894319", "0.58687645", "0.578839", "0.5783669", "0.5762833", "0.57574296", "0.5754466", "0.5749213", "0.5746798", "0.5736676", "0.57313347", "0.57310253", "0.57205075", "0.57024103", "0.5682165", "0.5678824", "0.5666297", "0.56565565", "0.56533355", "0.5640975", "0.56346005", "0.56042665", "0.5603164", "0.55746615", "0.5563723", "0.55335224", "0.55320334", "0.5529292", "0.5519388", "0.55189484", "0.5518467", "0.55067885", "0.5506645", "0.54905844", "0.5490464", "0.5482864", "0.54786116", "0.5472531", "0.5458269", "0.54486424", "0.54334587", "0.5424167", "0.5419286", "0.5412652", "0.5406196", "0.53861606", "0.5384233", "0.537134", "0.53706425", "0.5351051", "0.5345378", "0.5335071", "0.5334379", "0.5330669", "0.5328834", "0.5326709", "0.5325309", "0.5302845", "0.52975", "0.52934545", "0.5288796", "0.52886885", "0.5287651", "0.5282365", "0.5280614", "0.52783746", "0.5275583", "0.52702343", "0.52674884", "0.5266418", "0.5262352" ]
0.789305
0
The styles used in this widget.
@Source("SimplePager.css") Style simplePagerStyle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStyles() {\n return getState().styles;\n }", "public String getStyle() {\r\n return style;\r\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "int widgetStyle() {\n return super.widgetStyle() | OS.BS_GROUPBOX | OS.WS_CLIPCHILDREN | OS.WS_CLIPSIBLINGS;\n }", "public String getStyle() {\n\t\treturn style;\n\t}", "Style getStyle();", "public int getStyle() {\n\treturn style;\n }", "public int getStyle() {\r\n\t\treturn style;\r\n\t}", "int widgetStyle() {\n int bits = super.widgetStyle() | OS.WS_CLIPCHILDREN;\n if ((style & SWT.NO_FOCUS) != 0)\n bits |= OS.TCS_FOCUSNEVER;\n if ((style & SWT.BOTTOM) != 0)\n bits |= OS.TCS_BOTTOM;\n return bits | OS.TCS_TABS | OS.TCS_TOOLTIPS;\n }", "public List<HTMLConfigComponent> getStylingList() {\n return stylingList;\n }", "public MarkStyle[] getStyles() {\n return styles_;\n }", "public int getStyle() {\r\n\t\treturn this.style;\r\n\t}", "@Override\n protected String getStyle() {\n return App.getInstance().getThemeCssFileName();\n\n }", "public abstract String getStyle();", "@Override\n public void initStyle() {\n\t// NOTE THAT EACH CLASS SHOULD CORRESPOND TO\n\t// A STYLE CLASS SPECIFIED IN THIS APPLICATION'S\n\t// CSS FILE\n \n // FOR CHANGING THE ITEMS INSIDE THE EDIT TOOLBAR\n editToolbarPane.getStyleClass().add(CLASS_EDITTOOLBAR_PANE);\n \n mapNameLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n mapName.getStyleClass().add(CLASS_MAPNAME_TEXTFIELD);\n backgroundColorLabel.getStyleClass().add(CLASS_LABEL);\n borderColorLabel.getStyleClass().add(CLASS_LABEL);\n borderThicknessLabel.getStyleClass().add(CLASS_LABEL);\n zoomLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n borderThicknessSlider.getStyleClass().add(CLASS_BORDER_SLIDER);\n mapZoomingSlider.getStyleClass().add(CLASS_ZOOM_SLIDER);\n buttonBox.getStyleClass().add(CLASS_PADDING);\n // FIRST THE WORKSPACE PANE\n workspace.getStyleClass().add(CLASS_BORDERED_PANE);\n }", "public RMTextStyle getStyle()\n {\n return new RMTextStyle(_style);\n }", "private void initStyles() {\n for (int i = 0; i < getChildCount(); i++) {\n initStyle(getChildAt(i));\n }\n }", "public static interface Style extends CssResource {\r\n\r\n\t\t/**\r\n\t\t * Applied to buttons.\r\n\t\t */\r\n\t\tString button();\r\n\r\n\t\t/**\r\n\t\t * Applied to disabled buttons.\r\n\t\t */\r\n\t\tString disabledButton();\r\n\r\n\t\t/**\r\n\t\t * Applied to the details text.\r\n\t\t */\r\n\t\tString pageDetails();\r\n\r\n\t\tString pageDetails2();\r\n\t\t\r\n\t\tString imogPagerLayout();\r\n\t}", "public interface Style extends CssResource {\n\n /**\n * The style for the panel that contains\n * the whole user record\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecord();\n\n /**\n * The style for the name of the user\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String nameLabel();\n\n /**\n * The style for the username of the user\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabel();\n\n /**\n * The style for the user avatar image\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImage();\n\n /**\n * The style for the remove image\n *\n * @author Johannes Gryffenberg <[email protected]>\n * @since 26 Feb 2013\n *\n * @return The name of the compiled style\n */\n String removeImageStyle();\n\n /**\n * The style for the user record when it is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecordSelected();\n\n /**\n * The style for the username when the record is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabelSelected();\n\n /**\n * The style for the avatar when the record is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImageSelected();\n }", "public TextStyle getStyle(\n )\n {return style;}", "public String getPageStyle()\n {\n if (this.pageStyle == null) {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<style type='text/css'>\\n\");\n sb.append(\" a:hover { color:#00CC00; }\\n\");\n sb.append(\" h1 { font-family:Arial; font-size:16pt; white-space:pre; }\\n\");\n sb.append(\" h2 { font-family:Arial; font-size:14pt; white-space:pre; }\\n\");\n sb.append(\" h3 { font-family:Arial; font-size:12pt; white-space:pre; }\\n\");\n sb.append(\" h4 { font-family:Arial; font-size:10pt; white-space:pre; }\\n\");\n sb.append(\" form { margin-top:0px; margin-bottom:0px; }\\n\");\n sb.append(\" body { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" td { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" input { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" input:focus { background-color: #FFFFC9; }\\n\");\n sb.append(\" select { font-size:7pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" select:focus { background-color: #FFFFC9; }\\n\"); \n sb.append(\" textarea { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" textarea:focus { background-color: #FFFFC9; }\\n\"); \n sb.append(\" .\"+CommonServlet.CSS_TEXT_INPUT+\" { border-width:2px; border-style:inset; border-color:#DDDDDD #EEEEEE #EEEEEE #DDDDDD; padding-left:2px; background-color:#FFFFFF; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_TEXT_READONLY+\" { border-width:2px; border-style:inset; border-color:#DDDDDD #EEEEEE #EEEEEE #DDDDDD; padding-left:2px; background-color:#E7E7E7; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_CONTENT_FRAME[1]+\" { padding:5px; width:300px; border-style:double; border-color:#555555; background-color:white; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_CONTENT_MESSAGE+\" { padding-top:5px; font-style:oblique; text-align:center; }\\n\");\n sb.append(\"</style>\\n\");\n this.pageStyle = sb.toString();\n } \n return this.pageStyle;\n }", "@Override\n public String getCSSStyle() {\n return null;\n }", "public String getStyle() {\r\n if (style != null) {\r\n return style;\r\n }\r\n ValueBinding vb = getValueBinding(\"style\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) : null;\r\n }", "public void getStyles() {\n\t\tvisit(mElement);\n\t}", "public int size(){\n\t\treturn styles.size();\n\t}", "public String getCurrentStyle() {\n modifyStyleIfRequested();\n return currentStyle;\n }", "public String getColorStyle() {\n return colorStyle;\n }", "UiStyle getUiStyle();", "public ComboBoxWrapper getParseStyle() {\r\n return new ComboBoxWrapper() {\r\n public Object getCurrentObject() {\r\n return parseStyle;\r\n }\r\n\r\n public Object[] getObjects() {\r\n return ParseStyle.values();\r\n }\r\n };\r\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getStyle() != null)\n sb.append(\"Style: \").append(getStyle());\n sb.append(\"}\");\n return sb.toString();\n }", "final public String getStyleClass()\n {\n return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));\n }", "public final String getStyleAttribute() {\n return getAttributeValue(\"style\");\n }", "public interface Style extends CssResource {\n\t\t/**\n\t\t * Returns tabTyle\n\t\t */\n\t\tString tabStyle();\n\t}", "@Override\r\n\tpublic String getStyleName() {\r\n\t\treturn _hSplit.getStyleName();\r\n\t}", "public List<StyleRun> getStyleRuns() {\n return styleRuns;\n }", "private void defaultStyle() {\n\t\t//idField.setStyle(\"\");\n\t\tproductNameField.setStyle(\"\");\n\t\tinvField.setStyle(\"\");\n\t\tpriceField.setStyle(\"\");\n\t\tmaxField.setStyle(\"\");\n\t\tminField.setStyle(\"\");\n\t}", "public void style() {\n\n\t\tfinal ArrayList<String> cssClasses = new ArrayList<>();\n\t\tif (!this.styles.isEmpty()) {\n\t\t\tthis.styles.forEach(s -> {\n\t\t\t\tcssClasses.add(s.getCss());\n\t\t\t});\n\t\t}\n\n\t\t// replace the cell styles with the new set\n\t\tthis.add(AttributeModifier.replace(\"class\", StringUtils.join(cssClasses, \" \")));\n\t}", "private Style getStyle(InstanceWaypoint context) {\n \t\tStyleService ss = (StyleService) PlatformUI.getWorkbench().getService(StyleService.class);\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\t\n \t\tInstanceReference ref = context.getValue();\n \t\tInstance instance = is.getInstance(ref);\n \t\t\n \t\treturn ss.getStyle(instance.getDefinition(), ref.getDataSet());\n \t}", "@objid (\"617db239-55b6-11e2-877f-002564c97630\")\n @Override\n public List<StyleKey> getStyleKeys() {\n return Collections.emptyList();\n }", "public String getStyleName() {\r\n return getAttributeAsString(\"styleName\");\r\n }", "public interface StyleObject {\n /**\n * <p>\n * Returns height of the style object.\n * </p>\n *\n * @return height of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getHeight();\n\n /**\n * <p>\n * Returns width of the style object.\n * </p>\n *\n * @return width of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getWidth();\n\n /**\n * <p>\n * Returns x coordinate of the style object.\n * </p>\n *\n * @return x coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getX();\n\n /**\n * <p>\n * Returns y coordinate of the style object.\n * </p>\n *\n * @return y coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public double getY();\n\n /**\n * <p>\n * Returns font name of the style object.\n * </p>\n *\n * @return font name of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFontName();\n\n /**\n * <p>\n * Returns font size of the style object.\n * </p>\n *\n * @return font size of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public int getFontSize();\n\n /**\n * <p>\n * Returns fill color of the style object.\n * </p>\n *\n * @return fill color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFillColor();\n\n /**\n * <p>\n * Returns outline color of the style object.\n * </p>\n *\n * @return outline color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getOutlineColor();\n\n /**\n * <p>\n * Returns text color of the style object.\n * </p>\n *\n * @return text color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getTextColor();\n\n /**\n * <p>\n * Sets the style panel.\n * </p>\n *\n * @param stylePanel stylePanel where this object attached, can be null\n */\n public void setStylePanel(StylePanel stylePanel);\n\n /**\n * <p>\n * Gets the style panel.\n * </p>\n *\n * @return stylePanel where this object is attached, null if this object is not attached\n */\n public StylePanel getStylePanel();\n}", "public mxStyleSheet getTextStyle()\n\t{\n\t\treturn textStyle;\n\t}", "public GridBagPanel style(String... styles)\n {\n myStyleQueue.clear();\n for (String style : styles)\n {\n myStyleQueue.add(style);\n }\n useNextStyle();\n return this;\n }", "STYLE createSTYLE();", "public StylePanel getStylePanel();", "public CodeStyle getStyle(){\r\n\t\treturn m_style;\r\n\t}", "private void readStyles() {\n table.clearSelection();\n\n styles.getReadWriteLock().writeLock().lock();\n styles.clear();\n if (styleDir.getText().length() > 0) {\n addStyles(styleDir.getText(), true);\n }\n styles.getReadWriteLock().writeLock().unlock();\n\n selectLastUsed();\n }", "public interface WidgetColors {\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_ENCLOSURE_BG = new Color(40, 40, 40);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_BG = new Color(60, 60, 60);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_FG = new Color(180, 180, 180);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_SELECTION_BG = new Color(80, 0, 0);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_SELECTION_FG = new Color(240, 240, 240);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_NON_FOCUS = new Color(70, 70, 70);\n\t/**\n\t * \n\t */\n\tpublic static final Color HEADER_COLOR = new Color(20, 20, 20, 230);\n\t/**\n\t * \n\t */\n\tpublic static final Color PROPERTIES_BACKGROUND = Color.LIGHT_GRAY;\n\t/**\n\t * \n\t */\n\tpublic static final Color TEXT_COLOR = new Color(210, 210, 210);\n\n}", "public FontStyle getStyle();", "private void loadStyles() {\n ShowcaseResources.INSTANCE.showcaseCss().ensureInjected();\n RoundedCornersResource.INSTANCE.roundCornersCss().ensureInjected();\n }", "public abstract TC createStyle();", "public NodeStyle getStyle() {\n return style;\n }", "public void updateStyles()\n\t{\n\t\tIterator<StyleEditorTree> trees = this.getStyleTrees();\n\t\tStyleEditorTree current;\n\n\t\twhile (trees.hasNext())\n\t\t{\n\t\t\tcurrent = trees.next();\n\t\t\tcurrent.updateTreeRendering();\n\t\t}\n\t}", "public String getRowUiStyle() {\r\n return uiRowStyle;\r\n }", "private static String getStyleClass(Object obj) { return ((MetaData)obj).getStyle(); }", "public void styleMe(){\n\t}", "private void applyStyle() {\n\t\tmenu.getStyleClass().add(menuColor);\n\t}", "StyleListSettings getListablepageStyle();", "protected static Style getStyle(XMLDataObject xml) {\n\n Style style = new Style();\n style.setName(xml.getString(\"@name\"));\n style.setValue(getCssString(xml));\n\n return style;\n }", "protected ResourceReference getCSS()\n\t{\n\t\treturn CSS;\n\t}", "public long getStyleCount() {\n return ByteUtils.toUnsignedInt(styleCount);\n }", "public String getStyleClass() {\r\n return Util.getQualifiedStyleClass(this,\r\n styleClass, \r\n CSS_DEFAULT.OUTPUT_CHART_DEFAULT_STYLE_CLASS,\r\n \"styleClass\");\r\n }", "Collection<QName> getDefinedStyleNames();", "public final boolean hasStyle() {\n return hasStyle;\n }", "public Style[] getStylesPreOrder()\n\t{\n\t\tArrayList collect = new ArrayList();\n\t\tStyle root = getStyle(\"base\");\n\t\tcollectStyles(root,collect);\n\t\tStyle[] result = new Style[collect.size()];\n\t\tcollect.toArray(result);\n\t\treturn result;\n\t}", "Map<String, String> styles(String group);", "public VisualizationStyle getOldStyle()\r\n {\r\n return myOldStyle;\r\n }", "public TextStyle getTextStyle() {\n return this.textStyle;\n }", "public VisualizationStyle getNewStyle()\r\n {\r\n return myNewStyle;\r\n }", "public List<CssMetaData<? extends Styleable, ?>> getControlCssMetaData() {\n\n return this.getWrappedControl().getControlCssMetaData();\n }", "public ColorStyle getColorStyle(int i){\n\t\tif(i >=0 && i < styles.size()) return styles.get(i);\n\t\treturn null;\n\t}", "@Override\n\tpublic String getStyleClass() {\n\n\t\t// getStateHelper().eval(PropertyKeys.styleClass, null) is called because\n\t\t// super.getStyleClass() may return the styleClass name of the super class.\n\t\tString styleClass = (String) getStateHelper().eval(PropertyKeys.styleClass, null);\n\n\t\treturn com.liferay.faces.util.component.ComponentUtil.concatCssClasses(styleClass, \"showcase-output-source-code\", \"prettyprint linenums\");\n\t}", "public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() {\n\n return ListView.getClassCssMetaData();\n }", "private String getStyleAttribute() {\n StringBuilder sb = new StringBuilder();\n\n styleAttribute.forEach((key, value) -> {\n sb.append(key).append(\":\").append(value).append(\";\");\n });\n\n return sb.toString();\n }", "public native final String style(String name) /*-{\n\t\treturn this.style(name);\n\t}-*/;", "private void appearance()\r\n\t\t{\n\t\tgridLayout.setHgap(5);\r\n\t\tgridLayout.setVgap(5);\r\n\r\n\t\t//set the padding + external border with title inside the box\r\n\t\tBorder lineBorder = BorderFactory.createLineBorder(Color.BLACK);\r\n\t\tBorder outsideBorder = BorderFactory.createTitledBorder(lineBorder, title, TitledBorder.CENTER, TitledBorder.TOP);\r\n\t\tBorder marginBorder = BorderFactory.createEmptyBorder(5, 5, 5, 5);\r\n\t\tthis.setBorder(BorderFactory.createCompoundBorder(outsideBorder, marginBorder));\r\n\r\n\t\t//set initial value to builder\r\n\t\tdiceBuilder.setInterval(min, max);\r\n\t\t}", "public HSSFCellStyle getStyle(HSSFWorkbook workbook) {\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\t// font.setFontHeightInPoints((short)10);\r\n\t\t// Bold font\r\n\t\t// font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}", "public void styleforOne() {\r\n\t\t\r\n\r\n\t\tsuper.styleforOne();\r\n\t\t\r\n\t}", "public CSGStyle(AppTemplate initApp) {\r\n // KEEP THIS FOR LATER\r\n app = initApp;\r\n\r\n // LET'S USE THE DEFAULT STYLESHEET SETUP\r\n super.initStylesheet(app);\r\n\r\n // INIT THE STYLE FOR THE FILE TOOLBAR\r\n app.getGUI().initFileToolbarStyle();\r\n\r\n // AND NOW OUR WORKSPACE STYLE\r\n initTAWorkspaceStyle();\r\n }", "public abstract BossStyle getStyle();", "public String getStyleNew() {\n return (String) getAttributeInternal(STYLENEW);\n }", "public StringItemStyle getStringStyle() {\r\n\t\treturn stringStyle;\r\n\t}", "public void updateGrepStyle()\n\t{\n\t\tgrepStyle.setName(textName.getText());\n\t\tgrepStyle.setBold(cbBold.getSelection());\n\t\tgrepStyle.setItalic(cbItalic.getSelection());\n\t\tgrepStyle.setForeground(cpForeground.getEffectiveColor());\n\t\tgrepStyle.setBackground(cpBackground.getEffectiveColor());\n\t\tgrepStyle.setUnderline(cpUnderline.isChecked());\n\t\tgrepStyle.setUnderlineColor(cpUnderline.getColor()); \n\t\tgrepStyle.setStrikeout(cpStrikethrough.isChecked());\n\t\tgrepStyle.setStrikeoutColor(cpStrikethrough.getColor());\n\t\tgrepStyle.setBorder(cpBorder.isChecked());\n\t\tgrepStyle.setBorderColor(cpBorder.getColor());\n\t}", "public BoardStyle getChosenStyle() {\n\t\treturn boardStyle;\n\t}", "public StyleId getStyleId ();", "@StyleDefaults(ELEMENT_ID)\n public static void initializeDefaultStyles(Styles styles, Attributes attrs) {\n styles.getSelector(meid, null).set(\"setReadfieldPreferredWidth\", 50, false);\n styles.getSelector(meid, null).set(\"setHeadlineHAlignment\", HAlignment.Center, false);\n styles.getSelector(meid, null).set(\"setReadfieldimagewidth\", 0f, false);\n styles.getSelector(meid, null).set(\"setReadfieldimageheight\", 0f, false);\n }", "public int getCellStyle() {\n if (cellStyle != null) {\n return cellStyle;\n }\n setCellStyle(getCellStyle(clazz));\n return cellStyle;\n }", "public void setStyle(String st){\n style = st;\n }", "protected Stylesheet stylesheet () {\n return SimpleStyles.newSheet();\n }", "@Source(\"SearchBoxUserRecord.css\")\n Style searchBoxUserRecordStyle();", "public SimpleStyle() {\n\t\t// set default values\n\t\tthis.foregroundColor = -1;\n\t\t// others are null: VM DONE\n\t}", "public void updateStyle()\n {\n this.textOutput.setForeground(new Color(null, ShellPreference.OUTPUT_COLOR_INPUT.getRGB()));\n this.textOutput.setBackground(new Color(null, ShellPreference.OUTPUT_BACKGROUND.getRGB()));\n this.textOutput.setFont(new Font(null, ShellPreference.OUTPUT_FONT.getFontData()));\n this.colorOuput = new Color(null, ShellPreference.OUTPUT_COLOR_OUTPUT.getRGB());\n this.colorError = new Color(null, ShellPreference.OUTPUT_COLOR_ERROR.getRGB());\n\n this.textInput.setForeground(new Color(null, ShellPreference.INPUT_COLOR.getRGB()));\n this.textInput.setBackground(new Color(null, ShellPreference.INPUT_BACKGROUND.getRGB()));\n this.textInput.setFont(new Font(null, ShellPreference.INPUT_FONT.getFontData()));\n\n this.historyMax = ShellPreference.MAX_HISTORY.getInt();\n }", "private static String getStyleSheet() {\n\t\tif (fgStyleSheet == null)\n\t\t\tfgStyleSheet= loadStyleSheet();\n\t\tString css= fgStyleSheet;\n\t\tif (css != null) {\n\t\t\tFontData fontData= JFaceResources.getFontRegistry().getFontData(PreferenceConstants.APPEARANCE_JAVADOC_FONT)[0];\n\t\t\tcss= HTMLPrinter.convertTopLevelFont(css, fontData);\n\t\t}\n\n\t\treturn css;\n\t}", "public void stylePlanShoppingListPane(){\n InterfaceStyling.setHighlightStyling(shoppingList, plannerColor, defaultColor);\n labelShoppingList.setFont(InterfaceStyling.titleFont);\n InterfaceStyling.buttonStyle(btnClearShoppingList, plannerColor, plannerColorDark);\n InterfaceStyling.buttonStyle(btnExportShopping, plannerColor, plannerColorDark);\n\n labelWarningShoppingList.setFont(InterfaceStyling.textFieldFont);\n labelWarningShoppingList.setTextFill(Color.valueOf(warningColor));\n labelWarningShoppingList.setWrapText(true);\n labelGeneratedDateTime.setFont(InterfaceStyling.titleFontNonBold);\n }", "private static StyleBuilder getHeaderStyle(ExportData metaData){\n \n /*pour la police des entàtes de HARVESTING*/\n if(metaData.getTitle().equals(ITitle.HARVESTING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de SERVICING*/\n if(metaData.getTitle().equals(ITitle.SERVICING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de FERTILIZATION*/\n if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de CONTROL_PHYTO*/\n if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }else{\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n }\n \n }", "public String getButtonFontStyle() {\r\n\t\tif (_saveButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _saveButton.getButtonFontStyle();\r\n\t}", "public void stylePlanWeeklyPlanner(){\n //title setup\n textBreakfastTitle.setFill(Color.valueOf(breakfastColor));\n textLunchTitle.setFill(Color.valueOf(lunchColor));\n textDinnerTitle.setFill(Color.valueOf(dinnerColor));\n textTotalNutrition.setFill(Color.valueOf(plannerColor));\n textBreakfastTitle.setFont(InterfaceStyling.titleFont);\n textLunchTitle.setFont(InterfaceStyling.titleFont);\n textDinnerTitle.setFont(InterfaceStyling.titleFont);\n textTotalNutrition.setFont(InterfaceStyling.titleFont);\n cupboardCheckBox.setFont(InterfaceStyling.systemFont);\n\n //style day title\n textDay.setFont(InterfaceStyling.titleFont);\n\n //color dividing lines\n lineBreakfast.setStroke(Color.valueOf(breakfastColor));\n lineLunch.setStroke(Color.valueOf(lunchColor));\n lineDinner.setStroke(Color.valueOf(dinnerColor));\n lineTotal.setStroke(Color.valueOf(plannerColor));\n\n //style the combo boxs\n InterfaceStyling.setHighlightStyling(breakfastCombo, breakfastColor, defaultColor);\n InterfaceStyling.setHighlightStyling(lunchCombo, lunchColor, defaultColor);\n InterfaceStyling.setHighlightStyling(dinnerCombo, dinnerColor, defaultColor);\n\n //style buttons\n InterfaceStyling.buttonStyle(btnPlanSaveBreakfast, breakfastColor, breakfastColorLight);\n InterfaceStyling.buttonStyle(btnPlanSaveLunch, lunchColor, lunchColorLight);\n InterfaceStyling.buttonStyle(btnPlanSaveDinner, dinnerColor, dinnerColorLight);\n InterfaceStyling.buttonStyle(btnGenerateShoppingList, plannerColor, plannerColorDark);\n InterfaceStyling.buttonStyle(btnClearPlanner, plannerColor, plannerColorDark);\n\n //style the list\n InterfaceStyling.setHighlightStyling(weekList, plannerColor, defaultColor);\n }", "public void synchronizeStyles()\n\t{\n\t\tArrayList<Style> styles = this.guiController.getStyles();\n\t\tArrayList<Style> toRemove = new ArrayList<Style>();\n\n\t\tStyle style;\n\t\tStyleEditorTree tree;\n\n\t\t// Check to see if all the styles are in the map:\n\t\tfor (int i = 0; i < styles.size(); i++)\n\t\t{\n\t\t\tstyle = styles.get(i);\n\n\t\t\t// Does the element exist in the collection? (it should)\n\t\t\t// No:\n\t\t\tif (this.styleTrees.get(style) == null)\n\t\t\t{\n\t\t\t\t// Create it and add to the collection:\n\t\t\t\ttree = new StyleEditorTree(this, style);\n\t\t\t\tthis.styleTrees.put(style, tree);\n\t\t\t}\n\t\t}\n\n\t\t// Check to see if there are no left-over styles in the collection (the\n\t\t// reverse question):\n\t\tfor (Iterator<Style> keys = this.styleTrees.keySet().iterator(); keys.hasNext();)\n\t\t{\n\t\t\tstyle = keys.next();\n\n\t\t\t// Does the element exist in the list of styles?\n\t\t\t// No:\n\t\t\tif (!styles.contains(style))\n\t\t\t{\n\t\t\t\t// Remove the left over:\n\t\t\t\ttoRemove.add(style);\n\t\t\t}\n\t\t}\n\n\t\t// Actually remove the styles:\n\t\t// (This is because you can't modify while you're iterating over it)\n\t\tfor (int i = 0; i < toRemove.size(); i++)\n\t\t{\n\t\t\tthis.styleTrees.get(toRemove.get(i)).delete();\n\t\t\tthis.styleTrees.remove(toRemove.get(i));\n\t\t}\n\n\t\tStyle currentStyle = this.guiController.getCurrentStyle();\n\t\tStyleEditorTree currentTree = this.styleTrees.get(currentStyle);\n\n\t\t// GUI components might not be built when this is called.\n\t\tif (this.built)\n\t\t{\n\t\t\tthis.styleComboBox.update();\n\t\t\tthis.styleComboBox.updateSelection(currentTree);\n\t\t}\n\t}" ]
[ "0.71273875", "0.70216215", "0.69805914", "0.69805914", "0.69805914", "0.69805914", "0.6953023", "0.6830275", "0.67976755", "0.67884946", "0.6773946", "0.67511237", "0.67186636", "0.66717154", "0.66355747", "0.658587", "0.6523459", "0.65123", "0.6489014", "0.6412365", "0.64072245", "0.6402296", "0.6397441", "0.6391493", "0.6377407", "0.63554543", "0.63352114", "0.6259151", "0.62256545", "0.6156201", "0.61323625", "0.61253625", "0.61231", "0.60989565", "0.60898006", "0.6084692", "0.6059072", "0.60587454", "0.60252964", "0.6008412", "0.59963506", "0.5993968", "0.5942649", "0.5927462", "0.59201854", "0.5896813", "0.589588", "0.58901393", "0.588494", "0.5873051", "0.5870658", "0.58679414", "0.58600813", "0.5856734", "0.57863724", "0.57844365", "0.57737845", "0.5770749", "0.5768104", "0.5753936", "0.5740722", "0.5733656", "0.5731633", "0.5728721", "0.5721669", "0.5703459", "0.5698916", "0.5685041", "0.56690717", "0.5668228", "0.56667477", "0.56305873", "0.56236786", "0.56134343", "0.5612167", "0.5605792", "0.55949545", "0.5590525", "0.55866444", "0.5583852", "0.5580894", "0.5572978", "0.5518368", "0.5488587", "0.5482103", "0.54649425", "0.54611826", "0.5461025", "0.54504895", "0.5449666", "0.54488534", "0.5446869", "0.5444391", "0.54409355", "0.5438456", "0.543037", "0.541565", "0.5405314", "0.54047847", "0.53989697", "0.5388178" ]
0.0
-1
Styles used by this widget.
public static interface Style extends CssResource { /** * Applied to buttons. */ String button(); /** * Applied to disabled buttons. */ String disabledButton(); /** * Applied to the details text. */ String pageDetails(); String pageDetails2(); String imogPagerLayout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int widgetStyle() {\n return super.widgetStyle() | OS.BS_GROUPBOX | OS.WS_CLIPCHILDREN | OS.WS_CLIPSIBLINGS;\n }", "@Override\n public void initStyle() {\n\t// NOTE THAT EACH CLASS SHOULD CORRESPOND TO\n\t// A STYLE CLASS SPECIFIED IN THIS APPLICATION'S\n\t// CSS FILE\n \n // FOR CHANGING THE ITEMS INSIDE THE EDIT TOOLBAR\n editToolbarPane.getStyleClass().add(CLASS_EDITTOOLBAR_PANE);\n \n mapNameLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n mapName.getStyleClass().add(CLASS_MAPNAME_TEXTFIELD);\n backgroundColorLabel.getStyleClass().add(CLASS_LABEL);\n borderColorLabel.getStyleClass().add(CLASS_LABEL);\n borderThicknessLabel.getStyleClass().add(CLASS_LABEL);\n zoomLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n borderThicknessSlider.getStyleClass().add(CLASS_BORDER_SLIDER);\n mapZoomingSlider.getStyleClass().add(CLASS_ZOOM_SLIDER);\n buttonBox.getStyleClass().add(CLASS_PADDING);\n // FIRST THE WORKSPACE PANE\n workspace.getStyleClass().add(CLASS_BORDERED_PANE);\n }", "int widgetStyle() {\n int bits = super.widgetStyle() | OS.WS_CLIPCHILDREN;\n if ((style & SWT.NO_FOCUS) != 0)\n bits |= OS.TCS_FOCUSNEVER;\n if ((style & SWT.BOTTOM) != 0)\n bits |= OS.TCS_BOTTOM;\n return bits | OS.TCS_TABS | OS.TCS_TOOLTIPS;\n }", "private void defaultStyle() {\n\t\t//idField.setStyle(\"\");\n\t\tproductNameField.setStyle(\"\");\n\t\tinvField.setStyle(\"\");\n\t\tpriceField.setStyle(\"\");\n\t\tmaxField.setStyle(\"\");\n\t\tminField.setStyle(\"\");\n\t}", "public interface Style extends CssResource {\n\n /**\n * The style for the panel that contains\n * the whole user record\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecord();\n\n /**\n * The style for the name of the user\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String nameLabel();\n\n /**\n * The style for the username of the user\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabel();\n\n /**\n * The style for the user avatar image\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImage();\n\n /**\n * The style for the remove image\n *\n * @author Johannes Gryffenberg <[email protected]>\n * @since 26 Feb 2013\n *\n * @return The name of the compiled style\n */\n String removeImageStyle();\n\n /**\n * The style for the user record when it is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecordSelected();\n\n /**\n * The style for the username when the record is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabelSelected();\n\n /**\n * The style for the avatar when the record is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImageSelected();\n }", "private void initStyles() {\n for (int i = 0; i < getChildCount(); i++) {\n initStyle(getChildAt(i));\n }\n }", "private void appearance()\r\n\t\t{\n\t\tgridLayout.setHgap(5);\r\n\t\tgridLayout.setVgap(5);\r\n\r\n\t\t//set the padding + external border with title inside the box\r\n\t\tBorder lineBorder = BorderFactory.createLineBorder(Color.BLACK);\r\n\t\tBorder outsideBorder = BorderFactory.createTitledBorder(lineBorder, title, TitledBorder.CENTER, TitledBorder.TOP);\r\n\t\tBorder marginBorder = BorderFactory.createEmptyBorder(5, 5, 5, 5);\r\n\t\tthis.setBorder(BorderFactory.createCompoundBorder(outsideBorder, marginBorder));\r\n\r\n\t\t//set initial value to builder\r\n\t\tdiceBuilder.setInterval(min, max);\r\n\t\t}", "public void styleforOne() {\r\n\t\t\r\n\r\n\t\tsuper.styleforOne();\r\n\t\t\r\n\t}", "@Override\n protected String getStyle() {\n return App.getInstance().getThemeCssFileName();\n\n }", "UiStyle getUiStyle();", "Style getStyle();", "public String getStyle() {\r\n return style;\r\n }", "public void style() {\n\n\t\tfinal ArrayList<String> cssClasses = new ArrayList<>();\n\t\tif (!this.styles.isEmpty()) {\n\t\t\tthis.styles.forEach(s -> {\n\t\t\t\tcssClasses.add(s.getCss());\n\t\t\t});\n\t\t}\n\n\t\t// replace the cell styles with the new set\n\t\tthis.add(AttributeModifier.replace(\"class\", StringUtils.join(cssClasses, \" \")));\n\t}", "public abstract String getStyle();", "public String getStyles() {\n return getState().styles;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public String getStyle() {\n return style;\n }", "public void styleMe(){\n\t}", "public int getStyle() {\n\treturn style;\n }", "public void stylePlanShoppingListPane(){\n InterfaceStyling.setHighlightStyling(shoppingList, plannerColor, defaultColor);\n labelShoppingList.setFont(InterfaceStyling.titleFont);\n InterfaceStyling.buttonStyle(btnClearShoppingList, plannerColor, plannerColorDark);\n InterfaceStyling.buttonStyle(btnExportShopping, plannerColor, plannerColorDark);\n\n labelWarningShoppingList.setFont(InterfaceStyling.textFieldFont);\n labelWarningShoppingList.setTextFill(Color.valueOf(warningColor));\n labelWarningShoppingList.setWrapText(true);\n labelGeneratedDateTime.setFont(InterfaceStyling.titleFontNonBold);\n }", "public void getStyles() {\n\t\tvisit(mElement);\n\t}", "@Override\n public String getCSSStyle() {\n return null;\n }", "private void setReleasedStyle() {\n this.setStyle(BUTTON_FREE);\n this.setPrefHeight(47);\n this.setLayoutY(getLayoutY() - 4);\n }", "@Override\n\tprotected void setValidityStyle() {\n\t\tif (parameter.getStatus() == ParameterStatus.INVALID) {\n\t\t\tcheckBox.setStyle(Constants.BASE_CHECKBOX_STYLE + Constants.INVALID_PARAMETER_STYLE);\n\t\t\tcheckBox.setTooltip(tooltip);\n\t\t\ttooltip.setText(parameter.getStatus().getDetails());\n\t\t} else if (parameter.getStatus() == ParameterStatus.WARNING \n\t\t\t\t|| parameter.getStatus() == ParameterStatus.WARNING_RESET) {\n\t\t\tcheckBox.setStyle(Constants.BASE_CHECKBOX_STYLE + Constants.WARNING_PARAMETER_STYLE);\n\t\t\tcheckBox.setTooltip(tooltip);\n\t\t\ttooltip.setText(parameter.getStatus().getDetails());\n\t\t} else {\n\t\t\tcheckBox.setStyle(Constants.BASE_CHECKBOX_STYLE + Constants.VALID_PARAMETER_STYLE);\n\t\t\tcheckBox.setTooltip(null);\n\t\t}\n\t}", "public int getStyle() {\r\n\t\treturn style;\r\n\t}", "public void stylePlanWeeklyPlanner(){\n //title setup\n textBreakfastTitle.setFill(Color.valueOf(breakfastColor));\n textLunchTitle.setFill(Color.valueOf(lunchColor));\n textDinnerTitle.setFill(Color.valueOf(dinnerColor));\n textTotalNutrition.setFill(Color.valueOf(plannerColor));\n textBreakfastTitle.setFont(InterfaceStyling.titleFont);\n textLunchTitle.setFont(InterfaceStyling.titleFont);\n textDinnerTitle.setFont(InterfaceStyling.titleFont);\n textTotalNutrition.setFont(InterfaceStyling.titleFont);\n cupboardCheckBox.setFont(InterfaceStyling.systemFont);\n\n //style day title\n textDay.setFont(InterfaceStyling.titleFont);\n\n //color dividing lines\n lineBreakfast.setStroke(Color.valueOf(breakfastColor));\n lineLunch.setStroke(Color.valueOf(lunchColor));\n lineDinner.setStroke(Color.valueOf(dinnerColor));\n lineTotal.setStroke(Color.valueOf(plannerColor));\n\n //style the combo boxs\n InterfaceStyling.setHighlightStyling(breakfastCombo, breakfastColor, defaultColor);\n InterfaceStyling.setHighlightStyling(lunchCombo, lunchColor, defaultColor);\n InterfaceStyling.setHighlightStyling(dinnerCombo, dinnerColor, defaultColor);\n\n //style buttons\n InterfaceStyling.buttonStyle(btnPlanSaveBreakfast, breakfastColor, breakfastColorLight);\n InterfaceStyling.buttonStyle(btnPlanSaveLunch, lunchColor, lunchColorLight);\n InterfaceStyling.buttonStyle(btnPlanSaveDinner, dinnerColor, dinnerColorLight);\n InterfaceStyling.buttonStyle(btnGenerateShoppingList, plannerColor, plannerColorDark);\n InterfaceStyling.buttonStyle(btnClearPlanner, plannerColor, plannerColorDark);\n\n //style the list\n InterfaceStyling.setHighlightStyling(weekList, plannerColor, defaultColor);\n }", "private void initDesign(){\n\t\tlabel.setLayoutX(xPos);\n\t\tlabel.setLayoutY(yPos);\n\t\tlabel.setStyle(\"-fx-border-color: green\");\n\t}", "public int getStyle() {\r\n\t\treturn this.style;\r\n\t}", "public String getStyle() {\n\t\treturn style;\n\t}", "public interface WidgetColors {\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_ENCLOSURE_BG = new Color(40, 40, 40);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_BG = new Color(60, 60, 60);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_FG = new Color(180, 180, 180);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_SELECTION_BG = new Color(80, 0, 0);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_SELECTION_FG = new Color(240, 240, 240);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_NON_FOCUS = new Color(70, 70, 70);\n\t/**\n\t * \n\t */\n\tpublic static final Color HEADER_COLOR = new Color(20, 20, 20, 230);\n\t/**\n\t * \n\t */\n\tpublic static final Color PROPERTIES_BACKGROUND = Color.LIGHT_GRAY;\n\t/**\n\t * \n\t */\n\tpublic static final Color TEXT_COLOR = new Color(210, 210, 210);\n\n}", "@Source(\"SearchBoxUserRecord.css\")\n Style searchBoxUserRecordStyle();", "public void styleMealAddPane(){\n //set up the styling for the various nodes in the pane\n InterfaceStyling.setHighlightStyling(mealNameField, mealColor, defaultColor);\n InterfaceStyling.setHighlightStyling(searchIngredient, mealColor, defaultColor);\n InterfaceStyling.setHighlightStyling(methodField, mealColor, defaultColor);\n InterfaceStyling.setHighlightStyling(ingredientsList, mealColor, defaultColor);\n InterfaceStyling.setHighlightStyling(ingredientsForMeal, mealColor, defaultColor);\n InterfaceStyling.setHighlightStyling(ingredientQuantityInput, mealColor, defaultColor);\n InterfaceStyling.setHighlightStyling(mealsInputQuantityNumber, mealColor, defaultColor);\n InterfaceStyling.buttonStyle(btnAddIngredToMeal, mealColor, mealColorDark);\n InterfaceStyling.buttonStyle(btnRemoveIngredFromMeal, mealColor, mealColorDark);\n InterfaceStyling.buttonStyle(btnSaveMeal, mealColor, mealColorDark);\n methodField.setWrapText(true);\n\n //Style the labels and the text in this pane\n for (Node n : mealAddSubPane.getChildren()) {\n if (n.getClass().isInstance(new Label())) {\n ((Label) n).setFont(InterfaceStyling.titleFontNonBold);\n ((Label) n).setTextFill(Paint.valueOf(defaultTextColor));\n }\n }\n\n labelQuantityNumber.setFont(InterfaceStyling.systemFont);\n labelQuantityNumber.setTextFill(Paint.valueOf(defaultColor));\n }", "public interface Style extends CssResource {\n\t\t/**\n\t\t * Returns tabTyle\n\t\t */\n\t\tString tabStyle();\n\t}", "public interface StyleObject {\n /**\n * <p>\n * Returns height of the style object.\n * </p>\n *\n * @return height of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getHeight();\n\n /**\n * <p>\n * Returns width of the style object.\n * </p>\n *\n * @return width of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getWidth();\n\n /**\n * <p>\n * Returns x coordinate of the style object.\n * </p>\n *\n * @return x coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getX();\n\n /**\n * <p>\n * Returns y coordinate of the style object.\n * </p>\n *\n * @return y coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public double getY();\n\n /**\n * <p>\n * Returns font name of the style object.\n * </p>\n *\n * @return font name of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFontName();\n\n /**\n * <p>\n * Returns font size of the style object.\n * </p>\n *\n * @return font size of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public int getFontSize();\n\n /**\n * <p>\n * Returns fill color of the style object.\n * </p>\n *\n * @return fill color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFillColor();\n\n /**\n * <p>\n * Returns outline color of the style object.\n * </p>\n *\n * @return outline color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getOutlineColor();\n\n /**\n * <p>\n * Returns text color of the style object.\n * </p>\n *\n * @return text color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getTextColor();\n\n /**\n * <p>\n * Sets the style panel.\n * </p>\n *\n * @param stylePanel stylePanel where this object attached, can be null\n */\n public void setStylePanel(StylePanel stylePanel);\n\n /**\n * <p>\n * Gets the style panel.\n * </p>\n *\n * @return stylePanel where this object is attached, null if this object is not attached\n */\n public StylePanel getStylePanel();\n}", "public String getPageStyle()\n {\n if (this.pageStyle == null) {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<style type='text/css'>\\n\");\n sb.append(\" a:hover { color:#00CC00; }\\n\");\n sb.append(\" h1 { font-family:Arial; font-size:16pt; white-space:pre; }\\n\");\n sb.append(\" h2 { font-family:Arial; font-size:14pt; white-space:pre; }\\n\");\n sb.append(\" h3 { font-family:Arial; font-size:12pt; white-space:pre; }\\n\");\n sb.append(\" h4 { font-family:Arial; font-size:10pt; white-space:pre; }\\n\");\n sb.append(\" form { margin-top:0px; margin-bottom:0px; }\\n\");\n sb.append(\" body { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" td { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" input { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" input:focus { background-color: #FFFFC9; }\\n\");\n sb.append(\" select { font-size:7pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" select:focus { background-color: #FFFFC9; }\\n\"); \n sb.append(\" textarea { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" textarea:focus { background-color: #FFFFC9; }\\n\"); \n sb.append(\" .\"+CommonServlet.CSS_TEXT_INPUT+\" { border-width:2px; border-style:inset; border-color:#DDDDDD #EEEEEE #EEEEEE #DDDDDD; padding-left:2px; background-color:#FFFFFF; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_TEXT_READONLY+\" { border-width:2px; border-style:inset; border-color:#DDDDDD #EEEEEE #EEEEEE #DDDDDD; padding-left:2px; background-color:#E7E7E7; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_CONTENT_FRAME[1]+\" { padding:5px; width:300px; border-style:double; border-color:#555555; background-color:white; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_CONTENT_MESSAGE+\" { padding-top:5px; font-style:oblique; text-align:center; }\\n\");\n sb.append(\"</style>\\n\");\n this.pageStyle = sb.toString();\n } \n return this.pageStyle;\n }", "private void styleIngredientBrowsePane(){\n //Ingredients Browser / Edit\n InterfaceStyling.setHighlightStyling(ingredCalorieInputBrowse, ingredientColor , defaultColor);\n InterfaceStyling.setHighlightStyling(ingredSugarInputBrowse, ingredientColor , defaultColor);\n InterfaceStyling.setHighlightStyling(ingredProteinInputBrowse, ingredientColor , defaultColor);\n InterfaceStyling.setHighlightStyling(ingredFiberInputBrowse, ingredientColor , defaultColor);\n InterfaceStyling.setHighlightStyling(ingredCarbsInputBrowse, ingredientColor , defaultColor);\n InterfaceStyling.setHighlightStyling(ingredFatInputBrowse, ingredientColor , defaultColor);\n InterfaceStyling.buttonStyle(updateIngredsBtn, ingredientColor, ingredientColorDark);\n InterfaceStyling.toggleButtonStyle(ingredBrowseEditToggle, ingredientColor);\n InterfaceStyling.setHighlightStyling(ingredQuantityNameInputBrowse, ingredientColor, defaultColor);\n InterfaceStyling.setHighlightStyling(ingredQuantityAmountInputBrowse, ingredientColor, defaultColor);\n\n //Style all the labels in the Pane\n for (Node n: IngredientsBrowseSubPane.getChildren()){\n if (n.getClass().isInstance(new Label())){\n ((Label) n).setFont(InterfaceStyling.titleFontNonBold);\n ((Label) n).setTextFill((Paint.valueOf(defaultTextColor)));\n }\n }\n }", "private void initStyles(){\n Shadow shadowEffect = new Shadow();\n shadowEffect.setBlurType(BlurType.GAUSSIAN);\n shadowEffect.setHeight(0);\n shadowEffect.setWidth(5.93);\n shadowEffect.setColor(Color.color(0.5, 0, 1.0));\n openAboutText.setOnMouseEntered(mouseEvent -> openAboutText.setEffect(shadowEffect));//#2f00ff\n openAboutText.setOnMouseExited(mouseEvent -> openAboutText.setEffect(null) );//#9277ff\n\n openSetingsText.setOnMouseEntered(mouseEvent -> {openSetingsText.setEffect(shadowEffect);});\n openSetingsText.setOnMouseExited(mouseEvent -> {openSetingsText.setEffect(null);});\n\n openAlarmsText.setOnMouseEntered(mouseEvent -> {openAlarmsText.setEffect(shadowEffect);});\n openAlarmsText.setOnMouseExited(mouseEvent -> {openAlarmsText.setEffect(null);});\n\n exitText.setOnMouseEntered(mouseEvent ->{\n shadowEffect.setColor(Color.color(1,0,0));\n exitText.setEffect(shadowEffect); });\n exitText.setOnMouseExited(mouseEvent -> {\n shadowEffect.setColor(Color.color(0.5, 0, 1.0));\n exitText.setEffect(null);\n } );\n }", "private FilterBar() {\n\t\t\n\t\tsuper(15);\n\t\tthis.setStyle(\"-fx-background-color: #FFFFFF;\");\n\t\tthis.setPadding(new Insets(25, 25, 25, 25));\n\t\t\n\t\taddNodes();\n\t\taddListeners();\n\t\t\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getStyle() != null)\n sb.append(\"Style: \").append(getStyle());\n sb.append(\"}\");\n return sb.toString();\n }", "public abstract TC createStyle();", "public CSGStyle(AppTemplate initApp) {\r\n // KEEP THIS FOR LATER\r\n app = initApp;\r\n\r\n // LET'S USE THE DEFAULT STYLESHEET SETUP\r\n super.initStylesheet(app);\r\n\r\n // INIT THE STYLE FOR THE FILE TOOLBAR\r\n app.getGUI().initFileToolbarStyle();\r\n\r\n // AND NOW OUR WORKSPACE STYLE\r\n initTAWorkspaceStyle();\r\n }", "private void applyStyle() {\n\t\tmenu.getStyleClass().add(menuColor);\n\t}", "private void loadStyles() {\n ShowcaseResources.INSTANCE.showcaseCss().ensureInjected();\n RoundedCornersResource.INSTANCE.roundCornersCss().ensureInjected();\n }", "private static StyleBuilder getHeaderStyle(ExportData metaData){\n \n /*pour la police des entàtes de HARVESTING*/\n if(metaData.getTitle().equals(ITitle.HARVESTING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de SERVICING*/\n if(metaData.getTitle().equals(ITitle.SERVICING)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de FERTILIZATION*/\n if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }/*pour la police des entetes de CONTROL_PHYTO*/\n if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setFontSize(7)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n\n }else{\n return stl.style().setBorder(stl.pen1Point().setLineColor(Color.BLACK))\n .setPadding(5)\n .setHorizontalAlignment(HorizontalAlignment.CENTER)\n .setVerticalAlignment(VerticalAlignment.MIDDLE)\n .setForegroundColor(Color.WHITE)\n .setBackgroundColor(new Color(60, 91, 31))\n .bold(); \n }\n \n }", "private Result() {\n\t\t\n\t\tsuper(8);\n\t\t\n\t\tthis.setStyle(\"-fx-background-color: #5F9EA0;\");\n\t\tthis.setPadding(new Insets(10, 100, 10, 100));\n\t\tthis.setAlignment(Pos.CENTER);\n\t\t\n\t}", "private void designComponents() \n\t{\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tsetBorder(BorderFactory.createLineBorder(Color.gray));\n\t}", "public void updateStyle()\n {\n this.textOutput.setForeground(new Color(null, ShellPreference.OUTPUT_COLOR_INPUT.getRGB()));\n this.textOutput.setBackground(new Color(null, ShellPreference.OUTPUT_BACKGROUND.getRGB()));\n this.textOutput.setFont(new Font(null, ShellPreference.OUTPUT_FONT.getFontData()));\n this.colorOuput = new Color(null, ShellPreference.OUTPUT_COLOR_OUTPUT.getRGB());\n this.colorError = new Color(null, ShellPreference.OUTPUT_COLOR_ERROR.getRGB());\n\n this.textInput.setForeground(new Color(null, ShellPreference.INPUT_COLOR.getRGB()));\n this.textInput.setBackground(new Color(null, ShellPreference.INPUT_BACKGROUND.getRGB()));\n this.textInput.setFont(new Font(null, ShellPreference.INPUT_FONT.getFontData()));\n\n this.historyMax = ShellPreference.MAX_HISTORY.getInt();\n }", "@Override\r\n\tpublic String getStyleName() {\r\n\t\treturn _hSplit.getStyleName();\r\n\t}", "private void setStyle_ofTransportControls() {\n // Set the enabled style of the next button\n if (thisSong.getTrackNumber() != 1) {\n setStyle_ofPreviousButton(true);\n } else {\n // Disable the previous button if it will be unavailable on the next click\n setStyle_ofPreviousButton(false);\n }\n\n // Set the enabled style of the next button\n if (thisSong.getTrackNumber() != thisAlbum.size()) {\n setStyle_ofNextButton(true);\n } else {\n // Disable the next button if it will be unavailable on the next click\n setStyle_ofNextButton(false);\n }\n }", "public void styleMealBrowsePane() {\n //style the various nodes in the pane\n InterfaceStyling.setHighlightStyling(mealMethod, mealColor, defaultColor);\n InterfaceStyling.setHighlightStyling(mealIngred, mealColor, defaultColor);\n InterfaceStyling.setHighlightStyling(comboMealSelection, mealColor, defaultColor);\n mealMethod.setFont(InterfaceStyling.textFieldFont);\n\n //look through all the labels and style them\n for (Node n : mealBrowseSubPane.getChildren()) {\n if (n.getClass().isInstance(new Label())) {\n ((Label) n).setFont(InterfaceStyling.titleFontNonBold);\n ((Label) n).setTextFill(Paint.valueOf(defaultTextColor));\n\n }\n }\n //style the nutritional information\n browseMealNutritionOne.setFont(InterfaceStyling.largeTextFont);\n browseMealNutritionTwo.setFont(InterfaceStyling.largeTextFont);\n }", "@Override\n\tprotected void getContent() {\n\t\taddStyleName(\"Menu\");\n//\t\tsetMargin(true);\n\t\tsetSpacing(true);\n\t}", "public void setLayout() {\n\t\tpersonenListe.getItems().addAll(deck.getPersonenOrdered());\n\t\tpersonenListe.setValue(\"Täter\");\n\t\twaffenListe.getItems().addAll(deck.getWaffenOrdered());\n\t\twaffenListe.setValue(\"Waffe\");\n\t\t// zimmerListe.getItems().addAll(deck.getZimmerOrdered());\n\t\tzimmerListe.setValue(\"Raum\");\n\n\t\tanklage.setMinSize(80, 120);\n\t\tanklage.setMaxSize(80, 120);\n\t\tanklage.setTextFill(Color.BLACK);\n\t\tanklage.setStyle(\"-fx-background-color: #787878;\");\n\n\t\twurfel.setMinSize(80, 120);\n\t\twurfel.setMaxSize(80, 120);\n\t\twurfel.setTextFill(Color.BLACK);\n\t\twurfel.setStyle(\"-fx-background-color: #787878;\");\n\n\t\tgang.setMinSize(80, 120);\n\t\tgang.setMaxSize(80, 120);\n\t\tgang.setTextFill(Color.BLACK);\n\t\tgang.setStyle(\"-fx-background-color: #787878;\");\n\n\t\ttop = new HBox();\n\t\ttop.setSpacing(1);\n\t\ttop.setAlignment(Pos.CENTER);\n\n\t\tbuttons = new HBox();\n\t\tbuttons.setSpacing(20);\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\tbuttons.getChildren().addAll(anklage, wurfel, gang);\n\n\t\tbottom = new HBox();\n\t\tbottom.setSpacing(150);\n\t\tbottom.setAlignment(Pos.CENTER);\n\t\tbottom.getChildren().addAll(close);\n\n\t\tfenster = new BorderPane();\n\t\tfenster.setStyle(\"-fx-background-image: url('media/ZugFensterResized.png');\");\n\t\tfenster.setTop(top);\n\t\tfenster.setCenter(buttons);\n\t\tfenster.setBottom(bottom);\n\t}", "public ComboBoxWrapper getParseStyle() {\r\n return new ComboBoxWrapper() {\r\n public Object getCurrentObject() {\r\n return parseStyle;\r\n }\r\n\r\n public Object[] getObjects() {\r\n return ParseStyle.values();\r\n }\r\n };\r\n }", "public RMTextStyle getStyle()\n {\n return new RMTextStyle(_style);\n }", "public void updateGrepStyle()\n\t{\n\t\tgrepStyle.setName(textName.getText());\n\t\tgrepStyle.setBold(cbBold.getSelection());\n\t\tgrepStyle.setItalic(cbItalic.getSelection());\n\t\tgrepStyle.setForeground(cpForeground.getEffectiveColor());\n\t\tgrepStyle.setBackground(cpBackground.getEffectiveColor());\n\t\tgrepStyle.setUnderline(cpUnderline.isChecked());\n\t\tgrepStyle.setUnderlineColor(cpUnderline.getColor()); \n\t\tgrepStyle.setStrikeout(cpStrikethrough.isChecked());\n\t\tgrepStyle.setStrikeoutColor(cpStrikethrough.getColor());\n\t\tgrepStyle.setBorder(cpBorder.isChecked());\n\t\tgrepStyle.setBorderColor(cpBorder.getColor());\n\t}", "public void stylePlanCupboard(){\n\n //style the buttons\n InterfaceStyling.buttonStyle(btnAddIngredToCupboard, plannerColor, plannerColorDark);\n InterfaceStyling.buttonStyle(btnRemoveIngredFromCupboard, plannerColor, plannerColorDark);\n InterfaceStyling.buttonStyle(btnClearCupboard, plannerColor,plannerColorDark );\n\n //style the various nodes in the pane\n InterfaceStyling.setHighlightStyling(allIngredientsCupboardPane, plannerColor, defaultColor);\n InterfaceStyling.setHighlightStyling(IngredientsInCupboard, plannerColor, defaultColor);\n InterfaceStyling.setHighlightStyling(searchIngredientCupboard, plannerColor, defaultColor);\n InterfaceStyling.setHighlightStyling(ingredientQuantityInputCupboard, plannerColor, defaultColor);\n InterfaceStyling.setHighlightStyling(cupboardQuantityNumber, plannerColor, defaultColor);\n\n //Style the labels and the text in this pane\n for (Node n : plannerCupboardSubPane.getChildren()) {\n if (n.getClass().isInstance(new Label())) {\n ((Label) n).setFont(InterfaceStyling.titleFontNonBold);\n ((Label) n).setTextFill(Paint.valueOf(defaultTextColor));\n }\n }\n\n labelNumberPlanner.setFont(InterfaceStyling.systemFont);\n labelNumberPlanner.setTextFill(Paint.valueOf(defaultColor));\n\n labelCupboardStores.setFont(InterfaceStyling.titleFont);\n labelCupboardStores.setTextFill(Paint.valueOf(defaultColor));\n }", "STYLE createSTYLE();", "private void customize() {\r\n panel.setSize(new Dimension(width, height));\r\n panel.setLayout(new BorderLayout());\r\n }", "public PropertiesView(){\n\n\t\tbtnDescTemplate = new DescTemplateWidget(this);\n\t\tbtnCalculation = new DescTemplateWidget(this);\n\n\t\ttable.setWidget(0, 0, new Label(LocaleText.get(\"text\")));\n\t\ttable.setWidget(1, 0, new Label(LocaleText.get(\"helpText\")));\n\t\ttable.setWidget(2, 0, new Label(LocaleText.get(\"type\")));\n\t\ttable.setWidget(3, 0, new Label(LocaleText.get(\"binding\")));\n\t\ttable.setWidget(4, 0, new Label(LocaleText.get(\"visible\")));\n\t\ttable.setWidget(5, 0, new Label(LocaleText.get(\"enabled\")));\n\t\ttable.setWidget(6, 0, new Label(LocaleText.get(\"locked\")));\n\t\ttable.setWidget(7, 0, new Label(LocaleText.get(\"required\")));\n\t\ttable.setWidget(8, 0, new Label(LocaleText.get(\"defaultValue\")));\n\t\ttable.setWidget(9, 0, new Label(LocaleText.get(\"calculation\")));\n\t\t\n\t\tlblDescTemplate = new Label(LocaleText.get(\"descriptionTemplate\"));\n\t\ttable.setWidget(10, 0, lblDescTemplate);\n\t\ttable.setWidget(11, 0, new Label(LocaleText.get(\"formKey\")));\n\n\t\ttable.setWidget(0, 1, txtText);\n\t\ttable.setWidget(1, 1, txtHelpText);\n\t\ttable.setWidget(2, 1, cbDataType);\n\t\ttable.setWidget(3, 1, txtBinding);\n\t\ttable.setWidget(4, 1, chkVisible);\n\t\ttable.setWidget(5, 1, chkEnabled);\n\t\ttable.setWidget(6, 1, chkLocked);\n\t\ttable.setWidget(7, 1, chkRequired);\n\t\ttable.setWidget(8, 1, txtDefaultValue);\n\n\t\tHorizontalPanel panel = new HorizontalPanel();\n\t\tpanel.add(txtCalculation);\n\t\tpanel.add(btnCalculation);\n\t\tpanel.setCellWidth(btnCalculation, \"20%\");\n\t\tFormUtil.maximizeWidget(txtCalculation);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(9, 1, panel);\n\n\t\tpanel = new HorizontalPanel();\n\t\tpanel.add(txtDescTemplate);\n\t\tpanel.add(btnDescTemplate);\n\t\tpanel.setCellWidth(btnDescTemplate, \"20%\");\n\t\tFormUtil.maximizeWidget(txtDescTemplate);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(10, 1, panel);\n\t\t\n\t\ttable.setWidget(11, 1, txtFormKey);\n\n\t\ttable.setStyleName(\"cw-FlexTable\");\n\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeText\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeNumber\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDecimal\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDate\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDateTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBoolean\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeMultSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeRepeat\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypePicture\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeVideo\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeAudio\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelectDynamic\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeGPS\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBarcode\"));\n\n\t\tFlexCellFormatter cellFormatter = table.getFlexCellFormatter();\n\t\tcellFormatter.setHorizontalAlignment(15, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\n\t\ttable.setWidth(\"100%\");\n\t\tcellFormatter.setWidth(0, 0, \"20%\");\n\t\t//cellFormatter.setColSpan(0, 0, 2);\n\t\t\n\t\t//cellFormatter.setWidth(9, 0, \"20\"+PurcConstants.UNITS);\n\t\t//cellFormatter.setWidth(9, 1, \"20\"+PurcConstants.UNITS);\n\n\t\ttxtText.setWidth(\"100%\");\n\t\ttxtHelpText.setWidth(\"100%\");\n\t\ttxtBinding.setWidth(\"100%\");\n\t\ttxtDefaultValue.setWidth(\"100%\");\n\t\tcbDataType.setWidth(\"100%\");\n\t\ttxtFormKey.setWidth(\"100%\");\n\n\t\tVerticalPanel verticalPanel = new VerticalPanel();\n\t\tverticalPanel.setSpacing(5);\n\t\tverticalPanel.add(table);\n\n\t\tDecoratedTabPanel tabs = new DecoratedTabPanel();\n\t\ttabs.add(skipRulesView, LocaleText.get(\"skipLogic\"));\n\t\ttabs.add(validationRulesView, LocaleText.get(\"validationLogic\"));\n\t\ttabs.add(dynamicListsView, LocaleText.get(\"dynamicLists\"));\n\n\t\ttabs.selectTab(0);\n\t\tverticalPanel.add(tabs);\n\t\tFormUtil.maximizeWidget(tabs);\n\n\t\tFormUtil.maximizeWidget(verticalPanel);\n\t\tinitWidget(verticalPanel);\n\n\t\tsetupEventListeners();\n\n\t\tcbDataType.setSelectedIndex(-1);\n\n\t\tenableQuestionOnlyProperties(false);\n\t\ttxtText.setEnabled(false);\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\t\ttxtBinding.setEnabled(false);\n\n\t\ttxtText.setTitle(LocaleText.get(\"questionTextDesc\"));\n\t\ttxtHelpText.setTitle(LocaleText.get(\"questionDescDesc\"));\n\t\ttxtBinding.setTitle(LocaleText.get(\"questionIdDesc\"));\n\t\ttxtDefaultValue.setTitle(LocaleText.get(\"defaultValDesc\"));\n\t\tcbDataType.setTitle(LocaleText.get(\"questionTypeDesc\"));\n\n\t\tDOM.sinkEvents(getElement(), Event.ONKEYDOWN | DOM.getEventsSunk(getElement()));\n\t}", "@Override\n\tprotected int getShellStyle() {\n\t\treturn super.getShellStyle()|SWT.RESIZE;\n\t}", "private void styleIngredientAddPane(){\n InterfaceStyling.setHighlightStyling(ingredNameInput, ingredientColor, defaultColor);\n InterfaceStyling.setHighlightStyling(ingredCalorieInput, ingredientColor , defaultColor);\n InterfaceStyling.setHighlightStyling(ingredSugarInput, ingredientColor , defaultColor);\n InterfaceStyling.setHighlightStyling(ingredProteinInput, ingredientColor , defaultColor);\n InterfaceStyling.setHighlightStyling(ingredFiberInput, ingredientColor , defaultColor);\n InterfaceStyling.setHighlightStyling(ingredCarbsInput, ingredientColor , defaultColor);\n InterfaceStyling.setHighlightStyling(ingredFatInput, ingredientColor , defaultColor);\n InterfaceStyling.setHighlightStyling(ingredQuantityAmountInput, ingredientColor, defaultColor);\n InterfaceStyling.setHighlightStyling(ingredQuantityNameInput, ingredientColor, defaultColor);\n InterfaceStyling.setHighlightStyling(ingredientsBrowseCombo, ingredientColor, defaultColor);\n InterfaceStyling.buttonStyle(btnSaveIngredients, ingredientColor, ingredientColorDark);\n\n //Style all the text in the Pane\n for (Node n: IngredientsAddSubPane.getChildren()){\n if (n.getClass().isInstance(new Text())){\n ((Text) n).setFont(InterfaceStyling.titleFontNonBold);\n ((Text) n).setFill(Paint.valueOf(defaultTextColor));\n\n }\n }\n }", "public void updateStyles()\n\t{\n\t\tIterator<StyleEditorTree> trees = this.getStyleTrees();\n\t\tStyleEditorTree current;\n\n\t\twhile (trees.hasNext())\n\t\t{\n\t\t\tcurrent = trees.next();\n\t\t\tcurrent.updateTreeRendering();\n\t\t}\n\t}", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }", "public MarkStyle[] getStyles() {\n return styles_;\n }", "public MultiWidgetPropertyWidget() {\r\n // tabbedPane.setBorder(BorderFactory.createEmptyBorder(3, 5, 5, 4));\r\n //tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);\r\n createNestedWidgets();\r\n }", "public GridBagPanel style(String... styles)\n {\n myStyleQueue.clear();\n for (String style : styles)\n {\n myStyleQueue.add(style);\n }\n useNextStyle();\n return this;\n }", "public String getRowUiStyle() {\r\n return uiRowStyle;\r\n }", "private Style getStyle(InstanceWaypoint context) {\n \t\tStyleService ss = (StyleService) PlatformUI.getWorkbench().getService(StyleService.class);\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\t\n \t\tInstanceReference ref = context.getValue();\n \t\tInstance instance = is.getInstance(ref);\n \t\t\n \t\treturn ss.getStyle(instance.getDefinition(), ref.getDataSet());\n \t}", "public List<HTMLConfigComponent> getStylingList() {\n return stylingList;\n }", "public CssBorderWidth() {\n }", "private void initStyle(View view) {\n MarginLayoutParams params = new MarginLayoutParams(itemWidth, itemHeight);\n params.setMargins(itemMargin, 0, itemMargin, 0);\n\n view.setLayoutParams(params);\n view.setBackgroundResource(backgroundSelector);\n if (view instanceof TextView) {\n ((TextView) view).setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);\n ((TextView) view).setTextColor(\n ContextCompat.getColorStateList(getContext(), colorSelector));\n }\n }", "public SimpleStyle() {\n\t\t// set default values\n\t\tthis.foregroundColor = -1;\n\t\t// others are null: VM DONE\n\t}", "private static void createContents() {\r\n\t\t\r\n\t\tcolorPreview = new Composite(colorUI, SWT.BORDER);\r\n\t\tcolorPreview.setBounds(10, 23, 85, 226);\r\n\t\t\r\n\t\tscRed = new Scale(colorUI, SWT.NONE);\r\n\t\tscRed.setMaximum(255);\r\n\t\tscRed.setMinimum(0);\r\n\t\tscRed.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscRed.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscRed.setBounds(244, 34, 324, 42);\r\n\t\tscRed.setIncrement(1);\r\n\t\tscRed.setPageIncrement(10);\r\n\t\tscRed.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tR = scRed.getSelection();\r\n\t\t\t\tmRed.setText(Integer.toString(scRed.getSelection()));\r\n\t\t\t\tcolorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmRed = new Label(colorUI, SWT.NONE);\r\n\t\tmRed.setAlignment(SWT.RIGHT);\r\n\t\tmRed.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmRed.setBounds(180, 47, 55, 15);\r\n\t\tmRed.setText(\"0\");\r\n\r\n\t\tscGreen = new Scale(colorUI, SWT.NONE);\r\n\t\tscGreen.setMaximum(255);\r\n\t\tscGreen.setMinimum(0);\r\n\t\tscGreen.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscGreen.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscGreen.setBounds(244, 84, 324, 42);\r\n\t\tscGreen.setIncrement(1);\r\n\t\tscGreen.setPageIncrement(10);\r\n\t\tscGreen.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tG = scGreen.getSelection();\r\n\t\t\t\tmGreen.setText(Integer.toString(scGreen.getSelection()));\r\n\t\t\t\tcolorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmGreen = new Label(colorUI, SWT.NONE);\r\n\t\tmGreen.setAlignment(SWT.RIGHT);\r\n\t\tmGreen.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmGreen.setText(\"0\");\r\n\t\tmGreen.setBounds(180, 97, 55, 15);\r\n\t\t\r\n\t\tscBlue = new Scale(colorUI, SWT.NONE);\r\n\t\tscBlue.setMaximum(255);\r\n\t\tscBlue.setMinimum(0);\r\n\t\tscBlue.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscBlue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscBlue.setBounds(244, 138, 324, 42);\r\n\t\tscBlue.setIncrement(1);\r\n\t\tscBlue.setPageIncrement(10);\r\n\t\tscBlue.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tB = scBlue.getSelection();\r\n\t\t\t\tmBlue.setText(Integer.toString(scBlue.getSelection()));\r\n\t\t\t\tcolorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmBlue = new Label(colorUI, SWT.NONE);\r\n\t\tmBlue.setAlignment(SWT.RIGHT);\r\n\t\tmBlue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmBlue.setText(\"0\");\r\n\t\tmBlue.setBounds(180, 151, 55, 15);\r\n\t\t\r\n\t\tscAlpha = new Scale(colorUI, SWT.NONE);\r\n\t\tscAlpha.setMaximum(255);\r\n\t\tscAlpha.setMinimum(0);\r\n\t\tscAlpha.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tscAlpha.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tscAlpha.setBounds(244, 192, 324, 42);\r\n\t\tscAlpha.setIncrement(1);\r\n\t\tscAlpha.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tA = scAlpha.getSelection();\r\n\t\t\t\tmAlpha.setText(Integer.toString(scAlpha.getSelection()));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnOkay = new Button(colorUI, SWT.NONE);\r\n\t\tbtnOkay.setBounds(300, 261, 80, 30);\r\n\t\tbtnOkay.setText(\"Okay\");\r\n\t\tbtnOkay.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tOptions.cr.ColorR = R;\r\n\t\t\t\tOptions.cr.ColorG = G;\r\n\t\t\t\tOptions.cr.ColorB = B;\r\n\t\t\t\tOptions.cr.ColorA = A;\r\n\t\t\t\tOptions.colorPreview.setBackground(SWTResourceManager.getColor(R, G, B));\r\n\t\t\t\tcolorUI.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnCancel = new Button(colorUI, SWT.NONE);\r\n\t\tbtnCancel.setText(\"Cancel\");\r\n\t\tbtnCancel.setBounds(195, 261, 80, 30);\r\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter(){\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tOptions.colorPreview.setBackground(SWTResourceManager.getColor(Options.cr.ColorR, Options.cr.ColorG, Options.cr.ColorB));\r\n\t\t\t\tR = Options.cr.ColorR;\r\n\t\t\t\tG = Options.cr.ColorG;\r\n\t\t\t\tB = Options.cr.ColorB;\r\n\t\t\t\tA = Options.cr.ColorA;\r\n\t\t\t\tcolorUI.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmAlpha = new Label(colorUI, SWT.NONE);\r\n\t\tmAlpha.setAlignment(SWT.RIGHT);\r\n\t\tmAlpha.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tmAlpha.setText(\"0\");\r\n\t\tmAlpha.setBounds(180, 206, 55, 15);\r\n\t\t\r\n\t\tLabel lblRed = new Label(colorUI, SWT.NONE);\r\n\t\tlblRed.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblRed.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblRed.setBounds(123, 47, 55, 15);\r\n\t\tlblRed.setText(\"Red\");\r\n\t\t\r\n\t\tLabel lblGreen = new Label(colorUI, SWT.NONE);\r\n\t\tlblGreen.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblGreen.setText(\"Green\");\r\n\t\tlblGreen.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblGreen.setBounds(123, 97, 55, 15);\r\n\t\t\r\n\t\tLabel lblBlue = new Label(colorUI, SWT.NONE);\r\n\t\tlblBlue.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblBlue.setText(\"Blue\");\r\n\t\tlblBlue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblBlue.setBounds(123, 151, 55, 15);\r\n\t\t\r\n\t\tLabel lblAlpha = new Label(colorUI, SWT.NONE);\r\n\t\tlblAlpha.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\r\n\t\tlblAlpha.setText(\"Alpha\");\r\n\t\tlblAlpha.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlblAlpha.setBounds(123, 206, 55, 15);\r\n\t\t\r\n\t\t\r\n\t}", "private ComponentComposite(Composite parent, int style) {\n\t\tsuper(parent, style);\n\t\tcreateControls();\n\t}", "public ThicknessSlider() {\n\t\t// Create a new JSlider with a vertical orientation, minimum value of 1,\n\t\t// maximum value of 20, and start value of defaultThickness\n \t\tsuper(JSlider.VERTICAL, 1, 20, defaultThickness);\n \t\t\n\t\tthis.setMajorTickSpacing(19);\n\t\tthis.setMinorTickSpacing(1);\n\t\tthis.setPaintTicks(true);\n\t\tthis.setPaintLabels(true);\n\t\tthis.setSnapToTicks(true);\n\t\tthis.setToolTipText(\"Change thickness of the brush\");\n\t\tthis.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t}", "public StylePanel getStylePanel();", "private void initDrawableBuilders() {\n selectedIShapeBuilder = TextDrawable.builder();\n selectedIShapeBuilder.beginConfig()\n .textColor(selectedTextColor)\n .fontSize(getDpFromPx(fontSize))\n .bold()\n .width(fullSize ? getScreenWidth() / 5 : getDpFromPx(width))\n .height(getDpFromPx(height))\n .endConfig();\n unselectedIShapeBuilder = TextDrawable.builder();\n unselectedIShapeBuilder.beginConfig()\n .textColor(unSelectedTextColor)\n .fontSize(getDpFromPx(fontSize))\n .bold()\n .width(fullSize ? getScreenWidth() / 5 : getDpFromPx(width))\n .height(getDpFromPx(height))\n .endConfig();\n\n unselectedWeekendIShapeBuilder = TextDrawable.builder();\n unselectedWeekendIShapeBuilder.beginConfig()\n .textColor(weekendDarker ? unSelectedWeekendTextColor : unSelectedTextColor)\n .fontSize(getDpFromPx(fontSize))\n .bold()\n .width(fullSize ? getScreenWidth() / 5 : getDpFromPx(width))\n .height(getDpFromPx(height))\n .endConfig();\n }", "private static String getStyleClass(Object obj) { return ((MetaData)obj).getStyle(); }", "@Override\n\tpublic void settings() {\n\t\tpreviewRect = WallGeometry.scaleRectangleRounded(WallGeometry.getInstance().getWallGeometry(), Preview.SCALE);\n\t\tsize(previewRect.width, previewRect.height, P3D);\n\t}", "public String getStyle() {\r\n if (style != null) {\r\n return style;\r\n }\r\n ValueBinding vb = getValueBinding(\"style\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) : null;\r\n }", "private void styling(){\r\n canvasStackPane.getStyleClass().add(\"canvasStackPane\");\r\n\r\n upper1Label.getStyleClass().add(\"myLabelTest2\");\r\n upper2Label.getStyleClass().add(\"myLabelTest2\");\r\n upper3Label.getStyleClass().add(\"myLabelTest2\");\r\n upperRestLabel.getStyleClass().add(\"myLabelTest2\");\r\n upperHBox.getStyleClass().add(\"upperHBox\");\r\n leftVBox.getStyleClass().add(\"leftVBox\");\r\n upperLeftButton.getStyleClass().add(\"upperLeftButton\");\r\n left1HintButton.getStyleClass().add(\"leftButton\");\r\n left2Button.getStyleClass().add(\"leftButton\");\r\n left3Button.getStyleClass().add(\"leftButton\");\r\n left4Button.getStyleClass().add(\"leftButton\");\r\n left5Button.getStyleClass().add(\"leftButton\");\r\n //new GameMode\r\n newGamemodeHBox.getStyleClass().add(\"newGameModeHBox\");\r\n newGamemodebutton1.getStyleClass().add(\"chooseButtons\");\r\n newGamemodebutton2.getStyleClass().add(\"chooseButtons\");\r\n newGamemodebutton3.getStyleClass().add(\"chooseButtons\");\r\n //back Button\r\n backPane.getStyleClass().add(\"backPane\");\r\n backButton.getStyleClass().add(\"backButton\");\r\n //new Graphmode\r\n newGraphModeHBox.getStyleClass().add(\"newGraphModeHBox\");\r\n newGraphModebutton1.getStyleClass().add(\"chooseButtons\");\r\n newGraphModebutton2.getStyleClass().add(\"chooseButtons\");\r\n newGraphModebutton3.getStyleClass().add(\"chooseButtons\");\r\n sMBHBox.getStyleClass().add(\"newGraphModeHBox\");\r\n smallButton.getStyleClass().add(\"chooseButtons\");\r\n middleButton.getStyleClass().add(\"chooseButtons\");\r\n bigButton.getStyleClass().add(\"chooseButtons\");\r\n textFieldHBox.getStyleClass().add(\"newGraphModeHBox\");\r\n buttonTextfield.getStyleClass().add(\"chooseButtons\");\r\n //new Graph\r\n newGraphHBox.getStyleClass().add(\"newGraphHBox\");\r\n newGraphButtonYes.getStyleClass().add(\"chooseButtons\");\r\n newGraphButtonNo.getStyleClass().add(\"chooseButtons\");\r\n submit2.getStyleClass().add(\"chooseButtons\");\r\n listViewVBox.getStyleClass().add(\"newGraphHBox\");\r\n textFieldVertices.getStyleClass().add(\"textfield\");\r\n textFieldEdges.getStyleClass().add(\"textfield\");\r\n gameEndTop.getStyleClass().add(\"gameEndTop\");\r\n gameEndStackPane.getStyleClass().add(\"gameEndStackPane\");\r\n\r\n\t//hintmenu and hintbuttons:\r\n hintMenuStack.getStyleClass().add(\"newGraphModeHBox\");\r\n\r\n hintButton1.getStyleClass().add(\"chooseButtons\");\r\n hintButton2.getStyleClass().add(\"chooseButtons\");\r\n hintButton3.getStyleClass().add(\"chooseButtons\");\r\n hintButton4.getStyleClass().add(\"chooseButtons\");\r\n hintButton5.getStyleClass().add(\"chooseButtons\");\r\n hintButton6.getStyleClass().add(\"chooseButtons\");\r\n hintButton7.getStyleClass().add(\"chooseButtons\");\r\n hintButton8.getStyleClass().add(\"chooseButtons\");\r\n hintButton9.getStyleClass().add(\"chooseButtons\");\r\n\r\n gameWinButton1.getStyleClass().add(\"chooseButtons\");\r\n gameWinButton2.getStyleClass().add(\"chooseButtons\");\r\n gameWinStackPane.getStyleClass().add(\"newGraphModeHBox2\");\r\n\r\n\r\n gameWinHBox.setAlignment(Pos.CENTER);\r\n gameWinHBox.setSpacing(30);\r\n vBoxWin.setAlignment(Pos.BASELINE_CENTER);\r\n vBoxHint.setAlignment(Pos.CENTER);\r\n vBoxHint2.setAlignment(Pos.CENTER);\r\n vBoxHint3.setAlignment(Pos.CENTER);\r\n hintMenu.setAlignment(Pos.CENTER);\r\n }", "private void setPressedStyle() {\n this.setStyle(BUTTON_PRESSED);\n this.setPrefHeight(43);\n this.setLayoutY(getLayoutY() + 4);\n }", "private void readStyles() {\n table.clearSelection();\n\n styles.getReadWriteLock().writeLock().lock();\n styles.clear();\n if (styleDir.getText().length() > 0) {\n addStyles(styleDir.getText(), true);\n }\n styles.getReadWriteLock().writeLock().unlock();\n\n selectLastUsed();\n }", "public int size(){\n\t\treturn styles.size();\n\t}", "public StylePanel(Composite parent, int style)\n\t{\n\t\tsuper(parent, style);\n\n\t\tinit();\n\t}", "@StyleDefaults(ELEMENT_ID)\n public static void initializeDefaultStyles(Styles styles, Attributes attrs) {\n styles.getSelector(meid, null).set(\"setReadfieldPreferredWidth\", 50, false);\n styles.getSelector(meid, null).set(\"setHeadlineHAlignment\", HAlignment.Center, false);\n styles.getSelector(meid, null).set(\"setReadfieldimagewidth\", 0f, false);\n styles.getSelector(meid, null).set(\"setReadfieldimageheight\", 0f, false);\n }", "public UI() {\n initComponents();\n setResizable(false);\n }", "private void initAttributes(Context context, AttributeSet attrs, int defStyleAttr) {\n\n textSize *= DENSITY;\n itemMargin *= DENSITY;\n selectedIndex = -1;\n /**\n * Getting values of the attributes from the XML.\n * The default value of the attribute is retained if it is not set from the XML or setters.\n */\n if (attrs != null) {\n final TypedArray array = context.obtainStyledAttributes(attrs, R.styleable.HorizontalPicker, defStyleAttr, 0);\n backgroundSelector = array.getResourceId(R.styleable.HorizontalPicker_backgroundSelector, backgroundSelector);\n colorSelector = array.getResourceId(R.styleable.HorizontalPicker_textColorSelector, colorSelector);\n textSize = array.getDimensionPixelSize(R.styleable.HorizontalPicker_textSize, textSize);\n itemHeight = array.getDimensionPixelSize(R.styleable.HorizontalPicker_itemHeight, itemHeight);\n itemWidth = array.getDimensionPixelSize(R.styleable.HorizontalPicker_itemWidth, itemWidth);\n itemMargin = array.getDimensionPixelSize(R.styleable.HorizontalPicker_itemMargin, itemMargin);\n array.recycle();\n }\n\n }", "private void init() {\n mSelectedColor = new Paint(Paint.ANTI_ALIAS_FLAG);\n mSelectedColor.setColor(getResources().getColor(R.color.colorPrimary));\n mSelectedColor.setStyle(Paint.Style.FILL);\n\n mUnselectedColor = new Paint(Paint.ANTI_ALIAS_FLAG);\n mUnselectedColor.setColor(getResources().getColor(R.color.textColorSecondaryInverse));\n\n mSelectedColor.setStyle(Paint.Style.FILL);\n mPosition = new RectF();\n\n mTextPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mTextPaint.setColor(getResources().getColor(R.color.textColorSecondary));\n mTextPaint.setTextSize(48);\n }", "public WidgetRenderer() {\r\n super(\"\");\r\n setUIID(\"ListRenderer\");\r\n }", "public TextStyle getStyle(\n )\n {return style;}", "StyleListSettings getListablepageStyle();", "@Override\n public void addStyleName(String style) {\n super.addStyleName(style);\n }", "private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }", "private void setButtonDimensions() {\n\n int lButtonVisibility = mInfoLButton.getVisibility();\n int rButtonVisibility = mInfoRButton.getVisibility();\n\n if (lButtonVisibility == View.VISIBLE &&\n rButtonVisibility == View.VISIBLE) {\n\n mInfoLButton.setBackgroundResource(R.drawable.drawable_button_dialog_small);\n mInfoRButton.setBackgroundResource(R.drawable.drawable_button_dialog_small);\n\n mInfoLButton.setLayoutParams(mButtonLpSmall);\n mInfoRButton.setLayoutParams(mButtonLpSmall);\n } else {\n\n mInfoLButton.setBackgroundResource(R.drawable.drawable_button_dialog);\n mInfoRButton.setBackgroundResource(R.drawable.drawable_button_dialog);\n\n mInfoLButton.setLayoutParams(mButtonLp);\n mInfoRButton.setLayoutParams(mButtonLp);\n }\n }", "private void decorate() {\n setBorderPainted(false);\n setOpaque(true);\n \n setContentAreaFilled(false);\n setMargin(new Insets(1, 1, 1, 1));\n }", "void onStyleModify() {\n\t\tif (mergedStyleSheet != null) {\n\t\t\tmergedStyleSheet = null;\n\t\t\tsheets.setNeedsUpdate(true);\n\t\t} else if (sheets != null) {\n\t\t\tsheets.setNeedsUpdate(true);\n\t\t}\n\t}", "public EditSurveyPanel()\n {\n setStyleName(\"editSurveys\");\n setWidth(\"100%\");\n }" ]
[ "0.7264547", "0.68174267", "0.6607625", "0.645304", "0.6449334", "0.6332551", "0.61988986", "0.6189035", "0.60357636", "0.6033749", "0.60134757", "0.5985352", "0.5978324", "0.5964589", "0.59159416", "0.59152496", "0.59152496", "0.59152496", "0.59152496", "0.5902359", "0.5894898", "0.5834682", "0.5823406", "0.5821638", "0.5813589", "0.5809858", "0.5788305", "0.57844967", "0.57703173", "0.57647777", "0.5704709", "0.56950814", "0.56950647", "0.567566", "0.5672782", "0.5662949", "0.5643818", "0.5619886", "0.5607979", "0.5584867", "0.5582602", "0.5578663", "0.5577073", "0.55690444", "0.5564007", "0.5560096", "0.5557322", "0.5555894", "0.553879", "0.55355144", "0.55337894", "0.5532933", "0.55229896", "0.552116", "0.5504814", "0.54988194", "0.5497335", "0.5495364", "0.5493651", "0.54865086", "0.5484026", "0.5482245", "0.54468405", "0.5430563", "0.5421791", "0.5405172", "0.54008836", "0.53953505", "0.538919", "0.5386302", "0.5374152", "0.53648025", "0.5363869", "0.5363644", "0.5354883", "0.5344921", "0.53403485", "0.533457", "0.53322715", "0.5328971", "0.53146404", "0.5309702", "0.53024966", "0.5297774", "0.529043", "0.5282022", "0.5276856", "0.5263644", "0.5258363", "0.52582663", "0.5249426", "0.5247935", "0.5245298", "0.52434474", "0.5241954", "0.52374524", "0.5229091", "0.52287495", "0.5228213", "0.52170885" ]
0.6287121
6
Applied to disabled buttons.
String disabledButton();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void disableButtons()\r\n {\r\n }", "protected void disableButtons() {\n if (mFalseButton.isPressed() || mTrueButton.isPressed())\n mFalseButton.setEnabled(false);\n mTrueButton.setEnabled(false);\n }", "private void disableButtons() {\n for (DeployCommand cmd : DeployCommand.values()){\n setButtonEnabled(cmd, false);\n }\n butDone.setEnabled(false);\n setLoadEnabled(false);\n setUnloadEnabled(false);\n setAssaultDropEnabled(false);\n }", "public void disableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(false);\n }\n }", "public void disableButtons() {\n\n for (Button b: buttons) {\n b.setClickable(false);\n }\n\n }", "public void disableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(false);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnListenAgain.setEnabled(false);\n\t}", "public void updateDisabledButtons() {\n\t\t//at least 3 credits should be there for perform add max action\n\t\tif (obj.getCredit() < 3)\n\t\t\taddMax.setEnabled(false);\n\t\t//at least a credit should be there for perform add max action\n\t\tif (obj.getCredit() == 0)\n\t\t\taddOne.setEnabled(false);\n\t\tif (obj.getCredit() >= 3)\n\t\t\taddMax.setEnabled(true);\n\t\tif (obj.getCredit() > 0)\n\t\t\taddOne.setEnabled(true);\n\t}", "public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\tfilter.setEnabled(false);\r\n\t\tsave.setEnabled(false);\r\n\t\t//load.setEnabled(false);\r\n\t}", "private void setBoardDisabled(boolean disabled) {\r\n\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t//If we're enabling the buttons and the button has no text on it (Only enable the unclicked buttons)\r\n\t\t\t//OR if we're disabling the buttons\r\n\t\t\tif(!disabled && buttons[i].getText().equals(\"\") || disabled) {\r\n\t\t\t\tbuttons[i].setDisable(disabled);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "@Override\n public void onDisabled() {\n }", "public void enableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(true);\n\t\tbtnStop.setEnabled(true);\n\t\tbtnListenAgain.setEnabled(true);\t\t\n\t}", "private void disableButtons(boolean b) {\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n bt[i][j].setDisable(b);\n bt[i][j].setStyle(\"-fx-border-color:transparent\");\n }\n }\n }", "public void disableButtons() {\n p1WinPoint.setEnabled(false);\n p2WinPoint.setEnabled(false);\n }", "protected void enableButtons() {\n if (mPrevious_question.isPressed() || mNext_question.isPressed()) {\n mFalseButton.setEnabled(true);\n mTrueButton.setEnabled(true);\n }\n }", "public void disableProductionButtons(){\n for(int i = 0; i < 3; i++){\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new ActivateProductionListener(gui,productionButtons[i],i));\n productionButtons[i].setEnabled(false);\n }\n\n baseProductionPanel.disableButton();\n }", "@Override\n public void onDisabled(Context context) {\n // Enter relevant functionality for when the last widget is disabled\n }", "public void setDisabled() {\n\t\tdisabled = true;\n\t}", "private void disableButton(Button b) {\n b.setPressed(false);\n b.setEnabled(false);\n }", "public void disableAllButtons() {\n\t\tfor (int i = 0; i < DIM; i++)\n\t\t\tfor (int j = 0; j < DIM; j++)\n\t\t\t\tbuttons[i][j].setEnabled(false);\n\t}", "private void enableButtons(boolean enabled) {\n saveUserButton.setEnabled(enabled);\n deleteUserButton.setEnabled(enabled);\n resetPassButton.setEnabled(enabled);\n }", "public void enableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(true);\n }\n }", "public void disable()\n {\n // Disable all the buttons one by one\n for (int col = 0; col < COLUMNS; col++ )\n {\n drop[col].setEnabled(false);\n }\n }", "private void setNextPageButtonsDisabled(boolean disabled) {\r\n\t\tnextPage.setDisabled(disabled);\r\n\t\tif (lastPage != null) {\r\n\t\t\tlastPage.setDisabled(disabled);\r\n\t\t}\r\n\t}", "@Override\n public void disableProductionButtons() {\n gameboardPanel.disableProductionButtons();\n leaderCardsPanel.disableProductionButtons();\n }", "private void disableButtons(boolean disable, boolean normalMoves, boolean rotations) {\n\t\tArrayList<PuzzleTurn> turns = mPuzzleMoveListener.getmPuzzleTurns();\n\t\t// iterate through puzzleTurns\n\t\tfor (int i = 0; i < turns.size(); i++) {\n\t\t\tPuzzleTurn current = turns.get(i);\n\n\t\t\tif( !current.isRotation() && !normalMoves){\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (current.isRotation() && !rotations) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// iterate through buttons\n\t\t\tfor (Button btn : mButtons) {\n\t\t\t\tif (btn.getText().toString().equals(current.getmName())) {\n\t\t\t\t\tbtn.setEnabled(!disable);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void enableButton(Button b) {\n b.setEnabled(true);\n }", "private void setPrevPageButtonsDisabled(boolean disabled) {\r\n\t\tfirstPage.setDisabled(disabled);\r\n\t\tprevPage.setDisabled(disabled);\r\n\t}", "private void enableButtons() {\n\t\tcapture.setEnabled(true);\r\n\t\tstop.setEnabled(true);\r\n\t\tselect.setEnabled(true);\r\n\t\tfilter.setEnabled(true);\r\n\t}", "private void setButtonsEnable(boolean b){\n addButton.setEnabled(b);\n clearButton.setEnabled(b);\n peelOffButton.setEnabled(b);\n buttonControlPanel.setEnabled(b);\n progressCheckBox.setEnabled(b);\n }", "protected void UpdateButtons()\n {\n btnIn.setEnabled(usr.getPostType() == Util.ATTENDANCE_DAY_OUT);\n btnOut.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n btnScan.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n\n }", "private void configureEnableButtons() {\r\n\t\ttglbtnBirthdays.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == tglbtnBirthdays) {\r\n\t\t\t\t\tif (tglbtnBirthdays.isSelected()) {\r\n\t\t\t\t\t\ttglbtnBirthdays.setText(\"Disable\");\r\n\t\t\t\t\t\ttheSender.setBirthdayTemplate(emailStorage.getTemplate(templateBirthday));\r\n\t\t\t\t\t\ttheSender.runBirthdaySetUp();\r\n\t\t\t\t\t\ttheSender.resumeSendingBirthdays();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!tglbtnBirthdays.isSelected()) {\r\n\t\t\t\t\t\ttglbtnBirthdays.setText(\"Enable\");\r\n\t\t\t\t\t\ttheSender.stopSendingBirthdays();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\ttglbtnAnniv.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == tglbtnAnniv) {\r\n\t\t\t\t\tif (tglbtnAnniv.isSelected()) {\r\n\t\t\t\t\t\ttglbtnAnniv.setText(\"Disable\");\r\n\t\t\t\t\t\ttheSender.setAnnivTemplate(emailStorage.getTemplate(templateAnniv));\r\n\t\t\t\t\t\ttheSender.runAnnivSetUp();\r\n\t\t\t\t\t\ttheSender.resumeSendingAnniv();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!tglbtnAnniv.isSelected()) {\r\n\t\t\t\t\t\ttglbtnAnniv.setText(\"Enable\");\r\n\t\t\t\t\t\ttheSender.stopSendingAnniv();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}", "public abstract void Disabled();", "protected void onDisabled() {\n // Do nothing.\n }", "private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}", "public void enableButtons (boolean enabled)\n\t{\n\t\tfor (int i = 1; i <= 9; ++ i)\n\t\t\ttileButton[i].setEnabled (enabled);\n\t\tfor (int i = 0; i <= 1; ++ i)\n\t\t\tdieButton[i].setEnabled (enabled);\n\t\tdoneButton.setEnabled (enabled);\n\t}", "private void setButtonsEnabledState() {\n if (mRequestingLocationUpdates) {\n mStartUpdatesButton.setEnabled(false);\n mStopUpdatesButton.setEnabled(true);\n } else {\n mStartUpdatesButton.setEnabled(true);\n mStopUpdatesButton.setEnabled(false);\n }\n }", "public void setDisabled(Boolean disabled) {\n this.disabled = disabled;\n }", "public void disable()\n\t{\n\t\tplayButton.setEnabled(false);\n\t\tpassButton.setEnabled(false);\n\t\tbigTwoPanel.setEnabled(false);\n\t}", "private void setButtonsEnabledState() {\n if (mBroadcastingLocation) {\n mStartButton.setEnabled(false);\n mStopButton.setEnabled(true);\n } else {\n mStartButton.setEnabled(true);\n mStopButton.setEnabled(false);\n }\n }", "public void updateButtons(){\n\t\tif (Player.getPlayer(this).questManager.atMaxNumQuests()) {\n\t\t\tcreateQuest.setEnabled(false);\n\t\t} else {\n\t\t\tcreateQuest.setEnabled(true);\n\t\t}\n\t\tif (selectedQuest != null){\n\t\t\tdeleteQuest.setEnabled(true);\n\t\t\tcompleteQuest.setEnabled(true);\n\t\t} else {\n\t\t\tdeleteQuest.setEnabled(false);\n\t\t\tcompleteQuest.setEnabled(false);\n\t\t}\n\t}", "@Override\n public void enableProductionButtons() {\n gameboardPanel.disableEndTurnButton();\n gameboardPanel.disableEndOfProductionButton();\n gameboardPanel.enableProductionButtons();\n leaderCardsPanel.enableProductionButtons();\n }", "private void deActivateButtons(){\n limiteBoton.setEnabled(false);\n derivadaBoton.setEnabled(false);\n integralBoton.setEnabled(false);\n}", "private void setFastForwardDisabled(boolean disabled) {\r\n\t\tif (fastForward == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (disabled) {\r\n\t\t\tfastForward.setResource(resources.simplePagerFastForwardDisabled());\r\n\t\t\tfastForward.getElement().getParentElement()\r\n\t\t\t\t\t.addClassName(style.disabledButton());\r\n\t\t} else {\r\n\t\t\tfastForward.setResource(resources.simplePagerFastForward());\r\n\t\t\tfastForward.getElement().getParentElement()\r\n\t\t\t\t\t.removeClassName(style.disabledButton());\r\n\t\t}\r\n\t}", "public void setDisabled(boolean disabled) {\n this.disabled = disabled;\n }", "private void activateButtons(){\n limiteBoton.setEnabled(true);\n derivadaBoton.setEnabled(true);\n integralBoton.setEnabled(true);\n}", "public void onDisable() {\r\n }", "public void disableChoice() {\n\t\t// Disable the buttons, dimming them\n\t\trock.setEnabled(false);\n\t\tpaper.setEnabled(false);\n\t\tscissors.setEnabled(false);\n\t}", "private void disableBtn(){\n int [] ids = new int[]{\n R.id.box1, R.id.box2, R.id.box3, R.id.box4, R.id.box5, R.id.box6,\n R.id.box7, R.id.box8, R.id.box9\n };\n\n for (int i = 0; i < ids.length; i++)\n {\n ImageButton btnToDisable = (ImageButton)findViewById(ids[i]);\n btnToDisable.setEnabled(false);\n }\n\n }", "public void enableDisableAllControlElements(boolean disable){\n for(Button button : allButtons){\n button.setDisable(disable);\n }\n filterValueTextField.setDisable(disable);\n }", "protected void setEnabledButtons( final boolean b )\r\n {\r\n jButtonSource.setEnabled( b );\r\n jButtonDestination.setEnabled( b );\r\n jButtonClearFileList.setEnabled( b );\r\n jButtonDoAction.setEnabled( b );\r\n }", "@Override\r\n\tprotected void onBoEdit() throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoEdit();\r\n\t}", "@Override\n\tpublic void onDisable() {\n\n\t}", "@Override\n\tpublic void onDisable() {\n\t\t\n\t}", "public void disableEndOfProductionButton(){\n this.endOfproductionButton.setEnabled(false);\n }", "private void disableP1Buttons(){\n game_BTN_p1_lightAttack.setEnabled(false);\n game_BTN_p1_strongAttack.setEnabled(false);\n game_BTN_p1_brutalAttack.setEnabled(false);\n }", "public void onDisable() {\n }", "public void onDisable() {\n }", "public void onDisable()\n {\n }", "private void setAllButtonsEnabledStatus(boolean isEnabled) {\n Button selectImageButton = (Button) findViewById(R.id.select_image);\n selectImageButton.setEnabled(isEnabled);\n\n Button detectButton = (Button) findViewById(R.id.detect);\n detectButton.setEnabled(isEnabled);\n\n //Button ViewLogButton = (Button) findViewById(R.id.view_log);\n //ViewLogButton.setEnabled(isEnabled);\n }", "public void onDisable() {\n }", "public void resetButtons() {\n\t\tboolean bool = selectedLesson.isEnable();\n\t\tview.getTestButton().setEnabled(bool);\n\t\tview.getLearnButton().setEnabled(bool);\n\t}", "private void setAllButtonsEnabledStatus(boolean isEnabled) {\n Button identifyButton = (Button) findViewById(R.id.identify);\n identifyButton.setEnabled(isEnabled);\n\n }", "private void unlockButton() {\n\t\tconversionPdf_Txt.setEnabled(true);\n\t\tavisJury.setEnabled(true);\n\t\tstatistique.setEnabled(true);\n bData.setEnabled(true);\n\t}", "@Override\n public void onDisable() {\n }", "@Override\r\n\tpublic void onDisable() {\n\t}", "public abstract void onDisable();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddBtn.setEnabled(true);\n\t\t\t}", "private void updateButtons() {\n\t\tif (selectedDownload != null) {\n\t\t\tint status = selectedDownload.getStatus();\n\t\t\tswitch (status) {\n\t\t\t\tcase Download.DOWNLOADING:\n\t\t\t\t\tpauseButton.setEnabled(true);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.PAUSED:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.ERROR:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: // COMPLETE or CANCELLED\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t}\n\t\t} else {\n\t\t\t// No download is selected in table.\n\t\t\tpauseButton.setEnabled(false);\n\t\t\tresumeButton.setEnabled(false);\n\t\t\tcancelButton.setEnabled(false);\n\t\t\tclearButton.setEnabled(false);\n\t\t}\n\t}", "public void setDisabled(boolean disabled) {\n\t\tthis.disabled = disabled;\n\t}", "@Override\n public void setUilButtonDisabledColor(java.lang.Object uilButtonDisabledColor) throws G2AccessException {\n setAttributeValue (UIL_BUTTON_DISABLED_COLOR_, uilButtonDisabledColor);\n }", "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "protected abstract void disable();", "private void disableInputs() {\n bulbPressTime.setEnabled(false);\n intervalTime.setEnabled(false);\n numTicks.setEnabled(false);\n startBtn.setEnabled(false);\n connStatus.setText(getString(R.string.StatusRunning));\n connStatus.setTextColor(getColor(R.color.green));\n }", "public void disable() {\n \t\t\tsetEnabled(false);\n \t\t}", "void enableBtn() {\n findViewById(R.id.button_play).setEnabled(true);\n findViewById(R.id.button_pause).setEnabled(true);\n findViewById(R.id.button_reset).setEnabled(true);\n }", "public static void setDisabled(boolean _disabled) {\r\n disabled = _disabled;\r\n }", "private void setEnabled(JButton a, boolean b) {\n\t\ta.setEnabled(b);\r\n\t}", "default void onDisable() {}", "private void setAllButtonsEnabledStatus(boolean isEnabled) {\n Button showBaby = (Button) findViewById(R.id.showBaby);\n Button share = (Button) findViewById(R.id.share);\n Button loadImg1 = (Button) findViewById(R.id.loadImg1);\n Button loadImg2 = (Button) findViewById(R.id.loadImg2);\n\n showBaby.setEnabled(isEnabled);\n share.setEnabled(isEnabled);\n loadImg1.setEnabled(isEnabled);\n loadImg2.setEnabled(isEnabled);\n }", "private void habilitar() {\n\n if (i <= 0) {\n jButton4.setEnabled(false);\n } else {\n jButton4.setEnabled(true);\n }\n }", "private void disableP2Buttons(){\n game_BTN_p2_lightAttack.setEnabled(false);\n game_BTN_p2_strongAttack.setEnabled(false);\n game_BTN_p2_brutalAttack.setEnabled(false);\n }", "public void enableProductionButtons(){\n for(int i = 0; i < 3; i++){\n productionButtons[i].setText(\"Activate\");\n if (gui.getViewController().getGame().getProductionCard(i) != null){\n productionButtons[i].setEnabled(true);\n } else {\n productionButtons[i].setEnabled(false);\n }\n productionButtons[i].setToken(true);\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new ActivateProductionListener(gui,productionButtons[i], i));\n }\n\n baseProductionPanel.enableButton();\n }", "private void disableRadioButtons(){\n\n this.acOnRadioButton.setEnabled(false);\n this.acOffRadioButton.setEnabled(false);\n\n this.heatOffRadioButton.setEnabled(false);\n this.heatOnRadioButton.setEnabled(false);\n\n this.lightsOnRadioButton.setEnabled(false);\n this.lightsOffRadioButton.setEnabled(false);\n\n this.leftDoorsOpenRadioButton.setEnabled(false);\n this.leftDoorsCloseRadioButton.setEnabled(false);\n\n this.rightDoorsOpenRadioButton.setEnabled(false);\n this.rightDoorsCloseRadioButton.setEnabled(false);\n }", "private void toggleButtons(boolean enableFlag)\r\n {\r\n for (JButton btn : btnList)\r\n {\r\n btn.setEnabled(enableFlag);\r\n }\r\n }", "private void updateButtons() {\n\t\tif(buttonCount>1){\n\t\t\tremoveTableButton.setEnabled(true);\n\t\t}\n\t\telse{\n\t\t\tremoveTableButton.setEnabled(false);\n\t\t}\n\t\tif(buttonCount<tablesX.length){\n\t\t\taddTableButton.setEnabled(true);\n\t\t}\n\t\telse{\n\t\t\taddTableButton.setEnabled(false);\n\t\t}\n\t}", "private void enableButtons(){\n \n if (this.geselecteerdeStageplaats != null && this.geselecteerdeStageplaats.getBedrijfID() != null){\n this.jButtonSaveStageplaats.setEnabled(true);\n this.jButtonDeleteStageplaats.setEnabled(true);\n\n }\n else{\n this.jButtonSaveStageplaats.setEnabled(false);\n this.jButtonDeleteStageplaats.setEnabled(false);\n }\n if (this.jComboBoxGekendeBedrijven.getSelectedItem() != null){\n this.jButtonBedrijfSelecteren.setEnabled(true);\n }\n else {\n this.jButtonBedrijfSelecteren.setEnabled(false);\n }\n \n }", "protected void updateEnabled() {\n\t\tFieldGroup control = getUIControl();\n\t\tif (control != null) {\n\t\t\tCollection<? extends IRidget> ridgets = getRidgets();\n\t\t\tfor (IRidget ridget : ridgets) {\n\t\t\t\tridget.setEnabled(isEnabled());\n\t\t\t}\n\t\t\tcontrol.setEnabled(isEnabled());\n\t\t}\n\t}", "protected void setMinVolumeStateOnButtons() {\n mVolDownButton.setEnabled(false);\n mVolUpButton.setEnabled(true);\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\r\n\t\tthis.view.getPaintPanel().setMode(e.getActionCommand());\r\n\n\t\tJButton buttonPressed = (JButton) e.getSource();\r\n\r\n\t\t// lets user know which mode they're in by disabling button\r\n\t\tif (buttonPressed.isSelected() != true) {\r\n\t\t\tbuttonPressed.setEnabled(false);\r\n\t\t}\r\n\t\tfor (JButton tempButton : buttons) {\r\n\t\t\tif (buttonPressed != tempButton) {\r\n\t\t\t\ttempButton.setEnabled(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(e.getActionCommand());\r\n\t}", "@Override\n public java.lang.Object getUilButtonDisabledColor() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (UIL_BUTTON_DISABLED_COLOR_);\n return (java.lang.Object)retnValue;\n }", "private void toggleButtonsEnabled() {\r\n final Button headsBtn = findViewById(R.id.b_heads);\r\n final Button tailsBtn = findViewById(R.id.b_tails);\r\n final Button startBtn = findViewById(R.id.b_startGame);\r\n\r\n headsBtn.setEnabled(false);\r\n tailsBtn.setEnabled(false);\r\n startBtn.setEnabled(true);\r\n }", "@Test\r\n\tpublic void testButtonPressedDisabled() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tbutton.disable();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "private void reEnableCopyButtons() {\n // re-enable the buttons the relevant buttons\n copyToASpaceButton.setEnabled(true);\n repositoryCheckButton.setEnabled(true);\n copyProgressBar.setValue(0);\n\n if (copyStopped) {\n if (ascopy != null) ascopy.saveURIMaps();\n copyStopped = false;\n copyProgressBar.setString(\"Cancelled Copy Process ...\");\n } else {\n copyProgressBar.setString(\"Done\");\n }\n }", "public void editButtonClicked() {\n setButtonsDisabled(false, true, true);\n setAllFieldsAndSliderDisabled(false);\n }", "public static void enableButtons(ArrayList<JButton> gameButton){\n for(int i=0; i<gameButton.size(); ++i){\n gameButton.get(i).setEnabled(true);\n }\n }", "private void updateTabButtons() {\n\t\tif (currentTab == null || currentTab.equals(\"history\")) {\n\t\t\thistory.setDisable(true);\n\t\t\tlanguage.setDisable(false);\n\t\t} else if (currentTab == null || currentTab.equals(\"language\")) {\n\t\t\tlanguage.setDisable(true);\n\t\t\thistory.setDisable(false);\n\t\t}\n\t}", "@Override\n public void setUilButtonDisabledLabelColor(java.lang.Object uilButtonDisabledLabelColor) throws G2AccessException {\n setAttributeValue (UIL_BUTTON_DISABLED_LABEL_COLOR_, uilButtonDisabledLabelColor);\n }", "@Override\n public java.lang.Object getUilButtonDisabledLabelColor() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (UIL_BUTTON_DISABLED_LABEL_COLOR_);\n return (java.lang.Object)retnValue;\n }", "public void disable ( ) {\r\n\t\tenabled = false;\r\n\t}" ]
[ "0.7952833", "0.74936193", "0.7372854", "0.7301487", "0.72348607", "0.72182745", "0.72167647", "0.71256953", "0.71210504", "0.70366496", "0.684526", "0.68234915", "0.6808443", "0.67920846", "0.67749274", "0.67705137", "0.6758816", "0.675594", "0.6751444", "0.67342114", "0.67256546", "0.67089194", "0.66427404", "0.65910935", "0.658001", "0.6577204", "0.65666914", "0.6550205", "0.6543426", "0.65304625", "0.65253115", "0.652302", "0.65155315", "0.6488752", "0.6460747", "0.6441486", "0.64368814", "0.64172447", "0.6416861", "0.6411461", "0.64028466", "0.6398987", "0.6393818", "0.6385408", "0.6378459", "0.63743776", "0.637194", "0.63692963", "0.6366217", "0.63644433", "0.6355552", "0.6348351", "0.6335908", "0.6320256", "0.63122153", "0.63114303", "0.62981397", "0.62981397", "0.62971663", "0.62898695", "0.6276317", "0.6272965", "0.6272157", "0.6263971", "0.6256989", "0.6253931", "0.62501943", "0.6245894", "0.6242616", "0.6232456", "0.6223585", "0.621102", "0.62106365", "0.62073463", "0.6206191", "0.62030804", "0.6197629", "0.6187041", "0.6179255", "0.61704373", "0.6168758", "0.6162809", "0.61586624", "0.61580503", "0.6154953", "0.614957", "0.6145285", "0.61305505", "0.61241364", "0.6121496", "0.612149", "0.6119094", "0.6106168", "0.61056066", "0.60943943", "0.60913706", "0.60858005", "0.6077918", "0.6076438", "0.60726184" ]
0.77972317
1
Applied to the details text.
String pageDetails();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getInfoText();", "private void addDetail(String detail) {\n Label label = new Label();\n label.setText(\"\\u2022\" + detail);\n label.setWrapText(true);\n label.getStyleClass().add(\"cell_small_label\");\n details.getChildren().add(label);\n }", "public void setInfoText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_info_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_info_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_info_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setInfoText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void getText(){\n\t\tnoteText.setText(note.getText());\n\t}", "@Override\n protected String[] getText() {\n return new String[] {\n MyTown.instance.LOCAL.getLocalization(\"mytown.sign.sell.title\").getUnformattedText(),\n MyTown.instance.LOCAL.getLocalization(\"mytown.sign.sell.description.owner\").getUnformattedText() + \" \" + owner.getPlayerName(),\n MyTown.instance.LOCAL.getLocalization(\"mytown.sign.sell.description.price\").getUnformattedText() + price,\n restricted ? MyTown.instance.LOCAL.getLocalization(\"mytown.sign.sell.description.restricted\").getUnformattedText() : \"\"\n };\n }", "@Override\r\n\t\t\tpublic String getText() {\n\t\t\t\treturn text;\r\n\t\t\t}", "@Override\n public String toString() {\n return super.toString() + \" --> \" + getCorrectedText();\n }", "private void postInfo(String text) {\r\n\t\tLabel hLabel = new Label(labelInfo.getText());\r\n\t\thLabel.addStyleName(Styles.battle_info);\r\n\t\t//add the old info to the history\r\n\t\tvPanelInfoHistory.insert(hLabel, 0);\r\n\t\tlabelInfo.setText(SafeHtmlUtils.htmlEscape(text));\r\n\t}", "public String displayDetails()\n\t{\n\t\tString displayDetail = \"\";\n\t\t \n\t\tdisplayDetail = (\"Make of your System\\t\\t=>\\t\" + make + \n\t\t\t\t\t\t\"\\nModel of your System\\t\\t=>\\t\" + model + \n\t\t\t\t\t\t\"\\nSpeed of your System\\t\\t=>\\t\" + speed + \n\t\t\t\t\t\t\"\\nMemory of your System\\t\\t=>\\t\" + memorySize + \" MB \" +\n\t\t\t\t\t\t\"\\nHard Disk of your System\\t=>\\t\" + hardDiskSize + \" GB \" +\n\t\t\t\t\t\t\"\\nPurchase Cost of your System\\t=>\\t\" + purchaseCost);\n\t\t\n\t\treturn displayDetail;\n\t}", "private void populateQuotationDetails(QuotationDetailsDTO detail) {\n\t\t\n\t\tdecimalFormat = new DecimalFormat(\"0.00\");\n\t\t//Article Name\n\t\tif (detail.getArticleName() != null)\n\t\t\ttxtArticleName.setText(detail.getArticleName());\n\n\t\t//Charged Weight\t\t\n\t\ttxtCW.setText(decimalFormat.format(detail.getChargedWeight()));\n\n\t\t//CC Charge Type\n\t\tcbCCC.setText(optionB[detail.getCcchargeType()]);\n\t\ttxtCCCValue.setText(decimalFormat.format(detail.getCcchargeValue()));\n\t\thandleCCCTypeChange();\n\t\t\n\t\t//DC Charge\n\t\tcbDCC.setText(optionB[detail.getDcchargeType()]);\n\t\ttxtDCCValue.setText(decimalFormat.format(detail.getDcchargeValue()));\n\t\thandleDCCTypeChange();\n\t\t\n\t\t//DD Charge\n\t\tcbDDC.setText(optionC[detail.getDdchargeType()]);\t\t\n\t\ttxtDDC_minPerLR.setText(decimalFormat.format(detail.getMinDdchargeValue()));\n\t\ttxtDDC_chargeArticle.setText(decimalFormat.format(detail.getDdchargeArticle()));\n\t\thandleDDCTypeChange();\n\t\t\n\t\t//IE Charge\n\t\tcbIEC.setText(optionB[detail.getIechargeType()]);\n\t\ttxtIEC_article.setText(decimalFormat.format(detail.getIechargeValue()));\n\t\thandleIECTypeChange();\n\t\t\n\t\t//LC Charge\n\t\tcbLoadingCharge.setText(optionB[detail.getLcchargeType()]);\n\t\ttxtLC_article.setText(decimalFormat.format(detail.getLcchargeValue()));\n\t\thandleLCTypeChange();\n\t}", "private void fillString() {\n information = new String[4];\n information[0] = htmlConverter.fromHtml(event.getSummary()).toString();\n information[1] = event.getBeginTime() + \" - \" + event.getEndTime();\n information[2] = htmlConverter.fromHtml(event.getLocation()).toString();\n information[3] = htmlConverter.fromHtml(event.getDescription()).toString();\n }", "@Override\n \t\t\t\tpublic void modifyText(ModifyEvent e) {\n \t\t\t\t\tString result = fp.getValidator().validate(text.getText());\n \t\t\t\t\tif (result == null)\n \t\t\t\t\t\tdecorator.hide();\n \t\t\t\t\telse {\n \t\t\t\t\t\tdecorator.setDescriptionText(result);\n \t\t\t\t\t\tdecorator.show();\n \t\t\t\t\t}\n \t\t\t\t\tupdateState();\n \t\t\t\t}", "void showOrdersText();", "@Override\r\n\tpublic void setText(String text) {\n\t\tsuper.setText(foundedRecords + \" : \" +text);\r\n\t}", "public void setDetails(String details) {\n this.details = details;\n }", "public void setDetails(String details) {\n\t\tthis.details = details;\n\t}", "java.lang.String getDetails();", "private void viewExtractedData() {\n txtViewer.setText(extractedData);\n }", "void displayDetails(String title, String description);", "public String showDetails() {\n\t\treturn \"Person Name is : \" + name + \"\\n\" + \"Person Address is : \" + address;\n\t}", "@Override\n\tpublic String getText() {\n\t\treturn \"MMS: \" + text;\n\t}", "public String verifytextYourPersonalDetail() {\n waitUntilElementToBeClickable(_personalText, 20);\n Reporter.addStepLog(\"Verify personal Text: displayed on personal text page \" + _personalText.toString());\n log.info(\"Verify personal Text: displayed on personal text page\" + _personalText.toString());\n return getTextFromElement(_personalText);\n\n }", "public void setInfoText(String infoText);", "public TextView getDetailTextView() {\n return mDetail;\n }", "@Override\n\tpublic void addDetails(String details) {\n\t\tthis.details = details;\n\t}", "abstract String getDetails();", "@Override\r\n\tpublic void setText() {\n\t\t\r\n\t}", "void antsInfo(String text);", "public void autoDetails() {\n\t\t\r\n\t}", "@Override\n public String toString() {\n return text;\n }", "public void setDetails(String details) {\n this.mDetails = details;\n }", "String getTransformedText();", "public String getDetails() {\n if(details == null)\n return \"\";\n else return details;\n }", "public void populateDetails() {\n\n txtpn_NameHeading.setText(selStudent.getfName() + \" \" + selStudent.getlName());\n\n txtpn_RacesComplete.setText(String.valueOf(dataCur.countNumberRaces(selStudent.getId())));\n txtpn_DaysAbsent.setText(String.valueOf(selStudent.getAttend()));\n txtpn_AgeGroup.setText(String.valueOf(selStudent.getAge()));\n\n }", "void baInfo(String text);", "public void setDetails(String details) {\n\t\tif(details != null)\n\t\t\tthis.details = details;\n\t}", "private void GetDetailAnalysisText() {\n\t\tMap<Integer, ArrayList<ReportPluDayComboModifier>> combMap = getCombItemMap(this.comb);\n\n\t\tComparatorPluDayItem comparatorPluDayItem = new ComparatorPluDayItem();\n\t\tCollections.sort(reportPluDayItems, comparatorPluDayItem);\n//\t\tList<ReportPluDayItem> cop = new ArrayList<ReportPluDayItem>();\n\t\tint allQty = 0;\n\t\tBigDecimal allAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\t\tboolean showMainCategory = true;\n//\t\t\tint mainCategoryId = 0;\n\t\tboolean lastLinePrinted = false;\n//\t\tBigDecimal categoryAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\tString name = \"\";\n//\t\tint id = 0;\n\t\tMap<Integer, ReportPluDayItem> map = new HashMap<Integer, ReportPluDayItem>();\n\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n\n\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n\t\t\t//ObjectFactory.getInstance().getReportPluDayItem(reportPluDayItem);\n\t\t\tif(map.containsKey(reportPluDayItem.getItemMainCategoryId().intValue())){\n\t\t\t\tReportPluDayItem amountReportPluDayItem = map.get(reportPluDayItem.getItemMainCategoryId().intValue());\n\t\t\t\tBigDecimal amount = BH.add(BH.getBD(amountReportPluDayItem.getItemAmount()), BH.getBD(reportPluDayItem.getItemAmount()), false);\n\t\t\t\tamountReportPluDayItem.setItemAmount(amount.toString());\n\t\t\t}else{\n\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n\t\t\t\trr.setItemMainCategoryId(reportPluDayItem.getItemMainCategoryId());\n\t\t\t\trr.setItemMainCategoryName(reportPluDayItem.getItemMainCategoryName());\n\t\t\t\trr.setItemAmount(BH.formatMoney(reportPluDayItem.getItemAmount()));\n\t\t\t\tmap.put(reportPluDayItem.getItemMainCategoryId().intValue(), rr);\n\t\t\t}\n//\t\t\t\tif(mainCategoryId == 0 || mainCategoryId == reportPluDayItem.getItemMainCategoryId().intValue()){\n//\t\t\t\t\tcategoryAmount = BH.add(categoryAmount,\n//\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\t\t\t\t\tname = reportPluDayItem.getItemMainCategoryName();\n//\t\t\t\t\tid = reportPluDayItem.getItemMainCategoryId().intValue();\n//\n//\t\t\t\t\tif(mainCategoryId == 0)\n//\t\t\t\t\t\tmainCategoryId = id;\n//\n//\t\t\t\t\tif( j == reportPluDayItems.size() - 1){\n//\t\t\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n//\t\t\t\t\t\trr.setItemMainCategoryId(id);\n//\t\t\t\t\t\trr.setItemMainCategoryName(name);\n//\t\t\t\t\t\trr.setItemAmount(categoryAmount.toString());\n//\t\t\t\t\t\tcop.add(rr);\n//\t\t\t\t\t}\n//\t\t\t\t}else{\n//\t\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n//\t\t\t\t\trr.setItemMainCategoryId(id);\n//\t\t\t\t\trr.setItemMainCategoryName(name);\n//\t\t\t\t\trr.setItemAmount(categoryAmount.toString());\n//\t\t\t\t\tcop.add(rr);\n//\t\t\t\t\tname = reportPluDayItem.getItemMainCategoryName();\n//\t\t\t\t\tid = reportPluDayItem.getItemMainCategoryId().intValue();\n//\t\t\t\t\tmainCategoryId = id;\n//\t\t\t\t\tcategoryAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\t\t\t\tcategoryAmount = BH.add(categoryAmount,\n//\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\n//\t\t\t\t}\n\t\t}\n\n\t\tIterator<Map.Entry<Integer, ReportPluDayItem>> entries = map.entrySet().iterator();\n\t\tboolean isFirst = true;\n\t\twhile (entries.hasNext()){\n\t\t\tMap.Entry<Integer, ReportPluDayItem> entry = entries.next();\n\t\t\tif(!isFirst){\n\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t}\n\t\t\tisFirst = false;\n\t\t\tReportPluDayItem amontReportPluDayItem = entry.getValue();\n\t\t\tthis.AddItem(amontReportPluDayItem.getItemMainCategoryName(), \"\", \"\", BH.formatMoney(amontReportPluDayItem.getItemAmount()).toString(), 1);\n\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n\n\t\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n\t\t\t\tif (amontReportPluDayItem.getItemMainCategoryId().intValue() == reportPluDayItem.getItemMainCategoryId().intValue()) {\n\t\t\t\t\t// Print comb modifier\n\t\t\t\t\tint itmId = reportPluDayItem.getItemDetailId().intValue();\n\t\t\t\t\tArrayList<ReportPluDayComboModifier> comItems = combMap.get(itmId);\n\t\t\t\t\tif (comItems != null && comItems.size() > 0) {\n\n\t\t\t\t\t\tint mm = 0;\n\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), BH.formatMoney(reportPluDayItem.getItemPrice()),\n\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(),\n\t\t\t\t\t\t\t\tBH.formatThree(reportPluDayItem.getItemAmount()), 1);\n\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t\t\t\tfor (mm = 0; mm < comItems.size(); mm++) {\n\t\t\t\t\t\t\tReportPluDayComboModifier pluModifier = comItems.get(mm);\n\t\t\t\t\t\t\tint count = pluModifier.getModifierCount().intValue() - pluModifier.getVoidModifierCount().intValue() - pluModifier.getBillVoidCount().intValue();\n\t\t\t\t\t\t\tif (count > 0) {\n\t\t\t\t\t\t\t\tBigDecimal modifierAmount = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierPrice()), true);\n\t\t\t\t\t\t\t\tBigDecimal modifierPrice = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierItemPrice()), true);\n\t\t\t\t\t\t\t\tthis.AddItem(\" (\" + pluModifier.getModifierName() + \")\",\n\t\t\t\t\t\t\t\t\t\t\"(\" + BH.formatThree(modifierPrice.toString()) + \")\", \"(\" + String.valueOf(count) + \")\", \"(\" + BH.formatThree(modifierAmount.toString())+ \")\", 1);\n\t\t\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mm == comItems.size() && mm > 0) {\n\t\t\t\t\t\t\tif (!lastLinePrinted)\n\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t\t\t\t\tlastLinePrinted = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), BH.formatMoney(reportPluDayItem.getItemPrice()),\n\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(), \"\" + BH.formatMoney(reportPluDayItem.getItemAmount()), 1);\n\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t}\n\t\t\t\t\t//END Comb modifier print\n\t\t\t\t\tallQty += reportPluDayItem.getItemCount();\n\t\t\t\t\tallAmount = BH.add(allAmount,\n\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tfor(ReportPluDayItem category : cop) {\n//\t\t\t\tif(cop.indexOf(category) != 0){\n//\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t}\n//\t\t\t\tthis.AddItem(category.getItemMainCategoryName(), \"\", \"\", category.getItemAmount(), 1);\n//\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n//\n//\t\t\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n////\t\t\t\t\tif (mainCategoryId != reportPluDayItem.getItemMainCategoryId().intValue()) {\n////\t\t\t\t\t\tif (mainCategoryId != 0) {\n////\t\t\t\t\t\t\tif (!lastLinePrinted)\n////\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n////\t\t\t\t\t\t\tlastLinePrinted = true;\n////\t\t\t\t\t\t}\n////\t\t\t\t\t\tmainCategoryId = reportPluDayItem.getItemMainCategoryId().intValue();\n////\t\t\t\t\t\tshowMainCategory = true;\n////\t\t\t\t\t}\n////\t\t\t\t\tif (showMainCategory) {\n////\t\t\t\t\t\tthis.AddItem(reportPluDayItem.getItemMainCategoryName(), \"\", \"\", \"\", 1);\n////\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n////\t\t\t\t\t\tshowMainCategory = false;\n////\t\t\t\t\t\tlastLinePrinted = true;\n////\t\t\t\t\t}\n//\t\t\t\t\tif (category.getItemMainCategoryId().intValue() == reportPluDayItem.getItemMainCategoryId().intValue()) {\n//\t\t\t\t\t\t//Bob: Print comb modifier\n//\t\t\t\t\t\tint itmId = reportPluDayItem.getItemDetailId().intValue();\n//\t\t\t\t\t\tArrayList<ReportPluDayComboModifier> comItems = combMap.get(itmId);\n//\t\t\t\t\t\tif (comItems != null && comItems.size() > 0) {\n//\n//\t\t\t\t\t\t\tint mm = 0;\n//\t\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), reportPluDayItem.getItemPrice(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemAmount(), 1);\n//\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t\t\t\tfor (mm = 0; mm < comItems.size(); mm++) {\n//\t\t\t\t\t\t\t\tReportPluDayComboModifier pluModifier = comItems.get(mm);\n//\t\t\t\t\t\t\t\tint count = pluModifier.getModifierCount().intValue() - pluModifier.getVoidModifierCount().intValue() - pluModifier.getBillVoidCount().intValue();\n//\t\t\t\t\t\t\t\tif (count > 0) {\n//\t\t\t\t\t\t\t\t\tBigDecimal modifierAmount = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierPrice()), true);\n//\t\t\t\t\t\t\t\t\tBigDecimal modifierPrice = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierItemPrice()), true);\n//\t\t\t\t\t\t\t\t\tthis.AddItem(\" (\" + pluModifier.getModifierName() + \")\",\n//\t\t\t\t\t\t\t\t\t\t\t\"(\" + modifierPrice.toString() + \")\", \"(\" + String.valueOf(count) + \")\", \"(\" + modifierAmount.toString() + \")\", 1);\n//\t\t\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tif (mm == comItems.size() && mm > 0) {\n//\t\t\t\t\t\t\t\tif (!lastLinePrinted)\n//\t\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t\t\t\t\tlastLinePrinted = true;\n//\t\t\t\t\t\t\t}\n//\n//\t\t\t\t\t\t} else {\n//\n//\t\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), reportPluDayItem.getItemPrice(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(), \"\" + reportPluDayItem.getItemAmount(), 1);\n//\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t//END Comb modifier print\n//\t\t\t\t\t\tallQty += reportPluDayItem.getItemCount();\n//\t\t\t\t\t\tallAmount = BH.add(allAmount,\n//\t\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n\t\tif (allQty != 0) {\n\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\tthis.AddItem(PrintService.instance.getResources().getString(R.string.total), \"\", allQty + \"\", BH.formatMoney(allAmount.toString()), 1);\n\t\t}\n\n\n\t}", "public void printDetails()\n {\n System.out.println(title);\n System.out.println(\"by \" + author);\n System.out.println(\"no. of pages: \" + pages);\n \n if(refNumber == \"\"){\n System.out.println(\"reference no.: zzz\");\n }\n else{\n System.out.println(\"reference no.: \" + refNumber);\n }\n \n System.out.println(\"no. of times borrowed: \" + borrowed);\n }", "public String displayText(){\n String displayText = \"\";\n displayText = \"Title: \" + getTitle() + \"\\nAuthor: \" + getAuthor() + \"\\nDescription: \" +getDescription();\n\n return displayText;\n\n }", "private void textInfoBottom(JPanel panel_TextInfo) {\n\t\tcontentPane.setLayout(gl_contentPane_1);\n\t\ttxtrPreparing = new JTextArea();\n\t\ttxtrPreparing.setBackground(Color.WHITE);\n\t\ttxtrPreparing.setText(\"Preparing... \");\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBackground(Color.WHITE);\n\t\ttextArea.setText(\" $10\");\n\t\tGroupLayout gl_panel_TextInfo = new GroupLayout(panel_TextInfo);\n\t\tgl_panel_TextInfo.setHorizontalGroup(\n\t\t\tgl_panel_TextInfo.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_TextInfo.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(txtrPreparing, GroupLayout.PREFERRED_SIZE, 232, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addComponent(textArea, GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE))\n\t\t);\n\t\tgl_panel_TextInfo.setVerticalGroup(\n\t\t\tgl_panel_TextInfo.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_TextInfo.createSequentialGroup()\n\t\t\t\t\t.addGroup(gl_panel_TextInfo.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(txtrPreparing, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(textArea, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n\t\t);\n\t\tpanel_TextInfo.setLayout(gl_panel_TextInfo);\n\t}", "public void renderText(TextRenderInfo renderInfo) {\n \tsuper.renderText(renderInfo);\n\t\tpage.setText(getResultantText());\n \twriteText();\n }", "@Override\n public String toString() {\n return name + \":\" + text;\n }", "public String getDetails() {\n return this.details;\n }", "public void setPresentationDetails(String details) {\r\n this.details = details;\r\n }", "private Text initDescriptionText(){\n Text description = new Text(Values.DESCRIPTION);\n description.setStyle(\"-fx-font-size: 18;\");\n description.setTextAlignment(TextAlignment.CENTER);\n description.wrappingWidthProperty().bind(widthProperty());\n return description;\n }", "String getDisplayText();", "String getDisplay_description();", "@Override\r\n\tpublic String toString() {\r\n\t\treturn text.toString();\r\n\t}", "@Override\n public String displayUponBeingSelected() {\n\n StringBuilder sb = new StringBuilder();\n sb.append(String.format(\"Information about '%s'\\n\", foodLabel));\n sb.append(String.format(\"Brand: %s\\n\", brand));\n sb.append(String.format(\"Category: %s\\n\", category));\n sb.append(String.format(\"Item type: %s\\n\", StringUtils.capitalize(categoryLabel)));\n sb.append(String.format(\"Measure(s): %s\\n\", StringUtils.join(measures, \", \")));\n sb.append(String.format(\"Food ID: %s\\n\", foodId));\n sb.append(String.format(\"Food URI: %s\\n\", foodUri));\n sb.append(String.format(\"Image link: %s\\n\", imageLink));\n sb.append(String.format(\"Yielding search term: %s\\n\", yieldingSearchTerm));\n sb.append(formatBasicNutrients());\n\n return sb.toString();\n\n }", "private static Spanned formatPlaceDetails(Resources res, CharSequence name, CharSequence address) {\n Log.e(TAG, res.getString(R.string.place_details, name, address));\n return Html.fromHtml(res.getString(R.string.place_details, name, address));\n }", "public void printDetails()\n {\n super.printDetails();\n System.out.println(\"The author is \" + author + \" and the isbn is \" + isbn); \n }", "public String getDisplayText() {\n\n\t\tString s = FindAndReplace.replace(this.getDescription(), \"<br>\", \"\\n\", true);\n\t\treturn removeEntityRefs(s);\n\t}", "@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}", "public String getDetails() {\n\t\treturn details;\n\t}", "public String getDetails() {\n\t\treturn details;\n\t}", "public abstract String getFormattedContent();", "public static void majAffichage(String info){\n\t\tInterface.area_Text.setText(\"\\n\" + info);\n\t}", "public String getInformation() {\n \treturn \"This is a Maths Assessment\" +\n \t\t\t \"\\nNumber of questions: \" + Integer.toString(numQuestions) + \n \t\t\t \"\\nClosing Date: \" + closingDate;\n }", "private void txt() {\n\n\t}", "public abstract CharSequence getSummary();", "private PdfPCell getDetailCell(String text, int align)\n {\n return getDetailCell(text, align, Color.WHITE);\n }", "protected String getTextContent()\n {\n return super.getText().trim();\n }", "public void setExtraText(String string) {\n\t\t\n\t}", "@Override\r\n\tpublic void getInfo() {\n\t\tSystem.out.println(\"=== 선생 정보 ===\");\r\n\t\tsuper.getInfo();\r\n\t\tSystem.out.println(\"과목 : \" + text);\r\n\t}", "protected String description() {\r\n\t\treturn \"Exam: duration \" + duration + \" minutes, weight \" + this.getWeight() + \"%\";\r\n\t}", "public String printDetails(){\n System.out.println(\"This is the Title of the book:\");\n return title;\n System.out.println(\"This is the Author of the book:\");\n return author;\n System.out.println(\"This is how many pages there are:\");\n return pages;\n System.out.println(\"This is the Ref Number:\");\n return refNumber;\n \n }", "public void printDetails() {\n PrintFormatter pf = new PrintFormatter();\n\n String first = \"############# Armor Details #############\";\n System.out.println(first);\n pf.formatText(first.length(), \"# Items stats for: \" + name);\n pf.formatText(first.length(), \"# Armor Type: \" + itemsType);\n pf.formatText(first.length(), \"# Slot: \" + slot);\n pf.formatText(first.length(), \"# Armor level: \" + level);\n\n if (baseStats.getHealth() > 0)\n pf.formatText(first.length(), \"# Bonus HP: \" + baseStats.getHealth());\n\n if (baseStats.getStrength() > 0)\n pf.formatText(first.length(), \"# Bonus Str: \" + baseStats.getStrength());\n\n if (baseStats.getDexterity() > 0)\n pf.formatText(first.length(), \"# Bonus Dex: \" + baseStats.getDexterity());\n\n if (baseStats.getIntelligence() > 0)\n pf.formatText(first.length(), \"# Bonus Int: \" + baseStats.getIntelligence());\n\n System.out.println(\"########################################\");\n\n }", "void insertDetailCaptionByPost(Detail detail);", "public String getText() {\n return (getFieldValue(fields[0]) + \".\" + getFieldValue(fields[1]) + \".\" + getFieldValue(fields[2]) + \".\" + getFieldValue(fields[3]));\n }", "public String getDetails() {\n return details;\n }", "@Override\n public void showText(String s){\n }", "public String getDisplayText() {\r\n\t\treturn Strings.isNOTNullOrEmpty(this.getText())\r\n\t\t\t\t\t\t? this.getText()\r\n\t\t\t\t\t\t: Strings.isNOTNullOrEmpty(this.getDescription())\r\n\t\t\t\t\t\t\t\t? this.getDescription()\r\n\t\t\t\t\t\t\t\t: this.getUrl() != null\r\n\t\t\t\t\t\t\t\t\t\t? this.getUrl().asString()\r\n\t\t\t\t\t\t\t\t\t\t: \"NO TEXT DEFINED\";\r\n\t}", "public MentorConnectRequestCompose addTextDesc()\n\t{\n\t\tmentorConnectRequestObjects.queryText.sendKeys(\"Sharath test\");\n\t\tmentorConnectRequestObjects.addDescription.sendKeys(mentorConnectRequestObjects.details);\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}", "public void setDetails(String details) {\n Errors e = Errors.getInstance();\n if (details.length() > 50) {\n e.setError(\"Event details cannot be over 50 characters long\");\n }\n else\n this.details = details;\n }", "public void printDetails() {\n System.out.println(\"Name: \" + getFirstName() + \" \" + getLastName());\n System.out.println(\"Height: \" + getHeight() + \" inches\");\n System.out.println(\"Weight: \" + (int) getWeight() + \" pounds\");\n\n // unary, binary, ternary(3)\n // ternary operator\n String travelMessage = canTravel ? \"Does travel\" : \"Does not travel\";\n System.out.println(travelMessage);\n\n String smokeMessage = smokes ? \"Does smoke\" : \"Does not smoke\";\n System.out.println(smokeMessage);\n\n // ternary operators can replace simple if-else statement\n // System.out.print(\"Does \");\n // if (!isCanTravel())\n // System.out.print(\"not \");\n // System.out.println(\"travel\");\n // System.out.print(\"Does \");\n // if (!isSmokes())\n // System.out.print(\"not \");\n // System.out.println(\"smoke\");\n }", "@Override\n public String getDescription() {\n return descriptionText;\n }", "@Override\n public String toString() {\n return detail;\n }", "@Override\n public String toString() {\n return this.text;\n }", "@Override\n public String toString() {\n return this.text;\n }", "private void prepareInformation() {\r\n TextView textDate = findViewById(R.id.textDate);\r\n String date = event.getStartDateFormatted() + \" - \" + event.getEndDateFormatted();\r\n textDate.setText(date);\r\n\r\n TextView textNumber = findViewById(R.id.textNumber);\r\n textNumber.setText(event.contactNumber);\r\n\r\n TextView textWebsite = findViewById(R.id.textWebsite);\r\n textWebsite.setText(event.homePage);\r\n\r\n TextView textMail = findViewById(R.id.textMail);\r\n textMail.setText(event.mail);\r\n\r\n TextView textDescription = findViewById(R.id.textDescription);\r\n textDescription.setText(event.description);\r\n }", "public String getDescriptionText() {\n return m_DescriptionText;\n }", "public void setDetails(){\n\n TextView moviename = (TextView) findViewById(R.id.moviename);\n TextView moviedate = (TextView) findViewById(R.id.moviedate);\n TextView theatre = (TextView) findViewById(R.id.theatre);\n\n TextView seats = (TextView) findViewById(R.id.seats);\n\n moviename.setText(ticket.movieName);\n moviedate.setText(ticket.getMovieDate());\n theatre.setText(ticket.theatreDetails);\n\n seats.setText(ticket.seats);\n }", "public void select_details(int icon, String text);", "private void refreshInformation () {\n if (textInformation != null) {\n String messageInfo = \"\";\n\n while (!listMessageInfo.isEmpty()) {\n messageInfo = listMessageInfo.getLast() + \"\\n\" + messageInfo;\n listMessageInfo.removeLast();\n }\n\n if (textInformation.getText() != null) {\n textInformation.setText(messageInfo + textInformation.getText());\n } else {\n textInformation.setText(messageInfo);\n }\n }\n }", "private void refreshDetails() {\r\n\t\tdetailsLabel.setText( getSummary() );\r\n\t\tdetailsLabel.repaint();\r\n\t}", "@Override\n\tpublic String getNotes() {\n\t\treturn text;\n\t}", "private Spanned getCompleteText() {\n // Used to add tags to text to improve layout\n SpannableStringBuilder complete = new SpannableStringBuilder();\n String[] array = getResources().getStringArray(R.array.complete);\n for (int i = 0; i < array.length; i++) {\n\n // Separates sections header and main text\n if ((i % 2) == 0) {\n\n // Add tags to header to help separate sections\n complete.append(Html.fromHtml(\"<b>\" + array[i] + \"</b>\" + \"<br>\" + \"<br>\"));\n } else {\n complete.append(Html.fromHtml(array[i] + \"<br>\"));\n }\n }\n return complete;\n }", "@Override\n public String getDescription() {\n return \"Digital goods feedback\";\n }", "java.lang.String getExperienceText();", "@Override public String toString() { return getDisplayedText(); }", "public void showDetails (EventTable details) {\n\t\tdetailDisplay.show(\"details\");\n\t\tthis.details.showDetails(details);\n\t}", "private void makeDescription() {\n List switchInfo = InteractDB.getTheList(InteractDB.getFromDB(\"SwitchInfo\", idSwitch.toString()));\n\n DescriptionGen descr = new DescriptionGen(switchInfo);\n description = descr.getDescription();\n }", "public String getDetails() {\n return mDetails;\n }", "public String getDetails() {\n return mDetails;\n }", "@Override\n\tpublic String getDesription() {\n\t\treturn \"Implemented by Dong Zihe and Huang Haowei based on \\\"Dong Z, Wen L, Huang H, et al. \"\n\t\t\t\t+ \"CFS: A Behavioral Similarity Algorithm for Process Models Based on \"\n\t\t\t\t+ \"Complete Firing Sequences[C]//On the Move to Meaningful Internet Systems: \"\n\t\t\t\t+ \"OTM 2014 Conferences. Springer Berlin Heidelberg, 2014: 202-219.\\\"\";\n\t}", "@Override\n public String getRecordDetail() {\n return \"[\" + type + \"] \"\n + \"[\" + people + \" pax] \"\n + \"[\" + \"Total: $\" + amount + \"] \"\n + \"[\" + amountToMoney() + \" per person] \"\n + nameList;\n }", "public void setDetails(String mDetails) {\n this.mDetails = mDetails;\n }", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();" ]
[ "0.6311532", "0.6221266", "0.61536086", "0.6131107", "0.6103792", "0.61021376", "0.6042641", "0.59829414", "0.5977002", "0.59762937", "0.5976115", "0.5969192", "0.5961888", "0.59606254", "0.5927032", "0.5921539", "0.5912591", "0.5907807", "0.5895953", "0.589077", "0.58609515", "0.58355033", "0.5833005", "0.5818302", "0.5794966", "0.57941604", "0.57878846", "0.5785459", "0.578017", "0.5755167", "0.57284784", "0.57251614", "0.57184505", "0.5714255", "0.5708551", "0.570841", "0.5700741", "0.57000095", "0.56921285", "0.5691791", "0.5681377", "0.56776375", "0.56775546", "0.5665682", "0.5662699", "0.56437516", "0.56094515", "0.5606008", "0.56045717", "0.560427", "0.5584728", "0.5584165", "0.5573092", "0.55718046", "0.55718046", "0.5570268", "0.5564467", "0.55641127", "0.55606824", "0.55599535", "0.55466056", "0.55399495", "0.55356234", "0.552724", "0.55268395", "0.55254513", "0.55248797", "0.5522843", "0.551754", "0.5516216", "0.55160266", "0.5505873", "0.5505205", "0.5502685", "0.55014545", "0.54923105", "0.5479746", "0.54770344", "0.54770344", "0.547055", "0.54700214", "0.5469509", "0.5469259", "0.54624176", "0.5459597", "0.5452548", "0.5448336", "0.5446794", "0.544561", "0.5445502", "0.5444642", "0.5441563", "0.5439754", "0.5439754", "0.54343903", "0.5427355", "0.54221416", "0.54192847", "0.54192847", "0.54192847", "0.54192847" ]
0.0
-1
Ignore events if disabled.
@Override public void onBrowserEvent(Event event) { if (disabled) { return; } super.onBrowserEvent(event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean eventEnabled(AWTEvent e) {\n return false;\n }", "@Override\n public boolean usesEvents()\n {\n return false;\n }", "public boolean setEventsEnabled(boolean enabled);", "protected void onDisabled() {\n // Do nothing.\n }", "@Override\n public void onDisabled() {\n }", "boolean eventEnabled(AWTEvent e) {\n if (e.id == ActionEvent.ACTION_PERFORMED) {\n if ((eventMask & AWTEvent.ACTION_EVENT_MASK) != 0 ||\n actionListener != null) {\n return true;\n }\n return false;\n }\n return super.eventEnabled(e);\n }", "private\n boolean\n allowEvents()\n {\n return itsAllowEvents;\n }", "@Override\r\n public void onDisabled(Context context) {\n }", "@Override\r\n public void onDisabled(Context context) {\n }", "private void fireOutputDisabled() {\n previousEvent = OUTPUT_DISABLED;\n ownerPool.getIPCEventProcessor().execute(new OrderedExecutorService.KeyRunnable<StreamOutputChannel<PAYLOAD>>() {\n\n @Override\n public void run() {\n for (IPCEventListener l : outputDisableListeners) {\n l.triggered(outputDisabledEvent);\n }\n }\n\n @Override\n public StreamOutputChannel<PAYLOAD> getKey() {\n return StreamOutputChannel.this;\n }\n });\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "@Override\n public void onDisabled(Context context) {\n }", "default void onDisable() {}", "public boolean isEventsSuppressed() {\r\n\t\treturn eventsSuppressed;\r\n\t}", "public void onDisable() {\n }", "public void onDisable() {\n }", "public void onDisable() {\n }", "public void onDisable() {\r\n }", "@Override\n public void onDisabled(Context context) {\n super.onDisabled(context);\n }", "public void onDisabled(Context context) {\n\t}", "@Override\r\n\tpublic boolean handleEvent(IEvent event) {\n\t\treturn false;\r\n\t}", "@KafkaHandler(isDefault = true)\n public void ignoreUnhandledEvents(Object event) {\n log.trace(\"Ignoring event={} with no handler\", event);\n }", "@Override\n public void onDisable() {\n }", "public abstract void onDisable();", "public void setDisabled(EventType ore, boolean d) {\r\n\t\tif (d) disabled |= 1L << ore.ordinal();\r\n\t\telse disabled &= ~(1L << ore.ordinal());\r\n\t}", "public void onDisable()\n {\n }", "@Override\n\tpublic boolean beforeHandle(BaseEvent event) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void onDisable() {\n\t}", "@Override\n\tpublic void onDisable() {\n\n\t}", "@Override\n\tpublic void onDisable() {\n\t\t\n\t}", "public abstract void Disabled();", "public void setIgnoreTextEvent(boolean bIgnoreTextEvent) {\n m_bIgnoreTextEvent = bIgnoreTextEvent;\n }", "protected void clearEvents() {\n\t\tsCIButtons.clearEvents();\n\t\tsCILogicUnit.clearEvents();\n\t\tsCIState.clearEvents();\n\n\t\tfor (int i = 0; i < timeEvents.length; i++) {\n\t\t\ttimeEvents[i] = false;\n\t\t}\n\t}", "public interface NoEventType {\n\n}", "@Override\n\tprotected boolean isBindEventBusHere() {\n\t\treturn false;\n\t}", "public void disable();", "@Override\n public void setBlockEvents(boolean block) {\n\n }", "boolean disableMonitoring();", "@Override\n public void onDisable() {\n super.onDisable();\n running = false;\n }", "public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\tfilter.setEnabled(false);\r\n\t\tsave.setEnabled(false);\r\n\t\t//load.setEnabled(false);\r\n\t}", "void noResponderFor(Object eventSelector)\n {\n }", "private boolean ignoreEvent(String roomId) {\n if (mIsRetrievingLeftRooms && !TextUtils.isEmpty(roomId)) {\n return null != mLeftRoomsStore.getRoom(roomId);\n } else {\n return false;\n }\n }", "void unsetEvent();", "public void disable()\r\n\t{\r\n\t\tenabled = false;\r\n\t}", "void setWriteEventKeysOnly(boolean writeEventKeysOnly);", "public void disableInputs();", "void stopPumpingEvents();", "public static final boolean isEventAllowedWithoutLogin (String event) {\n for (String str : ALLOWED_EVENTS_WITHOUT_LOGIN) {\n if (str.equals(event)) {\n return true;\n }\n }\n\n return false;\n }", "void disableNotifications();", "protected void clearOutEvents() {\n\t}", "protected void clearOutEvents() {\n\t}", "@Override\n public void onDisable() {\n \tgetLogger().info(\"onDisable has been invoked!\");\n }", "@Override\n public void onDisabled(Context context) {\n Log.d(TAG, \"onDisabled\");\n //Class clazz = WidgetBroadcastReceiver.class;\n\n PackageManager pm = context.getPackageManager();\n pm.setComponentEnabledSetting(new ComponentName(\"org.nilriri.LunarCalendar\", \".widget.BroadcastReceiver\"), PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);\n }", "boolean impliesIgnoreEventTypeMask( WrapperEventPermission p2 )\n {\n if ( getName().equals( p2.getName() ) )\n {\n return true;\n }\n \n if ( p2.getName().endsWith( \"*\" ) )\n {\n if ( getName().startsWith( p2.getName().substring( 0, p2.getName().length() - 1 ) ) )\n {\n return true;\n }\n }\n return false;\n }", "public void setDisabled() {\n\t\tdisabled = true;\n\t}", "protected void onEnabled(boolean joining) throws ExoPlaybackException {\n // Do nothing.\n }", "void disable();", "void disable();", "protected abstract void disable();", "public void disable() {\r\n m_enabled = false;\r\n useOutput(0, 0);\r\n }", "public int[] enabledEvents() {\n boolean[] userRecordableEvts0 = userRecordableEvts;\n\n int[] enabledEvts = new int[len];\n int enabledEvtsLen = 0;\n\n for (int type = 0; type < len; type++) {\n if (userRecordableEvts0[type])\n enabledEvts[enabledEvtsLen++] = type;\n }\n\n return U.unique(enabledEvts, enabledEvtsLen, inclEvtTypes, inclEvtTypes.length);\n }", "@Override\n public void onDisable() {\n getLogger().info(\"Successfully disabled.\");\n }", "@Override\n public boolean isEnabled() {\n return false;\n }" ]
[ "0.762387", "0.7223036", "0.71399885", "0.7131729", "0.6688703", "0.65490556", "0.64457816", "0.6387836", "0.6387836", "0.6380683", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63612765", "0.63266313", "0.6302508", "0.62072486", "0.619675", "0.619675", "0.6193512", "0.61832374", "0.6171379", "0.61639017", "0.61571836", "0.61409366", "0.6121945", "0.6103732", "0.6092781", "0.6035024", "0.59869605", "0.5978158", "0.59527665", "0.5939363", "0.5931715", "0.59232366", "0.5884718", "0.58742636", "0.58680826", "0.5855358", "0.58343726", "0.5828343", "0.58183163", "0.5800801", "0.5799656", "0.57978517", "0.57937336", "0.5792088", "0.579196", "0.5787516", "0.57871366", "0.57867134", "0.5783288", "0.5783288", "0.5765374", "0.57614887", "0.57500523", "0.5747767", "0.57410705", "0.5739214", "0.5739214", "0.57280463", "0.5722333", "0.5718757", "0.5703959", "0.56940633" ]
0.63537717
49
Enable or disable all buttons.
@Override public void setDisplay(HasRows display) { boolean disableButtons = (display == null); setFastForwardDisabled(disableButtons); setNextPageButtonsDisabled(disableButtons); setPrevPageButtonsDisabled(disableButtons); super.setDisplay(display); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(true);\n\t\tbtnStop.setEnabled(true);\n\t\tbtnListenAgain.setEnabled(true);\t\t\n\t}", "public void enableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(true);\n }\n }", "public void disableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(false);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnListenAgain.setEnabled(false);\n\t}", "private void enableButtons() {\n\t\tcapture.setEnabled(true);\r\n\t\tstop.setEnabled(true);\r\n\t\tselect.setEnabled(true);\r\n\t\tfilter.setEnabled(true);\r\n\t}", "private void setAllButtonsEnabledStatus(boolean isEnabled) {\n Button identifyButton = (Button) findViewById(R.id.identify);\n identifyButton.setEnabled(isEnabled);\n\n }", "private void setAllButtonsEnabledStatus(boolean isEnabled) {\n Button showBaby = (Button) findViewById(R.id.showBaby);\n Button share = (Button) findViewById(R.id.share);\n Button loadImg1 = (Button) findViewById(R.id.loadImg1);\n Button loadImg2 = (Button) findViewById(R.id.loadImg2);\n\n showBaby.setEnabled(isEnabled);\n share.setEnabled(isEnabled);\n loadImg1.setEnabled(isEnabled);\n loadImg2.setEnabled(isEnabled);\n }", "private void setAllButtonsEnabledStatus(boolean isEnabled) {\n Button selectImageButton = (Button) findViewById(R.id.select_image);\n selectImageButton.setEnabled(isEnabled);\n\n Button detectButton = (Button) findViewById(R.id.detect);\n detectButton.setEnabled(isEnabled);\n\n //Button ViewLogButton = (Button) findViewById(R.id.view_log);\n //ViewLogButton.setEnabled(isEnabled);\n }", "void enableBtn() {\n findViewById(R.id.button_play).setEnabled(true);\n findViewById(R.id.button_pause).setEnabled(true);\n findViewById(R.id.button_reset).setEnabled(true);\n }", "protected void enableButtons() {\n if (mPrevious_question.isPressed() || mNext_question.isPressed()) {\n mFalseButton.setEnabled(true);\n mTrueButton.setEnabled(true);\n }\n }", "private void toggleButtons(boolean enableFlag)\r\n {\r\n for (JButton btn : btnList)\r\n {\r\n btn.setEnabled(enableFlag);\r\n }\r\n }", "private void disableButtons()\r\n {\r\n }", "public void disableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(false);\n }\n }", "private void setButtons(boolean en){\n btnQuit.setEnabled(!en);\n btnResign.setEnabled(en);\n btnNewGame.setEnabled(!en);\n }", "private void enableButtons(boolean enabled) {\n saveUserButton.setEnabled(enabled);\n deleteUserButton.setEnabled(enabled);\n resetPassButton.setEnabled(enabled);\n }", "private void setButtonsEnable(boolean b){\n addButton.setEnabled(b);\n clearButton.setEnabled(b);\n peelOffButton.setEnabled(b);\n buttonControlPanel.setEnabled(b);\n progressCheckBox.setEnabled(b);\n }", "public void enableDisableAllControlElements(boolean disable){\n for(Button button : allButtons){\n button.setDisable(disable);\n }\n filterValueTextField.setDisable(disable);\n }", "private void toggleButtonsEnabled() {\r\n final Button headsBtn = findViewById(R.id.b_heads);\r\n final Button tailsBtn = findViewById(R.id.b_tails);\r\n final Button startBtn = findViewById(R.id.b_startGame);\r\n\r\n headsBtn.setEnabled(false);\r\n tailsBtn.setEnabled(false);\r\n startBtn.setEnabled(true);\r\n }", "public void disableAllButtons() {\n\t\tfor (int i = 0; i < DIM; i++)\n\t\t\tfor (int j = 0; j < DIM; j++)\n\t\t\t\tbuttons[i][j].setEnabled(false);\n\t}", "private void setButtonsEnabledState() {\n if (mBroadcastingLocation) {\n mStartButton.setEnabled(false);\n mStopButton.setEnabled(true);\n } else {\n mStartButton.setEnabled(true);\n mStopButton.setEnabled(false);\n }\n }", "private void disableButtons() {\n for (DeployCommand cmd : DeployCommand.values()){\n setButtonEnabled(cmd, false);\n }\n butDone.setEnabled(false);\n setLoadEnabled(false);\n setUnloadEnabled(false);\n setAssaultDropEnabled(false);\n }", "public static void enableButtons(ArrayList<JButton> gameButton){\n for(int i=0; i<gameButton.size(); ++i){\n gameButton.get(i).setEnabled(true);\n }\n }", "private void buttonEnable(){\n\t\t\taddC1.setEnabled(true);\n\t\t\taddC2.setEnabled(true);\n\t\t\taddC3.setEnabled(true);\n\t\t\taddC4.setEnabled(true);\n\t\t\taddC5.setEnabled(true);\n\t\t\taddC6.setEnabled(true);\n\t\t\taddC7.setEnabled(true);\n\t\t}", "private void activateButtons(){\n limiteBoton.setEnabled(true);\n derivadaBoton.setEnabled(true);\n integralBoton.setEnabled(true);\n}", "protected void disableButtons() {\n if (mFalseButton.isPressed() || mTrueButton.isPressed())\n mFalseButton.setEnabled(false);\n mTrueButton.setEnabled(false);\n }", "public void updateAllButtons(){\n updateStartButton();\n updateResetButton();\n }", "public void enableButtons (boolean enabled)\n\t{\n\t\tfor (int i = 1; i <= 9; ++ i)\n\t\t\ttileButton[i].setEnabled (enabled);\n\t\tfor (int i = 0; i <= 1; ++ i)\n\t\t\tdieButton[i].setEnabled (enabled);\n\t\tdoneButton.setEnabled (enabled);\n\t}", "public void resetButtons() {\n\t\tboolean bool = selectedLesson.isEnable();\n\t\tview.getTestButton().setEnabled(bool);\n\t\tview.getLearnButton().setEnabled(bool);\n\t}", "public void disableButtons() {\n\n for (Button b: buttons) {\n b.setClickable(false);\n }\n\n }", "private void setButtonsEnabledState() {\n if (mRequestingLocationUpdates) {\n mStartUpdatesButton.setEnabled(false);\n mStopUpdatesButton.setEnabled(true);\n } else {\n mStartUpdatesButton.setEnabled(true);\n mStopUpdatesButton.setEnabled(false);\n }\n }", "public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\tfilter.setEnabled(false);\r\n\t\tsave.setEnabled(false);\r\n\t\t//load.setEnabled(false);\r\n\t}", "private void enableButtons(){\n \n if (this.geselecteerdeStageplaats != null && this.geselecteerdeStageplaats.getBedrijfID() != null){\n this.jButtonSaveStageplaats.setEnabled(true);\n this.jButtonDeleteStageplaats.setEnabled(true);\n\n }\n else{\n this.jButtonSaveStageplaats.setEnabled(false);\n this.jButtonDeleteStageplaats.setEnabled(false);\n }\n if (this.jComboBoxGekendeBedrijven.getSelectedItem() != null){\n this.jButtonBedrijfSelecteren.setEnabled(true);\n }\n else {\n this.jButtonBedrijfSelecteren.setEnabled(false);\n }\n \n }", "private void disableBtn(){\n int [] ids = new int[]{\n R.id.box1, R.id.box2, R.id.box3, R.id.box4, R.id.box5, R.id.box6,\n R.id.box7, R.id.box8, R.id.box9\n };\n\n for (int i = 0; i < ids.length; i++)\n {\n ImageButton btnToDisable = (ImageButton)findViewById(ids[i]);\n btnToDisable.setEnabled(false);\n }\n\n }", "private void configureEnableButtons() {\r\n\t\ttglbtnBirthdays.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == tglbtnBirthdays) {\r\n\t\t\t\t\tif (tglbtnBirthdays.isSelected()) {\r\n\t\t\t\t\t\ttglbtnBirthdays.setText(\"Disable\");\r\n\t\t\t\t\t\ttheSender.setBirthdayTemplate(emailStorage.getTemplate(templateBirthday));\r\n\t\t\t\t\t\ttheSender.runBirthdaySetUp();\r\n\t\t\t\t\t\ttheSender.resumeSendingBirthdays();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!tglbtnBirthdays.isSelected()) {\r\n\t\t\t\t\t\ttglbtnBirthdays.setText(\"Enable\");\r\n\t\t\t\t\t\ttheSender.stopSendingBirthdays();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\ttglbtnAnniv.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == tglbtnAnniv) {\r\n\t\t\t\t\tif (tglbtnAnniv.isSelected()) {\r\n\t\t\t\t\t\ttglbtnAnniv.setText(\"Disable\");\r\n\t\t\t\t\t\ttheSender.setAnnivTemplate(emailStorage.getTemplate(templateAnniv));\r\n\t\t\t\t\t\ttheSender.runAnnivSetUp();\r\n\t\t\t\t\t\ttheSender.resumeSendingAnniv();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!tglbtnAnniv.isSelected()) {\r\n\t\t\t\t\t\ttglbtnAnniv.setText(\"Enable\");\r\n\t\t\t\t\t\ttheSender.stopSendingAnniv();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}", "protected void setEnabledButtons( final boolean b )\r\n {\r\n jButtonSource.setEnabled( b );\r\n jButtonDestination.setEnabled( b );\r\n jButtonClearFileList.setEnabled( b );\r\n jButtonDoAction.setEnabled( b );\r\n }", "public void enableProductionButtons(){\n for(int i = 0; i < 3; i++){\n productionButtons[i].setText(\"Activate\");\n if (gui.getViewController().getGame().getProductionCard(i) != null){\n productionButtons[i].setEnabled(true);\n } else {\n productionButtons[i].setEnabled(false);\n }\n productionButtons[i].setToken(true);\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new ActivateProductionListener(gui,productionButtons[i], i));\n }\n\n baseProductionPanel.enableButton();\n }", "public void setButtons(\r\n boolean enableOpenButton, boolean enableCheckHealthButton, boolean enableCloseButton,\r\n boolean enableClaimButton, boolean enableReleaseButton,\r\n boolean enableDeviceEnableButton, boolean enableDeviceDisableButton,\r\n boolean enableClearDataButton,\r\n boolean enableBeginEnrollCaptureButton, boolean enableEndCatureButton, boolean enableBeginVerifyCaptureButton,\r\n boolean enableIdentifyMatchButton, boolean enableVerifyMatchButton,\r\n boolean enableIdentifyButton, boolean enableVerifyButton\r\n ) {\r\n jOpen.setEnabled(enableOpenButton);\r\n jCheckHealth.setEnabled(enableCheckHealthButton);\r\n jClose.setEnabled(enableCloseButton);\r\n jClaim.setEnabled(enableClaimButton);\r\n jRelease.setEnabled(enableReleaseButton);\r\n jDeviceEnable.setEnabled(enableDeviceEnableButton);\r\n jDeviceDisable.setEnabled(enableDeviceDisableButton);\r\n jClearData.setEnabled(enableClearDataButton);\r\n jBeginEnrollCapture.setEnabled(enableBeginEnrollCaptureButton);\r\n jEndCapture.setEnabled(enableEndCatureButton);\r\n jBeginVerifyCapture.setEnabled(enableBeginVerifyCaptureButton);\r\n jIdentifyMatch.setEnabled(enableIdentifyMatchButton);\r\n jVerifyMatch.setEnabled(enableVerifyMatchButton);\r\n jIdentify.setEnabled(enableIdentifyButton);\r\n jVerify.setEnabled(enableVerifyButton);\r\n }", "protected void UpdateButtons()\n {\n btnIn.setEnabled(usr.getPostType() == Util.ATTENDANCE_DAY_OUT);\n btnOut.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n btnScan.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n\n }", "public void enable()\n\t{\n\t\tplayButton.setEnabled(true);\n\t\tpassButton.setEnabled(true);\n\t\tbigTwoPanel.setEnabled(true);\n\t}", "private void deActivateButtons(){\n limiteBoton.setEnabled(false);\n derivadaBoton.setEnabled(false);\n integralBoton.setEnabled(false);\n}", "protected void updateEnabled() {\n\t\tFieldGroup control = getUIControl();\n\t\tif (control != null) {\n\t\t\tCollection<? extends IRidget> ridgets = getRidgets();\n\t\t\tfor (IRidget ridget : ridgets) {\n\t\t\t\tridget.setEnabled(isEnabled());\n\t\t\t}\n\t\t\tcontrol.setEnabled(isEnabled());\n\t\t}\n\t}", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "private void ctrlPuasar() {\n btnIniciar.setEnabled(true);\n btnPausar.setEnabled(false);\n\n }", "private void updateButtons() {\n\t\tif (selectedDownload != null) {\n\t\t\tint status = selectedDownload.getStatus();\n\t\t\tswitch (status) {\n\t\t\t\tcase Download.DOWNLOADING:\n\t\t\t\t\tpauseButton.setEnabled(true);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.PAUSED:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.ERROR:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: // COMPLETE or CANCELLED\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t}\n\t\t} else {\n\t\t\t// No download is selected in table.\n\t\t\tpauseButton.setEnabled(false);\n\t\t\tresumeButton.setEnabled(false);\n\t\t\tcancelButton.setEnabled(false);\n\t\t\tclearButton.setEnabled(false);\n\t\t}\n\t}", "private void enableButton(Button b) {\n b.setEnabled(true);\n }", "private void habilitar() {\n\n if (i <= 0) {\n jButton4.setEnabled(false);\n } else {\n jButton4.setEnabled(true);\n }\n }", "@Override\n public void enableProductionButtons() {\n gameboardPanel.disableEndTurnButton();\n gameboardPanel.disableEndOfProductionButton();\n gameboardPanel.enableProductionButtons();\n leaderCardsPanel.enableProductionButtons();\n }", "private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}", "private void setButtons(boolean iVal)\n {\n buttonLogin.setEnabled(iVal);\n buttonLogin.setClickable(iVal);\n buttonSignup.setEnabled(iVal);\n buttonSignup.setClickable(iVal);\n }", "void setAllApplyButtons() {\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n dvi.setAllApplyButtons();\n }\n setApplyButtons(null, getParametersFromXML());\n }", "public void disableAll(){\n\t\t\taddC1.setEnabled(false);\n\t\t\taddC2.setEnabled(false);\n\t\t\taddC3.setEnabled(false);\n\t\t\taddC4.setEnabled(false);\n\t\t\taddC5.setEnabled(false);\n\t\t\taddC6.setEnabled(false);\n\t\t\taddC7.setEnabled(false);\n\t\t}", "public void updateButtons(){\n\t\tif (Player.getPlayer(this).questManager.atMaxNumQuests()) {\n\t\t\tcreateQuest.setEnabled(false);\n\t\t} else {\n\t\t\tcreateQuest.setEnabled(true);\n\t\t}\n\t\tif (selectedQuest != null){\n\t\t\tdeleteQuest.setEnabled(true);\n\t\t\tcompleteQuest.setEnabled(true);\n\t\t} else {\n\t\t\tdeleteQuest.setEnabled(false);\n\t\t\tcompleteQuest.setEnabled(false);\n\t\t}\n\t}", "public void disableProductionButtons(){\n for(int i = 0; i < 3; i++){\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new ActivateProductionListener(gui,productionButtons[i],i));\n productionButtons[i].setEnabled(false);\n }\n\n baseProductionPanel.disableButton();\n }", "private void setShowButtonsEnabledStatus(boolean isEnabled) {\n Button showBaby = (Button) findViewById(R.id.showBaby);\n showBaby.setEnabled(isEnabled);\n }", "private void updateButtons() {\n\t\tif(buttonCount>1){\n\t\t\tremoveTableButton.setEnabled(true);\n\t\t}\n\t\telse{\n\t\t\tremoveTableButton.setEnabled(false);\n\t\t}\n\t\tif(buttonCount<tablesX.length){\n\t\t\taddTableButton.setEnabled(true);\n\t\t}\n\t\telse{\n\t\t\taddTableButton.setEnabled(false);\n\t\t}\n\t}", "void enableClearAllParametersButton();", "private void setBtnState(){\n recordBtn.setEnabled(!recording);\n stopBtn.setEnabled(recording);\n pauseBtn.setEnabled(playing & !paused);\n resumeBtn.setEnabled(paused);\n }", "public void toggleEnable();", "public void disableButtons() {\n p1WinPoint.setEnabled(false);\n p2WinPoint.setEnabled(false);\n }", "private void disableP1Buttons(){\n game_BTN_p1_lightAttack.setEnabled(false);\n game_BTN_p1_strongAttack.setEnabled(false);\n game_BTN_p1_brutalAttack.setEnabled(false);\n }", "private void setBtnUsability(boolean enable){\n pushButton.setEnabled(enable);\n popButton.setEnabled(enable);\n }", "public void enableChoice() {\n\t\t// Enable the buttons, lighting them up\n\t\trock.setEnabled(true);\n\t\tpaper.setEnabled(true);\n\t\tscissors.setEnabled(true);\n\t}", "private void enableComponents(boolean input){\n jButton11.setEnabled(input);\n jButton12.setEnabled(input);\n jButton13.setEnabled(input);\n jButton21.setEnabled(input);\n jButton22.setEnabled(input);\n jButton23.setEnabled(input);\n jButton31.setEnabled(input);\n jButton32.setEnabled(input);\n jButton33.setEnabled(input);\n jButton2.setEnabled(!input);\n jTextNome.setEditable(!input);\n }", "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "private void moikhoacontrol(boolean b) {\n\t\tbtnSua.setEnabled(b);\n\t\tbtnluu.setEnabled(b);\n\t\tbtnxoa.setEnabled(b);\n\t\tbtnThoat.setEnabled(b);\n\t\tbtnTim.setEnabled(b);\n\t\t\n\t}", "private void updateButtons() {\n\t\t SwingUtilities.invokeLater(new Runnable() {\n\t\t public void run() { \n\t\t botones[rowId1][columnId1].toggleOnOff();\n\t\t\t botones[rowId1][columnId1].setEnabled(true);\n\t\t\t \n\t\t\t botones[rowId2][columnId2].toggleOnOff();\n\t\t\t botones[rowId2][columnId2].setEnabled(true);\n\t\t\t \n\t\t\t setEnabled(true);\n\t\t\t \n\t\t timerPush.stop();\n\t\t }\n\t\t });\n\t }", "private void setAllButton(int index) {\n if(buttons.get(index).isOpaque()) {\n buttons.get(index).setOpaque(false);\n } else {\n buttons.get(index).setOpaque(true);\n }\n }", "private void enableControls(boolean b) {\n\n\t}", "@Override\n public void setEnabled(boolean b)\n {\n btnDeselectAll.setEnabled(b);\n btnExport.setEnabled(b);\n btnSelectAll.setEnabled(b);\n checkBoxList1.setEnabled(b);\n\n }", "private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n setIT.setDisable(false);\n addECE.setDisable(true);\n removeECE.setDisable(true);\n setECE.setDisable(false);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(false);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(false);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(false);\n }", "private void setBoardDisabled(boolean disabled) {\r\n\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t//If we're enabling the buttons and the button has no text on it (Only enable the unclicked buttons)\r\n\t\t\t//OR if we're disabling the buttons\r\n\t\t\tif(!disabled && buttons[i].getText().equals(\"\") || disabled) {\r\n\t\t\t\tbuttons[i].setDisable(disabled);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "private void clearAllButtonStates() {\n for (int i = 1; i <= 10; i++) {\n xbox.getRawButtonPressed(i);\n }\n\n for (int i = 1; i <= 12; i++) {\n joystick.getRawButtonPressed(i);\n }\n }", "private void setEnabled(JButton a, boolean b) {\n\t\ta.setEnabled(b);\r\n\t}", "private void setDishBtnUsability(boolean enable){\n dishBtn1.setEnabled(enable);\n dishBtn2.setEnabled(enable);\n dishBtn3.setEnabled(enable);\n dishBtn4.setEnabled(enable);\n dishBtn5.setEnabled(enable);\n }", "private void ctrlIniciar() {\n btnPausar.setEnabled(true);\n btnParar.setEnabled(true);\n btnIniciar.setEnabled(false);\n btnIniciar.setText(\"Reanudar\");\n\n }", "protected void setMinVolumeStateOnButtons() {\n mVolDownButton.setEnabled(false);\n mVolUpButton.setEnabled(true);\n }", "public void UpdateCommandsUI(){\n Button B;\n try{\n for (int i = 0; i < f.getNumComp(); i++) {\n B = (Button) findViewById(300000 + i); //Buy Button\n if(dayOpen & (p.getMoney()>0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(dayOpen & (p.getLevel()>= 4)){\n B.setEnabled(true);\n B.setTextColor(0xffff0000);\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n\n B = (Button) findViewById(400000 + i); //Sell Button\n if (dayOpen & (f.getSharesOwned(i) > 0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(p.getLevel()>=4 & !f.isShorted(i) & dayOpen){\n B.setEnabled(true);\n B.setTextColor(0xffff0000); //Red Color for short positions\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "private void disableButtons(boolean b) {\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n bt[i][j].setDisable(b);\n bt[i][j].setStyle(\"-fx-border-color:transparent\");\n }\n }\n }", "void disableClearAllParametersButton();", "private void reEnableCopyButtons() {\n // re-enable the buttons the relevant buttons\n copyToASpaceButton.setEnabled(true);\n repositoryCheckButton.setEnabled(true);\n copyProgressBar.setValue(0);\n\n if (copyStopped) {\n if (ascopy != null) ascopy.saveURIMaps();\n copyStopped = false;\n copyProgressBar.setString(\"Cancelled Copy Process ...\");\n } else {\n copyProgressBar.setString(\"Done\");\n }\n }", "private void setButton(boolean a) {\n//Vo hieu hoac co hieu luc cho cac JButton\n this.btnCourseAdd.setEnabled(a);\n this.btnCourseDelete.setEnabled(a);\n this.btnCourseEdit.setEnabled(a);\n this.btnCourseSave.setEnabled(!a);\n this.btnCourseReport.setEnabled(!a);\n this.btnCourseReset.setEnabled(!a);\n this.btnCourseClose.setEnabled(a);\n }", "public void enableColourButtons(boolean bool) {\n\t\tredButt.setEnabled(bool);\n\t\tblueButt.setEnabled(bool);\n\t\tgreenButt.setEnabled(bool);\n\t\tyellowButt.setEnabled(bool);\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\r\n\t\tthis.view.getPaintPanel().setMode(e.getActionCommand());\r\n\n\t\tJButton buttonPressed = (JButton) e.getSource();\r\n\r\n\t\t// lets user know which mode they're in by disabling button\r\n\t\tif (buttonPressed.isSelected() != true) {\r\n\t\t\tbuttonPressed.setEnabled(false);\r\n\t\t}\r\n\t\tfor (JButton tempButton : buttons) {\r\n\t\t\tif (buttonPressed != tempButton) {\r\n\t\t\t\ttempButton.setEnabled(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(e.getActionCommand());\r\n\t}", "private void checkProducts() {\n for (JButton prodButton : productButtons) {\n if (inventoryManager.checkProductAvailability(prodButton.getText())) {\n prodButton.setEnabled(true);\n } else {\n prodButton.setEnabled(false);\n }\n }\n }", "String disabledButton();", "private void setButtonsDisabled(boolean save, boolean edit, boolean diagram) {\n saveButton.setDisable(save);\n editButton.setDisable(edit);\n diagramButton.setDisable(diagram);\n }", "public void enableOperationsButton(boolean b) {\n\t\tintersection.setEnabled(b);\n\t\tunion.setEnabled(b);\n\t\tdifference.setEnabled(b);\n\t}", "private void disableButtons(boolean disable, boolean normalMoves, boolean rotations) {\n\t\tArrayList<PuzzleTurn> turns = mPuzzleMoveListener.getmPuzzleTurns();\n\t\t// iterate through puzzleTurns\n\t\tfor (int i = 0; i < turns.size(); i++) {\n\t\t\tPuzzleTurn current = turns.get(i);\n\n\t\t\tif( !current.isRotation() && !normalMoves){\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (current.isRotation() && !rotations) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// iterate through buttons\n\t\t\tfor (Button btn : mButtons) {\n\t\t\t\tif (btn.getText().toString().equals(current.getmName())) {\n\t\t\t\t\tbtn.setEnabled(!disable);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void updateButtonsState() {\r\n ISelection sel = mTableViewerPackages.getSelection();\r\n boolean hasSelection = sel != null && !sel.isEmpty();\r\n\r\n mUpdateButton.setEnabled(mTablePackages.getItemCount() > 0);\r\n mDeleteButton.setEnabled(hasSelection);\r\n mRefreshButton.setEnabled(true);\r\n }", "private void unlockButton() {\n\t\tconversionPdf_Txt.setEnabled(true);\n\t\tavisJury.setEnabled(true);\n\t\tstatistique.setEnabled(true);\n bData.setEnabled(true);\n\t}", "private void setIdentifyButtonEnabledStatus(boolean isEnabled) {\n Button button = (Button) findViewById(R.id.identify);\n button.setEnabled(isEnabled);\n }", "public void disable()\n {\n // Disable all the buttons one by one\n for (int col = 0; col < COLUMNS; col++ )\n {\n drop[col].setEnabled(false);\n }\n }", "void setEditButtonEnabled(boolean isEnabled);", "private void CheckEnable()\n {\n btn_prev.setEnabled(true);\n btn_next.setEnabled(true);\n\n if(increment+1 == pageCount)\n {\n btn_next.setEnabled(false);\n }\n if(increment == 0)\n {\n btn_prev.setEnabled(false);\n }\n }", "protected void enableButtons()\n\t{\n\t\tm_M_Product_ID = -1;\n\t\tm_ProductName = null;\n\t\tm_Price = null;\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_M_Product_ID = ID.intValue();\n\t\t\t\tm_ProductName = (String)m_table.getValueAt(row, 2);\n\t\t\t\tm_Price = (BigDecimal)m_table.getValueAt(row, 7);\n\t\t\t}\n\t\t}\n\t\tlog.fine(\"M_Product_ID=\" + m_M_Product_ID + \" - \" + m_ProductName + \" - \" + m_Price); \n\t}", "private void enable_buttons() {\n\n\n btnInicio.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //Utilizamos dos botones, una para iniciar y otro para detener. Comprueba cual\n // Se ha pulsado\n switch (view.getId()) {\n //Login\n case R.id.buttonLogin:\n //Comprueba la conexion\n if (comprobarConexion()) {\n //Comprueba si ya hay un servicio iniciado\n if(!servicioIniciado) {\n Intent i = new Intent(getApplicationContext(), Localitzacio.class);\n i.putExtra(\"matricula\", matriculaEditText.getText().toString());\n Log.i(\"SI \", \"se abre el servicio\");\n startService(i);\n servicioIniciado = true;\n }\n } else {\n Log.i(\"NO \", \"se abre el servicio\");\n }\n break;\n //Salir\n case R.id.buttonSortir:\n Intent i = new Intent(getApplicationContext(), Localitzacio.class);\n stopService(i);\n btnStop.setEnabled(true);\n Log.i(\"CERRAR\",\"Se cierra el servicio\");\n break;\n }\n }\n });\n\n\n\n }", "public void enableDeviceSwitchButtons(boolean enabled) {\r\n\t\tthis.menuToolBar.enableDeviceSwitchButtons(enabled);\r\n\t\tthis.menuBar.enableDeviceSwitchButtons(enabled);\r\n\t}", "public void VerifyButtons(){\n if (currentTurn.getSiguiente() == null){\n next_turn.setEnabled(false);\n } else{\n next_turn.setEnabled(true);\n }\n if (currentTurn.getAnterior() == null){\n prev_turn.setEnabled(false);\n } else{\n prev_turn.setEnabled(true);\n }\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n } else{\n next_game.setEnabled(true);\n }\n if (current.getAnterior() == null){\n prev_game.setEnabled(false);\n } else{\n prev_game.setEnabled(true);\n }\n }", "private void setShareButtonsEnabledStatus(boolean isEnabled) {\n Button share = (Button) findViewById(R.id.share);\n share.setEnabled(isEnabled);\n }", "public void enableInputs();", "@Override\n public void disableProductionButtons() {\n gameboardPanel.disableProductionButtons();\n leaderCardsPanel.disableProductionButtons();\n }", "private void checkEnableDisable() {\n\t\tif (_trainingSet.getCount() > 0) {\n\t\t\t_saveSetMenuItem.setEnabled(true);\n\t\t\t_saveSetAsMenuItem.setEnabled(true);\n\t\t\t_trainMenuItem.setEnabled(true);\n\t\t} else {\n\t\t\t_saveSetMenuItem.setEnabled(false);\n\t\t\t_saveSetAsMenuItem.setEnabled(false);\n\t\t\t_trainMenuItem.setEnabled(false);\n\t\t}\n\n\t\tif (_currentTrainGrid == null) {\n\t\t\t_deleteGridMenuItem.setEnabled(true);\n\t\t} else {\n\t\t\t_deleteGridMenuItem.setEnabled(true);\n\t\t}\n\n\t\tif (_index > 0) {\n\t\t\t_leftGridMenuItem.setEnabled(true);\n\t\t\t_leftBtn.setEnabled(true);\n\t\t\t_firstGridMenuItem.setEnabled(true);\n\t\t\t_firstBtn.setEnabled(true);\n\t\t} else {\n\t\t\t_leftGridMenuItem.setEnabled(false);\n\t\t\t_leftBtn.setEnabled(false);\n\t\t\t_firstGridMenuItem.setEnabled(false);\n\t\t\t_firstBtn.setEnabled(false);\n\t\t}\n\n\t\tif (_index < _trainingSet.getCount() - 1) {\n\t\t\t_rightGridMenuItem.setEnabled(true);\n\t\t\t_rightBtn.setEnabled(true);\n\t\t\t_lastGridMenuItem.setEnabled(true);\n\t\t\t_lastBtn.setEnabled(true);\n\t\t} else {\n\t\t\t_rightGridMenuItem.setEnabled(false);\n\t\t\t_rightBtn.setEnabled(false);\n\t\t\t_lastGridMenuItem.setEnabled(false);\n\t\t\t_lastBtn.setEnabled(false);\n\t\t}\n\n\t\tif (_index >= _trainingSet.getCount()) {\n\t\t\t_indexLabel.setText(String.format(NEW_INDEX_LABEL, _trainingSet.getCount()));\n\t\t} else {\n\t\t\t_indexLabel.setText(String.format(INDEX_LABEL, _index + 1, _trainingSet.getCount()));\n\t\t}\n\n\t\t_resultLabel.setText(EMPTY_RESULT_LABEL);\n\t}" ]
[ "0.8691528", "0.797758", "0.7897216", "0.76658344", "0.7576462", "0.74950564", "0.7493684", "0.73986477", "0.7364216", "0.73542655", "0.7329678", "0.7282924", "0.7281984", "0.72474384", "0.724674", "0.72305965", "0.7229346", "0.7199302", "0.71893847", "0.7174991", "0.71586823", "0.7155394", "0.7116151", "0.70765334", "0.7068563", "0.7046285", "0.70015633", "0.6972456", "0.6951952", "0.6869908", "0.68580025", "0.68133897", "0.67932713", "0.67904276", "0.6789384", "0.67514795", "0.6713817", "0.66691947", "0.6669078", "0.6604741", "0.6590744", "0.6575776", "0.6566636", "0.65076995", "0.6496221", "0.6492298", "0.6492245", "0.6485572", "0.6427093", "0.6410847", "0.63870424", "0.6379796", "0.6374883", "0.6357248", "0.635001", "0.6339046", "0.62884146", "0.6285042", "0.6273158", "0.62251484", "0.6214058", "0.62121385", "0.61780465", "0.6174664", "0.6174106", "0.6165725", "0.61504954", "0.6141892", "0.6141618", "0.6132594", "0.6128276", "0.6107608", "0.61038625", "0.60997", "0.609083", "0.6084761", "0.60834765", "0.60821074", "0.60746276", "0.60725754", "0.6055731", "0.6055686", "0.6049486", "0.60346574", "0.6034253", "0.60335106", "0.6019535", "0.6014689", "0.60071164", "0.5995562", "0.59815234", "0.5976628", "0.597344", "0.5969059", "0.5961573", "0.5957319", "0.5956508", "0.5954009", "0.5948003", "0.594736", "0.59345347" ]
0.0
-1
Let the page know that the table is loading. Call this method to clear all data from the table and hide the current range when new data is being loaded into the table.
public void startLoading() { getDisplay().setRowCount(0, true); label1.setHTML(""); label2.setHTML(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }", "public void hideAvailTable() {\n availTable.setVisible(false);\n }", "public void clearTable(){\n\t\tloaderImage.loadingStart();\n\t\tfullBackup.clear();\n\t\tlist.clear();\n\t\toracle.clear();\n\t\tselectionModel.clear();\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}", "private void clearTable() {\n fieldTable.removeAllRows();\n populateTableHeader();\n }", "public final void clearTable() {\n while (this.getRowCount() > 0) {\n this.removeRow(0);\n }\n\n // Notify observers\n this.fireTableDataChanged();\n }", "public void emptyTable()\r\n {\r\n final int lastRow = table.getRowCount();\r\n if (lastRow != 0)\r\n {\r\n ((JarModel) table.getModel()).fireTableRowsDeleted(0, lastRow - 1);\r\n }\r\n }", "public void clear() {\n\trows.removeAllElements();\n\tfireTableDataChanged();\n}", "private void clearTableData() {\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n model.setRowCount(0);\n }", "public void clearTable() {\n this.lstDaqHware.clear();\n this.mapDevPBar.clear();\n this.mapDevMotion.clear();\n }", "private void clearTable()\n {\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n table.removeViews(1, table.getChildCount() - 1);\n }", "public void clearData(){\r\n data.clear();\r\n this.fireTableDataChanged();\r\n }", "synchronized void refresh() {\n\n\t\t// We must not call fireTableDataChanged, because that would clear the\n\t\t// selection in the task window\n\t\tfireTableRowsUpdated(0, size - 1);\n\n\t}", "protected void clearTable() {\n\ttable.setModel(new javax.swing.table.AbstractTableModel() {\n\t public int getRowCount() { return 0; }\n\t public int getColumnCount() { return 0; }\n\t public Object getValueAt(int row, int column) { return \"\"; }\n\t});\n }", "private void refreshTable() {\n data = getTableData();\n updateTable();\n }", "public void resetTable() {\n\t\tif (table != null) {\n\t\t\ttable.removeAll();\n\t\t}\n\t}", "public void setTableData()\n\t{\n\t\tsetTableData(false);\n\t}", "@Override\n public void reset() {\n setActive(false);\n if (tablePane != null) {\n tablePane.removeAll();\n }\n table = null;\n tablePane = null;\n }", "public void displayTable() {\n\t\tcontent.addComponent(tableDisplay.getGrid());\n\t\tthis.removeStyleName(\"fr_map_component_no_table\");\n\t}", "public void clearTable() {\n topLeft = new Item(0, \"blank\");\n topCenter = new Item(0, \"blank\");\n topRight = new Item(0, \"blank\");\n left = new Item(0, \"blank\");\n center = new Item(0, \"blank\");\n right = new Item(0, \"blank\");\n bottomLeft = new Item(0, \"blank\");\n bottomCenter = new Item(0, \"blank\");\n bottomRight = new Item(0, \"blank\");\n result = new Item(0, \"blank\");\n index = 0;\n }", "public void refreshTable() {\n\t\tmyTable.refreshTable();\n\t}", "public void refresh() {\n\t\tgetTableViewer().refresh();\n\t}", "public void clearAllTable() {\n\t\tint rowCount = dmodel.getRowCount();\n\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\tdmodel.removeRow(i);\n\t\t}\n\t}", "public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t\ttable.get(i).clear();\n\t\t}\n\t}", "public void clear() {\n this.setRowCount(0);\n }", "public void displayNoTable() {\n\t\tcontent.removeComponent(tableDisplay.getGrid());\n\t\tthis.addStyleName(\"fr_map_component_no_table\");\n\t}", "private void refresh() {\n\t\t\tRunnable run = new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif(table.isDisposed())return;\n\t\t\t\t\tviewer.refresh();\n\t\t\t\t}\t\t\t\n\t\t\t};\n\t\t\tDisplay.getDefault().asyncExec(run);\n\t\t}", "@Override\n public final void clearData() {\n synchronized (tableRows) {\n statModel.clearData();\n tableRows.clear();\n tableRows.put(TOTAL_ROW_LABEL, new SamplingStatCalculator(TOTAL_ROW_LABEL));\n statModel.addRow(tableRows.get(TOTAL_ROW_LABEL));\n }\n }", "public void clear() {\n tableCache.invalidateAll();\n }", "public void showAvailTable() {\n if (availDay.getDate() != null) {\n availTable.setVisible(true);\n } \n else {\n showNoDateMess();\n };\n }", "public void clear()\n {\n assert SwingUtilities.isEventDispatchThread();\n myRowDataProvider.clear();\n myCache.clear();\n fireTableDataChanged();\n }", "private void refreashTableView() {\n this.scoreboard.refresh();\n sortScoreboard();\n }", "public void clearTable() {\n reportTable.getColumns().clear();\n }", "public void clearData(){\n\t\t\n\t\tclearTable(conditionTableModel);\n\t\tclearTable(faultTableModel);\n\t}", "public static void resetTable() {\n tableModel.resetDefault();\n updateSummaryTable();\n }", "public void clearTable() {\n\t\tfor (int i = modelCondTable.getRowCount() - 1; i >= 0; i--) {\n\t\t\tmodelCondTable.removeRow(i);\n\t\t}\n\t}", "private void actuallyRefresh() {\n synchronized (this) {\n if (table != null) {\n table.recomputeModel(book, getDisplayedSecurities(), allowMissingPrices, timelySnapshotInterval);\n }\n }\n if (tablePane != null) {\n tablePane.setVisible(true);\n tablePane.revalidate();\n }\n }", "public void hide_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(!selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "public void disTable () {\n\t\t\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\t\t\tvalues = new Vector();\n\t\t\t\tvalues.add(\"20\"); values.add(\"20\"); values.add(\"20\"); values.add(\"20\"); values.add(\"20\");values.add(\"20\");values.add(new Boolean(false));\n\t\t\t\tmyModel.addRow(values ); // more practicle, vector can take only objects.\n\t\t myModel.addRow(data);\n\n\n\t\t\t\tgetContentPane().add(scrollPane, BorderLayout.CENTER);\n\n\t\t\t\t addWindowListener(new WindowAdapter() {\n\t\t\t\t\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t });\n\t}", "@Override\n\tpublic void emptyTable() {\n\t\tresTable.deleteAll();\n\t}", "private void setLoadingDisplay() {\n if (swipeRefreshing) {\n footer.clear();\n setRefreshing(true);\n } else if (loading) {\n footer.setLoading();\n }\n }", "public\n void\n clearTableSelection()\n {\n getRegisterPanel().clearTableSelection();\n }", "private void refreshTable(){\n DefaultTableModel dm = (DefaultTableModel)table.getModel();\r\n dm.getDataVector().removeAllElements();\r\n System.out.println(\"Refresh Table\");\r\n\r\n //calling method addRows\r\n addRows();\r\n }", "private void limparTabela() {\n while (tmLivro.getRowCount() > 0) {\n tmLivro.removeRow(0);\n }\n }", "private void limparTabela() { \n while (tmLivro.getRowCount() > 0) { \n tmLivro.removeRow(0);\n }\n }", "@Override\n public void clear() {\n isLoaded = false;\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 }", "private void showDataView() {\n mLoadingIndicator.setVisibility(View.INVISIBLE);\n /* Finally, make sure the data is visible */\n mRecycleView.setVisibility(View.VISIBLE);\n }", "public void clear()\n {\n if (resultSet != null)\n {\n try\n {\n resultSet.close();\n } catch (SQLException ex)\n {\n edu.ku.brc.af.core.UsageTracker.incrSQLUsageCount();\n edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(ResultSetTableModelDirect.class, ex);\n log.error(ex);\n }\n resultSet = null;\n }\n\n metaData = null;\n classNames.clear();\n\n currentRow = 0;\n numRows = 0;\n }", "public void clean() {\r\n\t\t\r\n\t\tlogger.trace(\"Enter clean\");\r\n\t\t\r\n\t\tdata.clear();\r\n\t\tfireTableDataChanged();\r\n\t\t\r\n\t\tlogger.trace(\"Exit clean\");\r\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 }", "protected void reloadAndReformatTableData()\n {\n logTable.loadAndFormatData();\n }", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\n\t\t\t\t\n\t\t\t\tdataGrid.clear();\n\t\t\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\n\t\t\t\t\n\t\t\t\tdataGrid.clear();\n\t\t\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\n\t\t\t\t\n\t\t\t\tdataGrid.clear();\n\t\t\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\n\t\t\t\t\n\t\t\t\tdataGrid.clear();\n\t\t\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\n\t\t\t\t\n\t\t\t\tdataGrid.clear();\n\t\t\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\n\t\t\t\t\n\t\t\t\tdataGrid.clear();\n\t\t\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\n\t\t\t\t\n\t\t\t\tdataGrid.clear();\n\t\t\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\n\t\t\t\t\n\t\t\t\tdataGrid.clear();\n\t\t\t}", "@FXML\n private void clearReportData() {\n displayCarbonEmissionGoalField.setText(\"\");\n carbonEmissionGoalField.setText(\"\");\n displayTotalEmissionsField.setText(\"\");\n displayTotalDistanceTravelledField.setText(\"\");\n displayMostEmissionsRouteField.setText(\"\");\n displayMostEmissionsRouteField.setText(\"\");\n displayLeastEmissionsRouteField.setText(\"\");\n displayMostDistanceRouteField.setText(\"\");\n displayLeastEmissionsRouteField.setText(\"\");\n displayLeastDistanceRouteField.setText(\"\");\n displayMostVisitedSourceAirportField.setText(\"\");\n displayLeastVisitedSourceAirportField.setText(\"\");\n displayMostVisitedDestinationAirportField.setText(\"\");\n displayLeastVisitedDestinationAirportField.setText(\"\");\n displayTreeOffsetField.setText(\"\");\n displayStatusCommentField.setText(\"\");\n }", "private void renderArticleTable(){\r\n\t\tarticleTable.setContainerDataSource(loadLatestArticles());\r\n\t\tif(articleDto.isEmpty()){\r\n\t\t\tlabel.setVisible(true);\r\n\t\t\tarticleTable.setVisible(false);\r\n\t\t}else {\r\n\t\t\tlabel.setVisible(false);\r\n\t\t\tarticleTable.setVisible(true);\r\n\t\t}\r\n\t}", "public void clearAll() {\n rangeMap.clear();\n }", "public void clearRows()\n\t{\n\t\tif(this.Rows != null)\n\t\t{\n\t\t\tsynchronizeInversesRemoveRows(this.Rows);\n\t\t\tthis.Rows.clear();\n\t\t\tfireChangeEvent();\n\t\t}\n\t}", "@Override\n public void showLoading() {\n setRefresh(true);\n }", "public void reloadRoomTable() {\r\n\t\t// controller for table methods\r\n\t\tIntfCtrlGenericTables genericTablesController = new CtrlGenericTables();\r\n\t\t// set the Semester label\r\n\t\tthis.lblvaluesemester_.setText(ViewManager.getInstance()\r\n\t\t\t\t.getCoreBaseTab().getComboBoxSemesterFilter().getSelectedItem()\r\n\t\t\t\t.toString());\r\n\t\t// get the room allocations from the temprary storage\r\n\t\tList<IntfRoomAllocation> roomAllocationList = this.roomAllocList_;\r\n\t\t// call the reload method\r\n\t\tgenericTablesController.reloadTable(getStundenplanTable(),\r\n\t\t\t\troomAllocationList, true, true);\r\n\r\n\t\t// Set the maximum size of the scroll pane (don't forget to add the\r\n\t\t// table header!)\r\n\t\tscrollPane_.setMaximumSize(new Dimension(32767, ((int) timetableTable_\r\n\t\t\t\t.getPreferredSize().getHeight() + 26)));\r\n\t\tthis.updateUI();\r\n\t}", "private void clearTable() {\n\t\tcards.clear();\n\t\ttopCard = new Card();\n\t}", "@Override\n\tpublic void refreshData(){\n\t\tpageNum = 1;\n\t\tlist.clear();\n\t\tloadData();\n\t}", "private void reinit() {\n \tthis.showRowCount = false;\n this.tableCount = 0;\n this.nullString = \"\";\n\t}", "public void visibility(boolean state){ this.table.setVisible(state);}", "public void done() \r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tif (ok) {\r\n\t\t\t\t\t//resultsTabbedPanel.setEntryPointsData(entryPointsTable);\r\n\t\t\t\t\t// Actualizo la tabla de estadisticas globales\r\n\t\t\t\t\tcreateGlobalStatsTable(0); // XXX TODO\r\n\r\n\t\t\t\t\tregenStatsTree();\r\n\r\n\t\t\t\t\tvalidateTree();\r\n\r\n\r\n\t\t\t\t\ttimeRange.enable();\r\n\r\n\t\t\t\t\tif (!isCached) {\r\n\t\t\t\t\t\ttimeRange.setLimits(minTs, maxTs);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (Throwable e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tCommonForms.showError(parent, \"Error showing data\", e);\r\n\t\t\t} finally {\r\n\t\t\t\tdialog.dispose();\r\n\t\t\t\tparent.setEnabled(true);\r\n\t\t\t\tmainPanel.remove(1); \r\n\t\t\t\tJScrollPane treePanelScroll = new JScrollPane();\r\n\t\t\t\tmainPanel.add(treePanelScroll);\r\n\t\t\t\tMainFrame.this.toFront();\r\n\t\t\t}\r\n\t\t}", "public static void updateSummaryTable() {\n tableModel.fireTableDataChanged();\n tableModel.fireTableStructureChanged();\n window.resetSize();\n\n window.setComboBox();\n showWindow();\n }", "public void doEmptyTableList() {\n tableList.deleteList();\n }", "public void displayTable() {\n System.out.print(\"\\nSpreadsheet Table Details :\\nRows : \" + rowHeaders + \"\\nColumns:\" + colHeaders);\n new SheetParser(tableData).displaySheet();\n }", "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 }", "public void clear()\r\n {\r\n m_alParameters.clear();\r\n fireTableDataChanged();\r\n }", "public void vaciarTabla() {\n\n DefaultTableModel modelo = (DefaultTableModel) table1Calificaciones.getModel();\n int total = table1Calificaciones.getRowCount();\n for (int i = 0; i < total; i++) {\n modelo.removeRow(0);\n }\n\n }", "private void fillData() {\n table.setRowList(data);\n }", "@Override\n protected void onPause() {\n super.onPause();\n table.setAdapter(null);\n table = null;\n myToast = null;\n }", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n\t\t\t\tpDialog.setCancelable(false);\n\t\t\t\tpDialog.show();\t\t\t\t\n\t\t\t\tdataGrid.clear();\n\t\t\t}", "@Override\n public void hideLoading() {\n if (progressDialog!=null && progressDialog.isShowing()){\n progressDialog.dismiss();\n }\n }", "public void readCompleteTable()\n\t{\n\t\topen();\n\t\tList<Map<Object, String>> tbl = HtmlTable.rowsFrom(table);\n\t\t//System.out.println(tbl);\n\n\t}", "private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }", "void clearAllItemsTable();", "public void refreshJTable()\n {\n \n \n }", "public void ShowTable() {\n\t\tupdateTable();\n\t\ttableFrame.setVisible(true);\n\t\t\n\t}", "public void canelDataUpdate() {\n dataModel.cancelDataLoading();\n }", "public void reset() {\n\t\tdroppedFiles.clear();\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t((DefaultTableModel) table.getModel()).setRowCount(0);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}", "public void refresh() {\n sqlTable = \"Select * from users, roles where users.role_ID = roles.Roles_ID ORDER BY users.user_ID ASC\";\n try{\n jTable1 = Domains.getTable(header, columns, sqlTable);\n jScrollPane1.getViewport().removeAll();\n jScrollPane1.getViewport().add(jTable1);\n jScrollPane1.repaint();\n }catch(Exception err){\n err.printStackTrace();\n }\n }", "private void loadData(){\n Dh.refresh();\n }", "public void clear() {\n table = new Handle[defaultSize];\n logicalSize = 0;\n }", "@Override\n public final void start(boolean isRebuildingAllRows) {\n /*\n * TODO(jlabanca): Test with DomBuilder.\n * \n * DOM manipulation is sometimes faster than String concatenation and\n * innerHTML, but not when mixing the two. Cells render as HTML strings,\n * so its faster to render the entire table as a string.\n */\n tbody = HtmlBuilderFactory.get().createTBodyBuilder();\n if (isRebuildingAllRows) {\n cellToIdMap.clear();\n idToCellMap.clear();\n }\n }", "private void clearSheet() {\n row = null;\n cells = null;\n cellType = null;\n value = null;\n rowIndex = -1;\n }", "public void onReset() {\n super.onReset();\n onStopLoading();\n Cursor cursor = this.mCursor;\n if (cursor != null && !cursor.isClosed()) {\n this.mCursor.close();\n }\n this.mCursor = null;\n }", "public void clear() {\r\n\t\tfor (int i = 0; i < table.length; i++) {\r\n\t\t\ttable[i] = null;\r\n\t\t}\r\n\r\n\t\tmodificationCount++;\r\n\t\tsize = 0;\r\n\t}", "public void refresh() {\n calcDataInTable();\n fireTableDataChanged();\n\n}", "public void paginationLoading() {\n mTvShows.add(null);\n notifyItemInserted(mTvShows.size() - 1);\n }", "public void DoesNeedCleaning() {\n\t\tSystem.out.println(\"Table is being cleaned right now.\");\n\t}", "public static void refreshTable() {\n tableView.setItems(FXCollections.observableArrayList(customerVehicleIssueTable.getAllOpenCustomerVehicleIssues()));\n tableView.refresh();\n }", "public void IsInUse() {\n\t\tSystem.out.println(\"Table being cleaned, cannot be used.\");\n\t}", "public boolean isEmptyTable() {\r\n return emptyTable;\r\n }" ]
[ "0.7924971", "0.6793605", "0.67740697", "0.66916007", "0.6437782", "0.63692856", "0.6358653", "0.633931", "0.6220448", "0.6188278", "0.61837184", "0.61733174", "0.617063", "0.6161537", "0.6155135", "0.61285055", "0.61207825", "0.6077721", "0.59959483", "0.5968036", "0.59427255", "0.59415805", "0.592069", "0.5919222", "0.5913407", "0.59104985", "0.5892387", "0.587383", "0.58613056", "0.58450955", "0.5838409", "0.5835612", "0.5834571", "0.5822276", "0.5820075", "0.5806975", "0.5790048", "0.5774739", "0.5761941", "0.5749006", "0.57046956", "0.57045794", "0.569317", "0.56771374", "0.56622696", "0.56565356", "0.56196207", "0.56181103", "0.5599643", "0.55918515", "0.5581714", "0.55815274", "0.55815274", "0.55815274", "0.55815274", "0.55815274", "0.55815274", "0.55815274", "0.55815274", "0.55697817", "0.556173", "0.554545", "0.55391115", "0.553167", "0.55305463", "0.55142826", "0.55098665", "0.5499696", "0.54913694", "0.5486967", "0.548028", "0.54766756", "0.54685146", "0.5466152", "0.5464759", "0.54496276", "0.54414356", "0.5436674", "0.5433779", "0.5429353", "0.542852", "0.5418045", "0.5414648", "0.54103935", "0.540629", "0.5406231", "0.5399428", "0.53940344", "0.53932863", "0.53921854", "0.5391542", "0.53911847", "0.5389112", "0.5388417", "0.5375251", "0.5374944", "0.5374069", "0.5370887", "0.5370517", "0.53687656" ]
0.61897415
9
Get the text to display in the pager that reflects the state of the pager. Modified from original
protected String createText() { // Default text is 1 based. NumberFormat formatter = NumberFormat.getFormat("#,###"); HasRows display = getDisplay(); Range range = display.getVisibleRange(); int pageStart = range.getStart() /*+ 1*/; int pageSize = range.getLength(); int dataSize = display.getRowCount(); int endIndex = Math.min(dataSize, pageStart + pageSize /*- 1*/); endIndex = Math.max(pageStart, endIndex); if(endIndex==0) pageStart = 0; else pageStart = pageStart + 1; String text = formatter.format(pageStart) + "-" + formatter.format(endIndex); return text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPageText();", "String getDisplayText();", "public String getTextOnPage()\n {\n return mainText.getText();\n }", "@Override\n @Nonnull\n public String getPlainText ()\n {\n return m_aPageTitle.getPlainText ();\n }", "@Override public String toString() { return getDisplayedText(); }", "public String getText() {\n int i = tp.indexOfTabComponent(TabButtonComponent.this);\n if (i != -1) {\n return tp.getTitleAt(i);\n }\n return null;\n }", "@Override\r\n\t\t\tpublic String getText() {\n\t\t\t\treturn text;\r\n\t\t\t}", "public String getText() {\n\t\treturn loadingInfo.getInnerText();\n\t}", "java.lang.String getExperienceText();", "@Override\n public String getText(int page) {\n String text = null;\n switch (page) {\n case E19_ALLPAGES:\n text = E19AllPages();\n break;\n case E19_COVER:\n text = E19Cover();\n break;\n case E19_MAPPAGE:\n text = E19MapPage();\n break;\n case E19_BENCHMARKS:\n text = E19Benchmarks();\n break;\n case E19_GAGES:\n text = E19Gages();\n break;\n case E19_HISTORY:\n text = E19History();\n break;\n case E19_CRESTS:\n text = E19Crests();\n break;\n case E19_LOWWATER:\n text = E19LowWater();\n break;\n case E19_CONDITIONS:\n text = E19Conditions();\n break;\n case E19_DAMAGE:\n text = E19Damage();\n break;\n case E19_STAFFGAGE:\n text = E19StaffGage();\n break;\n case E19_CONTACTS:\n text = E19Contacts();\n break;\n }\n\n return text;\n }", "protected Text getText() {\n \t\treturn text;\n \t}", "protected Text getText()\r\n\t{\r\n\t\treturn text;\r\n\t}", "public String getText() {\n\t\t\t\t\tint i = customTabbed.tabbedPane.indexOfTabComponent(customJTabbedpane.this);\n\t\t\t\t\tif (i != -1)\n\t\t\t\t\t\treturn customTabbed.tabbedPane.getTitleAt(i);\n\t\t\t\t\treturn null;\n\t\t\t\t}", "@Override\n public String loadTextWidget() {\n /* Get the complete E19 text and display it. */\n String text = getText(E19_ALLPAGES);\n text = text.replace(\"null\", \"\");\n\n return text;\n }", "public String getInfoText();", "public String getText () {\r\n\t\treturn (String) getStateHelper().eval(PropertyKeys.text);\r\n\t}", "public String getLabelText(){\n\t\treturn syncExec(new StringResult() {\t\t\n\t\t\t@Override\n\t\t\tpublic String run() {\n\t\t\t\tControl[] aux = widget.getParent().getChildren();\n\t\t\t\tfor (Control control : aux) {\n\t\t\t\t\tif (control instanceof CLabel){\n\t\t\t\t\t\treturn ((CLabel)control).getText();\n\t\t\t\t\t}\n\t\t\t\t\tif (control instanceof Label){\n\t\t\t\t\t\treturn ((Label)control).getText();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tpublic String textOnPage(EnumContent content, int p){\n\t\tif(stack == null)\r\n\t\t\tstack = new ItemStack(ItemRegistry.nomadSack);\r\n\t\tif(con == null)\r\n\t\t\tcon = RecipeRegistry.getRecipreFor(new ItemStack(BlockRegistry.nest));\r\n\t\tString s = \"\";\r\n\t\tswitch(p){\r\n\t\tcase 0:\r\n\t\t\ts += \"The nomads wanted to protect their insects so they built \"\r\n\t\t\t + \"nests. They soon noticed that the insects thanked them by \"\r\n\t\t\t + \"working the envoirment in their favor. All the insects \"\r\n\t\t\t + \"have their own way to help the nomads. What is intressting \"\r\n\t\t\t + \"is the sleep they enter when there is no help to be given. \";\r\n\t\t\tbreak;\r\n\t\tcase 1: //Sodium acetate, Cara Rot (Carrot), Elle D'berry (Elderberry), Rabarberpaj... Carla & Fleur (Cauliflower)\r\n\t\t\ts += KnowledgeDescriptions.getDisplayName(con) + \"\\n\\n\";\r\n\t\t\ts += \" ~ Structure ~\\n\";\r\n\t\t\ts += KnowledgeDescriptions.getStructure(con);\r\n\t\t\ts += \" ~ Creation ~\\n\\n\";\r\n\t\t\ts += KnowledgeDescriptions.getResult(con);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public String text() { return text; }", "public String getLabelText();", "public String getText(){\r\n\t\treturn text;\r\n\t}", "public abstract String getLabelText();", "public void setPageInfo(){\n\t\tif(AllP>=1){\n\t\t\tPageInfo=\"<table border='0' cellpadding='3'><tr><td>\";\n\t\t\tPageInfo+=\"Show: \"+PerR+\"/\"+AllR+\" Records!&nbsp;\";\n\t\t\tPageInfo+=\"Current page: \"+CurrentP+\"/\"+AllP;\n\t\t\tPageInfo+=\"</td></tr></table>\";\t\t\t\n\t\t}\t\t\t\t\n\t}", "public String levelPassedText() {\r\n\t\treturn levelManager.levelPassedText();\r\n\t}", "PagingLink(int pageNumber) {\n setText(String.valueOf(pageNumber));\n }", "public P getText() {\n return this.slp.getProduction(text);\n }", "public String getText() {\n checkWidget();\n int length = OS.GetWindowTextLength(handle);\n if (length == 0)\n return \"\";\n TCHAR buffer = new TCHAR(getCodePage(), length + 1);\n OS.GetWindowText(handle, buffer, length + 1);\n return buffer.toString(0, length);\n }", "public String getText() {\n\t\t\treturn text.get();\n\t\t}", "public String getDisplayText() {\n\n\t\tString s = FindAndReplace.replace(this.getDescription(), \"<br>\", \"\\n\", true);\n\t\treturn removeEntityRefs(s);\n\t}", "public String getText()\n {\n return (this.text);\n }", "public String getText() {\r\n return this.text;\r\n }", "String getToText();", "public String getDisplayText() {\r\n\t\treturn Strings.isNOTNullOrEmpty(this.getText())\r\n\t\t\t\t\t\t? this.getText()\r\n\t\t\t\t\t\t: Strings.isNOTNullOrEmpty(this.getDescription())\r\n\t\t\t\t\t\t\t\t? this.getDescription()\r\n\t\t\t\t\t\t\t\t: this.getUrl() != null\r\n\t\t\t\t\t\t\t\t\t\t? this.getUrl().asString()\r\n\t\t\t\t\t\t\t\t\t\t: \"NO TEXT DEFINED\";\r\n\t}", "public void renderText(TextRenderInfo renderInfo) {\n \tsuper.renderText(renderInfo);\n\t\tpage.setText(getResultantText());\n \twriteText();\n }", "protected String getPageLeft()\n {\n return \"\";\n }", "public String getItemText() {\n\t\treturn this.itemText;\n\t}", "public String getTextForDisplay() {\n\t\tif (textForDisplay == null) {\n\t\t\ttextForDisplay = \"\";\n\t\t\tif (text != null) {\n\t\t\t\ttextForDisplay = new String(text);\n\t\t\t}\n\t\t\tif (entities != null) {\n\t\t\t\tif (entities.urls != null) {\n\t\t\t\t\tfor (Url url : entities.urls) {\n\t\t\t\t\t\ttextForDisplay = textForDisplay.replace(url.url,\n\t\t\t\t\t\t\t\turl.display_url);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (entities.media != null) {\n\t\t\t\t\tfor (Media media : entities.media) {\n\t\t\t\t\t\ttextForDisplay = textForDisplay.replace(media.url,\n\t\t\t\t\t\t\t\tmedia.display_url);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\ttextForDisplay = textForDisplay.replace(\"&lt;\", \"<\")\n\t\t\t\t\t.replace(\"&gt;\", \">\").replace(\"&amp;\", \"&\");\n\t\t}\n\t\treturn textForDisplay;\n\t}", "public String getText()\n\t{\n\t\treturn text;\n\t}", "public String getText()\n\t{\n\t\treturn text;\n\t}", "public String getText()\n\t{\n\t\treturn text;\n\t}", "public String getText() {\r\n return text;\r\n }", "public String getPMText()\r\n {\r\n return (m_pmText);\r\n }", "java.lang.String getHotelText();", "public String getText() {\r\n\t\treturn text;\r\n\t}", "public String getText() {\r\n\t\treturn text;\r\n\t}", "public void setTitleAccordingToState(){\n String ts=null;\n switch(getPlayMode()){\n case LIVE:\n ts=\" LIVE\";\n break;\n case PLAYBACK:\n ts=currentFile.getName()+\" PLAYING\";\n break;\n case WAITING:\n ts=\"MotionViewer - WAITING\";\n break;\n }\n setTitle(ts);\n }", "public String getText()\r\n {\r\n return this.text;\r\n }", "@Override\n public String toString() {\n return this.text;\n }", "@Override\n public String toString() {\n return this.text;\n }", "public String getOtherPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(otherPageTitle).getText();\n }", "public String getText() {\n if (Language.isEnglish()) {\n return textEn;\n } else {\n return textFr;\n }\n }", "@Override\n public void onPageSelected(int arg0) {\n current = arg0;\n // title.setText(content[current]);\n\n //\tToast.makeText(LearningActivity.this, \"Current = \"+arg0, Toast.LENGTH_SHORT).show();\n\n }", "public String text() // left text\n\t{\n\t\treturn this._data.get(\"text\");\n\t}", "public String toString() {\n return getText();\n }", "public String getText() {\n return (getFieldValue(fields[0]) + \".\" + getFieldValue(fields[1]) + \".\" + getFieldValue(fields[2]) + \".\" + getFieldValue(fields[3]));\n }", "@Override\n public void onPageSelected(int position) {\n if (mIsFirstAppRun) {\n mTxtTitle.setText(getString(R.string.get_started));\n mTxtSubTitle.setText(getString(R.string.initial_time));\n } else {\n // If pager page change set data base on its position\n mTxtTitle.setText(\"(\" + (position + 1) + \"/\" +\n mWorkoutIds.size() + \") \" +\n mWorkoutNames.get(position));\n mTxtSubTitle.setText(mWorkoutTimes.get(position));\n }\n }", "public String text() {\r\n return mText;\r\n }", "public String getTabToolTipText();", "public void getText(){\n\t\tnoteText.setText(note.getText());\n\t}", "public String getText() {\r\n return text;\r\n }", "public String getText() {\r\n return text;\r\n }", "public String getText() {\n return mTextContainer.getText();\n }", "public String getText() {\n\t\treturn this.text;\n\t}", "public String getText() {\n\t\treturn this.text;\n\t}", "@Override\n public String toString() {\n return text;\n }", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "public String getText() {\n return this.text;\n }", "public String getText() {\n return this.text;\n }", "public String getText() {\n return this.text;\n }", "public String getText() {\n return this.text;\n }", "public String getText() {\n return this.text;\n }", "public String getText() {\n return this.text;\n }", "public final String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "protected abstract String display();", "public String getViewText() {\n \t\treturn \"featured-partner-view_text_t\";\n \t}", "public String getText() {\n return myText;\n }", "public String getText() {\n\t\treturn fragTelephone.getText().toString();\r\n\r\n\t}", "public String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n\t\treturn text;\n\t}", "public String getText(){\r\n return text;\r\n }", "@Override\r\n\tpublic void setText() {\n\t\t\r\n\t}", "@Override\n public void onGetNavigationText(int arg0, String arg1) {\n\n }", "public String getText() {\n return mBuilder.toString();\n }", "public java.lang.String getText() {\n \t\treturn text;\n \t}" ]
[ "0.7207453", "0.65041536", "0.64324564", "0.62230533", "0.61562526", "0.60399556", "0.602777", "0.5951702", "0.5888339", "0.5880252", "0.5873887", "0.5823127", "0.5792828", "0.5792133", "0.57675344", "0.57652295", "0.57386017", "0.57022923", "0.56998557", "0.5677249", "0.56518644", "0.5643464", "0.56406003", "0.5634012", "0.56223965", "0.5604569", "0.56041336", "0.5603271", "0.56020075", "0.56015944", "0.5581904", "0.5575453", "0.55515224", "0.55491906", "0.55423933", "0.5540085", "0.553714", "0.552665", "0.552665", "0.552665", "0.55062056", "0.55006087", "0.5498758", "0.54969686", "0.54969686", "0.54946035", "0.5490731", "0.5488807", "0.5488807", "0.5488729", "0.5484864", "0.54833025", "0.54820174", "0.5480556", "0.5480301", "0.5476572", "0.54747885", "0.5472536", "0.5472355", "0.54692286", "0.54692286", "0.5466223", "0.54604316", "0.54604316", "0.54573333", "0.54550314", "0.54550314", "0.54550314", "0.54550314", "0.54550314", "0.54550314", "0.54550314", "0.54550314", "0.54518497", "0.54518497", "0.54518497", "0.54518497", "0.54518497", "0.54518497", "0.54511875", "0.5447389", "0.5447389", "0.5447389", "0.5447389", "0.5447389", "0.54467946", "0.5446226", "0.54456097", "0.5440134", "0.5438105", "0.5438105", "0.5438105", "0.5438105", "0.5438105", "0.5438105", "0.5436007", "0.5427776", "0.542606", "0.54260474", "0.5423849" ]
0.616305
4
Check if the next button is disabled. Visible for testing.
boolean isNextButtonDisabled() { return nextPage.isDisabled(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CheckEnable()\n {\n btn_prev.setEnabled(true);\n btn_next.setEnabled(true);\n\n if(increment+1 == pageCount)\n {\n btn_next.setEnabled(false);\n }\n if(increment == 0)\n {\n btn_prev.setEnabled(false);\n }\n }", "boolean isPreviousButtonDisabled() {\r\n\t\treturn prevPage.isDisabled();\r\n\t}", "public void setNextEnabled(boolean b){\n\t\tbtnNext.setEnabled(b);\n\t}", "public static void checkAndClickNextButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t}", "public boolean isEnabled_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isEnabled()) { return true; } else { return false;} \r\n\t}", "public void disableNextButton(boolean disable) {\n this.jNextButton.setEnabled(disable);\n }", "public void testGetNextFinishButtonEnabled() {\n System.out.println(\"getNextFinishButtonEnabled\");\n Wizard instance = new Wizard();\n boolean expResult = false;\n boolean result = instance.getNextFinishButtonEnabled();\n assertEquals(expResult, result);\n }", "private void setNextPageButtonsDisabled(boolean disabled) {\r\n\t\tnextPage.setDisabled(disabled);\r\n\t\tif (lastPage != null) {\r\n\t\t\tlastPage.setDisabled(disabled);\r\n\t\t}\r\n\t}", "public static void checkAndClickNextButtonTriviaMode() {\r\n\t\tcheckNoSuchElementExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t}", "public void testSetNextFinishButtonEnabled() {\n System.out.println(\"setNextFinishButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setNextFinishButtonEnabled(newValue);\n }", "protected void enableButtons() {\n if (mPrevious_question.isPressed() || mNext_question.isPressed()) {\n mFalseButton.setEnabled(true);\n mTrueButton.setEnabled(true);\n }\n }", "public abstract boolean nextOrFinishPressed();", "public abstract boolean isNextBlocked();", "private void hideNextButton(){\n\t\tif(nextButton != null){\n\t\t\tmainWindow.getContainer().remove(nextButton);\n\t\t\tshowSubmitBtn();\n\t\t}\n\t}", "private void autoEnableNavButtons() {\n\t\tif (currPageIndex.equals(pages.size() - 1)) {\n\t\t\tbtnNext.setText(\"Finish\");\n\t\t} else {\n\t\t\tbtnNext.setText(\"Next >\");\n\t\t}\n\n\t\tbtnPrevious.setEnabled(!currPageIndex.equals(0));\n\t}", "private void setEndingButtons() {\n Button btnFinishEnable = (Button) findViewById(R.id.btnFinish);\n btnFinishEnable.setEnabled(true);\n Button btnNextEnable = (Button) findViewById(R.id.btnNext);\n btnNextEnable.setEnabled(false);\n }", "public BooleanProperty canNavigateToNextPageProperty() { return canNavigateToNextPage; }", "public boolean isDisplayed_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isDisplayed()) { return true; } else { return false;} \r\n\t}", "private void checkJumpButtons() {\n int currentPosition = mViewPager.getCurrentItem();\n\n if (currentPosition == 0 && mCrimes.size() == 1) {\n mJumpFirstButton.setEnabled(false);\n mJumpLastButton.setEnabled(false);\n } else if (currentPosition == 0) {\n mJumpFirstButton.setEnabled(false);\n mJumpLastButton.setEnabled(true);\n } else if (currentPosition == mCrimes.size() - 1) {\n mJumpFirstButton.setEnabled(true);\n mJumpLastButton.setEnabled(false);\n } else {\n mJumpFirstButton.setEnabled(true);\n mJumpLastButton.setEnabled(true);\n }\n\n // updating EditText with page numbers\n mPageNumberEditText.setText(String.valueOf(currentPosition + 1));\n }", "public void VerifyButtons(){\n if (currentTurn.getSiguiente() == null){\n next_turn.setEnabled(false);\n } else{\n next_turn.setEnabled(true);\n }\n if (currentTurn.getAnterior() == null){\n prev_turn.setEnabled(false);\n } else{\n prev_turn.setEnabled(true);\n }\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n } else{\n next_game.setEnabled(true);\n }\n if (current.getAnterior() == null){\n prev_game.setEnabled(false);\n } else{\n prev_game.setEnabled(true);\n }\n }", "public boolean isNextPage() {\n return nextPage;\n }", "public boolean isEnabled_click_My_Rewards_Link(){\r\n\t\tif(click_My_Rewards_Link.isEnabled()) { return true; } else { return false;} \r\n\t}", "public void enableContinue() {\n if (PayBillAccountBox.getValue() != null) continueButton.setDisable(false);\n }", "public void verifySkip()\n\t{\n\t\tAssert.assertEquals(continueButton.getText(), \"Skip\");\n\t}", "String disabledButton();", "public static Boolean tryAgainBtn() throws Exception {\n\t\tboolean checkPage=false;\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\")).click();\n\t\tif (driver.getPageSource().contains(QandA.getQuestion(0))||driver.getPageSource().contains(QandA.getQuestion(1))||driver.getPageSource().contains(QandA.getQuestion(2))){\n\t\t\tcheckPage=true;\n\t\t}\n\t\treturn checkPage;\n\t}", "public void enableEndOfProductionButton(){\n this.endOfproductionButton.setEnabled(true);\n }", "private void showNextButton(){\n\t\tif(nextButton != null){\n\t\t\thideSubmitBtn();\n\t\t\tmainWindow.addLayer(nextButton, BUTTON_LAYER, submitBtnX, submitBtnY);\n\t\t}\n\t}", "boolean usesNext() {\n return next != null;\n }", "public void run() {\n next.setEnabled(true);\n\n }", "public void onClick(View v) {\n if (iNext == count) {\n iNext = count-1;\n }\n if (pCheck) {\n iNext--;\n }\n if (iNext > 0) {\n iNext--;\n dataSource = data.get(iNext);\n ExammodeAdapter adapter = new ExammodeAdapter(context, dataSource,iNext,device,frag,resData);\n list.setAdapter(adapter);\n next.setEnabled(true);\n next.setText(\"Next\");\n nCheck =true;\n pCheck = false;\n\n }\n if (iNext == 0){\n priv.setEnabled(false);\n iNext = 0;\n nCheck =false;\n\n }\n\n\n }", "public void disableEndOfProductionButton(){\n this.endOfproductionButton.setEnabled(false);\n }", "public boolean isEnabled_click_Fuel_Rewards_Link(){\r\n\t\tif(click_Fuel_Rewards_Link.isEnabled()) { return true; } else { return false;} \r\n\t}", "boolean canBeSkipped();", "public static void clickNextBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.id(\"nextquest\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Next button in Q&A submit doesnt work\");\n\t\t}\n\t}", "protected JButton getNext()\n {\n return next;\n }", "private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }", "public boolean canFlipToNextPage();", "private void setPrevPageButtonsDisabled(boolean disabled) {\r\n\t\tfirstPage.setDisabled(disabled);\r\n\t\tprevPage.setDisabled(disabled);\r\n\t}", "public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void nextQuestion(View view) {\n Button button = (Button) findViewById(R.id.question_button_previous);\n if (!button.isEnabled()){\n button.setEnabled(true);\n }\n saveProgress();\n sequence++;\n updateView();\n }", "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 }", "private void nextPage()\n {\n if(currentPage + 1 <= maxPage)\n {\n prevPageButton.setEnabled(true);\n if(currentPage + 2 > maxPage)\n nextPageButton.setEnabled(false);\n \n paginate(++currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "@Override\n\tpublic boolean canMoveToNext() {\n\t\treturn true;\n\t}", "public void enableEndTurnButton(){\n this.endTurnButton.setEnabled(true);\n }", "private void checkButtonUnlock() {\r\n\t\tif (this.isAdressValid && this.isPortValid) {\r\n\t\t\tview.theButton.setDisable(false);\r\n\t\t}\r\n\r\n\t}", "public boolean isNextRedoEditPageAction() {\n/* 960 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* 961 */ return false;\n/* */ }\n/* */ \n/* 964 */ String info = null;\n/* */ try {\n/* 966 */ info = this.mPdfViewCtrl.getNextRedoInfo();\n/* 967 */ if (sDebug)\n/* 968 */ Log.d(TAG, \"next redo: \" + info); \n/* 969 */ return isEditPageAction(this.mContext, info);\n/* 970 */ } catch (Exception e) {\n/* 971 */ if (info == null || !info.equals(\"state not found\")) {\n/* 972 */ AnalyticsHandlerAdapter.getInstance().sendException(e, \"next redo info: \" + ((info == null) ? \"null\" : info));\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 977 */ return false;\n/* */ } \n/* */ }", "public void nextButtonClicked()\r\n {\n manager = sond.getManager();\r\n String insertSearchDelete = sond.getInsertSearchDelete();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n // falls der Thread pausiert ist, wird er beim betätigen des\r\n // next-Buttons aufgeweckt\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n // Redo muss vor den weiteren if Anweisungen stehen, damit erst alle\r\n // Redo ausgeführt werden, bevor neue Aktionen dem manager hinzugefuegt\r\n // werden\r\n else if (manager.canRedo())\r\n {\r\n manager.redo();\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"insert\"))\r\n {\r\n sond.nextInsertPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"search\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"delete\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n }", "private void nextButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextButtonActionPerformed\n if(napakalakiModel.getCurrentPlayer() == null){\n this.nextButton.setEnabled(false);\n this.combatButton.setEnabled(false);\n this.playerView1.enableAfterNextButton();\n napakalakiModel.nextTurn();\n this.combatResultLabel.setText(\"\");\n // Llamo al setNapakalaki para que surjan efecto los cambios\n setNapakalaki(napakalakiModel); \n }\n else{\n // Si ha cumplido el mal rollo puede continuar\n if( napakalakiModel.getCurrentPlayer().validState() ){\n this.nextButton.setEnabled(false);\n this.combatButton.setEnabled(false);\n this.playerView1.enableAfterNextButton();\n napakalakiModel.nextTurn();\n this.combatResultLabel.setText(\"\");\n // Llamo al setNapakalaki para que surjan efecto los cambios\n setNapakalaki(napakalakiModel);\n }\n else{\n this.combatResultLabel.setText(\"No cumples las condiciones para pasar de turno.\");\n }\n } \n }", "public void updateDisabledButtons() {\n\t\t//at least 3 credits should be there for perform add max action\n\t\tif (obj.getCredit() < 3)\n\t\t\taddMax.setEnabled(false);\n\t\t//at least a credit should be there for perform add max action\n\t\tif (obj.getCredit() == 0)\n\t\t\taddOne.setEnabled(false);\n\t\tif (obj.getCredit() >= 3)\n\t\t\taddMax.setEnabled(true);\n\t\tif (obj.getCredit() > 0)\n\t\t\taddOne.setEnabled(true);\n\t}", "@Override\n\tpublic boolean isAdvanceable() {\n\t\treturn false;\n\t}", "public static void clickNextBtnGame() {\t\n\t\tdriver.findElement(By.id(\"btnnext\")).click();\n\t}", "@Override\n public void onNextPressed() {\n }", "@Test\n\tpublic void addButtons__wrappee__SkipTrackTest() throws Exception {\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.ogg &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.volumecontrol &&\n\t\t\t\tConfiguration.shufflerepeat &&\n\t\t\t\tConfiguration.skiptrack\n\t\t) {\n\t\tstart();\n\t\t\t\n\t\t\tConfiguration.skiptrack = false;\n\t\t\t\n\t\t\tWhitebox.invokeMethod(gui, \"addButtons__wrappee__SkipTrack\");\n\t\t\tJButton button = (JButton) MemberModifier.field(Application.class, \"btnNextTrack\").get(gui);\n\t\t\tassertTrue(button.getBounds().getX() == 100);\n\t\t\tassertTrue(button.getBounds().getY() == 279);\n\t\t\tassertTrue(button.getBounds().getWidth() == 64);\n\t\t\tassertTrue(button.getBounds().getHeight() == 23);\n\t\t}\n\t}", "private boolean isNextReady()\n {\n return __m_NextReady;\n }", "private LoginPage clickOnNext() {\n if (waitForElementDisplayed(By.id(ID_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_NEXT)));\n return this;\n }\n return null;\n }", "public SelectGradableItemsPage clickNextButton() throws Exception {\n try {\n logInstruction(\"LOG INSTRUCTION:clicking the next button\");\n frameSwitch.switchToFrameContent();\n uiDriver.waitToBeDisplayed(btnNextButton, waitTime);\n btnNextButton.click();\n } catch (Exception e) {\n throw new Exception(\"ISSUE IN CLICKING THE 'Next' BUTTON\" + \"clickNextButton\" + e\n .getLocalizedMessage());\n }\n return new SelectGradableItemsPage(uiDriver);\n }", "public boolean nextPageNumber() {\n if (pageNumber * numResultsPerPage > maxNumResults) {\n this.errorMessage = \"Error: reached end. \";\n return false;\n }\n this.errorMessage = \"\";\n this.pageNumber++;\n return true;\n }", "public boolean skip() {\n return skip;\n }", "public abstract boolean isNextVisited();", "public boolean isSelected_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isSelected()) { return true; } else { return false;} \r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPageDisabled();", "public boolean isSkip() {\n return skip;\n }", "protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboolean isValid = currentStep.onAdvance();\n\t\tthis.getCancelButton().setVisible(!isLastStep);\n\t\tthis.getCancelButton().setEnabled(!isLastStep);\n\t\t\n\t\tthis.getBackButton().setVisible(!isLastStep);\n\t\tthis.getBackButton().setEnabled(!isFirstStep && !isLastStep);\n\n\t\tthis.getNextButton().setVisible(!isLastStep);\n\t\tthis.getNextButton().setEnabled(!isLastStep && isValid);\n\n\t\tthis.getFinishButton().setEnabled(isLastStep);\n\t\tthis.getFinishButton().setVisible(isLastStep);\n\t}", "public boolean verifyNoInactives() {\n\t\treturn !btnInactives.isEnabled();\n\n\t}", "private void allowContinueOrStop(){\r\n\t\troll.setEnabled(false);\r\n\t\tsubmit.setEnabled(false);\r\n\t\tagain.setEnabled(true);\r\n\t\tnoMore.setEnabled(true);\r\n\t\tstatusLabel.setText(\"Feeling lucky?\");\r\n\t\tupdate();\r\n\t}", "private void disableButtons()\r\n {\r\n }", "protected abstract boolean computeHasNext();", "public boolean getNext();", "protected void disableButtons() {\n if (mFalseButton.isPressed() || mTrueButton.isPressed())\n mFalseButton.setEnabled(false);\n mTrueButton.setEnabled(false);\n }", "public void disableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(false);\n }\n }", "public boolean isSetNextPage() {\n return EncodingUtils.testBit(__isset_bitfield, __NEXTPAGE_ISSET_ID);\n }", "public void testGetCancelButtonEnabled() {\n System.out.println(\"getCancelButtonEnabled\");\n Wizard instance = new Wizard();\n boolean expResult = false;\n boolean result = instance.getCancelButtonEnabled();\n assertEquals(expResult, result);\n }", "private void changeNextButtonState(boolean connected) {\n if (mEnableNextOnConnection && hasNextButton()) {\n getNextButton().setEnabled(connected);\n }\n }", "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "public void checkCountforButtonNextandPrevious() {\n Cursor coo = SQLAbsensi.fetchDatabaseAll();\n\n //Page Next\n if (firstDigit != 0) {\n pageCountStartAt = firstDigit * 10;\n int save = coo.getCount() / 10;\n if (save < firstDigit) {\n pageCountEndAt = (firstDigit + 1) * 10;\n } else {\n pageCountEndAt = firstDigit * 10 + (coo.getCount() % 10);\n myButton = (Button) findViewById(R.id.nextpagebutton);\n myButton.setVisibility(View.INVISIBLE);\n }\n } else {\n pageCountStartAt = 0;\n if (coo.getCount() > 10) {\n pageCountEndAt = 10;\n myButton = (Button) findViewById(R.id.nextpagebutton);\n myButton.setVisibility(View.VISIBLE);\n } else {\n pageCountEndAt = coo.getCount();\n }\n }\n\n //Page Previous\n if (firstDigit > 0) {\n myButton = (Button) findViewById(R.id.previouspagebutton);\n myButton.setVisibility(View.VISIBLE);\n } else {\n myButton = (Button) findViewById(R.id.previouspagebutton);\n myButton.setVisibility(View.INVISIBLE);\n }\n Refresh();\n\n }", "public void enableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(true);\n }\n }", "private boolean hasButtonsEnabled(List<Button> buttonList) {\n\n for (Button button : buttonList\n ) {\n if (button.isEnabled()) {\n return true;\n }\n }\n return false;\n }", "@Override\n public boolean nextBoolean() {\n return super.nextBoolean();\n }", "public boolean isPaginationPresent() {\r\n\t\treturn isElementVisible(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-pagination.ant-table-pagination.mini\"), SHORTWAIT);\r\n\t}", "boolean isAutoSkip();", "protected boolean hasNegativeButton() {\n return false;\n }", "public void disableEndTurnButton(){\n\n this.endTurnButton.setEnabled(false);\n }", "public void goOnToNextQuestion(){\n\t\tbtnConfirmOrNext.setText(\"Next Question\");\n\t\tenableAllButtons();// need to be able to click to proceed\n\t\tquizAccuracy.setText(\": \"+spellList.getLvlAccuracy()+\"%\");\n\t\t// if user got answer correct move on immediately, else let user look at the correct answer first\n\t\tif(correctFlag){\n\t\t\t// set it to false initially for the next question\n\t\t\tcorrectFlag = false;\n\t\t\tbtnConfirmOrNext.doClick();\n\t\t}\n\n\t}", "public void panelActivate()\n {\n if (!yesRadio.isSelected())\n {\n parent.lockNextButton();\n }\n }", "public void enableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(true);\n\t\tbtnStop.setEnabled(true);\n\t\tbtnListenAgain.setEnabled(true);\t\t\n\t}", "private static boolean isAllowedNext(final ITranslator<?, ?, ?, ?, ?, ?> current,\r\n\t\t\tfinal ITranslator<?, ?, ?, ?, ?, ?> next) {\n\t\treturn current.getSourceExpressionClass() == next.getTargetExpressionClass()\r\n\t\t\t\t&& current.getSourceTraceElementClass() == next.getTargetTraceElementClass();\r\n\t}", "private void checkButtonVisibility() {\n\n if (leftBlockIndex > 0) {\n buttonLeft.setVisibility(View.VISIBLE);\n } else {\n buttonLeft.setVisibility(View.INVISIBLE);\n }\n\n if (leftBlockIndex < blockCount - 2) {\n buttonRight.setVisibility(View.VISIBLE);\n } else {\n buttonRight.setVisibility(View.INVISIBLE);\n }\n\n }", "@Override\r\n\tpublic boolean canFlipToNextPage() {\n\t\tif (NetSource.getInstance().getConnection() != null)\r\n\t\t\treturn false;\r\n\r\n\t\treturn true;\r\n\t}", "private void habilitar() {\n\n if (i <= 0) {\n jButton4.setEnabled(false);\n } else {\n jButton4.setEnabled(true);\n }\n }", "public void uiVerifyButtonUndoEnable() {\n try {\n getLogger().info(\"Verify button Undo Todo enable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo\")) {\n NXGReports.addStep(\"Verify button Undo Todo enable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo enable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void disableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(false);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnListenAgain.setEnabled(false);\n\t}", "public boolean verifyPaymentPlanDisabled() {\n\t\treturn !divPaymentPlan.isEnabled();\n\t}", "public static Boolean playBtn() { \n\t\tboolean startGame= false;\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\")).click();\n\t\tif (driver.getPageSource().contains(QandA.getQuestion(0))||driver.getPageSource().contains(QandA.getQuestion(1))||driver.getPageSource().contains(QandA.getQuestion(2))){\n\t\t\tstartGame=true;\n\t\t}\n\t\treturn startGame; \n\t}", "protected boolean hasPositiveButton() {\n return false;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n Button nextPage = (Button) findViewById(R.id.button_id);\n System.out.println(\"THE RESULT CODE IS = \" + resultCode);\n if (resultCode==7 | resultCode==0) {\n nextPage.setVisibility(View.VISIBLE);\n }\n else {\n nextPage.setVisibility(View.GONE);\n callbackManager.onActivityResult(requestCode, resultCode, data);\n }\n }", "private void checkEnableDisable() {\n\t\tif (_trainingSet.getCount() > 0) {\n\t\t\t_saveSetMenuItem.setEnabled(true);\n\t\t\t_saveSetAsMenuItem.setEnabled(true);\n\t\t\t_trainMenuItem.setEnabled(true);\n\t\t} else {\n\t\t\t_saveSetMenuItem.setEnabled(false);\n\t\t\t_saveSetAsMenuItem.setEnabled(false);\n\t\t\t_trainMenuItem.setEnabled(false);\n\t\t}\n\n\t\tif (_currentTrainGrid == null) {\n\t\t\t_deleteGridMenuItem.setEnabled(true);\n\t\t} else {\n\t\t\t_deleteGridMenuItem.setEnabled(true);\n\t\t}\n\n\t\tif (_index > 0) {\n\t\t\t_leftGridMenuItem.setEnabled(true);\n\t\t\t_leftBtn.setEnabled(true);\n\t\t\t_firstGridMenuItem.setEnabled(true);\n\t\t\t_firstBtn.setEnabled(true);\n\t\t} else {\n\t\t\t_leftGridMenuItem.setEnabled(false);\n\t\t\t_leftBtn.setEnabled(false);\n\t\t\t_firstGridMenuItem.setEnabled(false);\n\t\t\t_firstBtn.setEnabled(false);\n\t\t}\n\n\t\tif (_index < _trainingSet.getCount() - 1) {\n\t\t\t_rightGridMenuItem.setEnabled(true);\n\t\t\t_rightBtn.setEnabled(true);\n\t\t\t_lastGridMenuItem.setEnabled(true);\n\t\t\t_lastBtn.setEnabled(true);\n\t\t} else {\n\t\t\t_rightGridMenuItem.setEnabled(false);\n\t\t\t_rightBtn.setEnabled(false);\n\t\t\t_lastGridMenuItem.setEnabled(false);\n\t\t\t_lastBtn.setEnabled(false);\n\t\t}\n\n\t\tif (_index >= _trainingSet.getCount()) {\n\t\t\t_indexLabel.setText(String.format(NEW_INDEX_LABEL, _trainingSet.getCount()));\n\t\t} else {\n\t\t\t_indexLabel.setText(String.format(INDEX_LABEL, _index + 1, _trainingSet.getCount()));\n\t\t}\n\n\t\t_resultLabel.setText(EMPTY_RESULT_LABEL);\n\t}", "public void updateButton(boolean done) {\n\t\tdiceBtn.setDisable(done);\n\t\tendTurn.setDisable(!done);\n\t}", "public boolean isEnabled_click_Digital_coupons_button(){\r\n\t\tif(click_Digital_coupons_button.isEnabled()) { return true; } else { return false;} \r\n\t}", "protected void showNextPage() {\n\t\tif (currPageIndex.equals(pages.size() - 1)) {\n\t\t\t// Last page so dispose\n\n\t\t\tcleanup();\n\t\t\treturn;\n\t\t}\n\n\t\tAbstractWizardPanel page = pages.get(currPageIndex);\n\n\t\t// Remove page from ignored list if requested\n\t\tif (page.getEnablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getEnablePageClassArray()) {\n\t\t\t\tignoredPages.remove(ignorePage);\n\t\t\t}\n\t\t}\n\n\t\t// Add page to ignored list if requested\n\t\tif (page.getDisablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getDisablePageClassArray()) {\n\t\t\t\tif (!ignoredPages.contains(ignorePage)) {\n\t\t\t\t\tignoredPages.add(ignorePage);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tshowPage(currPageIndex + 1, Direction.FORWARD);\n\n\t}" ]
[ "0.7711149", "0.73066443", "0.7274544", "0.72302824", "0.7225742", "0.7192853", "0.7185907", "0.7022363", "0.6902402", "0.68346566", "0.68009275", "0.6669513", "0.6579927", "0.6552991", "0.6540085", "0.64472973", "0.6438172", "0.64277345", "0.6390242", "0.6341706", "0.6338053", "0.63132954", "0.62924707", "0.628855", "0.6277184", "0.6250009", "0.62199986", "0.61943495", "0.61748576", "0.6166057", "0.61523855", "0.61295354", "0.61261714", "0.607923", "0.6061217", "0.6053207", "0.6034867", "0.6010607", "0.60045594", "0.59873325", "0.59688663", "0.5966979", "0.59621304", "0.5960188", "0.59537935", "0.5947861", "0.5946996", "0.59460765", "0.5944345", "0.59294766", "0.5921513", "0.5915666", "0.5915096", "0.59118015", "0.59094584", "0.59082544", "0.5899641", "0.5897775", "0.5881774", "0.5875574", "0.5847399", "0.5844706", "0.5833784", "0.5832889", "0.58279395", "0.58228946", "0.5818211", "0.58066666", "0.5801533", "0.57916564", "0.5781", "0.5775869", "0.5765221", "0.57555544", "0.5744755", "0.57232213", "0.5719063", "0.5711235", "0.5710758", "0.5707075", "0.57056135", "0.57047635", "0.5696603", "0.5694069", "0.56901413", "0.5677496", "0.5657556", "0.56520563", "0.5649299", "0.56416357", "0.56366354", "0.5635395", "0.5629141", "0.5626029", "0.56140214", "0.56135917", "0.56125855", "0.5601169", "0.55986595", "0.5597722" ]
0.8909907
0
Check if the previous button is disabled. Visible for testing.
boolean isPreviousButtonDisabled() { return prevPage.isDisabled(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CheckEnable()\n {\n btn_prev.setEnabled(true);\n btn_next.setEnabled(true);\n\n if(increment+1 == pageCount)\n {\n btn_next.setEnabled(false);\n }\n if(increment == 0)\n {\n btn_prev.setEnabled(false);\n }\n }", "boolean isNextButtonDisabled() {\r\n\t\treturn nextPage.isDisabled();\r\n\t}", "public boolean hasPrevious()\n {\n // TODO: implement this method\n return false;\n }", "public boolean hasPrevious() {\n\t\t\t\treturn false;\r\n\t\t\t}", "@Override\r\n\t\tpublic boolean hasPrevious() {\n\t\t\treturn false;\r\n\t\t}", "private void setPrevPageButtonsDisabled(boolean disabled) {\r\n\t\tfirstPage.setDisabled(disabled);\r\n\t\tprevPage.setDisabled(disabled);\r\n\t}", "public boolean hasPrevious() {\n return getPage() > 0;\n }", "public boolean hasPrevious() {\n\t\tif(prevIndex > -1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean hasPrevious();", "boolean hasPrevious();", "boolean hasPrevious();", "boolean hasPrevious();", "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 }", "protected JButton getPrevious()\n {\n return previous;\n }", "public boolean previous() {\n boolean result = true;\n try {\n element = iterator.previous();\n } catch(NoSuchElementException ex) {\n result = false;\n }\n return result;\n }", "protected void enableButtons() {\n if (mPrevious_question.isPressed() || mNext_question.isPressed()) {\n mFalseButton.setEnabled(true);\n mTrueButton.setEnabled(true);\n }\n }", "public boolean isEnabled_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isEnabled()) { return true; } else { return false;} \r\n\t}", "public boolean hasPrevious() {\r\n \treturn index > 0; \r\n }", "private void previousButtonMouseClicked(java.awt.event.MouseEvent evt) {\n if(previousButton.isEnabled() == false || checkUpdateInventoryError() == true) return;\n recordChanged();\n current --;\n displayCurrentStock();\n }", "public boolean hasPrevious() {\n return position > 0;\n }", "@Override\n\tpublic boolean hasPreviousPage() {\n\t\treturn false;\n\t}", "public boolean hasPreviousElement() {\n return false;\n }", "public boolean isPreviousPage() {\n return previousPage;\n }", "protected boolean hasNegativeButton() {\n return false;\n }", "public boolean prevPageNumber() {\n if (pageNumber == 1) {\n this.errorMessage = \"Error: already at start. \";\n return false;\n }\n this.errorMessage = \"\";\n this.pageNumber--;\n return true;\n }", "String disabledButton();", "@CheckReturnValue\n public boolean hasPrevious() {\n return offset > 0;\n }", "@Override\r\n public boolean hasPrevious() {\r\n if (previous.data == null) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean hasPrevious() \n\t{\n\t\tboolean res = false;\n\t\tif(actual != null) {\n\n\t\t\tif(esUltimo && actual != null)\n\t\t\t\tres=true;\n\t\t\telse {\n\t\t\t\tres = actual.darAnterior() != null;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "boolean hasPreviousPage();", "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "private void prevPage()\n {\n if(currentPage - 1 >= 1)\n {\n nextPageButton.setEnabled(true);\n if(currentPage -2 < 1)\n prevPageButton.setEnabled(false);\n \n paginate(--currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "private void checkEnableDisable() {\n\t\tif (_trainingSet.getCount() > 0) {\n\t\t\t_saveSetMenuItem.setEnabled(true);\n\t\t\t_saveSetAsMenuItem.setEnabled(true);\n\t\t\t_trainMenuItem.setEnabled(true);\n\t\t} else {\n\t\t\t_saveSetMenuItem.setEnabled(false);\n\t\t\t_saveSetAsMenuItem.setEnabled(false);\n\t\t\t_trainMenuItem.setEnabled(false);\n\t\t}\n\n\t\tif (_currentTrainGrid == null) {\n\t\t\t_deleteGridMenuItem.setEnabled(true);\n\t\t} else {\n\t\t\t_deleteGridMenuItem.setEnabled(true);\n\t\t}\n\n\t\tif (_index > 0) {\n\t\t\t_leftGridMenuItem.setEnabled(true);\n\t\t\t_leftBtn.setEnabled(true);\n\t\t\t_firstGridMenuItem.setEnabled(true);\n\t\t\t_firstBtn.setEnabled(true);\n\t\t} else {\n\t\t\t_leftGridMenuItem.setEnabled(false);\n\t\t\t_leftBtn.setEnabled(false);\n\t\t\t_firstGridMenuItem.setEnabled(false);\n\t\t\t_firstBtn.setEnabled(false);\n\t\t}\n\n\t\tif (_index < _trainingSet.getCount() - 1) {\n\t\t\t_rightGridMenuItem.setEnabled(true);\n\t\t\t_rightBtn.setEnabled(true);\n\t\t\t_lastGridMenuItem.setEnabled(true);\n\t\t\t_lastBtn.setEnabled(true);\n\t\t} else {\n\t\t\t_rightGridMenuItem.setEnabled(false);\n\t\t\t_rightBtn.setEnabled(false);\n\t\t\t_lastGridMenuItem.setEnabled(false);\n\t\t\t_lastBtn.setEnabled(false);\n\t\t}\n\n\t\tif (_index >= _trainingSet.getCount()) {\n\t\t\t_indexLabel.setText(String.format(NEW_INDEX_LABEL, _trainingSet.getCount()));\n\t\t} else {\n\t\t\t_indexLabel.setText(String.format(INDEX_LABEL, _index + 1, _trainingSet.getCount()));\n\t\t}\n\n\t\t_resultLabel.setText(EMPTY_RESULT_LABEL);\n\t}", "private void previousButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n if(this.page == 0){\n Warning.run(\"No previous page here.\");\n }\n else{\n this.page--;\n this.update();\n }\n }", "public boolean hasPrevious() {\n\t\t\treturn previousPosition < vector.size();\n\t\t}", "public void VerifyButtons(){\n if (currentTurn.getSiguiente() == null){\n next_turn.setEnabled(false);\n } else{\n next_turn.setEnabled(true);\n }\n if (currentTurn.getAnterior() == null){\n prev_turn.setEnabled(false);\n } else{\n prev_turn.setEnabled(true);\n }\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n } else{\n next_game.setEnabled(true);\n }\n if (current.getAnterior() == null){\n prev_game.setEnabled(false);\n } else{\n prev_game.setEnabled(true);\n }\n }", "public boolean hasPrevious() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"hasPrevious() Not implemented.\" );\n\t\t}", "public boolean wasButtonJustPressed(int playerNum) {\r\n if (button.clicked) {\r\n button.clicked = false;\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public boolean hasPrevious() {\r\n if (current - 1 <= 0) {\r\n current = elem.length - 1;\r\n }\r\n return elem[current - 1] != null;\r\n }", "boolean previousStep();", "protected void disableButtons() {\n if (mFalseButton.isPressed() || mTrueButton.isPressed())\n mFalseButton.setEnabled(false);\n mTrueButton.setEnabled(false);\n }", "public void skipToPrevious() {\n try {\n mSessionBinder.previous(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling previous.\", e);\n }\n }", "@Override\r\n public boolean hasPrevious() {\n return returned.prev != header;\r\n }", "public void verifySkip()\n\t{\n\t\tAssert.assertEquals(continueButton.getText(), \"Skip\");\n\t}", "public void testGetCancelButtonEnabled() {\n System.out.println(\"getCancelButtonEnabled\");\n Wizard instance = new Wizard();\n boolean expResult = false;\n boolean result = instance.getCancelButtonEnabled();\n assertEquals(expResult, result);\n }", "private void disableButtons()\r\n {\r\n }", "private void previousBtnActionPerformed(java.awt.event.ActionEvent evt) {\n}", "public void testSetBackButtonEnabled() {\n System.out.println(\"setBackButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setBackButtonEnabled(newValue);\n }", "boolean canBeSkipped();", "public boolean verifyChangePayorDisabled() {\n\t\treturn !btnChangePayor.isEnabled();\n\t}", "private void previous() {\n if (position > 0) {\n Player.getInstance().stop();\n\n // Set a new position:w\n --position;\n\n ibSkipNextTrack.setImageDrawable(getResources()\n .getDrawable(R.drawable.ic_skip_next_track_on));\n\n try {\n Player.getInstance().play(tracks.get(position));\n } catch (IOException playerException) {\n playerException.printStackTrace();\n }\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_pause_track);\n setCover(Player.getInstance().getCover(tracks.get(position), this));\n\n tvTrack.setText(tracks.get(position).getName());\n tvTrackEndTime.setText(playerUtils.toMinutes(Player.getInstance().getTrackEndTime()));\n }\n\n if (position == 0) {\n setImageDrawable(ibSkipPreviousTrack, R.drawable.ic_skip_previous_track_off);\n }\n }", "private void autoEnableNavButtons() {\n\t\tif (currPageIndex.equals(pages.size() - 1)) {\n\t\t\tbtnNext.setText(\"Finish\");\n\t\t} else {\n\t\t\tbtnNext.setText(\"Next >\");\n\t\t}\n\n\t\tbtnPrevious.setEnabled(!currPageIndex.equals(0));\n\t}", "private void setNextPageButtonsDisabled(boolean disabled) {\r\n\t\tnextPage.setDisabled(disabled);\r\n\t\tif (lastPage != null) {\r\n\t\t\tlastPage.setDisabled(disabled);\r\n\t\t}\r\n\t}", "public void previousQuestion(View view) {\n if (sequence > 1) {\n saveProgress();\n sequence--;\n if (sequence <=1){\n Button button = (Button) findViewById(R.id.question_button_previous);\n button.setEnabled(false);\n }\n updateView();\n }\n }", "public void updateDisabledButtons() {\n\t\t//at least 3 credits should be there for perform add max action\n\t\tif (obj.getCredit() < 3)\n\t\t\taddMax.setEnabled(false);\n\t\t//at least a credit should be there for perform add max action\n\t\tif (obj.getCredit() == 0)\n\t\t\taddOne.setEnabled(false);\n\t\tif (obj.getCredit() >= 3)\n\t\t\taddMax.setEnabled(true);\n\t\tif (obj.getCredit() > 0)\n\t\t\taddOne.setEnabled(true);\n\t}", "public boolean hasPrev() {\n return cursor != null && ((Entry<T>) cursor).prev!= null && ((Entry) cursor).prev.prev != null;\n }", "protected Component createPreviousButton() {\n/* 65 */ JButton b = new SpecialUIButton(new LiquidSpinnerButtonUI(5));\n/* 66 */ b.addActionListener(previousButtonHandler);\n/* 67 */ b.addMouseListener(previousButtonHandler);\n/* 68 */ return b;\n/* */ }", "public void uiVerifyButtonUndoEnable() {\n try {\n getLogger().info(\"Verify button Undo Todo enable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo\")) {\n NXGReports.addStep(\"Verify button Undo Todo enable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo enable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\tfilter.setEnabled(false);\r\n\t\tsave.setEnabled(false);\r\n\t\t//load.setEnabled(false);\r\n\t}", "public void disableEndOfProductionButton(){\n this.endOfproductionButton.setEnabled(false);\n }", "public int previousIndex() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"hasPrevious() Not implemented.\" );\n\t\t}", "public static void resume()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(true);\n\t\tbtnStay.setEnabled(true);\n\t\tbtnDouble.setEnabled(false);\n\t}", "protected boolean hasPositiveButton() {\n return false;\n }", "@java.lang.Override\n public boolean getBackToBackEnabled() {\n return backToBackEnabled_;\n }", "public T previous() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"hasPrevious() Not implemented.\" );\n\t\t}", "private void checkButtonUnlock() {\r\n\t\tif (this.isAdressValid && this.isPortValid) {\r\n\t\t\tview.theButton.setDisable(false);\r\n\t\t}\r\n\r\n\t}", "public void disableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(false);\n }\n }", "@java.lang.Override\n public boolean getBackToBackEnabled() {\n return backToBackEnabled_;\n }", "private void setBtnState(){\n recordBtn.setEnabled(!recording);\n stopBtn.setEnabled(recording);\n pauseBtn.setEnabled(playing & !paused);\n resumeBtn.setEnabled(paused);\n }", "public static Boolean tryAgainBtn() throws Exception {\n\t\tboolean checkPage=false;\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\")).click();\n\t\tif (driver.getPageSource().contains(QandA.getQuestion(0))||driver.getPageSource().contains(QandA.getQuestion(1))||driver.getPageSource().contains(QandA.getQuestion(2))){\n\t\t\tcheckPage=true;\n\t\t}\n\t\treturn checkPage;\n\t}", "private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}", "public void disableNextButton(boolean disable) {\n this.jNextButton.setEnabled(disable);\n }", "public void enableContinue() {\n if (PayBillAccountBox.getValue() != null) continueButton.setDisable(false);\n }", "public void testGetNextFinishButtonEnabled() {\n System.out.println(\"getNextFinishButtonEnabled\");\n Wizard instance = new Wizard();\n boolean expResult = false;\n boolean result = instance.getNextFinishButtonEnabled();\n assertEquals(expResult, result);\n }", "public boolean onBackPressed() {\n\t\tif ( isClosed() ) return false;\n\t\tif ( mCurrentState != STATE.DISABLED ) {\n\t\t\tif ( isOpened() ) {\n\t\t\t\tif ( !mCurrentEffect.onBackPressed() ) onCancel();\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n\tpublic void addButtons__wrappee__SkipTrackTest() throws Exception {\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.ogg &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.volumecontrol &&\n\t\t\t\tConfiguration.shufflerepeat &&\n\t\t\t\tConfiguration.skiptrack\n\t\t) {\n\t\tstart();\n\t\t\t\n\t\t\tConfiguration.skiptrack = false;\n\t\t\t\n\t\t\tWhitebox.invokeMethod(gui, \"addButtons__wrappee__SkipTrack\");\n\t\t\tJButton button = (JButton) MemberModifier.field(Application.class, \"btnNextTrack\").get(gui);\n\t\t\tassertTrue(button.getBounds().getX() == 100);\n\t\t\tassertTrue(button.getBounds().getY() == 279);\n\t\t\tassertTrue(button.getBounds().getWidth() == 64);\n\t\t\tassertTrue(button.getBounds().getHeight() == 23);\n\t\t}\n\t}", "public boolean isDisplayed_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isDisplayed()) { return true; } else { return false;} \r\n\t}", "private JButton getJbtnPreviousStep() {\n\t\tif (jbtnPreviousStep == null) {\n\t\t\tjbtnPreviousStep = new JButton();\n\t\t\tjbtnPreviousStep.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\tjbtnPreviousStep.setHorizontalTextPosition(SwingConstants.TRAILING);\n\t\t\tjbtnPreviousStep.setIcon(new ImageIcon(getClass().getResource(\"/org/measureyourgradient/images/back.png\")));\n\t\t\tjbtnPreviousStep.setText(\" Previous Step\");\n\t\t\tjbtnPreviousStep.setSize(new Dimension(178, 34));\n\t\t\tjbtnPreviousStep.setLocation(new Point(6, 576));\n\t\t\tjbtnPreviousStep.setActionCommand(\"Previous Step\");\n\t\t}\n\t\treturn jbtnPreviousStep;\n\t}", "public boolean verifyNoInactives() {\n\t\treturn !btnInactives.isEnabled();\n\n\t}", "public void disableButtons() {\n p1WinPoint.setEnabled(false);\n p2WinPoint.setEnabled(false);\n }", "protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboolean isValid = currentStep.onAdvance();\n\t\tthis.getCancelButton().setVisible(!isLastStep);\n\t\tthis.getCancelButton().setEnabled(!isLastStep);\n\t\t\n\t\tthis.getBackButton().setVisible(!isLastStep);\n\t\tthis.getBackButton().setEnabled(!isFirstStep && !isLastStep);\n\n\t\tthis.getNextButton().setVisible(!isLastStep);\n\t\tthis.getNextButton().setEnabled(!isLastStep && isValid);\n\n\t\tthis.getFinishButton().setEnabled(isLastStep);\n\t\tthis.getFinishButton().setVisible(isLastStep);\n\t}", "@Override\n public boolean hasPrevious()\n {\n if(left == null)\n {\n return false;\n }\n else\n {\n return true;\n }\n }", "public static void checkAndClickBackButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"backquest\", \"\\\"Back\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"backquest\", \"\\\"Back\\\" button\");\r\n\t}", "public boolean isCancelled()\n\t{\n\t\treturn _buttonHit;\n\t}", "private void checkButtonVisibility() {\n\n if (leftBlockIndex > 0) {\n buttonLeft.setVisibility(View.VISIBLE);\n } else {\n buttonLeft.setVisibility(View.INVISIBLE);\n }\n\n if (leftBlockIndex < blockCount - 2) {\n buttonRight.setVisibility(View.VISIBLE);\n } else {\n buttonRight.setVisibility(View.INVISIBLE);\n }\n\n }", "void enableBtn() {\n findViewById(R.id.button_play).setEnabled(true);\n findViewById(R.id.button_pause).setEnabled(true);\n findViewById(R.id.button_reset).setEnabled(true);\n }", "private JButton getPreButton() {\r\n\t\tif (preButton == null) {\r\n\t\t\tpreButton = new JButton();\r\n\t\t\tpreButton.setText(\"Prev Page\");\r\n\t\t\tpreButton.setSize(new Dimension(120, 30));\r\n\t\t\tpreButton.setLocation(new java.awt.Point(10,480));\r\n\t\t}\r\n\t\treturn preButton;\r\n\t}", "public boolean isEnabled_click_My_Rewards_Link(){\r\n\t\tif(click_My_Rewards_Link.isEnabled()) { return true; } else { return false;} \r\n\t}", "public boolean isSelected_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isSelected()) { return true; } else { return false;} \r\n\t}", "public void disableEndTurnButton(){\n\n this.endTurnButton.setEnabled(false);\n }", "public static void previous() {\n\t\tsendMessage(PREVIOUS_COMMAND);\n\t}", "public void previous();", "private void checkJumpButtons() {\n int currentPosition = mViewPager.getCurrentItem();\n\n if (currentPosition == 0 && mCrimes.size() == 1) {\n mJumpFirstButton.setEnabled(false);\n mJumpLastButton.setEnabled(false);\n } else if (currentPosition == 0) {\n mJumpFirstButton.setEnabled(false);\n mJumpLastButton.setEnabled(true);\n } else if (currentPosition == mCrimes.size() - 1) {\n mJumpFirstButton.setEnabled(true);\n mJumpLastButton.setEnabled(false);\n } else {\n mJumpFirstButton.setEnabled(true);\n mJumpLastButton.setEnabled(true);\n }\n\n // updating EditText with page numbers\n mPageNumberEditText.setText(String.valueOf(currentPosition + 1));\n }", "public boolean previous() throws SQLException\n {\n return m_rs.previous();\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPageDisabled();", "private void updateControlButtonStatus(boolean isNetworkConnected) {\n\t\tif (isNetworkConnected) {\r\n\t\t\t// if (mPlayShareButton.getVisibility() == View.VISIBLE) {\r\n\t\t\t// mPlayShareButton.requestFocus();\r\n\t\t\t//\r\n\t\t\t// } else {\r\n\t\t\t// mPlayerStartButton.requestFocus();\r\n\t\t\t// }\r\n\t\t\t// if (mVideoContrl != null && !mVideoContrl.isVOD()) {\r\n\t\t\t// mPlayerSaveButton.setEnabled(false);\r\n\t\t\t// mPlayerSaveButton.setFocusable(false);\r\n\t\t\t// }\r\n\t\t}\r\n\r\n\t\t// mPlayerPrevious.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerPrevious.setFocusable(isNetworkConnected);\r\n\t\t// mPlayerNext.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerNext.setFocusable(isNetworkConnected);\r\n\t\t// mMutiPlayerPrevious.setEnabled(isNetworkConnected);\r\n\t\t// mMutiPlayerPrevious.setFocusable(isNetworkConnected);\r\n\t\t// mMutiPlayerNext.setEnabled(isNetworkConnected);\r\n\t\t// mMutiPlayerNext.setFocusable(isNetworkConnected);\r\n\t\t// mPlayerSequenceButton.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerSequenceButton.setFocusable(isNetworkConnected);\r\n\t\t// mPlayerVolumeButton.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerVolumeButton.setFocusable(isNetworkConnected);\r\n\t}", "public boolean isCancelButtonPresent() {\r\n\t\treturn isElementPresent(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Cancel\"), SHORTWAIT);\r\n\t}", "public void disableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(false);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnListenAgain.setEnabled(false);\n\t}", "public void enableEndOfProductionButton(){\n this.endOfproductionButton.setEnabled(true);\n }" ]
[ "0.72678447", "0.71270615", "0.6961909", "0.6918586", "0.6858057", "0.68225634", "0.67841274", "0.6764824", "0.6718056", "0.6718056", "0.6718056", "0.6718056", "0.6715884", "0.6634956", "0.66129214", "0.65838695", "0.65733105", "0.6572955", "0.6533077", "0.6520642", "0.6500728", "0.64888424", "0.647259", "0.6453882", "0.63911", "0.63286203", "0.63136464", "0.62784266", "0.6264136", "0.6234255", "0.6216233", "0.6215107", "0.6191392", "0.61842734", "0.6166826", "0.61584383", "0.6148068", "0.6146335", "0.61379915", "0.61339384", "0.6130994", "0.6063381", "0.60615283", "0.60341394", "0.6017796", "0.600066", "0.59833574", "0.595023", "0.59303045", "0.5924503", "0.5912476", "0.5886594", "0.58860683", "0.5884196", "0.5880392", "0.5878195", "0.5869009", "0.5857337", "0.58568835", "0.5855502", "0.58437246", "0.58326834", "0.5823858", "0.58169365", "0.5816782", "0.5809126", "0.5798619", "0.5769277", "0.5758336", "0.5752762", "0.574675", "0.5745872", "0.5743353", "0.5743292", "0.5739945", "0.5731816", "0.5726027", "0.5705197", "0.5699603", "0.56962913", "0.56794715", "0.56658566", "0.5664493", "0.56535125", "0.56521714", "0.5650257", "0.5644445", "0.56426656", "0.562887", "0.5623629", "0.56234175", "0.5602099", "0.5597049", "0.5594829", "0.5590259", "0.5581607", "0.55773413", "0.5568134", "0.5557598", "0.5547083" ]
0.8854163
0
Get the number of pages to fast forward based on the current page size.
private int getFastForwardPages() { int pageSize = getPageSize(); return pageSize > 0 ? fastForwardRows / pageSize : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numPages() {\n // some code goes here\n return (int) Math.ceil(m_f.length() / BufferPool.PAGE_SIZE);\n }", "public int numPages() {\n // some code goes here\n return (int)Math.ceil(f.length()/BufferPool.PAGE_SIZE);\n \n }", "public int numPages() {\n // some code goes here\n //System.out.println(\"File length :\" + f.length());\n\n return (int) Math.ceil(f.length() * 1.0 / BufferPool.PAGE_SIZE * 1.0);\n }", "public int numPages() {\n \t//numOfPages = (int)(this.fileName.length()/BufferPool.PAGE_SIZE);\n return numOfPages;\n }", "int getPagesAmount();", "public Integer getPageCount();", "int getPagesize();", "public int getPagesize() {\n return pagesize_;\n }", "public int getPageCount()\n {\n return _pages.size();\n }", "public int getPagesize() {\n return pagesize_;\n }", "public int getPageCount() { return _pages.size(); }", "public int getTotalPage() {\n return getSize() == 0 ? 1 : (int) Math.ceil((double) total / (double) getSize());\n }", "public int getPageCount() {\n return (int) (getPageSize() > 0 ? Math.ceil(getTotalRecords() / getPageSize()) : 0);\n }", "int getNumPages();", "public int pageCount()\n {\n return (int)Math.ceil((double)getTaskVector().size() /\n (double)getRecordsPerPage());\n }", "public int getTotalPages()\r\n {\r\n return pageNames.size()-1;\r\n }", "public int getPageCount() {\n return mPdfRenderer.getPageCount();\n }", "public long getBackPageFileSize() {\n long totalSize = 0L;\n final File[] pageFiles = this.pageDirFile.listFiles();\n if (pageFiles != null && pageFiles.length > 0)\n for (final File pageFile : pageFiles) {\n final String fileName = pageFile.getName();\n if (fileName.endsWith(PAGE_FILE_SUFFIX))\n totalSize += pageFile.length();\n }\n return totalSize;\n }", "public static int getPageHits() {\r\n return _count;\r\n }", "public int numPages() {\n return numPages;\n }", "public Integer getCurrentPageSize();", "public int getNumPages()\n {\n return numPages;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public static int getPageSize() {\n\t\treturn Unsafe.get().pageSize();\n\t}", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getTotalPages() {\r\n\t\treturn page.getTotalPages();\r\n\t}", "public Integer getPageItemCount() {\n return pageItemCount;\n }", "public static int getTotalPage() {\n List<WebElement> PAGINATION = findElements(pagination);\n int size = PAGINATION.size() - 1;\n //Get the number of the second-last item which next to the \">\" icon\n WebElement lastPage = findElement(By.xpath(String.format(last_page, size)));\n return Integer.parseInt(lastPage.getText());\n }", "private int pagesLeft() {\n return this.pages - this.pagesRead;\n }", "public int getTotalPages(int pagesize) {\n\t\tint totalpages = 0;\r\n\t\tSqlSession session = MybatisSqlSessionFactory.getSqlSession();\r\n\t\tInteger totalrecords = session.selectOne(\"rgettotalrecords\");\r\n\t\ttotalpages = (totalrecords%pagesize==0?0:1)+totalrecords/pagesize;\r\n\t\tMybatisSqlSessionFactory.closeSqlSession();\r\n\t\treturn totalpages;\r\n\t}", "public int getTotalPages() {\r\n return totalPages;\r\n }", "public int getTotalPageCount() {\n try {\n return (int) this.webView.getEngine().executeScript(\"PDFViewerApplication.pagesCount;\");\n } catch (RuntimeException e) {\n e.printStackTrace();\n return 0;\n }\n }", "public int getNumPageFrames() {\n return ram.length;\n }", "public int getPageSize()\n {\n return bouquet.getSheaf().getPageSize();\n }", "public int getGatheredPages() {\r\n return gatheredPages;\r\n }", "int getPageNumber();", "public int getpageCount(int pageSize) {\n\t\treturn 0;\n\t}", "public static int getPageSize() {\n\t\treturn PageSize;\n\t}", "public Iterator<Integer> getPageCountIterator();", "Optional<Integer> getPageCount();", "public int getPagesDisplayed() {\n return getTableModelSource().getTableModel().getPageCount();\n }", "protected int getTotalPages(FacesContext context) {\n String forValue = (String) getAttributes().get(\"for\");\n UIData uiData = (UIData) getForm(context).findComponent(forValue);\n if (uiData == null) {\n return 0;\n }\n int rowsPerPage = uiData.getRows(); \n int totalRows = uiData.getRowCount();\n int result = totalRows / rowsPerPage;\n if (0 != (totalRows % rowsPerPage)) {\n result++;\n }\n return result;\n }", "public int getNumberOfPages(HttpServletRequest request,\n SubmissionInfo subInfo) throws ServletException\n {\n // always just one page of initial questions\n return 1;\n }", "public static int getPagesCount(int s) {\n if(s>10)\n return (s + ((s-6)/5));\n else\n return s;\n }", "@Schema(example = \"10\", description = \"Amount of pages available in the file. Used only for multipage documents.\")\n public Integer getPageCount() {\n return pageCount;\n }", "public int getPagesCrawled() {\n return pagesCrawled;\n }", "public Integer getTotalPageCount() {\n return totalPageCount;\n }", "@Override\n\tpublic Integer getTotalPages(ConditionInfo cf) {\n\t\treturn rd.getTotalPages(cf);\n\t}", "public int getActualPageNumber() {\n try {\n return (int) this.webView.getEngine().executeScript(\"PDFViewerApplication.page;\");\n } catch (RuntimeException e) {\n e.printStackTrace();\n return 0;\n }\n }", "public int getPageSize() {\r\n\t\t\t\treturn pageCount;\r\n\t\t\t}", "public int getPages() {\n return pages;\n }", "public int getPages() {\n return pages;\n }", "protected int getSkipPage(){\n\t\tint pageNum = 0;\n\t\tfor (Integer p : mPageNum){\n\t\t\tpageNum *= 10;\n\t\t\tpageNum += p.intValue();\n\t\t}\n\t\tif (pageNum > Integer.MAX_VALUE){\n\t\t\tpageNum = Integer.MAX_VALUE;\n\t\t}\n\t\tif (pageNum <= getTotalPage()){\n\t\t\tmSkipPage = pageNum;\n\t\t}\n\t\treturn mSkipPage;\n\t}", "@Override\n public int numberOfPages() {\n // TODO Auto-generated method stub\n throw new UnsupportedOperationException(\"Unsupported operation\");\n }", "Integer getPage();", "public int getPages() {\n return pages;\n }", "public static int size_hop() {\n return (8 / 8);\n }", "private int countPaging(final int commonCount, final int offsetLine) {\n\t\tint result = commonCount % offsetLine > 0 ? Math.floorDiv(commonCount, offsetLine) + 1\n\t\t\t\t: Math.floorDiv(commonCount, offsetLine);\n\t\treturn result;\n\t}", "int getPage();", "public int touchedPageCount (MemRef r) {\n\n return (int)((r.addr+r.size-1 >> mPageBits) - pageNumber(r) + 1);\n }", "public int getPages()\n {\n return pages;\n }", "public int getPageStart(){\r\n\t\treturn (this.page -1) * perPageNum;\r\n\t}", "public static int getPageCount(PDDocument doc) {\n\tint pageCount = doc.getNumberOfPages();\n\treturn pageCount;\n\t\n}", "public int getPageStart() {\n return _totalRecords == 0 ? 0 : ((_pageIndex) * _pageSize) + 1;\n }", "public int getPageNumber ()\n {\n try {\n if (!isOfType (\"Page\"))\n throw new RuntimeException (\"invalid page reference\");\n return ((PDFDictionary) get (\"Parent\")).getPageOffset (this);\n } catch (Exception e) {\n Options.warn (e.getMessage ());\n return -1;\n }\n }", "public int actualPageCount() {\n\t\tTestLog.log.info(\"get actual page count\");\n\t\tint actualpageNumbers = 0;\n\t\ttry{\n\t\t\tactualpageNumbers = driver.findElements(By.xpath(\"//div[@id='example_paginate']/span/a\")).size();\n\t\t\t\n\t\t}catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tTestLog.log.info(\"Could not find page count\" + ex);\n\t\t}\n\t\treturn actualpageNumbers;\n\t}", "public Long getTotalPageNum() {\n\t\treturn this.totalPageNum;\n\t}", "public abstract int getPageFreeSpace(int bucket);", "public int pageCount(Map map) {\n\t\treturn iSBookMapper.pageCount(map);\n\t}", "public int getPagesPerBatch()\n {\n return m_pagesPerBatch;\n }", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public int getCurrentSize() {\n return count;\n }", "public int getPageSize() {\n int i;\n int i2;\n RecyclerView recyclerView = this.mRecyclerView;\n if (getOrientation() == 0) {\n i = recyclerView.getWidth() - recyclerView.getPaddingLeft();\n i2 = recyclerView.getPaddingRight();\n } else {\n i = recyclerView.getHeight() - recyclerView.getPaddingTop();\n i2 = recyclerView.getPaddingBottom();\n }\n return i - i2;\n }", "static int pageCount(int n, int p) {\n \tint i=1;\n int count=0,mid=0,t=0;\n if(n%2==0)\n {\n t=n;\n\n }\n else\n {\n t=n-1;\n\n }\n \tmid=n/2;\n\n if(n==p)\n return 0;\n if(mid>=p){\n while(i<p){\n i=i+2;\n count++;\n }\n }else{\n while(t>p){\n t=t-2;\n count++;\n }\n }\n return count;\n }", "public int getPageTotalNumber(int totalNumber) {\n/* 70 */ int fullPage = totalNumber / 25;\n/* 71 */ return (totalNumber % 25 > 0) ? (fullPage + 1) : ((fullPage == 0) ? 1 : fullPage);\n/* */ }", "public int getPageIncrement() {\n \tcheckWidget();\n \treturn pageIncrement;\n }", "public static int size_counter() {\n return (32 / 8);\n }", "long getAmountPage();", "public Integer getPerPage();", "long sizeInc() {\n\t\treturn Storage.adrToOffset(adr) + size;\n\t}", "boolean hasPagesize();", "public int numberOfOpenSites() {\n \treturn size;\n }", "private static int lastPage(PdfReader pdfFile){\n int pages;\n\n pages = pdfFile.getNumberOfPages();\n\n return(pages);\n }", "final int computePage(int rowsCount, Page page) {\r\n\r\n int rowsPerPage = page.getRowsPerPage();\r\n int pages = rowsCount / rowsPerPage + ((rowsCount % rowsPerPage) == 0 ? 0 : 1);\r\n int start = 1;\r\n\r\n\r\n if (page.isLast()) { //goto the last page directly;\r\n start = (pages - 1) * rowsPerPage + 1;\r\n page.setLast(true);\r\n page.setCurrent(pages);\r\n } else { //goto a specific page;\r\n int current = page.getCurrent();\r\n if (current < 1) {\r\n page.setCurrent(current = 1);\r\n }\r\n start = (current - 1) * rowsPerPage + 1;\r\n if (start > rowsCount) {\r\n start = (pages - 1) * rowsPerPage + 1;\r\n page.setLast(true);\r\n page.setCurrent(pages);\r\n } else {\r\n page.setLast(false);\r\n }\r\n }\r\n return start;\r\n }", "short getPageStart();", "public int getPageEnd() {\n int val = (_pageIndex + 1) * _pageSize;\n return (val > _totalRecords) ? _totalRecords : val;\n }", "double getStepSize();", "public int getTotalSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "private void updateTotalPageNumbers() {\n totalPageNumbers = rows.size() / NUM_ROWS_PER_PAGE;\n }", "public int getStartIndex() {\n int cacheRange = 100 / numResultsPerPage;\n int base = pageNumber % cacheRange;\n if (base == 0) {\n return 100 - numResultsPerPage;\n } else {\n return (base - 1) * numResultsPerPage;\n }\n }", "private int getMaxPages(int numResults, int resultsPerPage)\n {\n return (int) Math.ceil((double) (numResults / (resultsPerPage * 1.0)));\n }", "public java.lang.Integer getPageSize() {\n return pageSize;\n }" ]
[ "0.7571926", "0.7508933", "0.7294459", "0.71652997", "0.7083671", "0.69853646", "0.69521445", "0.6891363", "0.6883007", "0.68691343", "0.68427646", "0.6786329", "0.66745585", "0.65754455", "0.65684414", "0.652927", "0.6498807", "0.64903694", "0.64452595", "0.64191025", "0.641739", "0.64112824", "0.63685364", "0.63685364", "0.63685364", "0.63685364", "0.6367613", "0.63461167", "0.63461167", "0.63461167", "0.6309625", "0.630512", "0.6282604", "0.62815124", "0.6270014", "0.6242358", "0.6217573", "0.6188947", "0.6164693", "0.6128127", "0.6127128", "0.6118752", "0.6050054", "0.6038914", "0.5994348", "0.59486777", "0.59297436", "0.59286433", "0.5913373", "0.58947414", "0.5892785", "0.5870243", "0.58658814", "0.57944906", "0.5785076", "0.57659817", "0.57659817", "0.57571155", "0.57530105", "0.5750146", "0.5744543", "0.57436", "0.5737488", "0.5732686", "0.572796", "0.5725457", "0.57222176", "0.57191396", "0.5690476", "0.56855065", "0.56818616", "0.56683916", "0.5667763", "0.56450254", "0.5642494", "0.56307214", "0.56222636", "0.5611395", "0.56100714", "0.5567042", "0.55659235", "0.55554277", "0.5552394", "0.5543875", "0.55327374", "0.5521244", "0.55203205", "0.550058", "0.54969543", "0.549209", "0.54740375", "0.5458798", "0.54522884", "0.54482144", "0.54482144", "0.54482144", "0.54323554", "0.5429613", "0.542726", "0.5422074" ]
0.7825759
0
Enable or disable the fast forward button.
private void setFastForwardDisabled(boolean disabled) { if (fastForward == null) { return; } if (disabled) { fastForward.setResource(resources.simplePagerFastForwardDisabled()); fastForward.getElement().getParentElement() .addClassName(style.disabledButton()); } else { fastForward.setResource(resources.simplePagerFastForward()); fastForward.getElement().getParentElement() .removeClassName(style.disabledButton()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setForward(boolean isForward);", "public void setXForwarding(boolean enable){\n xforwading=enable; \n }", "public void toggleEnable();", "private void fwdButtonKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_fwdButtonKeyPressed\n this.fwdButton.setEnabled(true);\n if(!this.fwd){\n this.controller.setFwd(true);\n this.fwd = true;\n }\n }", "void enableFlipMode();", "public void setForward(boolean fwdVal) {\n\t\tRelay.Value currentValue = this.get(),\n\t\t\t\t newValue = currentValue;\n\t\t\n\t\tif(currentValue == Relay.Value.kForward) {\n\t\t\tif(!fwdVal)\n\t\t\t\tnewValue = Relay.Value.kOff;\n\t\t} else if(currentValue == Relay.Value.kOff) {\n\t\t\tif(fwdVal)\n\t\t\t\tnewValue = Relay.Value.kForward;\n\t\t} else if(currentValue == Relay.Value.kOn) {\n\t\t\tif(!fwdVal)\n\t\t\t\tnewValue = Relay.Value.kReverse;\n\t\t} else if(currentValue == Relay.Value.kReverse) {\n\t\t\tif(fwdVal)\n\t\t\t\tnewValue = Relay.Value.kOn;\n\t\t}\n\t\t\n\t\tthis.set(newValue);\n\t}", "public void forward()\n\t{ \n\t\tupdateState( MotorPort.FORWARD);\n\t}", "public void enable()\n\t{\n\t\tplayButton.setEnabled(true);\n\t\tpassButton.setEnabled(true);\n\t\tbigTwoPanel.setEnabled(true);\n\t}", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "public void enable() {\n\t\tm_enabled = true;\n\t\tm_controller.reset();\n\t}", "public void enable() {\r\n m_enabled = true;\r\n }", "public void handleToggleButtonLowPass() {\n\t\tif (toggleButtonLowPass.isSelected() == true) {\n\t\t\tcontroller.audioManipulatorUseLowPassProcessor(true);\n\t\t\tsliderLowPass.setDisable(false);\n\t\t\ttextFieldLowPass.setDisable(false);\n\t\t\ttoggleButtonLowPass.setText(bundle.getString(\"mixerToggleButtonOn\"));\n\t\t} else {\n\t\t\tcontroller.audioManipulatorUseLowPassProcessor(false);\n\t\t\tsliderLowPass.setDisable(true);\n\t\t\ttextFieldLowPass.setDisable(true);\n\t\t\ttoggleButtonLowPass.setText(bundle.getString(\"mixerToggleButtonOff\"));\n\t\t}\n\n\t}", "public boolean isForward() {\n return true;\n }", "private void enableButtons() {\n\t\tcapture.setEnabled(true);\r\n\t\tstop.setEnabled(true);\r\n\t\tselect.setEnabled(true);\r\n\t\tfilter.setEnabled(true);\r\n\t}", "public void enable() {\n \t\t\tsetEnabled(true);\n \t\t}", "public void enableSwiping(boolean enabled){\n this.enabled=enabled;\n }", "private void toggleButtonsEnabled() {\r\n final Button headsBtn = findViewById(R.id.b_heads);\r\n final Button tailsBtn = findViewById(R.id.b_tails);\r\n final Button startBtn = findViewById(R.id.b_startGame);\r\n\r\n headsBtn.setEnabled(false);\r\n tailsBtn.setEnabled(false);\r\n startBtn.setEnabled(true);\r\n }", "public void setDirectForward(boolean directForward)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DIRECTFORWARD$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DIRECTFORWARD$14);\n }\n target.setBooleanValue(directForward);\n }\n }", "public void setButtonEnable(final int i) {\n\t \tmHandler.post(new Runnable() {\r\n\t public void run() {\r\n\t \tBackButton.setVisibility(i);\r\n\t }\r\n\t \t});\r\n\t }", "public void enable()\r\n\t{\r\n\t\tenabled = true;\r\n\t}", "public void enableBeginButton(boolean bool) {\n\t\tbegin.setEnabled(bool);\n\t}", "public void turnOn() {\n\t\tOn = true;\n\t}", "@Override\n public void onRewordEnable(boolean arg0, boolean arg1) {\n\n }", "public void on() {\n this.relay.set(Relay.Value.kForward);\n }", "public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}", "public void turnLightsOn()\n {\n set(Relay.Value.kForward);\n }", "public void enable();", "public void xsetDirectForward(org.apache.xmlbeans.XmlBoolean directForward)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(DIRECTFORWARD$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(DIRECTFORWARD$14);\n }\n target.set(directForward);\n }\n }", "void enableBtn() {\n findViewById(R.id.button_play).setEnabled(true);\n findViewById(R.id.button_pause).setEnabled(true);\n findViewById(R.id.button_reset).setEnabled(true);\n }", "private void addForwardButton() {\n\t\tforwardButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.FORWARD);\n\t\tforwardButton.setEnabled(false);\n toolPanel.add(forwardButton);\n\t\tforwardButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcontroller.getNavigationController().goForward();\n\t\t\t}\n\t\t});\n\t}", "protected void enableButtons() {\n if (mPrevious_question.isPressed() || mNext_question.isPressed()) {\n mFalseButton.setEnabled(true);\n mTrueButton.setEnabled(true);\n }\n }", "@Override\r\n\tpublic void enable() {\n\t\tcurrentState.enable();\r\n\t}", "private void setButtonsEnabledState() {\n if (mBroadcastingLocation) {\n mStartButton.setEnabled(false);\n mStopButton.setEnabled(true);\n } else {\n mStartButton.setEnabled(true);\n mStopButton.setEnabled(false);\n }\n }", "public void setupInitEnable(){\n fwdButton.setEnabled(false);\n revButton.setEnabled(false);\n leftButton.setEnabled(false);\n rightButton.setEnabled(false);\n this.powerIcon.setEnabled(false);\n lServoWarn.setEnabled(false);\n rServoWarn.setEnabled(false); \n slideAuto.setEnabled(true); \n }", "public void toggle() {\n if (isOn()) {\n turnOff();\n } else {\n turnOn();\n }\n }", "@Override\n\tpublic void onEnable() {\n\t\tSystem.out.println(\"Modus: Forcedown\");\n\t\tArduinoInstruction.getInst().enable();\n\t\tArduinoInstruction.getInst().setControl((byte)0x40);\n\t}", "public void turn_on () {\n this.on = true;\n }", "public boolean isForward()\n {\n return (state == AnimationState.FORWARD);\n }", "public void enable() {\n disabled = false;\n updateSign(true);\n circuit.enable();\n notifyChipEnabled();\n }", "public boolean switchOn(){\n if(this.is_Switched_On){\n return false;\n }\n this.is_Switched_On = true;\n return true;\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(false);\r\n }", "public void enable() {\n\t\tenabled = true;\n\t\t//System.out.println(\"Enabled Controller\");\n\t}", "public void setEnable (boolean state) {\n impl.setEnable (state);\n }", "public void enableInputs();", "public void turnOn(boolean truth) {\r\n setEnabled(truth);\r\n }", "public void setNextEnabled(boolean b){\n\t\tbtnNext.setEnabled(b);\n\t}", "public void enableEndTurnButton(){\n this.endTurnButton.setEnabled(true);\n }", "public void testSetBackButtonEnabled() {\n System.out.println(\"setBackButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setBackButtonEnabled(newValue);\n }", "private void fwdButtonKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_fwdButtonKeyReleased\n this.fwdButton.setEnabled(false);\n this.controller.setFwd(false);\n this.fwd = false;\n }", "@Override\n public void onCameraPreviewStarted() {\n enableTorchButtonIfPossible();\n }", "void disableFlipMode();", "public void turnOn() {\n\t\tisOn = true;\n\t}", "public void enableFlyingMode()\n\t{\n\t\tthis.player.useFlyingMode = true;\n\t\tif(this.player.healthIn < 100)\n\t\t{\n\t\t\tthis.player.healthIn = 100;\n\t\t}\n\t}", "public void updateVoiceButtonState() {\n if (!this.mVoiceButtonEnabled || !TextUtils.isEmpty(this.mEditText.getText().toString())) {\n this.mVoiceButton.setVisibility(8);\n } else {\n this.mVoiceButton.setVisibility(0);\n }\n }", "public void toggleMod(){\r\n this.enabled = !this.enabled;\r\n this.onToggle();\r\n if(this.enabled)\r\n this.onEnable();\r\n else\r\n this.onDisable();\r\n }", "@Override\n\tpublic boolean fling(float velocityX, float velocityY, int button) {\n\t\treturn false;\n\t}", "public void enable() {\n\t\tm_controller.reset();\n\t\tm_runner.enable();\n\t}", "public void turnStrobeOn(){\n if (!WatchFlags.gestureSensingOn){\n Log.d(TAG, \"Gesture sensing mode is off, aborting start strobe command\");\n return;\n }\n if (WatchFlags.strobeIsOn == false) {\n startActivity(new Intent(this, wSignalingActivity.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));\n }\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(true);\r\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\ttry\n\t\t\t\t{if(wb.canGoForward())\n\t\t\t\t\twb.goForward();\n\t\t\t\t}catch(Exception e1)\n\t\t\t\t{\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "private void recordButtonToggle(boolean isEnable) {\n if (isEnable) {\n btnRecord.setEnabled(true);\n btnRecord.setImageDrawable(getResources().getDrawable(R.drawable.ic_microphone));\n } else {\n btnRecord.setEnabled(false);\n btnRecord.setImageDrawable(getResources().getDrawable(R.drawable.ic_microphone_disable));\n }\n }", "public void sendBack(boolean button){\n\t\tb1 = button;\n\t\tif(button){\n\t\t\ts1.set(-speed0);\n\t\t\ts2.set(speed0);\n\t\t} else if(!trig) {\n\t\t\ts1.set(0);\n\t\t\ts2.set(0);\n\t\t}\n\t}", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateOrgINT(false);\r\n }", "public boolean setEnabled(boolean enable);", "public void enableTorchMode(boolean enable) {\n if (this.mCameraSettings.getCurrentFlashMode() != null) {\n FlashMode flashMode;\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n Stringifier stringifier = this.mCameraCapabilities.getStringifier();\n if (enable) {\n flashMode = stringifier.flashModeFromString(settingsManager.getString(this.mAppController.getCameraScope(), Keys.KEY_VIDEOCAMERA_FLASH_MODE));\n } else {\n flashMode = FlashMode.OFF;\n }\n if (this.mCameraCapabilities.supports(flashMode)) {\n this.mCameraSettings.setFlashMode(flashMode);\n }\n if (this.mCameraDevice != null) {\n this.mCameraDevice.applySettings(this.mCameraSettings);\n }\n this.mUI.updateOnScreenIndicators(this.mCameraSettings);\n }\n }", "void enable();", "public void setOneClickEnabled(boolean value) {\n this.oneClickEnabled = value;\n }", "public void toggle(){\r\n isDown = !isDown;\r\n }", "public void enableInputButton(boolean bool) {\n\t\tinputAnswer.setEnabled(bool);\n\t}", "@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tdoSendOff(1000);\n\t\t\t\tfirstSynthButtonOn.setEnabled(true);\n\t\t\t\tfirstSynthButtonOff.setEnabled(false);\n\t\t\t\tslider.setEnabled(false);\n\t\t\t\tslider.setValue(0);\n\t\t\t\ttextBox.setEnabled(false);\n\t\t\t\ttextBox.setText(\"0\");\n\t\t\t}", "public abstract void setBlinking(boolean status);", "public void enableAdaptiveRateControl(boolean enabled);", "public void enableSelfView(boolean val);", "public void turn_off () {\n this.on = false;\n }", "void setShutterLEDState(boolean on);", "@Override\n\tpublic boolean speedBtn()\n\t{\n\t\treturn this.speed;\n\t}", "public void setFlownThrough(boolean bool) {\r\n flownThrough = bool;\r\n }", "public void enable(){\n if(criticalStop) return;\n getModel().setStatus(true);\n }", "private void turnOnBT() {\n\t\tIntent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\tstartActivityForResult(intent, 1);\n\t}", "public void forward() {\n forward(DEFAULT_SPEED);\n }", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "public void setAgentForwarding(boolean enable){ \n agent_forwarding=enable;\n }", "public BtnOnOffListener(){\r\n\t\t\t\t\r\n\t\t\tprocessGestureEventHelper( false);\r\n\t\t}", "public void enable() {\n operating = true;\n }", "@Override\n protected void onEnable() {\n super.onEnable();\n setCameraControlMode(cameraMode);\n }", "void setFastSpeed () {\n if (stepDelay == fastSpeed)\n return;\n stepDelay = fastSpeed;\n step();\n resetLoop();\n }", "public void onEnable() {\n }", "public void enable( final boolean pOnOff )\n {\n this.aEntryField.setEditable( pOnOff );\n if ( ! pOnOff )\n this.aEntryField.getCaret().setBlinkRate( 0 );\n }", "protected void enableStartButton(boolean enable) {\n m_startBut.setEnabled(enable);\n }", "public void setupFocusable(){\n setFocusable(true);\n setFocusTraversalKeysEnabled(false);\n fwdButton.setFocusable(false);\n revButton.setFocusable(false);\n leftButton.setFocusable(false);\n rightButton.setFocusable(false);\n this.powerIcon.setFocusable(false);\n lServoWarn.setFocusable(false);\n startToggle.setFocusable(false);\n modeToggleButton.setFocusable(false);\n sensSlider.setFocusable(false);\n }", "public void switchOn();", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n if (enabled)\n sinkEvents(Event.ONCLICK | Event.ONKEYDOWN);\n else\n unsinkEvents(Event.ONCLICK | Event.ONKEYDOWN);\n }", "public void toggle(){\n isOn = !isOn;\n }", "void enableMod();", "public void enableDisableSendButton() {\r\n sendButton.setEnabled(topModel.isSendButtonEnabled());\r\n }", "private void setButtonsEnabledState() {\n if (mRequestingLocationUpdates) {\n mStartUpdatesButton.setEnabled(false);\n mStopUpdatesButton.setEnabled(true);\n } else {\n mStartUpdatesButton.setEnabled(true);\n mStopUpdatesButton.setEnabled(false);\n }\n }", "void enableDigital();", "public void setFaceDown(){faceUp = false;}", "public void enableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(true);\n\t\tbtnStop.setEnabled(true);\n\t\tbtnListenAgain.setEnabled(true);\t\t\n\t}", "@Deprecated\n public void setEnable(boolean enable) {\n this.skip = !enable;\n }" ]
[ "0.7233528", "0.66827863", "0.6668935", "0.66372895", "0.662949", "0.6624996", "0.65355545", "0.6364676", "0.63466024", "0.63367164", "0.6335702", "0.62895566", "0.6206268", "0.6193105", "0.6158214", "0.6117091", "0.6080761", "0.60656846", "0.6061161", "0.60591674", "0.60373497", "0.6030184", "0.6006877", "0.60002655", "0.5993254", "0.59907925", "0.598222", "0.59820133", "0.59789973", "0.59703", "0.5967306", "0.59570754", "0.5934242", "0.59287804", "0.5922161", "0.59091747", "0.59017664", "0.5883822", "0.58636063", "0.58569175", "0.5835521", "0.58346117", "0.5825359", "0.5812126", "0.5788314", "0.5768747", "0.575656", "0.575065", "0.5746339", "0.5745001", "0.57273304", "0.5720363", "0.57128865", "0.57117605", "0.570734", "0.56976163", "0.5692603", "0.5688727", "0.5673807", "0.5658677", "0.56532747", "0.5653093", "0.565122", "0.5642418", "0.5636477", "0.56356555", "0.563093", "0.562351", "0.5623466", "0.562327", "0.561709", "0.56131303", "0.5613068", "0.5607449", "0.56070495", "0.56050444", "0.5597185", "0.559653", "0.5591204", "0.5590937", "0.558546", "0.55805916", "0.5579233", "0.557615", "0.55726516", "0.5568461", "0.5564993", "0.5563671", "0.5555103", "0.5552532", "0.55500686", "0.5550068", "0.5547432", "0.5547209", "0.55452913", "0.5541963", "0.55398816", "0.55387956", "0.5538692", "0.55376095" ]
0.708654
1
Enable or disable the next page buttons.
private void setNextPageButtonsDisabled(boolean disabled) { nextPage.setDisabled(disabled); if (lastPage != null) { lastPage.setDisabled(disabled); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isNextButtonDisabled() {\r\n\t\treturn nextPage.isDisabled();\r\n\t}", "public void setNextEnabled(boolean b){\n\t\tbtnNext.setEnabled(b);\n\t}", "private void autoEnableNavButtons() {\n\t\tif (currPageIndex.equals(pages.size() - 1)) {\n\t\t\tbtnNext.setText(\"Finish\");\n\t\t} else {\n\t\t\tbtnNext.setText(\"Next >\");\n\t\t}\n\n\t\tbtnPrevious.setEnabled(!currPageIndex.equals(0));\n\t}", "private void CheckEnable()\n {\n btn_prev.setEnabled(true);\n btn_next.setEnabled(true);\n\n if(increment+1 == pageCount)\n {\n btn_next.setEnabled(false);\n }\n if(increment == 0)\n {\n btn_prev.setEnabled(false);\n }\n }", "protected void enableButtons() {\n if (mPrevious_question.isPressed() || mNext_question.isPressed()) {\n mFalseButton.setEnabled(true);\n mTrueButton.setEnabled(true);\n }\n }", "private void nextPage()\n {\n if(currentPage + 1 <= maxPage)\n {\n prevPageButton.setEnabled(true);\n if(currentPage + 2 > maxPage)\n nextPageButton.setEnabled(false);\n \n paginate(++currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "public void disableNextButton(boolean disable) {\n this.jNextButton.setEnabled(disable);\n }", "public void setNextPage(boolean value) {\n this.nextPage = value;\n }", "public void testSetNextFinishButtonEnabled() {\n System.out.println(\"setNextFinishButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setNextFinishButtonEnabled(newValue);\n }", "protected void showNextPage() {\n\t\tif (currPageIndex.equals(pages.size() - 1)) {\n\t\t\t// Last page so dispose\n\n\t\t\tcleanup();\n\t\t\treturn;\n\t\t}\n\n\t\tAbstractWizardPanel page = pages.get(currPageIndex);\n\n\t\t// Remove page from ignored list if requested\n\t\tif (page.getEnablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getEnablePageClassArray()) {\n\t\t\t\tignoredPages.remove(ignorePage);\n\t\t\t}\n\t\t}\n\n\t\t// Add page to ignored list if requested\n\t\tif (page.getDisablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getDisablePageClassArray()) {\n\t\t\t\tif (!ignoredPages.contains(ignorePage)) {\n\t\t\t\t\tignoredPages.add(ignorePage);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tshowPage(currPageIndex + 1, Direction.FORWARD);\n\n\t}", "private void setPrevPageButtonsDisabled(boolean disabled) {\r\n\t\tfirstPage.setDisabled(disabled);\r\n\t\tprevPage.setDisabled(disabled);\r\n\t}", "private void setEndingButtons() {\n Button btnFinishEnable = (Button) findViewById(R.id.btnFinish);\n btnFinishEnable.setEnabled(true);\n Button btnNextEnable = (Button) findViewById(R.id.btnNext);\n btnNextEnable.setEnabled(false);\n }", "public BooleanProperty canNavigateToNextPageProperty() { return canNavigateToNextPage; }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPageDisabled();", "private void changeNextButtonState(boolean connected) {\n if (mEnableNextOnConnection && hasNextButton()) {\n getNextButton().setEnabled(connected);\n }\n }", "public void goToNextPage() {\n nextPageButton.click();\n }", "public boolean isEnabled_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isEnabled()) { return true; } else { return false;} \r\n\t}", "private void checkJumpButtons() {\n int currentPosition = mViewPager.getCurrentItem();\n\n if (currentPosition == 0 && mCrimes.size() == 1) {\n mJumpFirstButton.setEnabled(false);\n mJumpLastButton.setEnabled(false);\n } else if (currentPosition == 0) {\n mJumpFirstButton.setEnabled(false);\n mJumpLastButton.setEnabled(true);\n } else if (currentPosition == mCrimes.size() - 1) {\n mJumpFirstButton.setEnabled(true);\n mJumpLastButton.setEnabled(false);\n } else {\n mJumpFirstButton.setEnabled(true);\n mJumpLastButton.setEnabled(true);\n }\n\n // updating EditText with page numbers\n mPageNumberEditText.setText(String.valueOf(currentPosition + 1));\n }", "public void enableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(true);\n\t\tbtnStop.setEnabled(true);\n\t\tbtnListenAgain.setEnabled(true);\t\t\n\t}", "@Override\n public void onNextPressed() {\n }", "public static void checkAndClickNextButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t}", "public boolean isNextPage() {\n return nextPage;\n }", "private void showNextButton(){\n\t\tif(nextButton != null){\n\t\t\thideSubmitBtn();\n\t\t\tmainWindow.addLayer(nextButton, BUTTON_LAYER, submitBtnX, submitBtnY);\n\t\t}\n\t}", "private void hideNextButton(){\n\t\tif(nextButton != null){\n\t\t\tmainWindow.getContainer().remove(nextButton);\n\t\t\tshowSubmitBtn();\n\t\t}\n\t}", "@Override\n public boolean canFlipToNextPage() {\n return true;\n }", "private void enableButtons() {\n\t\tcapture.setEnabled(true);\r\n\t\tstop.setEnabled(true);\r\n\t\tselect.setEnabled(true);\r\n\t\tfilter.setEnabled(true);\r\n\t}", "public IWizardPage getNextPage();", "public void enableContinue() {\n if (PayBillAccountBox.getValue() != null) continueButton.setDisable(false);\n }", "void enableBtn() {\n findViewById(R.id.button_play).setEnabled(true);\n findViewById(R.id.button_pause).setEnabled(true);\n findViewById(R.id.button_reset).setEnabled(true);\n }", "public boolean canFlipToNextPage();", "boolean isPreviousButtonDisabled() {\r\n\t\treturn prevPage.isDisabled();\r\n\t}", "public void nextButtonClicked()\r\n {\n manager = sond.getManager();\r\n String insertSearchDelete = sond.getInsertSearchDelete();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n // falls der Thread pausiert ist, wird er beim betätigen des\r\n // next-Buttons aufgeweckt\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n // Redo muss vor den weiteren if Anweisungen stehen, damit erst alle\r\n // Redo ausgeführt werden, bevor neue Aktionen dem manager hinzugefuegt\r\n // werden\r\n else if (manager.canRedo())\r\n {\r\n manager.redo();\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"insert\"))\r\n {\r\n sond.nextInsertPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"search\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"delete\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n }", "public void enableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(true);\n }\n }", "private void updateUi() {\n int index = mCurrentPage.getIndex();\n int pageCount = mPdfRenderer.getPageCount();\n mButtonPrevious.setEnabled(0 != index);\n mButtonNext.setEnabled(index + 1 < pageCount);\n getActivity().setTitle(getString(R.string.app_name_with_index, index + 1, pageCount));\n }", "public TeacherPage clickNextPageButton() {\n nextPage.click();\n return this;\n }", "public static void checkAndClickNextButtonTriviaMode() {\r\n\t\tcheckNoSuchElementExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t}", "protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboolean isValid = currentStep.onAdvance();\n\t\tthis.getCancelButton().setVisible(!isLastStep);\n\t\tthis.getCancelButton().setEnabled(!isLastStep);\n\t\t\n\t\tthis.getBackButton().setVisible(!isLastStep);\n\t\tthis.getBackButton().setEnabled(!isFirstStep && !isLastStep);\n\n\t\tthis.getNextButton().setVisible(!isLastStep);\n\t\tthis.getNextButton().setEnabled(!isLastStep && isValid);\n\n\t\tthis.getFinishButton().setEnabled(isLastStep);\n\t\tthis.getFinishButton().setVisible(isLastStep);\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPage();", "public void addNext()\r\n\t{\r\n\t\tnext = new JButton(\"Next\");\r\n\t\tnext.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\tif (state.getTurn() == 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tstate.setPlayerTwoTurn();\r\n\t\t\t\t}\r\n\t\t\t\telse if (state.getTurn() == 2)\r\n\t\t\t\t{\r\n\t\t\t\t\tstate.setPlayerOneTurn();\r\n\t\t\t\t}\r\n\t\t\t\tremoveNext();\r\n\t\t\t\t\r\n\t\t\t\tstate.setWaiting(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tadd(next);\r\n\t\t\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "protected void updateButtons() {\n int currentIndex = tabbedPane.getSelectedIndex();\n if( currentIndex == 0) {\n backButton.setEnabled(false);\n forwardButton.setText(\"weiter\");\n }\n if(currentIndex > 0) {\n backButton.setEnabled(true);\n forwardButton.setText(\"weiter\");\n }\n \n if(currentIndex == 6) {\n forwardButton.setText(\"würfeln\");\n }\n \n }", "public void ClickNext() {\r\n\t\tnext.click();\r\n\t\t\tLog(\"Clicked the \\\"Next\\\" button on the Birthdays page\");\r\n\t}", "public void panelActivate()\n {\n if (!yesRadio.isSelected())\n {\n parent.lockNextButton();\n }\n }", "public void enableEndOfProductionButton(){\n this.endOfproductionButton.setEnabled(true);\n }", "protected JButton getNext()\n {\n return next;\n }", "private void buttonEnable(){\n\t\t\taddC1.setEnabled(true);\n\t\t\taddC2.setEnabled(true);\n\t\t\taddC3.setEnabled(true);\n\t\t\taddC4.setEnabled(true);\n\t\t\taddC5.setEnabled(true);\n\t\t\taddC6.setEnabled(true);\n\t\t\taddC7.setEnabled(true);\n\t\t}", "public static void clickNextBtnGame() {\t\n\t\tdriver.findElement(By.id(\"btnnext\")).click();\n\t}", "private LoginPage clickOnNext() {\n if (waitForElementDisplayed(By.id(ID_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_NEXT)));\n return this;\n }\n return null;\n }", "public void onClick(View v) {\n if (iNext == count) {\n iNext = count-1;\n }\n if (pCheck) {\n iNext--;\n }\n if (iNext > 0) {\n iNext--;\n dataSource = data.get(iNext);\n ExammodeAdapter adapter = new ExammodeAdapter(context, dataSource,iNext,device,frag,resData);\n list.setAdapter(adapter);\n next.setEnabled(true);\n next.setText(\"Next\");\n nCheck =true;\n pCheck = false;\n\n }\n if (iNext == 0){\n priv.setEnabled(false);\n iNext = 0;\n nCheck =false;\n\n }\n\n\n }", "public void checkCountforButtonNextandPrevious() {\n Cursor coo = SQLAbsensi.fetchDatabaseAll();\n\n //Page Next\n if (firstDigit != 0) {\n pageCountStartAt = firstDigit * 10;\n int save = coo.getCount() / 10;\n if (save < firstDigit) {\n pageCountEndAt = (firstDigit + 1) * 10;\n } else {\n pageCountEndAt = firstDigit * 10 + (coo.getCount() % 10);\n myButton = (Button) findViewById(R.id.nextpagebutton);\n myButton.setVisibility(View.INVISIBLE);\n }\n } else {\n pageCountStartAt = 0;\n if (coo.getCount() > 10) {\n pageCountEndAt = 10;\n myButton = (Button) findViewById(R.id.nextpagebutton);\n myButton.setVisibility(View.VISIBLE);\n } else {\n pageCountEndAt = coo.getCount();\n }\n }\n\n //Page Previous\n if (firstDigit > 0) {\n myButton = (Button) findViewById(R.id.previouspagebutton);\n myButton.setVisibility(View.VISIBLE);\n } else {\n myButton = (Button) findViewById(R.id.previouspagebutton);\n myButton.setVisibility(View.INVISIBLE);\n }\n Refresh();\n\n }", "@Override\n\tpublic void nextPage() {\n\t\tif ( yesBox.isChecked() ) {\n\t\t\tcore.modelCore.events.remove(core.modelCore.selectedEvent);\n\t\t\t\n\t\t\tcore.currentScreen.thisRemoveScreen();\n\t\t\tcore.currentScreen = null;\n\t\t\tPage_Event12Yes newPage = new Page_Event12Yes(core);\n\t\t} else {\n\t\t\tcore.currentScreen.thisRemoveScreen();\n\t\t\tcore.currentScreen = null;\n\t\t\tPage_Event12No newPage = new Page_Event12No(core);\n\t\t}\n\t\t\n\t\t//core.currentScreen.thisRemoveScreen();\n\t\t//core.currentScreen = null;\n\t\t//Page_Event03 newPage = new Page_Event03(core);\n\t}", "private void showHideButtons() {\n mBinding.ibPrev.setVisibility(vm.shouldShowPrevBtn() ? View.VISIBLE : View.INVISIBLE);\n mBinding.ibNext.setVisibility(vm.shouldShowNextBtn() ? View.VISIBLE : View.INVISIBLE);\n }", "public void pageNavigationString(String pagination) {\n\t\t\n\t\ttry {\n\t\t\tTestLog.log.info(\"Check Next Button eneble\");\n\t\t\tif(pagination.equalsIgnoreCase(\"Next\") ){\n\t\t\t\tif (btnNext.isEnabled()) {\n\t\t\t\t\tTestLog.log.info(\"Click on Next Button\");\n\t\t\t\t\tbtnFirst.click();\n\t\t\t\t\tbtnNext.click();\n\t\t\t\t} else {\n\t\t\t\t\tTestLog.log.info(\"Page Navigation button Next Disable\");\n\t\t\t\t}\n\t\t\t\tTestLog.log.info(\"Check Pervios Button eneble\");\n\t\t\t}else if(pagination.equalsIgnoreCase(\"Previous\") ){\n\t\t\t\tif (btnPrevious.isEnabled()) {\n\t\t\t\t\tTestLog.log.info(\"Click on Previous Button\");\n\t\t\t\t\tbtnLast.click();\n\t\t\t\t\tbtnPrevious.click();\n\t\t\t\t} else {\n\t\t\t\t\tTestLog.log.info(\"Page Navigation button Previous Disable\");\n\t\t\t\t}\n\t\t\tTestLog.log.info(\"Check Pervios Button eneble\");\n\t\t}else if(pagination.equalsIgnoreCase(\"First\") ){\n\t\t\tif (btnFirst.isEnabled()) {\n\t\t\t\tTestLog.log.info(\"Click on First Button\");\n\t\t\t\tbtnFirst.click();\n\t\t\t} else {\n\t\t\t\tTestLog.log.info(\"Page Navigation button First Disable\");\n\t\t\t}\n\t\t\tTestLog.log.info(\"Check Pervios Button eneble\");\n\t\t}else if(pagination.equalsIgnoreCase(\"Last\") ){\n\t\t\tif (btnLast.isEnabled()) {\n\t\t\t\tTestLog.log.info(\"Click on Last Button\");\n\t\t\t\tbtnLast.click();\n\t\t\t} else {\n\t\t\t\tTestLog.log.info(\"Page Navigation button Last Disable\");\n\t\t\t}\n\t\t\tTestLog.log.info(\"Check Pervios Button eneble\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Page navigation not success\");\n\t\t}\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\tTestLog.log.info(\"Could not find page Navigation button\" + ex);\n\t\t}\n\t}", "private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }", "public static void clickNextBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.id(\"nextquest\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Next button in Q&A submit doesnt work\");\n\t\t}\n\t}", "public void run() {\n next.setEnabled(true);\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n Button nextPage = (Button) findViewById(R.id.button_id);\n System.out.println(\"THE RESULT CODE IS = \" + resultCode);\n if (resultCode==7 | resultCode==0) {\n nextPage.setVisibility(View.VISIBLE);\n }\n else {\n nextPage.setVisibility(View.GONE);\n callbackManager.onActivityResult(requestCode, resultCode, data);\n }\n }", "public EmagHomePage clickonContinueButton()\n {\n continueButton.click();\n return new EmagHomePage(driver);\n }", "void nextPage() throws IndexOutOfBoundsException;", "private void setButtonsEnable(boolean b){\n addButton.setEnabled(b);\n clearButton.setEnabled(b);\n peelOffButton.setEnabled(b);\n buttonControlPanel.setEnabled(b);\n progressCheckBox.setEnabled(b);\n }", "public void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tnextButton.setText(\"NEXT >> \");\n\t\t\tint index = tabbedPane.getSelectedIndex();\n\t\t\tif (index != 0)\n\t\t\t{\n\t\t\t\ttabbedPane.setSelectedIndex(index - 1);\n\t\t\t}\n\t\t\tif (index - 1 == 0)\n\t\t\t{\n\t\t\t\tbackButton.setEnabled(false);\n\t\t\t}\n\t\t}", "@Override\n protected void onNextPageRequested(int page) {\n\n }", "public void nextQuestion(View view) {\n Button button = (Button) findViewById(R.id.question_button_previous);\n if (!button.isEnabled()){\n button.setEnabled(true);\n }\n saveProgress();\n sequence++;\n updateView();\n }", "public abstract boolean nextOrFinishPressed();", "public void resetButtons() {\n\t\tboolean bool = selectedLesson.isEnable();\n\t\tview.getTestButton().setEnabled(bool);\n\t\tview.getLearnButton().setEnabled(bool);\n\t}", "private void ctrlPuasar() {\n btnIniciar.setEnabled(true);\n btnPausar.setEnabled(false);\n\n }", "public void enable()\n\t{\n\t\tplayButton.setEnabled(true);\n\t\tpassButton.setEnabled(true);\n\t\tbigTwoPanel.setEnabled(true);\n\t}", "private void enableTabPages() {\n // Disables all tabs except the first (the common for all Net Objects)\n for (int i = jTabbedPane1.getTabCount() - 1; i > 0; i--) {\n int tabIndex = i;\n // Enables specific Net Object tab\n if (!IntStream.of(currentTabIndices).anyMatch(x -> x == tabIndex)) {\n this.jTabbedPane1.remove(i);\n }\n }\n }", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPageDisabled();", "@OnClick\n public void onNext() {\n KeyboardUtils.dismissSoftKeyboard(getView());\n this.nextButton.setState(AirButton.State.Loading);\n RegistrationAnalytics.trackClickEvent(RegistrationAnalytics.NEXT_BUTTON, \"phone\", getNavigationTrackingTag());\n AccountCreationRequest.forValidatingPhone(this.airPhone.formattedPhone()).withListener((Observer) this.phoneNumberExistValidationRequestListener).execute(this.requestManager);\n }", "private void toggleButtonsEnabled() {\r\n final Button headsBtn = findViewById(R.id.b_heads);\r\n final Button tailsBtn = findViewById(R.id.b_tails);\r\n final Button startBtn = findViewById(R.id.b_startGame);\r\n\r\n headsBtn.setEnabled(false);\r\n tailsBtn.setEnabled(false);\r\n startBtn.setEnabled(true);\r\n }", "private void prevPage()\n {\n if(currentPage - 1 >= 1)\n {\n nextPageButton.setEnabled(true);\n if(currentPage -2 < 1)\n prevPageButton.setEnabled(false);\n \n paginate(--currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "public void nextPage() {\n\t\tthis.skipEntries += NUM_PER_PAGE;\n\t\tloadEntries();\n\t}", "public SelectGradableItemsPage clickNextButton() throws Exception {\n try {\n logInstruction(\"LOG INSTRUCTION:clicking the next button\");\n frameSwitch.switchToFrameContent();\n uiDriver.waitToBeDisplayed(btnNextButton, waitTime);\n btnNextButton.click();\n } catch (Exception e) {\n throw new Exception(\"ISSUE IN CLICKING THE 'Next' BUTTON\" + \"clickNextButton\" + e\n .getLocalizedMessage());\n }\n return new SelectGradableItemsPage(uiDriver);\n }", "private void moveToLastPage() {\n while (!isLastPage()) {\n click(findElement(next_btn));\n }\n }", "@Override\r\n\tprotected IWizardPage updatePage(int index) {\r\n\t\tIHeadlessWizardContainer hwc = (IHeadlessWizardContainer) getContainer();\r\n\t\tif(!( hwc instanceof WizardContainer )){\r\n\t\t\thwc.updateButtons();\r\n\t\t\treturn super.updatePage(index);\r\n\t\t}\r\n\t\tWizardContainer container = (WizardContainer) hwc;\t\r\n\r\n\t\tIndexStore is = getIndexStore(index);\r\n\t\tString ts = ( is.titleStyle == null )? this.titleStyle: is.titleStyle;\r\n\t\tsetBarStyle( container.getToolBar(), index, ts );\r\n\t\tString bs = ( is.buttonStyle == null )? this.buttonbarStyle: is.buttonStyle;\r\n\t\tcontainer.setButtons( is.getButtons() );\r\n\t\tsetBarStyle( container.getButtonBar(), index, bs );\r\n\r\n\t\tfor( Buttons button: is.getButtons() ){\r\n\t\t\tcontainer.setButtonEnabled(button, is.isButtonEnabled(button));\r\n\t\t}\r\n\r\n\t\tboolean choice = ( index > 0 );\r\n\t\t\r\n\t\tif( this.needsPreviousAndNextButtons() ){\r\n\t\t\tcontainer.setButtonEnabled( IButtonWizardContainer.Buttons.PREVIOUS, choice);\t\t\r\n\t\t\tchoice = ( index < container.size() - 1 );\r\n\t\t\tcontainer.setButtonEnabled( IButtonWizardContainer.Buttons.NEXT, choice);\r\n\t\t}\r\n\t\tchoice = ( index >= container.getFinishIndex() );\r\n\t\tcontainer.setButtonEnabled( IButtonWizardContainer.Buttons.FINISH, choice);\r\n\t\tcontainer.updateButtons();\r\n\t\tfor( Buttons button: is.getButtons() ){\r\n\t\t\tcontainer.buttonVisible( button, is.isButtonVisible(button));\r\n\t\t}\r\n\r\n\t\treturn super.updatePage(index);\r\n\t}", "void onNextIconClick();", "private void configureVisibility()\n {\n boolean isLastPanel = panels.getNext(true) == -1;\n if (isLastPanel)\n {\n // last panel. Disable navigation.\n setPreviousVisible(false);\n setPreviousEnabled(false);\n setNextVisible(false);\n setNextEnabled(false);\n }\n else\n {\n if (configurePrevious)\n {\n // only configure the previous button if it wasn't modified during panel switching\n boolean enablePrev = panels.getPrevious(true) != -1;\n setPreviousVisible(enablePrev);\n setPreviousEnabled(enablePrev);\n }\n\n if (configureNext)\n {\n // only configure the next button if it wasn't modified during panel switching\n boolean enableNext = !isLastPanel;\n setNextVisible(enableNext);\n setNextEnabled(enableNext);\n }\n }\n\n if (frame != null && frame.getRootPane() != null)\n {\n // With VM version >= 1.5 setting default button one time will not work.\n // Therefore we set it every newPanel switch and that also later. But in\n // the moment it seems so that the quit button will not used as default button.\n // No idea why... (Klaus Bartz, 06.09.25)\n SwingUtilities.invokeLater(new Runnable()\n {\n @Override\n public void run()\n {\n frame.getRootPane().setDefaultButton(setDefaultButton());\n }\n });\n }\n }", "@Override\n\tpublic void setStates(){\n\t\tleftButton.visible = booklet.pageNumber > 0;\n\t\trightButton.visible = booklet.pageNumber + 1 < totalPages;\n\t\t\n\t\t//Check the mouse to see if it updated and we need to change pages.\n\t\tint wheelMovement = InterfaceInput.getTrackedMouseWheel();\n\t\tif(wheelMovement < 0 && rightButton.visible){\n\t\t\t++booklet.pageNumber;\n\t\t}else if(wheelMovement > 0 && leftButton.visible){\n\t\t\t--booklet.pageNumber;\n\t\t}\n\t\t\n\t\t//Set the visible labels based on the current page.\n\t\tfor(int i=0; i<pageTextLabels.size(); ++ i){\n\t\t\tfor(GUIComponentLabel label : pageTextLabels.get(i)){\n\t\t\t\tlabel.visible = booklet.pageNumber == i;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set the TOC buttons visible if we're on the TOC page.\n\t\tfor(GUIComponentButton button : contentsButtons){\n\t\t\tbutton.visible = booklet.pageNumber == 1 && !booklet.definition.booklet.disableTOC;\n\t\t}\n\t\t\n\t\t//Set the TOC button to be visible on other pages.\n\t\tif(contentsButton != null){\n\t\t\tcontentsButton.visible = booklet.pageNumber > 1;\n\t\t}\n\t}", "public void enableEndTurnButton(){\n this.endTurnButton.setEnabled(true);\n }", "private void disableButtons()\r\n {\r\n }", "public void next(){\n\t\tboundIndex = (boundIndex+1)%buttonBounds.length;\n\t\tupdateButtonBounds();\n\t}", "public void clickNextButton() {\n if (editSummaryFragment.isActive()) {\n //we're showing the custom edit summary window, so close it and\n //apply the provided summary.\n editSummaryFragment.hide();\n editPreviewFragment.setCustomSummary(editSummaryFragment.getSummary());\n } else if (editPreviewFragment.isActive()) {\n //we're showing the Preview window, which means that the next step is to save it!\n if (abusefilterEditResult != null) {\n //if the user was already shown an AbuseFilter warning, and they're ignoring it:\n funnel.logAbuseFilterWarningIgnore(abusefilterEditResult.getCode());\n }\n getEditTokenThenSave(false);\n funnel.logSaveAttempt();\n } else {\n //we must be showing the editing window, so show the Preview.\n hideSoftKeyboard(this);\n editPreviewFragment.showPreview(title, sectionText.getText().toString());\n funnel.logPreview();\n }\n }", "private void setButtons(boolean en){\n btnQuit.setEnabled(!en);\n btnResign.setEnabled(en);\n btnNewGame.setEnabled(!en);\n }", "public void disableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(false);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnListenAgain.setEnabled(false);\n\t}", "@Nullable\n WizardPage flipToNext();", "private void showPlayerButtons() {\n\n\t\tprevious.setVisibility(View.VISIBLE);\n\t\tplay.setVisibility(View.VISIBLE);\n\t\tnext.setVisibility(View.VISIBLE);\n\t}", "@Override\n public void onPageSelected(int position) {\n if (position == 0 || position == layouts.size()-1) {\n btnPrevious.setVisibility(View.GONE);\n } else {\n btnPrevious.setVisibility(View.VISIBLE);\n }\n }", "@Override\n\tprotected void actionPerformed(GuiButton par1GuiButton)\n {\n\n if (par1GuiButton.enabled)\n {\n if (par1GuiButton.id == 1)\n {\n if (this.currPage < this.totalPages - 1)\n {\n ++this.currPage;\n }\n }\n else if (par1GuiButton.id == 2)\n {\n if (this.currPage > 0)\n {\n --this.currPage;\n }\n }\n else if (par1GuiButton.id == 8)\n {\n this.index = true;\n this.currPage = 0;\n this.totalPages = (this.maxResearch - (this.maxResearch % 5))/5 + 1;\n }\n else if (par1GuiButton.id == 9)\n {\n if (this.currentResearch == this.bookmarkpage) {\n \tthis.bookmarkpage = this.maxResearch + 1;\n \tSystem.out.println(\"changed\");\n }\n else\n {\n \tthis.bookmarkpage = this.currentResearch;\n \tSystem.out.println(\"changed\");\n }\n editingPlayer.inventory.mainInventory[editingPlayer.inventory.currentItem].stackTagCompound.setInteger(\"SelectedResearch\", this.bookmarkpage);\n updateBookmark();\n\n }\n else if (par1GuiButton.id > 2)\n {\n\t this.index = false;\n\t this.currentResearch = par1GuiButton.id + (currPage*5) - 2;\n\t NBTTagCompound var4 = itemstack.getTagCompound();\n\t this.researchKey = itemstack.stackTagCompound.getCompoundTag(Integer.toString(this.currentResearch)).getString(\"Research\");\n\t this.complete = itemstack.stackTagCompound.getCompoundTag(Integer.toString(this.currentResearch)).getInteger(\"Complete\");\n\t \tif (itemstack.stackTagCompound.getCompoundTag(Integer.toString(this.currentResearch)).getInteger(\"Complete\") == 1) {\n\t this.totalPages = ResearchDictionary.researchList.get(researchKey).description.size();\n\t }\n\t this.currPage = 0;\n }\n\n this.updateButtons();\n }\n }", "public void nextBtnClicked(View v) {\r\n//\t\tshowMsg(\"Next Button clicked: \"+ v);\r\n\t\tresetSelection();\r\n\t\tnextQuestion(1);\r\n\t\tshowQuesAndAnswers();\r\n\t}", "public void resetSlide() {\n\t\t resetButtons();\n\t\t next.setEnabled(false); //set disabled until a radio button is clicked\n\t }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgoNext();\r\n\t\t\t\t}", "private void enableButtons(boolean enabled) {\n saveUserButton.setEnabled(enabled);\n deleteUserButton.setEnabled(enabled);\n resetPassButton.setEnabled(enabled);\n }", "private void setBtnState(){\n recordBtn.setEnabled(!recording);\n stopBtn.setEnabled(recording);\n pauseBtn.setEnabled(playing & !paused);\n resumeBtn.setEnabled(paused);\n }", "public void testGetNextFinishButtonEnabled() {\n System.out.println(\"getNextFinishButtonEnabled\");\n Wizard instance = new Wizard();\n boolean expResult = false;\n boolean result = instance.getNextFinishButtonEnabled();\n assertEquals(expResult, result);\n }", "public boolean isSelected_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isSelected()) { return true; } else { return false;} \r\n\t}", "public void testSetBackButtonEnabled() {\n System.out.println(\"setBackButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setBackButtonEnabled(newValue);\n }", "public void setButtonEnable(final int i) {\n\t \tmHandler.post(new Runnable() {\r\n\t public void run() {\r\n\t \tBackButton.setVisibility(i);\r\n\t }\r\n\t \t});\r\n\t }", "public void goOnToNextQuestion(){\n\t\tbtnConfirmOrNext.setText(\"Next Question\");\n\t\tenableAllButtons();// need to be able to click to proceed\n\t\tquizAccuracy.setText(\": \"+spellList.getLvlAccuracy()+\"%\");\n\t\t// if user got answer correct move on immediately, else let user look at the correct answer first\n\t\tif(correctFlag){\n\t\t\t// set it to false initially for the next question\n\t\t\tcorrectFlag = false;\n\t\t\tbtnConfirmOrNext.doClick();\n\t\t}\n\n\t}", "@Override\n\tpublic void loadNextPage() {\n\t\tif(curr_content.isLastPage){\n\t\t\tPigAndroidUtil.showToast(mContext, \"以是最后一页:\", 3000);\n\t\t}else{\n\t\t\texchangeNext(m_bookFactory.getNextPageContent(next_content));\n\t\t}\n\t}", "@Override\n public void onSkipPressed() {\n setCurrentSlide(4);\n }" ]
[ "0.7870032", "0.78523844", "0.781644", "0.7660013", "0.7337868", "0.7334586", "0.72510964", "0.6973492", "0.69373643", "0.6903541", "0.68884915", "0.6708728", "0.66371536", "0.65964556", "0.65883416", "0.6550752", "0.64566576", "0.6395547", "0.639087", "0.6374397", "0.6295077", "0.62839687", "0.62760913", "0.6236686", "0.62125117", "0.6209233", "0.6191306", "0.6181611", "0.6169006", "0.6167759", "0.6167556", "0.6130454", "0.6103279", "0.6051845", "0.60023993", "0.5970498", "0.5964296", "0.5932144", "0.59289163", "0.588885", "0.5879365", "0.587843", "0.5870397", "0.58446497", "0.5837559", "0.5832776", "0.58228004", "0.58174735", "0.5815605", "0.5810963", "0.5805264", "0.578962", "0.57712173", "0.57603693", "0.57529855", "0.5741034", "0.57236844", "0.5722726", "0.5719476", "0.5719259", "0.5715086", "0.5710557", "0.57074684", "0.5705042", "0.570076", "0.56892836", "0.5684537", "0.56803554", "0.5677916", "0.5673785", "0.5673054", "0.5658368", "0.564958", "0.56375384", "0.5623665", "0.5623616", "0.56216216", "0.5612121", "0.56100965", "0.56043863", "0.56032914", "0.55631953", "0.5563139", "0.5559994", "0.55552024", "0.55533385", "0.55516005", "0.55505735", "0.55500025", "0.55489606", "0.5539214", "0.55363894", "0.55349505", "0.55273575", "0.55272365", "0.5524138", "0.5524069", "0.55188715", "0.5517661", "0.5516883" ]
0.77781904
3
Enable or disable the previous page buttons.
private void setPrevPageButtonsDisabled(boolean disabled) { firstPage.setDisabled(disabled); prevPage.setDisabled(disabled); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isPreviousButtonDisabled() {\r\n\t\treturn prevPage.isDisabled();\r\n\t}", "private void prevPage()\n {\n if(currentPage - 1 >= 1)\n {\n nextPageButton.setEnabled(true);\n if(currentPage -2 < 1)\n prevPageButton.setEnabled(false);\n \n paginate(--currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "private void CheckEnable()\n {\n btn_prev.setEnabled(true);\n btn_next.setEnabled(true);\n\n if(increment+1 == pageCount)\n {\n btn_next.setEnabled(false);\n }\n if(increment == 0)\n {\n btn_prev.setEnabled(false);\n }\n }", "private void autoEnableNavButtons() {\n\t\tif (currPageIndex.equals(pages.size() - 1)) {\n\t\t\tbtnNext.setText(\"Finish\");\n\t\t} else {\n\t\t\tbtnNext.setText(\"Next >\");\n\t\t}\n\n\t\tbtnPrevious.setEnabled(!currPageIndex.equals(0));\n\t}", "public void setPreviousPage(boolean value) {\n this.previousPage = value;\n }", "protected void enableButtons() {\n if (mPrevious_question.isPressed() || mNext_question.isPressed()) {\n mFalseButton.setEnabled(true);\n mTrueButton.setEnabled(true);\n }\n }", "protected void showPreviousPage() {\n\t\tshowPage(currPageIndex - 1, Direction.BACKWARD);\n\n\t}", "public void setPreviousPage(IWizardPage page);", "private void previousButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n if(this.page == 0){\n Warning.run(\"No previous page here.\");\n }\n else{\n this.page--;\n this.update();\n }\n }", "private void setNextPageButtonsDisabled(boolean disabled) {\r\n\t\tnextPage.setDisabled(disabled);\r\n\t\tif (lastPage != null) {\r\n\t\t\tlastPage.setDisabled(disabled);\r\n\t\t}\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPageDisabled();", "@Override\n\tpublic boolean hasPreviousPage() {\n\t\treturn false;\n\t}", "public void testSetBackButtonEnabled() {\n System.out.println(\"setBackButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setBackButtonEnabled(newValue);\n }", "@Nullable\n WizardPage flipToPrevious();", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "boolean hasPreviousPage();", "public boolean isPreviousPage() {\n return previousPage;\n }", "public void previousPage() {\n\t\tthis.skipEntries -= NUM_PER_PAGE;\n\t\tif (this.skipEntries < 1) {\n\t\t\tskipEntries = 1;\n\t\t}\n\t\tloadEntries();\n\t}", "@Override\n public void onPageSelected(int position) {\n if (position == 0 || position == layouts.size()-1) {\n btnPrevious.setVisibility(View.GONE);\n } else {\n btnPrevious.setVisibility(View.VISIBLE);\n }\n }", "boolean isNextButtonDisabled() {\r\n\t\treturn nextPage.isDisabled();\r\n\t}", "public void setPreviousPage(MouseEvent event) {\n\t\tm_previousPage = event;\n\t}", "void previousPage() throws IndexOutOfBoundsException;", "public TeacherPage clickPreviousPageButton() {\n previousPage.click();\n return this;\n }", "public IWizardPage getPreviousPage();", "protected JButton getPrevious()\n {\n return previous;\n }", "public static void previous() {\n\t\tsendMessage(PREVIOUS_COMMAND);\n\t}", "public boolean hasPrevious() {\n return getPage() > 0;\n }", "public void previous();", "protected void updateButtons() {\n int currentIndex = tabbedPane.getSelectedIndex();\n if( currentIndex == 0) {\n backButton.setEnabled(false);\n forwardButton.setText(\"weiter\");\n }\n if(currentIndex > 0) {\n backButton.setEnabled(true);\n forwardButton.setText(\"weiter\");\n }\n \n if(currentIndex == 6) {\n forwardButton.setText(\"würfeln\");\n }\n \n }", "void enableBtn() {\n findViewById(R.id.button_play).setEnabled(true);\n findViewById(R.id.button_pause).setEnabled(true);\n findViewById(R.id.button_reset).setEnabled(true);\n }", "private void preSwitchPanel()\n {\n switchPanel = true;\n configureNext = true;\n configurePrevious = true;\n }", "private JButton getPreButton() {\r\n\t\tif (preButton == null) {\r\n\t\t\tpreButton = new JButton();\r\n\t\t\tpreButton.setText(\"Prev Page\");\r\n\t\t\tpreButton.setSize(new Dimension(120, 30));\r\n\t\t\tpreButton.setLocation(new java.awt.Point(10,480));\r\n\t\t}\r\n\t\treturn preButton;\r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerPreviousPage();", "private void previousButtonMouseClicked(java.awt.event.MouseEvent evt) {\n if(previousButton.isEnabled() == false || checkUpdateInventoryError() == true) return;\n recordChanged();\n current --;\n displayCurrentStock();\n }", "private void onBack(McPlayerInterface player, GuiSessionInterface session, ClickGuiInterface gui)\r\n {\r\n session.setNewPage(this.prevPage);\r\n }", "private void enableButtons() {\n\t\tcapture.setEnabled(true);\r\n\t\tstop.setEnabled(true);\r\n\t\tselect.setEnabled(true);\r\n\t\tfilter.setEnabled(true);\r\n\t}", "private void previous() {\n if (position > 0) {\n Player.getInstance().stop();\n\n // Set a new position:w\n --position;\n\n ibSkipNextTrack.setImageDrawable(getResources()\n .getDrawable(R.drawable.ic_skip_next_track_on));\n\n try {\n Player.getInstance().play(tracks.get(position));\n } catch (IOException playerException) {\n playerException.printStackTrace();\n }\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_pause_track);\n setCover(Player.getInstance().getCover(tracks.get(position), this));\n\n tvTrack.setText(tracks.get(position).getName());\n tvTrackEndTime.setText(playerUtils.toMinutes(Player.getInstance().getTrackEndTime()));\n }\n\n if (position == 0) {\n setImageDrawable(ibSkipPreviousTrack, R.drawable.ic_skip_previous_track_off);\n }\n }", "public void enableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(true);\n\t\tbtnStop.setEnabled(true);\n\t\tbtnListenAgain.setEnabled(true);\t\t\n\t}", "public void setNextEnabled(boolean b){\n\t\tbtnNext.setEnabled(b);\n\t}", "public void disableNextButton(boolean disable) {\n this.jNextButton.setEnabled(disable);\n }", "private void previousBtnActionPerformed(java.awt.event.ActionEvent evt) {\n}", "public void skipToPrevious() {\n try {\n mSessionBinder.previous(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling previous.\", e);\n }\n }", "public void prev();", "public void setButtonEnable(final int i) {\n\t \tmHandler.post(new Runnable() {\r\n\t public void run() {\r\n\t \tBackButton.setVisibility(i);\r\n\t }\r\n\t \t});\r\n\t }", "public void Prev();", "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void beforeNavigateBack(WebDriver arg0) {\n\t\t\r\n\t}", "public void previous() {\n if (hasPrevious()) {\n setPosition(position - 1);\n }\n }", "public boolean hasPrevious()\n {\n // TODO: implement this method\n return false;\n }", "protected Component createPreviousButton() {\n JButton b = new BasicArrowButton(SwingConstants.SOUTH);\n b.addActionListener(previousButtonHandler);\n b.addMouseListener(previousButtonHandler);\n return b; }", "protected Component createPreviousButton() {\n/* 65 */ JButton b = new SpecialUIButton(new LiquidSpinnerButtonUI(5));\n/* 66 */ b.addActionListener(previousButtonHandler);\n/* 67 */ b.addMouseListener(previousButtonHandler);\n/* 68 */ return b;\n/* */ }", "@Override\n\tpublic void beforeNavigateBack(WebDriver driver) {\n\t\t\n\t}", "public void previousBtnClicked(View v){\n\t\tresetSelection();\r\n\t\tnextQuestion(-1);\r\n\t\tshowQuesAndAnswers();\r\n\t}", "private void updateUi() {\n int index = mCurrentPage.getIndex();\n int pageCount = mPdfRenderer.getPageCount();\n mButtonPrevious.setEnabled(0 != index);\n mButtonNext.setEnabled(index + 1 < pageCount);\n getActivity().setTitle(getString(R.string.app_name_with_index, index + 1, pageCount));\n }", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tHomeView.home_pressed=\"disable\";\r\n\t\r\n\t}", "@Override\n public boolean canFlipToNextPage() {\n return true;\n }", "private void backPage()\n {\n page--;\n open();\n }", "public boolean isEnabled_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isEnabled()) { return true; } else { return false;} \r\n\t}", "@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerNextPageDisabled();", "private void updateTabButtons() {\n\t\tif (currentTab == null || currentTab.equals(\"history\")) {\n\t\t\thistory.setDisable(true);\n\t\t\tlanguage.setDisable(false);\n\t\t} else if (currentTab == null || currentTab.equals(\"language\")) {\n\t\t\tlanguage.setDisable(true);\n\t\t\thistory.setDisable(false);\n\t\t}\n\t}", "@Override\n\tpublic Pageable previousPageable() {\n\t\treturn null;\n\t}", "public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\tfilter.setEnabled(false);\r\n\t\tsave.setEnabled(false);\r\n\t\t//load.setEnabled(false);\r\n\t}", "public void enableContinue() {\n if (PayBillAccountBox.getValue() != null) continueButton.setDisable(false);\n }", "@Override\n\tpublic void setStates(){\n\t\tleftButton.visible = booklet.pageNumber > 0;\n\t\trightButton.visible = booklet.pageNumber + 1 < totalPages;\n\t\t\n\t\t//Check the mouse to see if it updated and we need to change pages.\n\t\tint wheelMovement = InterfaceInput.getTrackedMouseWheel();\n\t\tif(wheelMovement < 0 && rightButton.visible){\n\t\t\t++booklet.pageNumber;\n\t\t}else if(wheelMovement > 0 && leftButton.visible){\n\t\t\t--booklet.pageNumber;\n\t\t}\n\t\t\n\t\t//Set the visible labels based on the current page.\n\t\tfor(int i=0; i<pageTextLabels.size(); ++ i){\n\t\t\tfor(GUIComponentLabel label : pageTextLabels.get(i)){\n\t\t\t\tlabel.visible = booklet.pageNumber == i;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set the TOC buttons visible if we're on the TOC page.\n\t\tfor(GUIComponentButton button : contentsButtons){\n\t\t\tbutton.visible = booklet.pageNumber == 1 && !booklet.definition.booklet.disableTOC;\n\t\t}\n\t\t\n\t\t//Set the TOC button to be visible on other pages.\n\t\tif(contentsButton != null){\n\t\t\tcontentsButton.visible = booklet.pageNumber > 1;\n\t\t}\n\t}", "@Override\r\n\t\tpublic boolean hasPrevious() {\n\t\t\treturn false;\r\n\t\t}", "@Override\n\tpublic void beforeNavigateBack(WebDriver arg0) {\n\n\t}", "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "@Override\n\tpublic void backButton() {\n\n\t}", "public static void resume()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(true);\n\t\tbtnStay.setEnabled(true);\n\t\tbtnDouble.setEnabled(false);\n\t}", "protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboolean isValid = currentStep.onAdvance();\n\t\tthis.getCancelButton().setVisible(!isLastStep);\n\t\tthis.getCancelButton().setEnabled(!isLastStep);\n\t\t\n\t\tthis.getBackButton().setVisible(!isLastStep);\n\t\tthis.getBackButton().setEnabled(!isFirstStep && !isLastStep);\n\n\t\tthis.getNextButton().setVisible(!isLastStep);\n\t\tthis.getNextButton().setEnabled(!isLastStep && isValid);\n\n\t\tthis.getFinishButton().setEnabled(isLastStep);\n\t\tthis.getFinishButton().setVisible(isLastStep);\n\t}", "private void previous() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n\n Timeline.Window currentWindow = currentTimeline.getWindow(currentWindowIndex, new Timeline.Window());\n if (currentWindowIndex > 0 && (player.getCurrentPosition() <= MAX_POSITION_FOR_SEEK_TO_PREVIOUS\n || (currentWindow.isDynamic && !currentWindow.isSeekable))) {\n player.seekTo(currentWindowIndex - 1, C.TIME_UNSET);\n } else {\n player.seekTo(0);\n }\n }", "public void previousQuestion(View view) {\n if (sequence > 1) {\n saveProgress();\n sequence--;\n if (sequence <=1){\n Button button = (Button) findViewById(R.id.question_button_previous);\n button.setEnabled(false);\n }\n updateView();\n }\n }", "private void previousButtonActionPerformed() {//GEN-FIRST:event_previousButtonActionPerformed\r\n getPreviousPicture();\r\n }", "private void reEnableCopyButtons() {\n // re-enable the buttons the relevant buttons\n copyToASpaceButton.setEnabled(true);\n repositoryCheckButton.setEnabled(true);\n copyProgressBar.setValue(0);\n\n if (copyStopped) {\n if (ascopy != null) ascopy.saveURIMaps();\n copyStopped = false;\n copyProgressBar.setString(\"Cancelled Copy Process ...\");\n } else {\n copyProgressBar.setString(\"Done\");\n }\n }", "protected ActionForward previousPage( UserRequest request )\n {\n int pageNumber = request.getParameterAsInt( PAGE_KEY, 2 );\n HttpServletRequest req = request.getRequest();\n req.setAttribute( PAGE_KEY, \"\"+ --pageNumber );\n return request.getMapping().findForward( PAGE_KEY + pageNumber );\n }", "private void checkJumpButtons() {\n int currentPosition = mViewPager.getCurrentItem();\n\n if (currentPosition == 0 && mCrimes.size() == 1) {\n mJumpFirstButton.setEnabled(false);\n mJumpLastButton.setEnabled(false);\n } else if (currentPosition == 0) {\n mJumpFirstButton.setEnabled(false);\n mJumpLastButton.setEnabled(true);\n } else if (currentPosition == mCrimes.size() - 1) {\n mJumpFirstButton.setEnabled(true);\n mJumpLastButton.setEnabled(false);\n } else {\n mJumpFirstButton.setEnabled(true);\n mJumpLastButton.setEnabled(true);\n }\n\n // updating EditText with page numbers\n mPageNumberEditText.setText(String.valueOf(currentPosition + 1));\n }", "public void beforeNavigateBack(WebDriver driver) {\n\t\t\r\n\t}", "public void beforeNavigateBack(WebDriver driver) {\n\t\t\r\n\t}", "@Override\r\n public void beforeNavigateBack(final WebDriver arg0) {\n\r\n }", "@Override\n public void backButton() {\n\n\n }", "@Override\r\n\tpublic void onBackPressed()\r\n\t{\r\n\t\tif (flipper.getDisplayedChild() != 0)\r\n\t\t{\r\n\t\t\tflipper.showPrevious();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.onBackPressed();\r\n\t\t}\r\n\t}", "public void click_defineSetupPage_backBtn() throws InterruptedException {\r\n\t\tclickOn(DefineSetup_backBtn);\r\n\t\tThread.sleep(1000);\r\n\t}", "@Override\n protected boolean canGoBack() {\n return false;\n }", "public boolean hasPrevious() {\n\t\t\t\treturn false;\r\n\t\t\t}", "public boolean canFlipToNextPage();", "public void previousSlide() {\r\n\t\tpresentation.prevSlide();\r\n\t}", "private void hideNextButton(){\n\t\tif(nextButton != null){\n\t\t\tmainWindow.getContainer().remove(nextButton);\n\t\t\tshowSubmitBtn();\n\t\t}\n\t}", "@Override\n public void onSkipPressed() {\n setCurrentSlide(4);\n }", "protected void showNextPage() {\n\t\tif (currPageIndex.equals(pages.size() - 1)) {\n\t\t\t// Last page so dispose\n\n\t\t\tcleanup();\n\t\t\treturn;\n\t\t}\n\n\t\tAbstractWizardPanel page = pages.get(currPageIndex);\n\n\t\t// Remove page from ignored list if requested\n\t\tif (page.getEnablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getEnablePageClassArray()) {\n\t\t\t\tignoredPages.remove(ignorePage);\n\t\t\t}\n\t\t}\n\n\t\t// Add page to ignored list if requested\n\t\tif (page.getDisablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getDisablePageClassArray()) {\n\t\t\t\tif (!ignoredPages.contains(ignorePage)) {\n\t\t\t\t\tignoredPages.add(ignorePage);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tshowPage(currPageIndex + 1, Direction.FORWARD);\n\n\t}", "public void beforeNavigateBack(WebDriver driver) {\n\t\t\n\t}", "@java.lang.Override\n public boolean getBackToBackEnabled() {\n return backToBackEnabled_;\n }", "private JButton getJbtnPreviousStep() {\n\t\tif (jbtnPreviousStep == null) {\n\t\t\tjbtnPreviousStep = new JButton();\n\t\t\tjbtnPreviousStep.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\tjbtnPreviousStep.setHorizontalTextPosition(SwingConstants.TRAILING);\n\t\t\tjbtnPreviousStep.setIcon(new ImageIcon(getClass().getResource(\"/org/measureyourgradient/images/back.png\")));\n\t\t\tjbtnPreviousStep.setText(\" Previous Step\");\n\t\t\tjbtnPreviousStep.setSize(new Dimension(178, 34));\n\t\t\tjbtnPreviousStep.setLocation(new Point(6, 576));\n\t\t\tjbtnPreviousStep.setActionCommand(\"Previous Step\");\n\t\t}\n\t\treturn jbtnPreviousStep;\n\t}", "public void goBack() {\n goBackBtn();\n }", "private void disableButtons()\r\n {\r\n }", "private void setEndingButtons() {\n Button btnFinishEnable = (Button) findViewById(R.id.btnFinish);\n btnFinishEnable.setEnabled(true);\n Button btnNextEnable = (Button) findViewById(R.id.btnNext);\n btnNextEnable.setEnabled(false);\n }", "private void displayPrevious() {\r\n\t\ti--;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "public void checkCountforButtonNextandPrevious() {\n Cursor coo = SQLAbsensi.fetchDatabaseAll();\n\n //Page Next\n if (firstDigit != 0) {\n pageCountStartAt = firstDigit * 10;\n int save = coo.getCount() / 10;\n if (save < firstDigit) {\n pageCountEndAt = (firstDigit + 1) * 10;\n } else {\n pageCountEndAt = firstDigit * 10 + (coo.getCount() % 10);\n myButton = (Button) findViewById(R.id.nextpagebutton);\n myButton.setVisibility(View.INVISIBLE);\n }\n } else {\n pageCountStartAt = 0;\n if (coo.getCount() > 10) {\n pageCountEndAt = 10;\n myButton = (Button) findViewById(R.id.nextpagebutton);\n myButton.setVisibility(View.VISIBLE);\n } else {\n pageCountEndAt = coo.getCount();\n }\n }\n\n //Page Previous\n if (firstDigit > 0) {\n myButton = (Button) findViewById(R.id.previouspagebutton);\n myButton.setVisibility(View.VISIBLE);\n } else {\n myButton = (Button) findViewById(R.id.previouspagebutton);\n myButton.setVisibility(View.INVISIBLE);\n }\n Refresh();\n\n }", "public boolean prevPageNumber() {\n if (pageNumber == 1) {\n this.errorMessage = \"Error: already at start. \";\n return false;\n }\n this.errorMessage = \"\";\n this.pageNumber--;\n return true;\n }", "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 }", "private void setBtnState(){\n recordBtn.setEnabled(!recording);\n stopBtn.setEnabled(recording);\n pauseBtn.setEnabled(playing & !paused);\n resumeBtn.setEnabled(paused);\n }" ]
[ "0.79457617", "0.7691218", "0.7234068", "0.7212673", "0.7028462", "0.69619125", "0.69297814", "0.67850566", "0.67520076", "0.67378193", "0.67082983", "0.6688727", "0.65180266", "0.65133333", "0.6476204", "0.647077", "0.64511466", "0.64398026", "0.64348644", "0.6417048", "0.63567513", "0.6334154", "0.63045764", "0.6181139", "0.61335087", "0.6118743", "0.6113275", "0.6079909", "0.60694563", "0.6057486", "0.60531306", "0.6050075", "0.6043967", "0.6036781", "0.60156167", "0.600443", "0.5984887", "0.59799814", "0.5942725", "0.59294", "0.5920648", "0.5908919", "0.5864792", "0.5842047", "0.5833943", "0.5831123", "0.581381", "0.58119583", "0.5797904", "0.579255", "0.5785203", "0.5784565", "0.5775436", "0.5768391", "0.5765947", "0.5758794", "0.5749246", "0.57433796", "0.5740733", "0.5736966", "0.5723829", "0.57202715", "0.57151175", "0.57103455", "0.57056624", "0.5703554", "0.56953764", "0.5692847", "0.5686472", "0.5671644", "0.5668732", "0.5667207", "0.5664463", "0.5662197", "0.5649964", "0.5649146", "0.5646654", "0.5646654", "0.5634682", "0.56196547", "0.5618027", "0.5615704", "0.5611888", "0.5611138", "0.5607941", "0.5603919", "0.5598382", "0.5596493", "0.5592784", "0.55917645", "0.5590495", "0.55903786", "0.5576693", "0.5575359", "0.5574779", "0.5569779", "0.55621994", "0.5557738", "0.5550071", "0.554635" ]
0.7860237
1
Callback method to be invoked when an item in this view has been clicked and held. Implementers can call getItemAtPosition(position) if they need to access the data associated with the selected item.
@Override public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) { final Campaign c = (Campaign)adapter.getItem(position); if(c.dm_id.equals(uid)){ campaigns_ref.child(c.campaign_id).child("sheets").addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot data) { for(DataSnapshot sheet: data.getChildren()){ String player = sheet.getKey(); String sheet_key = sheet.getValue(String.class); DatabaseReference tmp_ref = FirebaseDatabase.getInstance().getReference().child("users").child(player); //rimuovi campagna da lista campagne user tmp_ref.child("campaigns").child(c.campaign_name).removeValue(); if(!sheet_key.equals("no sheet")){ //rimuovi campagna da scheda tmp_ref.child("sheets").child(sheet_key).child("campaign").setValue("no campaign"); } } //rimuovi campagna da lista campagne dm usr_campaigns_ref.child(c.campaign_name).removeValue(); //rimuovi campagna da db campaigns_ref.child(c.campaign_id).removeValue(); } @Override public void onCancelled(DatabaseError databaseError) { } }); removeCampaign(c); }else{ campaigns_ref.child(c.campaign_id).child("sheets").child(uid).addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { String key = dataSnapshot.getValue(String.class); //rimuovi campagna da scheda if(!key.equals("no sheet")){ FirebaseDatabase.getInstance().getReference().child("users").child(uid) .child("sheets").child(key).child("campaign").setValue("no campaign"); } //rimuovi campagna da user usr_campaigns_ref.child(c.campaign_name).removeValue().addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { //rimuovi scheda da campagna campaigns_ref.child(c.campaign_id).child("sheets").child(uid).removeValue(); } }); } @Override public void onCancelled(DatabaseError databaseError) { } }); removeCampaign(c); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }", "@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }", "@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }", "@Override\n public void OnItemClick(int position) {\n }", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }", "public void onItemClick(View view, int position);", "@Override\n public void onItemClick(int pos) {\n }", "public void onItemSelecting(AdapterView<?> parent, View view, int oldPosition, int newPosition);", "@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}", "void onItemClick(int position);", "@Override\n public void itemClick(int pos) {\n }", "@Override\n public void onItemClick(int position) {\n }", "void onItemClick(View view, int position);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (position >= 0) {\n Drawing drawing = mItems.get(position);\n Log.d(TAG, \"onItemClick with drawing id \" + drawing.getId());\n mCallBacks.onDrawingSelected(drawing.getId());\n }\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ((CallbackToActivity)getActivity()).onItemSelected(mTopTracks, position);\n\n }", "@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int position,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tpresenter.onItemClicked(position);\n\t}", "protected void cabOnItemPress(int position) {}", "@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n public void onItemClick(View view, int position) {\n\n }", "@Override\n public void onItemClick(View view, int position) {\n presenter.onSelectedCarreer(position);\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tchoosed = pos;\n\t\t\t\t\t\tSingleListAdaper.this.notifyDataSetChanged();\n\t\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}", "public void onItemClick(View view, int position) {\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\thandleClick(position);\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n public void onItemClick(BaseQuickAdapter adapter, View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "abstract public void onSingleItemClick(View view);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onClick(View v) {\n if (fragment instanceof ItemListFragment)\n ((ItemListFragment) fragment).onItemSelected(position, AppConstants.AMMUNATION_SELECTED);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "void onItemClicked(View view, int position, StockItemViewHolder viewHolder);", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}", "@Override\n public void onItemTouch(View view, int position) {\n\n }", "@Override\n\tpublic void onItemClick(Object o, int position) {\n\n\t}", "@Override\n public void onClick(View v) {\n\n listener.onItemClick(getAdapterPosition(),v);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View v, int pos, long id) {\n\t\t\t\tSystem.out.println(\"Selected \" + pos);\n\t\t\t}", "@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n\n // Check if listener!=null bcz it is not guarantee that we'll call setOnItemClickListener\n // RecyclerView.NO_POSITION - Constant for -1, so that we don't click item at Invalid position (safety measure)\n if (listener != null && position != RecyclerView.NO_POSITION) {\n //listener.onItemClick(notes.get(position)); - used in RecyclerView.Adapter\n listener.onItemClick(getItem(position)); // getting data from superclass\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "@Override\n public void onClick(View view) {\n coinPositionListener.coinItemClick(view, getAdapterPosition());\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) {\n if (actionState != ItemTouchHelper.ACTION_STATE_IDLE) {\n if (viewHolder instanceof ItemTouchHelperViewHolder) {\n // Let the view holder know that this item is being moved or dragged\n ItemTouchHelperViewHolder itemViewHolder = (ItemTouchHelperViewHolder) viewHolder;\n itemViewHolder.onItemSelected();\n }\n }\n\n super.onSelectedChanged(viewHolder, actionState);\n }", "@Override\n public void onItemClick(View view, int position){\n }", "@Override\n public void onClick(View view, String title, int position) {\n if(mActivity != null)\n mActivity.onItemPressed(mDrinkInfos.get(position));\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n selectItem(position);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\t\n\t}", "@Override\n public void onClick(View view, int position) {\n\n onStickerSelectedListener.onStickerSelected(mAdapter.getSelectedPath(position));\n dismiss();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (isInActionMode()) {\n if (getSelecteditemPositions().size() == 0) {\n actionMode.finish();\n }\n }\n }", "@Override\n public void onClick(View v) {\n this.itemClickListener.onItemClick(v, getLayoutPosition());\n }", "@Override\r\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\r\n\t\t\tlong id) {\n\r\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\n\t}" ]
[ "0.72355384", "0.71697986", "0.71284217", "0.71003294", "0.7035303", "0.7031981", "0.7031396", "0.6997849", "0.69756293", "0.6957714", "0.6940647", "0.6924625", "0.69182336", "0.6894083", "0.68901014", "0.68687636", "0.68307287", "0.68255836", "0.68255836", "0.68224037", "0.6821896", "0.67976373", "0.67908233", "0.67716503", "0.6770007", "0.6770007", "0.6763833", "0.67598623", "0.67543375", "0.67343694", "0.6727727", "0.6726828", "0.6724762", "0.67185694", "0.6704405", "0.6702099", "0.6697689", "0.6690145", "0.6690145", "0.6690145", "0.6690145", "0.6690145", "0.6684738", "0.6683918", "0.66833115", "0.66817415", "0.66801393", "0.66801393", "0.6679493", "0.66790926", "0.66790926", "0.6668673", "0.66569746", "0.6656233", "0.66486055", "0.66486055", "0.6629586", "0.6629288", "0.66256267", "0.6621629", "0.66209424", "0.6620702", "0.6619206", "0.66180205", "0.66137964", "0.6611606", "0.66096354", "0.6608075", "0.6608075", "0.6608075", "0.66077095", "0.66037184", "0.66037184", "0.66037184", "0.66037184", "0.66037184", "0.66037184", "0.66037184", "0.66037184", "0.66037184", "0.66037184", "0.66037184", "0.66037184", "0.66037184", "0.66037184", "0.66037184", "0.6595952", "0.6595952", "0.6595555", "0.65944815", "0.65894204", "0.658811", "0.658811", "0.6582687", "0.65770257", "0.6568352", "0.6548871", "0.6545242", "0.6540796", "0.65296596", "0.65180963" ]
0.0
-1
rimuovi scheda da campagna
@Override public void onComplete(@NonNull Task<Void> task) { campaigns_ref.child(c.campaign_id).child("sheets").child(uid).removeValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "java.lang.String getSchedule();", "public void generateSchedule(){\n\t\t\n\t}", "public void limpiarCampos(){\n\n\t\tcampoInicio.setText(\"yyyy-mm-dd\");\n\t\tcampoInicio.setForeground(new Color(111,111,111));\n\t\tcampoFinal.setText(\"yyyy-mm-dd\");\n\t\tcampoFinal.setForeground(new Color(111,111,111));\n\n\t}", "@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }", "private void IniciarCronometro() {\n ActionListener action = new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n currentSegundo++;\n\n if (currentSegundo == 60) {\n currentMinuto++;\n currentSegundo = 0;\n }\n\n if (currentMinuto == 60) {\n currentHora++;\n currentMinuto = 0;\n }\n\n String hr = currentHora <= 9 ? \"0\" + currentHora : currentHora + \"\";\n String min = currentMinuto <= 9 ? \"0\" + currentMinuto : currentMinuto + \"\";\n String seg = currentSegundo <= 9 ? \"0\" + currentSegundo : currentSegundo + \"\";\n\n lbcronometro.setText(hr + \":\" + min + \":\" + seg);\n tempo = hr + \":\" + min + \":\" + seg;\n }\n };\n this.timer = new Timer(velocidade, action);\n this.timer.start();\n }", "@Override\r\n\tpublic String scheda() {\n\t\treturn getNome() + \"\\t\" + getDescrizione() + \"\\t\" + benchmark;\r\n\t}", "private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }", "private void rellenarCampos() {\n\t\tjfad.lbModCurso.setVisible(true);\n\t\tper = modelo.obtenerPeriodo(\n\t\t\t\tInteger.parseInt(jfad.tPeriodos.getValueAt(jfad.tPeriodos.getSelectedRow(), 0).toString()));\n\t\tjfad.dPDiaIniMod.setDate(per.getDia_inicio());\n\t\tjfad.dPDiaFinMod.setDate(per.getDia_fin());\n\t\tjfad.tPHoraInicioMod.setTime(per.getHora_inicio());\n\t\tjfad.tPHoraFinMod.setTime(per.getHora_fin());\n\t\tString intervalo = per.getIntervalo().toString();\n\t\tSystem.out.println(intervalo);\n\t\tint intervalo2 = Integer.parseInt(intervalo.substring(3));\n\t\tjfad.spIntervaloMod.setValue(intervalo2);\n\t\tif (per.getHabilitado())\n\t\t\tjfad.checkHabilitado.setSelected(true);\n\t}", "public void setar_campos()\n {\n int setar = tblCliNome.getSelectedRow();\n txtCliId.setText(tblCliNome.getModel().getValueAt(setar, 0).toString());\n txtCliNome.setText(tblCliNome.getModel().getValueAt(setar, 1).toString());\n txtCliRua.setText(tblCliNome.getModel().getValueAt(setar, 2).toString());\n txtCliNumero.setText(tblCliNome.getModel().getValueAt(setar, 3).toString());\n txtCliComplemento.setText(tblCliNome.getModel().getValueAt(setar, 4).toString());\n txtCliBairro.setText(tblCliNome.getModel().getValueAt(setar, 5).toString());\n txtCliCidade.setText(tblCliNome.getModel().getValueAt(setar, 6).toString());\n txtCliUf.setText(tblCliNome.getModel().getValueAt(setar, 7).toString());\n txtCliFixo.setText(tblCliNome.getModel().getValueAt(setar, 8).toString());\n txtCliCel.setText(tblCliNome.getModel().getValueAt(setar, 9).toString());\n txtCliMail.setText(tblCliNome.getModel().getValueAt(setar, 10).toString());\n txtCliCep.setText(tblCliNome.getModel().getValueAt(setar, 11).toString());\n \n // A LINHA ABAIXO DESABILITA O BOTÃO ADICIONAR PARA QUE O CADASTRO NÃO SEJA DUPLICADO\n btnAdicionar.setEnabled(true);\n \n }", "public Roysched() {\r\n initComponents();\r\n loadRoySched();\r\n }", "public Relogio()\n\t{\n \n\t\thora = 0;\n\t\tminuto = 0;\n\t\tsegundo = 0;\n //forma.format(hora);\n if((hora<0 || hora>23) || (minuto<0 || minuto>59) || (segundo<0 || segundo>59)){\n System.out.println(\"Valor de tempo invalido!\");\n }\n\t}", "int getSchedulingValue();", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "public Pelicula(String nombre, int anno, int duracionMinutos, int calidad)\n {\n super(nombre,anno);\n this.duracionMinutos = duracionMinutos;\n this.calidad = calidad;\n }", "public void printSchedule(){\n String\n format =\n \"%-20s%-10s%-15s%\" +\n \"-20s%-25s%-10s%\" +\n \"-15s%-15s%-15s%n\";\n\n System.out.printf(format,\n \"Водитель\", \"Номер А/М\",\"Машина\", \"Дата и время\",\n \"Задание\", \"Кол-во\",\n \"Расстояние\", \"Цена\", \"Примечание\");\n System.out.println();\n\n\n\n List<TimeTable> l = driverScheduleReaderDAO.getTimeTable();\n TimeTable tPrev =l.get(0);\n for (TimeTable t: l){\n\n if (!t.getDriverName().equals(tPrev.getDriverName())) {\n\n System.out.println(\"***\");\n tPrev = t;\n\n } else if (t!=l.get(0))t.setDriverName(\" \");\n\n\n\n\n System.out.printf(format,\n t.getDriverName(), t.getCarId(), t.getCarBrand(),\n t.getBusyTime(), t.getOrder(), t.getNumOfEl(),\n t.getDistance(), t.getPrice(), t.getNote()\n );\n\n }\n\n //int\n\n\n\n\n //вывести на экран\n //отельным классом посчитать шанс поломки и предупредить\n }", "public void fecharAgenda(){\n\t\tsetBooSelecionouDataHora (false);\n\t\tsetBooSelecionouUsuario(false);\n\t\tsetBooIdentifiquese(false);\n\t\tsetBooSucesso(false);\n\t\tsetStrCelular(\"\");\n\t\tRequestContext.getCurrentInstance().closeDialog(0);\n\t\tthis.refresh();\n\t}", "@PermitAll\n public void cmdShowSchedule(User teller) {\n command.sendQuietly(\"qtell {0} {1}\", teller, \"Current Schedule:\\\\n\");\n Collection<Game> games = tournamentService.findAllGames();\n for (Game game : games) {\n int boardNum = game.boardNumber;\n String whiteStatus = (game.whitePlayer.isOnline()) ? \"\" : \" ?\";\n String whitePlayer = game.whitePlayer.getHandle();\n String blackStatus = (game.blackPlayer.isOnline()) ? \"\" : \" ?\";\n String blackPlayer = game.blackPlayer.getHandle();\n String gameStatus = game.getStatusString();\n String msg = String.format(\"Board %2d: %18s%2s %18s%2s %s\", boardNum, whitePlayer, whiteStatus, blackPlayer, blackStatus, gameStatus);\n command.sendQuietly(\"qtell {0} {1}\", teller, msg);\n }\n command.sendQuietly(\"qtell {0}\", teller);\n }", "public ActividadTest()\n {\n prueba = new Actividad(\"Rumbear\",\"Salir a tomar y bailar con unos amigos\",2018,5,5,6,\n 15,8,30,30,new GregorianCalendar(2018,5,2,3,0),new GregorianCalendar(2018,5,7,8,0));\n }", "public String getSchedule() {\n return schedule;\n }", "public void setFechaSolicitud(java.util.Calendar param){\n \n this.localFechaSolicitud=param;\n \n\n }", "void Planificar(Reserva unaReserva);", "public Agenda() {\n initComponents();\n \n Deshabilitar();\n LlenarTabla();\n \n }", "public Mencacao()\r\n {\r\n texto = \"\";\r\n deUtilizador = \"\";\r\n data = new GregorianCalendar();\r\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderScheduling getScheduling();", "abstract public void computeSchedule();", "public void updateSchduleTime_actionPerformed(ActionEvent e) throws Exception {\n\t\tMap<String,Integer> pcidMap = new HashMap<String,Integer>();\r\n\t\tfor(int i = 0; i < kdtEntries.getRowCount(); i++) {\r\n//\t\t\tpcids.add(kdtEntries.getCell(i,\"id\").getValue());\r\n\t\t\tpcidMap.put(((BOSUuid)kdtEntries.getCell(i,\"id\").getValue()).toString(),i);\r\n\t\t}\r\n\t\tif(pcidMap.size() > 0){\r\n\t\t\tStringBuffer sb = new StringBuffer();\r\n\t\t\tfor(Iterator<String> it=pcidMap.keySet().iterator(); it.hasNext();) {\r\n\t\t\t\tsb.append(\"'\");\r\n\t\t \tsb.append(it.next());\r\n\t\t \tsb.append(\"',\");\r\n\t\t\t}\r\n\t\t\tif(sb.length() > 1){\r\n\t\t \tsb.setLength(sb.length()-1);\r\n\t\t }\r\n\t\t\tFDCSQLBuilder builder = new FDCSQLBuilder();\r\n\t\t\tbuilder.appendSql(\"select entry.CFProgammingID,entry.CFStartDate,entry.CFEndDate from CT_SCH_DahuaScheduleEntry entry left join CT_SCH_DahuaSchedule \");\r\n\t\t\tbuilder.appendSql(\"sched on sched.fid=entry.fparentid where sched.CFProjectID='\"+editData.getProject().getId().toString()+\"' and entry.CFProgammingID in (\"+sb.toString()+\")\");\r\n\t\t\tIRowSet rs = builder.executeQuery();\r\n\t\t\tif(rs.size() == 0){\r\n\t\t\t\tFDCMsgBox.showInfo(\"合约规划与明源进度项未关联!\");\r\n\t\t\t\treturn;\r\n\t\t\t}else{\r\n\t\t\t\twhile(rs.next()){\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\t\r\n\t}", "public void run() {\r\n\t\tDate fechaActual = new Date();\r\n\t\ttry {\r\n\t\t\t// Actual\r\n\t\t\tint horaActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getHora(fechaActual));\r\n\t\t\tint minutosActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getMinutos(fechaActual));\r\n\r\n\t\t\tint horaInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\tint horaFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\t// Tiempo Actual en Minutos\r\n\t\t\tint tiempoActual = (horaActual * 60) + minutosActual;\r\n\r\n\t\t\t// Tiempos de Rango de Ejecucion en Minutos\r\n\t\t\tint rangoInicial = (horaInicialRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosInicialRangoEjecucion;\r\n\t\t\tint rangoFinal = (horaFinalRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosFinalRangoEjecucion;\r\n\r\n\t\t\t// Pregunta si la hora actual esta dentro del rango de ejecucion de\r\n\t\t\t// la tarea\r\n\t\t\tif ((tiempoActual >= rangoInicial) && (tiempoActual <= rangoFinal)) {\r\n\t\t\t\tDate start = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Corriendo proceso automatico Cobro de Ciat Casa Ciat : \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tnew BillingAccountServiceImpl().CobroCiatCasaCiat();\r\n\r\n\t\t\t\tDate end = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Termina proceso Envio de notificaciones automaticas Cobro de Ciat Casa Ciat \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(end.getTime()\r\n\t\t\t\t\t\t\t\t- start.getTime()\r\n\t\t\t\t\t\t\t\t+ \" total milliseconds en realizar tarea automatica Cobro de Ciat Casa Ciat : \");\r\n\r\n\t\t\t}// Fin if\r\n\t\t\telse {\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Tarea Automatica de notificacion Cobro de Ciat Casa Ciat en espera... \"\r\n\t\t\t\t\t\t\t\t+ new Date() + \" ----\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog\r\n\t\t\t\t\t.error(\"Error RUN Tarea Automatica de notificacion Cobro de Ciat Casa Ciat: \"\r\n\t\t\t\t\t\t\t+ e.getMessage());\r\n\t\t}\r\n\r\n\t\tfechaActual = null;\r\n\r\n\t}", "public mbvConsolidadoPeriodoAnteriores() {\r\n }", "public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}", "void crearCampania(GestionPrecioDTO campania);", "public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }", "public boolean generateSchedule(){\r\n return true;\r\n }", "public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }", "io.opencannabis.schema.commerce.CommercialOrder.SchedulingType getScheduling();", "@NonNull\n public String toString(){\n return this.hora+\":\"+this.minutos+\" \"+this.segundos+\" Sec \"+this.dia+\"/\"+this.mes+\"/\"+this.anno;\n }", "public void setar_campos() {\n int setar = tblEmpresas.getSelectedRow();\n txtEmpId.setText(tblEmpresas.getModel().getValueAt(setar, 0).toString());\n txtEmpNome.setText(tblEmpresas.getModel().getValueAt(setar, 1).toString());\n txtEmpCNPJ.setText(tblEmpresas.getModel().getValueAt(setar, 2).toString());\n txtEmpEnd.setText(tblEmpresas.getModel().getValueAt(setar, 3).toString());\n txtEmpTel.setText(tblEmpresas.getModel().getValueAt(setar, 4).toString());\n txtEmpEmail.setText(tblEmpresas.getModel().getValueAt(setar, 5).toString());\n\n // a linha abaixo desabilita o botao add\n btnAdicionar.setEnabled(false);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). consultPeriod() ;}", "Schedule createSchedule();", "public void storeRegularDayTripStationScheduleWithRS();", "public Trimestre(){\n id_trimestre=0;\n numero=0;\n debut_trimestre= new Date(2012,8,12);\n fin_trimestre=new Date(2013,1,13);\n id_anneeScolaire=0;\n }", "public String sitioArrendado() {\r\n\t\tif (reserva == null) {\r\n\t\t\treservar = false;\r\n\t\t\treturn \"Todavía no posee un sitio reservado\";\r\n\t\t} else {\r\n\t\t\treservar = true;\r\n\t\t\treturn reserva.getArrSitioPeriodo().getSitNombre();\r\n\t\t}\r\n\t}", "public AnularReserva() {\n initComponents();\n setClosable(true);\n setMaximizable(true);\n setResizable(true);\n setIconifiable(true);\n String Titulos[]={\"IDRESERVA\",\"TIPO\",\"HORA\",\"ORIGEN\",\"DESTINO\",\"COSTO\",\"VEHICULO\"};\n datostabla.setColumnIdentifiers(Titulos);\n tbdatos.setModel(datostabla);\n //tbdatos.getColumnModel().getColumn(0).setMaxWidth(0);\n //tbdatos.getColumnModel().getColumn(0).setMinWidth(0);\n //tbdatos.getColumnModel().getColumn(0).setPreferredWidth(0);\n buscar(\"\");\n }", "private static void mostrarEmpateRonda() {\r\n\t\tSystem.out.println(\"¡RONDA \" + juego.getNRonda()\r\n\t\t\t\t+ \" EMPATADA!\\n Se repite la ronda \" + juego.getNRonda());\r\n\t}", "public String getSchedName() {\n return schedName;\n }", "private void muestraPersona(JSONArray genero) {\n\tJSONArray a = (JSONArray) genero.get(0);\n\t// txtId.setText(Long.toString( (Long) a.get(0)) );\n\t//txtBuscar.setText((String) a.get(1));\n\t// textFecha.setText((String) a.get(2));\n\t// textUsu.setText((String) a.get(4));\n\tcodTemporal = a.get(0).toString();\n\n\thabilita(true, false, false, false, false, true, false, true, true);\n }", "@Test\n public void createFormSceduleEntry(){\n ScheduleEntry entry = new ScheduleEntry(\"9;00AM\", new SystemCalendar(2018,4,25));\n }", "void getCurrentPeriodo();", "public PainelQuartos() throws InterruptedException {\n \n this.runable = () ->{\n /*while(true){\n \n List <Quarto> quart = new QuartoDAO().findAll();\n \n if(quart.get(1).getDisp().equals(\"nao disponivel\")){\n //disponibilidade.setBackground(new Color(241, 95, 95));\n cont=false;\n System.out.println(cont);\n }\n else if(quart.get(1).getDisp().equals(\"reservado\")){\n //disponibilidade.setBackground(new Color(88, 168, 247));\n cont=true;\n System.out.println(cont);\n }\n }*/\n };\n \n this.runnable = () ->{\n HospedagemDAO dao = new HospedagemDAO();\n List <Hospedagem> listaH = dao.findAll();\n Date data = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n String dataAct=sdf.format(data);\n for(int i=0;i<listaH.size();i++){\n int id=listaH.get(i).getQuarto().getIdQuarto();\n if(id==1){\n if(listaH.get(i).getNrDeHospedes()!=0){\n if(listaH.get(i).getDataSaida().equals(dataAct)){\n JOptionPane.showMessageDialog(null, \"A data de Saida do Hospede do quarto 1\\n expira dentro de 1 Hora.!\");\n }\n }\n }\n }\n };\n initComponents();\n PainelQuartos.setLayout(new MigLayout(\"wrap 5\"));\n PainelQuartos.setBackground(new Color(0,0,0,1)); \n }", "public void applyToSchedule(Schedule sched) {\n String repeat = m_repeatCombo.getSelectedItem().toString();\n for (Schedule.Repeat r : Schedule.Repeat.values()) {\n if (r.toString().equals(repeat)) {\n sched.setRepeatUnit(r);\n break;\n }\n }\n if (m_intervalField.getText() != null\n && m_intervalField.getText().length() > 0) {\n sched.setRepeatValue(Integer.parseInt(m_intervalField.getText()));\n } else if (sched.getRepeatUnit() == Schedule.Repeat.MINUTES\n || sched.getRepeatUnit() == Schedule.Repeat.HOURS\n || sched.getRepeatUnit() == Schedule.Repeat.DAYS) {\n // set a default value of 5\n sched.setRepeatValue(5);\n m_intervalField.setText(\"5\");\n }\n\n java.util.List<Integer> dow = new java.util.ArrayList<Integer>();\n if (m_sunCheck.isSelected()) {\n dow.add(Calendar.SUNDAY);\n }\n if (m_monCheck.isSelected()) {\n dow.add(Calendar.MONDAY);\n }\n if (m_tueCheck.isSelected()) {\n dow.add(Calendar.TUESDAY);\n }\n if (m_wedCheck.isSelected()) {\n dow.add(Calendar.WEDNESDAY);\n }\n if (m_thuCheck.isSelected()) {\n dow.add(Calendar.THURSDAY);\n }\n if (m_friCheck.isSelected()) {\n dow.add(Calendar.FRIDAY);\n }\n if (m_satCheck.isSelected()) {\n dow.add(Calendar.SATURDAY);\n }\n sched.setDayOfTheWeek(dow);\n\n if (sched.getRepeatUnit() == Schedule.Repeat.MONTHLY) {\n if (m_dayYearNumBut.isSelected()) {\n if (m_dayYearNumField.getText() != null\n && m_dayYearNumField.getText().length() > 0) {\n sched.setDayOfTheMonth(Integer.parseInt(m_dayYearNumField.getText()));\n }\n } else {\n for (Schedule.OccurrenceWithinMonth o : Schedule.OccurrenceWithinMonth\n .values()) {\n if (o.equals(m_occurrenceInMonth.getSelectedItem().toString())) {\n sched.setOccurrenceWithinMonth(o);\n break;\n }\n }\n }\n }\n\n if (sched.getRepeatUnit() == Schedule.Repeat.YEARLY) {\n if (m_dayYearNumBut.isSelected()) {\n if (m_dayYearNumField.getText() != null\n && m_dayYearNumField.getText().length() > 0) {\n sched\n .setRepeatValue(Integer.parseInt(m_dayYearNumField.getText()));\n }\n } else {\n for (Schedule.OccurrenceWithinMonth o : Schedule.OccurrenceWithinMonth\n .values()) {\n if (o.equals(m_occurrenceInMonth.getSelectedItem().toString())) {\n sched.setOccurrenceWithinMonth(o);\n break;\n }\n }\n // day of the week is already set\n\n sched.setMonthOfTheYear(m_month.getSelectedIndex());\n }\n }\n }", "public Fecha () {\n\t\tthis.ahora = Calendar.getInstance();\n\t\tahora.set(2018, 3, 1, 15, 15, 0);\t \n\t\taño = ahora.get(Calendar.YEAR);\n\t\tmes = ahora.get(Calendar.MONTH) + 1; // 1 (ENERO) y 12 (DICIEMBRE)\n\t\tdia = ahora.get(Calendar.DAY_OF_MONTH);\n\t\thr_12 = ahora.get(Calendar.HOUR);\n\t\thr_24 = ahora.get(Calendar.HOUR_OF_DAY);\n\t\tmin = ahora.get(Calendar.MINUTE);\n\t\tseg = ahora.get(Calendar.SECOND);\n\t\tam_pm = v_am_pm[ahora.get(Calendar.AM_PM)]; //ahora.get(Calendar.AM_PM)=> 0 (AM) y 1 (PM)\n\t\tmes_nombre = v_mes_nombre[ahora.get(Calendar.MONTH)];\n\t\tdia_nombre = v_dia_nombre[ahora.get(Calendar.DAY_OF_WEEK) - 1];\n\n\t}", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void setId_trimestre(int id_trimestre) {this.id_trimestre = id_trimestre;}", "public void startAgentTime() {\n Timer timer = new Timer(SIBAConst.TIME_AGENT_CHANGE_FOR_HOUR, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n \t\n \tCalendar c = Calendar.getInstance();\n int minutos = c.get(Calendar.MINUTE);\n int hora = c.get( (Calendar.HOUR_OF_DAY)); \n hora = hora * 60;\n if (minutos >= 30 && minutos <= 59)\n {hora +=30;\t\n }\n if (hora > ctrlHours)\n {ctrlHours = hora;\n //activada bandera de modificacion de programacion\n activatedScheduleChange = true;\n }\n else\n { if (hora < ctrlHours)\n \t ctrlHours = 0;\n }\n \t\n \t\n \n }\n });\n timer.start();\n }", "public DefaultScheduleEvent getEventosCalendario(DateTime data, Servico servico) throws NullPointerException {\n\t\tList<ServicoJanelaAtendimento> servicoJanelaAtendimentos = new ArrayList<>();\n\t\tList<SolicitacaoServico> solicitacaoServicos = new ArrayList<>();\n\t\t\n\t\t\n\t\t\n\t\tgetServicoJanelaAtendimentoDAO().beginTransaction();\n\t\tservicoJanelaAtendimentos = getServicoJanelaAtendimentoDAO().getServicoJanelaPorDataJanela(data.toDate(), servico);\n\t\tgetServicoJanelaAtendimentoDAO().closeTransaction();\n\t\t\n\t\tDefaultScheduleEvent defaultScheduleEvent= new DefaultScheduleEvent();\n\t\tdefaultScheduleEvent.setAllDay(true);\n\t\tdefaultScheduleEvent.setData(data.toDate());\n\t\tdefaultScheduleEvent.setStartDate(data.toDate());\n\t\tdefaultScheduleEvent.setEndDate(data.plusHours(20).toDate());\n\t\t\n\t\t\n\t\tif(!servicoJanelaAtendimentos.isEmpty()) {\n\t\t\t\n\t\t\t\n\t\t\tgetSolicitacaoServicoDAO().beginTransaction();\n\t\t\tsolicitacaoServicos = getSolicitacaoServicoDAO().getSolicitacoesPorDataeServico(data.toDate(), servico);\n\t\t\tgetSolicitacaoServicoDAO().closeTransaction();\n\t\t\t\n\t\t\tint janelaServico = 0;\n\t\t\tint janelaSolicitacao = 0;\n\t\t\t\tfor(ServicoJanelaAtendimento servicoJanelaAtendimento: servicoJanelaAtendimentos) {\n\t\t\t\t\tjanelaServico = janelaServico + servicoJanelaAtendimento.getCapacidadePeriodo();\n\t\t\t\t}\n\t\t\t\tjanelaSolicitacao = solicitacaoServicos.size();\n\t\t\tint disponivel = janelaServico-janelaSolicitacao;\n\t\t\tif(disponivel > 0) {\n\t\t\t\tdefaultScheduleEvent.setTitle(\"Disponível\");\n\t\t\t\tdefaultScheduleEvent.setStyleClass(\"green\");\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tdefaultScheduleEvent.setTitle(\"Encaixe\");\n\t\t\t\tdefaultScheduleEvent.setStyleClass(\"red\");\n\t\t\t\t\n\t\t\t}\n\t\t}else {\n\t\tdefaultScheduleEvent.setTitle(\"Não Disponível\");\n\t\tdefaultScheduleEvent.setStyleClass(\"no-color\");\n\t\t}\n\t\t\n\t\treturn defaultScheduleEvent;\n\t}", "public void fill_table()\n {\n Secante secante = new Secante(GraficaSecanteController.a, GraficaSecanteController.b, GraficaSecanteController.ep, FuncionController.e);\n list = secante.algoritmo();\n }", "private void crearTurnos(){\n Date a = new Date();\n if((dateSeleccion.getDatoFecha()).getDay()>= a.getDay()){\n Calendar dia = Calendar.getInstance();//crear una instancia de calendario se usa para hora empieza\n Calendar aux = Calendar.getInstance();//instancia para horatermina \n dia.setTime(dateSeleccion.getDatoFecha()); //dia que seleccione en el combo\n\n dia.set(Calendar.HOUR_OF_DAY,this.cita.getMedico().getHorarioInicio().getHours());\n dia.set(Calendar.MINUTE,this.cita.getMedico().getHorarioInicio().getMinutes());\n aux.setTime(dateSeleccion.getDatoFecha()); //dia que seleccione en el combo\n aux.set(Calendar.HOUR_OF_DAY,this.cita.getMedico().getHorarioInicio().getHours());\n aux.set(Calendar.MINUTE,this.cita.getMedico().getHorarioInicio().getMinutes()+this.cita.getMedico().getTiempoTurno());\n int rango = (this.cita.getMedico().getHorarioFinal().getHours()\n -this.cita.getMedico().getHorarioInicio().getHours())*60;\n int cantTurnosDia = rango/this.cita.getMedico().getTiempoTurno();\n for (int i=1;i<=cantTurnosDia;i++){\n this.controlador.agregarTurno(this.cita.getMedico(), dia.getTime(), aux.getTime());\n aux.add(Calendar.MINUTE, this.cita.getMedico().getTiempoTurno());\n dia.add(Calendar.MINUTE, this.cita.getMedico().getTiempoTurno());\n }\n //se pueden crear duplicados\n }\n }", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "public void validateSchedular() {\n boolean startDateCheck = false, cronTimeCheck = false, dateFormatCheck = false;\n /*\n Schedular Properties\n */\n\n System.out.println(\"Date: \" + startDate.getValue());\n if (startDate.getValue() != null) {\n System.out.println(\"Date: \" + startDate.getValue());\n startDateCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Start Date should not be empty.\\n\");\n }\n\n if (!cronTime.getText().isEmpty()) {\n cronTimeCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Cron Time should not be empty.\\n\");\n }\n// if (!dateFormat.getText().isEmpty()) {\n// dateFormatCheck = true;\n// } else {\n// execptionData.append((++exceptionCount) + \". Date Format should not be empty.\\n\");\n// }\n\n if (startDateCheck == true && cronTimeCheck == true) {\n schedularCheck = true;\n } else {\n schedularCheck = false;\n startDateCheck = false;\n cronTimeCheck = false;\n dateFormatCheck = false;\n }\n\n }", "private void populaHorarioAula()\n {\n Calendar hora = Calendar.getInstance();\n hora.set(Calendar.HOUR_OF_DAY, 18);\n hora.set(Calendar.MINUTE, 0);\n HorarioAula h = new HorarioAula(hora, \"Segunda e Quinta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 15);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 10);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Quarta e Sexta\", 3, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Sexta\", 1, 1, 2);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 19);\n h = new HorarioAula(hora, \"Sexta\", 2, 1, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Segunda\", 3, 6, 4);\n horarioAulaDAO.insert(h);\n\n }", "private void PreencherFormulario(int acao) throws SQLException {\n \n Funcionario_id.setText(String.valueOf(acao)); \n obj_Funcionario = bd_Funcionario.getFuncionarioID(acao);\n campo_nome.setText(obj_Funcionario.getNome());\n campo_endereco.setText(obj_Funcionario.getEndereco());\n campo_bairro.setText(obj_Funcionario.getBairro());\n campo_estado.setText(obj_Funcionario.getUf());\n campo_cpf.setText(obj_Funcionario.getCpf());\n campo_idt.setText(obj_Funcionario.getIdt()); \n campo_login.setText(obj_Funcionario.getLogin());\n campo_senha.setText(obj_Funcionario.getSenha());\n campo_cidade.setText(obj_Funcionario.getCidade()); \n campo_numero.setText(obj_Funcionario.getNumero()); \n campo_cep.setText(String.valueOf((obj_Funcionario.getCep()==0)?\"\":obj_Funcionario.getCep()));\n campo_ddd.setText(String.valueOf((obj_Funcionario.getDdd()==0)?\"\":obj_Funcionario.getDdd()));\n campo_telefone.setText(String.valueOf((obj_Funcionario.getTelefone()==0)?\"\":obj_Funcionario.getTelefone()));\n \n Nivel_id.setText(String.valueOf(obj_Funcionario.getNivel().getNivel_id()));\n combo_nivel.setSelectedItem(obj_Funcionario.getNivel().getNome().toUpperCase());\n \n if(obj_Funcionario.getData_admissao()!=null){\n String strdata1 = new SimpleDateFormat(\"dd/MM/yyyy\").format(obj_Funcionario.getData_admissao());\n String vet1[] = strdata1.split(\"/\");\n campo_adm_dia.setText(vet1[0]);\n campo_adm_mes.setText(vet1[1]);\n campo_adm_ano.setText(vet1[2]);\n }\n /*\n if(!obj_Funcionario.getData_demissao().equals(\"0000-00-00\")){\n String strdata2 = new SimpleDateFormat(\"dd/MM/yyyy\").format(obj_Funcionario.getData_demissao());\n String vet2[] = strdata2.split(\"/\");\n campo_dm_dia.setText(vet2[0]);\n campo_dm_mes.setText(vet2[1]);\n campo_dm_ano.setText(vet2[2]);\n }\n * \n */ \n }", "public Reserva(int id,Timestamp fechaInicio,Timestamp fechaFin,Recurso recurso,Usuario usuario,String estado,String tipo){\n this.id=id;\n this.fechaInicio=fechaInicio;\n this.fechaFin=fechaFin;\n this.recurso=recurso;\n this.usuario=usuario;\n this.estado=estado;\n this.tipo=tipo;\n }", "public void limpiarCampos() {\n jtCargo.setText(\"\");\n jtCiudadNacimiento.setText(\"\");\n jtCorreo.setText(\"\");\n jtDepartamento.setText(\"\");\n jtDireccion.setText(\"\");\n jtDocumento.setText(\"\");\n jtMovil.setText(\"\");\n jtPrimerApellido.setText(\"\");\n jtPrimerNombre.setText(\"\");\n jtProfesion.setText(\"\");\n jtSegundoApellido.setText(\"\");\n jtSegundoNombre.setText(\"\");\n jtTelefono.setText(\"\");\n jtDocumento.setEnabled(true);\n jdFechaContratacion.setEnabled(true);\n jcTipoDocumento.setSelectedIndex(0);\n jcTipoSangre.setSelectedIndex(0);\n jcTipoContrato.setSelectedIndex(0);\n cjFactorRH.setSelectedIndex(0);\n jdFechaNacimiento.setDate(null);\n jdFechaTitulacion.setDate(null);\n jdFechaContratacion.setDate(null);\n\n repaint();\n }", "public void mostrarAutomovil(){\r\n System.out.println(\"Marca: \" + automovil.getMarca());\r\n System.out.println(\"Modelo: \" + automovil.getModelo());\r\n System.out.println(\"Placa: \" + automovil.getPlaca());\r\n }", "public void setFechaFacturado(java.util.Calendar param){\n \n this.localFechaFacturado=param;\n \n\n }", "public String getPlacementRoadshowSchedule() {\n return placementRoadshowSchedule;\n }", "public java.util.Calendar getFechaSolicitud(){\n return localFechaSolicitud;\n }", "public TareasEvento() {\n initComponents();\n setTitle (\"Tareas\");\n mostrardatos(jTextField1.getText());\n \n }", "public Date obterHrEnt1Turno(){\n \ttxtHrEnt1Turno.setEditable(true);\n txtHrSai1Turno.setEditable(false);\n txtHrEnt2Turno.setEditable(false);\n txtHrSai2Turno.setEditable(false);\n \ttxtHrEnt1TurnoExt.setEditable(false);\n txtHrSai1TurnoExt.setEditable(false);\n txtHrEnt2TurnoExt.setEditable(false);\n txtHrSai2TurnoExt.setEditable(false);\n\n return new Date();\n }", "public void cartgarTareasConRepeticionDespuesDe(TareaModel model,int unid_medi,String cant_tiempo,String tomas)\n {\n Date fecha = convertirStringEnFecha(model.getFecha_aviso(),model.getHora_aviso());\n Calendar calendar = Calendar.getInstance();\n\n if(fecha != null)\n {\n calendar.setTime(fecha);\n calcularCantidadDeRepeticionesHorasMin(unid_medi,calendar,cant_tiempo,tomas,model);\n }\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Reservas [id=\" + id + \", id_habitacion=\" + id_habitacion + \", dni=\" + dni + \", desde=\" + desde\r\n\t\t\t\t+ \", hasta=\" + hasta + \"]\";\r\n\t}", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "Appointment(){\n this.description =\" \";\n this.beginTime=null;\n this.endTime = null;\n }", "public void get_fecha(){\n //Obtenemos la fecha\n Calendar c1 = Calendar.getInstance();\n fecha.setCalendar(c1);\n }", "public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public void visualizzaCampo(){\r\n\t\tInputOutput.stampaCampo(nome, descrizione, obbligatorio);\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). saisirPeriodique() ;}", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}", "public void crearPeliculaNueva(){\n //Atributos de pelicula\n String titulo;\n String autor;\n Multimedia.FORMATO formato;\n GregorianCalendar anyo;\n double duracion = 0;\n String actorPrincipal;\n String actrizPrincipal;\n\n boolean validado = false;\n\n\n titulo = pedirString( \"titulo\"); // Pido el titulo\n autor = pedirString(\"autor\"); // Pido el autor\n formato = pedirFormato(); // Pido el formato\n anyo = pedirAnyo(); // Pido el anyo\n\n do{\n System.out.println(\"Introduce la duracion:\");\n try {\n duracion = Double.parseDouble(lector.nextLine());\n validado = true;\n\n if(duracion <= 0){\n validado = false;\n System.out.println(\"la duracion no puede ser un numero negativo\");\n }\n }catch (NumberFormatException nfe){\n System.out.println(\"Por favor, introduce un numero.\");\n }\n\n }while(!validado);\n validado = false;\n\n // Pido el actor\n do {\n System.out.println(\"Actor: \");\n actorPrincipal = lector.nextLine();\n validado = titulo.length() > 2;\n if(!validado) {\n System.out.println(\"El actor debe tener almenos 2 caracteres\");\n Lib.pausa();\n }\n } while (!validado);\n\n validado = false;\n\n // Pido la actriz\n do {\n System.out.println(\"Actriz: \");\n actrizPrincipal = lector.nextLine();\n validado = titulo.length() > 2;\n if(!validado) {\n System.out.println(\"La actriz debe tener almenos 2 caracteres\");\n Lib.pausa();\n }\n } while (!validado);\n\n\n // Finalmente creo la pelicula y lo anyado a las peliculas de la tienda.\n tienda.getPeliculas().add(new Pelicula(titulo, autor, formato, anyo, duracion, actorPrincipal, actrizPrincipal));\n System.out.println(\"Pelicula creado con exito\");\n Lib.pausa();\n\n }", "Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);", "public EditarVenda() {\n initComponents();\n URL caminhoIcone = getClass().getResource(\"/mklivre/icone/icone2.png\");\n Image iconeTitulo = Toolkit.getDefaultToolkit().getImage(caminhoIcone);\n this.setIconImage(iconeTitulo);\n conexao = ModuloConexao.conector();\n codigoCliente.setEnabled(false);\n lucro.setEnabled(false);\n valorLiquidoML.setEnabled(false);\n }", "public void Stampa(Campo c){\r\n c.stampaCampo();\r\n }", "public ManipularEstudiantes() {\n initComponents();\n cme = new Control_Mantenimiento_Estudiante(this);\n this.gUI_botones2.agregar_eventos(cme);\n }", "public Conway(AutomataCelular ac,int fila,int columna){\r\n super(ac,fila,columna);\r\n estadoActual=VIVA;\r\n //decida();\r\n estadoSiguiente=VIVA;\r\n edad=0;\r\n automata.setElemento(fila,columna,(Elemento)this); \r\n color=Color.blue;\r\n }", "public void run() {\n GRectangle mida = new GRectangle(0, 0, MIDAPANTALLA, MIDAPANTALLA);\n\n // Preparar el cassador\n GImage imatge = new GImage(\"cireraire.png\");\n add(imatge);\n CassadorDeCireres cassador = new CassadorDeCireres(imatge);\n\n camp = new Camp(mida, cassador);\n\n for(int i=0; i<10; i++) { \n camp.afegirCirera(generaCirera());\n }\n\n clicaPerComencar();\n\n }", "public void getSconti() {\r\n\t\tsconti = ac.getScontiDisponibili();\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaSconti!= null) {\r\n\t\t\tvaloreScontiCol.setCellValueFactory(new PropertyValueFactory<Sconto, Integer>(\"valore\"));\r\n\t puntiRichiestiCol.setCellValueFactory(new PropertyValueFactory<Sconto, String>(\"puntiRichiesti\"));\r\n\t spesaMinimaCol.setCellValueFactory(new PropertyValueFactory<Sconto, String>(\"spesaMinima\"));\r\n\t \r\n\t Collections.sort(sconti);\r\n\t tabellaSconti.getItems().setAll(sconti);\r\n\t \r\n\t tabellaSconti.setOnMouseClicked(e -> {\r\n\t \tif(aggiungi.isDisabled() && elimina.isDisabled()) \r\n\t \t\ttotale.setText(\"\" + ac.applicaSconto(tabellaSconti.getSelectionModel().getSelectedItem()));\r\n\t });\r\n\t }\r\n\t}", "int getIdRondaCancion(Cancion cancion,Date fecha) throws ExceptionDao;", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "public void reservarSitio() {\r\n\t\ttry {\r\n\t\t\tif (sitioId == null)\r\n\t\t\t\tMensaje.crearMensajeWARN(\"Debe seleccionar sitio para la reserva.\");\r\n\t\t\telse if (!mayorEdad && (getDniRepresentante() == null || getNombreRepresentante() == null\r\n\t\t\t\t\t|| getDniRepresentante().trim().isEmpty() || getDniRepresentante().length() < 9\r\n\t\t\t\t\t|| !Funciones.isNumeric(getDniRepresentante()) || !Funciones.validacionCedula(getDniRepresentante())\r\n\t\t\t\t\t|| getNombreRepresentante().trim().isEmpty()))\r\n\t\t\t\tMensaje.crearMensajeWARN(\"Los datos de representante son requeridos, y la cédula debe ser válida.\");\r\n\t\t\telse {\r\n\t\t\t\tif (reserva != null) {// POSEE RESERVA\r\n\t\t\t\t\tmodificarReserva();\r\n\t\t\t\t\tSystem.out.println(\"MODIFICA\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tingresarReserva();\r\n\t\t\t\t\tSystem.out.println(\"INGRESA\");\r\n\t\t\t\t}\r\n\t\t\t\tfinalizado = true;\r\n\t\t\t\treserva = mngRes.buscarReservaPorID(getDniEstudiante(), periodo.getPrdId());// CARGAR\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// RESERVA\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ACTUAL\r\n\t\t\t\tcargarSitiosLibres();\r\n\t\t\t\tcargarEstudiantesSitio();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tMensaje.crearMensajeERROR(\"Error al realizar reserva: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public FrmCadastroVenda(JDesktopPane desktop, int permissao, int op, String nota) {\r\n\t\tsuper();\r\n\t\tthis.desk = desktop;\r\n\t\tthis.permissao = permissao;\r\n\t\tthis.op = op;\r\n\t\tinitialize();\r\n\t\ttxtCnpjCliente.setEditable(false);\r\n\t\ttxtCnpjRepresentada.setEditable(false);\r\n\t\ttxtVendedor.setEditable(false);\r\n\t\tchkComissionado.setEnabled(false);\r\n\t\ttxtVlFinal.setEditable(false);\r\n\t\ttxtVlFinal2.setEditable(false);\r\n\t\tif(getOp()==0){//Novo cadastro\r\n\r\n\t\t}else{//Exibir dados\r\n\t\t\tif(getPermissao()==1){\r\n\t\t\t\tabaPrincipal.addTab(\"Comissão\", null, abaComissao, null);\t\r\n\t\t\t\tajustaDados(nota);\r\n\t\t\t\tdesabilitaCampos();\r\n\t\t\t\tif(txtComissao.getText().equals(\"R$ 0,00\")){\r\n\t\t\t\t\ttxtComissao.setEditable(true);\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\ttxtComissao.setEditable(false);\r\n\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\tajustaDados(nota);\r\n\t\t\t\tdesabilitaCampos();\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}", "public void reservas_pista(int pista,int socio,String fecha,String hora_inicio,String hora_fin) throws SQLException {\n\t\t\n\t\t\n\t\tcst= conn.prepareCall(\"{call reservar_pista(?,?,?,?,?)}\");\n\t\t\n\t\tcst.setInt(1, pista);\n\t\tcst.setInt(2, socio);\n\t\tcst.setString(3, fecha);\n\t\tcst.setString(4, hora_inicio);\n\t\tcst.setString(5, hora_fin);\n\t\t\n\t\tif(cst.executeUpdate() == 1){\n\t\t\tJOptionPane.showMessageDialog(null, \"Reserva Aņadida Correctamente\",\n\t\t\t\t\t\"Reserva\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\t\t\n\t}", "public abstract void maintenanceSchedule() ;", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "public Cronometro() {\n initComponents();\n setLocationRelativeTo(null);\n timer = new Timer(10, acciones);\n }", "public Comida(String nombre){\n super(nombre);\n this.calorias = 10;\n }", "public void Ordenamiento() {\n\n\t}", "public FRMPrestarComputador() {\n initComponents();\n // idb.setText(idloguin);\n this.TXTFechaDePrestamo.setText(fechaActual());\n }" ]
[ "0.63047194", "0.6158321", "0.6150611", "0.6021645", "0.59690243", "0.59187573", "0.58052534", "0.57866085", "0.5771045", "0.5742208", "0.5737697", "0.56262594", "0.5613483", "0.56036425", "0.560338", "0.555968", "0.5525369", "0.5511458", "0.5506319", "0.5500968", "0.5495933", "0.54816926", "0.5480925", "0.54628956", "0.54577047", "0.54306805", "0.5415919", "0.54156566", "0.54116964", "0.5403736", "0.53929853", "0.5387762", "0.53861", "0.5381354", "0.5381046", "0.5370733", "0.5363909", "0.53626823", "0.53622913", "0.5357106", "0.534992", "0.53443193", "0.53439546", "0.5333951", "0.53288186", "0.53271586", "0.5318019", "0.5314303", "0.53102946", "0.5297003", "0.52952933", "0.52926505", "0.5290336", "0.5289412", "0.5289366", "0.5285119", "0.5281764", "0.5272049", "0.52720314", "0.5270567", "0.52666235", "0.52596164", "0.5248256", "0.5246125", "0.5245375", "0.52437294", "0.5243221", "0.52428585", "0.523821", "0.5237615", "0.5229935", "0.5225302", "0.522339", "0.52231604", "0.52216786", "0.5210384", "0.52103144", "0.52082884", "0.52082115", "0.52073705", "0.51880974", "0.51843405", "0.5179175", "0.51761585", "0.5173183", "0.51723033", "0.5171849", "0.5170883", "0.5169888", "0.51688045", "0.51642877", "0.51640105", "0.51612574", "0.5159769", "0.51590025", "0.5155319", "0.5155189", "0.514971", "0.5148306", "0.5145978", "0.5144311" ]
0.0
-1
TODO Autogenerated method stub
@Override public void initData() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public void regReview(ReviewVO rvo) { ss.insert("insertReview", rvo); }
{ "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 ReviewVO selectReview(int r_no) { return ss.selectOne("selectReview", r_no); }
{ "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 updateReview(ReviewVO rvo) { ss.update("updateReview", rvo); }
{ "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 deleteReview(int r_no) { ss.delete("deleteReview", r_no); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public int countReview(String bnum) { return ss.selectOne("countReview", bnum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<ReviewVO> listPage(int page) throws Exception { if(page<=0) { page=1; } page = (page-1)*10; // 한 페이지에 10개의 글 보이기 return ss.selectList("listPage", page); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<ReviewVO> listCriteria(PageCriteria page) throws Exception { return ss.selectList("listCriteria", page); }
{ "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 int countData(PageCriteria pCri) throws Exception { return ss.selectOne("countData", pCri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
Create an settings from JSON
public HandlebarsKnotOptions(JsonObject json) { init(); HandlebarsKnotOptionsConverter.fromJson(json, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Config createSaps(JsonElement json) {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n Config saps = gson.fromJson(json, Config.class);\n return saps;\n }", "private static void loadJsonFile() throws FileNotFoundException {\n Log.println(Log.INFO, \"FileAccessing\", \"Loading settings file.\");\n StringBuilder stringBuilder = new StringBuilder();\n InputStreamReader inputStreamReader = new InputStreamReader(context.openFileInput(\"settingDetails.json\"), StandardCharsets.UTF_8);\n try (BufferedReader reader = new BufferedReader(inputStreamReader)) {\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n Log.println(Log.ERROR, \"FileAccessing\", \"Settings file reading error.\");\n throw new FileNotFoundException();\n }\n if (stringBuilder.toString().equals(\"\")) {\n Log.println(Log.INFO, \"FileAccessing\", \"Settings file does not exist.\");\n throw new FileNotFoundException();\n }\n\n Gson gson = new Gson();\n JsonObject jsonObject = gson.fromJson(stringBuilder.toString(), JsonObject.class);\n if (jsonObject == null) {\n throw new FileNotFoundException();\n }\n JsonArray mappingControls = (JsonArray) jsonObject.get(\"mappingControls\");\n\n TaskDetail.actionToTask.clear();\n for (JsonElement o : mappingControls) {\n JsonObject individualMapping = (JsonObject) o;\n byte combinedAction = individualMapping.get(\"combinedAction\").getAsByte();\n int outerControl = individualMapping.get(\"task\").getAsInt();\n TaskDetail.actionToTask.put(combinedAction, TaskDetail.taskDetails.get(outerControl));\n }\n\n int setting = 0;\n JsonArray generalSettings = (JsonArray) jsonObject.get(\"generalSettings\");\n for (JsonElement o : generalSettings) {\n JsonObject individualSetting = (JsonObject) o;\n int status = individualSetting.get(\"status\").getAsInt();\n SettingDetail.settingDetails.get(setting++).changeSetting(status);\n }\n\n DeviceDetail.deviceDetails.clear();\n JsonArray deviceList = (JsonArray) jsonObject.get(\"devices\");\n for (JsonElement o : deviceList) {\n JsonObject individualDevice = (JsonObject) o;\n String deviceName = individualDevice.get(\"name\").getAsString();\n String deviceMac = individualDevice.get(\"mac\").getAsString();\n DeviceDetail.deviceDetails.add(new DeviceDetail(deviceMac, deviceName));\n }\n\n SensitivitySetting.sensitivitySettings.clear();\n JsonArray sensitivityList = (JsonArray) jsonObject.get(\"sensitivities\");\n for (JsonElement o : sensitivityList) {\n JsonObject individualSensitivity = (JsonObject) o;\n int multiplicativeFactor = individualSensitivity.get(\"factor\").getAsInt();\n int sensitivity = individualSensitivity.get(\"sensitivity\").getAsInt();\n SensitivitySetting.sensitivitySettings.add(new SensitivitySetting(multiplicativeFactor, sensitivity));\n }\n\n int currentDevice = jsonObject.get(\"currentlySelected\").getAsInt();\n DeviceDetail.setIndexSelected(currentDevice);\n\n updateAllSetting(false);\n }", "private void initialiseFromJson(){\n try {\n\t\t\t// The type adapter is only needed if you have a CharSequence in your model. If you're just using strings\n \t// you can just use Gson gson = new Gson();\n Gson gson = new GsonBuilder().registerTypeAdapter(CharSequence.class, new CharSequenceDeserializer()).create();\n Reader reader = new InputStreamReader(getAssets().open(VARIANTS_FILE));\n BaseVariants baseVariants = gson.fromJson(reader, BaseVariants.class);\n Neanderthal.initialise(this, baseVariants.variants, baseVariants.defaultVariant);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static ConfigImpl loadJson(Reader reader) {\n ConfigImpl ret = new ConfigImpl();\n JsonParser parser = new JsonParser();\n JsonElement element = parser.parse(reader);\n loadJson(element, ret, \"\");\n return ret;\n }", "private void readSettingsFromJson(String jsonFilePath) throws FileNotFoundException {\n File jsonFile = new File(jsonFilePath);\n GsonBuilder builder = new GsonBuilder().setPrettyPrinting();\n Gson gson = builder.create();\n if (jsonFile.exists()) {\n // try to read the settings from provided file\n FileReader fileReader = new FileReader(jsonFile);\n serverConfig = gson.fromJson(fileReader, ServerConfig.class);\n log.info(\"reading config from file {}\", jsonFile.getAbsoluteFile());\n } else {\n // file was not found, fall back to default config\n log.warn(\"settings file {} not found, falling back to default config\", jsonFile.getAbsoluteFile());\n serverConfig = ServerConfig.getDefaultConfig();\n String jsonStr = gson.toJson(serverConfig);\n\n try (PrintWriter out = new PrintWriter(jsonFile)) {\n out.print(jsonStr);\n }\n }\n\n // additionally create a map for easy access to repositories based on identifier\n for (ServerRepository serverRepository : serverConfig.getRepositories()) {\n this.serverRepositories.put(serverRepository.getIdentifier(), serverRepository);\n }\n }", "public static ShardingRuleConfiguration fromJson(final String json) {\r\n return GsonFactory.getGson().fromJson(json, ShardingRuleConfiguration.class);\r\n }", "public void fromJSON(String json) throws JSONException;", "public abstract void fromJson(JSONObject jsonObject);", "@Override\n public void init(String jsonString) throws PluginException {\n try {\n config = new JsonSimpleConfig(jsonString);\n reset();\n } catch (IOException e) {\n log.error(\"Error reading config: \", e);\n }\n }", "public void init(JSONObject config) throws Exception {\n\n }", "public void setConfigurations() {\n configurations = jsonManager.getConfigurationsFromJson();\n }", "public interface JsonProperties {\n\n String ACCESS_LEVEL = \"accessLevel\";\n String ADDRESS = \"address\";\n String ASSET_ID = \"assetId\";\n String CONTENT = \"content\";\n String CREATED_BY = \"createdBy\";\n String DATA = \"data\";\n String DATA_HASH = \"dataHash\";\n String EVENT_ID = \"eventId\";\n String ID_DATA = \"idData\";\n String META_DATA = \"metadata\";\n String PERMISSIONS = \"permissions\";\n String REGISTERED_BY = \"registeredBy\";\n String REGISTERED_ON = \"registeredOn\";\n String SEQUENCE_NUMBER = \"sequenceNumber\";\n String SIGNATURE = \"signature\";\n String TIMESTAMP = \"timestamp\";\n}", "private SettingsManager initSettings() {\n // Copy the demo/config.yml instead of using it directly so it doesn't get overridden\n configFile = copyFileFromJar(\"/demo/config.yml\");\n return SettingsManagerBuilder.withYamlFile(configFile).configurationData(TitleConfig.class).create();\n }", "@Test\n public void fromJson() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions options = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject attObj = authenticator.makeCredential(options);\n }", "private static void putJSONObjectIntoPreferences(JSONObject json, Editor prefs) throws JSONException{\n\t\t\n\t\tjava.util.Iterator<?> keys = json.keys();\n\t\t\n\t\twhile (keys.hasNext()) {\n\t\t\tString key = (String) keys.next();\n\t\t\tObject v = json.get(key);\n\t\n\t\t\tif (v instanceof Boolean)\n\t\t\t\tprefs.putBoolean(key, ((Boolean) v).booleanValue());\n\t\t\telse if (v instanceof Float)\n\t\t\t\tprefs.putFloat(key, ((Float) v).floatValue());\n\t\t\telse if (v instanceof Integer)\n\t\t\t\tprefs.putInt(key, ((Integer) v).intValue());\n\t\t\telse if (v instanceof Long)\n\t\t\t\tprefs.putLong(key, ((Long) v).longValue());\n\t\t\telse if (v instanceof String)\n\t\t\t\tprefs.putString(key, ((String) v));\n\t\t}\t\n\t}", "@JsonIgnore\n\tpublic static WFSLayerPermissionsStore setJSON(String json)\n\t\t\tthrows IOException {\n\t\treturn TransportService.mapper.readValue(json,\n\t\t\t\tWFSLayerPermissionsStore.class);\n\t}", "private static void initSettings(TransferITModel model) {\n if (settingsfile.exists()) {\n try {\n ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream(settingsfile));\n Object[] readObjects = new Object[6];\n for (int x = 0; x < readObjects.length; x++) {\n readObjects[x] = objectInputStream.readUnshared();\n if (readObjects[x] == null) {\n return;\n }\n }\n model.putAll((Properties) readObjects[0]);\n\n model.setHostHistory((HashSet<String>) readObjects[1]);\n\n model.setUsernameHistory((HashMap<String, String>) readObjects[2]);\n\n model.setPasswordHistory((HashMap<String, String>) readObjects[3]);\n\n model.setUsers((HashMap<String, String>) readObjects[4]);\n\n model.setUserRights((HashMap<String, Boolean>) readObjects[5]);\n\n\n\n } catch (IOException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n model.addUser(\"anon\", \"anon\", false);\n }\n }", "static <T extends SyntheticOptions> T optionsFromString(String json, Class<T> type)\n throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T result = mapper.readValue(json, type);\n result.validate();\n return result;\n }", "@Override\n public void init(File jsonFile) throws PluginException {\n try {\n config = new JsonSimpleConfig(jsonFile);\n reset();\n } catch (IOException e) {\n log.error(\"Error reading config: \", e);\n }\n }", "protected CategoryModel createFromJSON(JSONObject json, boolean useServer) throws JSONException {\n\t\treturn CategoryModel.fromJSON(json, useServer);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}", "public T getConfig() throws InvalidConfigFormatException {\n try {\n Reader settingsFile = new FileReader( getSettingsFileName() );\n T result = gsonObject.fromJson(settingsFile, settingsClass);\n settingsFile.close();\n\n return result;\n } catch (Exception e) {\n throw new InvalidConfigFormatException(\"Can't read config file: \" + e.getMessage() );\n }\n\n }", "private void settingsParameters(){\n String settings = Settings.System.getString(context.getContentResolver(), this.watchface+\"Settings\");\n if (settings == null || settings.equals(\"\")) {settings = \"{}\";}\n\n // Extract data from JSON\n JSONObject json_settings;\n try {\n json_settings = new JSONObject(settings);\n\n // Circles Widget\n if (json_settings.has(\"battery\")) {this.batteryBool = json_settings.getBoolean(\"battery\");}\n if (json_settings.has(\"steps\")) {this.stepsBool = json_settings.getBoolean(\"steps\");}\n if (json_settings.has(\"todayDistance\")) {this.todayDistanceBool = json_settings.getBoolean(\"todayDistance\");}\n if (json_settings.has(\"totalDistance\")) {this.totalDistanceBool = json_settings.getBoolean(\"totalDistance\");}\n if (json_settings.has(\"batteryCircle\")) {this.batteryCircleBool = json_settings.getBoolean(\"batteryCircle\");}\n if (json_settings.has(\"stepsCircle\")) {this.stepCircleBool = json_settings.getBoolean(\"stepsCircle\");}\n if (json_settings.has(\"todayDistanceCircle\")) {this.todayDistanceCircleBool = json_settings.getBoolean(\"todayDistanceCircle\");}\n if(isCircles()){\n if(batteryBool){\n\n\n }\n\n }\n\n } catch (JSONException e) {\n //Settings.System.putString(getContentResolver(), this.watchface+\"Settings\", \"{}\");//reset wrong settings data\n }\n }", "public static Capabilities fromJson(String json) {\n Gson gson = new Gson();\n return gson.fromJson(json, Capabilities.class);\n }", "<T> T fromJson(String json, Class<T> type);", "public final void handleConfig(JSONObject jSONObject) {\n super.handleConfig(jSONObject);\n if (jSONObject != null) {\n JSONObject optJSONObject = jSONObject.optJSONObject(\"aweme_activity_setting\");\n if (optJSONObject != null) {\n C29132a.m95559a(optJSONObject);\n C23060u a = C23060u.m75742a();\n C7573i.m23582a((Object) a, \"CommonSharePrefCache.inst()\");\n a.mo60054X().mo59871a(optJSONObject.toString());\n C42961az.m136380a(new C29121a());\n } else {\n C23060u a2 = C23060u.m75742a();\n C7573i.m23582a((Object) a2, \"CommonSharePrefCache.inst()\");\n a2.mo60054X().mo59871a(\"\");\n }\n }\n }", "public Settings(){}", "public void createFromJSONString(String jsonData) throws JSONException {\n JSONObject placeJSON = new JSONObject(jsonData);\n\n // set id of place object\n this.setId(placeJSON.getString(\"_id\"));\n // set title of place object\n this.setTitle(placeJSON.getString(\"title\"));\n // set lat of place object\n this.setLat(placeJSON.getString(\"lat\"));\n // set lon of place object\n this.setLon(placeJSON.getString(\"lon\"));\n }", "public static void initialize() {\r\n\t\tjson = new JSONFile(filePath);\t\r\n\t}", "protected abstract JSONObject build();", "public static DayTraining newInstance(String json) {\n try {\n JSONObject root = new JSONObject(json);\n return new DayTraining.Builder()\n .setRunning( root.optInt(\"t1\"), root.optInt(\"t2\"), root.optInt(\"t3\"), root.optInt(\"t2_3\"), root.optInt(\"t1_3\"), root.optInt(\"ta\"), root.optInt(\"tt\"))\n .setBreathing(root.optInt(\"gx\"), root.optInt(\"gp\"),root.optInt(\"gd\"))\n .setTrainingInfo(root.optInt(\"id_athlete\"), root.optString(\"date\"), filterJsonTotalInput(root.optString(\"description\")), root.optInt(\"texniki\"), root.optInt(\"drastiriotita\"), root.optInt(\"time\"), root.optInt(\"number\"), root.optInt(\"id_race\"))\n .build();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static <T> T fromJson(String json, Class<T> type)\n {\n return g.fromJson(json, type);\n }", "public JSONModel(final String json) throws JSONException {\n jo = new JSONObject(json);\n }", "@POST\n @Consumes(\"application/x-www-form-urlencoded\")\n @Produces(MediaType.APPLICATION_JSON)\n public AtsConfiguration createConfig(MultivaluedMap<String, String> form, @Context UriInfo uriInfo);", "static TodoItem fromJsonObject(JsonObject json) {\n TodoItem item = new TodoItem();\n item.setId(json.get(\"id\") == null ? -1 : json.getInt(\"id\"));\n item.setDescription(json.get(\"description\") == null ? null : json.getString(\"description\"));\n item.setCreatedAt(json.get(\"createdAt\") == null ? null : OffsetDateTime.parse(json.getString(\"createdAt\")));\n item.setDone(json.get(\"done\") == null ? false : json.getBoolean(\"done\"));\n LOGGER.fine(()->\"fromJsonObject returns:\"+item);\n return item;\n }", "public static Builder createJson(String text) {\n return builder().setType(Type.TEXT_JSON).setText(text);\n }", "public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}", "public void loadJson(String json) throws Exception {\r\n\t\tsetJsonToken(SimpleJson.textToHashMap(json));\r\n\t}", "public void save(String json, Map<String,Object> properties);", "public WalletConfigsManager(String walletConfigsJson) {\n try {\n mWalletConfigsJson = new Gson().fromJson(walletConfigsJson, WalletConfigsJson.class);\n } catch (JsonSyntaxException e) {\n createEmptyWalletConfigsJson();\n }\n if (mWalletConfigsJson == null) {\n createEmptyWalletConfigsJson();\n }\n }", "public static LevelPack fromJson(String json) {\n\t\treturn Serializer.deserializeLevelPack(json);\n\t}", "Map<String, Object> createConfig(Request request, String configtype);", "@Override\n public void readSettings(Object settings) {\n ((WizardDescriptor) settings).putProperty(\"WizardPanel_image\", ImageUtilities.loadImage(\"net/phyloviz/core/TypingImage.png\", true));\n sDBName = (String) ((WizardDescriptor) settings).getProperty(\"dbName\");\n\t sDBNameShort = (String) ((WizardDescriptor) settings).getProperty(\"dbNameShort\");\n ((PubMLSTVisualPanel2) getComponent()).setDatabase(sDBNameShort, sDBName);\n tf = new MLSTypingFactory();\n }", "T fromJson(Object source);", "SettingType createSettingType();", "public static SenseiRequest fromJSON(JSONObject json)\n throws Exception\n {\n return fromJSON(json, null);\n }", "public static PiActorConfig createConfigFromJSON(BSONObject bson) {\n String name = (String) bson.get(\"name\");\n String location = (String) bson.get(\"location\");\n ArrayList<ActorAbility> abilities = new ArrayList<>();\n BasicBSONList abilityBson = (BasicBSONList) bson.get(\"abilities\");\n for (Object ability : abilityBson) {\n BSONObject bsonAbility = (BSONObject) ability;\n String abilityName = (String) bsonAbility.get(\"name\");\n int pinNum = (Integer) bsonAbility.get(\"gpio_pin\");\n Pin pin = RaspiPin.getPinByName(\"GPIO \" + pinNum);\n PinState pinState;\n String pinStateString = (String) bsonAbility.get(\"default_state\");\n if (pinStateString.equalsIgnoreCase(\"LOW\")) {\n pinState = PinState.LOW;\n } else {\n pinState = PinState.HIGH;\n }\n State state = State.valueOf((String) bsonAbility.get(\"state\"));\n ActorAbility aa = new ActorAbility(abilityName, pin, pinState, state);\n abilities.add(aa);\n }\n PiActorConfig toReturn = new PiActorConfig(name, location, null, abilities);\n return toReturn;\n }", "public <T> T fromJson(String json, Class<T> clazz) {\n return getGson().fromJson(json, clazz);\n }", "private App parseApp(JSONObject jsonObjet) {\n App yourApp = new App();\n addData(yourApp, jsonObjet);\n return yourApp;\n }", "@JsonCreator\n public static CreateMode fromString(String name) {\n return fromString(name, CreateMode.class);\n }", "<T> T fromJson(String source, Class<T> type);", "public <T> T fromJson(String json, Type type) {\n return getGson().fromJson(json, type);\n }", "void config(final JsonObject config);", "public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }", "Map<String, Object> parseToMap(String json);", "private void readFromJSON(String filename) {\n JSONParser parser = new JSONParser();\n\n try\n {\n Object obj = parser.parse(new FileReader(filename));\n JSONObject jsonObject = (JSONObject) obj;\n Menu drinks = getMenu(jsonObject, \"Drink\");\n Menu types = getMenu(jsonObject, \"Type\");\n Menu toppings = getMenu(jsonObject, \"Toppings\");\n Menu sizes = getMenu(jsonObject, \"Size\");\n menuMap.put(\"Drink\", drinks);\n menuMap.put(\"Size\", sizes);\n menuMap.put(\"Toppings\", toppings);\n menuMap.put(\"Type\", types);\n\n } catch (FileNotFoundException e) {\n System.out.println(\"Not found menu.json, exit now.\");\n System.exit(1);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tpublic void configure(JSONObject settings)\n\t{\n\t\tthrow new UnsupportedOperationException();\n\t}", "public static void main(String[] args) {\n String jsonString = \"{\\\"name\\\":\\\"Pourush\\\"}\";\n JsonObject jsonObject = new JsonObject(jsonString);\n jsonObject.put(\"location\",\"Utsav\");\n System.out.println(jsonObject);\n Myitem myitem = new Myitem();\n myitem.name = \"falanadhimkana\";\n myitem.description = \"some description\";\n jsonObject.put(\"Myitem\",jsonObject.mapFrom(myitem));\n System.out.println(jsonObject);\n }", "public MinecraftJson() {\n }", "public static JinyouTestOne fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, JinyouTestOne.class);\n }", "@Test\n public void providesSettings_normal() {\n String apiKey = \"apiKey\";\n String domainName = \"domainName\";\n\n JsonObject json = new JsonObject();\n json.addProperty(\"mailgunApiKey\", apiKey);\n json.addProperty(\"mailgunDomainName\", domainName);\n\n when(mockServletContext.getResourceAsStream(\"/WEB-INF/settings.json\"))\n .thenReturn(new ByteArrayInputStream(json.toString().getBytes()));\n\n Settings settings = module.providesSettings(mockServletContext);\n\n assertThat(settings.getMailgunApiKey()).isEqualTo(apiKey);\n assertThat(settings.getMailgunDomainName()).isEqualTo(domainName);\n }", "@Test\n public void testFactory() {\n System.out.println(\"factory\");\n\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n Setting s4 = Setting.getSetting(\"test1\");\n assertEquals(s3, s4);\n assertTrue(s3.getStype() == Setting.SETTING_TYPE.UND);\n\n String sn = s.getName();\n String s1n = s1.getName();\n String s2n = s2.getName();\n\n JSONObject ja1 = new JSONObject(s.toJSONString());\n Setting s5 = Setting.factory(ja1);\n s = Setting.factory(\"testname\", Setting.SETTING_TYPE.UND, \"junk\");\n String sstr = s.toString();\n\n assertEquals(\"testname:UND-junk\", sstr);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype. and still needs more work\");\n }", "public static Personagem fromJson(JSONObject json){\n Personagem personagem = new Personagem(\n json.getString(\"nome\"),\n json.getString(\"raca\"),\n json.getString(\"profissao\"),\n json.getInt(\"mana\"),\n json.getInt(\"ataque\"),\n json.getInt(\"ataqueMagico\"),\n json.getInt(\"defesa\"),\n json.getInt(\"defesaMagica\"),\n json.getInt(\"velocidade\"),\n json.getInt(\"destreza\"),\n json.getInt(\"experiencia\"),\n json.getInt(\"nivel\")\n\n );\n return personagem;\n }", "void fromJson(JsonStaxParser parser) throws SyntaxException, IOException;", "private void setConfiguration(JSONObject config) throws JSONException{\n\t\tif(config.has(\"api\")){\n\t\t\tJSONObject obj=config.getJSONObject(\"api\");\n\t\t\tif(obj.has(\"bind\")){\n\t\t\t\tbind=obj.getString(\"bind\");\n\t\t\t}\n\t\t\tif(obj.has(\"port\")){\n\t\t\t\tport=obj.getInt(\"port\");\n\t\t\t}\n\t\t}\n\t\tif(config.has(\"streams\")){\n\t\t\tJSONObject obj=config.getJSONObject(\"streams\");\n\t\t\tif(obj.has(\"port\")){\n\t\t\t\tstreamPort=obj.getInt(\"port\");\n\t\t\t}\n\t\t\tif(obj.has(\"host\")){\n\t\t\t\tstreamHost=obj.getString(\"host\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 2. Overlay environment variables\n\t\tMap<String,String>env=System.getenv();\n\t\tif(env.containsKey(\"BIND\")){\n\t\t\tbind=env.get(\"BIND\");\n\t\t}\n\t\tif(env.containsKey(\"PORT\")){\n\t\t\tport=Integer.parseInt(env.get(\"PORT\"));\n\t\t}\n\t\tif(env.containsKey(\"STREAMSHOST\")){\n\t\t\tstreamHost=env.get(\"STREAMSHOST\");\n\t\t}\n\t\tif(env.containsKey(\"STREAMSPORT\")){\n\t\t\tstreamPort=Integer.parseInt(env.get(\"STREAMSPORT\"));\n\t\t}\n\t}", "private Settings() {}", "public static RunState fromJson(String json, Map<String,Flow> flows) {\n JsonObject obj = JsonUtils.getGson().fromJson(json, JsonObject.class);\n Flow.DeserializationContext context = new Flow.DeserializationContext(flows);\n\n RunState run = new RunState(\n Org.fromJson(obj.get(\"org\")),\n JsonUtils.fromJsonArray(obj.get(\"fields\").getAsJsonArray(), null, Field.class),\n Contact.fromJson(obj.get(\"contact\")),\n flows\n );\n\n // load up our active flows\n List<String> flowUuids = JsonUtils.fromJsonArray(obj.get(\"active_flows\").getAsJsonArray(), null, String.class);\n List<Flow> activeFlows = new ArrayList<>();\n for (String flowUuid : flowUuids) {\n activeFlows.add(flows.get(flowUuid));\n }\n\n run.m_started = ExpressionUtils.parseJsonDate(JsonUtils.getAsString(obj, \"started\"));\n run.m_steps = JsonUtils.fromJsonArray(obj.get(\"steps\").getAsJsonArray(), context, Step.class);\n run.m_values = JsonUtils.fromJsonObjectArray(obj.get(\"values\").getAsJsonArray(), null, Value.class);\n run.m_extra = JsonUtils.fromJsonObject(obj.get(\"extra\").getAsJsonObject(), null, String.class);\n run.m_state = State.valueOf(obj.get(\"state\").getAsString().toUpperCase());\n run.m_level = obj.get(\"level\").getAsInt();\n run.m_suspendedSteps = JsonUtils.fromJsonArray(obj.get(\"suspended_steps\").getAsJsonArray(), context, Step.class);\n run.m_activeFlows = activeFlows;\n\n return run;\n }", "abstract public Config createConfigFromString(String data);", "protected void init(JSONObject json) throws EInvalidData {\n\t\ttry {\n\t\t\t_id = json.getString(\"id\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No id found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_name = json.getString(\"name\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No name found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_created_at = new Date(json.getLong(\"created_at\") * 1000);\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No created_at found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_status = json.getString(\"status\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No status found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_hash_type = json.getString(\"hash_type\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No hash_type found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_hash = json.getString(\"hash\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No hash found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_last_request = new Date(json.getLong(\"last_request\") * 1000);\n\t\t} catch (JSONException e) {\n\t\t\t_last_request = null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_last_success = new Date(json.getLong(\"last_success\") * 1000);\n\t\t} catch (JSONException e) {\n\t\t\t_last_success = null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_output_type = json.getString(\"output_type\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No output_type found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_output_params.clear();\n\t\t\t_output_params.parse(json.getJSONObject(\"output_params\"));\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No valid output_params found\");\n\t\t}\n\t}", "public GenericSettingsController(Class<T> settingsClass, String settingsFileName) {\n this.settingsClass = settingsClass;\n this.settingsFileName = settingsFileName;\n gsonObject = new GsonBuilder().setPrettyPrinting().create();\n }", "public static TemplateDataSource fromJSON(JSONObject jsonObj) throws IllegalArgumentException {\n try {\n if (!jsonObj.optString(\"_type\", \"TemplateDataSource\").equals(\"TemplateDataSource\")) {\n throw new IllegalArgumentException(\"jsonObj does not represent a TemplateDataSource.\");\n }\n \n TemplateDataSource output = new TemplateDataSource();\n \n @SuppressWarnings(\"unchecked\")\n Set<String> keySet = jsonObj.keySet();\n keySet.stream()\n .filter( key -> !key.equals(\"_type\") && !key.equals(\"parentTemplate\") )\n .forEach( key -> {\n try {\n output.put(key, Path.fromJSON(jsonObj.get(key)));\n } catch (IllegalArgumentException | JSONException e) {\n // silently ignore exceptions, but log the exception\n e.printStackTrace();\n }\n });\n return output;\n } catch (JSONException e) {\n throw new IllegalArgumentException(\"Could not parse JSON as a TemplateDataSource.\", e);\n }\n }", "private void setUserDataFromJson(JSONObject jsonObject) { \n\t\tlogger.debug(\"creating UserData Object from json file \" + fileName);\n\t\t/* \n\t\t * JSON Structure\n\t\t * {\n\t\t * \t\"objectStatus\":\"fail\",\n\t\t * \t\"domain\":\"null\",\n\t\t * \t\"customer\":\"null\",\n\t\t * \t\"sn_id\":\"CC\",\n\t\t * \t\"user_id\":\"9\",\n\t\t * \t\"userName\":\"Cortal_Consors\",\n\t\t * \t\"nickName\":\"Cortal_Consors\",\n\t\t * \t\"postingsCount\":\"0\",\n\t\t * \t\"favoritesCount\":\"0\",\n\t\t * \t\"friends\":\"0\",\n\t\t * \t\"follower\":\"0\",\n\t\t * \t\"userLang\":null,\n\t\t * \t\"listsAndGroupsCount\":\"0\",\n\t\t * \t\"geoLocation\":\"\"\n\t\t * }\n\t\t */\n\t\tif (jsonObject.get(\"domain\") != null) {\n\t\t\tlogger.trace(\" domain\\t\"+jsonObject.get(\"domain\").toString());\n\t\t\tuData.setDomain((String) jsonObject.get(\"domain\"));\n\t\t}\n\t\tif (jsonObject.get(\"customer\") != null) {\n\t\t\tlogger.trace(\" customer\\t\"+jsonObject.get(\"customer\").toString());\n\t\t\tuData.setCustomer((String) jsonObject.get(\"customer\"));\n\t\t}\n\t\tif (jsonObject.get(\"objectStatus\") != null) {\n\t\t\tlogger.trace(\" objectStatus\\t\"+jsonObject.get(\"objectStatus\").toString());\n\t\t\tuData.setObjectStatus((String) jsonObject.get(\"objectStatus\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"sn_id\") != null) {\n\t\t\tlogger.trace(\" sn_id\\t\"+jsonObject.get(\"sn_id\").toString());\n\t\t\tuData.setSnId((String) jsonObject.get(\"sn_id\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"id\") == null) {\n\t\t\tlogger.trace(\" user_id\\t\"+jsonObject.get(\"user_id\").toString());\n\t\t\tuData.setId((String) jsonObject.get(\"user_id\"));\n\t\t} else {\n\t\t\tlogger.trace(\" id\\t\"+jsonObject.get(\"id\").toString());\n\t\t\tuData.setId((String) jsonObject.get(\"id\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"userName\") != null) {\n\t\t\tlogger.trace(\" userName\\t\"+jsonObject.get(\"userName\").toString());\n\t\t\tuData.setUserName((String) jsonObject.get(\"userName\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"nickName\") != null) {\n\t\t\tlogger.trace(\" nickName\\t\"+jsonObject.get(\"nickName\").toString());\n\t\t\tuData.setScreenName((String) jsonObject.get(\"nickName\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"userLang\") != null) {\n\t\t\tlogger.trace(\" userLang\\t\"+jsonObject.get(\"userLang\").hashCode());\n\t\t\tuData.setLang((String) jsonObject.get(\"userLang\"));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"follower\") != null) {\n\t\t\tlogger.trace(\" follower\\t\"+Long.parseLong(jsonObject.get(\"follower\").toString()));\n\t\t\tuData.setFollowersCount(Long.parseLong(jsonObject.get(\"follower\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"friends\") != null) {\n\t\t\tlogger.trace(\" friends\\t\"+Long.parseLong(jsonObject.get(\"friends\").toString()));\n\t\t\tuData.setFriendsCount(Long.parseLong(jsonObject.get(\"friends\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"postingsCount\") != null) {\n\t\t\tlogger.trace(\" postingsCount\\t\"+Long.parseLong(jsonObject.get(\"postingsCount\").toString()));\n\t\t\tuData.setPostingsCount(Long.parseLong(jsonObject.get(\"postingsCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"favoritesCount\") != null) {\n\t\t\tlogger.trace(\" favoritesCount\\t\"+Long.parseLong(jsonObject.get(\"favoritesCount\").toString()));\n\t\t\tuData.setFavoritesCount(Long.parseLong(jsonObject.get(\"favoritesCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"listsAndGroupsCount\") != null) {\n\t\t\tlogger.trace(\" listsAndGroupsCount\\t\"+Long.parseLong(jsonObject.get(\"listsAndGroupsCount\").toString()));\n\t\t\tuData.setListsAndGroupsCount(Long.parseLong(jsonObject.get(\"listsAndGroupsCount\").toString()));\n\t\t}\n\t\t\n\t\tif (jsonObject.get(\"geoLocation\") != null) {\n\t\t\tlogger.trace(\" geoLocation\\t\"+jsonObject.get(\"geoLocation\"));\n\t\t\tuData.setGeoLocation((String) jsonObject.get(\"geoLocation\"));\n\t\t}\n\t}", "static JarCollectorConfigImpl createJarCollectorConfig(Map<String, Object> settings) {\n if (settings == null) {\n settings = Collections.emptyMap();\n }\n return new JarCollectorConfigImpl(settings);\n }", "@Test\n public void testToJSONString() {\n System.out.println(\"toJSONString\");\n Setting s = Setting.factory();\n s.setStype(Setting.SETTING_TYPE.TPATH);\n s.setName(\"mytest\");\n String userFile = System.getProperty(\"user.dir\");\n\n s.setValue(Paths.get(userFile));\n String jResult = s.toJSONString();\n String jExpected = \"{\\\"stype\\\":\\\"TPATH\\\",\\\"name\\\":\\\"mytest\\\",\\\"value\\\":\\\"J:\\\\\\\\Java\\\\\\\\DBCUtilLib\\\"}\";\n assertEquals(jExpected, jResult);\n\n s.setValue(Setting.SETTING_TYPE.TPATH, Paths.get(userFile));\n jResult = s.toJSONString();\n assertEquals(jExpected, jResult);\n\n }", "private static void manageGameConfigFile(File configFile) {\n Gson gson = new Gson();\n try {\n GameConfig.setInstance(gson.fromJson(new FileReader(configFile), GameConfig.class));\n } catch (FileNotFoundException e) {\n LogUtils.error(\"FileNotFoundException => \", e);\n }\n }", "private JsonUtils() {}", "private void initUserSetting() {\n\n List<String> instantly = new ArrayList<String>();\n instantly.add(PostActivityPlugin.ID);\n instantly.add(ActivityCommentPlugin.ID);\n instantly.add(ActivityMentionPlugin.ID);\n instantly.add(LikePlugin.ID);\n instantly.add(RequestJoinSpacePlugin.ID);\n instantly.add(SpaceInvitationPlugin.ID);\n instantly.add(RelationshipReceivedRequestPlugin.ID);\n instantly.add(PostActivitySpaceStreamPlugin.ID);\n \n List<String> daily = new ArrayList<String>();\n daily.add(PostActivityPlugin.ID);\n daily.add(ActivityCommentPlugin.ID);\n daily.add(ActivityMentionPlugin.ID);\n daily.add(LikePlugin.ID);\n daily.add(RequestJoinSpacePlugin.ID);\n daily.add(SpaceInvitationPlugin.ID);\n daily.add(RelationshipReceivedRequestPlugin.ID);\n daily.add(PostActivitySpaceStreamPlugin.ID);\n daily.add(NewUserPlugin.ID);\n \n List<String> weekly = new ArrayList<String>();\n weekly.add(PostActivityPlugin.ID);\n weekly.add(ActivityCommentPlugin.ID);\n weekly.add(ActivityMentionPlugin.ID);\n weekly.add(LikePlugin.ID);\n weekly.add(RequestJoinSpacePlugin.ID);\n weekly.add(SpaceInvitationPlugin.ID);\n weekly.add(RelationshipReceivedRequestPlugin.ID);\n weekly.add(PostActivitySpaceStreamPlugin.ID);\n \n List<String> webNotifs = new ArrayList<String>();\n webNotifs.add(NewUserPlugin.ID);\n webNotifs.add(PostActivityPlugin.ID);\n webNotifs.add(ActivityCommentPlugin.ID);\n webNotifs.add(ActivityMentionPlugin.ID);\n webNotifs.add(LikePlugin.ID);\n webNotifs.add(RequestJoinSpacePlugin.ID);\n webNotifs.add(SpaceInvitationPlugin.ID);\n webNotifs.add(RelationshipReceivedRequestPlugin.ID);\n webNotifs.add(PostActivitySpaceStreamPlugin.ID);\n \n // root\n saveSetting(instantly, daily, weekly, webNotifs, rootIdentity.getRemoteId());\n\n // mary\n saveSetting(instantly, daily, weekly, webNotifs, maryIdentity.getRemoteId());\n\n // john\n saveSetting(instantly, daily, weekly, webNotifs, johnIdentity.getRemoteId());\n\n // demo\n saveSetting(instantly, daily, weekly, webNotifs, demoIdentity.getRemoteId());\n }", "private void setupJsonAdapter(RestAdapter.Builder builder) {\n Gson gson = new GsonBuilder()\n .setExclusionStrategies(new ExclusionStrategy() {\n @Override\n public boolean shouldSkipField(FieldAttributes f) {\n return false;\n }\n\n @Override\n public boolean shouldSkipClass(Class<?> clazz) {\n return false;\n }\n })\n .excludeFieldsWithoutExposeAnnotation()\n .registerTypeAdapterFactory(new ItemTypeAdapterFactory())\n .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)\n .create();\n\n builder.setConverter(new GsonConverter(gson));\n }", "public static UserProfile fromJson(String jsonString) {\n final GsonBuilder builder = new GsonBuilder();\n builder.excludeFieldsWithoutExposeAnnotation();\n builder.setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n final Gson gson = builder.create();\n return gson.fromJson(jsonString, UserProfile.class);\n }", "public static ArticleInfo fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, ArticleInfo.class);\n }", "<T> T fromJson(String source, JavaType type);", "public JsonFactory() { this(null); }", "void setup(Map<String, Object> cfg);", "public JSONLoader() {}", "private static JSONTile parse(String configFile) {\n Gson gson = new Gson();\n\n try (BufferedReader reader = new BufferedReader(\n new InputStreamReader(new FileInputStream(configFile), StandardCharsets.UTF_8))) {\n return gson.fromJson(reader, JSONTile.class);\n } catch (IOException e) {\n throw new IllegalArgumentException(\"Error when reading file: \" + configFile, e);\n }\n }", "private static void saveJsonFile() {\n Log.println(Log.INFO, \"FileAccessing\", \"Writing settings file.\");\n JsonObject toSave = new JsonObject();\n JsonArray mappingControls = new JsonArray();\n for (int i = 0; i < TaskDetail.actionToTask.size(); i++) {\n JsonObject individualMapping = new JsonObject();\n TaskDetail detail = TaskDetail.actionToTask.valueAt(i);\n byte combinedAction = (byte) TaskDetail.actionToTask.keyAt(i);\n assert detail != null;\n int outerControl = detail.getTask();\n individualMapping.addProperty(\"combinedAction\", combinedAction);\n individualMapping.addProperty(\"task\", outerControl);\n mappingControls.add(individualMapping);\n }\n toSave.add(\"mappingControls\", mappingControls);\n\n JsonArray generalSettings = new JsonArray();\n for (SettingDetail setting : SettingDetail.settingDetails) {\n JsonObject individualSetting = new JsonObject();\n int status = setting.getCurrentIdx();\n individualSetting.addProperty(\"status\", status);\n generalSettings.add(individualSetting);\n }\n toSave.add(\"generalSettings\", generalSettings);\n\n JsonArray deviceList = new JsonArray();\n for (DeviceDetail device : DeviceDetail.deviceDetails) {\n JsonObject individualDevice = new JsonObject();\n individualDevice.addProperty(\"name\", device.deviceName);\n individualDevice.addProperty(\"mac\", device.macAddress);\n deviceList.add(individualDevice);\n }\n toSave.add(\"devices\", deviceList);\n\n JsonArray sensitivityList = new JsonArray();\n for (SensitivitySetting sensitivity : SensitivitySetting.sensitivitySettings) {\n JsonObject individualSensitivity = new JsonObject();\n individualSensitivity.addProperty(\"factor\", sensitivity.multiplicativeFactor);\n individualSensitivity.addProperty(\"sensitivity\", sensitivity.sensitivity);\n sensitivityList.add(individualSensitivity);\n }\n toSave.add(\"sensitivities\", sensitivityList);\n\n toSave.addProperty(\"currentlySelected\", DeviceDetail.getIndexSelected());\n\n try {\n FileOutputStream outputStreamWriter = context.openFileOutput(\"settingDetails.json\", Context.MODE_PRIVATE);\n outputStreamWriter.write(toSave.toString().getBytes());\n outputStreamWriter.close();\n } catch (IOException e) {\n Log.println(Log.ERROR, \"FileAccessing\", \"Settings file writing error.\");\n }\n }", "private static ConfigImpl loadJson(Path path) throws IOException {\n final ConfigImpl ret;\n try (FileInputStream stream = new FileInputStream(path.toFile())) {\n try (InputStreamReader reader = new InputStreamReader(stream, UTF_8)) {\n ret = loadJson(reader);\n }\n }\n return ret;\n }", "private Settings() { }", "public PreferenceModel buildPreferenceModel(JSONObject jsonObject, String type){\n try{\n PreferenceModel preferenceModel = new PreferenceModel();\n preferenceModel.setType(type);\n preferenceModel.setId(jsonObject.getString(\"id\"));\n preferenceModel.setName(jsonObject.getString(\"name\"));\n return preferenceModel;\n }catch (Exception e){\n EmailHelper emailHelper = new EmailHelper(context, EmailHelper.TECH_SUPPORT, \"Error: ModelHelper\", e.getMessage() + \"\\n\" + StringHelper.convertStackTrace(e));\n emailHelper.sendEmail();\n }\n return new PreferenceModel();\n }", "void init(JsonObject config) {\n // variable in the config\n name = config.getString(\"name\");\n Objects.requireNonNull(name);\n symbol = config.getString(\"symbol\", name);\n stocks = config.getInteger(\"volume\", 10000); // volume in the config\n price = config.getDouble(\"price\", 100.0);\n variation = config.getInteger(\"variation\", 100);\n\n // variable not in the config -- update every 3 seconds\n period = config.getLong(\"period\", 3000L);\n\n value = price;\n ask = price + random.nextInt(variation / 2);\n bid = price + random.nextInt(variation / 2);\n\n share = stocks / 2;\n }", "public TestRunJsonParser(){\n }", "public void init(Map<String, String> configuration);", "public static <T> T fromJSON(final String json, final Class<T> clazz) {\n return gson.fromJson(json, clazz);\n }", "private DatasetJsonConversion() {}", "public static Config createConfig(String path) throws FileNotFoundException {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n BufferedReader br = new BufferedReader(new FileReader(path));\n\n Config saps = gson.fromJson(br, Config.class);\n return saps;\n }", "public static JSONObject saveStringToJSONObject(final String json) {\n JSONObject jsonObject = null;\n try {\n jsonObject = new JSONObject(json);\n } catch (final JSONException e) {\n Log.e(TAG, \"\" + e.getMessage());\n }\n return jsonObject;\n }", "@Override\n public Object convertJsonToObject(String content) {\n try {\n Map<String, EventDataValue> data = reader.readValue(content);\n\n return convertEventDataValuesMapIntoSet(data);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }", "public static Tweet fromJSON(JSONObject jsonObject) throws JSONException{\n Tweet tweet = new Tweet();\n\n //extract the values from JSON\n tweet.body = jsonObject.getString(\"text\");\n tweet.uid = jsonObject.getLong(\"id\");\n tweet.createdAt = jsonObject.getString(\"created_at\");\n tweet.user = User.fromJSON(jsonObject.getJSONObject(\"user\"));\n tweet.tweetId = Long.parseLong(jsonObject.getString(\"id_str\"));\n //tweet.extendedEntities = ExtendedEntities.fromJSON\n return tweet;\n\n }", "@Override\n public void parse(String json) {\n JSONObject object = new JSONObject(json);\n id = object.getInt(\"dataset id\");\n name = object.getString(\"dataset name\");\n maxNumOfLabels = object.getInt(\"maximum number of labels per instance\");\n\n JSONArray labelsJSON = object.getJSONArray(\"class labels\");\n labels = new ArrayList<>();\n for (int i = 0; i < labelsJSON.length(); i++) {\n labels.add(new Label(labelsJSON.getJSONObject(i).toString()));\n }\n\n JSONArray instancesJSON = object.getJSONArray(\"instances\");\n instances = new ArrayList<>();\n for (int i = 0; i < instancesJSON.length(); i++) {\n instances.add(new Instance(instancesJSON.getJSONObject(i).toString()));\n }\n }", "Gist deserializeGistFromJson(String json);" ]
[ "0.6447319", "0.61033857", "0.5896982", "0.570792", "0.5693651", "0.5640517", "0.5611703", "0.56070125", "0.5488718", "0.5439452", "0.5434114", "0.54188234", "0.5418352", "0.54178494", "0.538445", "0.53479874", "0.5344527", "0.53313375", "0.53105277", "0.5301139", "0.53004456", "0.5208606", "0.5198483", "0.5187638", "0.518271", "0.51647127", "0.5144127", "0.51396084", "0.5127911", "0.51014465", "0.5088112", "0.508272", "0.5075335", "0.506751", "0.5050756", "0.5048227", "0.50305414", "0.50255686", "0.50190663", "0.5014998", "0.5001898", "0.49995947", "0.49969676", "0.4995366", "0.49880385", "0.49867034", "0.4983603", "0.4971992", "0.49577042", "0.49531212", "0.49380845", "0.49218318", "0.49051777", "0.49000654", "0.4889183", "0.48887265", "0.4865032", "0.48616987", "0.4851928", "0.48478672", "0.484022", "0.48386708", "0.48367137", "0.48289073", "0.48274416", "0.48263562", "0.48258525", "0.48256922", "0.48240104", "0.4823772", "0.48204693", "0.47964185", "0.47891724", "0.47778982", "0.47764128", "0.47669047", "0.47647402", "0.47628674", "0.4759654", "0.47561148", "0.4751163", "0.4743151", "0.47369984", "0.4733803", "0.4730333", "0.47263545", "0.47259593", "0.4723589", "0.4721729", "0.4710343", "0.4707595", "0.47042352", "0.47019053", "0.46990508", "0.46986294", "0.46961278", "0.46956235", "0.46943218", "0.46854597", "0.4681553" ]
0.55119485
8
Set the size of the cache. After reaching the max size, new elements will replace the oldest one.
HandlebarsKnotOptions setCacheSize(Long cacheSize) { this.cacheSize = cacheSize; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setSizeToCache(int sizeToCache) {\n\t\t\n\t}", "private void growSize() {\n size++;\n\n if (size > maxSize) {\n if (keys.length == Integer.MAX_VALUE) {\n throw new IllegalStateException(\"Max capacity reached at size=\" + size);\n }\n\n // Double the capacity.\n rehash(keys.length << 1);\n }\n }", "@Override\n public void setMaxSize(int maxSize){\n if (maxSize < 0){\n throw new IllegalArgumentException(\"Memory cache size must not be negative\");\n }\n\n this.maxSize = maxSize;\n\n if (maxSize == 0){\n // unlimited cache size\n return;\n }\n\n int cacheSize = this.size();\n if (cacheSize > maxSize){\n // max cache size is less than current cache size\n // delete all object that are out of bound\n ArrayList<K> cacheObjects = new ArrayList<>(this.cache.keySet());\n for (int i = maxSize; i < cacheSize; i++){\n this.delete(cacheObjects.get(i));\n }\n }\n }", "void setMaximumCacheSize(int maximumCacheSize);", "public void setCacheSize(int size) {\n\t\t_cacheSize = size;\n\t}", "public synchronized void updateMaxSize(int maxSize) {\n setMaxSize(maxSize);\n }", "private void setMaxCacheMemSize(long maxSize) {\n\t\tif ( maxSize < 25 * 1024 ) {\n\t\t\tthrow new IllegalAccessError(\"Cache size must be at least 25 KB (\"+(25*1024)+\" bytes)\");\n\t\t}\n\t\tlog.info(\"setCacheSize(): New cache size: \"+maxSize+\" bytes.\");\n\t\tfinal boolean shrink = this.maxSize > maxSize;\n\t\tthis.maxSize = maxSize;\n\t\tif ( shrink ) {\n\t\t\tpurgeCache(true);\n\t\t}\n\t}", "public void setMaxCacheEntrySize(int val) {\n this.mMaxCacheEntrySize = val;\n }", "public void shrinkCacheToMaximumSize() {\n while (this.cacheSize > this.maximumCacheSize) {\n getNodeFromCache();\n }\n }", "public void setMaxSize(int size) {\n maxSize = size;\n while (size() > maxSize) {\n remove(0);\n }\n }", "public void setMaxCacheEntries(int val) {\n this.mMaxCacheEntries = val;\n }", "protected void setMaxSize(int size) {\n maxSize = size;\n }", "public Cache(int size) {\r\n\t\t\r\n\t\tcache = new LinkedList<T>();\r\n\t\tmaxStorage = size;\r\n\t}", "public void setSize(long value) {\n this.size = value;\n }", "public void setMaximumCacheSize(int i) {\n this.maximumCacheSize = i;\n shrinkCacheToMaximumSize();\n }", "public void setSize(int size) {\n\t\tif (size < 0) {\n\t\t throw new IllegalArgumentException(\"Log cache size can't be negative\");\n\t\t}\n\t\tint delta = this.size - size;\n\t\tthis.size = size;\n\t\tif (delta <= 0) {\n\t\t return;\n\t\t}\n\t\tif (messages.size() < size) {\n\t\t return;\n\t\t}\n\t\twhile (delta-- > 0) {\n\t\t messages.removeFirst();\n\t\t}\n\t}", "public void setLocalSize(int size);", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "public void setMaxSize(int size) {\n if (initialized)\n throw new IllegalStateException(INITIALIZED);\n maxSize = size;\n if (maxSize != 0 && minSize > maxSize) {\n minSize = maxSize;\n log.warn(\"pool min size set to \" + minSize + \" to stay <= max size\");\n }\n }", "public void increaseSize() {\n Estimate[] newQueue = new Estimate[queue.length * 2];\n\n for (int i = 0; i < queue.length; i++) {\n newQueue[i] = queue[i];\n }\n\n queue = newQueue;\n }", "public void setMaxSize(int maxSize) {\n this.maxSize = maxSize;\n }", "public void setSize(int value) {\n\t\tthis.size = value;\n\t}", "public static native void setMaxCache(int max);", "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}", "public TransactionBuilder setCacheSize(long size);", "public void setMaxMemoryCacheSize(int val) {\n this.mMaxMemoryCacheSize = val;\n }", "public Cache(Integer size) {\n this.size = size;\n recentlyUsed = new ArrayList<K>();\n cache = new HashMap<>();\n }", "@Override\n public boolean put(CacheObject<K, V> cacheObject){\n K key = cacheObject.getKey();\n if ((this.maxSize > 0) && !this.cache.containsKey(key) && (this.cache.size() == this.maxSize)){\n // if add new element than exceed maximum limit\n return false;\n }\n\n this.cache.put(key, cacheObject);\n\n return true;\n }", "public void setListSize(int value) {\n this.listSize = value;\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "public void setMaxSize(int c) {\n maxSize = c;\n }", "public Builder setMaxSize(int value) {\n \n maxSize_ = value;\n onChanged();\n return this;\n }", "private void grow() {\n final int new_size = Math.min(size * 2, Const.MAX_TIMESPAN);\n if (new_size == size) {\n throw new AssertionError(\"Can't grow \" + this + \" larger than \" + size);\n }\n values = Arrays.copyOf(values, new_size);\n qualifiers = Arrays.copyOf(qualifiers, new_size);\n }", "public LRUMap(int maximumSize){\n\t\tsuper(maximumSize+1,0.75f,true);\n\t\tthis.maximumSize = maximumSize;\n\t}", "public FifoUniqueKeyCachedStorage(int size, String hostname, int port) {\n super(hostname, port);\n cacheSize = size;\n cacheMap = new LinkedHashMap<String, String>(size, 0.75f, false) {\n\n @Override\n protected boolean removeEldestEntry(Map.Entry<String, String> eldest) {\n return (size() > cacheSize);\n }\n };\n }", "public static void setDiskCacheSize(long size) {\n sDiskCacheSize = size;\n }", "private void resize(int max) {\n Item[] temp = (Item[]) new Object[max];\n for (int i = 0; i < N; i++)\n temp[i] = s[i+first];\n first = 0;\n s = temp;\n }", "@Override\n public boolean put(K key, V object){\n if ((this.maxSize > 0) && !this.cache.containsKey(key) && (this.cache.size() == this.maxSize)){\n // if add new element than exceed maximum limit\n return false;\n }\n\n CacheObject<K, V> cacheObject = new CacheObject<>(key, object);\n this.cache.put(key, cacheObject);\n\n return true;\n }", "private void enlargeCapacity() {\n Object[] tmp = this.container;\n this.container = new Object[this.container.length + this.capacity];\n System.arraycopy(tmp, 0, this.container, 0, tmp.length);\n }", "public void setCacheMaxSizeKB(int maxSizeKB) {\n cacheHandler.setMaxCacheSizeKB(maxSizeKB);\n resetChain();\n }", "public void setSize(int size) {\n\t members = size;\n\t}", "public void resize( final AtomicInteger _newMaxMessageSize ) {\n\n // if we're asking for a smaller (or same) sized buffer, just leave...\n int newMaxMessageSize = _newMaxMessageSize.get();\n if( newMaxMessageSize <= maxMessageSize ) return;\n\n // allocate new buffer of the right size...\n maxMessageSize = newMaxMessageSize;\n ByteBuffer newBuffer = allocateBuffer();\n\n // copy any bytes we already have into the new one...\n newBuffer.put( buffer );\n newBuffer.flip();\n buffer = newBuffer;\n }", "public void setSize(int _size)\r\n {\r\n size = _size;\r\n }", "public void initialize(int size) {\n setMaxSize(size);\n }", "public void setSize(int size) {\r\n _size = size;\r\n }", "private void resize(int newCapacity){\n ArrayList<ArrayList<Entry>> newBuckets = new ArrayList<>();\n for (int i = 0; i < newCapacity; i++) {\n newBuckets.add(new ArrayList<>());\n }\n\n for(K key:this){\n int newIndex=reduce(key,newCapacity);\n newBuckets.get(newIndex).add(new Entry(key,get(key)));\n\n }\n\n buckets=newBuckets;\n numBuckets=newCapacity;\n\n }", "public void setSize(Integer size) {\n this.size = size;\n }", "public void setCapacity( int space ) {\n\t if (space <= length) return;\n\t int newLength = resize.computeResize( length, space );\n\t \n if (newLength != length) {\n list = (newLength == 0) ? null : makeList( newLength );\n }\n\t}", "private void resize() {\r\n capacity = capacity*2;\r\n IDictionary<K, V>[] temp = chains;\r\n chains = makeArrayOfChains(capacity);\r\n for (int i = 0; i < capacity/2; i++) {\r\n if (temp[i]!=null) {\r\n IDictionary<K, V> each = temp[i];\r\n for (KVPair<K, V> element: each) {\r\n putKV(element);\r\n load--;\r\n }\r\n }\r\n }\r\n \r\n }", "public void set_size(int s);", "void resize() {\n capacity = array.size();\n }", "public void setMaxsize(int maxsize) {\n\t\tthrow new UnsupportedOperationException(\"readonly\");\n\t}", "public void setMaxEvictionQueueEntries(int val) {\n this.mMaxEvictionQueueEntries = val;\n }", "public void setSize(int size){\n this.size = size;\n }", "private void queueResize() {\n queue = Arrays.copyOf(queue, queue.length + 1);\n }", "public void setCapacity(int capacity) \n {\n this.capacity = capacity;\n }", "@Override\n\tpublic void setBufferSize(int size) {\n\t}", "public Builder setMaxDiskCacheSize(int val) {\n mMaxDiskCacheSize = val;\n return this;\n }", "private void resize() {\n Object[] newQueue = new Object[(int) (queue.length * 1.75)];\n System.arraycopy(queue, startPos, newQueue, 0, queue.length - startPos);\n\n currentPos = queue.length - startPos;\n startPos = 0;\n queue = newQueue;\n\n }", "public void setSize(int size) {\n\t\t _size = size;\n\t}", "public void setSize(int size) {\n\t\tdist = new double[size];\n\t\tprev = new Node[size];\n\t\tready = new boolean[size];\n\t}", "void resize(int newSize);", "public void setSize(int size) {\r\n this.size = size;\r\n }", "private void grow() {\n int growSize = size + (size<<1);\n array = Arrays.copyOf(array, growSize);\n }", "public void setMaxCapacity(int max) {\n\t\tbuffer = new Object[max];\n\t\tbufferSize = 0;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void resize(int newSize){\n\t\tif(newSize > max){\n\t\t\tnewSize = max;\n\t\t}\n\t\tT[] newData = (T[])new Object[newSize];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tnewData[i] = data[i];\n\t\t}\n\t\tdata = newData;\n\t}", "public LRUCache(int maxCapacity) {\n super(16, DEFAULT_LOAD_FACTOR, true);\n this.maxCapacity = maxCapacity;\n }", "private void setMemorySize() { }", "public void setCapacity(int value) {\n this.capacity = value;\n }", "public void setSize(int newSize);", "public void setSize(int newSize);", "@SuppressWarnings(\"unchecked\")\n private void resize() {\n int newCap = Math.max(capacity*2, DEFAULT_CAP);\n if(size < list.length) return;\n \n Object[] temp = new Object[newCap];\n for(int i = 0; i < list.length; i++) {\n temp[i] = list[i];\n }\n list = (E[])temp;\n capacity = newCap;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void increaseCapacity()\r\n\t{\r\n\t\t// Store a reference to the old table\r\n\t\tHashEntry<K, V>[] oldTable = table;\r\n\r\n\t\t// Attempt to resize the table\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Make a new table full of empty entries\r\n\t\t\ttable = new HashEntry[SIZES[++sizeIdx]];\r\n\t\t}\r\n\t\t// We have too many entries in the hash table: no more sizes left\r\n\t\tcatch (ArrayIndexOutOfBoundsException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Too many entries in hash table. Exiting.\");\r\n\t\t\tSystem.exit(4);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < oldTable.length; ++i)\r\n\t\t{\r\n\t\t\t// If we are at an entry with a key and value\r\n\t\t\tif (oldTable[i] != null && !oldTable[i].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Add every value at that key to the bigger table\r\n\t\t\t\tfor (V value : oldTable[i].value)\r\n\t\t\t\t{\r\n\t\t\t\t\tinsert(oldTable[i].key, value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void initializeCache(int cacheSize){\n \t\tlruCache = new LRUCache(cacheSize);\n \t}", "public Builder setMaximumCapacity(int value) {\n \n maximumCapacity_ = value;\n onChanged();\n return this;\n }", "public void _increaseTableSize(){\n\t\tNode[] largerBuckets = new Node[_numBuckets * 2 + 1];\r\n\t\tNode[] oldBuckets = _buckets;\r\n\t\t_buckets = largerBuckets;\r\n\t\t_numBuckets = _numBuckets * 2 + 1;\r\n\t\t_count = 0;\r\n\t\t_loadFactor = 0.0;\r\n\t\tint i = 0;\r\n\t\tfor(Node eachNode : oldBuckets){\r\n\t\t\t_buckets[i] = eachNode;\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public void setCount() {\n\t\tLinkedListIterator iter = new LinkedListIterator(this.head);\n\t\tint currentSize = 1;\n\t\twhile (iter.hasNext()) {\n\t\t\titer.next();\n\t\t\tcurrentSize++;\n\t\t}\n\t\tthis.size = currentSize;\n\t}", "public void setSize(int size) {\n this.size = size;\n }", "public void setSize(int size) {\n this.size = size;\n }", "public void setCapacity(int capacity) {\r\n\r\n this.capacity = capacity;\r\n }", "@Override\n public void setAEBufferSize(int size) {\n if (size < 1000 || size > 1000000) {\n log.warning(\"ignoring unreasonable aeBufferSize of \" + size + \", choose a more reasonable size between 1000 and 1000000\");\n return;\n }\n this.aeBufferSize = size;\n prefs.putInt(\"CypressFX2.aeBufferSize\", aeBufferSize);\n }", "@Override\n public int getCacheSize() {\n return 4 + this.arraySet.getTotalBytesSize();\n }", "public LRUCache(final int cacheSizeValue) {\n\t\tthis.cacheSize = cacheSizeValue;\n\t\tint hashTableCapacity = (int) Math.ceil(cacheSizeValue\n\t\t\t\t/ HASH_TABLE_LOAD_FACTOR) + 1;\n\t\tmap = new LinkedHashMap<K, V>(hashTableCapacity,\n\t\t\t\tHASH_TABLE_LOAD_FACTOR, true) {\n\t\t\t// (an anonymous inner class)\n\t\t\tprivate static final long serialVersionUID = 1;\n\n\t\t\t@Override\n\t\t\tprotected boolean removeEldestEntry(final Map.Entry<K, V> eldest) {\n\t\t\t\t// check if maximum size is exceeded and eldest entry needs to\n\t\t\t\t// be deleted\n\t\t\t\treturn super.size() > LRUCache.this.cacheSize;\n\t\t\t}\n\t\t};\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "private void reallocate() {\n capacity = 2 * capacity;\n ElementType[] newData = (ElementType[]) new Object[DEFAULT_INIT_LENGTH];\n System.arraycopy(elements, 0, newData, 0, size);\n elements = newData;\n }", "private void resize(int newCapacity) {\n MapEntryImpl[] newEntries = new MapEntryImpl[newCapacity];\n int newMask = newEntries.length - 1;\n for (int i = 0, n = entries.length; i < n; i++) {\n MapEntryImpl entry = entries[i];\n if (entry == null) continue;\n int newIndex = entry.hash & newMask;\n while (newEntries[newIndex] != null) { // Find empty slot.\n newIndex = (newIndex + 1) & newMask;\n }\n newEntries[newIndex] = entry;\n }\n entries = newEntries;\n }", "public final synchronized int getMaximumSize() {\n\t\treturn cacheSize;\n\t}", "public abstract void adjustSize(long size);", "private void resize() {\n if ((double) size / buckets.length > LOADFACTOR) {\n HashTableChained newTable = new HashTableChained(2 * buckets.length);\n for (int i = 0; i < buckets.length; i++) {\n SListNode current = (SListNode) buckets[i].front();\n try {\n while (current.isValidNode()) {\n Entry entry = (Entry) current.item();\n newTable.insert(entry.key(), entry.value());\n current = (SListNode) current.next();\n }\n } catch(InvalidNodeException e1) {\n System.err.println(\"Tried to use invalid node.\");\n }\n }\n buckets = newTable.buckets;\n largePrime = newTable.largePrime;\n }\n }", "private void addLengthToCacheSize(final IndexedDiskElementDescriptor value)\r\n {\r\n contentSize.addAndGet((value.len + IndexedDisk.HEADER_SIZE_BYTES) / 1024 + 1);\r\n }", "public void setCapacity(int capacity) {\r\n this.capacity = capacity;\r\n }", "private void ensureCapacity() {\r\n\t\t\tdouble loadFactor = getLoadFactor();\r\n\r\n\t\t\tif (loadFactor >= CAPACITY_THRESHOLD)\r\n\t\t\t\trehash();\r\n\t\t}", "public Builder setMaxSize(int value) {\n bitField0_ |= 0x00000001;\n maxSize_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setElementSize(int elementSize) {\n\t\t\n\t}", "public void setSize(int size) {\n this.size = size;\n }", "private void resize(int newCapacity) {\n\n E[] temp = (E[]) new Object[newCapacity];\n for(int i = 0; i < size(); i++)\n temp[i] = data[calculate(i)];\n data = temp;\n head = 0;\n tail = size()-1;\n\n\n }", "public BoundedCache( final int cacheSize ) {\n mCacheSize = cacheSize;\n }" ]
[ "0.7016313", "0.69223106", "0.68814003", "0.68384767", "0.67994666", "0.6746742", "0.6743949", "0.6706992", "0.6669662", "0.6667049", "0.66620606", "0.6522895", "0.6517666", "0.64894396", "0.6461511", "0.6423722", "0.6329846", "0.63158536", "0.6237074", "0.622028", "0.6219097", "0.6208826", "0.6175704", "0.6173564", "0.6171421", "0.6121212", "0.61096185", "0.6102865", "0.6077305", "0.6075634", "0.60704404", "0.6067656", "0.60566705", "0.60552126", "0.602129", "0.60145634", "0.60130453", "0.5998826", "0.5997213", "0.5992759", "0.5986951", "0.5981226", "0.59763277", "0.5968043", "0.5964946", "0.5952555", "0.5949475", "0.59209013", "0.5918619", "0.59179884", "0.5914653", "0.5911572", "0.59060585", "0.5895723", "0.5888925", "0.5886223", "0.5880051", "0.5871726", "0.58676326", "0.5857617", "0.58526623", "0.5844637", "0.5833158", "0.58296406", "0.58266693", "0.5823128", "0.5823115", "0.5821086", "0.58182156", "0.58061355", "0.58061355", "0.57915473", "0.5785577", "0.5785396", "0.5783712", "0.5781616", "0.5776497", "0.5760363", "0.5760363", "0.5756354", "0.5754037", "0.5750014", "0.5748731", "0.57485443", "0.57485443", "0.57485443", "0.57485443", "0.57456166", "0.5738875", "0.5737904", "0.57322794", "0.57298714", "0.57263076", "0.57253593", "0.5709884", "0.5709243", "0.56909025", "0.5681681", "0.5667791", "0.5666328" ]
0.58759886
57
Set the algorithm used to build a hash from the handlebars snippet. The hash is to be used as a cache key. The name should be a standard Java Security name (such as "SHA", "MD5", and so on).
HandlebarsKnotOptions setCacheKeyAlgorithm(String cacheKeyAlgorithm) { this.cacheKeyAlgorithm = cacheKeyAlgorithm; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHash() throws NoSuchAlgorithmException {\n\t\tString transformedName = new StringBuilder().append(this.titulo).append(this.profesor)\n .append(this.descripcion).append(this.materia.getUniversidad()).append(this.materia.getDepartamento())\n\t\t\t\t.append(this.materia.getCarrera()).append(this.materia.getIdMateria()).append(new Date().getTime()).toString();\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n\t\tmessageDigest.update(transformedName.getBytes(StandardCharsets.UTF_8));\n\t\tthis.hash = new BigInteger(1, messageDigest.digest()).toString(16);\n\t}", "String getHashAlgorithm();", "void setManifestHashAlgorithm(java.lang.String manifestHashAlgorithm);", "public void setHash(String hash) {\n this.hash = hash;\n }", "public void setHash(String hash)\n {\n this.hash = hash;\n }", "void setDigestAlgorithm(String digestAlgorithm);", "String getHash();", "String getHash();", "private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }", "void setHashData(java.lang.String hashData);", "public void setHash(String hash) {\n this.hash = hash;\n }", "public void setHash(String hash) {\n this.hash = hash;\n }", "public void setHash(String hash) {\n this.hash = hash;\n }", "java.lang.String getManifestHashAlgorithm();", "@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }", "public String getHashname(){\n\t\treturn sHashname;\n\t}", "public void setHash(String hash) {\n\t\tthis.hash = hash;\n\t}", "public final void setAlgorithmName(String algorithmName)\r\n {\r\n _algorithmName = algorithmName;\r\n setField(ALGORITHM, new SimpleString(algorithmName));\r\n }", "String getHashControl();", "String getDigestAlgorithm();", "public static long hashName(String name) {\n\t\t\tlong res = 123;\n\t\t\tfor (int i = 0; i < name.length(); ++i) {\n\t\t\t\tres = (res << 8) | (res >>> 56);\n\t\t\t\tres += name.charAt(i);\n\t\t\t\tif ((res & 1) == 0) {\n\t\t\t\t\tres ^= 0x00000000feabfeabL; // Some kind of feedback\n\t\t\t\t}\n\t\t\t}\n\t\t\tres |= 0x8000000000000000L; // Make sure the hash is negative (to distinguish it from database id's)\n\t\t\treturn res;\n\t\t}", "public String mo34971a() {\n return \"SHA-384\";\n }", "public interface Hasher {\n\n void reset();\n\n void update(byte[] input);\n\n byte[] digest();\n\n String getAlgorithm();\n }", "public void setHashValue(String hashValue) {\n this.hashValue = hashValue;\n }", "void xsetManifestHashAlgorithm(org.apache.xmlbeans.XmlAnyURI manifestHashAlgorithm);", "public void setAlgorithm(String algorithm) {\n _algorithm = algorithm;\n }", "private String getHash(String text) {\n\t\ttry {\n\t\t\tString salt = new StringBuffer(this.email).reverse().toString();\n\t\t\ttext += salt;\n\t\t\tMessageDigest m = MessageDigest.getInstance(\"MD5\");\n\t\t\tm.reset();\n\t\t\tm.update(text.getBytes());\n\t\t\tbyte[] digest = m.digest();\n\t\t\tBigInteger bigInt = new BigInteger(1, digest);\n\t\t\tString hashedText = bigInt.toString(16);\n\t\t\twhile (hashedText.length() < 32) {\n\t\t\t\thashedText = \"0\" + hashedText;\n\t\t\t}\n\t\t\treturn hashedText;\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\treturn text;\n\t\t}\n\t}", "String getMessageDigestAlgorithm();", "int getHash();", "int hash(String makeHash, int mod);", "private static String CalHash(byte[] passSalt) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n //get the instance value corresponding to Algorithm selected\n MessageDigest key = MessageDigest.getInstance(\"SHA-256\");\n //Reference:https://stackoverflow.com/questions/415953/how-can-i-generate-an-md5-hash\n //update the digest using specified array of bytes\n key.update(passSalt);\n String PassSaltHash = javax.xml.bind.DatatypeConverter.printHexBinary(key.digest());\n return PassSaltHash;\n }", "static String hashSource(String source) {\n if (!source.endsWith(\"/\")) {\n source += \"/\";\n }\n Matcher m = Pattern.compile(\".+[/]([^/]+)[/]?\").matcher(source);\n BigInteger hash;\n try {\n hash = new BigInteger(1, MessageDigest.getInstance(\"SHA-1\").digest(source.getBytes(\"UTF-8\")));\n } catch (Exception x) {\n throw new AssertionError(x);\n }\n return String.format(\"%040X%s\", hash, m.matches() ? \"-\" + m.group(1) : \"\");\n }", "org.apache.xmlbeans.XmlAnyURI xgetManifestHashAlgorithm();", "@Override\r\n\tpublic String hashFunction(String saltedPass) throws NoSuchAlgorithmException\r\n\t{\r\n\t\tMessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\r\n\t\tbyte[] byteHash = digest.digest(saltedPass.getBytes(StandardCharsets.UTF_8));\r\n\t\thash = DatatypeConverter.printBase64Binary(byteHash);\r\n\t\treturn hash;\r\n\t}", "private static String hashSHA256(String input) throws TokenManagementException {\n\t\t\n\t\tMessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"SHA-256\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new TokenManagementException(ErrorMessage.sha256AlgorithmNotFound);\n\t\t}\n\t\t\n\t\t\n\t\tmd.update(input.getBytes(StandardCharsets.UTF_8));\n\t\tbyte[] digest = md.digest();\n\n\t\t// Beware the hex length. If MD5 -> 32:\"%032x\", but for instance, in SHA-256 it should be \"%064x\" \n\t\tString result = String.format(\"%64x\", new BigInteger(1, digest));\n\t\t\n\t\treturn result;\n\t\t\n\t}", "private String computeDigest(boolean paramBoolean, String paramString1, char[] paramArrayOfchar, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7) throws NoSuchAlgorithmException {\n/* 470 */ String str1, str3, str5, str2 = this.params.getAlgorithm();\n/* 471 */ boolean bool = str2.equalsIgnoreCase(\"MD5-sess\");\n/* */ \n/* 473 */ MessageDigest messageDigest = MessageDigest.getInstance(bool ? \"MD5\" : str2);\n/* */ \n/* 475 */ if (bool) {\n/* 476 */ if ((str1 = this.params.getCachedHA1()) == null) {\n/* 477 */ str3 = paramString1 + \":\" + paramString2 + \":\";\n/* 478 */ String str7 = encode(str3, paramArrayOfchar, messageDigest);\n/* 479 */ String str6 = str7 + \":\" + paramString5 + \":\" + paramString6;\n/* 480 */ str1 = encode(str6, (char[])null, messageDigest);\n/* 481 */ this.params.setCachedHA1(str1);\n/* */ } \n/* */ } else {\n/* 484 */ String str = paramString1 + \":\" + paramString2 + \":\";\n/* 485 */ str1 = encode(str, paramArrayOfchar, messageDigest);\n/* */ } \n/* */ \n/* */ \n/* 489 */ if (paramBoolean) {\n/* 490 */ str3 = paramString3 + \":\" + paramString4;\n/* */ } else {\n/* 492 */ str3 = \":\" + paramString4;\n/* */ } \n/* 494 */ String str4 = encode(str3, (char[])null, messageDigest);\n/* */ \n/* */ \n/* 497 */ if (this.params.authQop()) {\n/* 498 */ str5 = str1 + \":\" + paramString5 + \":\" + paramString7 + \":\" + paramString6 + \":auth:\" + str4;\n/* */ }\n/* */ else {\n/* */ \n/* 502 */ str5 = str1 + \":\" + paramString5 + \":\" + str4;\n/* */ } \n/* */ \n/* */ \n/* 506 */ return encode(str5, (char[])null, messageDigest);\n/* */ }", "public Builder setSaltedHash(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n saltedHash_ = value;\n onChanged();\n return this;\n }", "String getSaltedHash();", "public String doHash(String str) {\n String key = \"\";\n int offset = str.charAt(0) - 'a';\n for (int i=0; i<str.length(); i++) {\n char res = str.charAt(i) - offset;\n if (res < 'a') res += 26;\n key += res;\n }\n return key;\n }", "public void setWebKey(String s)\n {\n ScDecoder x = new ScDecoder(s);\n setHashKey((String)x.get());\n }", "public String getHash() {\n return hash;\n }", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "@Override\n public int hashCode() {\n if (hash == 0)\n hash = MD5.getHash(owner.getLogin() + description).hashCode();\n return hash;\n }", "public com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashAlgorithm() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getHashAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.asn1.pkcs.RSAESOAEPparams.getHashAlgorithm():com.android.org.bouncycastle.asn1.x509.AlgorithmIdentifier\");\n }", "public void setHashPassword(String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n this.password = hashPassword(password);\r\n// System.out.println(\"haslo po hash w account_hashpassword: \" + this.password);\r\n }", "public abstract int getHash();", "String hash(String input) throws IllegalArgumentException, EncryptionException;", "private String reallyComputeHash(String s) {\n // Computes the crypto hash of string s, in a web-safe format.\n try {\n MessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n digest.update(s.getBytes());\n digest.update(\"My secret key\".getBytes());\n byte[] md = digest.digest();\n // Now we need to make it web safe.\n String safeDigest = Base64.encodeToString(md, Base64.URL_SAFE);\n return safeDigest;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "private void rehash()\n {\n int hTmp = 37;\n\n if ( isHR != null )\n {\n hTmp = hTmp * 17 + isHR.hashCode();\n }\n\n if ( id != null )\n {\n hTmp = hTmp * 17 + id.hashCode();\n }\n\n if ( attributeType != null )\n {\n hTmp = hTmp * 17 + attributeType.hashCode();\n }\n \n h = hTmp;\n }", "public HashCode() {\n mVal = SEED;\n }", "@Override\n public void computeHash(Hasher hasher) {\n }", "public void makeHash(){\n\t\tString tmp = \"\";\n\t\t\n\t\tfor(int i=0;i<_rows;i++){\n\t\t\tfor(int j=0;j<_cols;j++){\n\t\t\t\ttmp+=String.valueOf(_puzzle[i][j])+\"#\";\n\t\t\t}\n\t\t}\n\t\t_hashCode = tmp;\n\t}", "private void updateHashingMethod()\n {\n // Getting the hashing password interceptor\n InterceptorBean hashingPasswordInterceptor = getHashingPasswordInterceptor();\n\n if ( hashingPasswordInterceptor != null )\n {\n // Updating the hashing method\n hashingPasswordInterceptor.setInterceptorClassName( getFqcnForHashingMethod( getSelectedHashingMethod() ) );\n }\n }", "private String toSHA_256(String passName){\n\t\ttry {\n\t\t\tMessageDigest md=MessageDigest.getInstance(\"SHA-256\");\n\t\t\tmd.update(passName.getBytes(\"UTF-8\"));\n\t\t\tBigInteger bgInt=new BigInteger(md.digest());\n\t\t\treturn bgInt.toString();\n\t\t\t\n\t\t\t\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "public String getHash()\n {\n return hash;\n }", "public Builder setHash(int value) {\n bitField0_ |= 0x00000001;\n hash_ = value;\n onChanged();\n return this;\n }", "void setUserPasswordHash(String passwordHash);", "public String getHash() {\n return hash;\n }", "public String getHash() {\n return hash;\n }", "public String getHash() {\n return hash;\n }", "public void setAlgorithm(String algorithm) {\n\t\tthis.algorithm = algorithm;\n\t}", "public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}", "java.lang.String getHashData();", "public long JSHash(String str) {\n\t\tlong hash = 1315423911;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\thash ^= ((hash << 5) + str.charAt(i) + (hash >> 2));\n\t\t}\n\n\t\treturn hash;\n\t}", "@Bean\n public MessageDigest sha256encriptor() {\n String algorithm = \"SHA-256\";\n try{\n\n return MessageDigest.getInstance(algorithm);\n\n }catch (NoSuchAlgorithmException e){\n LOG.error(String.format(\"%s Encriptor does not exist\",algorithm));\n throw new RuntimeException(String.format(\"%s Encriptor does not exist\",algorithm));\n }\n }", "@VisibleForTesting\n void setHashForTesting(int hashForTesting) {\n this.hashForTesting = hashForTesting;\n }", "public static String hash(String token){\n return Integer.toString( token.hashCode() );\n }", "private static String HashIt(String token) {\n\t\tStringBuffer hexString = new StringBuffer();\n\t\ttry {\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n\t\t\tbyte[] hash = digest.digest(token.getBytes(StandardCharsets.UTF_8));\n\t\t\t\n\t\t\t// Convert to hex\n\t\t for (int i = 0; i < hash.length; i++) {\n\t\t\t String hex = Integer.toHexString(0xff & hash[i]);\n\t\t\t if(hex.length() == 1) {\n\t\t\t \thexString.append('0');\n\t\t\t }\n\t\t\t hexString.append(hex);\n\t\t }\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.err.println(e.getStackTrace());\n\t\t\thexString.setLength(0);\n\t\t}\n\t return hexString.toString();\t\t\n\t}", "public static String hashPass(String value) throws NoSuchAlgorithmException\n\t{\n\t\t//There are many algos are available for hashing i)MD5(message digest) ii)SHA(Secured hash algo)\n\t\tMessageDigest md=MessageDigest.getInstance(\"MD5\");\n\t md.update(value.getBytes());\n\t \n\t byte[] hashedpass=md.digest();\n\t StringBuilder hashpass=new StringBuilder();\n\t for(byte b:hashedpass)\n\t {\n\t \t//Convert to hexadecimal format\n\t hashpass.append(String.format(\"%02x\",b));\n\t }\n\t return hashpass.toString();\n\t}", "public String getMechanismName() {\n return \"DIGEST-MD5\";\n }", "private static String compactDigestName(String md) {\n switch (md) {\n case \"SHA-1\":\n return \"SHA1\";\n case \"SHA-224\":\n return \"SHA224\";\n case \"SHA-256\":\n return \"SHA256\";\n case \"SHA-384\":\n return \"SHA384\";\n case \"SHA-512\":\n return \"SHA512\";\n case \"SHA-512/224\":\n return \"SHA512/224\";\n case \"SHA-512/256\":\n return \"SHA512/256\";\n // RSA-PSS with SHA-3 does not yet have standard algorithm names, hence the naming is unclear.\n // For other algorithms names such as \"SHA3-224\", \"SHA3-256\", \"SHA3-384\" and \"SHA3-512\" are\n // not modified. E.g. SHA3-256withRSA is a valid algorithm name.\n default:\n return md;\n }\n }", "static String hashURL(String url){\n\t\treturn url.replace('/', 's').replace(':','c');\n\t}", "public String calculateHash () {\n StringBuilder hashInput = new StringBuilder(previousHash)\n .append(timeStamp)\n .append(magicNumber)\n .append(timeSpentMining);\n for (Transfer transfer : this.transfers) {\n String transferDesc = transfer.getDescription();\n hashInput.append(transferDesc);\n }\n return CryptoUtil.applySha256(hashInput.toString());\n }", "public String getCodeHashString(String text) throws NoSuchAlgorithmException, UnsupportedEncodingException{\n \tbyte[] digest = getHash(text+masterSalt, HASH_ALG);\n\t\treturn Base64.getEncoder().encodeToString(digest); \n\t}", "@Override\n\tprotected int precomputeAlgoId() {\n\t\treturn Objects.hash(getClass().getName(), height, width, this.precision.name()) * 31 + 1;\n\t}", "public String getAlgorithmName() {\n\t}", "int _hash(int maximum);", "public String getHash() {\n\t\treturn hash;\n\t}", "public static String encriptar(String input){\n try {\n\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n }\n\n catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "private String hashKey(String key) throws NoSuchAlgorithmException {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hashInBytes = md.digest(key.getBytes(StandardCharsets.UTF_8));\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < hashInBytes.length; i++) {\n sb.append(Integer.toString((hashInBytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n String s = sb.toString();\n return s;\n }", "@Override\n public String getAlgorithm()\n {\n return algorithm;\n }", "private static SecretKeySpec getDigest(String algorithm, String keySpecAlgorithm, String myKey)\n throws NoSuchAlgorithmException\n {\n byte[] key = myKey.getBytes(StandardCharsets.UTF_8);\n MessageDigest sha = MessageDigest.getInstance(algorithm);\n key = sha.digest(key);\n key = Arrays.copyOf(key, 16);\n return new SecretKeySpec(key, keySpecAlgorithm);\n }", "void setCryptAlgorithmSid(long cryptAlgorithmSid);", "public int hash(String item);", "public void setAlgorithm(Algorithm alg) {\n this.algorithm=alg;\n }", "private void getHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(getString(R.string.app_package_name), PackageManager.GET_SIGNATURES);\n\n for (Signature signature : info.signatures)\n {\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n } catch (NoSuchAlgorithmException nsa)\n {\n Log.d(\"exception\" , \"No algorithmn\");\n Assert.assertTrue(false);\n }\n }\n } catch (PackageManager.NameNotFoundException nnfe)\n {\n Log.d(\"exception\" , \"Name not found\");\n Assert.assertNull(\"Name not found\", nnfe);\n }\n }", "public String algorithmName();", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "String getUserPasswordHash();", "private String calulateHash() {\n\t\tsequence++; // increase the sequence to avoid 2 identical transactions having the same hash\n\t\treturn StringUtil.applySha256(StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value) + sequence);\n\t}", "private String calulateHash() {\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\treturn StringUtil.applySha256(\r\n\t\t\t\t\tStringUtil.getStringFromKey(creator) +\r\n\t\t\t\t\tname+description+begin+end+end_subscription+\r\n\t\t\t\t\tmin_capacity+max_capacity+ date_creation_transaction.getTime()\r\n\t\t\t\t\t);\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn StringUtil.applySha256(\r\n\t\t\t\t\tStringUtil.getStringFromKey(subscriber) + id_event);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "private String hashPassword(String toHash) {\r\n PasswordEncoder passwordEncoder = new Sha256PasswordEncoder(salt);\r\n return passwordEncoder.encode(toHash);\r\n }", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "private static byte[] hashTemplate(final byte[] data, final String algorithm) {\n if (data == null || data.length <= 0) return null;\n try {\n MessageDigest md = MessageDigest.getInstance(algorithm);\n md.update(data);\n return md.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return null;\n }\n }", "public String getMD5() {\n return hash;\n }", "public String getDigestAlgOID()\n {\n return digestAlgorithm.getAlgorithm().getId();\n }", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "public String getHashValue() {\n\t\tif(hash == null || hash.equals(\"\")){\n\t\t\tthis.calculateHashValue();\n\t\t}\n\t\treturn hash;\n\t}", "public String getHash() {\n\t\treturn _hash;\n\t}" ]
[ "0.6843831", "0.65090287", "0.6147093", "0.6038301", "0.59965277", "0.59773827", "0.59489447", "0.59489447", "0.5910929", "0.5887778", "0.5876171", "0.5876171", "0.5876171", "0.58657575", "0.5764512", "0.57489973", "0.57350755", "0.5704943", "0.5694391", "0.5685199", "0.5512958", "0.54919875", "0.54691774", "0.545333", "0.5374649", "0.5345794", "0.5341116", "0.53380424", "0.53365844", "0.533076", "0.528647", "0.5284939", "0.5270166", "0.5265561", "0.5250245", "0.52392083", "0.52387595", "0.52372754", "0.5231184", "0.52254635", "0.5218424", "0.521572", "0.520766", "0.5194621", "0.5189358", "0.51701903", "0.51684034", "0.51660824", "0.5161713", "0.51606196", "0.5159047", "0.5156031", "0.51557094", "0.51495546", "0.5147789", "0.5136869", "0.5133293", "0.51195025", "0.5106962", "0.5106962", "0.5106962", "0.50863135", "0.5076519", "0.50761366", "0.5062703", "0.50575256", "0.5051984", "0.504739", "0.5042845", "0.504111", "0.50405085", "0.50212973", "0.5010304", "0.49993938", "0.4983483", "0.4972698", "0.49703848", "0.4966046", "0.49635047", "0.4961978", "0.49542025", "0.4952898", "0.49472976", "0.49467954", "0.49445158", "0.49409997", "0.49386945", "0.49287203", "0.49283817", "0.49222702", "0.49112916", "0.49045596", "0.48995337", "0.48966104", "0.48916733", "0.48908052", "0.48901588", "0.48770794", "0.4868811", "0.48652443" ]
0.56529254
20
Sets the EB address of the verticle
HandlebarsKnotOptions setAddress(String address) { this.address = address; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setExternalAddress(String address);", "void setAddress(long address) throws Exception {\n if (address < 0x10000) {\n Scales.sendByte((byte) 'A');\n Scales.sendByte((byte) (address >> 8));\n Scales.sendByte((byte) address);\n } else {\n Scales.sendByte((byte) 'H');\n Scales.sendByte((byte) (address >> 16));\n Scales.sendByte((byte) (address >> 8));\n Scales.sendByte((byte) address);\n }\n\n\t /* Should return CR */\n if (Scales.getByte() != '\\r') {\n throw new Exception(\"Setting address for programming operations failed! \" + \"Programmer did not return CR after 'A'-command.\");\n }\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setInternalAddress(String address);", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setBaseAddress(int targetAddress, int baseAddress);", "public void set(int addr, byte b) {\n data[addr - start] = b;\n }", "public void setAddress(org.nhind.config.Address[] address) {\n this.address = address;\n }", "public void setAddr(String addr) {\n this.addr = addr;\n }", "public void setAddress(final String address){\n this.address=address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(InetAddress address) {\r\n\t\tthis.address = address;\r\n\t}", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "public void setAddress(String address) { this.address = address; }", "public void setAddress(String address)\n {\n this.address = address;\n }", "void setAddress(String address) throws IllegalArgumentException;", "void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "Builder setAddress(String address);", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void set(int addr, byte val) throws ProgramException {\n getSegment(addr, false).set(addr, val);\n }", "public void setAddress(String newAddress) {\r\n\t\tthis.address = newAddress;\r\n\t}", "public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}", "public void setGuestAddress(int value) {\n this.guestAddress = value;\n }", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void set_addr(int value) {\n setUIntElement(offsetBits_addr(), 16, value);\n }", "public void setAddress(org.xmlsoap.schemas.wsdl.soap.TAddress address)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.soap.TAddress target = null;\n target = (org.xmlsoap.schemas.wsdl.soap.TAddress)get_store().find_element_user(ADDRESS$0, 0);\n if (target == null)\n {\n target = (org.xmlsoap.schemas.wsdl.soap.TAddress)get_store().add_element_user(ADDRESS$0);\n }\n target.set(address);\n }\n }", "public void setAddress(java.lang.String address)\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(ADDRESS$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ADDRESS$2);\n }\n target.setStringValue(address);\n }\n }", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String adrs) {\n address = adrs;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "Restaurant setRestaurantAddress(Address address);", "public void xsetAddress(org.apache.xmlbeans.XmlString address)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ADDRESS$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ADDRESS$2);\n }\n target.set(address);\n }\n }", "public void setAddress(final String address) {\n this._address = address;\n }", "public void set(int addr, byte[] buff) throws ProgramException {\n set(addr, buff, 0, buff.length);\n }", "public final void setAddress(final String addressNew) {\n this.address = addressNew;\n }", "public void setLocationAddress(final BwString val) {\n locationAddress = val;\n }", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) { throw new NullPointerException(); }\n checkByteStringIsUtf8(value);\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }", "public void setAddress(String address) {\n try {\n if (address == null ||\n address.equals(\"\") ||\n address.equals(\"localhost\")) {\n m_Address = InetAddress.getLocalHost().getHostName();\n }\n } catch (Exception ex) {\n log.error(\"setAddress()\",ex);\n }\n m_Address = address;\n }", "public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }", "public Builder setAddressBytes(\n\t\t\t\t\t\tcom.google.protobuf.ByteString value) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\t\t\t\t\tcheckByteStringIsUtf8(value);\n\n\t\t\t\t\taddress_ = value;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}", "public void setAddress(String address) throws JAXRException {\n this.address = address;\n }", "void setAdress(String generator, String address);", "public abstract void setAddressLine1(String sValue);", "public void setEndpointAddress(String address) {\n\t\ttry {\n\t\t\tSmartCartService smartCartService = new SmartCartService(new URL(this.address.get(ROLE_SMARTCART)));\n\t\t\tSmartCart smartCart = smartCartService.getSmartCartPort();\n\n\t\t\tString cartID = Long.toString(System.nanoTime());\n\t\t\torg.choreos.services.client.smartcart.Product productSmartCart = new org.choreos.services.client.smartcart.Product();\n\t\t\tproductSmartCart.setBarcode(\"barcode\");\n\t\t\tproductSmartCart.setBrand(\"brand\");\n\t\t\tproductSmartCart.setName(\"name\");\n\t\t\tint quantity = 3;\n\n\t\t\t//SessionID is passed with the address parameter\n\t\t\tManageProduct manageProduct = new ManageProduct(productSmartCart, address, cartID, quantity);\n\t\t Thread threadManageProduct = new Thread(manageProduct);\n\t\t threadManageProduct.start();\n\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void editAttractionAddress(String address){\r\n this.address = address;\r\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"CenterServerImplPort\".equals(portName)) {\n setCenterServerImplPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "@Generated(hash = 607080948)\n public void setAddress(Address address) {\n synchronized (this) {\n this.address = address;\n addressId = address == null ? null : address.getId();\n address__resolvedKey = addressId;\n }\n }", "public void setBillingAddressInCart(Address addr);", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"CancelIMSHuawei_pt\".equals(portName)) {\n setCancelIMSHuawei_ptEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }", "@Override\r\n public void setIPAddress(String address) {\r\n this.address = address;\r\n }", "public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"EmpleadoServiciolmpl\".equals(portName)) {\r\n setEmpleadoServiciolmplEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }", "public abstract void setAddressLine2(String sValue);" ]
[ "0.6628158", "0.6610917", "0.65281665", "0.65281665", "0.65281665", "0.6517585", "0.6441727", "0.64211977", "0.64211977", "0.64211977", "0.64211977", "0.641698", "0.63876015", "0.63107455", "0.630331", "0.62875843", "0.6286519", "0.62669396", "0.62669396", "0.62414056", "0.6233943", "0.6233943", "0.6232549", "0.6208429", "0.6207847", "0.62071323", "0.6187184", "0.6177961", "0.6171336", "0.6171336", "0.6171336", "0.61707985", "0.61662114", "0.61662114", "0.61583036", "0.61511505", "0.61212224", "0.6106982", "0.61018145", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60642385", "0.60569227", "0.6053338", "0.60435605", "0.60410726", "0.6037857", "0.6037857", "0.6025977", "0.6017121", "0.6017121", "0.6016348", "0.60074186", "0.6000865", "0.5999936", "0.5955686", "0.5949061", "0.5947133", "0.5947133", "0.5947133", "0.5947133", "0.5947133", "0.5947035", "0.593688", "0.59347606", "0.59343034", "0.5925835", "0.591511", "0.5905618", "0.5903194", "0.59014237", "0.59009063", "0.58980465", "0.5889249", "0.58822304", "0.5852292", "0.5845174", "0.58418334", "0.58357793", "0.5808983", "0.57947433", "0.5778087", "0.57685256", "0.5766374", "0.5764819", "0.5762702", "0.5761138" ]
0.0
-1
Get Whether to enable bot security configuration
public String getSwitch() { return this.Switch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean hasSecurity() {\n return this.hasSecurity;\n }", "public Boolean allowInsecure() {\n return this.allowInsecure;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Enable Web Secure Remote Access\")\n\n public Boolean getSecureAccessWeb() {\n return secureAccessWeb;\n }", "public static boolean isSecurityEnabled()\n {\n return Security.getInstance() != null || getAuthorizer() != null;\n }", "public boolean isSecure() {\n return channel.isSecure();\n }", "public interface SecurityConfiguration {\n\t\n\t/**\n\t * Gets the executor.\n\t *\n\t * @return the executor\n\t */\n\tExecutor getExecutor();\t\n\t\n\t/**\n\t * User preemptive auth.\n\t *\n\t * @return true, if successful\n\t */\n\tboolean userPreemptiveAuth();\n}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Enable/Disable secure remote access [true/false]\")\n\n public String getSecureAccessEnable() {\n return secureAccessEnable;\n }", "boolean isSecureAccess();", "boolean hasNetworkPolicyConfig();", "boolean isApplicable(SecurityMode securityMode);", "boolean getEnablePrivateEndpoint();", "void enableSecurity();", "public int isSSLEnabled() {\n\t\tint enabled = 0;\n\t\tif (Boolean.parseBoolean(config.getProperty(ssl_yml_key)) == true || config.getProperty(ssl_yml_key).equals(ssl_yml_key)) {\n\t\t\tenabled = 1;\n\t\t}\n\t\t\n\t\treturn enabled;\n\t}", "@Nullable Boolean isPortSecurityEnabled();", "public boolean getProtection();", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Secure browser via Akeyless Web Access Bastion\")\n\n public Boolean getSecureAccessWebBrowsing() {\n return secureAccessWebBrowsing;\n }", "public boolean isSecure() {\n return secure;\n }", "boolean hasConfigConnectorConfig();", "@Override\n public boolean isConfigured()\n {\n return (config != null) && config.isValid() &&!config.isDisabled();\n }", "public boolean requiresSecurityPolicy()\n {\n return true;\n }", "public boolean isAccessPolicyConfig() {\n\t\treturn accessPolicyConfig;\n\t}", "public boolean isSecure() {\n return m_Secure;\n }", "private boolean isAllowed(String who){\n Boolean result = settings.containsKey(who)\n || settings.getProperty(\"components\").contentEquals(\"\");\n return result;\n }", "public boolean getSecure()\n\t{\n\t\treturn this.secure;\n\t}", "@Override\n\tpublic boolean isSecured() {\n\t\treturn false;\n\t}", "public boolean isSecure() {\n return false;\n }", "public boolean isSecure() {\n return false;\n }", "@Override\n public boolean isSecure() {\n return secure;\n }", "boolean getNeedGatewayAuth();", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Web-Proxy via Akeyless Web Access Bastion\")\n\n public Boolean getSecureAccessWebProxy() {\n return secureAccessWebProxy;\n }", "public boolean sslEnabled(){\n\t\treturn sslEnabled;\n\t}", "public boolean isSchiebenAllowed() {\n return isSchiebenAllowed;\n }", "public boolean securityStatus()\n {\n return m_bSecurity;\n }", "boolean isNonSecureAccess();", "public boolean isBot(){\n return false;\n }", "public static boolean allowLocalAccess() {\n return ConfigFactory.getCommonConfig().getBoolean(PERMIT_LOCAL_ACCESS_KEY, false);\n }", "public jpuppeteer.util.XFuture<?> enable() {\n return connection.send(\"Security.enable\", null);\n }", "public static boolean isEnabled()\n\t{\n\t\treturn App.getSPAPI().getBool(SPKey.ENABLED);\n\t}", "boolean getIsAuthorized();", "@JsonProperty(\"requireTransportSecurity\")\n public boolean getRequireTransportSecurity() {\n return requireTransportSecurity;\n }", "public boolean getBot() {\n return bot;\n }", "public boolean isSendingToHTTPEnabled() {\r\n\t\tif (this.settings.containsKey(\"toHTTPEnabled\")) {\r\n\t\t\treturn Boolean.valueOf(this.settings.getProperty(\"toHTTPEnabled\"));\r\n\t\t}\r\n\t\telse return false;\r\n\t}", "boolean getEnabled();", "boolean getEnabled();", "boolean getEnabled();", "public boolean getWantClientAuth()\n {\n return wantClientAuth;\n }", "java.lang.String getEnabled();", "public boolean tokenEnabled() {\n return tokenSecret != null && !tokenSecret.isEmpty();\n }", "public boolean isBot() {\n//\t\treturn this.getUserIO().checkConnection();\n\t\treturn false;\n\t}", "public boolean getEnabled () {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\treturn (OS.PtWidgetFlags (topHandle) & OS.Pt_BLOCKED) == 0;\r\n}", "boolean hasConfiguration();", "public Boolean getRemoteAccessAllowed() {\n return this.remoteAccessAllowed;\n }", "@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}", "public static boolean isEnabled() {\n return true;\n }", "final public boolean requiresProtection()\r\n {\r\n return requires_PRO;\r\n }", "public boolean getWhatsappEnabled() {\n Context ct = MainActivity.sContext;\n PackageManager pm = ct.getPackageManager();\n return (pm.getApplicationEnabledSetting(\"com.whatsapp\") == PackageManager.COMPONENT_ENABLED_STATE_DISABLED);\n }", "public boolean isEnabled()\n {\n return mSettings.getBoolean(ENABLED, true);\n }", "public String getSkypeenabled() {\r\n return skypeenabled;\r\n }", "final public boolean requiresAuthentication()\r\n {\r\n return requires_AUT;\r\n }", "public boolean isSslEnabled() {\n\t\treturn sslEnabled;\n\t}", "public boolean isHonorSystemProxy() {\n return honorSystemProxy;\n }", "@Override\n\t\tpublic boolean isSecure() {\n\t\t\treturn false;\n\t\t}", "public void securityOn()\n {\n m_bSecurity = true;\n }", "public boolean isHttpsEnabled() {\n return httpsEnabled;\n }", "boolean hasGlossaryConfig();", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"true\", value = \"Boolean value representing if the snapshot requires extra protection e.g. two factor protection\")\n\n public Boolean getSecAuthProtection() {\n return secAuthProtection;\n }", "public boolean isChatEnabled();", "public Boolean isPrivado() {\n return privado;\n }", "boolean hasCampaignExtensionSetting();", "public boolean isNuGetConfigAnalyzerEnabled() {\n return nuGetConfigAnalyzerEnabled;\n }", "public boolean isOpensslAnalyzerEnabled() {\n return opensslAnalyzerEnabled;\n }", "public Boolean isRemoteAccessAllowed() {\n return this.remoteAccessAllowed;\n }", "@Override\n public boolean isEnabled() {\n return localSshCredentials != null || super.isEnabled();\n }", "public boolean getNeedClientAuth()\n {\n return needClientAuth;\n }", "public boolean getIsEnabled() {\n\t\tString useKey = null;\n\t\ttry {\n\t\t\tuseKey = metadataVocab.getTranslatedValue(\"dlese_collect\", \"key\", getKey());\n\t\t} catch (Throwable e) {\n\t\t\tuseKey = getKey();\n\t\t}\n\n\t\tSimpleLuceneIndex index = getIndex();\n\t\tif (index == null)\n\t\t\treturn true;\n\t\tRepositoryManager rm = (RepositoryManager) index.getAttribute(\"repositoryManager\");\n\t\tif (rm == null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn rm.isSetEnabled(useKey);\n\t}", "public Boolean isEnable() {\n return this.enable;\n }", "private boolean isTransactionConfigEnabled() {\n boolean internalRmFeatureExists = (rc.configuration.getInternalRmFeature() != null);\n DeliveryAssurance deliveryAssurance = rc.configuration.getRmFeature().getDeliveryAssurance();\n boolean noDupQoS =\n (deliveryAssurance.equals(DeliveryAssurance.EXACTLY_ONCE) ||\n deliveryAssurance.equals(DeliveryAssurance.AT_MOST_ONCE));\n return internalRmFeatureExists && noDupQoS;\n }", "public String isEnabled() {\n return this.isEnabled;\n }", "boolean getValidSettings();", "public boolean isSsl() {\n return ssl;\n }", "boolean hasEnabled();", "public boolean useSSL() {\n\t\treturn ssl;\n\t}", "public String getIsEnable() {\n return isEnable;\n }", "public boolean configurationDialog() {\n String configurable = getDbProperties().getProperty(Constants.CONFIGURATION_DIALOG);\n return ACMConfiguration.getInstance().isShowConfiguration() ||\n (configurable != null && configurable.equalsIgnoreCase(\"true\"));\n }", "public boolean isConfigServerLike() {\n return this == config || this == controller;\n }", "public boolean isSSLEnabled() {\n return agentConfig.isSSLEnabled();\n }", "@JsonGetter(\"webRtcEnabled\")\r\n public boolean getWebRtcEnabled ( ) { \r\n return this.webRtcEnabled;\r\n }", "public boolean isSecret() {\r\n \treturn false;\r\n }", "private boolean configuredNetwork(Context context, WifiConfiguration config, String security, String mPassword) {\n //optional\n Wifi.ConfigSec.setupSecurity(config, security, mPassword);\n return configuredNetwork(context, config);\n }", "@DOMSupport(DomLevel.ONE)\r\n @Property String getSecurity();", "boolean hasNetworkSettings();", "protected boolean checkEnabledPermission() {\r\n ClientSecurityManager manager = ApplicationManager.getClientSecurityManager();\r\n if (manager != null) {\r\n if (this.enabledPermission == null) {\r\n if ((this.buttonKey != null) && (this.parentForm != null)) {\r\n this.enabledPermission = new FormPermission(this.parentForm.getArchiveName(), \"enabled\",\r\n this.buttonKey, true);\r\n }\r\n }\r\n try {\r\n // Checks to show\r\n if (this.enabledPermission != null) {\r\n manager.checkPermission(this.enabledPermission);\r\n }\r\n this.restricted = false;\r\n return true;\r\n } catch (Exception e) {\r\n this.restricted = true;\r\n if (e instanceof NullPointerException) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n if (ApplicationManager.DEBUG_SECURITY) {\r\n ToggleButton.logger.debug(this.getClass().toString() + \": \" + e.getMessage(), e);\r\n }\r\n return false;\r\n }\r\n } else {\r\n return true;\r\n }\r\n }", "public boolean useEncryption()\n {\n return encryptionContext != null && encryptionContext.isEnabled();\n }", "@Override\n\tpublic boolean needSecurityCheck() {\n\t\treturn false;\n\t}", "public boolean isEnable() {\n return _enabled;\n }", "public Boolean getEnabled() {\n return enabled;\n }", "public boolean isDisabled() {\n final FacesContext facesContext = getFacesContext();\n final TobagoConfig tobagoConfig = TobagoConfig.getInstance(facesContext);\n final Boolean disabled = (Boolean) getStateHelper().eval(AbstractUICommand.PropertyKeys.disabled);\n if (disabled == null) {\n SupportsDisabled parent =\n ComponentUtils.findAncestor(getCurrentComponent(facesContext), SupportsDisabled.class);\n if (parent != null && parent.isDisabled()) {\n return true;\n }\n }\n return disabled != null && disabled\n || tobagoConfig.getSecurityAnnotation() == SecurityAnnotation.disable && !isAllowed();\n }", "public boolean isInvulnerable() {\n return _invulnerable;\n }", "public Boolean getEnabled() {\r\n return enabled;\r\n }", "public static boolean isAppEnabled(Context context)\n {\n return SystemServices.getSharedPreferences(context).getBoolean(context.getString(R.string.enable_pref), context.getString(R.string.enable_default) == \"true\");\n }" ]
[ "0.68408877", "0.66867584", "0.65546316", "0.65441656", "0.6420281", "0.6377278", "0.6323056", "0.62656474", "0.62593865", "0.62549376", "0.62492603", "0.6246597", "0.62061065", "0.6187266", "0.6141159", "0.6100899", "0.60889393", "0.6078657", "0.605807", "0.6056474", "0.60518754", "0.6038665", "0.5995331", "0.59857297", "0.5976358", "0.5942461", "0.5942461", "0.5936878", "0.5925137", "0.5919857", "0.5916412", "0.5882079", "0.58805466", "0.58668303", "0.5865837", "0.58590424", "0.58586884", "0.5800616", "0.57986104", "0.57975066", "0.5774258", "0.57573843", "0.5741529", "0.5741529", "0.5741529", "0.57393736", "0.5728193", "0.5720784", "0.5703795", "0.56928986", "0.568325", "0.5657836", "0.56477255", "0.56477255", "0.5641433", "0.5637981", "0.56314915", "0.562975", "0.5629201", "0.5627288", "0.56226975", "0.5614302", "0.56089705", "0.56026375", "0.55968875", "0.5596006", "0.55958486", "0.5582119", "0.55782163", "0.5577853", "0.5577222", "0.5574815", "0.55559057", "0.5551306", "0.55416757", "0.55362684", "0.5533302", "0.5531236", "0.5525103", "0.5524646", "0.5524256", "0.5519683", "0.5503775", "0.54940325", "0.5490113", "0.5488733", "0.5488139", "0.54865944", "0.5484368", "0.5484135", "0.54834825", "0.54789037", "0.54779005", "0.5466204", "0.5459212", "0.5451919", "0.54462135", "0.544455", "0.5441792", "0.5441638", "0.54378176" ]
0.0
-1
Set Whether to enable bot security configuration
public void setSwitch(String Switch) { this.Switch = Switch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void enableSecurity();", "public void securityOn()\n {\n m_bSecurity = true;\n }", "public void setSecure(boolean secure)\n {\n this.secure = secure;\n }", "public void setSecure(boolean secure) {\n m_Secure = secure;\n }", "public void setProtection(boolean value);", "void setProtection(boolean value);", "public void setSecure(boolean mySecure)\n\t{\n\t\tthis.secure = mySecure;\n\t}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Enable Web Secure Remote Access\")\n\n public Boolean getSecureAccessWeb() {\n return secureAccessWeb;\n }", "public void setWhitelisted ( boolean value ) {\n\t\texecute ( handle -> handle.setWhitelisted ( value ) );\n\t}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Enable/Disable secure remote access [true/false]\")\n\n public String getSecureAccessEnable() {\n return secureAccessEnable;\n }", "public void setSchiebenAllowed(boolean isSchiebenAllowed) {\n this.isSchiebenAllowed = isSchiebenAllowed;\n }", "public Boolean allowInsecure() {\n return this.allowInsecure;\n }", "public interface SecurityConfiguration {\n\t\n\t/**\n\t * Gets the executor.\n\t *\n\t * @return the executor\n\t */\n\tExecutor getExecutor();\t\n\t\n\t/**\n\t * User preemptive auth.\n\t *\n\t * @return true, if successful\n\t */\n\tboolean userPreemptiveAuth();\n}", "@Override\n\tpublic boolean isSecured() {\n\t\treturn false;\n\t}", "@Override\n public boolean isSecure() {\n return secure;\n }", "public jpuppeteer.util.XFuture<?> enable() {\n return connection.send(\"Security.enable\", null);\n }", "public void setPrivado(Boolean privado) {\n this.privado = privado;\n }", "void setAllowFriendlyFire(boolean allowFriendlyFire);", "public abstract void setEnabled(Context context, boolean enabled);", "public void setSecurity(Security security)\n {\n __m_Security = security;\n }", "private boolean isAllowed(String who){\n Boolean result = settings.containsKey(who)\n || settings.getProperty(\"components\").contentEquals(\"\");\n return result;\n }", "public static synchronized void configureSecurity()\n {\n // import Component.Application.Console.Coherence;\n // import Component.Net.Security.Standard;\n // import com.tangosol.internal.net.security.DefaultStandardDependencies;\n // import com.tangosol.internal.net.security.LegacyXmlStandardHelper;\n // import com.tangosol.run.xml.XmlElement;\n \n if (isConfigured())\n {\n return;\n }\n \n DefaultStandardDependencies deps = null;\n Security security = null;\n \n try\n {\n // create security dependencies including default values\n deps = new DefaultStandardDependencies();\n \n // internal call equivalent to \"CacheFactory.getSecurityConfig();\"\n XmlElement xmlConfig = Coherence.getServiceConfig(\"$Security\");\n if (xmlConfig != null)\n {\n // load the security dependencies given the xml config \n deps = LegacyXmlStandardHelper.fromXml(xmlConfig, deps);\n \n if (deps.isEnabled())\n {\n // \"model\" element is not documented for now\n security = (Standard) _newInstance(\"Component.Net.Security.\" + deps.getModel()); \n }\n }\n }\n finally\n {\n // if Security is not instantiated, we still neeed to process\n // the dependencies to pickup the IdentityAsserter and IdentityTransformer\n // objects for the Security component (see onDeps()).\n if (security == null)\n {\n processDependencies(deps.validate());\n }\n else\n {\n // load the standard dependencies (currently only support Standard)\n if (deps.getModel().equals(\"Standard\"))\n {\n ((Standard) security).setDependencies(deps);\n }\n setInstance(security);\n }\n \n setConfigured(true);\n }\n }", "public boolean isSecure() {\n return channel.isSecure();\n }", "@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}", "public void securityOff()\n {\n m_bSecurity = false;\n }", "public final void resetSecurityVars() {\n String disable = getStr(\"DISABLE\");\n if (getVar(Str.MULTICLASS).equalsIgnoreCase(\"DISABLED\"))\n disable += \", CLASSES\";\n CMSecurity.setAnyDisableVars(disable);\n CMSecurity.setAnyEnableVars(getStr(\"ENABLE\"));\n CMSecurity.setDebugVars(getStr(\"DEBUG\"));\n CMSecurity.setSaveFlags(getStr(\"SAVE\"));\n }", "public void configure(Entity entity, boolean canChangePermission);", "public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }", "@Override\n\t\tpublic boolean isSecure() {\n\t\t\treturn false;\n\t\t}", "public Builder setSecure(boolean secure) {\n\t\t\tthis.secure = secure; \n\t\t\treturn this;\n\t\t}", "@Override\r\n\tpublic void setDontSendLocalSecurityUpdates(boolean arg0)\r\n\t\t\tthrows NotesApiException {\n\r\n\t}", "public void setAsSecurityManager() {\r\n\t\tRemoteReflector.setSecurityPolicy(_sess, this);\r\n\t}", "protected void enableSecurityAdvisor() {\r\n\tif (osylSecurityService.getCurrentUserRole().equals(\r\n\t\tOsylSecurityService.SECURITY_ROLE_COURSE_INSTRUCTOR)\r\n\t\t|| osylSecurityService.getCurrentUserRole().equals(\r\n\t\t\tOsylSecurityService.SECURITY_ROLE_PROJECT_MAINTAIN)) {\r\n\t securityService.pushAdvisor(new SecurityAdvisor() {\r\n\t\tpublic SecurityAdvice isAllowed(String userId, String function,\r\n\t\t\tString reference) {\r\n\t\t return SecurityAdvice.ALLOWED;\r\n\t\t}\r\n\t });\r\n\t}\r\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Secure browser via Akeyless Web Access Bastion\")\n\n public Boolean getSecureAccessWebBrowsing() {\n return secureAccessWebBrowsing;\n }", "public void setForua(boolean newValue);", "public boolean setEnabled(boolean enable);", "public void setAllowedByRobotsTXT(java.lang.Boolean value) {\n this.allowedByRobotsTXT = value;\n }", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "public void setVulnerable(boolean vulnerable) {\n this.vulnerable = vulnerable;\n }", "void setAuthenticated(boolean b);", "public void setAccessPolicyConfig(boolean value) {\n\t\tthis.accessPolicyConfig = value;\n\t}", "public boolean isSecure() {\n return false;\n }", "public boolean isSecure() {\n return false;\n }", "public boolean requiresSecurityPolicy()\n {\n return true;\n }", "private void validateAndSetAPISecurity(APIProduct apiProduct) {\n String apiSecurity = APIConstants.DEFAULT_API_SECURITY_OAUTH2;\n String security = apiProduct.getApiSecurity();\n if (security!= null) {\n apiSecurity = security;\n ArrayList<String> securityLevels = selectSecurityLevels(apiSecurity);\n apiSecurity = String.join(\",\", securityLevels);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"APIProduct \" + apiProduct.getId() + \" has following enabled protocols : \" + apiSecurity);\n }\n apiProduct.setApiSecurity(apiSecurity);\n }", "@JsonSetter(\"webRtcEnabled\")\r\n public void setWebRtcEnabled (boolean value) { \r\n this.webRtcEnabled = value;\r\n }", "public void setWantClientAuth(boolean flag)\n {\n wantClientAuth = flag;\n }", "public void setUseConsoleConfiguration(boolean useConsole) {\n\t\tCheckBox cbUseConsole = new CheckBox(\"Use Console Configuration\");\n\t\tif (cbUseConsole.isEnabled() != useConsole) {\n\t\t\tcbUseConsole.click();\n\t\t}\n\t}", "public void setInvulnerable(boolean invulnerable) {\n _invulnerable = invulnerable;\n }", "public void setSecurity_answer(String security_answer);", "public void setAPISetting(String setting){\n if(!setting.equals(\"true\")){\n setting = \"false\";\n }\n apiSetting = setting;\n }", "public void setEnabled(boolean enabled);", "public void setEnabled(boolean enabled);", "public void setEnabled (boolean enabled) {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\tint flags = enabled ? 0 : OS.Pt_BLOCKED | OS.Pt_GHOST;\r\n\tOS.PtSetResource (topHandle, OS.Pt_ARG_FLAGS, flags, OS.Pt_BLOCKED | OS.Pt_GHOST);\r\n}", "@Override\n\tpublic boolean needSecurityCheck() {\n\t\treturn false;\n\t}", "private boolean setAllPolicy(String webMethodName, String opName, String toPermit) \r\n\t{\r\n\t NAASIntegration naas = new NAASIntegration(Phrase.AdministrationLoggerName);\r\n\t boolean ret = true;\r\n\t if(toPermit.equalsIgnoreCase(\"Y\")){\r\n\t \tret = naas.setAllPolicy(webMethodName, opName, NAASRequestor.ACTION_DENY);\r\n\t }else{\r\n\t \tString isExit = verifyPolicy(webMethodName, opName);\r\n\t \tif(isExit!= null && isExit.equalsIgnoreCase(\"deny\")){\r\n\t\t \tret = naas.setAllPolicy(webMethodName, opName, \"\");\t \t\t \t\t\r\n\t \t}\r\n\t }\r\n\t return ret;\r\n\t}", "public boolean isSchiebenAllowed() {\n return isSchiebenAllowed;\n }", "void setValidSettings(boolean valid);", "void setEnable(boolean b) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void setBlocked(boolean value) {\n\n blocked_ = value;\n }", "public void setTrusted (boolean trusted) {\n impl.setTrusted(trusted);\n }", "public void setTrusted(boolean b, String by)\n {\n this.isTrusted = b;\n this.by = by;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Web-Proxy via Akeyless Web Access Bastion\")\n\n public Boolean getSecureAccessWebProxy() {\n return secureAccessWebProxy;\n }", "private void validateAndSetAPISecurity(API api) {\n String apiSecurity = APIConstants.DEFAULT_API_SECURITY_OAUTH2;\n String security = api.getApiSecurity();\n if (security!= null) {\n apiSecurity = security;\n ArrayList<String> securityLevels = selectSecurityLevels(apiSecurity);\n apiSecurity = String.join(\",\", securityLevels);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"API \" + api.getId() + \" has following enabled protocols : \" + apiSecurity);\n }\n\n api.setApiSecurity(apiSecurity);\n }", "public Boolean hasSecurity() {\n return this.hasSecurity;\n }", "public void setWhitelistEnabled(Boolean whitelistEnabled) {\n this.whitelistEnabled = whitelistEnabled;\n }", "public void setEnabled(boolean arg){\r\n\t\tenabled = arg;\r\n\t\tif(!arg){\r\n\t\t\tstop(0);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsonido = new Sonido(path,true);\r\n\t\t}\r\n\t}", "public void setPrivate( boolean newValue ) {\n privateMode = newValue;\n }", "public PortComponentType<T> setSecureWsdlAccess(Boolean secureWsdlAccess)\n {\n childNode.getOrCreate(\"secure-wsdl-access\").text(secureWsdlAccess);\n return this;\n }", "private void setEncryptionRequested(boolean encrypt) {\n }", "private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }", "public boolean isSecure() {\n return secure;\n }", "public AltsChannelBuilder enableUntrustedAltsForTesting() {\n enableUntrustedAlts = true;\n return this;\n }", "public void setAdmin(boolean value) {\r\n this.admin = value;\r\n }", "public Boolean setFloodPerm(String floodPerm) throws PermissionDeniedException;", "public void setEnabled(boolean aFlag) { _enabled = aFlag; }", "public void enclencheSecurite() {\r\n\t\tisSecuriteEnclenchee = true;\r\n\t}", "private void configureConnectionPerms() throws ConfigurationException\n {\n boolean hasAllows= false, hasDenies= false;\n\n String[] allows= cfg.getAll (\"allow\");\n if (allows != null && allows.length > 0) {\n hasAllows= true;\n\n for (String allowIP : allows) {\n allowIP= allowIP.trim();\n\n if (allowIP.indexOf('*') == -1) { // specific IP with no wildcards\n specificIPPerms.put(allowIP, true);\n } else { // there's a wildcard\n wildcardAllow= (wildcardAllow == null) ? new ArrayList<>() : wildcardAllow;\n String[] parts= allowIP.split(\"[*]\");\n wildcardAllow.add(parts[0]); // keep only the first part\n }\n }\n }\n\n String[] denies= cfg.getAll (\"deny\");\n if (denies != null && denies.length > 0) {\n hasDenies= true;\n\n for (String denyIP : denies) {\n boolean conflict= false; // used for a little sanity check\n\n denyIP= denyIP.trim();\n if (denyIP.indexOf('*') == -1) { // specific IP with no wildcards\n Boolean oldVal= specificIPPerms.put(denyIP, false);\n conflict= (oldVal == Boolean.TRUE);\n } else { // there's a wildcard\n wildcardDeny= (wildcardDeny == null) ? new ArrayList<>() : wildcardDeny;\n String[] parts= denyIP.split(\"[*]\");\n if (wildcardAllow != null && wildcardAllow.contains(parts[0]))\n conflict= true;\n else\n wildcardDeny.add(parts[0]); // keep only the first part\n }\n\n if (conflict) {\n throw new ConfigurationException(\n \"Conflicting IP permission in '\"+getName()+\"' configuration: 'deny' \"\n +denyIP+\" while having an identical previous 'allow'.\");\n }\n }\n }\n\n // sum up permission policy and logging type\n ipPermLogPolicy= (!hasAllows && !hasDenies) ? PermLogPolicy.ALLOW_NOLOG : // default when no permissions specified\n ( hasAllows && !hasDenies) ? PermLogPolicy.DENY_LOG :\n (!hasAllows && hasDenies) ? PermLogPolicy.ALLOW_LOG :\n PermLogPolicy.DENY_LOGWARNING; // mixed allows & denies, if nothing matches we'll DENY and log a warning\n }", "protected void enableActionSetMute()\n {\n Action action = new Action(\"SetMute\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n iDelegateSetMute = new DoSetMute();\n enableAction(action, iDelegateSetMute);\n }", "public abstract void setEncryptMode();", "public void setInvulnerable ( boolean flag ) {\n\t\ttry {\n\t\t\tinvokeSafe ( \"setInvulnerable\" , flag );\n\t\t} catch ( NoSuchMethodError ex ) { // legacy\n\t\t\thandleOptional ( ).ifPresent (\n\t\t\t\t\thandle -> EntityReflection.setInvulnerable ( handle , flag ) );\n\t\t}\n\t}", "private boolean configuredNetwork(Context context, WifiConfiguration config, String security, String mPassword) {\n //optional\n Wifi.ConfigSec.setupSecurity(config, security, mPassword);\n return configuredNetwork(context, config);\n }", "public void setFingerprintAllowed(boolean isAllowed) {\n this.isFingerprintAllowed = isAllowed;\n\n if (isFingerprintAllowed && !isFingerprintEnabled && getVisibility() == View.VISIBLE) {\n tryEnableFingerprint();\n }\n }", "public void setSsl(boolean ssl) {\n this.ssl = ssl;\n }", "public void setSecurity_question(String security_question);", "public boolean isSecure() {\n return m_Secure;\n }", "public void enableConferenceServer(boolean enable);", "@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}", "boolean setSiteRights(SiteAdminRights r, boolean b);", "public void enablePropertyMute()\n {\n iPropertyMute = new PropertyBool(new ParameterBool(\"Mute\"));\n addProperty(iPropertyMute);\n }", "public void setIsInPlatform(boolean val){\n setInPlatform(val);\n }", "public void setNeedClientAuth(boolean flag)\n {\n needClientAuth = flag;\n }", "void setFragmentInteraction(Boolean value) {\n\t\tetEmail.setEnabled(value);\n\t\tetPassword.setEnabled(value);\n\t\tloginButton.setEnabled(value);\n\n\n\t\ttvEmail.setEnabled(value);\n\t\ttvPassword.setEnabled(value);\n\n\t\tetPassword.setText(\"\");\n\t}", "public void enableEchoLimiter(boolean val);", "public boolean setPropertyMute(boolean aValue);", "public void setEditAuthUserApprover(final boolean val) {\n editAuthUserType |= UserAuth.approverUser;\n }", "public DuckSourceRemote setDuckSecurity(DuckSecurity duckSecurity);" ]
[ "0.6710115", "0.66083616", "0.64571893", "0.63701284", "0.6364337", "0.6325415", "0.6269637", "0.6148518", "0.59039235", "0.58477813", "0.5797104", "0.57909936", "0.5770406", "0.5758675", "0.56898797", "0.5689127", "0.56888866", "0.5634097", "0.5629008", "0.56288916", "0.5621811", "0.5599821", "0.55891675", "0.5587344", "0.5587344", "0.55842155", "0.558322", "0.5559689", "0.5556512", "0.55342674", "0.5513885", "0.550994", "0.5500238", "0.54985917", "0.5471961", "0.54718834", "0.54583544", "0.54511285", "0.545017", "0.545017", "0.545017", "0.545017", "0.54487216", "0.5446056", "0.544372", "0.5442897", "0.5442897", "0.54400784", "0.5435162", "0.54336494", "0.5427832", "0.54047465", "0.54039764", "0.5403409", "0.53872454", "0.538287", "0.538287", "0.5382242", "0.5365895", "0.5359943", "0.53558415", "0.53547627", "0.53525543", "0.53254884", "0.53247124", "0.5324407", "0.5323077", "0.53098", "0.5301015", "0.52991885", "0.52790916", "0.5277122", "0.52732766", "0.5271816", "0.52600217", "0.5256652", "0.5232105", "0.5226315", "0.5226274", "0.52178544", "0.51956815", "0.51945734", "0.519077", "0.5189061", "0.5186569", "0.5184911", "0.51844585", "0.5182703", "0.51781857", "0.5172132", "0.5171976", "0.5167867", "0.5165218", "0.51646525", "0.516435", "0.5156118", "0.5155124", "0.5153757", "0.51469326", "0.51395774", "0.5139039" ]
0.0
-1
Get Not supported currently
public BotManagedRule getUaBotRule() { return this.UaBotRule; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getSupports();", "@Override\n\tpublic List<Parking> NotAvailableParking() {\n\t\treturn parkingRepository.NotAvailableParking();\n\t}", "void notSupported(String errorcode);", "public String getVersionsSupported();", "public String unsupportedReason(DataModel model) {\n return UNSUPPORTED_REASON;\n }", "public java.math.BigInteger getNotOkForPickupReasonCode() {\r\n return notOkForPickupReasonCode;\r\n }", "String getDeprecated();", "public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}", "public java.lang.String getUnavailabilityReason() {\n return unavailabilityReason;\n }", "public java.lang.String getNotOkForPickupReasonDescription() {\r\n return notOkForPickupReasonDescription;\r\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "boolean getPossiblyBad();", "@SubL(source = \"cycl/kb-hl-supports.lisp\", position = 33298) \n public static final SubLObject create_sample_invalid_kb_hl_support() {\n return make_kb_hl_support(UNPROVIDED);\n }", "@Override\n\tpublic List<Parking> vIPNonAvailableParking() {\n\t\treturn parkingRepository.vIPNonAvailableParking();\n\t}", "public java.util.List<String> getInvalidLabels() {\n if (invalidLabels == null) {\n invalidLabels = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return invalidLabels;\n }", "public java.lang.String getReplayUnsupportedReason() {\r\n return replayUnsupportedReason;\r\n }", "Boolean getDeprecated();", "public static final int getDeprecated();", "abstract com.amazon.kindle.kindlet.net.NetworkDisabledReason getReason();", "private void unsupportedModule() {\n Log.e(\"Unsupported Module\", \"Selected module is not supported by your board!\");\n }", "String [] getSupportedTypes();", "public java.lang.String[] getFtCompatibilityIssues() {\r\n return ftCompatibilityIssues;\r\n }", "public List<String> supportedProtocols()\r\n/* 69: */ {\r\n/* 70:162 */ return this.supportedProtocols;\r\n/* 71: */ }", "public boolean isSupported() {\n\t\treturn true;\r\n\t}", "public Boolean getNotHasPermission()\r\n {\r\n return notHasPermission;\r\n }", "public java.lang.String[] getSmpFtCompatibilityIssues() {\r\n return smpFtCompatibilityIssues;\r\n }", "public List<Option> _obtainAllNonAvailableOptions() {\n\t\tCursor cursor = activity.getContentResolver().query(\n\t\t\t\tOptionDAO.QUERY_NON_AVAILABLE_OPTIONS_URI, null, null, null,null);\n\t\tArrayList<Option> lstResult = OptionDAO.createObjects(cursor);\n\t\tcursor.close();\n\t\treturn lstResult;\n\t}", "@Override\n\tpublic Map<String, FDAvailabilityInfo> getUnavailabilityMap() {\n\t\treturn null;\n\t}", "public Boolean getDeprecated()\n {\n return deprecated;\n }", "int getUknown();", "org.jetbrains.kotlin.gradle.idea.proto.generated.kpm.IdeaKpmUnknownPlatformProto getUnknown();", "public boolean getNotSupplied() {\n return notSupplied;\n }", "public java.lang.String[] getReplayCompatibilityIssues() {\r\n return replayCompatibilityIssues;\r\n }", "java.util.List<com.google.wireless.android.sdk.stats.BuildAttributionPluginIdentifier>\n getIncompatiblePluginsList();", "public Collection<Integer> getExcludedTransportTypes();", "boolean getIsSupportComp();", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getSupportedVersion() {\n return supportedVersion;\n }", "void unavailable();", "void unavailable();", "public PluginVersion getMaxSupported() {\n return maxSupported;\n }", "@Override\n public boolean isSupported() {\n return true;\n }", "public boolean isRangeUnavailable()\r\n {\r\n return statusObj.value == STATUS_CANDIDATE_RANGE_UNAVAILABLE;\r\n }", "public Collection<Resolver> getSupports() {\r\n return Collections.unmodifiableCollection(supports);\r\n }", "public String get_nat46ignoretos() throws Exception {\n\t\treturn this.nat46ignoretos;\n\t}", "Set<Capability> getAvailableCapability();", "public List getDriverAbsentList() throws Exception ;", "public List<String> getAvailableExtraData() {\n/* 483 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getNotifMode() {\r\n\t\treturn notifMode;\r\n\t}", "Object getNilReason();", "BigInteger getDeprecatedEP();", "public List getDonts() {\n\t\tif (donts == null) {\n\t\t\tdonts = getFormattedPractices(\"/metadataFieldInfo/field/bestPractices/donts\");\n\t\t}\n\t\treturn donts;\n\t}", "@Override\n\tpublic Set<PartType> getIncompatibilities(PartType reference) {\n\t\treturn null;\n\t}", "Boolean isAvailable();", "public Boolean isProhibited() {\n throw new NotImplementedException();\n }", "private List<Action> peersV2NotSupported() {\n return Collections.singletonList(\n new MessageResponseAction(new Error(INVALID, \"Table system.peers_v2 does not exist\")));\n }", "public Set<String> getMissingModules() {\r\n return missing;\r\n }", "@Override\r\n\tpublic TechnicalInformation getTechnicalInformation() {\n\t\treturn null;\r\n\t}", "public java.lang.Boolean getHbrNicSelectionSupported() {\r\n return hbrNicSelectionSupported;\r\n }", "public NioImageBuffer[] getNioImage() {\n\n \tthrow new UnsupportedOperationException();\n }", "public static synchronized Icon getIllegalIcon ()\n\t{\n\t\tif (_illegalIcon == null)\n\t\t{\n\t\t\t_illegalIcon = getIcon(\n\t\t\t\t\"org/openide/resources/propertysheet/invalid.gif\", // NOI18N\n\t\t\t\tMappingContextFactory.getDefault().getString(\"ICON_illegal\"));\n\t\t}\n\n\t\treturn _illegalIcon;\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public UnknownTarget unknown() {\n return this.unknown;\n }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "public Collection getSupportedUIDTypes() {\n return null;\r\n }", "@Deprecated\n @JsonIgnore\n public Optional<List<Extension>> getExtensions() {\n List<Extension> extensionList = new LinkedList<>();\n this.extensionsMap.forEach((key, value) -> {\n extensionList.add(new UnknownExtension(key, value));\n });\n return Optional.ofNullable(extensionList);\n }", "public AsyncResult<Boolean> isSupported() {\r\n EntityCapabilitiesManager entityCapabilitiesManager = xmppSession.getManager(EntityCapabilitiesManager.class);\r\n return entityCapabilitiesManager.discoverCapabilities(xmppSession.getDomain())\r\n .thenApply(infoNode -> infoNode.getFeatures().contains(OfflineMessage.NAMESPACE));\r\n }", "public String getNotAcceptReason() {\r\n\t\treturn notAcceptReason;\r\n\t}", "public Integer getIsAvailable() {\r\n\t\treturn isAvailable;\r\n\t}", "public java.util.List<java.lang.String> getDisallowUninstallApps() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: cm.android.mdm.manager.PackageManager2.getDisallowUninstallApps():java.util.List<java.lang.String>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.getDisallowUninstallApps():java.util.List<java.lang.String>\");\n }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n\tpublic TechnicalInformation getTechnicalInformation() {\n\t\treturn null;\n\t}", "private boolean isSupportedInternal() {\n boolean z = false;\n synchronized (this.mLock) {\n if (this.mServiceManager == null) {\n Log.e(TAG, \"isSupported: called but mServiceManager is null!?\");\n return false;\n }\n try {\n if (this.mServiceManager.getTransport(IWifi.kInterfaceName, HAL_INSTANCE_NAME) != (byte) 0) {\n z = true;\n }\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Exception while operating on IServiceManager: \" + e);\n return false;\n }\n }\n }", "public @Nullable String describeFirstNonRequestableCapability() {\n final long nonRequestable = (mNetworkCapabilities | mUnwantedNetworkCapabilities)\n & NON_REQUESTABLE_CAPABILITIES;\n\n if (nonRequestable != 0) {\n return capabilityNameOf(BitUtils.unpackBits(nonRequestable)[0]);\n }\n if (mLinkUpBandwidthKbps != 0 || mLinkDownBandwidthKbps != 0) return \"link bandwidth\";\n if (hasSignalStrength()) return \"signalStrength\";\n return null;\n }", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "public static List<String> getSupportedVersions () {\n if (instBySupportedVersion == null) {\n init();\n }\n return new ArrayList(instBySupportedVersion.keySet());\n }", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "public List<AbstractProduct> getoutOfStock() {\n return outOfStock;\n }", "public Object getDarkskyUnavailable() {\n\t\treturn this.darkskyUnavailable;\n\t}", "@Override\n\tpublic List<OpGmtNoticeLeft> getNoticList() {\n\t\treturn mapper.selectByExample(new OpGmtNoticeLeftExample());\n\t}", "public Collection<String> getRequireFeature();", "boolean getNegated();", "Collection<? extends Object> getDeprecatedHadithNo();", "com.nhcsys.webservices.getmessages.getmessagestypes.v1.SupportMessageType xgetType();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "com.google.wireless.android.sdk.stats.BuildAttributionPluginIdentifier getIncompatiblePlugins(int index);", "public String[] getForbidden() {\n return this.forbidden;\n }", "public Boolean isNonRecoverable() {\n return this.isNonRecoverable;\n }", "public int[] getSupportedPresenceStatus() throws android.os.RemoteException;", "@Override\n\tpublic ArrayList<Class<?>> getSupportedClassifier() {\n\t\treturn null;\n\t}", "protected abstract boolean checkUnSupportedFeatures(TrafficSelector selector, TrafficTreatment treatment);", "@FameProperty(name = \"numberOfInternalProviders\", derived = true)\n public Number getNumberOfInternalProviders() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public final boolean getIsMarkSupported()\n\t{\n\t\treturn false;\n\t}", "public String getOkulIsmi() {\n\t\t\n\t\t\n\t\treturn okulIsmi;\n\t}", "public static java.lang.String[] getAvailableIDs() { throw new RuntimeException(\"Stub!\"); }", "public boolean isAvailable() {\n return available;\n }", "public ButtonClass[] getNotAvailableButtons(int availableGamePosition){\n ButtonClass[] buttons = new ButtonClass[81-9];\n int z = 0;\n for (SmallGameBoard game: games){\n if (game.getSmallGamePosition() != availableGamePosition){\n for (ButtonClass b: game.getAllButtons()){\n buttons[z] = b;\n z++;\n }\n }\n }\n return buttons;\n }" ]
[ "0.61754304", "0.60973924", "0.59794724", "0.5842805", "0.5840087", "0.5776627", "0.5772349", "0.57601494", "0.5745448", "0.5715696", "0.5659334", "0.56563175", "0.565627", "0.56282216", "0.5624075", "0.5622652", "0.5586229", "0.5573065", "0.5572924", "0.5567224", "0.55580246", "0.55443686", "0.5525742", "0.5475634", "0.5464332", "0.5452211", "0.54446685", "0.5442291", "0.5441699", "0.53982675", "0.5376608", "0.53718233", "0.5360605", "0.5351685", "0.5342814", "0.5339689", "0.5335501", "0.5333904", "0.53239113", "0.53239113", "0.53072876", "0.53049916", "0.53032845", "0.5303258", "0.5302691", "0.5299675", "0.5298076", "0.5271688", "0.52687603", "0.5262719", "0.5256596", "0.5253637", "0.5247437", "0.5242131", "0.52418524", "0.5240285", "0.52325237", "0.52279866", "0.52275985", "0.5220256", "0.5220208", "0.5207111", "0.5203603", "0.51976484", "0.5192006", "0.5189762", "0.5186687", "0.5185081", "0.51750624", "0.5173336", "0.51693654", "0.5163119", "0.51570266", "0.5136171", "0.5136144", "0.51356363", "0.5132262", "0.5130988", "0.51236796", "0.5122494", "0.51151925", "0.51103723", "0.51074183", "0.5103717", "0.50991833", "0.5097999", "0.5097999", "0.5097999", "0.5097999", "0.50959915", "0.50926244", "0.5092071", "0.5088834", "0.5086391", "0.50833046", "0.50806475", "0.50731367", "0.5062638", "0.50592315", "0.50590825", "0.5058941" ]
0.0
-1
Set Not supported currently
public void setUaBotRule(BotManagedRule UaBotRule) { this.UaBotRule = UaBotRule; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void set(int x, int i) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void setInvalid();", "public void set( Object obj ) throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"set(Object obj) Not implemented.\" );\n\t\t}", "protected abstract Set method_1559();", "public void set(E obj) {\r\n throw new UnsupportedOperationException();\r\n }", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}", "public void setAllMissing();", "@Test\n\tpublic void testSet() {\n\t}", "@Override\n\tpublic void set(T e) {\n\t\t\n\t}", "public void set(boolean bol);", "Object setValue(Object value) throws NullPointerException;", "@Override public boolean set_impl(int idx, long l) { return false; }", "void set(T t);", "void setSet(boolean set);", "public void setSupports(long supports);", "public abstract void set(M newValue);", "void setIfCanRemove(boolean set);", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "public void set()\r\n {\r\n isSet = true;\r\n }", "@Test\r\n\tpublic void testSet() {\r\n\t\tAssert.assertNull(list.set(100, null));\r\n\t\tAssert.assertTrue(list.get(5).equals(\r\n\t\t\t\tlist.set(5, new Munitions(4, 3, \"cuprum\"))));\r\n\t\tAssert.assertTrue(list.get(5).equals(new Munitions(4, 3, \"cuprum\")));\r\n\t}", "@Override\n public void setValues(int arg0, List<? extends Value> arg1, int arg2, int arg3) throws InvalidTypeException, ClassNotLoadedException {\n throw new UnsupportedOperationException();\n }", "public void setdat()\n {\n }", "public T set(T obj);", "private void set(){\n resetBuffer();\n }", "String setValue();", "public void setToDefault();", "public void set(int i) {\n }", "@Test\n @Ignore\n public void testSetValue_Object() {\n System.out.println(\"setValue\");\n Object value = null;\n Setting instance = null;\n instance.setValue(value);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testSetValue() {\n System.out.println(\"setValue\");\n Object value = null;\n Setting instance = null;\n instance.setValue(value);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void setNew();", "private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n setIT.setDisable(false);\n addECE.setDisable(true);\n removeECE.setDisable(true);\n setECE.setDisable(false);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(false);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(false);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(false);\n }", "public void setValue(Object value);", "@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}", "@Override\r\n\tprotected Set<String>[] getForbidSetArray() {\n\t\treturn null;\r\n\t}", "@Test\n\tpublic void testSet_Out_Range() {\n\t\t try {\n\t\t\t SET setarray= new SET( new int[]{-1,1002});\n\t\t }\n\t\t catch (Exception e) {\n\t\t\t assertEquals(\"Value out of range\", e.getMessage());\n\t\t }\n\t}", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} not selected\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void setElementNotSelected() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "public abstract void setValue(T value);", "@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}", "public void set(int pos);", "protected void setToDefault(){\n\n\t}", "void setEnable(boolean b) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void setValue(Object object) {\n\n\t}", "@Override\n public void set(T value) throws Exception {\n _curator.setData().forPath(_zkPath, toZkBytes(value));\n }", "public void setValue(E value)\n {\n }", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "public abstract void set(DataType x, DataType y, DataType z);", "boolean getSet();", "public void setForua(boolean newValue);", "public Object set (int i, Object t)\r\n {\r\n }", "void setValue(Object value);", "public void set(String name, Object value) {\n }", "void set(boolean on);", "void set(boolean value);", "public void setEnabled(boolean enabled) {\n/* 960 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n\tpublic void testSetPositionWithoutUpdate() {\n\t}", "public native void set(T value);", "boolean isSetValue();", "boolean isSetValue();", "@Override\n public void setObject(Object arg0)\n {\n \n }", "@Override // java.util.List\n public /* synthetic */ String set(int i, String str) {\n throw new UnsupportedOperationException(\"Operation is not supported for read-only collection\");\n }", "@Override\n public void setDirty(boolean arg0)\n {\n \n }", "@Override\n\tpublic Object setPossibleValue() {\n\t\treturn null;\n\t}", "@Override\n public void onSetSuccess() {\n }", "@Override\n public void onSetSuccess() {\n }", "public void setValue(Object value) { this.value = value; }", "public void setModified();", "public abstract void setOptions(String[] options) throws Exception;", "public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }", "public void setValue(Object val);", "public void set(int i);", "void setValue(T value);", "void setValue(T value);", "public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }", "@CheckReturnValue\n boolean markSupported();", "void setNilIsManaged();", "public boolean markSupported ()\n {\n return false;\n }", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "void setNilValue();", "@Override\n public boolean isMutable() {\n return true;\n }", "public void setEditable(boolean editable) {\n/* 1029 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setValue(Object obj) throws AspException\n {\n throw new AspException(\"Modification of read-only variable\");\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n void setDefaults() {\n //Do nothing\n }", "@Override\n public void setValues(List<? extends Value> values) throws InvalidTypeException, ClassNotLoadedException {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic int isOrNoSet() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void setData() {\n\n\t}", "public void setX(int x);", "void setValue(T value) throws YangException;", "private void setData() {\n\n }", "protected void doSetValue(Object _value) {\n\t\tthis.value = (Boolean) _value;\n\t}", "@Test\n public void testSetInstructions() {\n System.out.println(\"setInstructions\");\n String instructions = \"Instructions\";\n \n instance.setInstructions(instructions);\n \n assertEquals(\"Instructions unchanged\", instructions, instance.getInstructions());\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "public final void setUnspecified() {_occ.setUnspecified();}", "private void checkMutability()\n\t{\n\t\tif (immutable)\n\t\t{\n\t\t\tthrow new UnsupportedOperationException(\"Map is immutable\");\n\t\t}\n\t}", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}", "public void setValue(FreeColAction value) {\n logger.warning(\"Calling unsupported method setValue.\");\n }", "@Override\n public void setNull() {\n\n }", "@Override\n\tpublic boolean canSetLiteral() {\n\t\treturn heldObj.canSetLiteral();\n\t}", "public abstract void setValue(int value);", "boolean isSetValueCodeableConcept();", "@Override\n\tpublic void setX(int x) {\n\t\t\n\t}", "private void setDirty() {\n\t}" ]
[ "0.7102744", "0.69306576", "0.69078", "0.68903244", "0.68218064", "0.6592394", "0.64529383", "0.6443792", "0.6442229", "0.64364815", "0.6358826", "0.6305956", "0.62961036", "0.625992", "0.61955345", "0.6184395", "0.61835474", "0.6175895", "0.6169935", "0.6128233", "0.6073823", "0.6032822", "0.601141", "0.6000302", "0.59834874", "0.59699893", "0.59614784", "0.5954511", "0.59529024", "0.59510434", "0.5949795", "0.59280014", "0.5916327", "0.5893822", "0.5892668", "0.5890544", "0.58867717", "0.58800745", "0.5874086", "0.5867281", "0.5859796", "0.5857979", "0.5851468", "0.5850217", "0.58419263", "0.5840354", "0.5837642", "0.58293664", "0.5829191", "0.5828028", "0.5821034", "0.582031", "0.58195364", "0.5818641", "0.5818141", "0.58157873", "0.58139", "0.5809591", "0.5809591", "0.5807358", "0.57971215", "0.57923555", "0.5789705", "0.57817477", "0.57817477", "0.57774645", "0.5774015", "0.5762802", "0.57622904", "0.575824", "0.57519525", "0.5741974", "0.5741974", "0.5740193", "0.57379603", "0.5734125", "0.5727658", "0.5724504", "0.5721008", "0.5720271", "0.5707139", "0.570555", "0.57034856", "0.56999004", "0.5696422", "0.5695599", "0.56936955", "0.56899774", "0.5683025", "0.56672657", "0.56660116", "0.5665413", "0.5665209", "0.566344", "0.5662398", "0.5654783", "0.5652132", "0.5642523", "0.563944", "0.5638713", "0.56367165" ]
0.0
-1
Get Not supported currently
public BotManagedRule getIspBotRule() { return this.IspBotRule; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getSupports();", "@Override\n\tpublic List<Parking> NotAvailableParking() {\n\t\treturn parkingRepository.NotAvailableParking();\n\t}", "void notSupported(String errorcode);", "public String getVersionsSupported();", "public String unsupportedReason(DataModel model) {\n return UNSUPPORTED_REASON;\n }", "public java.math.BigInteger getNotOkForPickupReasonCode() {\r\n return notOkForPickupReasonCode;\r\n }", "String getDeprecated();", "public Boolean getMustSupport() { \n\t\treturn getMustSupportElement().getValue();\n\t}", "public java.lang.String getUnavailabilityReason() {\n return unavailabilityReason;\n }", "public java.lang.String getNotOkForPickupReasonDescription() {\r\n return notOkForPickupReasonDescription;\r\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@SubL(source = \"cycl/kb-hl-supports.lisp\", position = 33298) \n public static final SubLObject create_sample_invalid_kb_hl_support() {\n return make_kb_hl_support(UNPROVIDED);\n }", "boolean getPossiblyBad();", "@Override\n\tpublic List<Parking> vIPNonAvailableParking() {\n\t\treturn parkingRepository.vIPNonAvailableParking();\n\t}", "public java.lang.String getReplayUnsupportedReason() {\r\n return replayUnsupportedReason;\r\n }", "public java.util.List<String> getInvalidLabels() {\n if (invalidLabels == null) {\n invalidLabels = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return invalidLabels;\n }", "Boolean getDeprecated();", "public static final int getDeprecated();", "abstract com.amazon.kindle.kindlet.net.NetworkDisabledReason getReason();", "private void unsupportedModule() {\n Log.e(\"Unsupported Module\", \"Selected module is not supported by your board!\");\n }", "String [] getSupportedTypes();", "public java.lang.String[] getFtCompatibilityIssues() {\r\n return ftCompatibilityIssues;\r\n }", "public List<String> supportedProtocols()\r\n/* 69: */ {\r\n/* 70:162 */ return this.supportedProtocols;\r\n/* 71: */ }", "public boolean isSupported() {\n\t\treturn true;\r\n\t}", "public Boolean getNotHasPermission()\r\n {\r\n return notHasPermission;\r\n }", "public java.lang.String[] getSmpFtCompatibilityIssues() {\r\n return smpFtCompatibilityIssues;\r\n }", "public List<Option> _obtainAllNonAvailableOptions() {\n\t\tCursor cursor = activity.getContentResolver().query(\n\t\t\t\tOptionDAO.QUERY_NON_AVAILABLE_OPTIONS_URI, null, null, null,null);\n\t\tArrayList<Option> lstResult = OptionDAO.createObjects(cursor);\n\t\tcursor.close();\n\t\treturn lstResult;\n\t}", "public Boolean getDeprecated()\n {\n return deprecated;\n }", "@Override\n\tpublic Map<String, FDAvailabilityInfo> getUnavailabilityMap() {\n\t\treturn null;\n\t}", "int getUknown();", "org.jetbrains.kotlin.gradle.idea.proto.generated.kpm.IdeaKpmUnknownPlatformProto getUnknown();", "public boolean getNotSupplied() {\n return notSupplied;\n }", "public java.lang.String[] getReplayCompatibilityIssues() {\r\n return replayCompatibilityIssues;\r\n }", "java.util.List<com.google.wireless.android.sdk.stats.BuildAttributionPluginIdentifier>\n getIncompatiblePluginsList();", "boolean getIsSupportComp();", "public Collection<Integer> getExcludedTransportTypes();", "public String getSupportedVersion() {\n return supportedVersion;\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "void unavailable();", "void unavailable();", "public PluginVersion getMaxSupported() {\n return maxSupported;\n }", "@Override\n public boolean isSupported() {\n return true;\n }", "public Collection<Resolver> getSupports() {\r\n return Collections.unmodifiableCollection(supports);\r\n }", "Set<Capability> getAvailableCapability();", "public boolean isRangeUnavailable()\r\n {\r\n return statusObj.value == STATUS_CANDIDATE_RANGE_UNAVAILABLE;\r\n }", "public String get_nat46ignoretos() throws Exception {\n\t\treturn this.nat46ignoretos;\n\t}", "public List getDriverAbsentList() throws Exception ;", "public List<String> getAvailableExtraData() {\n/* 483 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getNotifMode() {\r\n\t\treturn notifMode;\r\n\t}", "Object getNilReason();", "BigInteger getDeprecatedEP();", "public List getDonts() {\n\t\tif (donts == null) {\n\t\t\tdonts = getFormattedPractices(\"/metadataFieldInfo/field/bestPractices/donts\");\n\t\t}\n\t\treturn donts;\n\t}", "@Override\n\tpublic Set<PartType> getIncompatibilities(PartType reference) {\n\t\treturn null;\n\t}", "Boolean isAvailable();", "public Boolean isProhibited() {\n throw new NotImplementedException();\n }", "private List<Action> peersV2NotSupported() {\n return Collections.singletonList(\n new MessageResponseAction(new Error(INVALID, \"Table system.peers_v2 does not exist\")));\n }", "public java.lang.Boolean getHbrNicSelectionSupported() {\r\n return hbrNicSelectionSupported;\r\n }", "public Set<String> getMissingModules() {\r\n return missing;\r\n }", "@Override\r\n\tpublic TechnicalInformation getTechnicalInformation() {\n\t\treturn null;\r\n\t}", "public NioImageBuffer[] getNioImage() {\n\n \tthrow new UnsupportedOperationException();\n }", "public static synchronized Icon getIllegalIcon ()\n\t{\n\t\tif (_illegalIcon == null)\n\t\t{\n\t\t\t_illegalIcon = getIcon(\n\t\t\t\t\"org/openide/resources/propertysheet/invalid.gif\", // NOI18N\n\t\t\t\tMappingContextFactory.getDefault().getString(\"ICON_illegal\"));\n\t\t}\n\n\t\treturn _illegalIcon;\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public UnknownTarget unknown() {\n return this.unknown;\n }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "public Collection getSupportedUIDTypes() {\n return null;\r\n }", "public AsyncResult<Boolean> isSupported() {\r\n EntityCapabilitiesManager entityCapabilitiesManager = xmppSession.getManager(EntityCapabilitiesManager.class);\r\n return entityCapabilitiesManager.discoverCapabilities(xmppSession.getDomain())\r\n .thenApply(infoNode -> infoNode.getFeatures().contains(OfflineMessage.NAMESPACE));\r\n }", "@Deprecated\n @JsonIgnore\n public Optional<List<Extension>> getExtensions() {\n List<Extension> extensionList = new LinkedList<>();\n this.extensionsMap.forEach((key, value) -> {\n extensionList.add(new UnknownExtension(key, value));\n });\n return Optional.ofNullable(extensionList);\n }", "public String getNotAcceptReason() {\r\n\t\treturn notAcceptReason;\r\n\t}", "public Integer getIsAvailable() {\r\n\t\treturn isAvailable;\r\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "public java.util.List<java.lang.String> getDisallowUninstallApps() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: cm.android.mdm.manager.PackageManager2.getDisallowUninstallApps():java.util.List<java.lang.String>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.getDisallowUninstallApps():java.util.List<java.lang.String>\");\n }", "@Override\n\tpublic TechnicalInformation getTechnicalInformation() {\n\t\treturn null;\n\t}", "private boolean isSupportedInternal() {\n boolean z = false;\n synchronized (this.mLock) {\n if (this.mServiceManager == null) {\n Log.e(TAG, \"isSupported: called but mServiceManager is null!?\");\n return false;\n }\n try {\n if (this.mServiceManager.getTransport(IWifi.kInterfaceName, HAL_INSTANCE_NAME) != (byte) 0) {\n z = true;\n }\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Exception while operating on IServiceManager: \" + e);\n return false;\n }\n }\n }", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "public @Nullable String describeFirstNonRequestableCapability() {\n final long nonRequestable = (mNetworkCapabilities | mUnwantedNetworkCapabilities)\n & NON_REQUESTABLE_CAPABILITIES;\n\n if (nonRequestable != 0) {\n return capabilityNameOf(BitUtils.unpackBits(nonRequestable)[0]);\n }\n if (mLinkUpBandwidthKbps != 0 || mLinkDownBandwidthKbps != 0) return \"link bandwidth\";\n if (hasSignalStrength()) return \"signalStrength\";\n return null;\n }", "@Override\n public boolean getIsSupportComp() {\n return isSupportComp_;\n }", "public static List<String> getSupportedVersions () {\n if (instBySupportedVersion == null) {\n init();\n }\n return new ArrayList(instBySupportedVersion.keySet());\n }", "public Object getDarkskyUnavailable() {\n\t\treturn this.darkskyUnavailable;\n\t}", "public List<AbstractProduct> getoutOfStock() {\n return outOfStock;\n }", "@Override\n\tpublic List<OpGmtNoticeLeft> getNoticList() {\n\t\treturn mapper.selectByExample(new OpGmtNoticeLeftExample());\n\t}", "public Collection<String> getRequireFeature();", "boolean getNegated();", "Collection<? extends Object> getDeprecatedHadithNo();", "com.nhcsys.webservices.getmessages.getmessagestypes.v1.SupportMessageType xgetType();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "com.google.wireless.android.sdk.stats.BuildAttributionPluginIdentifier getIncompatiblePlugins(int index);", "public int[] getSupportedPresenceStatus() throws android.os.RemoteException;", "public Boolean isNonRecoverable() {\n return this.isNonRecoverable;\n }", "public String[] getForbidden() {\n return this.forbidden;\n }", "@Override\n\tpublic ArrayList<Class<?>> getSupportedClassifier() {\n\t\treturn null;\n\t}", "protected abstract boolean checkUnSupportedFeatures(TrafficSelector selector, TrafficTreatment treatment);", "@FameProperty(name = \"numberOfInternalProviders\", derived = true)\n public Number getNumberOfInternalProviders() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public final boolean getIsMarkSupported()\n\t{\n\t\treturn false;\n\t}", "public String getOkulIsmi() {\n\t\t\n\t\t\n\t\treturn okulIsmi;\n\t}", "public boolean isAvailable() {\n return available;\n }", "public static java.lang.String[] getAvailableIDs() { throw new RuntimeException(\"Stub!\"); }", "public ButtonClass[] getNotAvailableButtons(int availableGamePosition){\n ButtonClass[] buttons = new ButtonClass[81-9];\n int z = 0;\n for (SmallGameBoard game: games){\n if (game.getSmallGamePosition() != availableGamePosition){\n for (ButtonClass b: game.getAllButtons()){\n buttons[z] = b;\n z++;\n }\n }\n }\n return buttons;\n }" ]
[ "0.6178356", "0.6095273", "0.59780973", "0.58455694", "0.5839279", "0.5773313", "0.5772514", "0.5762816", "0.57426935", "0.5713122", "0.5661028", "0.5655724", "0.5652757", "0.56253475", "0.56229454", "0.56206304", "0.5587554", "0.5573269", "0.55703294", "0.5568372", "0.55598056", "0.5544162", "0.55284053", "0.5480771", "0.5461703", "0.54521126", "0.54428023", "0.5442662", "0.5440649", "0.5395696", "0.53756005", "0.53699154", "0.53605545", "0.5351625", "0.53433913", "0.53400654", "0.533806", "0.53360754", "0.53217006", "0.53217006", "0.5311135", "0.53092915", "0.5306984", "0.53022385", "0.5301533", "0.5299569", "0.52951974", "0.5269904", "0.5269019", "0.5258817", "0.5256247", "0.5250701", "0.52474844", "0.5243897", "0.52406514", "0.52394724", "0.52305716", "0.5229992", "0.5228187", "0.5220148", "0.5217966", "0.52078134", "0.5201827", "0.5197592", "0.5192379", "0.51899683", "0.5189658", "0.51815605", "0.51760954", "0.51734084", "0.5172282", "0.5163361", "0.51599616", "0.51396596", "0.5136077", "0.5136033", "0.51345795", "0.5134348", "0.51228756", "0.5122545", "0.51128376", "0.5112109", "0.5103939", "0.5103457", "0.51004744", "0.5099682", "0.5099682", "0.5099682", "0.5099682", "0.5095604", "0.50899535", "0.5089938", "0.50897497", "0.50887936", "0.5084279", "0.5081277", "0.50752765", "0.50611997", "0.50607795", "0.5058014", "0.5057962" ]
0.0
-1
Set Not supported currently
public void setIspBotRule(BotManagedRule IspBotRule) { this.IspBotRule = IspBotRule; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void set(int x, int i) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void setInvalid();", "public void set( Object obj ) throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"set(Object obj) Not implemented.\" );\n\t\t}", "protected abstract Set method_1559();", "public void set(E obj) {\r\n throw new UnsupportedOperationException();\r\n }", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}", "public void setAllMissing();", "@Test\n\tpublic void testSet() {\n\t}", "@Override\n\tpublic void set(T e) {\n\t\t\n\t}", "public void set(boolean bol);", "Object setValue(Object value) throws NullPointerException;", "@Override public boolean set_impl(int idx, long l) { return false; }", "void set(T t);", "void setSet(boolean set);", "public void setSupports(long supports);", "public abstract void set(M newValue);", "void setIfCanRemove(boolean set);", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "public void set()\r\n {\r\n isSet = true;\r\n }", "@Test\r\n\tpublic void testSet() {\r\n\t\tAssert.assertNull(list.set(100, null));\r\n\t\tAssert.assertTrue(list.get(5).equals(\r\n\t\t\t\tlist.set(5, new Munitions(4, 3, \"cuprum\"))));\r\n\t\tAssert.assertTrue(list.get(5).equals(new Munitions(4, 3, \"cuprum\")));\r\n\t}", "@Override\n public void setValues(int arg0, List<? extends Value> arg1, int arg2, int arg3) throws InvalidTypeException, ClassNotLoadedException {\n throw new UnsupportedOperationException();\n }", "public void setdat()\n {\n }", "public T set(T obj);", "private void set(){\n resetBuffer();\n }", "String setValue();", "public void setToDefault();", "public void set(int i) {\n }", "@Test\n @Ignore\n public void testSetValue_Object() {\n System.out.println(\"setValue\");\n Object value = null;\n Setting instance = null;\n instance.setValue(value);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testSetValue() {\n System.out.println(\"setValue\");\n Object value = null;\n Setting instance = null;\n instance.setValue(value);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void setNew();", "private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n setIT.setDisable(false);\n addECE.setDisable(true);\n removeECE.setDisable(true);\n setECE.setDisable(false);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(false);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(false);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(false);\n }", "public void setValue(Object value);", "@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}", "@Override\r\n\tprotected Set<String>[] getForbidSetArray() {\n\t\treturn null;\r\n\t}", "@Test\n\tpublic void testSet_Out_Range() {\n\t\t try {\n\t\t\t SET setarray= new SET( new int[]{-1,1002});\n\t\t }\n\t\t catch (Exception e) {\n\t\t\t assertEquals(\"Value out of range\", e.getMessage());\n\t\t }\n\t}", "@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} not selected\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void setElementNotSelected() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}", "public abstract void setValue(T value);", "@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}", "public void set(int pos);", "protected void setToDefault(){\n\n\t}", "void setEnable(boolean b) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void setValue(Object object) {\n\n\t}", "@Override\n public void set(T value) throws Exception {\n _curator.setData().forPath(_zkPath, toZkBytes(value));\n }", "public void setValue(E value)\n {\n }", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "public abstract void set(DataType x, DataType y, DataType z);", "boolean getSet();", "public void setForua(boolean newValue);", "public Object set (int i, Object t)\r\n {\r\n }", "void setValue(Object value);", "public void set(String name, Object value) {\n }", "void set(boolean on);", "void set(boolean value);", "public void setEnabled(boolean enabled) {\n/* 960 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n\tpublic void testSetPositionWithoutUpdate() {\n\t}", "public native void set(T value);", "boolean isSetValue();", "boolean isSetValue();", "@Override\n public void setObject(Object arg0)\n {\n \n }", "@Override // java.util.List\n public /* synthetic */ String set(int i, String str) {\n throw new UnsupportedOperationException(\"Operation is not supported for read-only collection\");\n }", "@Override\n public void setDirty(boolean arg0)\n {\n \n }", "@Override\n\tpublic Object setPossibleValue() {\n\t\treturn null;\n\t}", "@Override\n public void onSetSuccess() {\n }", "@Override\n public void onSetSuccess() {\n }", "public void setValue(Object value) { this.value = value; }", "public void setModified();", "public abstract void setOptions(String[] options) throws Exception;", "public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }", "public void setValue(Object val);", "public void set(int i);", "void setValue(T value);", "void setValue(T value);", "public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }", "@CheckReturnValue\n boolean markSupported();", "void setNilIsManaged();", "public boolean markSupported ()\n {\n return false;\n }", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "void setNilValue();", "@Override\n public boolean isMutable() {\n return true;\n }", "public void setEditable(boolean editable) {\n/* 1029 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setValue(Object obj) throws AspException\n {\n throw new AspException(\"Modification of read-only variable\");\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n void setDefaults() {\n //Do nothing\n }", "@Override\n public void setValues(List<? extends Value> values) throws InvalidTypeException, ClassNotLoadedException {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic int isOrNoSet() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void setData() {\n\n\t}", "public void setX(int x);", "void setValue(T value) throws YangException;", "private void setData() {\n\n }", "protected void doSetValue(Object _value) {\n\t\tthis.value = (Boolean) _value;\n\t}", "@Test\n public void testSetInstructions() {\n System.out.println(\"setInstructions\");\n String instructions = \"Instructions\";\n \n instance.setInstructions(instructions);\n \n assertEquals(\"Instructions unchanged\", instructions, instance.getInstructions());\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "public final void setUnspecified() {_occ.setUnspecified();}", "private void checkMutability()\n\t{\n\t\tif (immutable)\n\t\t{\n\t\t\tthrow new UnsupportedOperationException(\"Map is immutable\");\n\t\t}\n\t}", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}", "public void setValue(FreeColAction value) {\n logger.warning(\"Calling unsupported method setValue.\");\n }", "@Override\n public void setNull() {\n\n }", "@Override\n\tpublic boolean canSetLiteral() {\n\t\treturn heldObj.canSetLiteral();\n\t}", "public abstract void setValue(int value);", "boolean isSetValueCodeableConcept();", "@Override\n\tpublic void setX(int x) {\n\t\t\n\t}", "private void setDirty() {\n\t}" ]
[ "0.7102744", "0.69306576", "0.69078", "0.68903244", "0.68218064", "0.6592394", "0.64529383", "0.6443792", "0.6442229", "0.64364815", "0.6358826", "0.6305956", "0.62961036", "0.625992", "0.61955345", "0.6184395", "0.61835474", "0.6175895", "0.6169935", "0.6128233", "0.6073823", "0.6032822", "0.601141", "0.6000302", "0.59834874", "0.59699893", "0.59614784", "0.5954511", "0.59529024", "0.59510434", "0.5949795", "0.59280014", "0.5916327", "0.5893822", "0.5892668", "0.5890544", "0.58867717", "0.58800745", "0.5874086", "0.5867281", "0.5859796", "0.5857979", "0.5851468", "0.5850217", "0.58419263", "0.5840354", "0.5837642", "0.58293664", "0.5829191", "0.5828028", "0.5821034", "0.582031", "0.58195364", "0.5818641", "0.5818141", "0.58157873", "0.58139", "0.5809591", "0.5809591", "0.5807358", "0.57971215", "0.57923555", "0.5789705", "0.57817477", "0.57817477", "0.57774645", "0.5774015", "0.5762802", "0.57622904", "0.575824", "0.57519525", "0.5741974", "0.5741974", "0.5740193", "0.57379603", "0.5734125", "0.5727658", "0.5724504", "0.5721008", "0.5720271", "0.5707139", "0.570555", "0.57034856", "0.56999004", "0.5696422", "0.5695599", "0.56936955", "0.56899774", "0.5683025", "0.56672657", "0.56660116", "0.5665413", "0.5665209", "0.566344", "0.5662398", "0.5654783", "0.5652132", "0.5642523", "0.563944", "0.5638713", "0.56367165" ]
0.0
-1
Get User portrait rules
public BotPortraitRule getPortraitRule() { return this.PortraitRule; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPortrait() {\n return portrait;\n }", "public abstract CellProfile getRules();", "public void setPortraitRule(BotPortraitRule PortraitRule) {\n this.PortraitRule = PortraitRule;\n }", "public String getePortrait() {\n return ePortrait;\n }", "String getRules();", "public boolean isPortrait() {\n return mState.isPortrait;\n }", "@Test\n public void needPortraitTest() {\n // TODO: test needPortrait\n }", "public SPResponse getRolesWithoutPortrait(User user) {\n final SPResponse resp = new SPResponse();\n \n return resp.add(MODULE_NAME + \"List\", factory.getRolesWithoutPortrait(user));\n }", "boolean getLandscape();", "private static boolean isLandscapePortraitValue(String pageSizeChunk) {\n return CssConstants.LANDSCAPE.equals(pageSizeChunk) || CssConstants.PORTRAIT.equals(pageSizeChunk);\n }", "public String getOrientation() {\n\n if(getResources().getDisplayMetrics().widthPixels > \n getResources().getDisplayMetrics().heightPixels) { \n return \"LANDSCAPE\";\n } else {\n return \"PORTRAIT\";\n } \n \n }", "int getVerticalResolution();", "Set<Right> getRightsFor(User user, Pad pad);", "public ZeroSides calculateShouldZeroSides() {\r\n if (!(getContext() instanceof Activity)) {\r\n return ZeroSides.NONE;\r\n }\r\n Activity activity = (Activity) getContext();\r\n int i = activity.getResources().getConfiguration().orientation;\r\n int rotation = activity.getWindowManager().getDefaultDisplay().getRotation();\r\n if (i != 2) {\r\n return ZeroSides.NONE;\r\n }\r\n if (rotation == 1) {\r\n return ZeroSides.RIGHT;\r\n }\r\n if (rotation == 3) {\r\n return Build.VERSION.SDK_INT >= 23 ? ZeroSides.LEFT : ZeroSides.RIGHT;\r\n }\r\n if (rotation == 0 || rotation == 2) {\r\n return ZeroSides.BOTH;\r\n }\r\n return ZeroSides.NONE;\r\n }", "public int getMetaRoles();", "String getLockOrientationPref();", "java.util.List<org.stu.projector.Orientation> \n getOrientationsList();", "public String orientation()\n {\n int height = cat.getWidth();\n int width = cat.getHeight();\n\n if (height >= width)\n {\n return \"landscape\";\n }\n else \n {\n return \"portrait\";\n\n }\n }", "public abstract double getOrientation();", "org.stu.projector.Orientation getOrientations(int index);", "List<Trait> getTraitsOfPrey();", "double getPerimeter(){\n return 2*height+width;\n }", "public abstract float getPerimeter();", "public Rules getRules()\r\n {\r\n return rules;\r\n }", "public float getOrientedHeight() {\n return (this.orientation + this.baseRotation) % 180.0f != 0.0f ? this.width : this.height;\n }", "public com.walgreens.rxit.ch.cda.StrucDocTable.Rules.Enum getRules()\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(RULES$26);\n if (target == null)\n {\n return null;\n }\n return (com.walgreens.rxit.ch.cda.StrucDocTable.Rules.Enum)target.getEnumValue();\n }\n }", "com.google.privacy.dlp.v2.CustomInfoType.DetectionRule getDetectionRules(int index);", "public List<RulesEngineRule> rules() {\n return this.innerProperties() == null ? null : this.innerProperties().rules();\n }", "String getPreviewRotationPref();", "int getOrientationsCount();", "public int getPerimeter()\t{\n//\t\treturn 2 * x + 2 * y;\n\t\treturn x + y + width + height;\n\t}", "public IOrientation getOrientation();", "@Override\n\tpublic String checkPermision(String user, String userType) {\n\t\treturn null;\n\t}", "public String getRules() { \n\t\treturn getRulesElement().getValue();\n\t}", "protected String roleMapToFormula() {\n List<String> pieces = new ArrayList<String>();\n for ( Map.Entry<SecurityOwner, String> entry : roleBasedConstraintMap.entrySet() ) {\n SecurityOwner owner = entry.getKey();\n String formula = entry.getValue();\n\n StringBuilder formulaBuf = new StringBuilder();\n formulaBuf.append( FUNC_AND ).append( PARAM_LIST_BEGIN ).append( FUNC_IN ).append( PARAM_LIST_BEGIN ).append(\n PARAM_QUOTE ).append( owner.getOwnerName() ).append( PARAM_QUOTE ).append( PARAM_SEPARATOR ).append(\n owner.getOwnerType() == SecurityOwner.OWNER_TYPE_ROLE ? FUNC_ROLES : FUNC_USER ).append( PARAM_LIST_END )\n .append( PARAM_SEPARATOR ).append( formula ).append( PARAM_LIST_END );\n pieces.add( formulaBuf.toString() );\n\n }\n\n StringBuilder buf = new StringBuilder();\n buf.append( FUNC_OR );\n buf.append( PARAM_LIST_BEGIN );\n int index = 0;\n for ( String piece : pieces ) {\n if ( index > 0 ) {\n buf.append( PARAM_SEPARATOR );\n }\n buf.append( piece );\n index++;\n }\n buf.append( PARAM_LIST_END );\n\n logger.debug( \"singleFormula: \" + buf );\n\n return buf.toString();\n }", "String getVacmRole();", "@Override\n public List getRules() {\n return rules;\n }", "double getPerimeter();", "double getPerimeter();", "double getPerimeter();", "double getPerimeter();", "public interface UseLandscape {\n}", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "List<Trait> traits();", "public double getPerimeter();", "public double getPerimeter();", "private String toRules(){\n\n if (numInstances() == 0)\n\treturn \"No Rules (Empty Exemplar)\";\n\n String s = \"\", sep = \"\";\n\t\n for(int i = 0; i < numAttributes(); i++){\n\t \n\tif(i == classIndex())\n\t continue;\n\t \n\tif(attribute(i).isNumeric()){\n\t if(m_MaxBorder[i] != m_MinBorder[i]){\n\t s += sep + m_MinBorder[i] + \"<=\" + attribute(i).name() + \"<=\" + m_MaxBorder[i];\n\t } else {\n\t s += sep + attribute(i).name() + \"=\" + m_MaxBorder[i];\n\t }\n\t sep = \" ^ \";\n\t \n\t} else {\n\t s += sep + attribute(i).name() + \" in {\";\n\t String virg = \"\";\n\t for(int j = 0; j < attribute(i).numValues() + 1; j++){\n\t if(m_Range[i][j]){\n\t s+= virg;\n\t if(j == attribute(i).numValues())\n\t\ts += \"?\";\n\t else\n\t\ts += attribute(i).value(j);\n\t virg = \",\";\n\t }\n\t }\n\t s+=\"}\";\n\t sep = \" ^ \";\n\t}\t \n }\n s += \" (\"+numInstances() +\")\";\n return s;\n }", "public TournamentEditorConstraints getTournamentEditorConstraints();", "@PostMapping(value = \"/readBrowserRuleByUserId\")\n\tpublic @ResponseBody HashMap<String, Object> readBrowserRuleByUserId(HttpServletRequest req) {\n\t\tHashMap<String, Object> hm = new HashMap<String, Object>();\n\t\tString userId = req.getParameter(\"userId\");\n\t\ttry {\n\t\t\tif (userId != null && userId.trim().length() > 0) {\n\t\t\t\tResultVO userRoleInfo = userService.getUserConfIdByUserId(userId);\n\t\t\t\tif (GPMSConstants.MSG_SUCCESS.equals(userRoleInfo.getStatus().getResult())) {\n\t\t\t\t\tUserRoleVO vo = (UserRoleVO) userRoleInfo.getData()[0];\n\t\t\t\t\tif (vo.getBrowserRuleId() != null && vo.getBrowserRuleId().length() > 0) {\n\t\t\t\t\t\thm = getBrowserRuleByRoleId(vo.getBrowserRuleId(), GPMSConstants.RULE_GRADE_USER);\n\t\t\t\t\t\thm.put(\"extend\", new String[] { \"USER\" });\n\t\t\t\t\t\treturn hm;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// get role by deptCd in user\n\t\t\t\tuserRoleInfo = userService.getUserConfIdByDeptCdFromUserId(userId);\n\t\t\t\tif (GPMSConstants.MSG_SUCCESS.equals(userRoleInfo.getStatus().getResult())) {\n\t\t\t\t\tUserRoleVO vo = (UserRoleVO) userRoleInfo.getData()[0];\n\t\t\t\t\tif (vo.getBrowserRuleId() != null && vo.getBrowserRuleId().length() > 0) {\n\t\t\t\t\t\thm = getBrowserRuleByRoleId(vo.getBrowserRuleId(), GPMSConstants.RULE_GRADE_DEPT);\n\t\t\t\t\t\thm.put(\"extend\", new String[] { \"DEPT\" });\n\t\t\t\t\t\treturn hm;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\thm = getBrowserRuleByRoleId(null, GPMSConstants.RULE_GRADE_DEFAULT);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"error in readBrowserRuleByUserId : {}, {}, {}\", GPMSConstants.CODE_SYSERROR,\n\t\t\t\t\tMessageSourceHelper.getMessage(GPMSConstants.MSG_SYSERROR), ex.toString());\n\t\t}\n\n\t\treturn hm;\n\t}", "@Override\r\n\tpublic double getPerimeter() {\r\n\t\treturn 2 * (width + height);\r\n\t}", "@Override\r\n\tpublic double getPerimeter() {\r\n\t\treturn 2 * (width + height);\r\n\t}", "public int getScreenOrientation() {\n Display getOrient = getWindowManager().getDefaultDisplay();\n int orientation = Configuration.ORIENTATION_UNDEFINED;\n if (getOrient.getWidth() == getOrient.getHeight()) {\n orientation = Configuration.ORIENTATION_SQUARE;\n } else {\n if (getOrient.getWidth() < getOrient.getHeight()) {\n orientation = Configuration.ORIENTATION_PORTRAIT;\n } else {\n orientation = Configuration.ORIENTATION_LANDSCAPE;\n }\n }\n return orientation;\n }", "java.util.List<com.google.privacy.dlp.v2.CustomInfoType.DetectionRule> getDetectionRulesList();", "private void determineOrientation(float[] rotationMatrix) {\n\t\t\t float[] orientationValues = new float[3];\n\t\t SensorManager.getOrientation(rotationMatrix, orientationValues);\n\t\t double azimuth = Math.toDegrees(orientationValues[0]);\n\t\t double pitch = Math.toDegrees(orientationValues[1]);\n\t\t double roll = Math.toDegrees(orientationValues[2]);\n\t\t if (pitch <= 10)\n\t\t { \n\t\t if (Math.abs(roll) >= 170)\n\t\t {\n\t\t onFaceDown();\n\t\t }\n\t\t else if (Math.abs(roll) <= 10)\n\t\t {\n\t\t onFaceUp();\n\t\t }\n\t\t }\n\t\t\t\n\t\t}", "List<? extends Rule> getRules();", "public final RuleBaseFacility getRules()\n{\n\treturn _rules;\n}", "List<ArrangementSectionRule> getExtendedSectionRules();", "java.lang.String getRule();", "public TypeCheckerProofRule getRule ( ) ;", "public Integer getSides();", "double getPerimeter() {\n return width + width + height + height;\n }", "protected String generateRuleBasedConstraint( String user, List<String> roles ) {\n\n List<String> pieces = new ArrayList<String>();\n for ( Map.Entry<SecurityOwner, String> entry : roleBasedConstraintMap.entrySet() ) {\n SecurityOwner owner = entry.getKey();\n String formula = entry.getValue();\n\n // if the user or a user role matches this constraint\n // add it to the pieces list\n\n if ( ( owner.getOwnerType() == SecurityOwner.OWNER_TYPE_USER && owner.getOwnerName().equals( user ) )\n || ( roles != null && owner.getOwnerType() == SecurityOwner.OWNER_TYPE_ROLE && roles.contains( owner\n .getOwnerName() ) ) ) {\n pieces.add( formula );\n }\n }\n\n if ( pieces.size() == 0 ) {\n return \"FALSE()\";\n } else if ( pieces.size() == 1 ) {\n return pieces.get( 0 );\n } else {\n\n // generate an OR(PIECE0;PIECE1;...) list\n\n StringBuilder buf = new StringBuilder();\n buf.append( FUNC_OR );\n buf.append( PARAM_LIST_BEGIN );\n int index = 0;\n for ( String piece : pieces ) {\n if ( index > 0 ) {\n buf.append( PARAM_SEPARATOR );\n }\n buf.append( piece );\n index++;\n }\n buf.append( PARAM_LIST_END );\n return buf.toString();\n }\n\n }", "Permeability getPermeability();", "public int getOrientation(){ return mOrientation; }", "public interface Orientation {\n\n int LEFT = 0; //左\n int TOP = 1; //顶\n int RIGHT = 2; //右\n int BOTTOM = 4; //底\n int ALL = 8; //所有方向\n int NONE = 16; //无方向\n\n}", "public double getPerimeter(){\n return side1 + side2 + side3;\n }", "public double getPerimeter(){\n if (getHeight()<0 || getWidth()<0){\n System.out.println(\"Input Invalid\");\n return -1;\n }\n return 2*( getHeight() + getWidth());\n }", "public double getPerimeter(){\n\t\tdouble p;\n\t\tp=getside1()+getside2()+getside3();\n\t\treturn p;\n\t}", "public interface User {\r\n\r\n /**\r\n * Is this user in a specified role?\r\n * @param roleName the name of the role\r\n * @return true if in role\r\n */\r\n public boolean hasRole(String roleName);\r\n\r\n /**\r\n * Remove a role. Implementation is optional\r\n */\r\n public void removeRole(String roleName) throws UnsupportedOperationException;\r\n\r\n /**\r\n * Adds a role to this user. Implementation is optional\r\n * @param roleName the name of the role\r\n */\r\n public void addRole(String roleName) throws UnsupportedOperationException;\r\n\r\n /**\r\n * Is this user in a specified group?\r\n * @param groupName\r\n * @return true if in group\r\n */\r\n public boolean inGroup(String groupName);\r\n\r\n /**\r\n * Remove a group. Implementation is optional\r\n * @param groupName\r\n */\r\n public void removeGroup(String groupName) throws UnsupportedOperationException;\r\n\r\n /**\r\n * Adds this user to a group. Implementation is optional\r\n * @param groupName\r\n */\r\n public void addGroup(String groupName) throws UnsupportedOperationException;\r\n\r\n /**\r\n * get user language\r\n * @return language string\r\n */\r\n\r\n public abstract String getLanguage();\r\n\r\n /**\r\n * get user name\r\n * @return name string\r\n */\r\n public abstract String getName();\r\n\r\n /**\r\n * get user password\r\n * @return password string\r\n */\r\n public abstract String getPassword();\r\n\r\n /**\r\n * get groups that user is in\r\n * @return\r\n */\r\n public abstract Collection getGroups();\r\n\r\n /**\r\n * get roles tha are assigned to user\r\n * @return\r\n */\r\n public abstract Collection getRoles();\r\n}", "@Override\n public double getPerimeter() {\n return 4 * ((int) this.radiusX + (int) this.radiusY - (4 - Math.PI) * ((int) this.radiusX * (int) this.radiusY) / ((int) this.radiusX + (int) this.radiusY));\n }", "java.util.List<? extends org.stu.projector.OrientationOrBuilder> \n getOrientationsOrBuilderList();", "public int getUserPlaneY() {\r\n\t\treturn levelManager.getUserPlaneY();\r\n\t}", "public Map<String, Boolean> getIsInRole() {\n return FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<String, Boolean>() {\n @Override\n public Boolean get(Object key) {\n return getUserTicket().isInRole(Role.valueOf((String) key));\n }\n });\n }", "public void setPortrait(String portrait) {\n this.portrait = portrait == null ? null : portrait.trim();\n }", "@Override\n\tpublic double getPerimeter() {\n\t\treturn side1 + side2 + side3;\n\t}", "protected String retrievePresentationStyle() {\n\n Configuration configuration = requireContext().getResources().getConfiguration();\n int wQualifier = configuration.screenWidthDp;\n int hQualifier = configuration.screenHeightDp;\n\n if (wQualifier >= 448 && hQualifier >= 448) {\n /* tablet */\n return \"drawer\";//\"dialog\";\n } else if (hQualifier >= 300 && (float) hQualifier / wQualifier >= 4f / 3) {\n /* mobile-portrait */\n return \"drawer\";//\"bottomsheet\";\n } else {\n /* mobile-landscape, mobile small screen */\n /* fullscreen */\n return \"fullscreen\";\n }\n }", "public List<IPropertyValidationRule> getRules() {\n\t\treturn _rules;\n\t}", "Rule getRule();", "public List<JRule> getAllRules(final String userToken) {\n System.out.println(\"Invoking getAllRules...\");\n logger.info(\"Invoking getAllRules...\");\n final JCredentials _getAllRules_credentials = new JCredentials();\n _getAllRules_credentials.setUserToken(userToken);\n final Holder<List<JRule>> _getAllRules_rules = new Holder<List<JRule>>();\n final JWebResult _getAllRules__return = port\n .getAllRules(_getAllRules_credentials, _getAllRules_rules);\n System.out.println(\"getAllRules.result=\" + _getAllRules__return);\n System.out.println(\"getAllRules._getAllRules_rules=\"\n + _getAllRules_rules.value);\n return _getAllRules_rules.value;\n }", "public SPResponse assignPortrait(User user, Object[] params) {\n final SPResponse resp = new SPResponse();\n \n HiringRoleForm form = (HiringRoleForm) params[0];\n form.validateAssign();\n return resp.add(MODULE_NAME, factory.assignPortrait(user, form));\n }", "public double perimeter(){\n perimeter = calcSide(x1,y1,x2,y2)+calcSide(x2,y2,x3,y3)+calcSide(x3,y3,x1,y1);\n \n \n \n return perimeter;\n \n \n }", "public interface AlternateRule {\n\n /**\n * Returns true if the given activity and user preferences indicates that this rule\n * is matched, and therefore that the modifications dictated by this rule should be applied\n * @param userInterface\n * @param prefs\n * @return\n */\n boolean condition(UserInterface userInterface, UserPreferences prefs);\n\n /**\n * Returns a new user interface that should be used if <code>condition</code> evaluated\n * to true.\n * @param userInterface\n * @param prefs\n * @return\n */\n UserInterface modify(UserInterface userInterface, UserPreferences prefs);\n\n}", "@Override\n\tpublic List<UserRole> buscarUserRoleSemPermissoes() {\n\t\t// TODO Auto-generated method stub\n\t\tQuery query = getCurrentSession().createQuery(\"select ur from UserRole ur where ur.permissions\");\n\t\treturn query.list();\n\t}", "@PostMapping(value = \"/readMediaRuleByUserId\")\n\tpublic @ResponseBody ResultVO readMediaRuleByUserId(HttpServletRequest req) {\n\t\tResultVO resultVO = new ResultVO();\n\t\tString userId = req.getParameter(\"userId\");\n\t\ttry {\n\t\t\tif (userId != null && userId.trim().length() > 0) {\n\t\t\t\tResultVO userRoleInfo = userService.getUserConfIdByUserId(userId);\n\t\t\t\tif (GPMSConstants.MSG_SUCCESS.equals(userRoleInfo.getStatus().getResult())) {\n\t\t\t\t\tUserRoleVO vo = (UserRoleVO) userRoleInfo.getData()[0];\n\t\t\t\t\tif (vo.getMediaRuleId() != null && vo.getMediaRuleId().length() > 0) {\n\t\t\t\t\t\tresultVO = getMediaRuleByRoleId(vo.getMediaRuleId(), GPMSConstants.RULE_GRADE_USER);\n\t\t\t\t\t\treturn resultVO;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// get role by deptCd in user\n\t\t\t\tuserRoleInfo = userService.getUserConfIdByDeptCdFromUserId(userId);\n\t\t\t\tif (GPMSConstants.MSG_SUCCESS.equals(userRoleInfo.getStatus().getResult())) {\n\t\t\t\t\tUserRoleVO vo = (UserRoleVO) userRoleInfo.getData()[0];\n\t\t\t\t\tif (vo.getMediaRuleId() != null && vo.getMediaRuleId().length() > 0) {\n\t\t\t\t\t\tresultVO = getMediaRuleByRoleId(vo.getMediaRuleId(), GPMSConstants.RULE_GRADE_DEPT);\n\t\t\t\t\t\treturn resultVO;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tresultVO = getMediaRuleByRoleId(null, GPMSConstants.RULE_GRADE_DEFAULT);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"error in readMediaRuleByUserId : {}, {}, {}\", GPMSConstants.CODE_SYSERROR,\n\t\t\t\t\tMessageSourceHelper.getMessage(GPMSConstants.MSG_SYSERROR), ex.toString());\n\t\t\tif (resultVO != null) {\n\t\t\t\tresultVO.setStatus(new StatusVO(GPMSConstants.MSG_FAIL, GPMSConstants.CODE_SYSERROR,\n\t\t\t\t\t\tMessageSourceHelper.getMessage(GPMSConstants.MSG_SYSERROR)));\n\t\t\t}\n\t\t}\n\n\t\treturn resultVO;\n\t}", "int getMaxRotation();", "public boolean getHonorConstraints()\r\n {\r\n return (m_honorConstraints);\r\n }", "@Override\r\n public double perimeter() {\n return (height+width)*2;\r\n }", "@Override\n public Boolean isCollegeManger(UserDTO user) {\n return user.getRoles().contains(RoleTypeEnum.COLLEGE);\n }", "public String[] getRoomConstraint(){\r\n return roomConstraint.clone();\r\n }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }" ]
[ "0.6174825", "0.5878791", "0.55211306", "0.54534674", "0.5344338", "0.5317424", "0.5260658", "0.5197364", "0.51371896", "0.50536716", "0.5051295", "0.5044453", "0.50310653", "0.49363557", "0.48837352", "0.48207888", "0.48200613", "0.48128206", "0.47435746", "0.47399238", "0.47173315", "0.47034013", "0.4696674", "0.4695376", "0.46908334", "0.46905014", "0.46860027", "0.46796006", "0.4669413", "0.4665777", "0.46538746", "0.46251997", "0.46176726", "0.46119076", "0.45947194", "0.4582331", "0.4552527", "0.45523664", "0.45523664", "0.45523664", "0.45523664", "0.45380324", "0.45331365", "0.4497227", "0.448733", "0.448733", "0.4484303", "0.44825858", "0.44804424", "0.44802925", "0.44802925", "0.44773936", "0.44743952", "0.4464826", "0.44609535", "0.44446898", "0.44294527", "0.44284797", "0.44238782", "0.44197044", "0.4415666", "0.4406532", "0.43919474", "0.4387044", "0.43861988", "0.4383908", "0.4381468", "0.43767947", "0.43755707", "0.43722993", "0.43684876", "0.43638533", "0.4359807", "0.4353281", "0.43432435", "0.43289638", "0.43116415", "0.43014732", "0.42959225", "0.42940888", "0.42937922", "0.42914987", "0.42870542", "0.42851704", "0.4285158", "0.42776075", "0.4268068", "0.42667645", "0.42639673", "0.42632437", "0.42632437", "0.42632437", "0.42632437", "0.42632437", "0.42632437", "0.42632437", "0.42632437", "0.42632437", "0.42632437", "0.42632437" ]
0.6596018
0
Set User portrait rules
public void setPortraitRule(BotPortraitRule PortraitRule) { this.PortraitRule = PortraitRule; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void needPortraitTest() {\n // TODO: test needPortrait\n }", "public void setPortrait(String portrait) {\n this.portrait = portrait == null ? null : portrait.trim();\n }", "public String getPortrait() {\n return portrait;\n }", "public BotPortraitRule getPortraitRule() {\n return this.PortraitRule;\n }", "public SPResponse assignPortrait(User user, Object[] params) {\n final SPResponse resp = new SPResponse();\n \n HiringRoleForm form = (HiringRoleForm) params[0];\n form.validateAssign();\n return resp.add(MODULE_NAME, factory.assignPortrait(user, form));\n }", "public boolean isPortrait() {\n return mState.isPortrait;\n }", "private static boolean isLandscapePortraitValue(String pageSizeChunk) {\n return CssConstants.LANDSCAPE.equals(pageSizeChunk) || CssConstants.PORTRAIT.equals(pageSizeChunk);\n }", "void setLandscape(boolean ls);", "public abstract void setRules (CellProfile rules);", "public interface UseLandscape {\n}", "public String getePortrait() {\n return ePortrait;\n }", "public void chechPortaitAndLandSacpe() {\n if (CompatibilityUtility.isTablet(BecomeHostLoginActivity.this)) {\n\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n } else {\n\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n }\n }", "void setOrientation(int orientation) {\n }", "public SPResponse removePortrait(User user, Object[] params) {\n final SPResponse resp = new SPResponse();\n \n HiringRoleForm form = (HiringRoleForm) params[0];\n form.validateGet();\n factory.removePortrait(user, form);\n return resp.isSuccess();\n }", "public void setePortrait(String ePortrait) {\n this.ePortrait = ePortrait == null ? null : ePortrait.trim();\n }", "void setVerticalResolution(int verticalResolution);", "public void setHeadPortrait(String headPortrait) {\n\t\tthis.headPortrait = headPortrait == null ? null : headPortrait.trim();\n\t}", "boolean getLandscape();", "public void setPerimeter() {\n\t\tthis.perimeter= 2*(height+width);\n\t}", "public void updateUserCapabilities() {\n\n currentUser = loginService.getLoggedInUser();\n UserPropertiesDao userPropertiesDao = db.userProperties;\n UserProperties userProperties = userPropertiesDao.findByUserId(currentUser.getId());\n SharedPreferences preferences = Objects.requireNonNull(userCapabilitiesFragment.getPreferenceManager().getSharedPreferences());\n\n userProperties.setHasKids(preferences.getBoolean(\"pref_kids\", false));\n userProperties.setHasCatAllergies(preferences.getBoolean(\"pref_cat_allergy\", false));\n userProperties.setHasDogAllergies(preferences.getBoolean(\"pref_dog_allergy\", false));\n userProperties.setGreenAreas(preferences.getBoolean(\"pref_garden\", false));\n userProperties.setFreeTime(preferences.getBoolean(\"pref_exercise\", false));\n userPropertiesDao.update(userProperties);\n }", "public void chechPortaitAndLandSacpe() {\n if (CompatibilityUtility.isTablet(BecomeHostActivity.this)) {\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n } else {\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n }\n }", "@Override\n public void ChangeMode() {\n if (getRequestedOrientation() != ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {\n\n\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n\n WindowManager.LayoutParams attrs = getWindow().getAttributes();\n attrs.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;\n getWindow().setAttributes(attrs);\n getWindow().addFlags(\n WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);\n\n\n RelativeLayout.LayoutParams layoutParams =\n new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.FILL_PARENT);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);\n\n videoView.setLayoutParams(layoutParams);\n otherview.setVisibility(View.GONE);\n\n ivSendGift.setVisibility(View.GONE);\n\n\n } else {\n\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\n WindowManager.LayoutParams attrs = getWindow().getAttributes();\n attrs.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN);\n getWindow().setAttributes(attrs);\n getWindow().clearFlags(\n WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);\n\n\n RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, 240);\n ivSendGift.setVisibility(View.VISIBLE);\n videoView.setLayoutParams(lp);\n otherview.setVisibility(View.VISIBLE);\n\n\n }\n }", "private void flipOrientation() {\n try {\n if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_0) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_180);\n } else if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_90) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_270);\n } else if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_180) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_0);\n } else {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_90);\n }\n } catch (Settings.SettingNotFoundException e) {\n Log.e(TAG, e.getMessage());\n }\n }", "@Override\n public void setRole(User u) {\n loginTrue(u.getName());\n uRole = u.getUserRole();\n switch (uRole) {\n case 1:\n nhanvien.setEnabled(true);\n break;\n case 2:\n quanly.setEnabled(false);\n break;\n case 3:\n break;\n case 4:\n dathang.setEnabled(false);\n break;\n case 5:\n baocao.setEnabled(false);\n break;\n }\n }", "public void setOrientation(Direction orientation);", "@Override\n\tpublic void setOrientation(float orientation) {\n\t\t\n\t}", "private void setPrivilagesToModifyUser(User user){\n\t\tsetFields(false);\n\t\tif (!LoginWindowController.loggedUser.getPermissions().equals(\"administrator\"))\n\t\t{\n\t\t\tif (LoginWindowController.loggedUser.getId() != user.getId()){\n\t\t\t\tif ((user.getPermissions().equals(\"manager\")) \n\t\t\t\t\t\t|| (user.getPermissions().equals(\"administrator\"))){\n\t\t\t\t\tsetFields(true);\n\t\t\t\t}\n\t\t\t\tif (user.getPermissions().equals(\"pracownik\")){\n\t\t\t\t\tsetFields(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tsetFields(false);\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (LoginWindowController.loggedUser.getId() == user.getId()){\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t\tuserPermissionsBox.setDisable(true);\n\t\t\t}\n\t\t}\n\t}", "public void onSetOrientation() {\n }", "public abstract void setRequestedOrientation(int requestedOrientation);", "@Override\n public final void switchUserMode() {\n }", "private void setLayout() {\n int orientation = getResources().getConfiguration().orientation;\n // if the orientation is Portrait\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n if (!webViewFragment.isAdded()) {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 0f));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 3f));\n\n }\n }\n else { // if the orientation is Landscape\n if (!webViewFragment.isAdded()) {\n\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n // Make the LandmarkLayout take 1/3 of the layout's width\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n // Make the WebPageLayout take 2/3's of the layout's width\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n }\n }", "public void setPreferredVerticalOrientation(@VerticalOrientation int orientation) {\n mPreferredVerticalOrientation = orientation;\n }", "public void switchOr() {\n if (orientation == 1) {\n orientation = 0;\n }\n else {\n orientation = 1;\n }\n }", "public void setMode(int mode) {\r\n switch (mode) {\r\n case CentroidUserObject.VARIANCES_MODE:\r\n setDrawVariances(true);\r\n setDrawValues(false);\r\n break;\r\n case CentroidUserObject.VALUES_MODE:\r\n setDrawVariances(false);\r\n setDrawValues(true);\r\n break;\r\n }\r\n }", "public void setMatrixUserChoices(int x1, int y1, int x2, int y2) {\n int menorX = 0, maiorX = 0, menorY = 0, maiorY = 0;\n \n if (x1 >= x2){\n maiorX = x1;\n menorX = x2;\n }\n else{\n maiorX = x2;\n menorX = x1;\n }\n \n if (y1 >= y2){\n maiorY = y1;\n menorY = y2;\n }\n else{\n maiorY = y2;\n menorY = y1;\n }\n \n for(int i = menorX; i <= maiorX; i++){\n for(int j = menorY; j <= maiorY; j++){\n if(gameMatrix[i][j] > 0){\n matrixUserChoices[i][j] = 1;\n booleanMatrixUserChoices[i][j] = 1;\n }\n else{\n matrixUserChoices[i][j] = -1;\n }\n }\n }\n \n verifyDestroyedBoatsOnLines();\n verifyDestroyedBoatsOnColumns();\n }", "public void setOrientation(Opts.ScreenOrientations orient) {\r\n\t\trealOrientation = orient;\r\n\t}", "@Override\n public void onConfigurationChanged(Configuration config) {\n super.onConfigurationChanged(config);\n\n if (config.orientation == Configuration.ORIENTATION_PORTRAIT) {\n\n } else if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n\n }\n }", "public void setOrientation(int orientation){\n //save orientation of phone\n mOrientation = orientation;\n }", "public BotPortraitRule(BotPortraitRule source) {\n if (source.RuleID != null) {\n this.RuleID = new Long(source.RuleID);\n }\n if (source.AlgManagedIds != null) {\n this.AlgManagedIds = new Long[source.AlgManagedIds.length];\n for (int i = 0; i < source.AlgManagedIds.length; i++) {\n this.AlgManagedIds[i] = new Long(source.AlgManagedIds[i]);\n }\n }\n if (source.CapManagedIds != null) {\n this.CapManagedIds = new Long[source.CapManagedIds.length];\n for (int i = 0; i < source.CapManagedIds.length; i++) {\n this.CapManagedIds[i] = new Long(source.CapManagedIds[i]);\n }\n }\n if (source.MonManagedIds != null) {\n this.MonManagedIds = new Long[source.MonManagedIds.length];\n for (int i = 0; i < source.MonManagedIds.length; i++) {\n this.MonManagedIds[i] = new Long(source.MonManagedIds[i]);\n }\n }\n if (source.DropManagedIds != null) {\n this.DropManagedIds = new Long[source.DropManagedIds.length];\n for (int i = 0; i < source.DropManagedIds.length; i++) {\n this.DropManagedIds[i] = new Long(source.DropManagedIds[i]);\n }\n }\n if (source.Switch != null) {\n this.Switch = new String(source.Switch);\n }\n }", "private void normalizeOrientation() {\n\t\twhile (this.orientation >= 2 * Math.PI) {\n\t\t\torientation -= 2 * Math.PI;\n\t\t}\n\t\twhile (this.orientation < 0) {\n\t\t\torientation += 2 * Math.PI;\n\t\t}\n\t}", "private void mLockScreenRotation()\n {\n switch (this.getResources().getConfiguration().orientation)\n {\n case Configuration.ORIENTATION_PORTRAIT:\n this.setRequestedOrientation(\n \t\tActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n break;\n case Configuration.ORIENTATION_LANDSCAPE:\n this.setRequestedOrientation(\n \t\tActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n break;\n }\n }", "private void setPerms() {\n int oPerm = 0; // Owner permissions\n int gPerm = 0; // Group permissions\n int aPerm = 0; // All (other) permissions\n\n // Set owner permissions digit\n if (ownerRead.isSelected()) oPerm += 4; // Read\n if (ownerWrite.isSelected()) oPerm += 2; // Write\n if (ownerExe.isSelected()) oPerm += 1; // Execute\n\n // Set group permissions digit\n if (groupRead.isSelected()) gPerm += 4; // Read\n if (groupWrite.isSelected()) gPerm += 2; // Write\n if (groupExe.isSelected()) gPerm += 1; // Execute\n\n // Set all permissions digit\n if (allRead.isSelected()) aPerm += 4; // Read\n if (allWrite.isSelected()) aPerm += 2; // Write\n if (allExe.isSelected()) aPerm += 1; // Execute\n\n // Concatenate digits into chmod code\n String perms = Integer.toString(oPerm) + Integer.toString(gPerm) + Integer.toString(aPerm);\n //System.out.println(perms); // just for testing\n\n FTPReply chmodReply;\n try {\n // Set file permissions\n chmodReply = client.sendSiteCommand(\"chmod \" + perms + \" \" + theFile);\n System.out.println(chmodReply.toString());\n }\n catch (FTPIllegalReplyException | IOException e) {\n e.printStackTrace();\n }\n }", "public SPResponse getRolesWithoutPortrait(User user) {\n final SPResponse resp = new SPResponse();\n \n return resp.add(MODULE_NAME + \"List\", factory.getRolesWithoutPortrait(user));\n }", "public String getOrientation() {\n\n if(getResources().getDisplayMetrics().widthPixels > \n getResources().getDisplayMetrics().heightPixels) { \n return \"LANDSCAPE\";\n } else {\n return \"PORTRAIT\";\n } \n \n }", "private void changePermissionsInUI(int position) {\n if (permissions.get(position).equals(\"Viewer\")) {\n permissions.set(position, \"Editor\");\n items.set(position, users.get(position) + \": Editor\");\n Toast.makeText(RoomSettingsActivity.this, users.get(position) + \" has been changed to an Editor\", Toast.LENGTH_SHORT).show();\n } else if (permissions.get(position).equals(\"Editor\")) {\n permissions.set(position, \"Viewer\");\n items.set(position, users.get(position) + \": Viewer\");\n Toast.makeText(RoomSettingsActivity.this, users.get(position) + \" has been changed to a Viewer\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\tpublic String checkPermision(String user, String userType) {\n\t\treturn null;\n\t}", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n try {\n super.onConfigurationChanged(newConfig);\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n\n } else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void setNominalPositionAndOrientation() {\n // Nothing to do for absolute position/orientation device.\n }", "public interface AlternateRule {\n\n /**\n * Returns true if the given activity and user preferences indicates that this rule\n * is matched, and therefore that the modifications dictated by this rule should be applied\n * @param userInterface\n * @param prefs\n * @return\n */\n boolean condition(UserInterface userInterface, UserPreferences prefs);\n\n /**\n * Returns a new user interface that should be used if <code>condition</code> evaluated\n * to true.\n * @param userInterface\n * @param prefs\n * @return\n */\n UserInterface modify(UserInterface userInterface, UserPreferences prefs);\n\n}", "private void updateSettings() {\n Settings.System.putInt(getActivity().getContentResolver(),\n Settings.System.QS_COLUMNS_PORTRAIT, portColumnsValue);\n Settings.System.putInt(getActivity().getContentResolver(),\n Settings.System.QS_ROWS_PORTRAIT, portRowsValue);\n Settings.System.putInt(getActivity().getContentResolver(),\n Settings.System.QS_COLUMNS_LANDSCAPE, landColumnsValue);\n Settings.System.putInt(getActivity().getContentResolver(),\n Settings.System.QS_ROWS_LANDSCAPE, landRowsValue);\n }", "@Test\n public final void testIsOrientation() {\n boolean result = ship.isOrientation();\n assertTrue(result);\n this.ship.setOrientation(false);\n result = ship.isOrientation();\n assertFalse(result);\n }", "public static boolean isPortrait(Configuration configuration) {\n return configuration.orientation == Configuration.ORIENTATION_PORTRAIT;\n }", "void setNoOrientation(boolean orientation);", "public void setOrientation(Orientation orientation)\n {\n this.orientation = orientation;\n }", "private void setModeUI(){\n\n if (this.inManualMode == true){ this.enableRadioButtons(); } // manual mode\n else if (this.inManualMode == false){ this.disableRadioButtons(); } // automatic mode\n }", "@GuardedBy(\"getLockObject()\")\n private void applyProfileRestrictionsIfDeviceOwnerLocked() {\n final int doUserId = mOwners.getDeviceOwnerUserId();\n if (doUserId == UserHandle.USER_NULL) {\n if (VERBOSE_LOG) Slogf.d(LOG_TAG, \"No DO found, skipping application of restriction.\");\n return;\n }\n\n final UserHandle doUserHandle = UserHandle.of(doUserId);\n\n // Based on CDD : https://source.android.com/compatibility/12/android-12-cdd#95_multi-user_support,\n // creation of clone profile is not allowed in case device owner is set.\n // Enforcing this restriction on setting up of device owner.\n if (!mUserManager.hasUserRestriction(\n UserManager.DISALLOW_ADD_CLONE_PROFILE, doUserHandle)) {\n mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_CLONE_PROFILE, true,\n doUserHandle);\n }\n // Creation of managed profile is restricted in case device owner is set, enforcing this\n // restriction by setting user level restriction at time of device owner setup.\n if (!mUserManager.hasUserRestriction(\n UserManager.DISALLOW_ADD_MANAGED_PROFILE, doUserHandle)) {\n mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, true,\n doUserHandle);\n }\n }", "public void configureDisplayPolicy() {\n int longSize;\n int shortSize;\n if (this.mBaseDisplayDensity == 0) {\n Slog.e(TAG, \"density is 0\");\n return;\n }\n int width = this.mBaseDisplayWidth;\n int height = this.mBaseDisplayHeight;\n if (width > height) {\n shortSize = height;\n longSize = width;\n } else {\n shortSize = width;\n longSize = height;\n }\n int i = this.mBaseDisplayDensity;\n this.mDisplayPolicy.updateConfigurationAndScreenSizeDependentBehaviors();\n this.mDisplayRotation.configure(width, height, (shortSize * 160) / i, (longSize * 160) / i);\n DisplayFrames displayFrames = this.mDisplayFrames;\n DisplayInfo displayInfo = this.mDisplayInfo;\n displayFrames.onDisplayInfoUpdated(displayInfo, calculateDisplayCutoutForRotation(displayInfo.rotation));\n this.mIgnoreRotationForApps = isNonDecorDisplayCloseToSquare(0, width, height);\n }", "public void setResolution(byte resolution) throws IOException {\n byte userRegister = read_user_register(); //Go get the current register state\n userRegister &= 0b01111110; //Turn off the resolution bits\n resolution &= 0b10000001; //Turn off all other bits but resolution bits\n userRegister |= resolution; //Mask in the requested resolution bits\n\n HTU21D.WRITE_USER_REG.write(device, userRegister);\n\n }", "public PermitRuleUVORowImpl() {\n }", "protected void onTraitChange(){}", "public void switchWindowSizeToTabletPortrait(WebDriver driver) throws InterruptedException, IOException {\n\tdriver.manage().window().setSize(new Dimension(768, 1024));\n\tfileWriterPrinter(\"\\n\" + \"CONVERTED TO WINDOW SIZE: TABLET (PORTRAIT) = 768 x 1024\");\n\tThread.sleep(1000);\n\t}", "@Override\n public void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user) {\n }", "String getLockOrientationPref();", "void orientation(double xOrientation, double yOrientation, double zOrientation);", "private void setProfileUNr(){\n Set<Hole> holeSet = createHoleSetWithUNr();\n\n for (Profile profile:profiles){\n\n for (Hole hole:profile.getHoles()) {\n setHoleUNr(hole,holeSet);\n }\n\n }\n }", "public abstract CellProfile getRules();", "private void determineOrientation(float[] rotationMatrix) {\n\t\t\t float[] orientationValues = new float[3];\n\t\t SensorManager.getOrientation(rotationMatrix, orientationValues);\n\t\t double azimuth = Math.toDegrees(orientationValues[0]);\n\t\t double pitch = Math.toDegrees(orientationValues[1]);\n\t\t double roll = Math.toDegrees(orientationValues[2]);\n\t\t if (pitch <= 10)\n\t\t { \n\t\t if (Math.abs(roll) >= 170)\n\t\t {\n\t\t onFaceDown();\n\t\t }\n\t\t else if (Math.abs(roll) <= 10)\n\t\t {\n\t\t onFaceUp();\n\t\t }\n\t\t }\n\t\t\t\n\t\t}", "public void onMirrorVertical() {\n mirror(TransformDesign.MIRROR_VERTICAL, 0.0f);\n }", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n }", "private static void SetMode() {\n Enum[] modes = {Mode.SINGLEPLAYER, Mode.MULTIPLAYER};\r\n // setting GameMode by passing in array to validator which will prompt what Enum is wanted\r\n Game.GameMode = (Mode) Validator.Mode(modes);\r\n }", "@Override\n\tpublic void onUserChangeRoomProperty(RoomData arg0, String arg1,\n\t\t\tHashMap<String, Object> arg2, HashMap<String, String> arg3) {\n\t\t\n\t}", "@Override\n public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n setContentView(R.layout.activity_main);\n if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) {\n CamB.setRotation(0);\n\n } else if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {\n CamB.setRotation(90);\n }\n }", "int getVerticalResolution();", "String getPreviewRotationPref();", "public void setUserPreferences (int outdoorPref, int nightlifePref, int hotelPref, int shoppingPref, int restaurantPref) {\n\t\tpreferences.clear(); \n\t\tpreferences.add(outdoorPref); \n\t\tpreferences.add(nightlifePref); \n\t\tpreferences.add(hotelPref); \n\t\tpreferences.add(shoppingPref); \n\t\tpreferences.add(restaurantPref); \n\t}", "private boolean isFlipped(){\n switch(this.orientation){\n case \"0\": case\"1\": case\"2\": case\"3\": return false;\n case \"4\": case\"5\": case\"6\": case\"7\": return true;\n default: return false;\n }\n }", "public int getOrientation(){ return mOrientation; }", "protected void setOrientation(int n) {\n if (this.mStateMachine.isRecording()) {\n super.setOrientation(n, this.mRecordingOrientation);\n } else {\n super.setOrientation(n);\n }\n if (this.isHeadUpDesplayReady()) {\n if (this.mSettingDialogStack != null) {\n this.mSettingDialogStack.setUiOrientation(n);\n }\n this.mSceneIndicatorIcon.setRotation(RotationUtil.getAngle(this.getOrientationForUiNotRotateInRecording()));\n this.mConditionIndicatorIcon.setRotation(RotationUtil.getAngle(this.getOrientationForUiNotRotateInRecording()));\n this.mSceneIndicatorText.setAnimation(null);\n this.mSceneIndicatorText.setVisibility(4);\n if (this.mAutoReview != null) {\n this.mAutoReview.setOrientation(n);\n }\n if (this.mFocusRectangles != null) {\n this.mFocusRectangles.setOrientation(n);\n }\n if (this.mSelfTimerCountDownView != null) {\n this.mSelfTimerCountDownView.setSensorOrientation(n);\n }\n }\n }", "public void setRotation(){\n\t\t\tfb5.accStop();\n\t\t\twt.turning = true;\n\t\t\tif(state == BotMove.RIGHT_15){\n\t\t\t\tfb5.turnRightBy(6);\n\t\t\t\tangle = (angle+360-20)%360;\n\t\t\t}\n\t\t\telse if(state == BotMove.RIGHT_10){\n\t\t\t\tfb5.turnRightBy(3);\n\t\t\t\tangle = (angle+360-10)%360;\n\t\t\t}\n\t\t\telse if(state == BotMove.LEFT_5){\n\t\t\t\tfb5.turnLeftBy(2);\n\t\t\t\tangle = (angle+360+5)%360;\n\t\t\t}\n\t\t}", "@Override\n public Boolean isCollegeManger(UserDTO user) {\n return user.getRoles().contains(RoleTypeEnum.COLLEGE);\n }", "@ApiModelProperty(value = \"头像\")\n\tpublic String getHeadPortrait() {\n\t\treturn headPortrait;\n\t}", "public void setOrient(int face) {\n if (abs(face) == BLUE && onSide(face)) {\n orient *= -1;\n }\n }", "public final void setOrientation(Orientation value) {\n orientationProperty().set(value);\n }", "@Override\n public void setOrientation(Orientation orientation) {\n this.orientation = orientation;\n }", "public void VuforiaOrientator() {\n }", "@Override\n\t\t\t\tpublic void onClick(View button) {\n\t\t\t\t\tInteger screenOrientation=0;\n\t\t\t\t\tif(btn_portrait==button)\n\t\t\t\t\t\tscreenOrientation=ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;\n\t\t\t\t\telse if(btn_rportrait==button)\n\t\t\t\t\t\tscreenOrientation=ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT;\n\t\t\t\t\t\n\t\t\t\t\tchangeScreenStatus(screenOrientation,sourcebitmap);\n\t\t\t\t\tMainActivity.Instance.PlayerSetting.setScreenOrientation(screenOrientation.toString());\n\t\t\t\t\tif(oldScreenOrientation!=screenOrientation)\n\t\t\t\t\t\tisModifyScreen=true;\n\t\t\t\t\telse {\n\t\t\t\t\t\tisModifyScreen=false;\n\t\t\t\t\t}\n\t\t\t\t}", "public abstract float doLandscapeLayout(float screenWidth, float screenHeight);", "public void setPitchRange(float range) {\n\tthis.range = range;\n }", "public void switchWindowSizeToMobilePortrait(WebDriver driver) throws InterruptedException, IOException {\n driver.manage().window().setSize(new Dimension(430,857));\n fileWriterPrinter(\"\\n\" + \"CONVERTED TO WINDOW SIZE: MOBILE (PORTRAIT) = 430 x 857\");\n Thread.sleep(1000);\n\t}", "@Override\n protected void screenMode(int mode) {\n\n }", "public void setUserSex(String userSex) {\n this.userSex = userSex;\n }", "protected void setRoom() {\n\t\tfor(int x = 0; x < xSize; x++) {\n\t\t\tfor (int y = 0; y < ySize; y++) {\n\t\t\t\tif (WALL_GRID[y][x] == 1) {\n\t\t\t\t\tlevelSetup[x][y] = new SimpleRoom();\n\t\t\t\t} else{\n\t\t\t\t\tlevelSetup[x][y] = new ForbiddenRoom();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t// put special rooms\n\t\tlevelSetup[6][0] = new RoomWithLockedDoor();\n\t\tlevelSetup[2][6] = new FragileRoom();\n\n\t}", "public void setVideoDisplayRotate90() {\n float ratio = (float)panel_height/panel_width;\n RelativeLayout.LayoutParams params = null;\n int videoHeight = panel_height;\n int videoWidth = panel_height * panel_height / panel_width;\n Log.i(TAG, \"--- setVideoDisplayRotate90--- mScreenResolutionWidth:\" + panel_width + \" screenHeight:\"\n + panel_height + \" ratio:\" + ratio + \" videoWidth:\" + videoWidth);\n params = new RelativeLayout.LayoutParams(videoWidth , videoHeight);\n video_ly.setLayoutParams(params);\n }", "public void setTrait2(String trait2) {\n \t\tthis.trait2 = trait2;\n \t}", "public void adjustShooterAngleManual() {\n\n // If the driver pushes the Square Button on the PS4 Controller,\n // set the worm drive motors to go backwards (lower it).\n if (PS4.getRawButton(PS4_X_BUTTON) == true) {\n\n wormDriveMotors.set(-0.2);\n\n // If the driver pushes the Triangle Button on the PS4 Controller,\n // set the worm drive motors to go forwards (raise it up).\n } else if (PS4.getRawButton(PS4_SQUARE_BUTTON) == true) {\n\n wormDriveMotors.set(0.4);\n }\n\n // If the driver is an idiot and is pressing BOTH the Square Button AND the\n // Triangle Button at the same time, OR (||) if the driver is pushing neither\n // button, set the motor speed to 0.\n else if (((PS4.getRawButton(PS4_X_BUTTON) == true) && (PS4.getRawButton(PS4_SQUARE_BUTTON) == true))\n || ((PS4.getRawButton(PS4_X_BUTTON) == false) && (PS4.getRawButton(PS4_SQUARE_BUTTON) == false))) {\n\n wormDriveMotors.set(0);\n }\n\n }", "@Override\n public void setKeepsOrientation(boolean value) {\n this.keepsOrientation = value;\n }", "@Test\n public void testCondition4()\n {\n Double[] angles = {75.0, 75.0, 71.0};\n _renderable.orientation(angles);\n Double testVal[] = _renderable.orientation();\n assertEquals(\"x angle did not get set,\", angles[0], testVal[0], 2);\n assertEquals(\"y angle did not get set,\", angles[1], testVal[1], 2);\n assertEquals(\"z angle did not get set,\", angles[2], testVal[2], 2);\n }", "public void setOrientation(EditText facingCompass){\n if (facingCompass.getText().toString().matches(\"NORTH\")) {\n orientation = 0;\n rotateRight = orientation;\n angleF = 0;\n\n } else if (facingCompass.getText().toString().matches(\"EAST\")) {\n orientation = 1;\n rotateRight = orientation;\n angleF = 90;\n\n } else if (facingCompass.getText().toString().matches(\"SOUTH\")) {\n orientation = 2;\n rotateRight = orientation;\n angleF = 180;\n\n } else if (facingCompass.getText().toString().matches(\"WEST\")) {\n orientation = 3;\n rotateRight = orientation;\n angleF = 270;\n\n } else\n errorMessage(\"Invalid F Direction...\\ndefaulted to NORTH\");\n return;\n }", "public String orientation()\n {\n int height = cat.getWidth();\n int width = cat.getHeight();\n\n if (height >= width)\n {\n return \"landscape\";\n }\n else \n {\n return \"portrait\";\n\n }\n }", "@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\t}" ]
[ "0.6098115", "0.607234", "0.58695424", "0.585157", "0.57382", "0.54843056", "0.5294623", "0.5281458", "0.5253401", "0.5168715", "0.5121458", "0.50903904", "0.5069025", "0.50497895", "0.5046554", "0.4984021", "0.49243498", "0.49167544", "0.48939037", "0.486385", "0.48578486", "0.48344192", "0.48209354", "0.48170796", "0.47874114", "0.4770124", "0.4766593", "0.4755632", "0.47199532", "0.46980652", "0.4696288", "0.46874943", "0.4666263", "0.46659753", "0.46546757", "0.46497464", "0.46205273", "0.46183938", "0.46032766", "0.4592972", "0.4557332", "0.45425227", "0.45339653", "0.45299608", "0.4526215", "0.45134494", "0.4507785", "0.45017704", "0.44857082", "0.44835523", "0.44805706", "0.44647607", "0.446059", "0.44599128", "0.44333953", "0.4429712", "0.44275424", "0.4417136", "0.44170603", "0.44104382", "0.44029343", "0.43960732", "0.43921304", "0.4380222", "0.4376433", "0.43711475", "0.4352667", "0.43509215", "0.43492052", "0.43467903", "0.43423277", "0.43403947", "0.4335296", "0.43341202", "0.43313894", "0.43257466", "0.43230873", "0.43227285", "0.43192205", "0.43159887", "0.43004954", "0.4299358", "0.429918", "0.429665", "0.4291947", "0.42813608", "0.42808303", "0.427143", "0.4270322", "0.4269302", "0.42675045", "0.42658365", "0.4257446", "0.42550436", "0.42543074", "0.42540535", "0.42503652", "0.42466027", "0.42450494", "0.42428172" ]
0.6929175
0
Get Bot intelligence rules Note: This field may return null, indicating that no valid values can be obtained.
public IntelligenceRule getIntelligenceRule() { return this.IntelligenceRule; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<RulesEngineRule> rules() {\n return this.innerProperties() == null ? null : this.innerProperties().rules();\n }", "public abstract List<NARule> getRules(Context context);", "public Rules getRules()\r\n {\r\n return rules;\r\n }", "String getRules();", "public List<Rule> getRules() {\r\n\t\treturn rules;\r\n\t}", "public ArrayList<String> getRules() {\n return rules;\n }", "public com.walgreens.rxit.ch.cda.StrucDocTable.Rules.Enum getRules()\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(RULES$26);\n if (target == null)\n {\n return null;\n }\n return (com.walgreens.rxit.ch.cda.StrucDocTable.Rules.Enum)target.getEnumValue();\n }\n }", "List<? extends Rule> getRules();", "@Override\n public List getRules() {\n return rules;\n }", "@Override\n public ResponseEntity<List<Rule>> getRules() {\n\n String apiKeyId = (String) servletRequest.getAttribute(\"Application\");\n Optional<List<RuleEntity>> ruleEntities = ruleRepository.findByApiKeyEntityValue(apiKeyId);\n List<Rule> rules = new ArrayList<>();\n\n if (ruleEntities.isPresent()) {\n for (RuleEntity ruleEntity : ruleEntities.get()) {\n rules.add(toRule(ruleEntity));\n }\n }\n\n return ResponseEntity.ok(rules);\n }", "public String getRules() { \n\t\treturn getRulesElement().getValue();\n\t}", "java.util.List<? extends com.appscode.api.kubernetes.v1beta2.RuleOrBuilder> \n getRulesOrBuilderList();", "public java.lang.String GetRules() throws IOException {\r\n java.lang.String RulesString = new java.lang.String();\r\n Scanner scanner = new Scanner(new FileInputStream(RulesFile), \"UTF-8\");\r\n while (scanner.hasNextLine()) {\r\n RulesString = RulesString + scanner.nextLine() + \"\\n\";\r\n }\r\n return RulesString;\r\n }", "com.google.protobuf.ByteString\n getRuleBytes();", "com.appscode.api.kubernetes.v1beta2.RuleOrBuilder getRulesOrBuilder(\n int index);", "public ArrayList<BinaryRule> getRules() {\n\t\treturn mBinaryRules;\n\t}", "com.appscode.api.kubernetes.v1beta2.Rule getRules(int index);", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public final RuleBaseFacility getRules()\n{\n\treturn _rules;\n}", "public abstract CellProfile getRules();", "java.util.List<com.appscode.api.kubernetes.v1beta2.Rule> \n getRulesList();", "com.google.privacy.dlp.v2.CustomInfoType.DetectionRule getDetectionRules(int index);", "java.util.List<com.google.privacy.dlp.v2.CustomInfoType.DetectionRule> getDetectionRulesList();", "public ArrayList<NetworkSecurityRule> getRules() {\n return this.rules;\n }", "public static Set<RelOptRule> elasticSearchRules() {\n Set<RelOptRule> rules = Arrays.stream(ElasticsearchRules.RULES)\n .filter(RULE_PREDICATE)\n .collect(Collectors.toSet());\n rules.add(ENUMERABLE_INTERMEDIATE_PREL_CONVERTER_RULE);\n rules.add(ELASTIC_DREL_CONVERTER_RULE);\n rules.add(ElasticsearchProjectRule.INSTANCE);\n rules.add(ElasticsearchFilterRule.INSTANCE);\n return rules;\n }", "public List<IPropertyValidationRule> getRules() {\n\t\treturn _rules;\n\t}", "Rule getRule();", "public abstract List<EventRule> getEventRulesOfSentence();", "public BoundCodeDt<SlicingRulesEnum> getRulesElement() { \n\t\tif (myRules == null) {\n\t\t\tmyRules = new BoundCodeDt<SlicingRulesEnum>(SlicingRulesEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myRules;\n\t}", "List<RuleInfo> listRulesInfo() throws IOException;", "public List<Rule> findAll();", "public com.vsp.bl.product.dto.cob.v002.COBExceptionRule[] getCobExceptionRules() {\n return cobExceptionRules;\n }", "public com.walgreens.rxit.ch.cda.StrucDocTable.Rules xgetRules()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocTable.Rules target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocTable.Rules)get_store().find_attribute_user(RULES$26);\n return target;\n }\n }", "java.util.List<? extends com.google.privacy.dlp.v2.CustomInfoType.DetectionRuleOrBuilder>\n getDetectionRulesOrBuilderList();", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "List<WF3RulesBean> getWF3RulesBeans();", "java.lang.String getRule();", "public List<DecisionCoverage> getRuleCoverages() {\r\n\t\tif ((executionTrace != null) && (ruleCoverages == null)) {\r\n\t\t\tcomputeRuleCountTuples();\r\n\t\t}\r\n\t\treturn ruleCoverages;\r\n\t}", "public String getRule() {\r\n return rule;\r\n }", "protected List<DumpRule> ruleList(){\n\t\tList<DumpRule> drList = new ArrayList<DumpRule>();\n\t\tString lineStrs = ruleText.getText();\n\t\ttry{\n\t\t\tString[] lines = lineStrs.split(\"\\n\");\n\t\t\tDumpRule currentDr = null;\n\t\t\tfor(int index=0,size=lines.length; index<size; index++){\n\t\t\t\tString line=lines[index];\n\t\t\t\tif(line.indexOf(TB_COL_SPlit)!=-1){\n\t\t\t\t\tcurrentDr = addTbColRule(line);\n\t\t\t\t\tdrList.add(currentDr);\n\t\t\t\t}else if(line.indexOf(RULE_COL_SPlit)!=-1){\n\t\t\t\t\tString[] kvs = line.split(RULE_COL_SPlit);\n\t\t\t\t\tif(kvs!=null && kvs.length==2){\n\t\t\t\t\t\tcurrentDr.addRule(kvs[0].trim(), kvs[1].trim());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tapp.log(\"规则输入错误..\");\n\t\t}\n\t\treturn drList;\n\t}", "public java.lang.Integer getMaxRulesPerEntity() {\n return maxRulesPerEntity;\n }", "@Deprecated\n public List<V1IngressRule> getRules();", "public HashMap<String,Rule> get_rules_to_action() throws Exception;", "public List<RuleDocumentation> getNativeRules() {\n return nativeRules;\n }", "public R getRule() {\n return this.rule;\n }", "@Override\n public List<Rule> getPriceRules() {\n return List.of(getMatchTravelCardHolderRule());\n }", "public GameRules getGameRulesInstance()\n {\n return theGameRules;\n }", "@GET(\"pushrules/\")\n Call<PushRulesResponse> getAllRules();", "com.google.privacy.dlp.v2.CustomInfoType.DetectionRuleOrBuilder getDetectionRulesOrBuilder(\n int index);", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getRule() {\n return rule;\n }", "public IRule getRule()\n\t{\n\t\treturn this.rule;\n\t}", "List<TAlgmntBussRule> getBusinessRuleValue(Long alignmentId, Long businessUnitId, Long salesTeamId, String ruleName, Short tenantId);", "public com.google.protobuf.ByteString\n getRuleBytes() {\n java.lang.Object ref = rule_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rule_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.util.List<ExcludedRule> getExcludedRules() {\n return excludedRules;\n }", "private Set<Condition> getConditions(List<RuleInstance> rules)\n{\n Set<Condition> conds = new HashSet<Condition>();\n\n getTimeConditions(rules,conds);\n getSensorConditions(rules,conds);\n getCalendarConditions(rules,conds);\n\n return null;\n}", "@Path(\"rules/{id}\")\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n public Trigger getRule(@PathParam(\"id\") String id) {\n return ContextManager.getInstance().getRuleById(id);\n }", "int getRulesCount();", "@Bean\n public RulesEngine getRulesEngine() {\n return new DefaultRulesEngine(new RulesEngineParameters().skipOnFirstAppliedRule(false));\n }", "String rulesAsText();", "List<T> getRuleTargets();", "@Override\n public List<Rule> getTotalRules() {\n return List.of(getTotalGreaterThan60Rule());\n }", "public ItineraryCancellationRules getItineraryCancellationRules(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.itinerarycancellationrules.v1.ItineraryCancellationRules res){\n\t\t\n\t\tItineraryCancellationRules rules = new ItineraryCancellationRules();\n\t\trules.setSkedInfoRules( res.getSkedInfoRules() );\n\t\t\n\t\treturn rules;\n\t}", "public HashMap<String,ArrayList<Rule_in_State>> get_rules_of_next_state() throws Exception;", "public String getRule() {\n\t\treturn this.rule;\n\t}", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }", "public ParserRule getRule() { return rule; }" ]
[ "0.69332165", "0.68263507", "0.67834586", "0.6698712", "0.6588499", "0.6568554", "0.6540804", "0.652638", "0.64900655", "0.6429881", "0.62923706", "0.6172364", "0.6108502", "0.6067037", "0.6059453", "0.6039553", "0.603478", "0.59997505", "0.59997505", "0.59997505", "0.59997505", "0.59997505", "0.59997505", "0.59997505", "0.59997505", "0.59997505", "0.59997505", "0.59997505", "0.59997505", "0.59997505", "0.59997505", "0.5980824", "0.5973498", "0.59585595", "0.5950625", "0.59276825", "0.58546835", "0.5828352", "0.5802036", "0.57534885", "0.5713459", "0.5709574", "0.56974924", "0.56951827", "0.5672975", "0.5669387", "0.56151855", "0.56008977", "0.55816776", "0.5571369", "0.5532165", "0.5524098", "0.5509029", "0.54938495", "0.5492613", "0.5480512", "0.54771584", "0.5461288", "0.5458522", "0.54412407", "0.5440579", "0.54169816", "0.54109544", "0.54088795", "0.5404228", "0.5395977", "0.5391773", "0.5370942", "0.53599155", "0.5345753", "0.5344414", "0.53220755", "0.5314699", "0.52540934", "0.5244091", "0.5218542", "0.5207375", "0.5191594", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856", "0.51798856" ]
0.60927814
13
Set Bot intelligence rules Note: This field may return null, indicating that no valid values can be obtained.
public void setIntelligenceRule(IntelligenceRule IntelligenceRule) { this.IntelligenceRule = IntelligenceRule; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRules(List<T> rules) {\n\t\tthis.rules = rules;\n\t}", "public void setRules(ArrayList<Rule> rules) {\n\t\tthis.rules = rules;\n\t}", "public abstract void setRules (CellProfile rules);", "public void setRules(com.walgreens.rxit.ch.cda.StrucDocTable.Rules.Enum rules)\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(RULES$26);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(RULES$26);\n }\n target.setEnumValue(rules);\n }\n }", "void setRule(Rule rule);", "@Override\n public void setRules(List rules) {\n this.rules = rules;\n if (schemaGraph != null) {\n // The change of rules invalidates the existing precomputed schema graph\n // This might be recoverable but for now simply flag the error and let the\n // user reorder their code to set the rules before doing a bind!\n throw new ReasonerException(\"Cannot change the rule set for a bound rule reasoner.\\nSet the rules before calling bindSchema\");\n }\n }", "public abstract void setEventRulesOfSentence(List<EventRule> eventRulesOfSentence);", "@Required\n public void setRules(Set<Rule> rules)\n {\n this.rules = new TreeSet<Rule>(new RuleComparator());\n this.rules.addAll(rules);\n }", "public RETEReasoner(List rules) {\n if (rules == null) throw new NullPointerException( \"null rules\" );\n this.rules = rules;\n }", "public void xsetRules(com.walgreens.rxit.ch.cda.StrucDocTable.Rules rules)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocTable.Rules target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocTable.Rules)get_store().find_attribute_user(RULES$26);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.StrucDocTable.Rules)get_store().add_attribute_user(RULES$26);\n }\n target.set(rules);\n }\n }", "public void setData(Rule[] rules, String[] criteres) {\n\n\t\t// get all data\n\t\tthis.rules = rules;\n\t\tthis.criteres = criteres;\n\t\tdrawGraph();\n\t}", "public RETEReasoner addRules(List rules) {\n List combined = new List( this.rules );\n combined.addAll( rules );\n setRules( combined );\n return this;\n }", "public void setUaBotRule(BotManagedRule UaBotRule) {\n this.UaBotRule = UaBotRule;\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void setRules() {\n\t\tthis.result = Result.START;\n\t\t// Create all initial rule executors, and shuffle them if needed.\n\t\tthis.rules = new LinkedList<>();\n\t\tModule module = getModule();\n\t\tfor (Rule rule : module.getRules()) {\n\t\t\tRuleStackExecutor executor = (RuleStackExecutor) getExecutor(rule, getSubstitution());\n\t\t\texecutor.setContext(module);\n\t\t\tthis.rules.add(executor);\n\t\t}\n\t\tif (getRuleOrder() == RuleEvaluationOrder.RANDOM || getRuleOrder() == RuleEvaluationOrder.RANDOMALL) {\n\t\t\tCollections.shuffle((List<RuleStackExecutor>) this.rules);\n\t\t}\n\t}", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "public LogicalRule(ExecutionPolicy...rules)\n\t\t{\n\t\t\tthis.rules = rules;\n\t\t}", "public void setRules(int index, ContextRule value) {\n value.getClass();\n ensureRulesIsMutable();\n this.rules_.set(index, value);\n }", "public Rules getRules()\r\n {\r\n return rules;\r\n }", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "public void setRule(int r)\n { \n rule = r;\n repaint();\n }", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public Builder setRule(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n rule_ = value;\n onChanged();\n return this;\n }", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "public Builder setRuleBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n rule_ = value;\n onChanged();\n return this;\n }", "public void setRules(final ArrayList<NetworkSecurityRule> rulesValue) {\n this.rules = rulesValue;\n }", "@Override\n public List getRules() {\n return rules;\n }", "@Override\r\n protected void initializeRules(List<AbstractValidationCheck> rules) {\n\r\n }", "@PathParam(\"rule\")\n public void setRule(@NotNull(message = \"rule name can't be NULL\")\n final String rle) {\n this.rule = rle;\n }", "private void applyOrSaveRules() {\n final boolean enabled = Api.isEnabled(this);\n final Context ctx = getApplicationContext();\n\n Api.generateRules(ctx, Api.getApps(ctx, null), true);\n\n if (!enabled) {\n Api.setEnabled(ctx, false, true);\n setDirty(false);\n return;\n }\n Api.updateNotification(Api.isEnabled(getApplicationContext()), getApplicationContext());\n new RunApply().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }", "private void actOnRules() {\r\n\r\n\t\tfor(String key: myRuleBook.keySet())\r\n\t\t{\r\n\r\n\t\t\tRule rule = myRuleBook.get(key);\r\n\t\t\tSpriteGroup[] obedients = myRuleMap.get(rule);\r\n\r\n\t\t\tif(rule.isSatisfied(obedients))\r\n\t\t\t{\r\n\t\t\t\trule.enforce(obedients);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ArrayList<String> getRules() {\n return rules;\n }", "public void setRuleColumnSet(Set<String> ruleColumnSet) {\n this.ruleColumnSet = ruleColumnSet;\n }", "IRuleset add(IRuleset...rules);", "public void clearRules() {\n this.rules_ = emptyProtobufList();\n }", "public void setIspBotRule(BotManagedRule IspBotRule) {\n this.IspBotRule = IspBotRule;\n }", "String getRules();", "public RulesEngineInner withRules(List<RulesEngineRule> rules) {\n if (this.innerProperties() == null) {\n this.innerProperties = new RulesEngineProperties();\n }\n this.innerProperties().withRules(rules);\n return this;\n }", "public List<RulesEngineRule> rules() {\n return this.innerProperties() == null ? null : this.innerProperties().rules();\n }", "private void setValueToRule() {\n\t\t\n\t\tif(!currRule.isEmpty()) {\n\t\t\tAntiSpamFilterControl.setWeigthByRuleManual(currRule, Double.parseDouble(manualRuleValue.getText()));\n\t\t}\n\t\t\n\t\tif(manualCBRules.isValid()) {\n\t\t\tcurrRule = manualCBRules.getSelectedItem().toString();\n\t\t}\n\t\tmanualRuleValue.setText(AntiSpamFilterControl.getWeigthByRule(currRule, true) + \"\");\n\t}", "public final void setBingRule(@org.jetbrains.annotations.NotNull()\n org.matrix.androidsdk.rest.model.bingrules.BingRule aBingRule) {\n }", "public void setPushRulesManager(BingRulesManager bingRulesManager) {\n if (isAlive()) {\n mBingRulesManager = bingRulesManager;\n\n mBingRulesManager.loadRules(new SimpleApiCallback<Void>() {\n @Override\n public void onSuccess(Void info) {\n onBingRulesUpdate();\n }\n });\n }\n }", "public RulesBook(Collection<Rule<A, B>> rules) {\n this(rules, StreamingRulesEngine.create());\n }", "public OrRule(ExecutionPolicy...rules)\n\t\t{\n\t\t\tsuper(rules);\n\t\t}", "public AndRule(ExecutionPolicy...rules)\n\t\t{\n\t\t\tsuper(rules);\n\t\t}", "public abstract List<NARule> getRules(Context context);", "public Rule(List<ICondition> conditions)\r\n\t{\r\n\t\tif (conditions != null)\r\n\t\t{\r\n\t\t\tthis.conditions = conditions;\r\n\t\t}\r\n\t}", "public void addAllRules(Iterable<? extends ContextRule> values) {\n ensureRulesIsMutable();\n AbstractMessageLite.addAll(values, this.rules_);\n }", "public void setExceptionRules(Collection<PatternActionRule> actionRules) {\n\t\tthis.patternActionRules.clear();\n\t\taddExceptionRules(actionRules);\n\t}", "@Override\r\npublic void initRules(){\r\n\t\r\n}", "public void chooseRulesClick(){\n String rules = (String)chooseRulesBox.getValue();\n try{\n gOL.setRuleString(rules);\n }catch (RulesFormatException rfee) {\n PopUpAlerts.ruleAlert2();\n }\n ruleLabel.setText(gOL.getRuleString().toUpperCase());\n }", "public List<Rule> getRules() {\r\n\t\treturn rules;\r\n\t}", "com.appscode.api.kubernetes.v1beta2.RuleOrBuilder getRulesOrBuilder(\n int index);", "public void add_rule(Rule rule) throws Exception;", "protected static void setProjectRules(IProject project, ProjectRules rules) throws IOException, CoreException, SAXParseException {\t\n\t\tIRuleParser parser = getRuleParser();\n\t\tString filename = getDefault().getPreferenceStore().getString(JDependPreferenceConstants.FORBIDDEN_DEPENDENCIES_FILE);\n\t\tparser.setProjectRules(project.getFile(filename), rules);\n\t}", "private void saveRule(){\n\t\tRule newRule = new Rule();\n\t\tnewRule.setDescription(desc.getText().toString().trim());\n\t\tnewRule.setMode(selectedMode);\n\t\tnewRule.setIsEnabled(\"true\");\n\t\tString sHour, sMin, eHour, eMin;\n\t\t\n\t\tif(startTimePicker.getCurrentHour()<10)\n\t\t\tsHour = \"0\"+startTimePicker.getCurrentHour();\n\t\telse\n\t\t\tsHour = \"\" +startTimePicker.getCurrentHour();\n\t\t\n\t\tif(startTimePicker.getCurrentMinute()<10)\n\t\t\tsMin = \"0\"+startTimePicker.getCurrentMinute();\n\t\telse\n\t\t\tsMin = \"\" +startTimePicker.getCurrentMinute();\n\t\t\n\t\tif(endTimePicker.getCurrentHour()<10)\n\t\t\teHour = \"0\"+endTimePicker.getCurrentHour();\n\t\telse\n\t\t\teHour = \"\" +endTimePicker.getCurrentHour();\n\t\t\n\t\tif(endTimePicker.getCurrentMinute()<10)\n\t\t\teMin = \"0\"+endTimePicker.getCurrentMinute();\n\t\telse\n\t\t\teMin = \"\" +endTimePicker.getCurrentMinute();\n\t\t\n\t\tnewRule.setStartTime(sHour+\":\"+sMin);\n\t\tnewRule.setEndTime(eHour+\":\"+eMin);\n\t\n\t\tnewRule.setSelectedDays(getSelectedDays(days));\n\t\tif(getIntent().getStringExtra(\"eventId\")!=null)\n\t\t{\n\t\t\tnewRule.setEventID(getIntent().getStringExtra(\"eventId\"));\n\t\t\t}\n\t\telse if(trigger.equalsIgnoreCase(\"edit\")){\n\t\t\tnewRule.setEventID(rule.getEventID());\n\t\t}\n\t\telse{\n\t\t\tnewRule.setEventID(\"-1\");\n\t\t}\n\t\t\n\t\tArrayList<TimingsData> timingsData = new ArrayList<TimingsData>();\n\t\t\n\t\tTimingsData startTime, endTime, tempStartTime, tempEndTime;\n\t\t\n\t\tfor(int j = 0; j < days.size(); j++){\n\t\t\ttry{\n//\t\t\t\tDate sDate = formatter.parse(rData.getStartDateTime());\n\t\t\t\tint day = days.get(j);\n\t\t\t\t\n\t\t\t\tstartTime = new TimingsData();\n\t\t\t\tendTime = new TimingsData();\n\t\t\t\tstartTime.setTimings(newRule.getStartTime());\n\t\t\t\tstartTime.setMode(newRule.getMode());\n\t\t\t\tstartTime.setRuleId(newRule.getId());\n\t\t\t\tstartTime.setDay(day);\n\t\t\t\tstartTime.setType(TaskMongoAlarmReceiver.ACTION_START);\n\t\t\t\tstartTime.setEndTimings(newRule.getEndTime());\n\t\t\t\t\n\t\t\t\tif(!isTimeCorrect()){\n\n\t\t\t\t\tstartTime.setEndTimings(\"23:59\");\n\t\t\t\t\ttempEndTime = new TimingsData();\n\t\t\t\t\ttempEndTime.setTimings(\"23:59\");\n\t\t\t\t\ttempEndTime.setMode(newRule.getMode());\n\t\t\t\t\ttempEndTime.setRuleId(newRule.getId());\n\t\t\t\t\ttempEndTime.setType(TaskMongoAlarmReceiver.ACTION_END);\n\t\t\t\t\ttempEndTime.setDay(day);\n\t\t\t\t\t\n\t\t\t\t\tLog.e(\"time greater than start time\", \"adding one \"+day);\n\t\t\t\t\tif(day == Calendar.SATURDAY)\n\t\t\t\t\t\tday = Calendar.SUNDAY;\n\t\t\t\t\telse\n\t\t\t\t\t\tday += 1;\n\t\t\t\t\t\n\t\t\t\t\ttempStartTime = new TimingsData();\n\t\t\t\t\ttempStartTime.setTimings(\"00:00\");\n\t\t\t\t\ttempStartTime.setMode(newRule.getMode());\n\t\t\t\t\ttempStartTime.setRuleId(newRule.getId());\n\t\t\t\t\ttempStartTime.setDay(day);\n\t\t\t\t\ttempStartTime.setType(TaskMongoAlarmReceiver.ACTION_START);\n\t\t\t\t\ttempStartTime.setEndTimings(newRule.getEndTime());\n\t\t\t\t\t\n\t\t\t\t\ttimingsData.add(tempEndTime);\n\t\t\t\t\ttimingsData.add(tempStartTime);\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tDate eDate = formatter.parse(rData.getEndDateTime());\n\t\t\t\t\n\t\t\t\tendTime.setTimings(newRule.getEndTime());\n\t\t\t\tendTime.setMode(newRule.getMode());\n\t\t\t\tendTime.setRuleId(newRule.getId());\n\t\t\t\tendTime.setType(TaskMongoAlarmReceiver.ACTION_END);\n\t\t\t\tendTime.setDay(day);\n\t\t\t\t\n\t\t\t\ttimingsData.add(startTime);\n\t\t\t\ttimingsData.add(endTime);\n\t\t\t}catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*ArrayList<RuleData> ruleData = new ArrayList<RuleData>();\n\t\t\n\t\tfor(int i = 0; i<selectedDays.size(); i++){\n\t\t\tRuleData rule_data = new RuleData();\n\t\t\tint day = selectedDays.get(i);\n\t\t\t\n\t\t\trule_data.setDay(day);\n\t\t\t\n\t\t\t// Get start time\n\t\t\tCalendar startTime = Calendar.getInstance();\n\t\t\tstartTime.setTimeZone(TimeZone.getDefault());\n\t\t\t\n\t\t\tint alarmStartDay = 0;\n\t\t\tint curDay = startTime.get(Calendar.DAY_OF_WEEK);\n\t\t\t\n\t\t\tif(day == curDay){\n\t\t\t\talarmStartDay = 0;\t\t\t\t\n\t\t\t}else if(day < curDay){\n\t\t\t\talarmStartDay = day + (7 - curDay); // how many days until Sunday\n\t\t\t}else{\n\t\t\t\talarmStartDay = day - curDay;\n\t\t\t}\n\t\t\t\n\t\t\trule_data.setStartDateTime(getDate(startTime, alarmStartDay, startTimePicker));\n\t\t\t\n\t\t\t//Get end time\n\t\t\tCalendar endTime = Calendar.getInstance();\n\t\t\t\n\t\t\tif(!isTimeCorrect()){\n\t\t\t\tLog.e(\"time greater than start time\", \"adding one \"+alarmStartDay);\n\t\t\t\talarmStartDay += 1;\n\t\t\t}\n\t\t\t\n\t\t\trule_data.setEndDateTime(getDate(endTime, alarmStartDay, endTimePicker));\n\t\t\t\n\t\t\tLog.e(\"schedule\", rule_data.getStartDateTime()\t+ \" , \" + rule_data.getEndDateTime());\n\t\t\t\n\t\t\truleData.add(rule_data);\n\t\t}\n\t\trule.setRuleData(ruleData);*/\n\t\tnewRule.setTimingsData(timingsData);\n\t\t\n\t\tSettingsDatabaseHandler dbHandler = new SettingsDatabaseHandler(SettingsActivity.this);\n\t\tint id = dbHandler.saveRule(newRule, ruleId);\n\t\t\n\t\tif(id!=-1){\n//\t\t\tRule savedRule = dbHandler.getRule(id);\n\t\t\t\n//\t\t\tUtil.setRule(SettingsActivity.this, savedRule);\n\t\t\tUtil.refreshAllAlarms(SettingsActivity.this);\n\t\t\t\n\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(SettingsActivity.this);\n\t\t\talert.setTitle(\"Congratulations!!!\");\n\t\t\talert.setMessage(\"Mongo saved successfully\");\n\t\t\talert.setPositiveButton(\"Okay\", new DialogInterface.OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(trigger.equalsIgnoreCase(\"calendar\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tIntent intent = new Intent(SettingsActivity.this,ListRulesActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\talert.show();\n\t\t}\n\t}", "public static Set<RelOptRule> elasticSearchRules() {\n Set<RelOptRule> rules = Arrays.stream(ElasticsearchRules.RULES)\n .filter(RULE_PREDICATE)\n .collect(Collectors.toSet());\n rules.add(ENUMERABLE_INTERMEDIATE_PREL_CONVERTER_RULE);\n rules.add(ELASTIC_DREL_CONVERTER_RULE);\n rules.add(ElasticsearchProjectRule.INSTANCE);\n rules.add(ElasticsearchFilterRule.INSTANCE);\n return rules;\n }", "@org.jetbrains.annotations.Nullable()\n public final org.matrix.androidsdk.rest.model.bingrules.BingRule createRule(int index) {\n return null;\n }", "private void setCurrentRule(){\n\tfor(int i=0; i<ConditionTree.length;i++){\n\t\tif(ConditionTree[i][1].equals(\"-\")){\n\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\tcurrentRuleIndex = i;\n\t\t}\n\t}\n}", "public void setRuleAgentProperties(KeyValuePairSet kvps) {\r\n ruleAgentProperties = kvps;\r\n }", "public MethodBuilder rule(String rule) {\n\t\tthis.rule = rule;\n\t\treturn this;\n\t}", "private void saveRules()\n {\n\n HashMap<Long,ContextualAdRule> insertData =(HashMap)serverRules.clone();\n\n\n try\n {\n\n\n //check campaign record to update or insert to the local database\n Cursor campaignsCursor= CampaignRulesDBModel.getRulesByServerIdsList(TextUtils.join(\",\",serverRules.keySet()),context);\n\n if (campaignsCursor != null && campaignsCursor.moveToFirst())\n {\n do {\n\n\n long serverId = campaignsCursor.getLong(campaignsCursor.getColumnIndex(CampaignsDBModel.CAMPAIGNS_TABLE_SERVER_ID));\n if (serverId >0)\n {\n insertData.remove(serverId);\n }\n\n } while (campaignsCursor.moveToNext());\n\n }\n\n }catch (Exception e)\n {\n e.printStackTrace();\n\n }finally {\n //do bulk insert\n if(insertData.size()>0)\n {\n bulkRulesInsert(insertData);\n\n }\n\n\n\n deleteUnknownRules();\n\n deleteUnknownRuleCampaigns();\n\n checkAndInsertRuleCampaigns();\n\n //send success response\n sendSuccessResponse();\n }\n\n\n }", "public void setExceptionRules(PatternActionRule... actionRules) {\n\t\tthis.patternActionRules.clear();\n\t\taddExceptionRules(actionRules);\n\t}", "public RuleBasedValidator() {\n globalRules = new ArrayList();\n rulesByProperty = new HashMap();\n }", "public RuleConfiguration() {\n\t\trule = new Rule();\n\t}", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "IRuleset add(IRuleset rule);", "public void setRuleFinders(List ruleFinders) {\n this.ruleFinders = ruleFinders;\n }", "public void addRules(ContextRule value) {\n value.getClass();\n ensureRulesIsMutable();\n this.rules_.add(value);\n }", "public void setMaxRulesPerEntity(java.lang.Integer maxRulesPerEntity) {\n this.maxRulesPerEntity = maxRulesPerEntity;\n }", "private void applyRules () throws DataNormalizationException {\n\t\tapplyRules(null);\n\t}", "protected RETEReasoner(List rules, Graph schemaGraph) {\n this(rules);\n this.schemaGraph = schemaGraph;\n }", "public Grammar(List<String> rules) throws IllegalArgumentException {\n\t\tif (rules == null || rules.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tfor (String line : rules) {\n\t\t\tString[] pieces = line.split(\"::=\");\n\t\t\tString[] subpieces = pieces[1].split(\"\\\\|\");\n\t\t\tfor (int i = 0; i < subpieces.length; i++) {\n\t\t\t\tsubpieces[i] = subpieces[i].trim();\n\t\t\t}\n List<String> listSubpieces = Arrays.asList(subpieces);\n\t\t\tif (!this.grammarRules.containsKey(pieces[0])) {\n\t\t\t\tthis.grammarRules.put(pieces[0].trim(), listSubpieces);\n\t\t\t} else {\n List<String> newSymbols = new ArrayList<String>();\n newSymbols.addAll(this.grammarRules.get(pieces[0]));\n newSymbols.addAll(listSubpieces);\n this.grammarRules.put(pieces[0].trim(), newSymbols);\n }\n\t\t}\t\n\t}", "public void setRulesRep(String value){\r\n RulesRep = value;\r\n }", "List<? extends Rule> getRules();", "public RBGPProgram(final Rule[] rules) {\r\n super();\r\n this.m_rules = rules;\r\n }", "public RuleMap(){\n rules = new HashMap<Character, String>();\n }", "public XorRule(ExecutionPolicy...rules)\n\t\t{\n\t\t\tsuper(rules);\n\t\t}", "private void loadRules2() {\n\t\t\r\n\t\tint type = Integer.valueOf(env.getProperty(\"sentinel.server.type\")) ;\r\n\t\t\r\n String appId = \"sentinel-demo\";\r\n String apolloMetaServerAddress = \"http://10.1.77.106:8080\";\r\n System.setProperty(\"app.id\", appId);\r\n System.setProperty(\"apollo.meta\", apolloMetaServerAddress);\r\n\r\n String namespaceName = \"application\";\r\n String flowRuleKey = \"flowRules\";\r\n // It's better to provide a meaningful default value.\r\n String defaultFlowRules = \"[]\";\r\n\r\n ReadableDataSource<String, List<FlowRule>> flowRuleDataSource = new ApolloDataSource<>(namespaceName,\r\n flowRuleKey, defaultFlowRules, source -> JSON.parseObject(source, new TypeReference<List<FlowRule>>() {\r\n }));\r\n FlowRuleManager.register2Property(flowRuleDataSource.getProperty());\r\n ClusterFlowRuleManager.setPropertySupplier(namespace ->flowRuleDataSource.getProperty());\r\n \r\n\r\n\t\tif (ClusterStateManager.CLUSTER_SERVER == type) \r\n\t\t{\r\n\t\t\tClusterStateManager.applyState(ClusterStateManager.CLUSTER_SERVER);\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tClusterStateManager.applyState(ClusterStateManager.CLUSTER_CLIENT);\r\n\t\t\tinitClientConfigProperty(namespaceName);\r\n\t\t\tinitClientServerAssignProperty(namespaceName);\r\n\t\t}\r\n \r\n \r\n \r\n \r\n }", "public Slicing setRules(BoundCodeDt<SlicingRulesEnum> theValue) {\n\t\tmyRules = theValue;\n\t\treturn this;\n\t}", "public abstract CellProfile getRules();", "private void populateRules() {\n BeerTemperatureLimitDTO beer1 = new BeerTemperatureLimitDTO();\n beer1.setMinimumThreshold(4.0);\n beer1.setMaximumThreshold(6.0);\n temperatureLimitsMap.put(\"Pilsner\", beer1);\n\n BeerTemperatureLimitDTO beer2 = new BeerTemperatureLimitDTO();\n beer2.setMinimumThreshold(5.0);\n beer2.setMaximumThreshold(6.0);\n temperatureLimitsMap.put(\"IPA\", beer2);\n\n BeerTemperatureLimitDTO beer3 = new BeerTemperatureLimitDTO();\n beer3.setMinimumThreshold(4.0);\n beer3.setMaximumThreshold(7.0);\n temperatureLimitsMap.put(\"Lager\", beer3);\n\n BeerTemperatureLimitDTO beer4 = new BeerTemperatureLimitDTO();\n beer4.setMinimumThreshold(6.0);\n beer4.setMaximumThreshold(8.0);\n temperatureLimitsMap.put(\"Stout\", beer4);\n\n BeerTemperatureLimitDTO beer5 = new BeerTemperatureLimitDTO();\n beer5.setMinimumThreshold(3.0);\n beer5.setMaximumThreshold(5.0);\n temperatureLimitsMap.put(\"Wheat beer\", beer5);\n\n\n BeerTemperatureLimitDTO beer6 = new BeerTemperatureLimitDTO();\n beer6.setMinimumThreshold(4.0);\n beer6.setMaximumThreshold(6.0);\n temperatureLimitsMap.put(\"Pale Ale\", beer6);\n }", "public Slicing setRules(SlicingRulesEnum theValue) {\n\t\tgetRulesElement().setValueAsEnum(theValue);\n\t\treturn this;\n\t}", "public void setRuleValueSet(Set<Map<String, Object>> ruleValueSet) {\n this.ruleValueSet = ruleValueSet;\n }", "@Bean\n public RulesEngine getRulesEngine() {\n return new DefaultRulesEngine(new RulesEngineParameters().skipOnFirstAppliedRule(false));\n }", "public void addExceptionRules(PatternActionRule... rules) {\n\t\taddExceptionRules(Arrays.asList(rules));\n\t}", "public Taboo(List<T> rules) {\n\t\trule = new HashMap<>();\n\t\tfor(int i = 0; i < rules.size() - 1; i++) {\n\t\t\tif(rules.get(i) == null || rules.get(i+1) == null) continue;\n\t\t\tint hash = rules.get(i).hashCode();\n\t\t\tif(rule.containsKey(hash)) {\n\t\t\t\trule.get(hash).add(rules.get(i+1));\n\t\t\t}else {\n\t\t\t\tSet<T> val = new HashSet<>();\n\t\t\t\tval.add(rules.get(i+1));\n\t\t\t\trule.put(hash, val); \t\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6818127", "0.6659173", "0.6646203", "0.66355884", "0.6527528", "0.63805825", "0.61264455", "0.61205673", "0.60629636", "0.58960503", "0.58776283", "0.5847173", "0.5699804", "0.5671299", "0.5543667", "0.55338377", "0.5482913", "0.54828787", "0.542484", "0.5409306", "0.5352121", "0.52848506", "0.52630484", "0.5246642", "0.5219981", "0.52120715", "0.5209846", "0.51477987", "0.5130921", "0.51278335", "0.51171947", "0.51124907", "0.51001585", "0.5091863", "0.50858927", "0.50828356", "0.50764424", "0.5073423", "0.5034341", "0.5025219", "0.49963132", "0.4996117", "0.49722964", "0.49633828", "0.49546266", "0.49419272", "0.4939094", "0.49385518", "0.49335462", "0.49330524", "0.49299273", "0.4926943", "0.49096563", "0.48968098", "0.48887914", "0.4865604", "0.48447677", "0.48114035", "0.48048428", "0.48020744", "0.47921807", "0.478373", "0.47686556", "0.4748371", "0.47480246", "0.47368136", "0.47368136", "0.47368136", "0.47368136", "0.47368136", "0.47368136", "0.47368136", "0.47368136", "0.47368136", "0.47368136", "0.47368136", "0.47368136", "0.47368136", "0.47368136", "0.47318396", "0.47247893", "0.47171643", "0.47101796", "0.47040936", "0.47031274", "0.470073", "0.4698355", "0.46962532", "0.46753088", "0.46673548", "0.46642113", "0.46552163", "0.46292573", "0.4624719", "0.4622367", "0.4617166", "0.46041694", "0.45934463", "0.4587622", "0.4573704" ]
0.578429
12
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
public BotConfig(BotConfig source) { if (source.Switch != null) { this.Switch = new String(source.Switch); } if (source.ManagedRule != null) { this.ManagedRule = new BotManagedRule(source.ManagedRule); } if (source.UaBotRule != null) { this.UaBotRule = new BotManagedRule(source.UaBotRule); } if (source.IspBotRule != null) { this.IspBotRule = new BotManagedRule(source.IspBotRule); } if (source.PortraitRule != null) { this.PortraitRule = new BotPortraitRule(source.PortraitRule); } if (source.IntelligenceRule != null) { this.IntelligenceRule = new IntelligenceRule(source.IntelligenceRule); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void set(String key, Object value);", "void set(K key, V value);", "public setKeyValue_args(setKeyValue_args other) {\n if (other.isSetKey()) {\n this.key = other.key;\n }\n if (other.isSetValue()) {\n this.value = other.value;\n }\n }", "public abstract void set(String key, T data);", "Object put(Object key, Object value);", "public native Map<K, V> set(K key, V value);", "@Test\n public void testSet() {\n Assert.assertTrue(map.set(\"key-1\", \"value-1\", 10));\n Assert.assertTrue(map.set(\"key-1\", \"value-2\", 10));\n Assert.assertTrue(map.set(\"key-2\", \"value-1\", 10));\n }", "private void setKeySet(OwnSet<K> st){\n this.keySet = st; \n }", "void set(K k, V v) throws OverflowException;", "public Value put(Key key, Value thing) ;", "@Test\n\tpublic void testPutAccessReodersElement() {\n\t\tmap.put(\"key1\", \"value1\");\n\n\t\tSet<String> keySet = map.keySet();\n\t\tassertEquals(\"Calling get on an element did not move it to the front\", \"key1\",\n\t\t\tkeySet.iterator().next());\n\n\t\t// move 2 to the top/front\n\t\tmap.put(\"key2\", \"value2\");\n\t\tassertEquals(\"Calling get on an element did not move it to the front\", \"key2\",\n\t\t\tkeySet.iterator().next());\n\t}", "public void set(String key, Object value) {\n set(key, value, 0);\n }", "final <T> void set(String key, T value) {\n set(key, value, false);\n }", "public void setObject(final String key, final Object value)\r\n {\r\n if (key == null)\r\n {\r\n throw new NullPointerException();\r\n }\r\n if (value == null)\r\n {\r\n helperObjects.remove(key);\r\n }\r\n else\r\n {\r\n helperObjects.put(key, value);\r\n }\r\n }", "@Override\n public void put(K key, V value) {\n // Note that the putHelper method considers the case when key is already\n // contained in the set which will effectively do nothing.\n root = putHelper(root, key, value);\n size += 1;\n }", "@Test\n public void keySetTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.keySet());\n }", "@Override\n public V put(K key, V value) {\n if (!containsKey(key)) {\n keys.add(key);\n }\n\n return super.put(key, value);\n }", "public void set(String newKey)\n\t{\n\t\tthis.Key = newKey;\n\t}", "public void setValue(K key, V value);", "public Value set(Value key, Value value) {\n\t\tif (get(key) != null)\n\t\t\tput(key, value);\n\t\telse if (parent != null)\n\t\t\tparent.put(key, value);\n\t\telse\n\t\t\tput(key, value);\n\t\treturn value;\n\t}", "final void set(String key, String value) {\n set(key, value, false);\n }", "void put(String key, Object obj);", "public void set(Object key, Object value) {\n if(attributes == null)\n attributes = new HashMap<>();\n attributes.put(key, value);\n }", "private void put(K key, V value) {\n\t\t\tif (key == null || value == null)\n\t\t\t\treturn;\n\t\t\telse if (keySet.contains(key)) {\n\t\t\t\tvalueSet.set(keySet.indexOf(key), value);\n\t\t\t} else {\n\t\t\t\tkeySet.add(key);\n\t\t\t\tvalueSet.add(keySet.indexOf(key), value);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}", "void put(String key, Object value);", "Object put(Object key, Object value) throws NullPointerException;", "public void testNormalKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "@Override\n public synchronized Object put(Object key, Object value) {\n if (value instanceof String) {\n value = ((String) value).trim();\n }\n String strkey = key.toString();\n if (this.ignoreCase) {\n this.keyMap.put(strkey.toLowerCase(), strkey);\n }\n return super.put(strkey, value);\n }", "@Override\n public V put(K key, V value) {\n reverseMap.put(value, key);\n return super.put(key, value);\n }", "public void testSet(){\n stringRedisTemplate.opsForSet().add(\"set-key\",\"a\",\"b\",\"c\");\n //srem set-key c d\n stringRedisTemplate.opsForSet().remove(\"set-key\",\"c\",\"d\");\n stringRedisTemplate.opsForSet().remove(\"set-key\",\"c\",\"d\");\n //scard set-key\n stringRedisTemplate.opsForSet().size(\"set-key\");\n //smembers set-key\n stringRedisTemplate.opsForSet().members(\"set-key\");\n //smove set-key set-key2 a\n stringRedisTemplate.opsForSet().move(\"set-key\",\"a\",\"set-key2\");\n stringRedisTemplate.opsForSet().move(\"set-key\",\"c\",\"set-key2\");\n\n //sadd skey1 a b c d\n stringRedisTemplate.opsForSet().add(\"skey1\",\"a\",\"b\",\"c\",\"d\");\n //sadd skey2 c d e f\n stringRedisTemplate.opsForSet().add(\"skey2\",\"c\",\"d\",\"e\",\"f\");\n //sdiff skey1 skey2 //存在与skey1中不存在与skey2中, a b\n stringRedisTemplate.opsForSet().difference(\"skey1\",\"skey2\");\n //sinter skey1 skey2 // c d\n stringRedisTemplate.opsForSet().intersect(\"skey1\",\"skey2\");\n //sunion skey1 skey2 // a b c d e f\n stringRedisTemplate.opsForSet().union(\"skey1\",\"skey2\");\n }", "protected abstract void put(K key, V value);", "protected abstract void _set(String key, Object obj, Date expires);", "Set getLocalKeySet();", "void setObjectKey(String objectKey);", "String set(K key, V value, SetOption setOption, long expirationTime, TimeUnit timeUnit);", "public Object putTransient(Object key, Object value);", "public JbootVoModel set(String key, Object value) {\n super.put(key, value);\n return this;\n }", "public abstract void Put(WriteOptions options, Slice key, Slice value) throws IOException, BadFormatException, DecodeFailedException;", "public void set(String key, Object value) {\r\n\t\tthis.context.setValue(key, value);\r\n\t}", "public void setKey(K newKey) {\r\n\t\tkey = newKey;\r\n\t}", "@Override\r\n\tpublic void putObject(Object key, Object value) {\n\t\t\r\n\t}", "public MapVS(SetVS<T> keys, Map<K, V> entries) {\n this.keys = keys;\n this.entries = entries;\n this.concreteHash = computeConcreteHash();\n }", "void put(Object indexedKey, Object key);", "public abstract V put(K key, V value);", "void setKey(K key);", "@Override\n\tpublic void put(S key, T val) {\n\t\t\n\t}", "public void set(String key, Object value)\n {\n if (value == null) remove(key);\n else if (value instanceof Map)\n {\n DataSection section = createSection(key);\n Map map = (Map) value;\n for (Object k : map.keySet())\n {\n section.set(k.toString(), map.get(k));\n }\n }\n else\n {\n data.put(key, value);\n if (!keys.contains(key)) keys.add(key);\n }\n }", "@Override\n public void put(K key, V value) {\n root = put(root, key, value);\n }", "public void attach(Object key, Object value);", "public static interface SetFilter extends KeyValueFilter {\r\n\t\tObject put(String name, Object value);\r\n\t}", "void put(K key, V value);", "void put(K key, V value);", "public void testCache() {\n MethodKey m = new MethodKey(\"aclass\", \"amethod\", new Object[]{1, \"fads\", new Object()});\n String mValue = \"my fancy value\";\n MethodKey m1 = new MethodKey(\"aclass\", \"amethod1\", new Object[]{1, \"fads\", new Object()});\n String mValue1 = \"my fancy value1\";\n MethodKey m2 = new MethodKey(\"aclass\", \"amethod2\", new Object[]{1, \"fads\", new Object()});\n String mValue2 = \"my fancy value2\";\n\n GenericCache.setValue(m, mValue);\n GenericCache.setValue(m1, mValue1);\n GenericCache.setValue(m2, mValue2);\n\n assertEquals(GenericCache.getValue(m), mValue);\n assertEquals(GenericCache.getValue(m1), mValue1);\n assertEquals(GenericCache.getValue(m2), mValue2);\n }", "public void set(K key, V value)\n {\n // If there are too many entries, expand the table.\n if (this.size > (this.buckets.length * LOAD_FACTOR))\n {\n expand();\n } // if there are too many entries\n // Find out where the key belongs.\n int index = this.find(key);\n // Create a new association list, if necessary.\n if (buckets[index] == null)\n {\n this.buckets[index] = new AssociationList<K, V>();\n } // if (buckets[index] == null)\n // Add the entry.\n AssociationList<K, V> bucket = this.get(index);\n int oldsize = bucket.size;\n bucket.set(key, value);\n // Update the size\n this.size += bucket.size - oldsize;\n }", "@Override\n public void put(K key, V value) {\n root = putHelper(key,value,root);\n }", "public void setKey(K newKey) {\n this.key = newKey;\n }", "@Override\n\tpublic void set(K key, List<V> value) {\n\t\t\n\t}", "public OwnMap() {\n super();\n keySet = new OwnSet();\n }", "public void setKey (K k) {\n key = k;\n }", "public void setItemCollection(HashMap<String, Item> copy ){\n \titemCollection.putAll(copy);\r\n }", "public void put(Key key, Value val);", "ISObject put(String key, ISObject stuff) throws UnexpectedIOException;", "public void setValue(String key, Object value)\n {\n if (value != null)\n {\n if (otherDetails == null)\n {\n otherDetails = new Hashtable();\n }\n\n otherDetails.put(key, value);\n }\n }", "public void put(Comparable key, Stroke stroke) {\n/* 120 */ ParamChecks.nullNotPermitted(key, \"key\");\n/* 121 */ this.store.put(key, stroke);\n/* */ }", "public void set(R key, List<S> value){\n map.remove(key);\n map.put(key, value);\n }", "public V put(K key, V value) throws InvalidKeyException;", "public final void set(final String key, final Object value) {\n try {\n synchronized (jo) {\n if (value == null) {\n jo.remove(key);\n } else {\n jo.put(key, value);\n }\n }\n } catch (JSONException e) {\n }\n }", "@SuppressWarnings(\"resource\")\n @Test\n public void testClone() {\n try {\n ApiKey apikey1 = new ApiKey(\"bd1f89fbddbde18d4244b748ca1d250b\", new Date(1570127625049L), 88,\n \"bd1f89fbddbde18d4244b748ca1d250b\", \"18fa817e-9d24-4344-a79a-ab19db23016c\", -15,\n \"7b9ca8ca-2f09-4496-b67e-f3a146e5c741\", \"bd1f89fbddbde18d4244b748ca1d250b\",\n ApiKeyStatus.getDefault(), new Date(1570127627362L));\n ApiKey apikey2 = apikey1.clone();\n assertNotNull(apikey1);\n assertNotNull(apikey2);\n assertNotSame(apikey2, apikey1);\n assertEquals(apikey2, apikey1);\n } catch (Exception exception) {\n fail(exception.getMessage());\n }\n }", "@Test\n public void testPutAll_Existing() {\n Map<String, String> toAdd = fillMap(1, 10, \"\", \"Old \");\n\n map.putAll(toAdd);\n\n Map<String, String> toUpdate = fillMap(1, 10, \"\", \"New \");\n\n configureAnswer();\n testObject.putAll(toUpdate);\n\n for (String k : toAdd.keySet()) {\n String old = toAdd.get(k);\n String upd = toUpdate.get(k);\n\n verify(helper).fireReplace(entry(k, old), entry(k, upd));\n }\n verifyNoMoreInteractions(helper);\n }", "V put(K key, V value);", "public boolean put(String key, String value);", "public T set(T obj);", "void put(String key, String value) throws StorageException, ValidationException, KeyValueStoreException;", "public void set(R key, Collection<S> value){\n map.remove(key);\n map.put(key, Collections.synchronizedList(Sugar.listFromCollections(value)));\n }", "@Before\r\n public void test_change(){\r\n HashTable<String,String> table = new HashTable<>(1);\r\n MySet<String> s = (MySet<String>) table.keySet();\r\n table.put(\"AA\",\"BB\");\r\n table.put(\"AA\",\"CC\");\r\n assertTrue(s.contains(\"AA\"));\r\n table.remove(\"AA\");\r\n assertFalse(s.contains(\"AA\"));\r\n }", "public void put(String key, Object value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}", "public boolean put( KEY key, OBJECT object );", "boolean setValue(String type, String key, String value);", "public K setKey(K key);", "public Set<V> put(K key, Collection<V> set) {\n // Remove any possibly existing prior association with the key\n Set<V> result = remove(key);\n\n // Note: The second argument is effectless, as we cannot encounter item type errors here\n NavigableSet<V> navSet = createNavigableSet(set, true);\n Iterator<V> it = navSet.iterator();\n\n SetTrieNode currentNode = superRootNode;\n while(it.hasNext()) {\n V v = it.next();\n\n SetTrieNode nextNode = currentNode.nextValueToChild == null ? null : currentNode.nextValueToChild.get(v);\n if(nextNode == null) {\n nextNode = new SetTrieNode(nextId++, currentNode, v);\n if(currentNode.nextValueToChild == null) {\n currentNode.nextValueToChild = new TreeMap<>(comparator);\n }\n currentNode.nextValueToChild.put(v, nextNode);\n }\n currentNode = nextNode;\n }\n\n if(currentNode.keyToSet == null) {\n currentNode.keyToSet = new HashMap<>();\n }\n\n currentNode.keyToSet.put(key, navSet);\n\n keyToNode.put(key, currentNode);\n\n return result;\n }", "Set keySet(final TCServerMap map) throws AbortedOperationException;", "@SuppressWarnings(\"unchecked\")\n\tpublic Object clone() {\n\t\tLongOpenHashSet c;\n\t\ttry {\n\t\t\tc = (LongOpenHashSet) super.clone();\n\t\t} catch (CloneNotSupportedException cantHappen) {\n\t\t\tthrow new InternalError();\n\t\t}\n\t\tc.key = key.clone();\n\t\tc.state = state.clone();\n\t\treturn c;\n\t}", "boolean canSet(String key);", "@Test\n public void testBackdoorModificationSameKey()\n {\n testBackdoorModificationSameKey(this);\n }", "public IDataKey clone() {\n return new IDataKey(this);\n }", "@Override\n public V put(K key, V value) {\n if ((key == null) || (value == null)) {\n logger.warn(\"NULL key or value key = \" + key + \". value = \" + value);\n System.out.println(StringUtils.join(Thread.currentThread().getStackTrace(), \"\\n\"));\n return null;\n }\n\n // If this map is supposed to be case insensitive, uppercase the key before putting it\n // in the map\n if (caseInsensitive && key instanceof String) {\n return super.put(((K) key.toString().toUpperCase()), value);\n } else {\n return super.put(key, value);\n }\n }", "public abstract void copyFrom(KeyedString src);", "public void set(String key, String value){\n\t\tif(first == null){\n\t\t\tfirst = new ListMapEntry(key, value);\n\t\t}\n\t\tListMapEntry temp = first;\n\t\tListMapEntry prev = null;\n\t\twhile(temp!=null && !temp.getKey().equals(key)){\n\t\t\tprev = temp;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t\tif(temp==null){\n\t\t\tprev.setNext(new ListMapEntry(key, value));\n\t\t}\n\t\telse{\n\t\t\ttemp.setValue(value);\n\t\t}\n\t}", "V put(final K key, final V value);", "public void set(String key, Object obj) {\n options.put(key, obj);\n }", "boolean put(K key, V value);", "@Override\n\tpublic void put(Object key, Object val) {\n\t\tif(st[hash(key)].size()>=k)\n\t\t\tst[hash(key)].clear();\n\t\tst[hash(key)].put(key, st[hash(key)].size());\n\t}", "protected abstract boolean _setIfAbsent(String key, Object value, Date expires);", "@Override\n public void putValue(String key, Object value) {\n\n }", "public void changeKey(String key, Object newValue){\n try {\n myJSON.put(key, newValue);\n writeToFile();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public DelegateAbstractHashMap(AbstractHashSet set) {\n\t\t\tsuper();\n\t\t\tthis.set = set;\n\t\t}", "public void put(String key, T value);", "@Override\r\n public V put(K key, V value){\r\n \r\n // Declare a temporay node and instantiate it with the key and\r\n // previous value of that key\r\n TreeNode<K, V> tempNode = new TreeNode<>(key, get(key));\r\n \r\n // Call overloaded put function to either place a new node\r\n // in the tree or update the exisiting value for the key\r\n root = put(root, key, value);\r\n \r\n // Return the previous value of the key through the temporary node\r\n return tempNode.getValue();\r\n }", "String setKey(String newKey);", "@Test\n public void testPutAll_ExistingNoChange() {\n Map<String, String> toAdd = fillMap(1, 10);\n\n map.putAll(toAdd);\n\n Map<String, String> toUpdate = fillMap(1, 10);\n\n configureAnswer();\n testObject.putAll(toUpdate);\n\n verifyZeroInteractions(helper);\n }", "public void set(String key, String value) {\n if (key.indexOf('=') != -1 || key.indexOf(';') != -1) {\n Log.e(TAG, \"Key \\\"\" + key + \"\\\" contains invalid character (= or ;)\");\n return;\n }\n if (value.indexOf('=') != -1 || value.indexOf(';') != -1) {\n Log.e(TAG, \"Value \\\"\" + value + \"\\\" contains invalid character (= or ;)\");\n return;\n }\n\n mMap.put(key, value);\n }" ]
[ "0.6441061", "0.64161617", "0.6146117", "0.6117963", "0.6096347", "0.6082185", "0.604238", "0.5991475", "0.59746987", "0.5957913", "0.5840638", "0.58286464", "0.5791717", "0.5705181", "0.5704307", "0.56889427", "0.56888515", "0.5679756", "0.5609211", "0.5588803", "0.5583051", "0.55722576", "0.5559987", "0.55543953", "0.5551202", "0.55351585", "0.5530579", "0.551399", "0.549844", "0.5491469", "0.54847574", "0.5469546", "0.5432771", "0.54285735", "0.54230624", "0.5415177", "0.5410745", "0.5380881", "0.53776085", "0.5377355", "0.53761905", "0.5356813", "0.5353361", "0.53422576", "0.53331584", "0.5323215", "0.5293862", "0.5286182", "0.52842015", "0.5265162", "0.52597815", "0.52597815", "0.52586377", "0.52577305", "0.5257262", "0.52451324", "0.5238003", "0.5235836", "0.52316433", "0.52271545", "0.52266794", "0.5218382", "0.52181584", "0.52017564", "0.51959515", "0.51906985", "0.5182782", "0.51827663", "0.5178222", "0.51775646", "0.51772577", "0.5176229", "0.5176108", "0.5171112", "0.51371115", "0.51338357", "0.5131255", "0.51301384", "0.512534", "0.512411", "0.5122724", "0.5120214", "0.5105207", "0.51046824", "0.51027596", "0.51014185", "0.50997204", "0.50914305", "0.50762916", "0.5071018", "0.5067121", "0.5064882", "0.50536186", "0.5030036", "0.5024486", "0.50235015", "0.50217307", "0.50198823", "0.50190866", "0.5015635", "0.50156343" ]
0.0
-1
Internal implementation, normal users should not use it.
public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "Switch", this.Switch); this.setParamObj(map, prefix + "ManagedRule.", this.ManagedRule); this.setParamObj(map, prefix + "UaBotRule.", this.UaBotRule); this.setParamObj(map, prefix + "IspBotRule.", this.IspBotRule); this.setParamObj(map, prefix + "PortraitRule.", this.PortraitRule); this.setParamObj(map, prefix + "IntelligenceRule.", this.IntelligenceRule); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@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 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 protected void init() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void m50366E() {\n }", "protected boolean func_70814_o() { return true; }", "protected Problem() {/* intentionally empty block */}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public int retroceder() {\n return 0;\n }", "protected Doodler() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public Object preProcess() {\n return null;\n }", "@Override\n protected void initialize() \n {\n \n }", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "@Override\r\n\tpublic void init() {}", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void apply() {\n }", "private TestsResultQueueEntry() {\n\t\t}", "@Override\n void init() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "protected void initialize() {}", "protected void initialize() {}", "private final void i() {\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "protected void h() {}", "@Override\n\tpublic void anular() {\n\n\t}", "private Unescaper() {\n\n\t}", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "private ArraySetHelper() {\n\t\t// nothing\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n public void init() {}", "private Util() { }", "@Override public int describeContents() { return 0; }", "public void method_4270() {}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "protected abstract Set method_1559();", "@Override\n public void init() {\n\n }", "protected void init() {\n // to override and use this method\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private TedCorrigendumHandler() {\n throw new AssertionError();\n }", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "private MetallicityUtils() {\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 nadar() {\n\t\t\n\t}", "protected boolean func_70041_e_() { return false; }", "@Override\n public void preprocess() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "protected OpinionFinding() {/* intentionally empty block */}", "protected void additionalProcessing() {\n\t}", "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}", "@Override\n\tpublic void selfValidate() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "private void assignment() {\n\n\t\t\t}" ]
[ "0.6257244", "0.6217361", "0.6023634", "0.59824777", "0.5965254", "0.59335405", "0.5919435", "0.58341724", "0.5781031", "0.57762295", "0.57762295", "0.57762295", "0.57762295", "0.57762295", "0.57762295", "0.5774889", "0.57056475", "0.5700564", "0.56520224", "0.56486577", "0.56486577", "0.5640646", "0.563644", "0.5634369", "0.5618389", "0.5613368", "0.560768", "0.560768", "0.56046975", "0.5597734", "0.5556839", "0.55471504", "0.5538525", "0.5530529", "0.5528992", "0.552655", "0.5524632", "0.5518547", "0.5517075", "0.5517075", "0.55077696", "0.5503913", "0.5503172", "0.5497345", "0.5494285", "0.54855675", "0.54855675", "0.5485089", "0.5485089", "0.54705864", "0.5467495", "0.5466757", "0.5457951", "0.5448381", "0.54453015", "0.5441887", "0.5430856", "0.5429769", "0.5429522", "0.5426697", "0.5424039", "0.54227155", "0.54207397", "0.54123634", "0.54115814", "0.54106194", "0.54068035", "0.54032815", "0.53933185", "0.5392418", "0.5392418", "0.5382282", "0.5382282", "0.53775954", "0.5372791", "0.5372061", "0.5368254", "0.53679764", "0.5361834", "0.5359593", "0.5358799", "0.5358439", "0.5356299", "0.5356299", "0.5356299", "0.5354956", "0.53540236", "0.53537977", "0.5352767", "0.5352271", "0.5352233", "0.5351193", "0.5349443", "0.5334804", "0.5334779", "0.5333253", "0.5331498", "0.53314006", "0.5330726", "0.5330175", "0.5327447" ]
0.0
-1
TODO Only return users with valid email address
public List<User> findUsers(final String name) { if (Objects.nonNull(name)) return userRepository.findByFirstNameContainingOrLastNameContainingAllIgnoreCase(name, name); else return userRepository.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String emailValid(String email){\n return \"select u_email from users having u_email = '\" + email + \"'\";\n }", "@Override\n public boolean isUserEmailExists(String email, String exludeUserName) {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_EMAIL_EXCLUDE_USERNAME);\n params.put(User.PARAM_EMAIL, email);\n params.put(User.PARAM_USERNAME, exludeUserName);\n User user = getRepository().getEntity(User.class, params);\n\n return user != null && user.getEmail() != null && !user.getEmail().equals(\"\");\n }", "User getUserByEmail(String email);", "public User getUserByEmail(String email);", "public User getUserByEmail(String email);", "boolean hasUserEmail();", "User findUserByEmail(String email) throws Exception;", "User getUserByEmail(final String email);", "public static boolean checkUserEmail(String email)\n\t{\n\t\tSearchResponse response = client.prepareSearch(\"projektzespolowy\")\n\t\t\t\t.setTypes(\"user\")\n\t\t\t\t.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)\n\t\t\t\t.setQuery(QueryBuilders.matchPhraseQuery(\"EMAIL\", email))\n\t\t\t\t.setSize(0).setFrom(0)\n\t\t\t\t.execute()\n\t\t\t\t.actionGet();\n\t\t\n\t\tif(response.getHits().getTotalHits() > 0)\n\t\t\treturn false;\n\t\telse \n\t\t\treturn true;\n\t}", "public static UserEntity search(String email) {\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\n\t\tQuery gaeQuery = new Query(\"users\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\t\t\n\t\tfor (Entity entity : pq.asIterable()) {\n\t\t\t \n\t\t\tif (entity.getProperty(\"email\").toString().equals(email)) {\n\t\t\t\tUserEntity returnedUser = new UserEntity(entity.getProperty(\n\t\t\t\t\t\t\"name\").toString(), entity.getProperty(\"email\")\n\t\t\t\t\t\t.toString());\n\t\t\t\treturnedUser.setId(entity.getKey().getId());\n\t\t\t\treturn returnedUser;\n\t\t\t }\nelse{\n\t\t\t\t\n }\n\t\t}\n\n\t\treturn null;\n\t}", "private boolean check_email_available(String email) {\n // Search the database for this email address\n User test = UserDB.search(email);\n // If the email doesn't exist user will be null so return true\n return test == null;\n }", "@Override\n\tpublic UserVO searchEmail(String email) throws Exception {\n\t\treturn dao.searchEmail(email);\n\t}", "public User findUserByEmail(final String email);", "private User getUserFromUsersBy(String email, String password){\n \tUser user=null;\n \tfor(User u : users ){\n \t\tif(u.getEmail().equals(email)&&u.getPassword().equals(password)){\n \t\t\tuser = u;\n \t\t}\n \t}\n \treturn user;\n }", "User findUserByEmail(String userEmail);", "boolean hasEmail();", "boolean hasEmail();", "boolean hasEmail();", "boolean hasEmail();", "boolean hasEmail();", "public User retrieveUserByEmail(String email) throws ApplicationException;", "public User findByEmail(String email);", "public User findByEmail(String email);", "public User findByEmail(String email);", "public boolean findEmail(String email);", "public boolean checkEmail(String Email) {\n SQLiteDatabase db = DatabaseHelper.this.getReadableDatabase();\n Cursor cursor = db.rawQuery(\"select * from Users where Email=?\", new String[]{Email});\n if (cursor.getCount() > 0) {\n\n return false;\n } else {\n return true;\n }\n }", "@Override\n public boolean isUserEmailExists(String email) {\n User user = getUserByEmail(email);\n return user != null && user.getEmail() != null && !user.getEmail().equals(\"\");\n }", "java.lang.String getUserEmail();", "@Override\n\tpublic boolean userExists(String email) {\n\t\treturn (searchIndex(email) >= 0);\n\t}", "User findByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "User findByEmail(String email);", "User find(String email);", "public boolean chkmail(String email){\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(\"Select * from user where email=?\",new String[]{email});\n if (cursor.getCount()>0) return false;\n else return true;\n }", "private void usernameFromEmail(String email) {\n if (email.matches(\"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\")) {\n goNextEnable();\n } else {\n goNextDisable();\n }\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private Set<String> getEmailAccounts() {\n HashSet<String> emailAccounts = new HashSet<>();\n AccountManager manager = (AccountManager) getContext().getSystemService(Context.ACCOUNT_SERVICE);\n final Account[] accounts = manager.getAccounts();\n for (Account account : accounts) {\n if (!TextUtils.isEmpty(account.name) && Patterns.EMAIL_ADDRESS.matcher(account.name).matches()) {\n emailAccounts.add(account.name);\n }\n }\n return emailAccounts;\n }", "private void emailExistCheck() {\n usernameFromEmail(email.getText().toString());\n }", "public boolean checkmail(String email)\n {\n SQLiteDatabase db=this.getReadableDatabase();\n Cursor cursor=db.rawQuery(\"select * from user where email=?\", new String[]{email});\n if(cursor.getCount()>0)\n return false;\n\n else\n return true;\n\n }", "public User getUser(String email);", "@Override\n public User getUserByEmail(final String email){\n Query query = sessionFactory.getCurrentSession().createQuery(\"from User where email = :email\");\n query.setParameter(\"email\", email);\n return (User) query.uniqueResult();\n }", "@Override\n public OpenScienceFrameworkUser findOneUserByEmail(final String email) {\n final OpenScienceFrameworkUser user = findOneUserByUsername(email);\n if (user != null) {\n return user;\n }\n\n // check emails\n try {\n // JPA Hibernate does not support postgres query array operations, use postgres native queries\n // `query.setParameter()` does not work, use string concatenation instead\n final Query query= entityManager.createNativeQuery(\n \"select u.* from osf_osfuser u where u.emails @> '{\" + email + \"}'\\\\:\\\\:varchar[]\",\n OpenScienceFrameworkUser.class\n );\n return (OpenScienceFrameworkUser) query.getSingleResult();\n } catch (final PersistenceException e) {\n LOGGER.error(e.toString());\n return null;\n }\n }", "private boolean isEmailValid(String email) {\n return true;\r\n }", "boolean isEmailExist(String email);", "public AppUser findByEmail(String email);", "private boolean isEmailValid(String email){\n return email.contains(\"@\");\n }", "public boolean checkUser(String email) {\r\n // Gets the collection of users and creates a query\r\n MongoCollection<Document> users = mongoDB.getCollection(\"Users\");\r\n Document query = new Document(\"email\", email);\r\n\r\n // Returns whether at least one user with the given email exists\r\n return users.countDocuments(query) > 0;\r\n }", "void validate(String email);", "UserDTO findUserByEmail(String email);", "public boolean checkEmail(String username) {\n String[] columns = {COL_1};\n SQLiteDatabase db = getReadableDatabase();\n String selection = COL_2 + \"=?\";\n String[] selectionArgs = {username};\n Cursor cursor = db.query(USER_TABLE_NAME, columns, selection, selectionArgs, null, null, null);\n int count = cursor.getCount();\n cursor.close();\n db.close();\n\n if (count > 0)\n return true;\n else\n return false;\n }", "public boolean checkUser(String email) {\n\n // array of columns to fetch\n String[] columns = {\n COLUMN_USER_ID\n };\n \n // selection criteria\n String selection = COLUMN_USER_EMAIL + \" = ?\";\n \n // selection argument\n String[] selectionArgs = {email};\n \n // query user table with condition\n /**\n * Here query function is used to fetch records from user table this function works like we use sql query.\n * SQL query equivalent to this query function is\n * SELECT user_id FROM user WHERE user_email = '[email protected]';\n */\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.query(\n TABLE_USER, //Table to query\n columns, //columns to return\n selection, //columns for the WHERE clause\n selectionArgs, //The values for the WHERE clause\n null, //group the rows\n null, //filter by row groups\n null); //The sort order\n int cursorCount = cursor.getCount();\n cursor.close();\n db.close();\n\n if (cursorCount > 0) {\n return true;\n }\n\n return false;\n }", "public boolean isThereSuchAUser(String username, String email) ;", "@PreAuthorize(\"permitAll()\")\n @GetMapping(\"/users/email-available\")\n public ResponseEntity<Boolean> isEmailAvailable(@RequestParam(value = \"email\") String email) {\n return new ResponseEntity<>(userService.getUserByEmail(email) == null, HttpStatus.OK);\n }", "public String searchEmail(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, email from \" + TABLE_NAME;\n Cursor cursor = db.rawQuery(query,null);\n\n String uname, email;\n email = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n email = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n return email;\n }", "public User validExistingEmail(TextInputLayout tiEmail, EditText etEmail) {\n boolean result = isValidEmail(tiEmail, etEmail);\n User user = null;\n\n if (result) {\n String email = etEmail.getText().toString().trim();\n UserRepository userRepository = new UserRepository(c.getApplicationContext());\n user = userRepository.getUserByEmail(email);\n if (user == null)\n tiEmail.setError(c.getString(R.string.emailNotExist));\n else\n tiEmail.setError(null);\n }\n\n return user;\n }", "public User getUser(String emailId);", "private boolean checkEmail() throws IOException {\n String email = getEmail.getText();\n \n if(email.contains(\"@\")) { \n UserDatabase db = new UserDatabase();\n \n if(db.emailExists(email)) {\n errorMessage.setText(\"This email address has already been registered.\");\n return false;\n }\n \n return true;\n }\n else {\n errorMessage.setText(\"Please enter a valid email. This email will be \"+\n \"used for verification and account retrieval.\");\n return false;\n }\n }", "public boolean isRegisteredEmail(String email);", "@Override\n\tpublic Users findUserByEmail(String email) {\n\t\treturn iUserDao.findUserByEmail(email);\n\t}", "public List<com.ims.dataAccess.tables.pojos.User> fetchByEmail(String... values) {\n return fetch(User.USER.EMAIL, values);\n }", "boolean checkEmailExist(String email){\n boolean isEmailExists = false;\n dbConnection();\n try{\n stmt = con.prepareStatement(\"SELECT * FROM users ORDER BY email\");\n rs = stmt.executeQuery();\n while(rs.next()){\n String checkEmail = rs.getString(\"email\");\n if(checkEmail.equals(email)){\n isEmailExists = true;\n }\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n return isEmailExists;\n }", "private boolean isEmailValid(String email) {\n if (email.length() == 8){\n return true;\n }\n\t//user names first two characters must be letters\n Boolean condition1 = false;\n Boolean condition2 = false;\n\n int ascii = (int) email.charAt(0);\n if ((ascii >= 65 && ascii <= 90) || ascii >= 97 && ascii <= 122){\n condition1 = true;\n }\n ascii = (int) email.charAt(1);\n if ((ascii >= 65 && ascii <= 90) || ascii >= 97 && ascii <= 122){\n condition2 = true;\n }\n if (condition1 == true && condition2 == true){\n return true;\n }\n\n\t//user names last six characters must be numbers\n for (int i = email.length()-6; i < email.length(); i++){\n ascii = (int) email.charAt(i);\n if (!(ascii >= 48 && ascii <= 57)){\n return false;\n }\n }\n\n return true;\n }", "UserEntity findByEmail(String email);", "@Override\n public TechGalleryUser getUserByEmail(final String email) throws NotFoundException {\n TechGalleryUser tgUser = userDao.findByEmail(email);\n// TechGalleryUser tgUser = userDao.findByEmail(\"[email protected]\");\n if (tgUser == null) {\n throw new NotFoundException(ValidationMessageEnums.USER_NOT_EXIST.message());\n } else {\n return tgUser;\n }\n }", "public static boolean emailAlreadyExists(String email) throws ParseException {\n ParseQuery<TipperUser> query = ParseQuery.getQuery(\"TipperUser\");\n query.whereEqualTo(\"email\", email);\n List<TipperUser> result = query.find();\n if (result.isEmpty()) {\n return false;\n } else return true;\n }", "boolean existsByEmail(String email);", "public static void getUsersValidator(String xUserEmail) throws ApiException {\n }", "public List<com.ims.dataAccess.tables.pojos.User> fetchRangeOfEmail(String lowerInclusive, String upperInclusive) {\n return fetchRange(User.USER.EMAIL, lowerInclusive, upperInclusive);\n }", "@Override \r\n\tpublic Set<String> emailList() {\n\t\treturn new HashSet<String>(jdbcTemplate.query(\"select * from s_member\",\r\n\t\t\t\t(rs,idx)->{return rs.getString(\"email\");}));\r\n\t}", "public List<User> findByEmailAndUsername(String email, String username) {\n Session session = this.sessionFactory.getCurrentSession();\n return session.createCriteria(User.class)\n .add(Restrictions.eq(\"email\", email))\n .add(Restrictions.eq(\"name\",username))\n .list();\n }", "@Override\n public boolean checkEmail(User user) {\n String email = user.getEmail();\n User userEx = findByEmail(email);\n return userEx != null;\n }", "@Override\n\tpublic ERSUser getUserByEmail(String email) {\n\t\treturn userDao.selectUserByEmail(email);\n\t}", "public User findByEmail(String email){\n return userRepository.findByEmail(email);\n }", "boolean isEmailRequired();", "public boolean checkUser(String email) {\n db= openHelper.getReadableDatabase();\n String[] columns = {\n COLUMN_USER_ID\n };//coloane de returnat\n String selection = COLUMN_USER_EMAIL + \" = ?\";//criteriul de selectie\n String[] selectionArgs = {email};//argumentul pentru selectie\n // query user table with condition\n //SELECT column_user_id FROM useri WHERE column_user_email = '[email protected]';\n Cursor cursor = db.query(TABLE_USER, //tabel pentru query\n columns, //coloane de returnat\n selection, //coloane pentru clauze WHERE\n selectionArgs, //valori pentru clauza WHERE\n null, //group the rows\n null, //filter by row groups\n null); //ordinea de sortare\n int cursorCount = cursor.getCount();\n cursor.close();\n if (cursorCount > 0) {\n return true;\n }\n return false;\n }", "public User existsProfile(String email) {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n SuperBooleanBuilder query = new SuperBooleanBuilder();\n query.put(\"email\", email);\n Search search = new Search.Builder(query.toString())\n .addIndex(INDEX_NAME)\n .addType(User.class.toString())\n .build();\n\n User result = null;\n try {\n result = client.execute(search).getSourceAsObject(User.class);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n return result;\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "private boolean isExistUserEmail(String email, String userId) {\n User user = userService.findByEmailAndStatus(email, Constant.Status.ACTIVE.getValue());\n if (user != null && !user.getUserId().equals(userId)) {\n return true;\n }\n return false;\n }" ]
[ "0.7271628", "0.71129686", "0.6886193", "0.68789226", "0.68789226", "0.6840778", "0.6812236", "0.6768314", "0.67508245", "0.67401606", "0.67388093", "0.670827", "0.66745865", "0.66417223", "0.66288424", "0.657176", "0.657176", "0.657176", "0.657176", "0.657176", "0.657157", "0.65636355", "0.65636355", "0.65636355", "0.65607846", "0.65412146", "0.653721", "0.6532435", "0.6526966", "0.6526587", "0.6526587", "0.6526587", "0.6526587", "0.6526587", "0.6526587", "0.6516073", "0.65104663", "0.65045017", "0.6496065", "0.6496065", "0.6496065", "0.6496065", "0.64892125", "0.64735216", "0.6470299", "0.6440476", "0.643001", "0.64272976", "0.6408115", "0.6396888", "0.63921267", "0.6383177", "0.63785577", "0.63730323", "0.6370117", "0.6369596", "0.6369353", "0.6368416", "0.63631445", "0.6347904", "0.633423", "0.63325953", "0.63237077", "0.6319274", "0.6316398", "0.63163275", "0.63111216", "0.6295297", "0.628545", "0.627715", "0.62664795", "0.62646353", "0.62553024", "0.62482274", "0.62426966", "0.62382984", "0.62381786", "0.6230238", "0.6215501", "0.6208893", "0.62054086", "0.62040234", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.619114", "0.61908054" ]
0.0
-1
TODO Check what all hackathons that we need to send TODO Improve Performance
public HashMap<Hackathon, Team> findHackathonsByParticipant(final User user) { HashMap<Hackathon, Team> result = new HashMap<>(); List<TeamMembership> memberships = teamMembershipRepository.findByMemberId(user) .orElse(new ArrayList<>()); for (TeamMembership teamMembership : memberships) { Team team = teamRepository.findById(teamMembership.getTeamId().getId()) .orElseThrow(() -> new TeamNotFoundException(teamMembership.getTeamId().getId())); result.put(team.getHackathon(), team); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendHelpOperations()\n\t{\n\t\t/*** API Calls ***/\n\t\tsendMessageAndAppend(this.channel,\n\t\t\t\t\"- Get most recent tweet by account name. Use the explicit command: !getrecenttweet <screen name/twitter handle>\");\n\t\tsendMessageAndAppend(this.channel,\n\t\t\t\t\"- Get most recent daily(Monday-Friday) stock data by symbol name(not case sensitive). Use the explicit command: !stockdata <stock symbol>\");\n\t\tsendMessageAndAppend(this.channel,\n\t\t\t\t\"- Weather data by zipcode or city name. Use the explicit command: !weathercity <city name> or just ask me something like: How's the weather in 75087?\");\n\t\tsendMessageAndAppend(this.channel, \"- Cryptocurrency price data: !cprice <crypto symbol (BTC, ETH, etc...)>\");\n\t\tsendMessageAndAppend(this.channel,\n\t\t\t\t\"- Exchange rates for any currency: !exchange <currency symbol (USD, JPY, MXN, etc...)>\");\n\t\tsendMessageAndAppend(this.channel,\n\t\t\t\t\"- State/city government representatives by zipcode: !representatives <zipcode> or just ask me something like: Who are the representatives for 01002?\");\n\t\tsendMessageAndAppend(this.channel,\n\t\t\t\t\"- Get distance between two zip codes in miles or kilometers: !distance <zipcode 1> <zipcode 2> <m or k>\");\n\t\tsendMessageAndAppend(this.channel, \"- Get current coordinates of the International Space Station: !iss\");\n\t\tsendMessageAndAppend(this.channel,\n\t\t\t\t\"- Find the name of a pokemon by its ID number: !pokefind <pokemon ID number>\");\n\t\tsendMessageAndAppend(this.channel,\n\t\t\t\t\"- Translate English to Dothraki: !dothraki <English sentence to be translated>\");\n\t\t///\n\n\t\t/*** Math functions ***/\n\t\tsendMessageAndAppend(this.channel, \"- Multiply a list of numbers: !multiply <num1> <num2> <num3> ... <num N>\");\n\t\tsendMessageAndAppend(this.channel, \"- Apply factorial on a number: !factorial <number>\");\n\t\tsendMessageAndAppend(this.channel, \"- Calculate exponential: !ex <base> <exponent>\");\n\t\t///\n\n\t\t/*** Miscellaneous ***/\n\t\tsendMessageAndAppend(this.channel, \"- Change my nickname: !changenick <new nickname>\");\n\t\tsendMessageAndAppend(this.channel, \"- Get the current time: !time\");\n\t\tsendMessageAndAppend(this.channel, \"- Ping the bot: !ping\");\n\t\t///\n\t}", "public void sendToOutpatients(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "private void trySendingFlag() {\n View rootView = getActivity().findViewById(android.R.id.content);\n TextView commentView = (TextView) rootView.findViewById(R.id.flagDetailCommentField);\n String comment = commentView.getText().toString();\n\n IFlag flag;\n try {\n flag = new Flag(flagType, comment);\n FlagCurrentBusTask flagCurrentBusTask = new FlagCurrentBusTask(currentContext.getApplicationContext());\n flagCurrentBusTask.execute(flag);\n switchToFlagFragment();\n } catch (IllegalArgumentException e) {\n // flag couldn't be created\n Toast.makeText(getActivity().getApplicationContext(),\n getString(R.string.flag_longer_comment_needed), Toast.LENGTH_SHORT).show();\n }\n }", "private void m9024b() {\n AppMethodBeat.m2504i(98677);\n Object obj = null;\n if (this.f15283d != null && this.f15283d.size() > 0) {\n Object obj2;\n Iterator it = this.f15283d.keySet().iterator();\n while (true) {\n obj2 = obj;\n if (!it.hasNext()) {\n break;\n }\n String str = (String) it.next();\n this.f1556t.addRequestProperty(str, (String) this.f15283d.get(str));\n obj = str.toLowerCase().contains(\"host\") ? 1 : obj2;\n }\n obj = obj2;\n }\n if (obj == null) {\n this.f1556t.setRequestProperty(\"Host\", this.f1560x);\n }\n this.f1556t.setRequestProperty(\"Halley\", this.f15286g + \"-\" + this.f1554r + \"-\" + System.currentTimeMillis());\n if (this.f1553q) {\n this.f1556t.setRequestProperty(\"X-Online-Host\", this.f1560x);\n this.f1556t.setRequestProperty(\"x-tx-host\", this.f1560x);\n }\n AppMethodBeat.m2505o(98677);\n }", "@Override\n\tpublic void challenge7() {\n\n\t}", "public int mo33388a(boolean z, String str) {\n ArrayList arrayList;\n String str2 = \"TpnsChannel\";\n long currentTimeMillis = System.currentTimeMillis();\n if (currentTimeMillis - f23262D > 120000 || z) {\n f23262D = currentTimeMillis;\n Context f = C6973b.m29776f();\n if (f != null && !C7056i.m30194b(f.getPackageName())) {\n if (str == null) {\n arrayList = C6871c.m29327a().mo33023d(f);\n } else {\n arrayList = C6871c.m29327a().mo33019c(f, str);\n }\n if (arrayList != null && arrayList.size() > 0) {\n boolean z2 = XGPushConfig.enableDebug;\n String str3 = Constants.ServiceLogTag;\n if (z2) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Action -> trySendCachedMsgIntent with CachedMsgList size = \");\n sb.append(arrayList.size());\n C6864a.m29298c(str3, sb.toString());\n }\n ArrayList arrayList2 = new ArrayList();\n for (int i = 0; i < arrayList.size(); i++) {\n CachedMessageIntent cachedMessageIntent = (CachedMessageIntent) arrayList.get(i);\n try {\n String decrypt = Rijndael.decrypt(cachedMessageIntent.intent);\n if (C7056i.m30194b(decrypt)) {\n arrayList2.add(cachedMessageIntent);\n } else {\n Intent parseUri = Intent.parseUri(decrypt, 1);\n String str4 = parseUri.getPackage();\n parseUri.getLongExtra(MessageKey.MSG_CREATE_MULTIPKG, 0);\n if (!C7056i.m30193b(C6973b.m29776f(), str4, parseUri.getLongExtra(\"accId\", 0))) {\n arrayList2.add(cachedMessageIntent);\n StringBuilder sb2 = new StringBuilder();\n sb2.append(str4);\n sb2.append(\" is uninstalled , discard the msg and report to the server\");\n C6864a.m29308i(str2, sb2.toString());\n C6982c.m29815a().mo33317a(str4);\n C6871c.m29327a().mo33017b(C6973b.m29776f(), str4, new ArrayList<>());\n } else {\n RegisterEntity registerInfoByPkgName = CacheManager.getRegisterInfoByPkgName(str4);\n if (registerInfoByPkgName == null || registerInfoByPkgName.state <= 0) {\n long longExtra = parseUri.getLongExtra(MessageKey.MSG_ID, 0);\n parseUri.getLongExtra(MessageKey.MSG_SERVER_TIME, 0);\n parseUri.getStringExtra(MessageKey.MSG_DATE);\n if (!C6860a.m29254a(C6973b.m29776f(), parseUri.getPackage(), parseUri)) {\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"ProviderUtils.sendMsgByPkgName error msgId = \");\n sb3.append(longExtra);\n sb3.append(\" appPkgName = \");\n sb3.append(str4);\n C6864a.m29308i(str3, sb3.toString());\n } else {\n arrayList2.add(cachedMessageIntent);\n C6987a.m29846a().mo33339b(C6973b.m29776f(), parseUri);\n }\n }\n }\n }\n } catch (Exception e) {\n C6864a.m29302d(str2, \"\", e);\n }\n }\n StringBuilder sb4 = new StringBuilder();\n sb4.append(\"sendedList.size() = \");\n sb4.append(arrayList2.size());\n C6864a.m29298c(str3, sb4.toString());\n if (arrayList2.size() > 0) {\n C6871c.m29327a().mo33013a(f, (List<CachedMessageIntent>) arrayList2, arrayList);\n }\n return arrayList.size();\n }\n }\n }\n return 0;\n }", "public void sendHellos() {\n\t\tint lnk = 0;\n\t\tboolean isChanged = false;\n\t\tfor (LinkInfo lnkInfo : lnkVec) {\n\n\t\t\t// if no reply to the last hello, subtract 1 from\n\t\t\t// link status if it's not already 0\n\t\t\tif (!lnkInfo.gotReply){\n\t\t\t\tif (lnkInfo.helloState != 0){\n\t\t\t\t\tlnkInfo.helloState--;\n\t\t\t\t}\t\n\n\t\t\t\t// go through the routes to check routes \n\t\t\t\t// that contain the failed link\n\t\t\t\telse {\n\t\t\t\t\tfor (Route rte : rteTbl){\n\t\t\t\t\t\tif (rte.path.contains(lnk)){\n\t\t\t\t\t\t\tif (rte.valid != false){\n\t\t\t\t\t\t\t\tisChanged = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trte.valid = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// print routing table if debug is enabled \n\t\t\t// and valid field of route is changed\n\t\t\tif (debug > 0 && isChanged){\n\t\t\t\tprintTable();\n\t\t\t}\n\n\t\t\t// send link failure advertisement if enFA is enabled\n\t\t\t// and valid field of route is changed\n\t\t\tif (enFA && isChanged){\n\t\t\t\tsendFailureAdvert(lnk);\n\t\t\t\tisChanged = false;\n\t\t\t}\n\n\t\t\t// send new hello, after setting gotReply to false\n\t\t\tlnkInfo.gotReply = false;\n\t\t\tPacket p = new Packet();\n\t\t\tp.protocol = 2;\n\t\t\tp.ttl = 100;\n\t\t\tp.srcAdr = myIp;\n\t\t\tp.destAdr = lnkInfo.peerIp;\n\t\t\tp.payload = String.format(\"RPv0\\ntype: hello\\n\"\n\t\t\t\t\t+ \"timestamp: %.3f \\n\",\n\t\t\t\t\tnow);\n\t\t\tfwdr.sendPkt(p, lnk);\n\t\t}\n\t}", "private static void dealwithelp() {\r\n\t\tSystem.out.println(\"1 ) myip - to see your ip address.\");\r\n\t\tSystem.out.println(\"2 ) myport - to see your port number.\");\r\n\t\tSystem.out.println(\"3 ) connect <ip> <port> - connect to peer.\");\r\n\t\tSystem.out.println(\"4 ) list Command - list all the connected peer/peers.\");\r\n\t\tSystem.out.println(\"5 ) send <id> - to send message to peer.\");\r\n\t\tSystem.out.println(\"6 ) terminate <id> - terminate the connection\");\r\n\t\tSystem.out.println(\"7 ) exit - exit the program.\");\r\n\t}", "public void sendDiscrepancyEmail() throws Exception;", "public void sendToWard(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private synchronized void trySendToServer() throws SecurityException, KeyPoolException, IdentityException, IOException {\n if (Thread.currentThread().isInterrupted()) return;\n\n // Wait for enough proofs (don't forget we included our proof)\n if (proofs.size() >= HelperConstants.MAX_BYZANTINE_USERS + 1 + 1) {\n // Send records to all known servers\n this.user.trySendLocationReport(new Report(this.myRecord, List.copyOf(proofs)));\n // System.out.printf(\"[epoch %d] Got OK from quorum of servers\\n\", this.myRecord.getEpoch());\n\n // kill all threads\n for(Thread t: ongoingProofRequests) {\n // I will kill myself last\n if (t.isAlive() && Thread.currentThread().getId() != t.getId()) t.interrupt();\n }\n }\n }", "@Override\n\tpublic void challenge9() {\n\n\t}", "@Override // com.igexin.push.p671g.p673b.AbstractC5937h\n /* renamed from: a */\n public void mo39819a() {\n try {\n StringBuilder sb = new StringBuilder();\n sb.append(C5871f.f24630f.getPackageName());\n sb.append(MqttTopic.MULTI_LEVEL_WILDCARD);\n sb.append(C5792l.m35140a(this.f24367b, (String) this.f24366a.get(PushClientConstants.TAG_PKG_NAME)));\n sb.append(MqttTopic.MULTI_LEVEL_WILDCARD);\n sb.append((String) this.f24366a.get(PushClientConstants.TAG_PKG_NAME));\n sb.append(MqttTopic.TOPIC_LEVEL_SEPARATOR);\n sb.append((String) this.f24366a.get(\"serviceName\"));\n sb.append(MqttTopic.MULTI_LEVEL_WILDCARD);\n sb.append(C5792l.m35148a((String) this.f24366a.get(PushClientConstants.TAG_PKG_NAME), (String) this.f24366a.get(\"serviceName\")) ? \"1\" : \"0\");\n C5792l.m35143a(this.f24367b, \"30026\", sb.toString(), (String) this.f24366a.get(\"messageId\"), (String) this.f24366a.get(\"taskId\"), (String) this.f24366a.get(\"id\"));\n ActivityC5721b.m34806a(\"feedback actionId=30026 result=\" + sb.toString());\n } catch (Throwable unused) {\n }\n }", "@Override\r\n\tpublic void doTask(Entity e) {\r\n\t\tif (e instanceof Computer) {\r\n\t\t\thack(e);\r\n\t\t} else if (e instanceof Door) {\r\n\t\t\thack(e);\r\n\t\t} else {\r\n\r\n\t\t}\r\n\t}", "void submitBug() {\n\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"plain/text\");\n intent.putExtra(Intent.EXTRA_EMAIL, new String[] { \"[email protected]\" });\n intent.putExtra(Intent.EXTRA_SUBJECT, \"36-3 Bug Report\");\n intent.putExtra(Intent.EXTRA_TEXT, \"The following question is incorrect: \\n\\n\" + \"Question Number: \" + currentQ.getID() + \"\\n\\n\" + currentQ.getQUESTION() + \"\\n\\n\" + \"Choice A: \"+ currentQ.getOPTA() + \"\\n\\n\" + \"Choice B: \"+ currentQ.getOPTB() + \"\\n\\n\" + \"Choice C: \" + currentQ.getOPTC() + \"\\n\\n\" + \"Choice D: \" + currentQ.getOPTD() + \"\\n\\n Additional Information: \\n\");\n startActivity(Intent.createChooser(intent, \"\"));\n\n\n }", "@Override\r\n\tprotected void beforeSendCommands(String cmds) {\n\r\n\t}", "public synchronized void m29983k() {\n if (this.f23294u.isEmpty()) {\n if (this.f23286B == null) {\n this.f23286B = new C7030c(7, null, this.f23290J);\n }\n if (this.f23286B.f23372f == null) {\n this.f23286B = new C7030c(7, null, this.f23290J);\n }\n if (XGPushConfig.enableDebug) {\n C6864a.m29298c(\"TpnsChannel\", \"Action -> send heartbeat \");\n }\n m29967a(-1, this.f23286B);\n if ((f23266a > 0 && f23266a % 3 == 0) || f23266a == 2) {\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n C7056i.m30212h(C6973b.m29776f());\n }\n });\n }\n }\n m29985m();\n C6860a.m29257b(C6973b.m29776f());\n C7059f.m30231a(C6973b.m29776f()).mo34155a();\n m29980i();\n if (XGPushConfig.isLocationEnable(C6973b.m29776f())) {\n if (f23264F == 0) {\n f23264F = C7055h.m30167a(C6973b.m29776f(), Constants.LOC_REPORT_TIME, 0);\n }\n long currentTimeMillis = System.currentTimeMillis();\n if (f23264F == 0 || Math.abs(currentTimeMillis - f23264F) > ((long) f23281p)) {\n final JSONObject reportLocationJson = CustomDeviceInfos.getReportLocationJson(C6973b.m29776f());\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n C7046a.m30130b(C6973b.m29776f(), \"location\", reportLocationJson);\n }\n });\n f23264F = currentTimeMillis;\n C7055h.m30171b(C6973b.m29776f(), Constants.LOC_REPORT_TIME, currentTimeMillis);\n }\n }\n }", "private String bossReject(){\n return \"我覺得你們需要重做,因為跟我想的不一樣\";\n }", "pb4server.MakeSoliderAskReq getMakeSoliderAskReq();", "@Override\n\tpublic void challenge15() {\n\n\t}", "public void test6(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "@Override\n\tpublic void challenge14() {\n\n\t}", "@Override\n\tpublic void challenge8() {\n\n\t}", "public boolean sendBroadcast(android.content.Intent r24) {\n /*\n r23 = this;\n r1 = r23;\n r2 = r24;\n r3 = r1.mReceivers;\n monitor-enter(r3);\n r11 = r24.getAction();\t Catch:{ all -> 0x0173 }\n r4 = r1.mAppContext;\t Catch:{ all -> 0x0173 }\n r4 = r4.getContentResolver();\t Catch:{ all -> 0x0173 }\n r12 = r2.resolveTypeIfNeeded(r4);\t Catch:{ all -> 0x0173 }\n r13 = r24.getData();\t Catch:{ all -> 0x0173 }\n r14 = r24.getScheme();\t Catch:{ all -> 0x0173 }\n r15 = r24.getCategories();\t Catch:{ all -> 0x0173 }\n r4 = r24.getFlags();\t Catch:{ all -> 0x0173 }\n r4 = r4 & 8;\n if (r4 == 0) goto L_0x002c;\n L_0x0029:\n r16 = 1;\n goto L_0x002e;\n L_0x002c:\n r16 = 0;\n L_0x002e:\n if (r16 == 0) goto L_0x0056;\n L_0x0030:\n r4 = \"LocalBroadcastManager\";\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0173 }\n r5.<init>();\t Catch:{ all -> 0x0173 }\n r6 = \"Resolving type \";\n r5.append(r6);\t Catch:{ all -> 0x0173 }\n r5.append(r12);\t Catch:{ all -> 0x0173 }\n r6 = \" scheme \";\n r5.append(r6);\t Catch:{ all -> 0x0173 }\n r5.append(r14);\t Catch:{ all -> 0x0173 }\n r6 = \" of intent \";\n r5.append(r6);\t Catch:{ all -> 0x0173 }\n r5.append(r2);\t Catch:{ all -> 0x0173 }\n r5 = r5.toString();\t Catch:{ all -> 0x0173 }\n android.util.Log.v(r4, r5);\t Catch:{ all -> 0x0173 }\n L_0x0056:\n r4 = r1.mActions;\t Catch:{ all -> 0x0173 }\n r5 = r24.getAction();\t Catch:{ all -> 0x0173 }\n r4 = r4.get(r5);\t Catch:{ all -> 0x0173 }\n r8 = r4;\n r8 = (java.util.ArrayList) r8;\t Catch:{ all -> 0x0173 }\n if (r8 == 0) goto L_0x0170;\n L_0x0065:\n if (r16 == 0) goto L_0x007d;\n L_0x0067:\n r4 = \"LocalBroadcastManager\";\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0173 }\n r5.<init>();\t Catch:{ all -> 0x0173 }\n r6 = \"Action list: \";\n r5.append(r6);\t Catch:{ all -> 0x0173 }\n r5.append(r8);\t Catch:{ all -> 0x0173 }\n r5 = r5.toString();\t Catch:{ all -> 0x0173 }\n android.util.Log.v(r4, r5);\t Catch:{ all -> 0x0173 }\n L_0x007d:\n r4 = 0;\n r6 = r4;\n r7 = 0;\n L_0x0080:\n r4 = r8.size();\t Catch:{ all -> 0x0173 }\n if (r7 >= r4) goto L_0x0140;\n L_0x0086:\n r4 = r8.get(r7);\t Catch:{ all -> 0x0173 }\n r5 = r4;\n r5 = (android.support.v4.content.LocalBroadcastManager.ReceiverRecord) r5;\t Catch:{ all -> 0x0173 }\n if (r16 == 0) goto L_0x00a7;\n L_0x008f:\n r4 = \"LocalBroadcastManager\";\n r9 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0173 }\n r9.<init>();\t Catch:{ all -> 0x0173 }\n r10 = \"Matching against filter \";\n r9.append(r10);\t Catch:{ all -> 0x0173 }\n r10 = r5.filter;\t Catch:{ all -> 0x0173 }\n r9.append(r10);\t Catch:{ all -> 0x0173 }\n r9 = r9.toString();\t Catch:{ all -> 0x0173 }\n android.util.Log.v(r4, r9);\t Catch:{ all -> 0x0173 }\n L_0x00a7:\n r4 = r5.broadcasting;\t Catch:{ all -> 0x0173 }\n if (r4 == 0) goto L_0x00c2;\n L_0x00ab:\n if (r16 == 0) goto L_0x00b4;\n L_0x00ad:\n r4 = \"LocalBroadcastManager\";\n r5 = \" Filter's target already added\";\n android.util.Log.v(r4, r5);\t Catch:{ all -> 0x0173 }\n L_0x00b4:\n r18 = r7;\n r19 = r8;\n r17 = r11;\n r20 = r12;\n r21 = r13;\n r13 = 1;\n r11 = r6;\n goto L_0x0133;\n L_0x00c2:\n r4 = r5.filter;\t Catch:{ all -> 0x0173 }\n r10 = \"LocalBroadcastManager\";\n r9 = r5;\n r5 = r11;\n r17 = r11;\n r11 = r6;\n r6 = r12;\n r18 = r7;\n r7 = r14;\n r19 = r8;\n r8 = r13;\n r20 = r12;\n r21 = r13;\n r13 = 1;\n r12 = r9;\n r9 = r15;\n r4 = r4.match(r5, r6, r7, r8, r9, r10);\t Catch:{ all -> 0x0173 }\n if (r4 < 0) goto L_0x010a;\n L_0x00df:\n if (r16 == 0) goto L_0x00fb;\n L_0x00e1:\n r5 = \"LocalBroadcastManager\";\n r6 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0173 }\n r6.<init>();\t Catch:{ all -> 0x0173 }\n r7 = \" Filter matched! match=0x\";\n r6.append(r7);\t Catch:{ all -> 0x0173 }\n r4 = java.lang.Integer.toHexString(r4);\t Catch:{ all -> 0x0173 }\n r6.append(r4);\t Catch:{ all -> 0x0173 }\n r4 = r6.toString();\t Catch:{ all -> 0x0173 }\n android.util.Log.v(r5, r4);\t Catch:{ all -> 0x0173 }\n L_0x00fb:\n if (r11 != 0) goto L_0x0103;\n L_0x00fd:\n r6 = new java.util.ArrayList;\t Catch:{ all -> 0x0173 }\n r6.<init>();\t Catch:{ all -> 0x0173 }\n goto L_0x0104;\n L_0x0103:\n r6 = r11;\n L_0x0104:\n r6.add(r12);\t Catch:{ all -> 0x0173 }\n r12.broadcasting = r13;\t Catch:{ all -> 0x0173 }\n goto L_0x0134;\n L_0x010a:\n if (r16 == 0) goto L_0x0133;\n L_0x010c:\n switch(r4) {\n case -4: goto L_0x011b;\n case -3: goto L_0x0118;\n case -2: goto L_0x0115;\n case -1: goto L_0x0112;\n default: goto L_0x010f;\n };\t Catch:{ all -> 0x0173 }\n L_0x010f:\n r4 = \"unknown reason\";\n goto L_0x011d;\n L_0x0112:\n r4 = \"type\";\n goto L_0x011d;\n L_0x0115:\n r4 = \"data\";\n goto L_0x011d;\n L_0x0118:\n r4 = \"action\";\n goto L_0x011d;\n L_0x011b:\n r4 = \"category\";\n L_0x011d:\n r5 = \"LocalBroadcastManager\";\n r6 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0173 }\n r6.<init>();\t Catch:{ all -> 0x0173 }\n r7 = \" Filter did not match: \";\n r6.append(r7);\t Catch:{ all -> 0x0173 }\n r6.append(r4);\t Catch:{ all -> 0x0173 }\n r4 = r6.toString();\t Catch:{ all -> 0x0173 }\n android.util.Log.v(r5, r4);\t Catch:{ all -> 0x0173 }\n L_0x0133:\n r6 = r11;\n L_0x0134:\n r7 = r18 + 1;\n r11 = r17;\n r8 = r19;\n r12 = r20;\n r13 = r21;\n goto L_0x0080;\n L_0x0140:\n r11 = r6;\n r13 = 1;\n if (r11 == 0) goto L_0x0170;\n L_0x0144:\n r4 = 0;\n L_0x0145:\n r5 = r11.size();\t Catch:{ all -> 0x0173 }\n if (r4 >= r5) goto L_0x0157;\n L_0x014b:\n r5 = r11.get(r4);\t Catch:{ all -> 0x0173 }\n r5 = (android.support.v4.content.LocalBroadcastManager.ReceiverRecord) r5;\t Catch:{ all -> 0x0173 }\n r6 = 0;\n r5.broadcasting = r6;\t Catch:{ all -> 0x0173 }\n r4 = r4 + 1;\n goto L_0x0145;\n L_0x0157:\n r4 = r1.mPendingBroadcasts;\t Catch:{ all -> 0x0173 }\n r5 = new android.support.v4.content.LocalBroadcastManager$BroadcastRecord;\t Catch:{ all -> 0x0173 }\n r5.<init>(r2, r11);\t Catch:{ all -> 0x0173 }\n r4.add(r5);\t Catch:{ all -> 0x0173 }\n r2 = r1.mHandler;\t Catch:{ all -> 0x0173 }\n r2 = r2.hasMessages(r13);\t Catch:{ all -> 0x0173 }\n if (r2 != 0) goto L_0x016e;\n L_0x0169:\n r2 = r1.mHandler;\t Catch:{ all -> 0x0173 }\n r2.sendEmptyMessage(r13);\t Catch:{ all -> 0x0173 }\n L_0x016e:\n monitor-exit(r3);\t Catch:{ all -> 0x0173 }\n return r13;\n L_0x0170:\n r6 = 0;\n monitor-exit(r3);\t Catch:{ all -> 0x0173 }\n return r6;\n L_0x0173:\n r0 = move-exception;\n r2 = r0;\n monitor-exit(r3);\t Catch:{ all -> 0x0173 }\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v4.content.LocalBroadcastManager.sendBroadcast(android.content.Intent):boolean\");\n }", "final protected void sendAll() {\n\t\tsendAllBut(null);\n\t}", "@Override\n\tpublic void challenge6() {\n\n\t}", "public final void run() {\n AppMethodBeat.i(108148);\n if (q.a(cVar2.aBx(), jSONObject2, (com.tencent.mm.plugin.appbrand.s.q.a) cVar2.aa(com.tencent.mm.plugin.appbrand.s.q.a.class)) == b.FAIL_SIZE_EXCEED_LIMIT) {\n aVar2.BA(\"convert native buffer parameter fail. native buffer exceed size limit.\");\n AppMethodBeat.o(108148);\n return;\n }\n String CS = j.CS(jSONObject2.optString(\"url\"));\n Object opt = jSONObject2.opt(\"data\");\n String optString = jSONObject2.optString(FirebaseAnalytics.b.METHOD);\n if (bo.isNullOrNil(optString)) {\n optString = \"GET\";\n }\n if (TextUtils.isEmpty(CS)) {\n aVar2.BA(\"url is null\");\n AppMethodBeat.o(108148);\n } else if (URLUtil.isHttpsUrl(CS) || URLUtil.isHttpUrl(CS)) {\n byte[] bArr = new byte[0];\n if (opt != null && d.CK(optString)) {\n if (opt instanceof String) {\n bArr = ((String) opt).getBytes(Charset.forName(\"UTF-8\"));\n } else if (opt instanceof ByteBuffer) {\n bArr = com.tencent.mm.plugin.appbrand.r.d.q((ByteBuffer) opt);\n }\n }\n synchronized (d.this.ioA) {\n try {\n if (d.this.ioA.size() >= d.this.ioB) {\n aVar2.BA(\"max connected\");\n ab.i(\"MicroMsg.AppBrandNetworkRequest\", \"max connected mRequestTaskList.size():%d,mMaxRequestConcurrent:%d\", Integer.valueOf(d.this.ioA.size()), Integer.valueOf(d.this.ioB));\n }\n } finally {\n while (true) {\n }\n AppMethodBeat.o(108148);\n }\n }\n } else {\n aVar2.BA(\"request protocol must be http or https\");\n AppMethodBeat.o(108148);\n }\n }", "public synchronized void tryExecuteRequests(){\n Object lpid = getLocalProcessID();\n\n JDSUtility.debug(\"[PBFTSever:handle(token)] s\" + lpid + \", at time \" + getClockValue() + \", is going to execute requests.\");\n\n //if(isValid(proctoken)){\n long startSEQ = getStateLog().getNextExecuteSEQ();\n long finalSEQ = getHCWM();//proctoken.getSequenceNumber();\n long lcwm = getLCWM();\n\n PBFTRequestInfo rinfo = getRequestInfo();\n\n int viewn = getCurrentViewNumber();\n\n int f = getServiceBFTResilience();\n\n for(long currSEQ = startSEQ; currSEQ <= finalSEQ && currSEQ > lcwm; currSEQ ++){\n\n if(!(getPrepareInfo().count(viewn, currSEQ) >= (2* f) && getCommitInfo().count(viewn, currSEQ) >= (2 * f +1))){\n return;\n }\n\n if(rinfo.hasSomeRequestMissed(currSEQ)){\n JDSUtility.debug(\"[tryExecuteRequests()] s\" + lpid+ \", at time \" + getClockValue() + \", couldn't executed \" + currSEQ + \" because it has a missed request.\");\n return;\n }\n\n if(rinfo.wasServed(currSEQ)){\n continue;\n }\n\n executeSequencedComand(currSEQ);\n//\n// PBFTPrePrepare preprepare = getPrePrepareInfo().get(viewn, currSEQ);\n//\n// for(String digest : preprepare.getDigests()){\n// StatedPBFTRequestMessage loggedRequest = rinfo.getStatedRequest(digest);\n// PBFTRequest request = loggedRequest.getRequest();//rinfo.getRequest(digest); //statedReq.getRequest();\n//\n// IPayload result = lServer.executeCommand(request.getPayload());\n//\n// PBFTReply reply = createReplyMessage(request, result);\n// loggedRequest.setState(RequestState.SERVED);\n// loggedRequest.setReply(reply);\n//\n// JDSUtility.debug(\n// \"[tryExecuteRequests()] s\" + lpid + \", at time \" + getClockValue() + \", executed \" + request + \" (CURR-VIEWN{ \" + viewn + \"}; SEQN{\" + currSEQ + \"}).\"\n// );\n//\n// JDSUtility.debug(\"[tryExecuteRequests()] s\" + lpid + \", at time \" + getClockValue() + \", has the following state \" + lServer.getCurrentState());\n//\n// loggedRequest.setReplySendTime(getClockValue());\n//\n// if(rinfo.isNewest(request)){\n// IProcess client = new BaseProcess(reply.getClientID());\n// emit(reply, client);\n// }\n//\n// }//end for each leafPartDigest (tryExecuteRequests and reply)\n \n IRecoverableServer lServer = (IRecoverableServer)getServer();\n JDSUtility.debug(\n \"[tryExecuteRequests()] s\" + lpid + \", at time \" + getClockValue() + \", after execute SEQN{\" + currSEQ + \"} has the following \" +\n \"state \" + lServer.getCurrentState()\n );\n\n getStateLog().updateNextExecuteSEQ(currSEQ);\n\n long execSEQ = getStateLog().getNextExecuteSEQ() -1;\n long chkPeriod = getCheckpointPeriod();\n\n\n if(execSEQ > 0 && (((execSEQ+1) % chkPeriod) == 0)){\n PBFTCheckpoint checkpoint;\n try {\n checkpoint = createCheckpointMessage(execSEQ);\n getDecision(checkpoint);\n rStateManager.addLogEntry(\n new CheckpointLogEntry(\n checkpoint.getSequenceNumber(),\n rStateManager.byteArray(),\n checkpoint.getDigest()\n )\n );\n\n\n emit(checkpoint, getLocalGroup().minus(getLocalProcess()));\n handle(checkpoint);\n } catch (Exception ex) {\n Logger.getLogger(PBFTServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n if(rinfo.hasSomeWaiting()){\n if(isPrimary()){\n batch();\n }else{\n scheduleViewChange();\n }\n }\n }\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tStaticString.information = null;// 判断回复信息之间清空之前信息\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\t\tSocketConnet.getInstance().communication(888,new String[]{mLogsIndexNumber});\r\n\t\t\t\tif (ReplyParser.waitReply()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "private void sendDataToQueue(byte[] data){\n\t\t//*****************************************\n\t\t//Se possuir o Prefixo de Comando Interno, então envia o Comando para a Fila de Comandos Internos do Core\n\t\t// Do contrário envia o Comando para a Fila de Dados a Serem enviados pelo BluetootSenderWorker ao Carro\n\t\tif(new String(data).contains(SystemProperties.COMANDO_INTERNO_PREFIXO)){\n\t\t\tthis.systemCore.addDataToInternalCommandQueue(data);\n\t\t\tthis.sendMessageToPrompt(\"Comando enviado a Fila de comandos Internos do Dispositivo Android...\");\n\t\t}else{\n\t\t\tthis.systemCore.addDataToCarControlQueue(data);\n\t\t\tthis.sendMessageToPrompt(\"Controle enviado a Fila de dados a serem enviados ao Carro...\");\n\t\t}\n\t}", "public interface JbpmService {\n\n /**\n * Delegate a task owned by sourceUserId to targetUserId\n * \n * @param taskId\n * @param sourceUserId\n * @param targetUserId\n */\n void delegateTask(Long taskId, String sourceUserId, String targetUserId);\n\n List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId, String locale);\n\n /**\n * Gets all tasks assigned to a particular userid filtered by processId(which is same as Task.PROCESSID column or bpmn file process identifier)\n * \n * @param userId\n * @param processId\n * @return\n */\n List<TaskSummary> getTasksAssignedAsPotentialOwnerByProcessId(String userId, String processId);\n\n /**\n * @param userId\n * @param processId\n * @param deploymentId\n * @return\n */\n List<TaskSummary> getTasksAssignedAsPotentialOwnerByProcessId(String userId, String processId, String deploymentId) throws RuntimeException;\n\n /**\n * Claim a taskList by user\n * \n * @param userId\n * @param taskList\n * @return\n */\n void claimTask(String userId, List<TaskSummary> taskList);\n\n /**\n * This Claims a task with taskId by userId\n * \n * @param userId\n * @param taskId\n */\n void claimTask(String userId, Long taskId);\n\n /**\n * This moves to state of task to Complete state.(Reserved->InProgress->Completed)\n * \n * @param userId\n * @param taskId\n * @param results\n */\n void completeTask(String userId, Long taskId, Map<String, Object> results);\n\n /**\n * This api releases the claim by userId on taskid\n * \n * @param userId\n * @param taskId\n */\n void releaseTask(String userId, Long taskId);\n\n /**\n * This api releases the claim by userId on taskList\n * \n * @param userId\n * @param taskList\n * @param results\n */\n void releaseTask(String userId, List<TaskSummary> taskList, Map<String, Object> results);\n\n /**\n * This moves to state of taskList to Complete state.(Reserved->InProgress->Completed)\n * \n * @param userId\n * @param taskList\n * @param results\n * @throws Exception\n */\n void completeTask(String userId, List<TaskSummary> taskList, Map<String, Object> results);\n\n /**\n * Gets all tasks assigned to a particular userid\n * \n * @param processInstanceId\n * @param locale\n * , eg: en-UK or en-US based on task configured in workflow\n * @return\n */\n List<TaskSummary> getTasksByProcessInstanceId(Long processInstanceId, String locale);\n\n /**\n * Start a new process instance. The process (definition) that should be used is referenced by the given process id. Parameters can be passed to the process instance (as name-value pairs), and\n * these will be set as variables of the process instance.\n * \n * @param processId\n * the id of the process that should be started\n * @param parameters\n * the process variables that should be set when starting the process instance\n * @return the ProcessInstance that represents the instance of the process that was started\n * @throws Exception\n */\n ProcessInstance startProcess(String processId, Map<String, Object> params);\n\n /**\n * Nominate a task with taskId to userlist , this is operator only when task is in created state\n * \n * @param userId\n * @param userList\n * @param taskId\n */\n void nominateTask(String userId, List<String> userList, Long taskId);\n\n \n\n /**\n * Gets all tasks assigned to a particular processInstanceId ,statusList and formNameList\n * \n * @param processInstanceId\n * @param locale\n * , eg: en-UK or en-US based on task configured in workflow\n * @return\n */\n List<TaskImpl> getTasksByProcessInstanceIdStatusFormName(Long processInstanceId, List<Status> statusList, List<String> formName);\n\n /**\n * Check if workflow is active or completed.\n * \n * @param processInstanceId\n * @return\n */\n boolean isWorkflowActive(Long processInstanceId);\n\n /**\n * @param processInstanceId\n * @param formName\n * @param action\n * @param approver\n * @param state\n * @throws Exception\n */\n Long completeTask(Long processInstanceId, String formName, String action, String approver, String state);\n\n /**\n * Abort a running process instance.\n * \n * @param processInstanceId\n * the id of the process that already in run.\n * @throws Exception\n */\n void abortProcess(Long processInstanceId);\n\n List<TaskImpl> getTaskPendingByActor(Map<String, Object> params);\n\n Task getTaskById(Long taskId);\n\n /***\n * Gets all tasks assigned to a userId deploymentId\n * \n * @param userId\n * @param deploymentId\n * @return\n * @throws Exception\n */\n List<TaskSummary> getTasksAssignedAsPotentialOwnerByDeploymentId(String userId, String deploymentId);\n\n TaskService getTaskService();\n\n AuditService getAuditService();\n\n RuntimeEngine getEngine();\n\n KieSession getKsession();\n\n AuditLogService getLogService();\n\n RuntimeManager getManager();\n\n}", "@Override\r\n\tpublic void fixIssue() {\n\t\tthis.techie.fixIssue(\"network issue\");\r\n\t}", "private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }", "public ChannelFuture method_4126() {\n return null;\n }", "private ByteBuffer m152573b(int i) {\n String str = i != 404 ? \"500 Internal Server Error\" : \"404 WebSocket Upgrade Failure\";\n return ByteBuffer.wrap(Charsetfunctions.m152704b(\"HTTP/1.1 \" + str + \"\\r\\nContent-Type: text/html\\nServer: TooTallNate Java-WebSocket\\r\\nContent-Length: \" + (str.length() + 48) + \"\\r\\n\\r\\n<html><head></head><body><h1>\" + str + \"</h1></body></html>\"));\n }", "private static void sendCrashData(@Nonnull CrashData data) {\n if (CRASH_SERVER == null) {\n return;\n }\n\n try {\n IMCSession mantisSession = new MCSession(CRASH_SERVER, \"Java Reporting System\",\n \"dA23MvKT1KDm4k0bQmMS\");\n IProject[] projects = mantisSession.getAccessibleProjects();\n IProject selectedProject = null;\n for (IProject project : projects) {\n if (project.getName().equalsIgnoreCase(data.getMantisProject())) {\n selectedProject = project;\n break;\n }\n }\n if (selectedProject == null) {\n log.error(\"Failed to find {} project.\", data.getMantisProject());\n return;\n }\n\n AppIdent application = data.getApplicationIdentifier();\n String summery = data.getExceptionName() + \" in Thread \" + data.getThreadName();\n\n String exceptionDescription = \"Exception: \" + data.getExceptionName() + \"\\nBacktrace:\\n\" +\n data.getStackBacktrace() + \"\\nDescription: \" + data.getDescription();\n\n String description = \"Application:\" + application.getApplicationIdentifier() +\n (application.getCommitCount() > 0 ? \" (DEV)\" : \"\") +\n \"\\nThread: \" + data.getThreadName() +\n '\\n' + exceptionDescription;\n\n @Nullable IIssue similarIssue = null;\n @Nullable IIssue possibleDuplicateIssue = null;\n @Nullable IIssue duplicateIssue = null;\n\n @Nonnull IIssueHeader[] headers = mantisSession.getProjectIssueHeaders(selectedProject.getId());\n for (@Nonnull IIssueHeader header : headers) {\n if (!CATEGORY.equals(header.getCategory())) {\n continue;\n }\n\n if (!saveString(header.getSummary()).equals(summery)) {\n continue;\n }\n\n @Nonnull IIssue checkedIssue = mantisSession.getIssue(header.getId());\n\n if (!saveString(checkedIssue.getDescription()).endsWith(exceptionDescription)) {\n continue;\n }\n\n similarIssue = checkedIssue;\n\n if (!saveString(checkedIssue.getVersion()).equals(application.getApplicationRootVersion())) {\n continue;\n }\n\n if (!saveString(checkedIssue.getOs()).equals(System.getProperty(\"os.name\"))) {\n continue;\n }\n\n if (!saveString(checkedIssue.getOsBuild()).equals(System.getProperty(\"os.version\"))) {\n continue;\n }\n\n possibleDuplicateIssue = checkedIssue;\n\n if (saveString(checkedIssue.getDescription()).equals(description)) {\n duplicateIssue = checkedIssue;\n break;\n }\n }\n\n if (duplicateIssue != null) {\n INote note = mantisSession.newNote(\"Same problem occurred again.\");\n mantisSession.addNote(duplicateIssue.getId(), note);\n } else if (possibleDuplicateIssue != null) {\n INote note = mantisSession.newNote(\"A problem that is by all means very similar occurred:\\n\" +\n description + \"\\nOperating System: \" +\n System.getProperty(\"os.name\") + ' ' +\n System.getProperty(\"os.version\"));\n mantisSession.addNote(possibleDuplicateIssue.getId(), note);\n } else {\n IIssue issue = mantisSession.newIssue(selectedProject.getId());\n issue.setCategory(CATEGORY);\n issue.setSummary(summery);\n issue.setDescription(description);\n issue.setVersion(application.getApplicationRootVersion());\n issue.setOs(System.getProperty(\"os.name\"));\n issue.setOsBuild(System.getProperty(\"os.version\"));\n issue.setReproducibility(new MCAttribute(REPRODUCIBILITY_NA_NUM, null));\n issue.setSeverity(new MCAttribute(SEVERITY_CRASH_NUM, null));\n issue.setPriority(new MCAttribute(PRIORITY_HIGH_NUM, null));\n issue.setPrivate(false);\n\n long id = mantisSession.addIssue(issue);\n log.info(\"Added new Issue #{}\", id);\n\n if (similarIssue != null) {\n mantisSession\n .addNote(id, mantisSession.newNote(\"Similar issue was found at #\" + similarIssue.getId()));\n }\n }\n } catch (MCException e) {\n log.error(\"Failed to send error reporting data.\", e);\n }\n }", "protected void mo6255a() {\n }", "private void prepareSending(final String idx) {\n mSettings = Settings.get(m_context);\n com.klinker.android.send_message.Settings sendSettings = new com.klinker.android.send_message.Settings();\n sendSettings.setMmsc(mSettings.getMmsc());\n sendSettings.setProxy(mSettings.getMmsProxy());\n sendSettings.setPort(mSettings.getMmsPort());\n sendSettings.setUseSystemSending(true);\n mSendTransaction = new Transaction(m_context, sendSettings);\n\n// new WorkingThread(idx).start();\n ApnUtils.initDefaultApns(m_context, new ApnUtils.OnApnFinishedListener() {\n @Override\n public void onFinished() {\n mSettings = Settings.get(m_context, true);\n com.klinker.android.send_message.Settings sendSettings = new com.klinker.android.send_message.Settings();\n sendSettings.setMmsc(mSettings.getMmsc());\n sendSettings.setProxy(mSettings.getMmsProxy());\n sendSettings.setPort(mSettings.getMmsPort());\n sendSettings.setUseSystemSending(true);\n\n mSendTransaction = new Transaction(m_context, sendSettings);\n\n new WorkingThread(idx).start();\n }\n });\n }", "public void test7(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\", 3)){ /* BUG */\n\n }\n }", "@Override\n\tpublic void challenge13() {\n\n\t}", "@Override\n\tpublic void challenge12() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "public final void a(int i, int i2, int i3, String str, q qVar, byte[] bArr) {\n AppMethodBeat.i(109251);\n ab.d(TAG, \"netId : \" + i + \" errType :\" + i2 + \" errCode: \" + i3 + \" errMsg :\" + str);\n f fVar;\n if (i2 == 0 && i3 == 0) {\n com.tencent.mm.bt.a acA = this.ehh.acA();\n v vVar;\n if (acA == null) {\n vVar = new v(\"null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.StorySyncResponse\");\n AppMethodBeat.o(109251);\n throw vVar;\n }\n LinkedList linkedList;\n cfa cfa = (cfa) acA;\n tc tcVar = cfa.vTR;\n if (tcVar != null) {\n linkedList = tcVar.jBw;\n }\n linkedList = new LinkedList();\n if (linkedList.size() > 0) {\n b bVar = this.rUU;\n j.p(linkedList, \"cmdList\");\n bVar.mgm = linkedList;\n bVar.mgn.sendEmptyMessage(0);\n AppMethodBeat.o(109251);\n return;\n }\n if (cfa.vTO != null) {\n SKBuiltinBuffer_t sKBuiltinBuffer_t = cfa.vTO;\n j.o(sKBuiltinBuffer_t, \"resp.KeyBuf\");\n if (sKBuiltinBuffer_t.getBuffer() != null) {\n SKBuiltinBuffer_t sKBuiltinBuffer_t2 = cfa.vTO;\n j.o(sKBuiltinBuffer_t2, \"resp.KeyBuf\");\n byte[] toByteArray = sKBuiltinBuffer_t2.getBuffer().toByteArray();\n acA = this.ehh.acz();\n if (acA == null) {\n vVar = new v(\"null cannot be cast to non-null type com.tencent.mm.protocal.protobuf.StorySyncRequest\");\n AppMethodBeat.o(109251);\n throw vVar;\n }\n toByteArray = aa.j(((cez) acA).vTO.getBuffer().toByteArray(), toByteArray);\n if (toByteArray != null) {\n if (((toByteArray.length == 0 ? 1 : 0) == 0 ? 1 : 0) != 0) {\n e RP = g.RP();\n j.o(RP, \"MMKernel.storage()\");\n RP.Ry().set(8195, bo.cd(toByteArray));\n }\n }\n }\n }\n fVar = this.ehi;\n if (fVar == null) {\n j.avw(\"callback\");\n }\n fVar.onSceneEnd(i2, i3, str, this);\n AppMethodBeat.o(109251);\n return;\n }\n fVar = this.ehi;\n if (fVar == null) {\n j.avw(\"callback\");\n }\n fVar.onSceneEnd(i2, i3, str, this);\n AppMethodBeat.o(109251);\n }", "private void m15515d(Throwable th) {\n HashMap hashMap = new HashMap();\n C8435g gVar = new C8435g();\n if (th == null) {\n hashMap.put(\"invitee_status\", \"0\");\n } else if (!(th instanceof ApiServerException)) {\n hashMap.put(\"invitee_status\", \"2\");\n } else if (((ApiServerException) th).getErrorCode() == 31002) {\n hashMap.put(\"invitee_status\", \"1\");\n } else {\n hashMap.put(\"invitee_status\", \"2\");\n }\n C8443c.m25663a().mo21606a(\"connection_invite\", hashMap, new C8438j().mo21599b(\"live\").mo21603f(\"other\").mo21598a(\"live_detail\"), gVar.mo21594b(this.f13394b.getOwner().getId()).mo21596c(this.f13396d.f11667e).mo21595b((String) C8946b.f24396aU.mo22117a()).mo21590a(((Integer) C8946b.f24390aO.mo22117a()).intValue()).mo21591a(this.f13396d.f11669g), this.f13396d.mo11449b(), Room.class);\n }", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "public synchronized void m29984l() {\n if (XGPushConfig.enableDebug) {\n C6864a.m29298c(\"TpnsChannel\", \"Action -> send heartbeatSlave \");\n }\n f23274i++;\n mo33398h();\n if (C6973b.m29763a().mo33291f(C6973b.m29776f())) {\n if (!C7048a.m30142d(C6973b.m29776f())) {\n C6864a.m29308i(Constants.ServiceLogTag, \"network is unreachable ,give up and go on slave service\");\n } else if (C6973b.m29776f() != null) {\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n boolean isForeiginPush = XGPushConfig.isForeiginPush(C6973b.m29776f());\n String str = Constants.ACTION_SLVAE_2_MAIN;\n String str2 = Constants.ServiceLogTag;\n if (isForeiginPush) {\n C6864a.m29308i(str2, \"isForeiginPush network is ok , switch to main service\");\n C6973b.m29767a(C6973b.m29776f(), str, 0);\n } else if (C6979b.m29795a(C6973b.m29776f()).mo33300b()) {\n C6864a.m29308i(str2, \"network is ok , switch to main service\");\n C6973b.m29767a(C6973b.m29776f(), str, 0);\n } else {\n C6864a.m29308i(str2, \"network is error , go on slave service\");\n }\n }\n });\n } else {\n C6864a.m29308i(Constants.ServiceLogTag, \"PushServiceManager.getInstance().getContext() is null\");\n }\n }\n }", "@Override\n\tpublic void challenge17() {\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 challenge11() {\n\n\t}", "@Override\n\tpublic void msgGotHungry() {\n\t\t\n\t}", "protected void sendPatch(Patch p) {\n sendPatchWorker(p);\n }", "private synchronized boolean sendBatch() {\n if (fPending.isEmpty()) {\n return true;\n }\n\n final long nowMs = Clock.now();\n\n if (this.fHostSelector != null) {\n host = this.fHostSelector.selectBaseHost();\n }\n\n final String httpurl = MRConstants.makeUrl(host, fTopic, props.getProperty(DmaapClientConst.PROTOCOL),\n props.getProperty(DmaapClientConst.PARTITION));\n\n try {\n\n final ByteArrayOutputStream baseStream = new ByteArrayOutputStream();\n OutputStream os = baseStream;\n final String contentType = props.getProperty(DmaapClientConst.CONTENT_TYPE);\n if (contentType.equalsIgnoreCase(MRFormat.JSON.toString())) {\n JSONArray jsonArray = parseJSON();\n os.write(jsonArray.toString().getBytes());\n os.close();\n\n } else if (contentType.equalsIgnoreCase(CONTENT_TYPE_TEXT)) {\n for (TimestampedMessage m : fPending) {\n os.write(m.fMsg.getBytes());\n os.write('\\n');\n }\n os.close();\n } else if (contentType.equalsIgnoreCase(MRFormat.CAMBRIA.toString())\n || (contentType.equalsIgnoreCase(MRFormat.CAMBRIA_ZIP.toString()))) {\n if (contentType.equalsIgnoreCase(MRFormat.CAMBRIA_ZIP.toString())) {\n os = new GZIPOutputStream(baseStream);\n }\n for (TimestampedMessage m : fPending) {\n\n os.write((\"\" + m.fPartition.length()).getBytes());\n os.write('.');\n os.write((\"\" + m.fMsg.length()).getBytes());\n os.write('.');\n os.write(m.fPartition.getBytes());\n os.write(m.fMsg.getBytes());\n os.write('\\n');\n }\n os.close();\n } else {\n for (TimestampedMessage m : fPending) {\n os.write(m.fMsg.getBytes());\n\n }\n os.close();\n }\n\n final long startMs = Clock.now();\n if (ProtocolType.DME2.getValue().equalsIgnoreCase(protocolFlag)) {\n\n configureDME2();\n\n this.wait(5);\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), url + subContextPath, nowMs - fPending.peek().timestamp);\n }\n sender.setPayload(os.toString());\n String dmeResponse = sender.sendAndWait(5000L);\n\n logTime(startMs, dmeResponse);\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.AUTH_KEY.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result =\n postAuth(new PostAuthDataObject().setPath(httpurl).setData(baseStream.toByteArray())\n .setContentType(contentType).setAuthKey(authKey).setAuthDate(authDate)\n .setUsername(username).setPassword(password).setProtocolFlag(protocolFlag));\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.AAF_AUTH.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result = post(httpurl, baseStream.toByteArray(), contentType, username, password,\n protocolFlag);\n\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.HTTPNOAUTH.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result = postNoAuth(httpurl, baseStream.toByteArray(), contentType);\n\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n } catch (InterruptedException e) {\n getLog().warn(\"Interrupted!\", e);\n // Restore interrupted state...\n Thread.currentThread().interrupt();\n } catch (Exception x) {\n getLog().warn(x.getMessage(), x);\n }\n return false;\n }", "public final void mo16236a() throws Exception {\n if (C1948n.m1229a().f1421g.mo16247c()) {\n C1744eg.this.runAsync(new C1738eb() {\n /* renamed from: a */\n public final void mo16236a() throws Exception {\n Map b = C1744eg.m890b(C1744eg.this.f1002b);\n C1691dd ddVar = new C1691dd();\n ddVar.f897f = \"https://api.login.yahoo.com/oauth2/device_session\";\n ddVar.f898g = C1699a.kPost;\n ddVar.mo16403a(\"Content-Type\", \"application/json\");\n ddVar.f883b = new JSONObject(b).toString();\n ddVar.f885d = new C1725dt();\n ddVar.f884c = new C1725dt();\n ddVar.f882a = new C1693a<String, String>() {\n /* renamed from: a */\n public final /* synthetic */ void mo16300a(C1691dd ddVar, Object obj) {\n String str = \"PrivacyManager\";\n String str2 = (String) obj;\n try {\n int i = ddVar.f904m;\n if (i == 200) {\n JSONObject jSONObject = new JSONObject(str2);\n C1744eg.m888a(C1744eg.this, new C1477a(jSONObject.getString(\"device_session_id\"), jSONObject.getLong(\"expires_in\"), C1744eg.this.f1002b));\n C1744eg.this.f1002b.callback.success();\n return;\n }\n C1685cy.m769e(str, \"Error in getting privacy dashboard url. Error code = \".concat(String.valueOf(i)));\n C1744eg.this.f1002b.callback.failure();\n } catch (JSONException e) {\n C1685cy.m763b(str, \"Error in getting privacy dashboard url. \", (Throwable) e);\n C1744eg.this.f1002b.callback.failure();\n }\n }\n };\n C1675ct.m738a().mo16389a(C1744eg.this, ddVar);\n }\n });\n return;\n }\n C1685cy.m754a(3, \"PrivacyManager\", \"Waiting for ID provider.\");\n C1948n.m1229a().f1421g.subscribe(C1744eg.this.f1003d);\n }", "public ChannelFuture method_4130() {\n return null;\n }", "public void test2(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "BaseConnet(){\n// pool = ThreadPool.getInstance();\n// sc = SendCommand.getInstance();\n HEART_CMD = new byte[]{\n\n WiStaticComm.UTRAL_H0,\n WiStaticComm.UTRAL_H1,\n WiStaticComm.UTRAL_H2,\n 0x00,\n 0x13,\n 0x00,\n 0x06,\n 0x01,\n 0x00,\n 0x00,\n 0x52,\n 0x00,\n 0x00,\n 0x00,\n 0x00,\n 0x0A,\n (byte) 0xF4,\n (byte) 0xAA,\n 0x40\n };\n byte checkSum = HEART_CMD[0];\n for (int i = 1; i < 19; i++)\n {\n if (i != 19 - 5)\n checkSum ^= HEART_CMD[i];\n\n }\n HEART_CMD[19 - 5] = checkSum;\n }", "@Override\r\n\t\tpublic void doTaskAsNoNetWork(Message msg) throws Exception {\n\r\n\t\t}", "public void test10(HttpServletRequest request) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "private void viewPendingRequests() {\n\n\t}", "public ChannelFuture method_4092() {\n return null;\n }", "private void b(com.whatsapp.protocol.co r15) {\n /*\n r14 = this;\n r8 = com.whatsapp.DialogToastActivity.f;\n r0 = r15.Q;\n r0 = (com.whatsapp.MediaData) r0;\n r1 = com.whatsapp.App.z();\n r2 = z;\n r3 = 9;\n r2 = r2[r3];\n r3 = r15.c;\n r4 = r15.r;\n r5 = 1;\n r3 = com.whatsapp.util.ag.a(r1, r2, r3, r4, r5);\n r1 = new com.whatsapp.akr;\n r2 = r0.file;\n r4 = r0.trimFrom;\n r6 = r0.trimTo;\n r1.<init>(r2, r3, r4, r6);\n r2 = new com.whatsapp.n3;\n r2.<init>(r14, r15, r0);\n r1.a(r2);\n r0.transcoder = r1;\n r4 = 0;\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x01df }\n r2 = r2.createNewFile();\t Catch:{ Exception -> 0x01df }\n if (r2 != 0) goto L_0x0057;\n L_0x0037:\n r2 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x01df }\n r2.<init>();\t Catch:{ Exception -> 0x01df }\n r5 = z;\t Catch:{ Exception -> 0x01df }\n r6 = 14;\n r5 = r5[r6];\t Catch:{ Exception -> 0x01df }\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x01df }\n r5 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x01df }\n r5 = r5.getAbsolutePath();\t Catch:{ Exception -> 0x01df }\n r2 = r2.append(r5);\t Catch:{ Exception -> 0x01df }\n r2 = r2.toString();\t Catch:{ Exception -> 0x01df }\n com.whatsapp.util.Log.w(r2);\t Catch:{ Exception -> 0x01df }\n L_0x0057:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x01e1 }\n r2 = r2.getAbsolutePath();\t Catch:{ Exception -> 0x01e1 }\n com.whatsapp.VideoFrameConverter.setLogFilePath(r2);\t Catch:{ Exception -> 0x01e1 }\n L_0x0060:\n r2 = r14.b;\t Catch:{ Exception -> 0x01ed }\n if (r2 == 0) goto L_0x0069;\n L_0x0064:\n r2 = r14.b;\t Catch:{ Exception -> 0x01ed }\n r2.acquire();\t Catch:{ Exception -> 0x01ed }\n L_0x0069:\n r2 = r0.file;\t Catch:{ IllegalStateException -> 0x0134, cq -> 0x01ef, FileNotFoundException -> 0x023c, IOException -> 0x0283, at_ -> 0x02f3 }\n r2 = com.whatsapp.akr.d(r2);\t Catch:{ IllegalStateException -> 0x0134, cq -> 0x01ef, FileNotFoundException -> 0x023c, IOException -> 0x0283, at_ -> 0x02f3 }\n if (r2 == 0) goto L_0x00f1;\n L_0x0071:\n r6 = new com.whatsapp.util.a4;\t Catch:{ IllegalStateException -> 0x0134, cq -> 0x01ef, FileNotFoundException -> 0x023c, IOException -> 0x0283, at_ -> 0x02f3 }\n r2 = r0.file;\t Catch:{ IllegalStateException -> 0x0134, cq -> 0x01ef, FileNotFoundException -> 0x023c, IOException -> 0x0283, at_ -> 0x02f3 }\n r6.<init>(r2);\t Catch:{ IllegalStateException -> 0x0134, cq -> 0x01ef, FileNotFoundException -> 0x023c, IOException -> 0x0283, at_ -> 0x02f3 }\n r7 = r6.a();\t Catch:{ IllegalStateException -> 0x0134, cq -> 0x01ef, FileNotFoundException -> 0x023c, IOException -> 0x0283, at_ -> 0x02f3 }\n r9 = r6.d();\t Catch:{ IllegalStateException -> 0x0134, cq -> 0x01ef, FileNotFoundException -> 0x023c, IOException -> 0x0283, at_ -> 0x02f3 }\n if (r7 < r9) goto L_0x0089;\n L_0x0082:\n r5 = 640; // 0x280 float:8.97E-43 double:3.16E-321;\n r2 = r9 * r5;\n r2 = r2 / r7;\n if (r8 == 0) goto L_0x008e;\n L_0x0089:\n r2 = 640; // 0x280 float:8.97E-43 double:3.16E-321;\n r5 = r7 * r2;\n r5 = r5 / r9;\n L_0x008e:\n r10 = r0.trimFrom;\t Catch:{ Exception -> 0x022c }\n r12 = 0;\n r7 = (r10 > r12 ? 1 : (r10 == r12 ? 0 : -1));\n if (r7 < 0) goto L_0x00cb;\n L_0x0096:\n r10 = r0.trimTo;\t Catch:{ Exception -> 0x022c }\n r12 = 0;\n r7 = (r10 > r12 ? 1 : (r10 == r12 ? 0 : -1));\n if (r7 <= 0) goto L_0x00cb;\n L_0x009e:\n r7 = r6.b();\t Catch:{ Exception -> 0x022e }\n if (r7 != 0) goto L_0x00ba;\n L_0x00a4:\n r7 = r0.file;\t Catch:{ Exception -> 0x0230 }\n r7 = com.whatsapp.akr.a(r7);\t Catch:{ Exception -> 0x0230 }\n if (r7 == 0) goto L_0x00ba;\n L_0x00ac:\n r7 = z;\t Catch:{ Exception -> 0x0232 }\n r9 = 12;\n r7 = r7[r9];\t Catch:{ Exception -> 0x0232 }\n com.whatsapp.util.Log.i(r7);\t Catch:{ Exception -> 0x0232 }\n r1.a();\t Catch:{ Exception -> 0x0232 }\n if (r8 == 0) goto L_0x00ef;\n L_0x00ba:\n r10 = r0.trimTo;\t Catch:{ Exception -> 0x0234 }\n r12 = r0.trimFrom;\t Catch:{ Exception -> 0x0234 }\n r10 = r10 - r12;\n r7 = com.whatsapp.util.ag.a(r5, r2, r10);\t Catch:{ Exception -> 0x0234 }\n r1.a(r7);\t Catch:{ Exception -> 0x0234 }\n r1.c();\t Catch:{ Exception -> 0x0234 }\n if (r8 == 0) goto L_0x00ef;\n L_0x00cb:\n r7 = r6.b();\t Catch:{ Exception -> 0x0236 }\n if (r7 != 0) goto L_0x00e1;\n L_0x00d1:\n r7 = z;\t Catch:{ Exception -> 0x0238 }\n r9 = 15;\n r7 = r7[r9];\t Catch:{ Exception -> 0x0238 }\n com.whatsapp.util.Log.i(r7);\t Catch:{ Exception -> 0x0238 }\n r7 = r0.file;\t Catch:{ Exception -> 0x0238 }\n com.whatsapp.util.ag.a(r7, r3);\t Catch:{ Exception -> 0x0238 }\n if (r8 == 0) goto L_0x00ef;\n L_0x00e1:\n r6 = r6.c();\t Catch:{ Exception -> 0x023a }\n r2 = com.whatsapp.util.ag.a(r5, r2, r6);\t Catch:{ Exception -> 0x023a }\n r1.a(r2);\t Catch:{ Exception -> 0x023a }\n r1.c();\t Catch:{ Exception -> 0x023a }\n L_0x00ef:\n if (r8 == 0) goto L_0x02d6;\n L_0x00f1:\n r6 = r0.trimFrom;\t Catch:{ Exception -> 0x0279 }\n r10 = 0;\n r2 = (r6 > r10 ? 1 : (r6 == r10 ? 0 : -1));\n if (r2 < 0) goto L_0x0106;\n L_0x00f9:\n r6 = r0.trimTo;\t Catch:{ Exception -> 0x027b }\n r10 = 0;\n r2 = (r6 > r10 ? 1 : (r6 == r10 ? 0 : -1));\n if (r2 <= 0) goto L_0x0106;\n L_0x0101:\n r1.a();\t Catch:{ Exception -> 0x027d }\n if (r8 == 0) goto L_0x02d6;\n L_0x0106:\n r2 = r0.file;\t Catch:{ Exception -> 0x027f }\n r6 = r2.length();\t Catch:{ Exception -> 0x027f }\n r6 = (double) r6;\t Catch:{ Exception -> 0x027f }\n r2 = com.whatsapp.a59.e;\t Catch:{ Exception -> 0x027f }\n r10 = (long) r2;\n r12 = 1048576; // 0x100000 float:1.469368E-39 double:5.180654E-318;\n r10 = r10 * r12;\n r10 = (double) r10;\n r12 = 4609434218613702656; // 0x3ff8000000000000 float:0.0 double:1.5;\n r10 = r10 * r12;\n r2 = (r6 > r10 ? 1 : (r6 == r10 ? 0 : -1));\n if (r2 >= 0) goto L_0x012c;\n L_0x011c:\n r2 = z;\t Catch:{ Exception -> 0x0281 }\n r5 = 13;\n r2 = r2[r5];\t Catch:{ Exception -> 0x0281 }\n com.whatsapp.util.Log.i(r2);\t Catch:{ Exception -> 0x0281 }\n r2 = r0.file;\t Catch:{ Exception -> 0x0281 }\n com.whatsapp.util.ag.a(r2, r3);\t Catch:{ Exception -> 0x0281 }\n if (r8 == 0) goto L_0x02d6;\n L_0x012c:\n r2 = new java.lang.IllegalArgumentException;\t Catch:{ Exception -> 0x0132 }\n r2.<init>();\t Catch:{ Exception -> 0x0132 }\n throw r2;\t Catch:{ Exception -> 0x0132 }\n L_0x0132:\n r2 = move-exception;\n throw r2;\t Catch:{ IllegalStateException -> 0x0134, cq -> 0x01ef, FileNotFoundException -> 0x023c, IOException -> 0x0283, at_ -> 0x02f3 }\n L_0x0134:\n r2 = move-exception;\n r5 = z;\t Catch:{ all -> 0x0332 }\n r6 = 17;\n r5 = r5[r6];\t Catch:{ all -> 0x0332 }\n com.whatsapp.util.Log.b(r5, r2);\t Catch:{ all -> 0x0332 }\n b(r2);\t Catch:{ all -> 0x0332 }\n r2 = r14.a;\t Catch:{ all -> 0x0332 }\n r5 = new com.whatsapp.jz;\t Catch:{ all -> 0x0332 }\n r5.<init>(r14);\t Catch:{ all -> 0x0332 }\n r2.post(r5);\t Catch:{ all -> 0x0332 }\n r2 = 0;\n com.whatsapp.VideoFrameConverter.setLogFilePath(r2);\n r2 = r14.b;\n if (r2 == 0) goto L_0x0160;\n L_0x0153:\n r2 = r14.b;\t Catch:{ Exception -> 0x0380 }\n r2 = r2.isHeld();\t Catch:{ Exception -> 0x0380 }\n if (r2 == 0) goto L_0x0160;\n L_0x015b:\n r2 = r14.b;\t Catch:{ Exception -> 0x0380 }\n r2.release();\t Catch:{ Exception -> 0x0380 }\n L_0x0160:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x0382 }\n r2 = r2.exists();\t Catch:{ Exception -> 0x0382 }\n if (r2 == 0) goto L_0x016d;\n L_0x0168:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x0382 }\n r2.delete();\t Catch:{ Exception -> 0x0382 }\n L_0x016d:\n if (r4 == 0) goto L_0x01c8;\n L_0x016f:\n r0.file = r3;\t Catch:{ Exception -> 0x0398 }\n r2 = 1;\n r0.transcoded = r2;\t Catch:{ Exception -> 0x0398 }\n r2 = r0.file;\t Catch:{ Exception -> 0x0398 }\n r2 = r2.length();\t Catch:{ Exception -> 0x0398 }\n r0.fileSize = r2;\t Catch:{ Exception -> 0x0398 }\n r2 = r0.file;\t Catch:{ Exception -> 0x0398 }\n r2 = r2.getName();\t Catch:{ Exception -> 0x0398 }\n r15.A = r2;\t Catch:{ Exception -> 0x0398 }\n r2 = r0.fileSize;\t Catch:{ Exception -> 0x0398 }\n r15.z = r2;\t Catch:{ Exception -> 0x0398 }\n r2 = r0.file;\t Catch:{ Exception -> 0x0398 }\n r2 = com.whatsapp.util.ag.c(r2);\t Catch:{ Exception -> 0x0398 }\n r15.H = r2;\t Catch:{ Exception -> 0x0398 }\n r2 = r0.trimFrom;\t Catch:{ Exception -> 0x0398 }\n r4 = 0;\n r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r2 <= 0) goto L_0x01b5;\n L_0x0198:\n com.whatsapp.util.bd.b(r15);\n r2 = r0.file;\n r2 = r2.getAbsolutePath();\n r2 = com.whatsapp.util.ag.b(r2);\n if (r2 == 0) goto L_0x01ac;\n L_0x01a7:\n r15.a(r2);\t Catch:{ Exception -> 0x039a }\n if (r8 == 0) goto L_0x01b5;\n L_0x01ac:\n r2 = z;\t Catch:{ Exception -> 0x039a }\n r3 = 20;\n r2 = r2[r3];\t Catch:{ Exception -> 0x039a }\n com.whatsapp.util.Log.w(r2);\t Catch:{ Exception -> 0x039a }\n L_0x01b5:\n r2 = com.whatsapp.App.aK;\t Catch:{ Exception -> 0x039c }\n r3 = 1;\n r4 = -1;\n r2.a(r15, r3, r4);\t Catch:{ Exception -> 0x039c }\n r2 = r14.a;\t Catch:{ Exception -> 0x039c }\n r3 = new com.whatsapp.o9;\t Catch:{ Exception -> 0x039c }\n r3.<init>(r14, r15);\t Catch:{ Exception -> 0x039c }\n r2.post(r3);\t Catch:{ Exception -> 0x039c }\n if (r8 == 0) goto L_0x01de;\n L_0x01c8:\n r2 = 0;\n r0.transferring = r2;\t Catch:{ Exception -> 0x039e }\n r2 = 0;\n r15.d = r2;\t Catch:{ Exception -> 0x039e }\n r1 = r1.h();\t Catch:{ Exception -> 0x039e }\n if (r1 == 0) goto L_0x01d7;\n L_0x01d4:\n r1 = 0;\n r0.autodownloadRetryEnabled = r1;\t Catch:{ Exception -> 0x039e }\n L_0x01d7:\n r0 = com.whatsapp.App.aK;\n r1 = 1;\n r2 = -1;\n r0.a(r15, r1, r2);\n L_0x01de:\n return;\n L_0x01df:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x01e1 }\n L_0x01e1:\n r2 = move-exception;\n r5 = z;\n r6 = 11;\n r5 = r5[r6];\n com.whatsapp.util.Log.b(r5, r2);\n goto L_0x0060;\n L_0x01ed:\n r2 = move-exception;\n throw r2;\t Catch:{ IllegalStateException -> 0x0134, cq -> 0x01ef, FileNotFoundException -> 0x023c, IOException -> 0x0283, at_ -> 0x02f3 }\n L_0x01ef:\n r2 = move-exception;\n r5 = z;\t Catch:{ all -> 0x0332 }\n r6 = 18;\n r5 = r5[r6];\t Catch:{ all -> 0x0332 }\n com.whatsapp.util.Log.e(r5);\t Catch:{ all -> 0x0332 }\n b(r2);\t Catch:{ all -> 0x0332 }\n r2 = r14.a;\t Catch:{ all -> 0x0332 }\n r5 = new com.whatsapp.gw;\t Catch:{ all -> 0x0332 }\n r5.<init>(r14);\t Catch:{ all -> 0x0332 }\n r2.post(r5);\t Catch:{ all -> 0x0332 }\n r2 = 0;\n com.whatsapp.VideoFrameConverter.setLogFilePath(r2);\n r2 = r14.b;\n if (r2 == 0) goto L_0x021b;\n L_0x020e:\n r2 = r14.b;\t Catch:{ Exception -> 0x0384 }\n r2 = r2.isHeld();\t Catch:{ Exception -> 0x0384 }\n if (r2 == 0) goto L_0x021b;\n L_0x0216:\n r2 = r14.b;\t Catch:{ Exception -> 0x0384 }\n r2.release();\t Catch:{ Exception -> 0x0384 }\n L_0x021b:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x022a }\n r2 = r2.exists();\t Catch:{ Exception -> 0x022a }\n if (r2 == 0) goto L_0x016d;\n L_0x0223:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x022a }\n r2.delete();\t Catch:{ Exception -> 0x022a }\n goto L_0x016d;\n L_0x022a:\n r0 = move-exception;\n throw r0;\n L_0x022c:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x022e }\n L_0x022e:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x0230 }\n L_0x0230:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x0232 }\n L_0x0232:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x0234 }\n L_0x0234:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x0236 }\n L_0x0236:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x0238 }\n L_0x0238:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x023a }\n L_0x023a:\n r2 = move-exception;\n throw r2;\t Catch:{ IllegalStateException -> 0x0134, cq -> 0x01ef, FileNotFoundException -> 0x023c, IOException -> 0x0283, at_ -> 0x02f3 }\n L_0x023c:\n r2 = move-exception;\n r5 = z;\t Catch:{ all -> 0x0332 }\n r6 = 19;\n r5 = r5[r6];\t Catch:{ all -> 0x0332 }\n com.whatsapp.util.Log.b(r5, r2);\t Catch:{ all -> 0x0332 }\n b(r2);\t Catch:{ all -> 0x0332 }\n r2 = r14.a;\t Catch:{ all -> 0x0332 }\n r5 = new com.whatsapp.aie;\t Catch:{ all -> 0x0332 }\n r5.<init>(r14);\t Catch:{ all -> 0x0332 }\n r2.post(r5);\t Catch:{ all -> 0x0332 }\n r2 = 0;\n com.whatsapp.VideoFrameConverter.setLogFilePath(r2);\n r2 = r14.b;\n if (r2 == 0) goto L_0x0268;\n L_0x025b:\n r2 = r14.b;\t Catch:{ Exception -> 0x0386 }\n r2 = r2.isHeld();\t Catch:{ Exception -> 0x0386 }\n if (r2 == 0) goto L_0x0268;\n L_0x0263:\n r2 = r14.b;\t Catch:{ Exception -> 0x0386 }\n r2.release();\t Catch:{ Exception -> 0x0386 }\n L_0x0268:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x0277 }\n r2 = r2.exists();\t Catch:{ Exception -> 0x0277 }\n if (r2 == 0) goto L_0x016d;\n L_0x0270:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x0277 }\n r2.delete();\t Catch:{ Exception -> 0x0277 }\n goto L_0x016d;\n L_0x0277:\n r0 = move-exception;\n throw r0;\n L_0x0279:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x027b }\n L_0x027b:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x027d }\n L_0x027d:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x027f }\n L_0x027f:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x0281 }\n L_0x0281:\n r2 = move-exception;\n throw r2;\t Catch:{ Exception -> 0x0132 }\n L_0x0283:\n r2 = move-exception;\n r5 = z;\t Catch:{ Exception -> 0x0388 }\n r6 = 21;\n r5 = r5[r6];\t Catch:{ Exception -> 0x0388 }\n com.whatsapp.util.Log.b(r5, r2);\t Catch:{ Exception -> 0x0388 }\n b(r2);\t Catch:{ Exception -> 0x0388 }\n r5 = r2.getMessage();\t Catch:{ Exception -> 0x0388 }\n if (r5 == 0) goto L_0x02b0;\n L_0x0296:\n r2 = r2.getMessage();\t Catch:{ Exception -> 0x0388 }\n r5 = z;\t Catch:{ Exception -> 0x0388 }\n r6 = 8;\n r5 = r5[r6];\t Catch:{ Exception -> 0x0388 }\n r2 = r2.contains(r5);\t Catch:{ Exception -> 0x0388 }\n if (r2 == 0) goto L_0x02b0;\n L_0x02a6:\n r2 = r14.a;\t Catch:{ Exception -> 0x038a }\n r5 = new com.whatsapp.aun;\t Catch:{ Exception -> 0x038a }\n r5.<init>(r14);\t Catch:{ Exception -> 0x038a }\n r2.post(r5);\t Catch:{ Exception -> 0x038a }\n L_0x02b0:\n r2 = 0;\n com.whatsapp.VideoFrameConverter.setLogFilePath(r2);\t Catch:{ Exception -> 0x038c }\n r2 = r14.b;\t Catch:{ Exception -> 0x038c }\n if (r2 == 0) goto L_0x02c5;\n L_0x02b8:\n r2 = r14.b;\t Catch:{ Exception -> 0x038c }\n r2 = r2.isHeld();\t Catch:{ Exception -> 0x038c }\n if (r2 == 0) goto L_0x02c5;\n L_0x02c0:\n r2 = r14.b;\t Catch:{ Exception -> 0x038e }\n r2.release();\t Catch:{ Exception -> 0x038e }\n L_0x02c5:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x02d4 }\n r2 = r2.exists();\t Catch:{ Exception -> 0x02d4 }\n if (r2 == 0) goto L_0x016d;\n L_0x02cd:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x02d4 }\n r2.delete();\t Catch:{ Exception -> 0x02d4 }\n goto L_0x016d;\n L_0x02d4:\n r0 = move-exception;\n throw r0;\n L_0x02d6:\n r2 = r1.h();\t Catch:{ Exception -> 0x0330 }\n if (r2 != 0) goto L_0x0356;\n L_0x02dc:\n r2 = com.whatsapp.util.b.e(r3);\t Catch:{ Exception -> 0x0330 }\n if (r2 == 0) goto L_0x02e5;\n L_0x02e2:\n r4 = 1;\n if (r8 == 0) goto L_0x0356;\n L_0x02e5:\n r2 = new java.lang.IllegalStateException;\t Catch:{ Exception -> 0x02f1 }\n r5 = z;\t Catch:{ Exception -> 0x02f1 }\n r6 = 16;\n r5 = r5[r6];\t Catch:{ Exception -> 0x02f1 }\n r2.<init>(r5);\t Catch:{ Exception -> 0x02f1 }\n throw r2;\t Catch:{ Exception -> 0x02f1 }\n L_0x02f1:\n r2 = move-exception;\n throw r2;\t Catch:{ IllegalStateException -> 0x0134, cq -> 0x01ef, FileNotFoundException -> 0x023c, IOException -> 0x0283, at_ -> 0x02f3 }\n L_0x02f3:\n r2 = move-exception;\n r5 = z;\t Catch:{ all -> 0x0332 }\n r6 = 10;\n r5 = r5[r6];\t Catch:{ all -> 0x0332 }\n com.whatsapp.util.Log.b(r5, r2);\t Catch:{ all -> 0x0332 }\n b(r2);\t Catch:{ all -> 0x0332 }\n r2 = r14.a;\t Catch:{ all -> 0x0332 }\n r5 = new com.whatsapp.on;\t Catch:{ all -> 0x0332 }\n r5.<init>(r14);\t Catch:{ all -> 0x0332 }\n r2.post(r5);\t Catch:{ all -> 0x0332 }\n r2 = 0;\n com.whatsapp.VideoFrameConverter.setLogFilePath(r2);\n r2 = r14.b;\n if (r2 == 0) goto L_0x031f;\n L_0x0312:\n r2 = r14.b;\t Catch:{ Exception -> 0x0390 }\n r2 = r2.isHeld();\t Catch:{ Exception -> 0x0390 }\n if (r2 == 0) goto L_0x031f;\n L_0x031a:\n r2 = r14.b;\t Catch:{ Exception -> 0x0390 }\n r2.release();\t Catch:{ Exception -> 0x0390 }\n L_0x031f:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x032e }\n r2 = r2.exists();\t Catch:{ Exception -> 0x032e }\n if (r2 == 0) goto L_0x016d;\n L_0x0327:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x032e }\n r2.delete();\t Catch:{ Exception -> 0x032e }\n goto L_0x016d;\n L_0x032e:\n r0 = move-exception;\n throw r0;\n L_0x0330:\n r2 = move-exception;\n throw r2;\t Catch:{ IllegalStateException -> 0x0134, cq -> 0x01ef, FileNotFoundException -> 0x023c, IOException -> 0x0283, at_ -> 0x02f3 }\n L_0x0332:\n r0 = move-exception;\n r1 = 0;\n com.whatsapp.VideoFrameConverter.setLogFilePath(r1);\t Catch:{ Exception -> 0x0392 }\n r1 = r14.b;\t Catch:{ Exception -> 0x0392 }\n if (r1 == 0) goto L_0x0348;\n L_0x033b:\n r1 = r14.b;\t Catch:{ Exception -> 0x0394 }\n r1 = r1.isHeld();\t Catch:{ Exception -> 0x0394 }\n if (r1 == 0) goto L_0x0348;\n L_0x0343:\n r1 = r14.b;\t Catch:{ Exception -> 0x0394 }\n r1.release();\t Catch:{ Exception -> 0x0394 }\n L_0x0348:\n r1 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x0396 }\n r1 = r1.exists();\t Catch:{ Exception -> 0x0396 }\n if (r1 == 0) goto L_0x0355;\n L_0x0350:\n r1 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x0396 }\n r1.delete();\t Catch:{ Exception -> 0x0396 }\n L_0x0355:\n throw r0;\n L_0x0356:\n r2 = 0;\n com.whatsapp.VideoFrameConverter.setLogFilePath(r2);\t Catch:{ Exception -> 0x037c }\n r2 = r14.b;\t Catch:{ Exception -> 0x037c }\n if (r2 == 0) goto L_0x036b;\n L_0x035e:\n r2 = r14.b;\t Catch:{ Exception -> 0x037c }\n r2 = r2.isHeld();\t Catch:{ Exception -> 0x037c }\n if (r2 == 0) goto L_0x036b;\n L_0x0366:\n r2 = r14.b;\t Catch:{ Exception -> 0x037e }\n r2.release();\t Catch:{ Exception -> 0x037e }\n L_0x036b:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x037a }\n r2 = r2.exists();\t Catch:{ Exception -> 0x037a }\n if (r2 == 0) goto L_0x016d;\n L_0x0373:\n r2 = com.whatsapp.App.a5;\t Catch:{ Exception -> 0x037a }\n r2.delete();\t Catch:{ Exception -> 0x037a }\n goto L_0x016d;\n L_0x037a:\n r0 = move-exception;\n throw r0;\n L_0x037c:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x037e }\n L_0x037e:\n r0 = move-exception;\n throw r0;\n L_0x0380:\n r0 = move-exception;\n throw r0;\n L_0x0382:\n r0 = move-exception;\n throw r0;\n L_0x0384:\n r0 = move-exception;\n throw r0;\n L_0x0386:\n r0 = move-exception;\n throw r0;\n L_0x0388:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x038a }\n L_0x038a:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0332 }\n L_0x038c:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x038e }\n L_0x038e:\n r0 = move-exception;\n throw r0;\n L_0x0390:\n r0 = move-exception;\n throw r0;\n L_0x0392:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x0394 }\n L_0x0394:\n r0 = move-exception;\n throw r0;\n L_0x0396:\n r0 = move-exception;\n throw r0;\n L_0x0398:\n r0 = move-exception;\n throw r0;\n L_0x039a:\n r0 = move-exception;\n throw r0;\n L_0x039c:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x039e }\n L_0x039e:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.tw.b(com.whatsapp.protocol.co):void\");\n }", "void z_piracy()\n {\n //branch (!f_setup.piracy);\n\n }", "@Override\n\tpublic void challenge16() {\n\n\t}", "private void sendUpdateConnectionInfo() {\n\n }", "@Test\n public void actionsExecute() throws Exception {\n Language english = (Language)new English();\n Issue issue1 = this.githubIssue(\"amihaiemil\", \"@charlesmike hello there\");\n Issue issue2 = this.githubIssue(\"jeff\", \"@charlesmike hello\");\n Issue issue3 = this.githubIssue(\"vlad\", \"@charlesmike, hello\");\n Issue issue4 = this.githubIssue(\"marius\", \"@charlesmike hello\");\n final Action ac1 = new Action(issue1);\n final Action ac2 = new Action(issue2);\n final Action ac3 = new Action(issue3);\n final Action ac4 = new Action(issue4);\n \n final ExecutorService executorService = Executors.newFixedThreadPool(5);\n List<Future> futures = new ArrayList<Future>();\n futures.add(executorService.submit(new Runnable() {\n @Override\n public void run() {\n ac1.perform();\n }\n }));\n futures.add(executorService.submit(new Runnable() {\n @Override\n public void run() {\n ac2.perform();\n }\n }));\n futures.add(executorService.submit(new Runnable() {\n @Override\n public void run() {\n ac3.perform();\n \n }\n }));\n futures.add(executorService.submit(new Runnable() {\n @Override\n public void run() {\n ac4.perform();\n }\n }));\n\n for(Future f : futures) {\n assertTrue(f.get()==null);\n }\n \n List<Comment> commentsWithReply1 = Lists.newArrayList(issue1.comments().iterate());\n List<Comment> commentsWithReply2 = Lists.newArrayList(issue2.comments().iterate());\n List<Comment> commentsWithReply3 = Lists.newArrayList(issue3.comments().iterate());\n List<Comment> commentsWithReply4 = Lists.newArrayList(issue4.comments().iterate());\n String expectedReply1 = \"> @charlesmike hello there\\n\\n\" + String.format(english.response(\"hello.comment\"),\"amihaiemil\");\n assertTrue(commentsWithReply1.get(1).json().getString(\"body\")\n .equals(expectedReply1)); //there should be only 2 comments - the command and the reply.\n \n String expectedReply2 = \"> @charlesmike hello\\n\\n\" + String.format(english.response(\"hello.comment\"),\"jeff\");\n assertTrue(commentsWithReply2.get(1).json().getString(\"body\")\n .equals(expectedReply2)); //there should be only 2 comments - the command and the reply.\n \n String expectedReply3 = \"> @charlesmike, hello\\n\\n\" + String.format(english.response(\"hello.comment\"),\"vlad\");\n assertTrue(commentsWithReply3.get(1).json().getString(\"body\")\n .equals(expectedReply3)); //there should be only 2 comments - the command and the reply.\n \n String expectedReply4 = \"> @charlesmike hello\\n\\n\" + String.format(english.response(\"hello.comment\"),\"marius\");\n assertTrue(commentsWithReply4.get(1).json().getString(\"body\")\n .equals(expectedReply4)); //there should be only 2 comments - the command and the reply.\n \n }", "@Override\n\tpublic void challenge10() {\n\n\t}", "public void think_blocking()\r\n/* 37: */ {\r\n/* 38: 33 */ Scanner in = new Scanner(System.in);\r\n/* 39: */ Object localObject;\r\n/* 40:143 */ for (;; ((Iterator)localObject).hasNext())\r\n/* 41: */ {\r\n/* 42: 38 */ System.out.print(\"Next action ([move|land|attk] id; list; exit): \");\r\n/* 43: */ \r\n/* 44: 40 */ String[] cmd = in.nextLine().split(\" \");\r\n/* 45: */ \r\n/* 46: 42 */ System.out.print(\"Processing command... \");\r\n/* 47: 43 */ System.out.flush();\r\n/* 48: */ \r\n/* 49: 45 */ this.game.updateSimFrame();\r\n/* 50: */ \r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: */ \r\n/* 54: */ \r\n/* 55: */ \r\n/* 56: 52 */ MapView<Integer, Base.BasicView> bases = this.game.getAllBases();\r\n/* 57: 53 */ MapView<Integer, Plane.FullView> planes = this.game.getMyPlanes();\r\n/* 58: 54 */ MapView<Integer, Plane.BasicView> ennemy_planes = this.game.getEnnemyPlanes();\r\n/* 59: */ \r\n/* 60: 56 */ List<Command> coms = new ArrayList();\r\n/* 61: */ try\r\n/* 62: */ {\r\n/* 63: 59 */ boolean recognized = true;\r\n/* 64: 60 */ switch ((localObject = cmd[0]).hashCode())\r\n/* 65: */ {\r\n/* 66: */ case 3004906: \r\n/* 67: 60 */ if (((String)localObject).equals(\"attk\")) {}\r\n/* 68: */ break;\r\n/* 69: */ case 3127582: \r\n/* 70: 60 */ if (((String)localObject).equals(\"exit\")) {\r\n/* 71: */ break label914;\r\n/* 72: */ }\r\n/* 73: */ break;\r\n/* 74: */ case 3314155: \r\n/* 75: 60 */ if (((String)localObject).equals(\"land\")) {\r\n/* 76: */ break;\r\n/* 77: */ }\r\n/* 78: */ break;\r\n/* 79: */ case 3322014: \r\n/* 80: 60 */ if (((String)localObject).equals(\"list\")) {}\r\n/* 81: */ case 3357649: \r\n/* 82: 60 */ if ((goto 793) && (((String)localObject).equals(\"move\")))\r\n/* 83: */ {\r\n/* 84: 64 */ if (cmd.length != 2) {\r\n/* 85: */ break label804;\r\n/* 86: */ }\r\n/* 87: 66 */ int id = Integer.parseInt(cmd[1]);\r\n/* 88: 67 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(id));\r\n/* 89: 68 */ Coord.View c = null;\r\n/* 90: 70 */ if (b == null)\r\n/* 91: */ {\r\n/* 92: 71 */ if (this.game.getCountry().id() != id)\r\n/* 93: */ {\r\n/* 94: 73 */ System.err.println(\"This id isn't corresponding neither to a base nor your country\");\r\n/* 95: */ break label804;\r\n/* 96: */ }\r\n/* 97: 77 */ c = this.game.getCountry().position();\r\n/* 98: */ }\r\n/* 99: */ else\r\n/* 100: */ {\r\n/* 101: 79 */ c = b.position();\r\n/* 102: */ }\r\n/* 103: 81 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 104: 82 */ coms.add(new MoveCommand(p, c));\r\n/* 105: */ }\r\n/* 106: */ break label804;\r\n/* 107: 87 */ int id = Integer.parseInt(cmd[1]);\r\n/* 108: 88 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(id));\r\n/* 109: 89 */ AbstractBase.View c = null;\r\n/* 110: 91 */ if (b == null)\r\n/* 111: */ {\r\n/* 112: 92 */ if (this.game.getCountry().id() != id)\r\n/* 113: */ {\r\n/* 114: 94 */ System.err.println(\"You can't see this base, move around it before you land\");\r\n/* 115: */ break label804;\r\n/* 116: */ }\r\n/* 117: 98 */ c = this.game.getCountry();\r\n/* 118: */ }\r\n/* 119: */ else\r\n/* 120: */ {\r\n/* 121:100 */ c = b;\r\n/* 122: */ }\r\n/* 123:102 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 124:103 */ coms.add(new LandCommand(p, c));\r\n/* 125: */ }\r\n/* 126: */ break label804;\r\n/* 127:108 */ Plane.BasicView ep = (Plane.BasicView)ennemy_planes.get(Integer.valueOf(Integer.parseInt(cmd[1])));\r\n/* 128:109 */ if (ep == null)\r\n/* 129: */ {\r\n/* 130:111 */ System.err.println(\"Bad id, this plane does not exists\");\r\n/* 131: */ }\r\n/* 132: */ else\r\n/* 133: */ {\r\n/* 134:114 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 135:115 */ coms.add(new AttackCommand(p, ep));\r\n/* 136: */ }\r\n/* 137: */ break label804;\r\n/* 138:118 */ System.out.println();\r\n/* 139:119 */ System.out.println(\">> My planes:\");\r\n/* 140:120 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 141:121 */ System.out.println(p);\r\n/* 142: */ }\r\n/* 143:122 */ System.out.println(\">> Ennemy planes:\");\r\n/* 144:123 */ for (Plane.BasicView p : ennemy_planes.valuesView()) {\r\n/* 145:124 */ System.out.println(p);\r\n/* 146: */ }\r\n/* 147:125 */ System.out.println(\">> Visible bases :\");\r\n/* 148:126 */ for (Base.FullView b : this.game.getVisibleBase().valuesView()) {\r\n/* 149:127 */ System.out.println(b);\r\n/* 150: */ }\r\n/* 151:128 */ System.out.println(\">> Your Country\");\r\n/* 152:129 */ System.out.println(this.game.getCountry());\r\n/* 153: */ }\r\n/* 154: */ }\r\n/* 155:130 */ break;\r\n/* 156: */ }\r\n/* 157:132 */ recognized = false;\r\n/* 158:133 */ System.err.println(\"Unrecognized command!\");\r\n/* 159: */ label804:\r\n/* 160:135 */ if (recognized) {\r\n/* 161:136 */ System.out.println(\"Processed\");\r\n/* 162: */ }\r\n/* 163: */ }\r\n/* 164: */ catch (IllegalArgumentException e)\r\n/* 165: */ {\r\n/* 166:139 */ System.out.println(\"Command failed: \" + e);\r\n/* 167:140 */ System.err.println(\"Command failed: \" + e);\r\n/* 168: */ }\r\n/* 169:143 */ localObject = coms.iterator(); continue;Command c = (Command)((Iterator)localObject).next();\r\n/* 170:144 */ this.game.sendCommand(c);\r\n/* 171: */ }\r\n/* 172: */ label914:\r\n/* 173:148 */ in.close();\r\n/* 174:149 */ this.game.quit(0);\r\n/* 175: */ }", "public ChannelFuture method_4120() {\n return null;\n }", "public void mo55254a() {\n }", "public void checkIfWeShouldSendANotification() {\n \t// Determine which zone we are in\n \t//\n \t\n String zoneWeAreIn=null;\n \n double spartyLat = 42.731138;\n double spartyLong = -84.487508;\n \n double beaumontLat = 42.732829;\n double beaumontLong = -84.482467;\n \n double bresLat = 42.7284;\n double bresLong = -84.492033;\n\n \tfloat[] spartyDist = new float[1];\n \tLocation.distanceBetween(latitude,longitude, spartyLat, spartyLong, spartyDist);\n\n \tfloat[] beaumontDist = new float[1];\n \tLocation.distanceBetween(latitude,longitude, beaumontLat, beaumontLong, beaumontDist);\n \t\n \tfloat[] bresDist = new float[1];\n \tLocation.distanceBetween(latitude,longitude, bresLat, bresLong, bresDist);\n \t\n \tif(spartyDist[0]<20) zoneWeAreIn = \"Sparty\";\n \telse if (beaumontDist[0]<20) zoneWeAreIn = \"Beaumont Tower\";\n \telse if (bresDist[0]<20) zoneWeAreIn = \"the Breslin Center\";\n \n \t\n \t\n // Create an artificial back stack\n // This is so when we open the notification, back takes us to MainActivity\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n \n \n if(zoneWeAreIn!=null)\n {\n\t Intent newIntent = new Intent(); \n\t if(zoneWeAreIn==\"Sparty\")\n\t {\n\t \t // Set parent in artificial back stack\n\t\t stackBuilder.addParentStack(SpartyInfoActivity.class);\n\t\t \n\t\t // Make it start up SpartyInfoActivity\n\t \t newIntent.setClassName(this, \"edu.msu.cse.belmont.msuproximity.SpartyInfoActivity\"); \t\n\t }\n\t else if(zoneWeAreIn==\"Beaumont Tower\")\n\t {\n\t\t stackBuilder.addParentStack(BeaumontInfoActivity.class);\n\t \t newIntent.setClassName(this, \"edu.msu.cse.belmont.msuproximity.BeaumontInfoActivity\");\n\t }\n\t else if(zoneWeAreIn==\"the Breslin Center\")\n\t {\n\t\t stackBuilder.addParentStack(BreslinInfoActivity.class);\n\t \t newIntent.setClassName(this, \"edu.msu.cse.belmont.msuproximity.BreslinInfoActivity\");\n\t }\n\t else \n\t {\n\t \t // Default, if zoneWeAreIn is not one of the above\n\t\t Toast.makeText(this, \"Wrong zone string name\", Toast.LENGTH_LONG).show();\n\t\t newIntent.setClassName(this, \"edu.msu.cse.belmont.msuproximity.MainActivity\");\n\t }\n\t newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t \n\t \n\t // Finish setting up artifical back stack\n\t stackBuilder.addNextIntent(newIntent);\n\t \n\t // Create a pending intent so it's only launched if clicked\n\t PendingIntent pendingIntent =\n\t stackBuilder.getPendingIntent(\n\t 0,\n\t PendingIntent.FLAG_UPDATE_CURRENT\n\t );\n\t \t\n\t // Create the android notification\n\t NotificationCompat.Builder builder = new NotificationCompat.Builder(this);\n\t builder.setSmallIcon(R.drawable.ic_launcher);\n\t builder.setContentTitle(this.getString(R.string.app_name));\n\t builder.setContentText(this.getString(R.string.youre_at) + \" \"+zoneWeAreIn);\n\t builder.setAutoCancel(true);\n\t builder.setContentIntent(pendingIntent);\n\t NotificationManager mNotificationManager =\n\t (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);\n\t \n\t // Launch the android notification\n\t mNotificationManager.notify(0, builder.build());\n }\n else\n {\n \tLog.i(\"not in any zone. \"+spartyDist[0]+\" \"+beaumontDist[0]+\" \"+bresDist[0], \"Not in any zone right now.\");\n\t //Toast.makeText(this, \"Alarm went off but we are not in a zone\", Toast.LENGTH_LONG).show();\n }\n }", "private void contactUs() {\n }", "private void registToWX() {\n }", "@Override\n public void perish() {\n \n }", "public ChannelFuture method_4097() {\n return null;\n }", "public void referToSpecialist(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "public static void m29980i() {\n String str = \"TpnsChannel\";\n try {\n long currentTimeMillis = System.currentTimeMillis();\n if (f23269d == 0) {\n f23269d = currentTimeMillis;\n } else if (currentTimeMillis - f23269d < 30000) {\n return;\n }\n if (C6973b.m29776f() != null) {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"srv_stime\", XGPushServiceV4.f23078a);\n jSONObject.put(\"srv_etime\", System.currentTimeMillis());\n jSONObject.put(\"srv_startTime\", XGPushServiceV4.f23079b);\n if (XGPushServiceV4.f23080c != null) {\n jSONObject.put(\"srv_freason\", XGPushServiceV4.f23080c);\n }\n jSONObject.put(\"hb_suc\", f23267b);\n jSONObject.put(\"hb_failed\", f23268c);\n if (f23273h != null) {\n jSONObject.put(\"hb_freason\", f23273h);\n }\n jSONObject.put(\"con_suc\", f23270e);\n jSONObject.put(\"con_failed\", f23271f);\n if (f23272g != null) {\n jSONObject.put(\"con_freason\", f23272g);\n }\n C7055h.m30172b(C6973b.m29776f(), \"service_state\", jSONObject.toString());\n f23269d = currentTimeMillis;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Service bi state \");\n sb.append(jSONObject.toString());\n C6864a.m29303e(str, sb.toString());\n }\n } catch (Throwable th) {\n C6864a.m29302d(str, \"saveBIReportJson \", th);\n }\n }", "public void sendGetRequest() {\r\n\t\tString[] requests = this.input.substring(4, this.input.length()).split(\" \"); \r\n\t\t\r\n\t\tif(requests.length <= 1 || !(MyMiddleware.readSharded)){\r\n\t\t\tnumOfRecipients = 1;\r\n\t\t\trecipient = servers.get(loadBalance());\r\n\r\n\t\t\trecipient.send(this, input);\r\n\t\t\tsendTime = System.nanoTime();\r\n\r\n\t\t\tworkerTime = sendTime - pollTime;\r\n\r\n\t\t\t\r\n\t\t\tif(requests.length <= 1) {\r\n\t\t\t\tnumOfGets++;\r\n\t\t\t\ttype= \"10\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnumOfMultiGets++;\r\n\t\t\t\ttype = requests.length+\"\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString reply = recipient.receive();\r\n\t\t\treceiveTime = System.nanoTime();\r\n\t\t\tprocessingTime = receiveTime - sendTime;\r\n\t\t\t\r\n\t\t\tint hit = 0;\r\n\t\t\thit += reply.split(\"VALUE\").length - 1;\r\n\t\t\tmiss += requests.length-hit;\r\n\r\n\t\t\tif(!(reply.endsWith(\"END\"))) {\r\n\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tsendBack(currentJob.getClient(), reply);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tnumOfMultiGets++;\r\n\t\t\ttype = requests.length+\"\";\r\n\t\t\tnumOfRecipients = servers.size();\r\n\t\t\trequestsPerServer = requests.length / servers.size();\r\n\t\t\tremainingRequests = requests.length % servers.size() ;\r\n\t\t\t\r\n\t\t\t//The worker thread sends a number of requests to each server equal to requestsPerServer \r\n\t\t\t//and at most requestsPerServer + remainingRequests\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < servers.size(); i++) {\r\n\t\t\t\tmessage = requestType;\r\n\t\t\t\tfor(int j = 0; j < requestsPerServer; j++){\r\n\t\t\t\t\tmessage += \" \";\r\n\t\t\t\t\tmessage += requests[requestsPerServer*i+j];\r\n\t\t\t\t\tif(i < remainingRequests) {\r\n\t\t\t\t\t\tmessage += \" \";\r\n\t\t\t\t\t\tmessage += requests[requests.length - remainingRequests + i];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tservers.get(i).send(this, message);\r\n\t\t\t}\r\n\t\t\tsendTime = System.nanoTime();\r\n\r\n\t\t\tworkerTime = sendTime - pollTime;\r\n\r\n\t\t\tint hit = 0;\r\n\t\t\tfor(ServerHandler s : servers) {\r\n\t\t\t\tString ricevuto = s.receive();\r\n\t\t\t\thit += ricevuto.split(\"VALUE\").length - 1;\r\n\t\t\t\treplies.add(ricevuto);\r\n\t\t\t}\r\n\t\t\treceiveTime = System.nanoTime();\r\n\t\t\tprocessingTime = receiveTime - sendTime;\r\n\r\n\t\t\tmiss += requests.length-hit;\r\n\t\t\t\r\n\t\t\tfinalReply = \"\";\r\n\t\t\tfor(String reply : replies) {\r\n\t\t\t\tif(!(reply.endsWith(\"END\"))) {\r\n\t\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\t\treplies.clear();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treply = reply.substring(0, reply.length() - 3);\r\n\t\t\t\t\tfinalReply += reply;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinalReply += \"END\";\r\n\t\t\tsendBack(currentJob.getClient(), finalReply);\r\n\t\t\treplies.clear();\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "public void mo33395e() {\n if (XGPushConfig.enableDebug) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Action -> checkAndSetupClient( tpnsClient = \");\n sb.append(this.f23297x);\n sb.append(\", isClientCreating = \");\n sb.append(this.f23298y);\n sb.append(\")\");\n C6864a.m29286a(\"TpnsChannel\", sb.toString());\n }\n synchronized (this) {\n if (this.f23297x == null && !this.f23298y) {\n this.f23298y = true;\n try {\n C6938d.m29638a().mo33180a(this.f23288H);\n } catch (Exception e) {\n C6864a.m29302d(\"TpnsChannel\", \"createOptimalSocketChannel error\", e);\n }\n } else if (!this.f23298y && this.f23297x != null && !this.f23297x.mo33374d()) {\n C6864a.m29308i(\"TpnsChannel\", \"The socket Channel is unconnected\");\n try {\n this.f23297x.mo33373c();\n C6938d.m29638a().mo33180a(this.f23288H);\n } catch (Exception e2) {\n C6864a.m29302d(Constants.ServiceLogTag, \"createOptimalSocketChannel error\", e2);\n }\n }\n }\n }", "private void m29985m() {\n String str = \"com.tencent.android.tpush.service.channel.heartbeatIntent\";\n String str2 = \"TpnsChannel\";\n try {\n if (this.f23299z == null) {\n C6973b.m29776f().registerReceiver(new BroadcastReceiver() {\n public void onReceive(Context context, Intent intent) {\n C7005b.m29964a().m29983k();\n }\n }, new IntentFilter(str));\n this.f23299z = PendingIntent.getBroadcast(C6973b.m29776f(), 0, new Intent(str), 134217728);\n }\n long currentTimeMillis = System.currentTimeMillis();\n if (f23279n > f23278m) {\n f23279n = f23278m;\n }\n if (XGPushConfig.isForeignWeakAlarmMode(C6973b.m29776f())) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"scheduleHeartbeat WaekAlarmMode heartbeatinterval: \");\n sb.append(f23280o);\n sb.append(\" ms\");\n C6864a.m29305f(str2, sb.toString());\n f23279n = f23280o;\n }\n f23279n = C7055h.m30166a(C6973b.m29776f(), \"com.tencent.android.xg.wx.HeartbeatIntervalMs\", f23279n);\n C7045d.m30117a().mo34149a(0, currentTimeMillis + ((long) f23279n), this.f23299z);\n } catch (Throwable th) {\n C6864a.m29302d(str2, \"scheduleHeartbeat error\", th);\n }\n }", "void queueInternalLinks(Elements paragraphs) {\n // FILL THIS IN!\n\t\tfor(Element paragraph: paragraphs)\n\t\t{\n\t\t\tIterable<Node> iterator = new WikiNodeIterable(paragraph);\n\t\t\tfor(Node node: iterator)\n\t\t\t{\n\t\t\t\tif(node instanceof Element)\n\t\t\t\t{\n\t\t\t\t\tString link = node.attr(\"href\");\n\t\t\t\t\tif(link.startsWith(\"/wiki/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tqueue.add(\"https://en.wikipedia.org\" + ((Element)node).attr(\"href\"));\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tprotected String doInBackground(Object... params) {\n\t\t\t\tif ((Boolean) params[0]) { // 有网络\n\t\t\t\t\t// 发送com.baosight.iplat4mandroid车次任务\n\t\t\t\t\tsetSign_tips();// 获取签收备注信息\n\t\t\t\t\tString tpsj = \"\";\n\t\t\t\t\tif (bitmap != null) {\n\t\t\t\t\t\tbyte[] bite = Bitmap2Bytes(bitmap);\n\t\t\t\t\t\tint length = bite.length / 1024;\n\t\t\t\t\t\tif (length >300) {\n\t\t\t\t\t\t\treturn \"4#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttpsj = bitmaptoString(bitmap);\n\t\t\t\t\t\t\treturn send_SignInfo(MyApplications.getInstance()\n\t\t\t\t\t\t\t\t\t.getProvider_id(), signId, MyApplications.getInstance().getUseId(), tpsj);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn send_SignInfo(MyApplications.getInstance()\n\t\t\t\t\t\t\t\t.getProvider_id(), signId, MyApplications.getInstance().getUseId(), \"\");\n\t\t\t\t\t}\n\n\t\t\t\t} else { // 没网络\n\t\t\t\t\treturn \"3#\";\n\t\t\t\t}\n\t\t\t}", "public Channel method_4112() {\n return null;\n }", "private void selfCheck()\n {\n createSession();\n\n // Verify that we can create a mail body\n ImmutableNotification notification = Notification.builder(Instant.now(), \"message\")\n .siteId(1)\n .projectName(\"project\")\n .projectId(2)\n .workflowName(\"workflow\")\n .revision(\"revision\")\n .attemptId(3)\n .sessionId(4)\n .taskName(\"task\")\n .timeZone(ZoneOffset.UTC)\n .sessionUuid(UUID.randomUUID())\n .sessionTime(OffsetDateTime.now())\n .workflowDefinitionId(5L)\n .build();\n try {\n body(notification);\n }\n catch (Exception e) {\n throw ThrowablesUtil.propagate(e);\n }\n }", "private void doPing()\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n CHARGE_NODE_JSON_DATA, \r\n PING_URL,\r\n SN_HOST,\r\n null, \r\n cookieData,\r\n false,\r\n token,\r\n secret ) );\r\n }", "public void test4(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equalsIgnoreCase(\"trustme.com\")){ /* BUG */\n\n }\n }", "protected void issueConnectorPings() {\n if (getConnectorRegistry() == null) {\n logger.error(\"issueConnectorPings: connectorRegistry is null\");\n return;\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"issueConnectorPings: pinging outgoing topology connectors (if there is any) for \"+slingId);\n }\n getConnectorRegistry().pingOutgoingConnectors(forcePing);\n forcePing = false;\n }", "@Override\n public Map flowControl() throws Exception {\n ELKAopLogger.logStr(\"this is phone user\");\n\n // 拼装产品节点\n preProductInfo();\n\n // 拼装ext节点-tradeRelation\n preExt();\n\n // 拼装base\n preBase();\n\n // 拼装其他产品节点\n preTradeOther();\n\n // 调预提交\n callPreSub();\n\n return null;\n }", "public static void sendRequirementMessages(Player player) {\n\t\tfor (int i = 1; i < 310; i++)\n\t\t\tinter(player, i, \"\");\n\t\tplayer.getInterfaceManager().sendInterface(275);\n\t\tinter(player, 1, \"<col=FF0000><shad=000000>Distinction cape requirements</col>\");\n\n\t\tinter(player, 10, \"<col=046DB3><shad=000000><u>Max cape requirements</u></col>\");\n\t\tinter(player, 11, (isWorthyMaxCape(player) ? \"<str>\" : \"\")+\"Every stat level 99\");\n\t\tinter(player, 12, (isWorthyMaxCape(player) ? \"<col=1BD12A><shad=000000>You are worthy enough to claim this cape!</col>\"\n\t\t\t\t\t\t: \"<col=ff0000><shad=000000>You are not worthy enough to claim this cape!\"));\n\n\t\tinter(player, 14, \"<col=046DB3><shad=000000><u>Completionist cape requirements</u></col>\");\n\t\tinter(player, 15, ((isMaxed(player) && player.getSkills().getLevelForXp(Skills.DUNGEONEERING) == 120) ? \"<str>\" : \"\")+\"Every stat level 99 & 120 Dungeoneering\");\n\t\tinter(player, 16, (player.isKilledQueenBlackDragon() ? \"<str>\" : \"\")+\"Killed the Queen Black Dragon\");\n\t\tinter(player, 17, (player.isCompletedFightCaves() ? \"<str>\" : \"\")+\"Completed the Fight Caves minigame\");\n\t\tinter(player, 18, (player.isCompletedFightKiln() ? \"<str>\" : \"\")+\"Completed the Fight Kiln minigame\");\n\t\tinter(player, 19, (player.isKilledCulinaromancer() ? \"<str>\" : \"\")+\"Completed the Recipe for Disaster minigame\");\n\t\tinter(player, 20, (player.getQuestManager().completedQuest(Quests.NOMADS_REQUIEM) ? \"<str>\" : \"\")+\"Completed the Nomad's mini-quest\");\n\t\tinter(player, 21, (isWorthyCompCape(player) ? \"<col=1BD12A><shad=000000>You are worthy enough to claim this cape!</col>\"\n\t\t\t\t\t\t: \"<col=ff0000><shad=000000>You are not worthy enough to claim this cape!\"));\n\n\t\tinter(player, 23, \"<col=046DB3><shad=000000><u>Completionist cape (t) requirements</u></col>\");\n\t\tinter(player, 24, ((isWorthyCompCape(player)) ? \"<str>\" : \"\")+\"Have completed all of the above\");\n\t\tinter(player, 25, ((player.getOresMined() >= 5000) ? \"<str>\" : \"\")+\"Mine a total of 5'000 ores (\"+Utils.getFormattedNumber(player.getOresMined())+\")\");\n\t\tinter(player, 26, ((player.getBarsSmelt() >= 5000) ? \"<str>\" : \"\")+\"Smith a total of 5'000 bars (\"+Utils.getFormattedNumber(player.getBarsSmelt())+\")\");\n\t\tinter(player, 27, ((player.getLogsChopped() >= 5000) ? \"<str>\" : \"\")+\"Chop a total of 5'000 logs (\"+Utils.getFormattedNumber(player.getLogsChopped())+\")\");\n\t\tinter(player, 28, ((player.getLogsBurned() >= 5000) ? \"<str>\" : \"\")+\"Burn a total of 5'000 logs (\"+Utils.getFormattedNumber(player.getLogsBurned())+\")\");\n\t\tinter(player, 29, ((player.getLapsRan() >= 1000) ? \"<str>\" : \"\")+\"Complete a total of 1'000 agility laps (\"+Utils.getFormattedNumber(player.getLapsRan())+\")\");\n\t\tinter(player, 30, ((player.getBonesOffered() >= 5000) ? \"<str>\" : \"\")+\"Offer a total of 5'000 bones (\"+Utils.getFormattedNumber(player.getBonesOffered())+\")\");\n\t\tinter(player, 31, ((player.getPotionsMade() >= 5000) ? \"<str>\" : \"\")+\"Make a total of 5'000 potions (\"+Utils.getFormattedNumber(player.getPotionsMade())+\")\");\n\t\tinter(player, 32, ((player.getTimesStolen() >= 5000) ? \"<str>\" : \"\")+\"Steal a total of 5'000 times (\"+Utils.getFormattedNumber(player.getTimesStolen())+\")\");\n\t\tinter(player, 33, ((player.getItemsMade() >= 5000) ? \"<str>\" : \"\")+\"Craft a total of 5'000 items (\"+Utils.getFormattedNumber(player.getItemsMade())+\")\");\n\t\tinter(player, 34, ((player.getItemsFletched() >= 5000) ? \"<str>\" : \"\")+\"Fletch a total of 5'000 items (\"+Utils.getFormattedNumber(player.getItemsFletched())+\")\");\n\t\tinter(player, 35, ((player.getCreaturesCaught() >= 3000) ? \"<str>\" : \"\")+\"Catch a total of 3'000 creatures (\"+Utils.getFormattedNumber(player.getCreaturesCaught())+\")\");\n\t\tinter(player, 36, ((player.getFishCaught() >= 5000) ? \"<str>\" : \"\")+\"Catch a total of 5'000 fish (\"+Utils.getFormattedNumber(player.getFishCaught())+\")\");\n\t\tinter(player, 37, ((player.getFoodCooked() >= 5000) ? \"<str>\" : \"\")+\"Cook a total of 5'000 food (\"+Utils.getFormattedNumber(player.getFoodCooked())+\")\");\n\t\tinter(player, 38, ((player.getProduceGathered() >= 3000) ? \"<str>\" : \"\")+\"Farm a total of 3'000 produce (\"+Utils.getFormattedNumber(player.getProduceGathered())+\")\");\n\t\tinter(player, 39, ((player.getPouchesMade() >= 2500) ? \"<str>\" : \"\")+\"Infuse a total of 2'500 pouches (\"+Utils.getFormattedNumber(player.getPouchesMade())+\")\");\n\t\tinter(player, 40, ((player.getMemoriesCollected() >= 5000) ? \"<str>\" : \"\")+\"Harvest a total of 5'000 memories (\"+Utils.getFormattedNumber(player.getMemoriesCollected())+\")\");\n\t\tinter(player, 41, ((player.getRunesMade() >= 5000) ? \"<str>\" : \"\")+\"Runecraft a total of 5'000 runes (\"+Utils.getFormattedNumber(player.getRunesMade())+\")\");\n\t\tinter(player, 42, ((isWorthyCompCapeT(player)) ? \"<col=1BD12A><shad=000000>You are worthy enough to claim this cape!</col>\"\n\t\t\t\t\t\t: \"<col=ff0000><shad=000000>You are not worthy enough to claim this cape!\"));\n\t}", "public static void sendHelp(String message, PrivateChannel pchan, MessageReceivedEvent event)//dependency for fallback\n {\n ArrayList<String> bits = splitMessage(message);\n for(int i=0; i<bits.size(); i++)\n {\n boolean first = (i == 0);\n pchan.sendMessageAsync(bits.get(i), m ->\n {\n if(m==null && first && !event.isPrivate())//failed to send\n {\n sendResponse(SpConst.CANT_HELP, event);\n }\n });\n }\n }", "public Channel method_4121() {\n return null;\n }", "private static PendingIntent m92439a(Context context, int i, long j, String str, String str2, String str3) {\n Intent startIntent = IntentOperation.getStartIntent(context, SnetWatchdogChimeraIntentService.class, str3);\n startIntent.putExtra(\"snet.watchdog.intent.extra.GMS_CORE_VERSION\", i);\n startIntent.putExtra(\"snet.watchdog.intent.extra.TIMEOUT\", j);\n startIntent.putExtra(\"snet.watchdog.intent.extra.SESSION_UUID\", str);\n startIntent.putExtra(\"snet.watchdog.intent.extra.DEVICE_UUID\", str2);\n return PendingIntent.getService(context, 0, startIntent, 0);\n }", "private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\n }", "pb4server.UseSoliderAddAskReq getUseSoliderAddAskReq();" ]
[ "0.54919815", "0.54177487", "0.53931385", "0.53312594", "0.53221536", "0.52999634", "0.52821267", "0.5203819", "0.52028126", "0.51871127", "0.5182201", "0.5163671", "0.51410466", "0.5135412", "0.51176006", "0.51128995", "0.5086645", "0.5083358", "0.50645924", "0.50505567", "0.50485903", "0.5045901", "0.5036841", "0.50357187", "0.50303197", "0.50172913", "0.5009051", "0.4996617", "0.49959725", "0.4985762", "0.49750513", "0.497025", "0.4967965", "0.49674597", "0.49657786", "0.49631473", "0.49607295", "0.49601883", "0.4958764", "0.49343672", "0.49317363", "0.49182308", "0.49110746", "0.49084437", "0.49007314", "0.48999774", "0.48999774", "0.48973775", "0.48930347", "0.48912206", "0.48912206", "0.48912206", "0.48912206", "0.48912206", "0.48912206", "0.48912206", "0.48898908", "0.48664194", "0.48600507", "0.48556706", "0.48551926", "0.48527384", "0.4845499", "0.48415798", "0.4837798", "0.4835937", "0.4834941", "0.4830906", "0.48295683", "0.48284847", "0.4822496", "0.4821986", "0.48149705", "0.4814795", "0.48117492", "0.4809086", "0.48052573", "0.4803921", "0.48011544", "0.47996768", "0.47996694", "0.47993705", "0.47959748", "0.47898465", "0.47894636", "0.47840208", "0.47819486", "0.47764745", "0.4775695", "0.47747925", "0.4772355", "0.4764684", "0.47628132", "0.4762649", "0.47613874", "0.4754147", "0.47518605", "0.47454518", "0.474497", "0.47448963", "0.4743614" ]
0.0
-1
/ Bulk Requests Hide Paging, cursors etc.
public interface CursorResources { /* * Timelines */ <T> List<String> getBulkUserTimeline(T ident, long initSinceId, long initMaxId, int maxElements) throws TwitterException; <T> List<String> getBulkUserTimeline(T ident) throws TwitterException; /* * Favorites */ <T> List<String> getBulkFavorites(T ident, long initSinceId, long initMaxId, int maxElements) throws TwitterException; <T> List<String> getBulkFavorites(T ident) throws TwitterException; /* * Tweets */ List<Long> getBulkRetweeterIds(long statusId, int maxElements) throws TwitterException; List<Long> getBulkRetweeterIds(long statusId) throws TwitterException; Map<Long, String> getBulkTweetLookupMap(Collection<Long> ids) throws TwitterException; List<String> getBulkTweetLookup(final Collection<Long> ids) throws TwitterException; /* * Users */ <T> List<String> getBulkLookupUsers(final Collection<T> idents) throws TwitterException; /* * FriendsFollowers */ <T> List<Long> getBulkFriendsIDs(T ident, int maxElements) throws TwitterException; <T> List<Long> getBulkFriendsIDs(T ident) throws TwitterException; <T> List<Long> getBulkFollowersIDs(T ident, int maxElements) throws TwitterException; <T> List<Long> getBulkFollowersIDs(T ident) throws TwitterException; <T> List<String> getBulkFriendsList(T ident, int maxElements, boolean skipStatus, boolean includeUserEntities) throws TwitterException; <T> List<String> getBulkFriendsList(T ident) throws TwitterException; <T> List<String> getBulkFollowersList(T ident, int maxElements, boolean skipStatus, boolean includeUserEntities) throws TwitterException; <T> List<String> getBulkFollowersList(T ident) throws TwitterException; /* * Lists */ <T> List<String> getBulkUserListStatuses(T ident, String slug, long initSinceId, long initMaxId, int maxElements) throws TwitterException; <T> List<String> getBulkUserListStatuses(T ident, String slug) throws TwitterException; <T> List<String> getBulkUserListMemberships(T ident, int maxElements) throws TwitterException; <T> List<String> getBulkUserListMemberships(T ident) throws TwitterException; <T> List<String> getBulkUserListSubscribers(T ident, String slug, int maxElements) throws TwitterException; <T> List<String> getBulkUserListSubscribers(T ident, String slug) throws TwitterException; <T> List<String> getBulkUserListMembers(long listId, int maxElements) throws TwitterException; <T> List<String> getBulkUserListMembers(long listId) throws TwitterException; <T> List<String> getBulkUserListSubscriptions(T ident, int maxElements) throws TwitterException; <T> List<String> getBulkUserListSubscriptions(T ident) throws TwitterException; <T> List<String> getBulkUserListsOwnerships(T ident, int maxElements) throws TwitterException; <T> List<String> getBulkUserListsOwnerships(T ident) throws TwitterException; /* * Search */ <T> List<String> getBulkSearchUsers(String query, int maxElements) throws TwitterException; <T> List<String> getBulkSearchUsers(String query) throws TwitterException; <T> List<String> getBulkSearchResults(String query, int maxElements) throws TwitterException; <T> List<String> getBulkSearchResults(String query) throws TwitterException; <T> List<String> getBulkSearchResults(Query query, int maxElements) throws TwitterException; <T> List<String> getBulkSearchResults(Query query) throws TwitterException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void viewPendingRequests() {\n\n\t}", "private void getBlockListNetworkCall(final Context context, int offset, int limit) {\n\n HashMap<String, Object> serviceParams = new HashMap<String, Object>();\n HashMap<String, Object> tokenServiceHeaderParams = new HashMap<String, Object>();\n\n tokenServiceHeaderParams.put(Keys.TOKEN, UserSharedPreference.readUserToken());\n serviceParams.put(Keys.LIST_OFFSET, offset);\n serviceParams.put(Keys.LIST_LIMIT, limit);\n\n new WebServicesVolleyTask(context, false, \"\",\n EnumUtils.ServiceName.get_blocked_user,\n EnumUtils.RequestMethod.GET, serviceParams, tokenServiceHeaderParams, new AsyncResponseCallBack() {\n\n @Override\n public void onTaskComplete(TaskItem taskItem) {\n\n if (taskItem != null) {\n\n if (taskItem.isError()) {\n if (getUserVisibleHint())\n showNoResult(true);\n } else {\n try {\n\n if (taskItem.getResponse() != null) {\n\n JSONObject jsonObject = new JSONObject(taskItem.getResponse());\n\n // todo parse actual model\n JSONArray favoritesJsonArray = jsonObject.getJSONArray(\"users\");\n\n Gson gson = new Gson();\n Type listType = new TypeToken<List<BlockUserBO>>() {\n }.getType();\n List<BlockUserBO> newStreams = (List<BlockUserBO>) gson.fromJson(favoritesJsonArray.toString(),\n listType);\n\n totalRecords = jsonObject.getInt(\"total_records\");\n if (totalRecords == 0) {\n showNoResult(true);\n } else {\n if (blockListAdapter != null) {\n if (startIndex != 0) {\n //for the case of load more...\n blockListAdapter.removeLoadingItem();\n } else {\n //for the case of pulltoRefresh...\n blockListAdapter.clearItems();\n }\n }\n\n showNoResult(false);\n setUpBlockListRecycler(newStreams);\n }\n }\n } catch (Exception ex) {\n showNoResult(true);\n ex.printStackTrace();\n }\n }\n }\n }\n });\n }", "public void setPaging(boolean paging) {\n this.paging = paging;\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "private void limitRows()\n {\n paginate(currentPage, getResultsPerPage());\n }", "public void customLoadMoreDataFromApi() {\n // This method probably sends out a network request and appends new data items to your adapter. \n // Use the offset value and add it as a parameter to your API request to retrieve paginated data.\n // Deserialize API response and then construct new objects to append to the adapter\n \tmakeGoogleApiCall();\n \t\n }", "HiddenGrid(int userGridRequest) {\n hiddenGrid = new Integer[userGridRequest][userGridRequest];\n bombsPlaced = 0;\n }", "public void setPrefetch (boolean flag) throws ModelException;", "public Boolean getAlwaysRequestVisibleRows() {\r\n return getAttributeAsBoolean(\"alwaysRequestVisibleRows\");\r\n }", "public List<NSSRequestBean> getMoreRequest(int userId);", "private void cancelFetch() {\n cancelOperation(QUERY_NEW_CALLS_TOKEN);\n cancelOperation(QUERY_OLD_CALLS_TOKEN);\n }", "public void requestInvisibleMode() {\n final ModContainer activeModContainer = Loader.instance().activeModContainer();\n if (activeModContainer != null) {\n invisibleRequesters.add(activeModContainer.getName());\n } else {\n invisibleRequesters.add(\"null\");\n }\n }", "Page<HrDocumentRequest> getRejectedDocumentRequests(Pageable pageable);", "void requestRateLimited();", "public void setAlwaysRequestVisibleRows(Boolean alwaysRequestVisibleRows) throws IllegalStateException {\r\n setAttribute(\"alwaysRequestVisibleRows\", alwaysRequestVisibleRows, false);\r\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public void markOperationAsNoOp(DocWriteResponse response) {\n assertInvariants(ItemProcessingState.INITIAL);\n executionResult = new BulkItemResponse(getCurrentItem().id(), getCurrentItem().request().opType(), response);\n currentItemState = ItemProcessingState.EXECUTED;\n assertInvariants(ItemProcessingState.EXECUTED);\n }", "private void requestUsers(){\n if(mIsLoading)\n return;\n\n mIsLoading = true;\n UserManager.getsInstance().requestUsers(StackExchangeSite.STACK_OVERFLOW,100);\n }", "public void pauseRequests() {\n requestTracker.pauseRequests();\n }", "private void doApiCall() {\n\n if (currentPage != PAGE_START) adapter.removeLoading();\n\n // check weather is last page or not\n if (totalPage != 0) {\n adapter.addLoading();\n apiCall(currentPage);\n } else {\n isLastPage = true;\n }\n isLoading = false;\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 ActionForward showBatchList( ActionMapping mapping, ActionForm form, HttpServletRequest request,\r\n HttpServletResponse response )\r\n throws IOException, ServletException\r\n {\r\n\r\n response.setContentType( \"text/html\" );\r\n ServletOutputStream out = response.getOutputStream();\r\n out.println( \"<html>\" );\r\n out.println( \"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"theme/charte_v03_001/css/master.css\\\">\" );\r\n out.println( \"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"theme/welcom-001.css\\\">\" );\r\n out.println( \"<body>\" );\r\n out.println( \"<H1>Server batch admin</H1>\" );\r\n out.println( \"Pool size : \" + WatchedTaskManager.getInstance( request ).getWorkQueue().getPoolSize() + \"<BR>\" );\r\n out.println( \"Waiting tasks : \" + WatchedTaskManager.getInstance( request ).getWorkQueue().getWaitingTasks()\r\n + \"<BR>\" );\r\n\r\n out.println( \"<table class=\\\"tblh\\\"><thead><tr><th>ID</th><th>impl</th><th>progress</th><th>status</th><th>errors</th><th>age(ms)</th></tr></thead>\" );\r\n try\r\n {\r\n Collection colTasks = WatchedTaskManager.getInstance( request ).getAllTasks();\r\n\r\n synchronized ( colTasks )\r\n {\r\n\r\n long now = System.currentTimeMillis();\r\n Iterator iter = colTasks.iterator();\r\n final String myClassLignePaire = \"clair\";// WelcomConfigurator.getMessage(WelcomConfigurator.getCharte().getWelcomConfigFullPrefix()\r\n // + \".cols.even\");\r\n int i = 0;\r\n while ( iter.hasNext() )\r\n {\r\n i++;\r\n\r\n if ( i % 2 == 0 )\r\n {\r\n out.print( \"<tr class=\\\"\" + myClassLignePaire + \"\\\">\" );\r\n }\r\n else\r\n {\r\n out.print( \"<tr class=\\\"\\\">\" );\r\n }\r\n\r\n WatchedTask batch = (WatchedTask) iter.next();\r\n Object taskId = WatchedTaskManager.getInstance( request ).getTaskId( batch );\r\n long ageTache = now - batch.getProgress().getCreationDate();\r\n\r\n out.print( \"<td>\" + taskId + \"</td>\" );\r\n out.print( \"<td>\" + batch.getClass().getName() + \"</td>\" );\r\n out.print( \"<td>\" + batch.getProgress().getPercentComplete() + \"</td>\" );\r\n out.print( \"<td>\" + batch.getStatus() + \"</td>\" );\r\n out.print( \"<td>\" + batch.getErrors() + \"</td>\" );\r\n out.print( \"<td>\" + ageTache + \"</td>\" );\r\n /*\r\n * LIen pour la suppression de la tache out.print( \"<td><a href=\" + request.getContextPath() +\r\n * request.getServletPath() + \"?action=killBatch&taskId=\" + taskId + \">kill</a>\" + \"</td>\");\r\n */\r\n out.println( \"</tr>\" );\r\n }\r\n out.println( \"</tfoot></table></body></html>\" );\r\n }\r\n\r\n }\r\n catch ( Exception e )\r\n {\r\n e.printStackTrace();\r\n }\r\n\r\n return null;\r\n }", "OptimizeResponse() {\n\n\t}", "private void show(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tInteger page = request.getParameter(\"page\") == \"\" || request.getParameter(\"page\") == null ? 1\r\n\t\t\t\t: Integer.valueOf(request.getParameter(\"page\"));\r\n\t\tint count = service.selectCount();\r\n\t\trequest.setAttribute(\"page\", page);\r\n\t\trequest.setAttribute(\"count\", count);\r\n\t\tList<Notice> list = service.selectAll((page - 1) * 5, 5);\r\n\t\trequest.setAttribute(\"list\", list);\r\n\r\n\t\trequest.getRequestDispatcher(\"/WEB-INF/jsp/GongGaoGuanLi.jsp\").forward(request, response);\r\n\t}", "@Override\r\n\tpublic String paging(String sql) {\n\t\treturn null;\r\n\t}", "@Override\n public void beforeBulk(long executionId,\n BulkRequest request) {\n }", "default CompletableFuture<List<Box>> queryVisible() {\n //Fill search Map with the Values\n final Map<String,Object> searchData = new HashMap<String,Object>() {\n {\n put(BoxPersistenceDAO.QUERY_PARAM_DELFLAG, false);\n }\n\n @Override\n public Object put(String key, Object o) {\n if (o != null) return super.put(key, o);\n return null;\n }\n };\n\n return query(searchData);\n }", "public boolean isPagingSupported();", "public void customLoadMoreDataFromApi(int offset) {\n// Log.d(TAG, \"page = \" + offset);\n populateTimeline();\n // This method probably sends out a network request and appends new data items to your adapter.\n // Use the offset value and add it as a parameter to your API request to retrieve paginated data.\n // Deserialize API response and then construct new objects to append to the adapter\n }", "List<ProductView> getAllByPage(PageableAndSortable pageableAndSortable) throws ProductException;", "public void customLoadMoreDataFromApi(int offset) {\n // This method probably sends out a network request and appends new data items to your adapter. \n // Use the offset value and add it as a parameter to your API request to retrieve paginated data.\n // Deserialize API response and then construct new objects to append to the adapter\n \tAsyncHttpClient client = new AsyncHttpClient();\n\t\t//https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=%s&start=%d&imgsz=medium\n\t\t//client.get(\"https://ajax.googleapis.com/ajax/services/search/images?\"+\"start=\"+0+\"&v=1.0&q=\"+Uri.encode(query),\n\t\tclient.get(getQueryString(offset*8) + Uri.encode(query),\n\t\t\t\tnew JsonHttpResponseHandler(){\n\t\t\t@Override\n\t\t\tpublic void onSuccess(JSONObject response){\n\t\t\t\tJSONArray imageJsonResults = null;\n\t\t\t\ttry{\n\t\t\t\t\timageJsonResults = response.getJSONObject(\"responseData\").getJSONArray(\"results\");\n\t\t\t\t\timageAdapter.addAll(ImageResult.fromJSONArray(imageJsonResults));\t\n\t\t\t\t}catch(JSONException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n \t\n \t\n }", "void setMaxResults(int limit);", "public interface DevsEndpoint {\n\n @Headers(UrlConstants.CACHE_HEADER + \": \"+ true)\n @GET(\"users?order=desc&sort=reputation&site=stackoverflow\")\n Call<DevsListResponse> getDevsList(@Query(\"page\") int page, @Query(\"pagesize\") int pageSize);\n}", "List<ShopItem> findAllByInTopPageTrue();", "private void hideLoadingAndUpdate() {\n image.setVisibility(View.VISIBLE);\n loadingBar.setVisibility(View.INVISIBLE);\n shareBtn.setVisibility(shareBtnVisibility);\n\n }", "private BulkApiInfoContainerBatch getAllRecordsFromRestApi(String entityName, String selectQueryFragment, Date startDate, Date endDate, String userSessionId, String historicProcessId, Date processStartDate) throws Exception {\r\n\t\tLOGGER.trace(\"Entrando en getAllRecordsFromRestApi para obtener los registros del objeto \" + entityName);\r\n\t\t//0.0. Se rellenan los datos del proceso de actualizacion de objetos para cargarlos a la tabla de historico\r\n\t\tHistoricBatchVO apiSearchingHistoricProcessInfo = new HistoricBatchVO();\r\n\t\tapiSearchingHistoricProcessInfo.setStartDate(new Date());\r\n\t\tapiSearchingHistoricProcessInfo.setProcessId(historicProcessId);\r\n\t\tapiSearchingHistoricProcessInfo.setOperation(ConstantesBatch.API_QUERY_PROCESS);\r\n\t\tapiSearchingHistoricProcessInfo.setObject(objectsMapper.getObjectHistoricNamesMap().get(entityName));\r\n\t\t\t\t\r\n\t\tboolean processOk = false;\r\n\t\tString processErrorCause = \"\";\r\n\t\tBulkApiInfoContainerBatch bulkApiContainer = null;\r\n\t\tHttpClient httpClient = null;\r\n\t\tHttpGet get = null;\r\n\r\n\t\tif (!Utils.isNullOrEmptyString(userSessionId)) {\r\n\t\t\tString completeQuery = buildSoqlQuery(entityName, selectQueryFragment, startDate, endDate);\r\n\t\t\tStringBuilder queryAllUrl = new StringBuilder(\"\");\r\n\t\t\tqueryAllUrl.append(ConstantesSalesforceLogin.DEV_LOGIN_SALESFORCE_INSTANCE_URL);\r\n\t\t\tqueryAllUrl.append(ConstantesBulkApi.REST_API_QUERY_ALL_URL);\r\n\t\t\tqueryAllUrl.append(\"?q=\");\r\n\t\t\tqueryAllUrl.append(Utils.parseSqlQueryToUrlQuery(completeQuery.toString()));\r\n\t\t\t\r\n\t\t\tURI uri = new URI(queryAllUrl.toString());\r\n\t\t\thttpClient = HttpClientBuilder.create().build();\r\n\t\t\tget = new HttpGet(uri);\r\n\t\t\tget.setHeader(ConstantesSalesforceLogin.DEV_REST_SALESFORCE_AUTHORIZATION_HEADER_KEY, \"Bearer \" + userSessionId);\r\n\t\t\tget.setHeader(ConstantesSalesforceLogin.DEV_REST_SALESFORCE_CONTENT_TYPE_HEADER_KEY, ConstantesSalesforceLogin.DEV_REST_SALESFORCE_JSON_CONTENT_TYPE);\r\n\t\t\tget.setHeader(ConstantesSalesforceLogin.DEV_REST_SALESFORCE_ACCEPT_HEADER_KEY, ConstantesSalesforceLogin.DEV_REST_SALESFORCE_JSON_CONTENT_TYPE);\r\n\t\t\t\r\n\t\t\tHttpResponse response = httpClient.execute(get);\r\n\t\t\tif (HttpStatus.SC_OK == response.getStatusLine().getStatusCode()) {\r\n\t\t\t\tLOGGER.info(\"Respuesta del servidor correcta\");\r\n\t\t\t\tHttpEntity entity = response.getEntity();\r\n\t\t\t\tString entityResponse = EntityUtils.toString(entity);\r\n\t\t\t\tif (!Utils.isNullOrEmptyString(entityResponse)) {\r\n\t\t\t\t\tbulkApiContainer = objectsParser.populateObjectListFromJsonObject(entityName, entityResponse, objectsMapper, historicProcessId, processStartDate);\r\n\t\t\t\t\tapiSearchingHistoricProcessInfo.setTotalRecords(bulkApiContainer.getTotalRecords());\r\n\t\t\t\t\tprocessOk = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tLOGGER.error(\"Datos de la respuesta vacios. No es posible actualizar el objeto\");\r\n\t\t\t\t\tprocessOk = false;\r\n\t\t\t\t\tprocessErrorCause = ConstantesBatch.ERROR_SALESFORCE_NULL_RESPONSE;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tLOGGER.info(\"Error en la peticion. Status: \" + response.getStatusLine());\r\n\t\t\t\tprocessOk = false;\r\n\t\t\t\tprocessErrorCause = ConstantesBatch.ERROR_SALESFORCE_RESPONSE_STATUS_NO_OK + response.getStatusLine().getStatusCode();\r\n\t\t\t}\r\n\t\t\tget.releaseConnection();\r\n\t\t} else {\r\n\t\t\tLOGGER.error(\"Imposible realizar la conexion. El sessionId es nulo\");\r\n\t\t\tprocessOk = false;\r\n\t\t\tprocessErrorCause = ConstantesBatch.ERROR_SALESFORCE_NULL_USER_SESSION_ID;\r\n\t\t}\r\n\t\tapiSearchingHistoricProcessInfo.setSuccess(processOk);\r\n\t\tapiSearchingHistoricProcessInfo.setErrorCause(processOk ? null : processErrorCause);\r\n\t\tapiSearchingHistoricProcessInfo.setEndDate(new Date());\r\n\t\thistoricBatchDao.insertHistoric(apiSearchingHistoricProcessInfo);\r\n\t\treturn bulkApiContainer;\r\n\t}", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "@Override\n @Transactional(readOnly = true)\n\tpublic Page<ProductDTO> findByVisibleFalse(Pageable pageable) {\n \tlog.debug(\"Request to get all Products by visibility false \");\n return productRepository.findByVisibleFalse(pageable)\n .map(productMapper::toDto);\n\t}", "private void getLargeOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getLargeOrderList());\n \n }", "public void setVisible(boolean b) {\n if (b) {\n loadTable();\n }\n }", "@Override\n\tpublic String disableBulk() throws Throwable {\n\t\treturn null;\n\t}", "List<ProductView> getAllByPage(int pageNumber, int itemsPerPage) throws ProductException;", "private boolean isPaginationAndSortNotUsed( HttpServletRequest request )\n {\n return request.getParameter( PARAMETER_PAGE_INDEX ) == null && request.getParameter( FormsConstants.PARAMETER_SORT_COLUMN_POSITION ) == null;\n }", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "private void pagination()\n {\n if (value==0)\n {\n aBoolean=true;\n setAdapter(postModels);\n value=1;\n count=count+10;\n }\n else if (value==1)\n {\n if (count<page_count)\n {\n aBoolean=true;\n count=count+10;\n temp_list.addAll(postModels);\n adapter.notifyDataSetChanged();\n }\n }\n }", "@Override\n public void afterBulk(long executionId,\n BulkRequest request,\n BulkResponse response) {\n }", "public void getApHideColumn(){\r\n\t\tString showHide = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(WsrdConstants.HIDESHOWCOLUMN);\r\n\t\tif(showHide.equalsIgnoreCase(WsrdConstants.SHOW_AUTHOR_INFO)) {\r\n\t\t\twsrdModel.setApShowHide(WsrdConstants.HIDE_AUTHOR_INFO);\r\n\t\t\twsrdModel.setShowHideFlag(true);\r\n\t\t}\r\n\t\tif(showHide.equalsIgnoreCase(WsrdConstants.HIDE_AUTHOR_INFO)) {\r\n\t\t\twsrdModel.setApShowHide(WsrdConstants.SHOW_AUTHOR_INFO);\r\n\t\t\twsrdModel.setShowHideFlag(false);\r\n\t\t\t\r\n\t\t}\r\n\t}", "private void requestBucks() {\n\n\t}", "public void throttleFilter() throws InvalidQueryException {\n }", "protected boolean needsFetchingScroll() {\n \t\treturn false;\n \t}", "public void clearFetchGroups() {\n\t\tquery.getFetchPlan().clearFetchGroups();\n\t}", "public default boolean shouldHideEntity(){ return false; }", "@RequestLine(\"GET /show\")\n List<Bucket> getAllEmployeesList();", "@Options(fetchSize = Integer.MIN_VALUE)\n @Select(\"SELECT * FROM USERS\")\n Cursor<User> listUsersWithFetchSize();", "public void fetchCalls() {\n cancelFetch();\n invalidate();\n fetchNewCalls();\n fetchOldCalls();\n }", "public static void performanceCountDisable() { }", "public void setHidden(Integer hidden) {\n this.hidden = hidden;\n }", "public void setHidden(Integer hidden) {\n this.hidden = hidden;\n }", "private void getBulkApiRecordsInfo(Date processStartDate, Date processEndDate, String objectName, boolean isManualProcess){\r\n\t\tLOGGER.trace(\"Entrando en getAllBulkApiInfo para obtener los registros actualizados en Salesforce\");\r\n\t\tLOGGER.info(\"Búsqueda desde \" + processStartDate + \", hasta \" + processEndDate);\r\n\t\tBulkApiInfoContainerBatch containerList = null;\r\n\t\tboolean processOk = false;\r\n\t\tString processErrorCause = \"\";\r\n\t\tHistoricBatchVO mainHistoricProcessInfo = new HistoricBatchVO();\r\n\t\ttry {\r\n\t\t\tStringBuilder historicMainProcessId = Utils.generateDateId();\r\n\t\t\tmainHistoricProcessInfo.setStartDate(new Date());\r\n \t\t\tmainHistoricProcessInfo.setOperation(ConstantesBatch.BATCH_MAIN_PROCESS);\r\n \t\t\tUserSessionInfo userInfo = Utils.getUserSessionInfoFromProperties();\r\n \t\t\tif (!Utils.isNullOrEmptyString(objectName)) {\r\n\t\t\t\t//0.1. Se rellenan los datos del proceso principal para cargarlos la tabla de historico\r\n \t\t\t\thistoricMainProcessId.append(\"-\").append(objectsMapper.getObjectNamesAbbreviationsMap().get(objectName));\r\n\t\t\t\tmainHistoricProcessInfo.setProcessId(historicMainProcessId.toString());\r\n\t\t\t\t//0.2. Se rellenan los datos del proceso de actualizacion de objetos para cargarlos a la tabla de historico\r\n\t\t\t\tHistoricBatchVO objectLoadingHistoricProcessInfo = new HistoricBatchVO();\r\n\t\t\t\tobjectLoadingHistoricProcessInfo.setProcessId(historicMainProcessId.toString());\r\n\t\t\t\tobjectLoadingHistoricProcessInfo.setStartDate(new Date());\r\n\t\t\t\tobjectLoadingHistoricProcessInfo.setOperation(ConstantesBatch.OBJECT_LOADING);\r\n\t\t\t\tobjectLoadingHistoricProcessInfo.setObject(objectsMapper.getObjectHistoricNamesMap().get(objectName));\r\n \t\t\t\t//1. Se realiza el login contra Salesforce REST API.\r\n\t\t\t\tuserInfo = salesforceLoginChecker.getUserSessionInfo(userInfo);\r\n\t\t\t\t//2. Se recorre el mapa de objetos para realizar las llamadas al API.\r\n\t\t\t\tcontainerList = getAllRecordsFromRestApi(objectName, objectsMapper.getObjectSelectsMap().get(objectName), processStartDate, processEndDate, userInfo.getSessionId(), historicMainProcessId.toString(), processStartDate);\r\n\t\t\t\t//3. Se envia el objeto al DAO para tratar la lista\r\n\t\t\t\tif (containerList != null) {\r\n\t\t\t\t\tif (containerList.getTotalRecords() > 0) {\r\n\t\t\t\t\t\tLOGGER.info(\"Recuperados \" + containerList.getTotalRecords() + \" registros del objeto \" + containerList.getEntityName());\r\n\t\t\t\t\t\tprocessOk = batchService.updateHerokuObjectsFromBulkApi(containerList, historicMainProcessId.toString());\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tLOGGER.info(\"No hay registros que actualizar para el objeto '\" + containerList.getEntityName() + \"'\");\t\t\t\t\t\t\r\n\t\t\t\t\t\tprocessOk = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tLOGGER.error(\"No hay datos de registros a cargar. No se realiza ninguna accion en base de datos\");\r\n\t\t\t\t\tprocessOk = false;\r\n\t\t\t\t\tprocessErrorCause = ConstantesBatch.ERROR_OBJECT_RECORDS_NULL;\r\n\t\t\t\t}\r\n\t\t\t\tobjectLoadingHistoricProcessInfo.setSuccess(processOk);\r\n\t\t\t\tobjectLoadingHistoricProcessInfo.setErrorCause(processOk ? null : processErrorCause);\r\n\t\t\t\tobjectLoadingHistoricProcessInfo.setEndDate(new Date());\r\n\t\t\t\thistoricBatchDao.insertHistoric(objectLoadingHistoricProcessInfo);\r\n\t\t\t} else if (objectsMapper.getObjectSelectsMap() != null && !objectsMapper.getObjectSelectsMap().isEmpty()) {\r\n\t\t\t\t//0. Se rellenan los datos del proceso para la tabla de historico\r\n \t\t\t\thistoricMainProcessId.append(\"-\").append(\"FULL\");\r\n\t\t\t\tmainHistoricProcessInfo.setProcessId(historicMainProcessId.toString());\r\n\t\t\t\tHistoricBatchVO objectLoadingHistoricProcessInfo = null;\r\n\t\t\t\t//1. Se realiza el login contra Salesforce REST API.\r\n\t\t\t\tuserInfo = salesforceLoginChecker.getUserSessionInfo(userInfo);\r\n\t\t\t\t//2. Se recorre el mapa de objetos para realizar las llamadas al API.\r\n\t\t\t\tMap<String, String> objectsMap = new LinkedHashMap<String, String>();\r\n\t\t\t\tobjectsMap.putAll(objectsMapper.getObjectSelectsMap());\r\n\t\t\t\tif (!isManualProcess) {\r\n\t\t\t\t\t//2.1 Si la llamada se realiza de manera programada, CaseComment y HerokuUser tienen su propia tarea\r\n\t\t\t\t\tobjectsMap.remove(ConstantesBulkApi.ENTITY_HEROKU_USER);\r\n\t\t\t\t\tobjectsMap.remove(ConstantesBulkApi.ENTITY_CASE_COMMENT);\r\n\t\t\t\t}\r\n\t\t\t\tIterator<Entry<String, String>> objectsIterator = objectsMap.entrySet().iterator();\r\n\t\t\t\twhile (objectsIterator.hasNext()) {\r\n\t\t\t\t\tEntry<String, String> object = objectsIterator.next();\r\n\t\t\t\t\t//0.2. Se rellenan los datos del proceso de actualizacion de objetos para cargarlos a la tabla de historico\r\n\t\t\t\t\tobjectLoadingHistoricProcessInfo = new HistoricBatchVO();\r\n\t\t\t\t\tobjectLoadingHistoricProcessInfo.setProcessId(historicMainProcessId.toString());\r\n\t\t\t\t\tobjectLoadingHistoricProcessInfo.setStartDate(new Date());\r\n\t\t\t\t\tobjectLoadingHistoricProcessInfo.setOperation(ConstantesBatch.OBJECT_LOADING);\r\n\t\t\t\t\tobjectLoadingHistoricProcessInfo.setObject(objectsMapper.getObjectHistoricNamesMap().get(object.getKey()));\r\n\t\t\t\t\t//3.1. No se recorren los objetos CaseComment y HerokuUser porque tienen su propio Job programado\r\n\t\t\t\t\tcontainerList = getAllRecordsFromRestApi(object.getKey(), object.getValue(), processStartDate, processEndDate, userInfo.getSessionId(), historicMainProcessId.toString(), processStartDate);\r\n\t\t\t\t\t//4. Se envia el objeto al DAO para tratar la lista\r\n\t\t\t\t\tif (containerList != null) {\r\n\t\t\t\t\t\tif (containerList.getTotalRecords() > 0) {\r\n\t\t\t\t\t\t\tLOGGER.info(\"Recuperados \" + containerList.getTotalRecords() + \" registros del objeto \" + containerList.getEntityName());\r\n\t\t\t\t\t\t\tprocessOk = batchService.updateHerokuObjectsFromBulkApi(containerList, historicMainProcessId.toString());\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tLOGGER.info(\"No hay registros que actualizar para el objeto '\" + containerList.getEntityName() + \"'\");\r\n\t\t\t\t\t\t\tprocessOk = true;\r\n\t\t\t\t\t\t\tprocessErrorCause = ConstantesBatch.ERROR_OBJECT_RECORDS_NULL;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tLOGGER.error(\"No hay datos de registros a cargar. No se realiza ninguna accion en base de datos\");\r\n\t\t\t\t\t\tprocessOk = false;\r\n\t\t\t\t\t\tprocessErrorCause = ConstantesBatch.ERROR_OBJECT_RECORDS_NULL;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tobjectLoadingHistoricProcessInfo.setSuccess(processOk);\r\n\t\t\t\t\tobjectLoadingHistoricProcessInfo.setErrorCause(processOk ? null : processErrorCause);\r\n\t\t\t\t\tobjectLoadingHistoricProcessInfo.setEndDate(new Date());\r\n\t\t\t\t\thistoricBatchDao.insertHistoric(objectLoadingHistoricProcessInfo);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tLOGGER.error(\"No hay datos de registros a cargar. No se realiza ninguna llamada\");\r\n\t\t\t\tprocessOk = true;\r\n\t\t\t}\r\n\t\t} catch (Exception exception) {\r\n\t\t\tLOGGER.error(\"Error realizando la carga de registros desde REST API: \", exception);\r\n\t\t\tprocessOk = false;\r\n\t\t\tprocessErrorCause = ConstantesBatch.ERROR_MAIN_PROCESS;\r\n\t\t}\r\n\t\tresultProccess=processOk;\r\n\t\tmainHistoricProcessInfo.setSuccess(processOk);\r\n\t\tmainHistoricProcessInfo.setErrorCause(processOk ? null : processErrorCause);\r\n\t\tmainHistoricProcessInfo.setEndDate(new Date());\r\n\t\thistoricBatchDao.insertHistoric(mainHistoricProcessInfo);\r\n\t}", "@Override\n public void run() {\n adapterOverView.notifyDataSetChanged();\n\n // hide progress bar\n progressBarInOverViewWait.setVisibility(View.GONE);\n\n // change var for false if end getting data - can't start new request if old one is not finish\n isGetingDataFromMSSQL = false;\n }", "public void setPLPRecyclerNoResultView()\n {\n recyclerView.setVisibility(View.GONE);\n recyclerViewNoResult.setVisibility(View.VISIBLE);\n }", "@Override\n protected Response doBatchDelete(Long[] ids) {\n return null;\n }", "@Override\n protected Response doBatchDelete(Long[] ids) {\n return null;\n }", "@Override\n protected Response doBatchDelete(Long[] ids) {\n return null;\n }", "void getRequests();", "public void refreshNoHidePublicUpdate() {\n empty();\n loadPosts();\n }", "@Override\n\t\t\tprotected PaginationResponseData load() {\n\t\t\t\treturn null;\n\n\t\t\t}", "boolean getIsLimited();", "protected abstract void onRequestPage(boolean isRequestNext,int fromIndex,int toIndex,float x,float y);", "@Override\n public void hiddenLoading() {\n Log.i(Tag, \"hiddenLoading\");\n }", "public void getGroupHideColumn() {\r\n\t\tString showHide = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(WsrdConstants.HIDESHOWCOLUMN);\r\n\t\tif(showHide.equalsIgnoreCase(WsrdConstants.SHOW_AUTHOR_INFO)) {\r\n\t\t\twsrdModel.setGroupShowHide(WsrdConstants.HIDE_AUTHOR_INFO);\r\n\t\t\twsrdModel.setShowHideFlag(true);\r\n\t\t}\r\n\t\tif(showHide.equalsIgnoreCase(WsrdConstants.HIDE_AUTHOR_INFO)) {\r\n\t\t\twsrdModel.setGroupShowHide(WsrdConstants.SHOW_AUTHOR_INFO);\r\n\t\t\twsrdModel.setShowHideFlag(false);\r\n\t\t\t\r\n\t\t}\r\n\t}", "private void loadContent()\n {\n // locking the function to prevent the adapter\n // from calling multiples async requests with\n // the same definitions which produces duplicate\n // data.\n locker.lock();\n\n // this function contruct a GraphRequest to the next paging-cursor from previous GraphResponse.\n GraphRequest nextGraphRequest = lastGraphResponse.getRequestForPagedResults(GraphResponse.PagingDirection.NEXT);\n\n // if we reached the end of our pages, the above method 'getRequestForPagedResults'\n // return 'null' object\n if(nextGraphRequest != null)\n {\n // for clarificating and formatting purposes\n // I declared the callback besides the members\n // variables.\n nextGraphRequest.setCallback(callback);\n nextGraphRequest.executeAsync();\n }\n }", "public int getCountRequests() {\n/* 415 */ return this.countRequests;\n/* */ }", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "@Override\n public void onActionViewCollapsed() {\n setQuery(\"\", false);\n super.onActionViewCollapsed();\n }", "public void setActionItemInfoVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_actionItemInfo_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_actionItemInfo_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setActionItemInfoVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void setNoPagedMessage(String noPagedMessage) {\n\t\tengine.setProperty(Properties.NO_PAGED_MESSAGE, noPagedMessage);\n\t}", "private void loadMoreItems() {\n isLoading = true;\n\n currentPage += 1;\n\n Call findMyFeedVideosCall = vimeoService.findMyFeedVideos(currentPage, PAGE_SIZE);\n calls.add(findMyFeedVideosCall);\n findMyFeedVideosCall.enqueue(findMyFeedVideosNextFetchCallback);\n }", "List<Activity> findAllPageable(int page, int size);", "@GET(\"deliveries\")\n Call<List<Delivery>> getDeliveries(@Query(\"limit\") int limit, @Query(\"offset\") int offset);", "public boolean isPrefetch ();", "@Override\n\tpublic void httpCancel() {\n\t\texpressQueryCancel();\n\t}", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Nullable\n public ArrayList<Order> doRetrieveNonApproved(int offset, int limit) {\n try {\n Connection cn = ConPool.getConnection();\n PreparedStatement st;\n Order o = null;\n User u = null;\n ArrayList<Order> orders = new ArrayList<>();\n st = cn.prepareStatement(\n \"SELECT * FROM `order` O WHERE O.operator IS NULL limit ? offset ?;\"\n );\n st.setInt(1, limit);\n st.setInt(2, offset);\n ResultSet rs = st.executeQuery();\n\n while (rs.next()) {\n o = new Order();\n o.setOperator(null);\n o.setId(rs.getInt(2));\n o.setTotPrice(rs.getDouble(3));\n o.setNumberOfItems(rs.getInt(4));\n o.setData(rs.getString(5));\n u = ud.doRetrieveByUsername(rs.getString(1));\n o.setUser(u);\n st = cn.prepareStatement(\n \"SELECT * FROM digitalpurchasing D WHERE D.order=?;\"\n );\n st.setInt(1, o.getId());\n ResultSet rs2 = st.executeQuery();\n DigitalProduct dp = null;\n while (rs2.next()) {\n dp = dpd.doRetrieveById(rs2.getInt(1));\n o.addProduct(dp, rs2.getInt(3));\n }\n st = cn.prepareStatement(\n \"SELECT * FROM physicalpurchasing P WHERE P.order=?;\"\n );\n st.setInt(1, o.getId());\n rs2 = st.executeQuery();\n PhysicalProduct pp = null;\n while (rs2.next()) {\n pp = ppd.doRetrieveById(rs2.getInt(1));\n o.addProduct(pp, rs2.getInt(3));\n }\n orders.add(o);\n }\n st.close();\n cn.close();\n\n return orders;\n } catch (SQLException e) {\n return null;\n }\n }", "@Override\n public boolean isReadRequest() {\n return false;\n }", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "private void abreContasPagas() {\n FiltroDataListaFornecedor dataListaFornecedor\n = new FiltroDataListaFornecedor(\n new String[]{\n \"/br/rel/caixa/ContasPagas.jasper\",\n \"MES\",\n \"0\"});\n dataListaFornecedor.setVisible(true);\n }", "private void GongGaoTongZhi(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\t\tInteger page = request.getParameter(\"page\") == \"\" || request.getParameter(\"page\") == null ? 1\r\n\t\t\t\t: Integer.valueOf(request.getParameter(\"page\"));\r\n\t\trequest.setAttribute(\"page\", page);\r\n\t\tUser user = (User) request.getSession().getAttribute(SessionKey.USER_LOGIN);\r\n\t\tList<Notice> list = service.selectAll((page - 1) * 5, 5, user);\r\n\t\trequest.setAttribute(\"list\", list);\r\n\t\trequest.setAttribute(\"count\", list.size());\r\n\t\trequest.getRequestDispatcher(\"/WEB-INF/jsp/GongGaoTongZhi.jsp\").forward(request, response);\r\n\t}", "@Override\n protected void onPostExecute(String file_url) {\n\n adopter = new BlockedAdapter(details, BlockedActivity.this);\n recyclerView.setAdapter(adopter);\n if(details.size() == 0)\n tvNousers.setVisibility(View.VISIBLE);\n pbBar.setVisibility(View.GONE);\n\n\n\n\n\n }", "@Override\n\tpublic void setOptimizeGet(boolean arg0) {\n\n\t}", "boolean isLimited();", "private void findHide() {\n \tif (this.pagesView != null) this.pagesView.setFindMode(false);\n \tthis.currentFindResultNumber = null;\n \tthis.currentFindResultPage = null;\n \tthis.findButtonsLayout.setVisibility(View.GONE);\n }", "public void resumeRequests() {\n requestTracker.resumeRequests();\n }", "@Override\r\n public boolean isRequest() {\n return false;\r\n }", "void cancelOverrideRequest() {\n cancelCurrentRequestLocked();\n }", "@Override\n public void preAllocateIds(int requestSize) {\n // do nothing by default\n }", "public PageList<User> getUserPageList(User user, int pageSize, int pageNum) throws DataAccessException;", "boolean getImmediateOutputAllPrefetch();", "public TransactionBuilder enableBatchLoading();", "private void getBatchStatisticsRequest() {\r\n\t\tBasicXmlDocument document = new BasicXmlDocument();\r\n\t\tdocument.parseString(\"<\" + TransactionType.GET_BATCH_STATISTICS.getValue()\r\n\t\t\t\t+ \" xmlns = \\\"\" + XML_NAMESPACE + \"\\\" />\");\r\n\r\n\t\taddAuthentication(document);\r\n\t\taddReportingBatchId(document);\r\n\r\n\t\tcurrentRequest = document;\r\n\t}" ]
[ "0.56399584", "0.5405816", "0.5398287", "0.5390045", "0.53825235", "0.53411776", "0.5280064", "0.5278162", "0.52740365", "0.5257652", "0.52546006", "0.52477485", "0.52314526", "0.5210202", "0.5196783", "0.51778513", "0.516301", "0.5140428", "0.5092383", "0.50604004", "0.50320184", "0.501427", "0.49989125", "0.49839854", "0.49794415", "0.49707532", "0.4926109", "0.49241117", "0.491671", "0.49061674", "0.490541", "0.49036855", "0.48868835", "0.48785356", "0.48697993", "0.4858058", "0.4846492", "0.48356315", "0.48298195", "0.48230138", "0.4811752", "0.48085007", "0.48065785", "0.48044726", "0.48032364", "0.48001093", "0.47941482", "0.47878256", "0.47833622", "0.478283", "0.47813562", "0.47687966", "0.47606617", "0.47574407", "0.4746622", "0.47445762", "0.47416416", "0.47416416", "0.47282732", "0.47258183", "0.4724922", "0.47161782", "0.47161782", "0.47161782", "0.47156367", "0.4711301", "0.47112513", "0.47108722", "0.4704351", "0.47038394", "0.47026482", "0.4694854", "0.46922234", "0.46878535", "0.4687367", "0.4683375", "0.46818492", "0.46805832", "0.46746907", "0.4673489", "0.46682855", "0.46678984", "0.46662197", "0.46656", "0.46584982", "0.46544358", "0.4651335", "0.46488822", "0.46387705", "0.46334338", "0.4630341", "0.46292147", "0.46286535", "0.46267307", "0.46250403", "0.4621765", "0.46183857", "0.46144864", "0.4611792", "0.46084726" ]
0.468102
77
code goes here / Note: In Java the return type of a function and the parameter types being passed are defined, so this return call must match the return type of the function. You are free to modify the return type.
public static String SimpleSymbols(String str) { char curr_char = '0'; char prev_char = '0'; char next_char = '0'; String out_str = "true"; int i = 0; boolean parsing_done = false; boolean pattern_found = false; boolean wrong_pattern_found = false; if( Character.isLetterOrDigit(str.charAt(0))) { wrong_pattern_found = true; } do { if( str.length() < 3 ) { parsing_done = true; } else { int last_index = str.length() - 1; if( i + 2 == last_index ) { parsing_done = true; //pattern_found = false; //System.out.print("Check of last index" + i + last_index ); next_char = str.charAt(i+2); curr_char = str.charAt(i+1); prev_char = str.charAt(i); } else if( i+2 > last_index ) { parsing_done = true; } //pattern_found = false; else { next_char = str.charAt(i+2); curr_char = str.charAt(i+1); prev_char = str.charAt(i); } if(Character.isLetterOrDigit(curr_char)) { if(prev_char == '+' && next_char == '+') { i++; pattern_found = true; } else { wrong_pattern_found = true; parsing_done = true; } } else { i++; } } } while( !parsing_done ); if(wrong_pattern_found ) { out_str = "false"; } else if( pattern_found ) out_str = "true"; else out_str = "false"; return out_str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int mo123247f();", "@Override\n\tpublic void function() {\n\t\t\n\t}", "Function createFunction();", "public void func_70305_f() {}", "public abstract int mo9741f();", "public abstract int mo4375b();", "public int getFunctionType() {\n/* 60 */ return 4;\n/* */ }", "public abstract int mo9745j();", "public abstract int mo41077c();", "public abstract int mo9754s();", "void mo84655a();", "public abstract int mo123248g();", "static int ReturnType(int e, int f) {\n return (e + f); //return statementm\n }", "public abstract int mo8526p();", "@Override\r\n\tpublic void func01() {\n\t\t\r\n\t}", "void mo41083a();", "void fun();", "void fun();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "void mo88521a();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void mo57277b();", "public abstract void mo27385c();", "public abstract Code vreturn();", "public abstract void mo42331g();", "@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}", "@Override\n public void visitFunction(Function function) {\n }", "public abstract int mo9753r();", "public abstract int mo9797a();", "public abstract void mo70713b();", "public abstract int mo9742g();", "void mo38026a();", "@Override\n public void func_104112_b() {\n \n }", "void mo54405a();", "void mo67923b();", "public abstract void mo27386d();", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "void mo37810a();", "void mo119581a();", "Exp\ngetReturnValue();", "void mo28306a();", "void mo88523b();", "int method_113();", "void mo9693a();", "void mo98969a();", "public abstract int mo123246e();", "public abstract Object mo26777y();", "void mo22249a();", "void mo67920a();", "public abstract void mo35054b();", "public abstract void mo102899a();", "public abstract void mo30696a();", "public abstract String mo9239aw();", "@Override\n\tpublic void visit(Function arg0) {\n\n\t}", "void mo57278c();", "public abstract void mo56925d();", "void mo41086b();", "public int a(String paramString, float paramFloat1, float paramFloat2, int paramInt)\r\n/* 234: */ {\r\n/* 235:243 */ return a(paramString, paramFloat1, paramFloat2, paramInt, true);\r\n/* 236: */ }", "void mo119582b();", "void mo57275a();", "void mo72113b();", "void mo60892a();", "void mo12143a();", "public abstract int mo9747l();", "int return0() ;", "void mo24178a(ResultData resultdata);", "public abstract Object mo1771a();", "void mo28194a();", "public abstract void mo3994a();", "public abstract void mo27464a();", "public abstract void mo4359a();", "T mo26439a();", "public void callit();", "public abstract void mo42329d();", "public FunctionCall( Method method , Class< ? > returnType ) {\r\n this.method = method;\r\n this.returnType = returnType;\r\n }", "void mo69874a();", "static int type_of_ret(String passed){\n\t\treturn 1;\n\t}", "public abstract String mo9091a();", "void mo67924c();", "int reproduce();", "void mo54435d();", "public abstract void mo6549b();", "void mo7350a();", "public abstract String mo24850a();", "public abstract String mo41079d();", "void mo310e();", "void mo105476a();", "public abstract int mo9732a();", "org.globus.swift.language.Function addNewFunction();", "public abstract void mo42330e();", "void mo56163g();", "void mo21075f();", "int mo98209b();", "public static void func() {\n }", "public abstract int mo9749n();", "@Override\n\tpublic int FunctionCall() {\n\t\tint s=success;\n\t\t\n\t\treturn s;\n\n\t}", "public abstract String mo9238av();", "@Override\r\n\tpublic void runFunc() {\n\r\n\t}" ]
[ "0.64442885", "0.6406205", "0.6389758", "0.634864", "0.6329835", "0.62676424", "0.6248725", "0.6231076", "0.6229526", "0.6215064", "0.61969703", "0.618705", "0.6182522", "0.61772156", "0.61745155", "0.6159677", "0.6153678", "0.6153678", "0.6152247", "0.6152247", "0.61473036", "0.61473036", "0.6130733", "0.6128403", "0.61259925", "0.6114175", "0.6113516", "0.61125755", "0.6107666", "0.61068875", "0.61051255", "0.6103003", "0.61009413", "0.6099479", "0.6093945", "0.6093452", "0.60932446", "0.609291", "0.60867226", "0.6084914", "0.6075761", "0.6067159", "0.6057028", "0.60543704", "0.60509795", "0.60498893", "0.60498184", "0.60485107", "0.6048454", "0.60471517", "0.6038089", "0.6036414", "0.600981", "0.6004802", "0.5999445", "0.5987814", "0.5986515", "0.5978409", "0.59761876", "0.5968999", "0.5962261", "0.5956953", "0.59508365", "0.59488326", "0.59340215", "0.593101", "0.5928154", "0.59234357", "0.59195143", "0.59149826", "0.59076357", "0.59055793", "0.5904169", "0.59040993", "0.5903285", "0.5902779", "0.58967876", "0.58943754", "0.58937716", "0.5891773", "0.5891691", "0.58906853", "0.5883877", "0.58827937", "0.58801496", "0.58768886", "0.5876164", "0.5870761", "0.5869247", "0.58633685", "0.58625036", "0.58600146", "0.58533037", "0.5850928", "0.5847242", "0.5845589", "0.5836345", "0.5835607", "0.58314043", "0.5829886", "0.58287287" ]
0.0
-1
keep this function call here
public static void main (String[] args) { Scanner s = new Scanner(System.in); System.out.print(SimpleSymbols(s.nextLine())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void call() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void additionalProcessing() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private stendhal() {\n\t}", "private void sub() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "public void baocun() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "protected void aktualisieren() {\r\n\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "void berechneFlaeche() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public void redibujarAlgoformers() {\n\t\t\n\t}", "protected void run() {\r\n\t\t//\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void working()\n {\n \n \n }", "private void strin() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void logic(){\r\n\r\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private FlyWithWings(){\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 public void func_104112_b() {\n \n }", "protected void runBeforeIteration() {}", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}", "@Override\n\tprotected void postRun() {\n\n\t}", "@Override\n\tpublic void processing() {\n\n\t}", "protected void execute() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void offer() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void doF1() {\n\t\t\r\n\t}", "public static void SelfCallForLoading() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void apply() {\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF3() {\n\t\t\r\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "@Override\r\n\tprotected void execute() {\r\n\t}", "@Override\r\n\tprotected void doFirst() {\n\t\t\r\n\t}", "OptimizeResponse() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "protected void internalRun() {\n work();\n }", "private void remplirFabricantData() {\n\t}", "@Override\n public void memoria() {\n \n }", "protected void onFirstUse() {}", "private static void iterator() {\n\t\t\r\n\t}", "@Override\n protected void execute() {\n \n }", "protected void execute() {\n\n\t}", "public void excavate();", "protected Doodler() {\n\t}", "@Override\n\tpublic void doIt() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void perder() {\n // TODO implement here\n }", "@Override\n\t\t\tpublic String run() {\n\t\t\t\treturn null;\n\t\t\t}", "public void mo38117a() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void run(){\n }" ]
[ "0.62521756", "0.6246468", "0.6215329", "0.6205403", "0.6183028", "0.6183028", "0.6128687", "0.6109371", "0.60664976", "0.6066176", "0.6056765", "0.60430396", "0.59536266", "0.59435296", "0.5926859", "0.59011054", "0.58996433", "0.5898251", "0.5894443", "0.5878985", "0.58662105", "0.5859948", "0.58417046", "0.58251536", "0.58251536", "0.58190507", "0.58190507", "0.5808542", "0.58060575", "0.5775332", "0.5763064", "0.5763064", "0.5761007", "0.5753809", "0.57356656", "0.5734897", "0.57328534", "0.5718367", "0.5712267", "0.56989574", "0.5692899", "0.5689247", "0.5678008", "0.5672209", "0.5669914", "0.56687385", "0.5668384", "0.5661709", "0.56615347", "0.56611633", "0.5660985", "0.5644489", "0.5625983", "0.5624254", "0.56078196", "0.56059194", "0.56059194", "0.55953455", "0.55916685", "0.55872416", "0.5583536", "0.5579542", "0.55790824", "0.55755484", "0.5571594", "0.55711454", "0.5562952", "0.55604994", "0.5555846", "0.553237", "0.553237", "0.5527091", "0.5513565", "0.5505364", "0.5499644", "0.54971075", "0.54915315", "0.54901403", "0.54815114", "0.5476012", "0.5471153", "0.54684186", "0.54584897", "0.5457953", "0.54545695", "0.5450976", "0.5450463", "0.54432714", "0.54383755", "0.54353863", "0.543131", "0.54227054", "0.54206514", "0.5415693", "0.53955567", "0.53883874", "0.5382478", "0.5381436", "0.53806686", "0.53773737", "0.5376239" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); newUserLabel = new javax.swing.JLabel(); newUser = new RoundJTextField(15); newPassLabel = new javax.swing.JLabel(); repeatPassLabel = new javax.swing.JLabel(); submit = new javax.swing.JButton(); newPass = new RoundJPasswordField(15); repeatPass = new RoundJPasswordField(15); name = new RoundJTextField(15); nameLabel = new javax.swing.JLabel(); signupLabel = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); bg = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel1.setLayout(null); newUserLabel.setBackground(new java.awt.Color(51, 51, 51)); newUserLabel.setFont(new java.awt.Font("Century Gothic", 0, 24)); // NOI18N newUserLabel.setForeground(new java.awt.Color(57, 192, 186)); newUserLabel.setText("New Username:"); jPanel1.add(newUserLabel); newUserLabel.setBounds(420, 290, 200, 30); newUser.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newUserActionPerformed(evt); } }); jPanel1.add(newUser); newUser.setBounds(630, 290, 110, 30); newPassLabel.setFont(new java.awt.Font("Century Gothic", 0, 24)); // NOI18N newPassLabel.setForeground(new java.awt.Color(57, 192, 186)); newPassLabel.setText("New Password:"); jPanel1.add(newPassLabel); newPassLabel.setBounds(430, 380, 180, 20); repeatPassLabel.setFont(new java.awt.Font("Century Gothic", 0, 24)); // NOI18N repeatPassLabel.setForeground(new java.awt.Color(57, 192, 186)); repeatPassLabel.setText("Repeat Password:"); jPanel1.add(repeatPassLabel); repeatPassLabel.setBounds(410, 470, 210, 30); submit.setBackground(new java.awt.Color(45, 48, 55)); submit.setFont(new java.awt.Font("Century Gothic", 1, 12)); // NOI18N submit.setForeground(new java.awt.Color(57, 192, 186)); submit.setText("SUBMIT"); submit.setAutoscrolls(true); submit.setPreferredSize(new java.awt.Dimension(250, 125)); submit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { submitActionPerformed(evt); } }); jPanel1.add(submit); submit.setBounds(630, 560, 110, 40); jPanel1.add(newPass); newPass.setBounds(630, 380, 110, 30); jPanel1.add(repeatPass); repeatPass.setBounds(630, 470, 110, 30); jPanel1.add(name); name.setBounds(630, 210, 110, 30); nameLabel.setFont(new java.awt.Font("Century Gothic", 0, 24)); // NOI18N nameLabel.setForeground(new java.awt.Color(57, 192, 186)); nameLabel.setText("Name:"); jPanel1.add(nameLabel); nameLabel.setBounds(520, 210, 90, 30); signupLabel.setFont(new java.awt.Font("Century Gothic", 0, 52)); // NOI18N signupLabel.setForeground(new java.awt.Color(57, 192, 188)); signupLabel.setText("Sign Up..."); jPanel1.add(signupLabel); signupLabel.setBounds(20, 10, 250, 60); jLabel1.setFont(new java.awt.Font("Century Gothic", 0, 36)); // NOI18N jLabel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setText("Fill in the information:"); jPanel1.add(jLabel1); jLabel1.setBounds(140, 100, 520, 40); bg.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Pic/registerBG.jpg"))); // NOI18N jPanel1.add(bg); bg.setBounds(0, 0, 1366, 735); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 1366, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 768, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7318655", "0.7289971", "0.7289971", "0.7289971", "0.72860885", "0.7247684", "0.7213551", "0.72080934", "0.7195069", "0.7189731", "0.7183451", "0.71579945", "0.7147311", "0.7092687", "0.70798934", "0.7055229", "0.69868284", "0.6976656", "0.6954658", "0.6952896", "0.69449455", "0.6941766", "0.6935132", "0.6930653", "0.6926533", "0.6924141", "0.6924061", "0.691111", "0.69099087", "0.6892076", "0.68916506", "0.68900466", "0.6889725", "0.68877757", "0.68822116", "0.6881593", "0.688101", "0.68768275", "0.687494", "0.68733007", "0.6870892", "0.6859287", "0.6855569", "0.68548936", "0.6854684", "0.6854257", "0.68525183", "0.6851817", "0.6851817", "0.6842853", "0.68366945", "0.68358713", "0.68282205", "0.6827655", "0.68258286", "0.68239987", "0.68230146", "0.6816489", "0.68163615", "0.68090576", "0.6808936", "0.68077636", "0.6806842", "0.6806332", "0.68016505", "0.67948395", "0.67940617", "0.67914915", "0.6789197", "0.6788211", "0.6787595", "0.67870516", "0.678107", "0.6765869", "0.67651415", "0.6764227", "0.675663", "0.67545617", "0.67512757", "0.6750906", "0.6742937", "0.6738739", "0.67365867", "0.67357975", "0.673252", "0.6726489", "0.67264307", "0.67190623", "0.6715255", "0.6713752", "0.67136234", "0.6707712", "0.67064816", "0.6703903", "0.6700871", "0.6698895", "0.6698197", "0.66973954", "0.66938066", "0.66912496", "0.66892624" ]
0.0
-1
Check that password is contains only letters or numbers
private boolean checkPassword(){ Pattern p = Pattern.compile("^[A-z0-9]*$"); Matcher m = p.matcher(newPass.getText()); boolean b = m.matches(); if(newPass.getText().compareTo(repeatPass.getText()) != 0 || newPass.getText().isEmpty() || repeatPass.getText().isEmpty()){ repeatPass.setBackground(Color.red); JOptionPane.showMessageDialog(null, "Password Error"); return false; } else if(newPass.getText().length() > 10 || b == false){ newPass.setBackground(Color.red); JOptionPane.showMessageDialog(null, "Password Error"); return false; } newPass.setBackground(Color.green); repeatPass.setBackground(Color.green); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isPasswordValid(String password) {\n\n String x = \"word1234$\";\n\n\t\t//check if password is direct match\n if (!password.equals(x)){\n return false;\n }\n\n\n //check length of password\n if (password.length() < 8) {\n return false;\n }\n\n\t//check for at least 1 special character\n for (int i=0; i < password.length(); i++){\n int ascii = (int) password.charAt(i);\n if (!(ascii >= 65 && ascii <= 90) && !(ascii >= 97 && ascii <= 122)){\n return true;\n }\n }\n\n \t\t//check for at least 1 number character\n for (int i=0; i < password.length(); i++){\n int ascii = (int) password.charAt(i);\n if (ascii >= 48 && ascii <= 57){\n return true;\n }\n }\n\n\t//check for at least 1 upper case and 1 lower case character\n boolean upper = false;\n boolean lower = false;\n for (int i=0; i < password.length(); i++){\n int ascii = (int) password.charAt(i);\n if (ascii >= 65 && ascii <= 90){\n upper = true;\n }\n if (ascii >= 97 && ascii <= 122){\n lower = true;\n }\n if (upper == true && lower == true){\n return true;\n }\n }\n return false;\n\n }", "protected void validatePassword(){\n //Only Checking For Word Type Password With Minimum Of 8 Digits, At Least One Capital Letter,At Least One Number,At Least One Special Character\n Boolean password = Pattern.matches(\"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9](?=.*[!@#$%^&*()])).{8,}$\",getPassword());\n System.out.println(passwordResult(password));\n }", "public static boolean validatePassword(String password){\n return password.length() >= MIN_CHARACTERS;\n }", "public static boolean passwordCharOrDig ( String password){\n for (int i = 0; i < password.length(); i++){\n if (!Character.isLetterOrDigit(password.charAt(i))){\n return false;\n }\n\n }\n return true;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 0;\r\n }", "public boolean checkSpecialChars(String password) {\n return password.matches(\".*[()#$?!%/@].*\");\n //why does this not work? return password.matches(\"[()#$?!%/@]+\");\n }", "private boolean isPasswordValid(String password) {\n return true;\n }", "private boolean isPasswordValid(String password) {\n return true;\n }", "private boolean isPasswordValid(String password) {\n return password.length() >= 1;\n }", "private boolean isPasswordValid(String password){\n return password.length() > 2; //mot de passe de longueur sup à 2\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4 && password.equals(\"123456\");\n }", "private boolean passwordIsValid(String password) {\n Pattern passwordRegex = Pattern.compile(\n \"^*\" + // start of string\n \"[^\\\\s]\" + // contains no whitespace\n \"{5,29}\" + // between 6 and 30 characters long\n \"$\"); // end of string\n return passwordRegex.matcher(password).matches();\n }", "public static boolean isValidPassword(String input) throws LengthException, NoUpperAlphaException, NoLowerAlphaException, NoDigitException, NoSpecialCharacterException, InvalidSequenceException\r\n {\r\n return (isValidLength(input) &&\r\n hasLowerAlpha(input) &&\r\n hasUpperAlpha(input) &&\r\n hasDigit(input) &&\r\n hasSpecialChar(input) &&\r\n hasSameCharInSequence(input));\r\n }", "public static boolean isPasswordValid(String password) {\n if (password.length() > 50) { \n return false;\n } else { \n char c;\n int count = 1; \n for (int i = 0; i < password.length(); i++) {\n c = password.charAt(i);\n // If the character is a space\n if (c == ' '){ \n return false;\n }\n else if (Character.isDigit(c)) {\n count++;\n if (count > 6) { \n return false;\n } \n }\n }\n }\n return true;\n }", "@Override\n public InvalidPassword isPasswordValid(String password) {\n if (password == null || !isValidLength(password, MIN_CHAR_COUNT_PASSWORD, MAX_CHAR_COUNT_PASSWORD)) {\n return InvalidPassword.INVALID_LENGTH;\n }\n // must contain at least 1 digit\n if (numOfDigits(password) < MIN_DIGITS_COUNT_PASSWORD) {\n return InvalidPassword.MISS_DIGIT;\n }\n // must not contain special character\n if (Pattern.compile(\"[^a-z0-9 ]\", Pattern.CASE_INSENSITIVE).matcher(password).find()) {\n return InvalidPassword.HAS_SPECIAL;\n }\n // must start with an alphabetic character\n char s = password.charAt(0);\n if (!Character.isLetter(s)) {\n return InvalidPassword.NOT_START_WITH_ALPHA;\n }\n return null;\n }", "public boolean validatePass(String pass){\n Pattern pattern;\n Matcher matcher;\n //pattern = Pattern.compile(\"([a-zA-Z]+[0-9]+)|([0-9]+[a-zA-Z]+)\");\n //pattern = Pattern.compile(\"(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,10})$\");\n pattern = Pattern.compile(\"(?!^[0-9]*$)(?!^[a-zA-Z]*$)(?!^[a]*$)^([a-zA-Z0-9]{8,45})$\");\n matcher = pattern.matcher(pass);\n return matcher.matches();\n }", "private boolean isPasswordValid(String password) {\n return (password.length() >= 4 && password.length() < 20);\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 2;\n }", "private boolean isPasswordValid(String password) {\n return (password.length() >= 6) && (password.length() <= 30);\n }", "private boolean requiresLettersOrSymbols() {\n return mPasswordMinLetters + mPasswordMinUpperCase\n + mPasswordMinLowerCase + mPasswordMinSymbols + mPasswordMinNonLetter > 0;\n }", "private boolean isPasswordValid(String password) {\n return password.length() >= 4;\n }", "private boolean isPasswordValid(String password) {\n //TODO: Replace this with your own logic\n return password.length() > 7;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 6;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 6;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\r\n //TODO: Replace this with your own logic\r\n return password.length() > 4;\r\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 //TODO: Replace this with your own logic\n return password.length() > 0;\n }", "public static boolean checkPassword (String password) throws UserRegistrationException{\n check = Pattern.compile(\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%^&*()_+=-]?){8,}.*$\").matcher(password).matches();\n if (check) {\n return true;\n } else {\n throw new UserRegistrationException(\"Enter a valid password\");\n }\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private static boolean checkPassword(String password) {\n if (password.length() <= 6) {\n return false; // Password too short.\n } else for (int i = 0; i < password.length(); i++) {\n if (Character.isWhitespace(password.charAt(i))) {\n return false; // Password has whitespace.\n }\n }\n return true;\n }", "private boolean isPasswordValid(String password) {\n return (password.length() > 4);\n }", "private boolean isPasswordValid(String password)\n {\n return password.length() > MagazzinoService.getPasswordMinLength(this);\n }", "public static boolean hasLowerAlpha(String password) throws NoLowerAlphaException\r\n {\r\n Pattern pattern = Pattern.compile(\".*[a-z].*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (!matcher.matches())\r\n throw new NoLowerAlphaException();\r\n return true;\r\n }", "public boolean checkLowerCase(String password) {\n return password.matches(\".*[a-z].*\");\n }", "public boolean checkDigits(String password) {\n return password.matches(\".*\\\\d.*\");\n }", "@Override\r\n\tpublic boolean validatePassword(String arg0, String arg1) {\n\t\treturn false;\r\n\t}", "public static boolean validate(String password) {\n if (password == null || password.isEmpty()) {\n return false;\n }\n Matcher numericalMatcher = numericalPattern.matcher(password);\n Matcher alphabeticalMatcher = alphabeticalPattern.matcher(password);\n Matcher specialCharsMatcher = specialsCharsPattern.matcher(password);\n\n return password.length() >= MIN_PASSWORD_LENGTH &&\n password.length() <= MAX_PASSWORD_LENGTH &&\n specialCharsMatcher.find() &&\n alphabeticalMatcher.find() &&\n numericalMatcher.find();\n }", "private boolean isPasswordValid(String password) {\n return password != null && password.trim().length() > 2;\n }", "public static boolean isPasswordValid(String password){\n return password.length() >= 6;\n }", "public boolean isPasswordValid(String password) {\n boolean errorFlag = true;\n Pattern specailCharPattern = Pattern.compile(\"[^a-z0-9 ]\", Pattern.CASE_INSENSITIVE);\n Pattern upperCasePattern = Pattern.compile(\"[A-Z ]\");\n Pattern lowerCasePattern = Pattern.compile(\"[a-z ]\");\n Pattern digitCasePattern = Pattern.compile(\"[0-9 ]\");\n if(password.length() < 8){\n errorFlag =false;\n } else if(!specailCharPattern.matcher(password).find()){\n errorFlag = false;\n } else if(!upperCasePattern.matcher(password).find()){\n errorFlag = false;\n } else if(!lowerCasePattern.matcher(password).find()){\n errorFlag = false;\n } else if(!digitCasePattern.matcher(password).find()){\n errorFlag = false;\n }\n return errorFlag;\n }", "@Test\r\n\tpublic void testIsValidPasswordNoLowerAlpha()\r\n\t{\r\n\t\ttry{\r\n\t\t\tassertTrue(PasswordCheckerUtility.isValidPassword(\"RAINBOW\"));\r\n\t\t}\r\n\t\tcatch(NoLowerAlphaException e)\r\n\t\t{\r\n\t\t\tassertTrue(\"Successfully threw a NoLowerAlphaExcepetion\",true);\r\n\t\t}\r\n\t}", "public static boolean hasUpperAlpha (String password) throws NoUpperAlphaException\r\n {\r\n Pattern pattern = Pattern.compile(\".*[A-Z].*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (!matcher.matches())\r\n throw new NoUpperAlphaException();\r\n return true;\r\n }", "public static boolean hasSpecialChar(String password) throws NoSpecialCharacterException\r\n {\r\n Pattern pattern = Pattern.compile(\"[a-zA-Z0-9]*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (matcher.matches())\r\n throw new NoSpecialCharacterException();\r\n return true;\r\n }", "private static boolean isValid(String passWord) {\n\t\tString password = passWord;\n\t\tboolean noWhite = noWhiteSpace(password);\n\t\tboolean isOver = isOverEight(password);\n\t\tif (noWhite && isOver) {\n\t\t\tSystem.out.println(\"Password accepted!\");\n\t\t\treturn true;\n\t\t} else return false;\n\t}", "@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 }", "private boolean isPasswordValid(String password) {\n return password != null && password.trim().length() > 5;\n }", "private static boolean isPasswordStrong(String password) {\n String passwordRegex = \"^(?=.*[0-9])(?=.*[A-Z])(?=.*[#@$%&*!^]).{8,}$\";\n Pattern pat = Pattern.compile(passwordRegex);\n if (password == null)\n return false;\n\n return pat.matcher(password).matches();\n }", "private boolean isPasswordValid(String password) {\r\n return password != null && password.trim().length() > 5;\r\n }", "@Test\n void returnsTrueIfOnlyLetters() {\n Assertions.assertTrue(new UserValidator().isValidUsername(null));\n }", "@Test\n\tpublic void inputVoucher_is_alphanumeric(){\n\t\tString pattern = \"^[a-zA-Z0-9]*$\";\n\t\tvoucher.getInputVoucher().sendKeys(\"aaa aaaa 123\");\n\t\tSystem.out.println(voucher.getInputVoucher().getText().matches(pattern));\n\t\tAssert.assertEquals(voucher.getInputVoucher().getText().matches(pattern), true, \"input voucher code tidak alphanumeric\");\n\t}", "private static boolean checkLength(String password) {\n \treturn password.length() >= minLength;\n }", "public static boolean isPasswordValid(final String password) {\n Pattern pattern = Pattern.compile(\"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\\\d)(?=.*[$@$!%*?&])[A-Za-z\\\\d$@$!%*?&]{8,}\");\n Matcher matcher = pattern.matcher(password);\n return matcher.matches();\n }", "@Override\n protected boolean isValidValue(String value) {\n // Password must be at least 8 characters long and contain at least\n // one number\n //\n if (value != null\n && (value.length() < 8 || !value.matches(\".*\\\\d.*\"))) {\n return false;\n }\n return true;\n }", "@Test\r\n\tpublic void testIsValidPasswordNoUpperAlpha()\r\n\t{\r\n\t\ttry{\r\n\t\t\tassertTrue(PasswordCheckerUtility.isValidPassword(\"rainbow\"));\r\n\t\t}\r\n\t\tcatch(NoUpperAlphaException e)\r\n\t\t{\r\n\t\t\tassertTrue(\"Successfully threw a NoUpperAlphaExcepetion\",true);\r\n\t\t}\r\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}", "public static boolean passwordDigitCheck (String password){\n int numberOfDigits = 0;\n for (int i = 0; i < password.length(); i++){\n if (Character.isDigit(password.charAt(i))){\n numberOfDigits++;\n }\n if (numberOfDigits >=3){\n return true;\n }\n }\n return false;\n }", "@Test\r\n\tpublic void testIsValidPasswordNoDigit()\r\n\t{\r\n\t\ttry{\r\n\t\t\tassertTrue(PasswordCheckerUtility.isValidPassword(\"GreenLeaves\"));\r\n\t\t}\r\n\t\tcatch(NoDigitException e)\r\n\t\t{\r\n\t\t\tassertTrue(\"Successfully threw a NoDigitExcepetion\",true);\r\n\t\t}\r\n\t}", "private boolean isValidPassword(final String thePassword) {\n return thePassword.length() > PASSWORD_LENGTH;\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 }", "public boolean isPwLength5to12Characters(String password) {\n\t\t//return password.matches(\"^(?=[\\\\s\\\\S]{5,12}$)[a-zA-Z0-9]*[^$%^&*;:,<>?()\\\\\\\"']*$\");\n\t\treturn password.length() >= 5 && password.length() <= 12;\n\t}", "public String CheckPassword(String Password)\n\t{\n\t\tif(Pattern.matches(\"(?=.*[$#@!%^&*])(?=.*[0-9])(?=.*[A-Z]).{8,20}$\",Password))\n\t\treturn \"HAPPY\";\n\t\telse \n\t\treturn \"SAD\";\n\t}", "public static boolean is_valid_password(String s)\n\t{\n\t\t\n\t\tint chars=0;\n\t\tint syms=0;\n\t\tint nums=0;\n\t\tfor(int i=0; i<s.length(); i++)\n\t\t{\n\t\t\t\n\t\t\tint value = (int)(s.charAt(i));//ASCII value of the character\n\t\t\tif(value==52||value==49||value==97||value==105)\n\t\t\t{\n\t\t\t\treturn false;//password cannot contain 4, 1, a, or i\n\t\t\t\t\n\t\t\t}\n\t\t\tif(value<=122&&value>=97)\n\t\t\t{\n\t\t\t\tchars++;\n\t\t\t}\n\t\t\telse if(value<=57&&value>=48)\n\t\t\t\t{\n\t\t\t\tnums++;\n\t\t\t\t}\n\t\t\telse if(value==33||value==64||value==35||value==36||value==37||value==38||value==42)\n\t\t\t{\n\t\t\t\tsyms++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(!((chars>=1&&chars<=3)&&(nums>=1&&nums<=2)&&(syms>=1&&syms<=2)))\n\t\t\t{\n\t\t\t\t\n\t\t\treturn false; //must contain 1 to 3 characters, 1 to 2 symbols, and 1 to 2 numbers\n\t\t}\n\t\t\n\t\t/*dictionary check section*/\n\t\t\n\t\tif(d.contains(s.substring(0,1)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(1,2)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(2,3)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(3,4)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(4)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(0,2)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(1,3)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(2,4)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(3)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(0,3)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(1,4)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(2)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(0,4)))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif(d.contains(s.substring(1)))\n\t\t{\n\t\t\treturn false;\n\t\t}\t\n\t\t\n\t\t\n\t\treturn true;//it must be true I guess idk\n\t}", "private boolean isPhoneValid(String password) {\n return password.length() == 10;\r\n }", "public static boolean paswordLengt(String password){\n\n return password.length() >= 10;\n }", "public static String checkUsername(String in) {\n\t\tif (in.isEmpty())\r\n\t\t\treturn \"Username is empty\";\r\n\t\telse {\r\n\t\t\tPattern passPat = Pattern.compile(\"\\\\w*\");\r\n\t\t\tMatcher matchpass = passPat.matcher(in);\r\n\t\t\tif (!matchpass.matches()) {\r\n\t\t\t\treturn \"The username must only contain character and numeric\";\r\n\t\t\t} else\r\n\t\t\t\treturn null;\r\n\t\t}\r\n\t}", "public boolean passwordCheck(String password) {\n\t\treturn true;\n\t\t\n\t}", "public boolean isValid(String pw) {\n return checkLength(pw)\n && checkLowerCase(pw)\n && checkUpperCase(pw)\n && checkDigits(pw)\n && checkSpecialChars(pw)\n && noOtherSpecialChars(pw)\n && checkNumberContinuation(pw)\n && check3sameNumbersMax(pw);\n }", "private boolean isValidPassword(String pass) {\n if (pass != null && pass.length() >= 6) {\n return true;\n }\n return false;\n }", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "public static boolean letter_digit_check(String pass){\n\t\tint sum=0;\n\t\tint count=0;\n\t\tfor (int i=0; i<pass.length(); i++){\n\t\t\tif (Character.isDigit(pass.charAt(i))){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t\telse if(Character.isLetter(pass.charAt(i))){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (sum>=2 && count>=2)\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "@Test\r\n\tpublic void testIsValidPasswordSuccessful()\r\n\t{\r\n\t\tassertTrue(PasswordCheckerUtility.isValidPassword(\"#SuperMan1\"));\r\n\t}", "public static boolean isValidPassword(final String password) {\n Pattern pattern;\n Matcher matcher;\n final String PASSWORD_PATTERN = \"((?=.*\\\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%]).{6,20})\";\n pattern = Pattern.compile(PASSWORD_PATTERN);\n\n matcher = pattern.matcher(password);\n return matcher.matches();\n }" ]
[ "0.76781505", "0.76638746", "0.76460356", "0.7645196", "0.7593739", "0.7452142", "0.74453515", "0.74453515", "0.7440289", "0.73716193", "0.73692346", "0.73692346", "0.73692346", "0.73658556", "0.735651", "0.73468626", "0.73262465", "0.7322949", "0.7305685", "0.7297808", "0.72786534", "0.7270685", "0.72557867", "0.72454876", "0.7235761", "0.72210103", "0.72210103", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7217778", "0.7214137", "0.72093624", "0.7194812", "0.71886533", "0.7161461", "0.7133087", "0.709257", "0.7078311", "0.7052533", "0.7042567", "0.7041192", "0.7032947", "0.7029091", "0.7028182", "0.7022728", "0.70136046", "0.7013209", "0.70101297", "0.697811", "0.69724846", "0.6944936", "0.69304734", "0.6904432", "0.68988794", "0.6886179", "0.6810726", "0.6796221", "0.6793504", "0.6792041", "0.6789195", "0.67716324", "0.67711824", "0.676262", "0.6762416", "0.6761583", "0.67562675", "0.6747523", "0.67342186", "0.673367", "0.6733658", "0.67335325", "0.6731274", "0.6728546", "0.6726414", "0.6720289", "0.6720289", "0.6720289", "0.6720289", "0.6720289", "0.6720289", "0.6720289", "0.6720289", "0.6709044", "0.6689131", "0.668371" ]
0.7063989
53
/ Set the Nimbus look and feel / If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. For details see
public static void main(String args[]) { try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { try { new Register().setVisible(true); } catch (SQLException ex) { Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setLookAndFeel() {\n try {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n\n // TODO: Configure theming colors. UIManager.put(property, new Color(...));\n // {@see http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/_nimbusDefaults.html}\n\n\t\t\tfinal NimbusLookAndFeel laf = new NimbusLookAndFeel();\n UIManager.setLookAndFeel(laf);\n UIDefaults defaults = laf.getDefaults();\n defaults.put(\"List[Selected].textForeground\",\n laf.getDerivedColor(\"nimbusLightBackground\", 0.0f, 0.0f, 0.0f, 0, false));\n defaults.put(\"List[Selected].textBackground\",\n laf.getDerivedColor(\"nimbusSelectionBackground\", 0.0f, 0.0f, 0.0f, 0, false));\n defaults.put(\"List[Disabled+Selected].textBackground\",\n laf.getDerivedColor(\"nimbusSelectionBackground\", 0.0f, 0.0f, 0.0f, 0, false));\n defaults.put(\"List[Disabled].textForeground\",\n laf.getDerivedColor(\"nimbusDisabledText\", 0.0f, 0.0f, 0.0f, 0, false));\n defaults.put(\"List:\\\"List.cellRenderer\\\"[Disabled].background\",\n laf.getDerivedColor(\"nimbusSelectionBackground\", 0.0f, 0.0f, 0.0f, 0, false));\n\n } catch (Exception e) {}\n }", "@SuppressWarnings(\"unused\")\n private static void activateNimbus() //just for testing reasons\n {\n try {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (Exception e) {\n log.warn(\"error in nimbus activation?\", e);\n }\n }", "static void customizeNimbus()\r\n\t\tthrows Exception\r\n\t{\n\t\tUIManager.put(\"control\", BACKGROUND);\r\n\r\n\t\t// TODO: imilne 04/SEP/2009 - No longer working since JRE 1.6.0_u13\r\n\t\tif (SystemUtils.isWindows())\r\n\t\t{\r\n\t\t\tUIManager.put(\"defaultFont\", FONT);\r\n\t\t\tUIManager.put(\"Label[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"Table[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"TableHeader[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"TabbedPane[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"ComboBox[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"Button[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"ToggleButton[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"TextField[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"CheckBox[Enabled].font\", FONT);\r\n\t\t}\r\n\r\n\t\tfor (UIManager.LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels())\r\n\t\t\tif (laf.getName().equals(\"Nimbus\"))\r\n\t\t\t\tUIManager.setLookAndFeel(laf.getClassName());\r\n\r\n\r\n\t\tUIManager.put(\"SplitPane[Enabled].size\", 8);\r\n\r\n\t\tUIManager.put(\"nimbusOrange\", new Color(51, 98, 140));\r\n//\t\tUIManager.put(\"nimbusOrange\", new Color(57, 105, 138));\r\n//\t\tUIManager.put(\"nimbusOrange\", new Color(115, 164, 209));\r\n\r\n\r\n\t\t// Reset non-Aqua look and feels to use CMD+C/X/V rather than CTRL for copy/paste stuff\r\n\t\tif (SystemUtils.isMacOS())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Setting OS X keyboard shortcuts\");\r\n\r\n\t\t\tInputMap textField = (InputMap) UIManager.get(\"TextField.focusInputMap\");\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.META_DOWN_MASK), DefaultEditorKit.copyAction);\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.META_DOWN_MASK), DefaultEditorKit.pasteAction);\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.META_DOWN_MASK), DefaultEditorKit.cutAction);\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.META_DOWN_MASK), DefaultEditorKit.selectAllAction);\r\n\r\n\t\t\tInputMap textArea = (InputMap) UIManager.get(\"TextArea.focusInputMap\");\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.META_DOWN_MASK), DefaultEditorKit.copyAction);\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.META_DOWN_MASK), DefaultEditorKit.pasteAction);\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.META_DOWN_MASK), DefaultEditorKit.cutAction);\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.META_DOWN_MASK), DefaultEditorKit.selectAllAction);\r\n\t\t}\r\n\t}", "public final static void setDesign() {\n\t\t\ttry{\n\t\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.out.println(\"Prob with setDesign()\");\n\t\t\t}\n\t\t\t\n\t\t}", "public static void LookAndFeel() {\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); // uniformed\n\t\t} catch (Exception exc) {\n\t\t}\n\t}", "public examreports() {\n dblogincred();\n initComponents();\n try {\n for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n} catch (Exception e) {\n // If Nimbus is not available, you can set the GUI to another look and feel.\n}\n }", "private static void setLook() {\r\n try {\r\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n } catch (IllegalAccessException ex) {\r\n ex.printStackTrace();\r\n } catch (UnsupportedLookAndFeelException ex) {\r\n ex.printStackTrace();\r\n } catch (ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n } catch (InstantiationException ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "private boolean isNimbus()\n/* */ {\n/* 152 */ return UIManager.getLookAndFeel().getName().contains(\"Nimbus\");\n/* */ }", "private void LookAndFeel() {\n try {\n // Set System L&F\n BasicLookAndFeel darcula = new DarculaLaf();\n UIManager.setLookAndFeel(darcula);\n } catch (UnsupportedLookAndFeelException e) {\n // handle exception\n }\n }", "private String getLookAndFeelClassName(String nimbus) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected static void initLnF() {\r\n try {\r\n if (!\"com.sun.java.swing.plaf.motif.MotifLookAndFeel\".equals(UIManager.getSystemLookAndFeelClassName())\r\n && !\"com.sun.java.swing.plaf.gtk.GTKLookAndFeel\".equals(UIManager.getSystemLookAndFeelClassName())\r\n && !UIManager.getSystemLookAndFeelClassName().equals(UIManager.getLookAndFeel().getClass().getName())) {\r\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "private static void setLookAndFeel() { \r\n try {\r\n UIManager.setLookAndFeel(\"javax.swing.plaf.metal.MetalLookAndFeel\"); \r\n } catch (final UnsupportedLookAndFeelException e) {\r\n System.out.println(\"UnsupportedLookAndFeelException\");\r\n } catch (final ClassNotFoundException e) {\r\n System.out.println(\"ClassNotFoundException\");\r\n } catch (final InstantiationException e) {\r\n System.out.println(\"InstantiationException\");\r\n } catch (final IllegalAccessException e) {\r\n System.out.println(\"IllegalAccessException\");\r\n } \r\n }", "private void configuraInterface() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\t\ttry\t{\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tSystem.out.println(\"Falhou o carregamento do L&F: \");\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t}", "public static void windowLookAndFeel(){\r\n\t try{\r\n\t UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t }catch (Exception e) {\r\n\t System.out.println(\"Look and Feel error: \" + e);\r\n\t }\r\n\t}", "private static void setLookAndFeel() {\n\tSystem.setProperty(\"apple.laf.useScreenMenuBar\", \"true\");\n\n\ttry {\n\t UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\n\t //copy progress bar of System LAF\n\t HashMap<Object, Object> progressDefaults = new HashMap<Object, Object>();\n\t for (Map.Entry<Object, Object> entry : UIManager.getDefaults()\n\t\t .entrySet()) {\n\t\tif (entry.getKey().getClass() == String.class\n\t\t\t&& ((String) entry.getKey()).startsWith(\"ProgressBar\")) {\n\t\t progressDefaults.put(entry.getKey(), entry.getValue());\n\t\t}\n\t }\n\n\t prepareLayout();\n\n\t UIManager\n\t\t .setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\n\t // copy back progress bar of metal Look and Feel\n\t for (Map.Entry<Object, Object> entry : progressDefaults.entrySet()) {\n\t\tUIManager.getDefaults().put(entry.getKey(), entry.getValue());\n\t }\n\t} catch (ClassNotFoundException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (InstantiationException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (IllegalAccessException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (UnsupportedLookAndFeelException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t}\n\n }", "private void nativeLookAndFeel() {\n\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | IllegalAccessException e) {\n e.printStackTrace();\n }\n }", "private void setNativeLAndF() {\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (Exception e) {\r\n\t\t\t//do nothing. It will default to normal\r\n\t\t}\r\n\t}", "public void applyLookAndFeel() {\n\r\n\t\tLookAndFeelInfo[] infos = UIManager.getInstalledLookAndFeels();\r\n\r\n\t\tif (look < 0) {\r\n\t\t\tfor (int i = 0; i < infos.length; i++) {\r\n\t\t\t\tif (infos[i].getName().toUpperCase().contains(\"NIMBUS\")) {\r\n\t\t\t\t\tlook = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (look < 0) {\r\n\t\t\tfor (int i = 0; i < infos.length; i++) {\r\n\t\t\t\tif (infos[i].getName().toUpperCase().contains(\"WINDOW\")) {\r\n\t\t\t\t\tlook = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlook = (Math.abs(look) % infos.length);\r\n\r\n\t\tString lookName = infos[look].getName();\r\n\r\n\t\ttry {\r\n \t\tUIManager.setLookAndFeel(infos[look].getClassName());\r\n \t\tsetTitle(JMTKResizer.ABOUT + \" - \" + lookName);\r\n \tSwingUtilities.updateComponentTreeUI(this);\r\n \t\t//pack();\r\n\r\n \t} catch (Exception e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n\t}", "private void menuNimbusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuNimbusActionPerformed\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.motif.MotifLookAndFeel\");\n SwingUtilities.updateComponentTreeUI(this);\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private static void initLookAndFeel()\n {\n try \n {\n UIManager.setLookAndFeel(\"de.javasoft.plaf.synthetica.SyntheticaAluOxideLookAndFeel\");\n }\n \n catch(ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e)\n {\n JOptionPane.showMessageDialog(null, \"Failed to load resource package\");\n }\n }", "private void setupLookAndFeel() {\n SwingUtilities.invokeLater(() -> {\n model.getUserPreferences().getThemeSubject().subscribe((skin) -> {\n try {\n UIManager.setLookAndFeel(new SubstanceLookAndFeel(\n (SubstanceSkin) skin.getTheme().newInstance()\n ) {\n });\n if (frame != null) {\n frame.repaint();\n }\n } catch (UnsupportedLookAndFeelException | InstantiationException | IllegalAccessException e) {\n ExceptionHandler.get().handle(e);\n }\n });\n });\n }", "public static void setLookAndFeel(){\n\t\t\n\t\tUIManager.put(\"nimbusBase\", new Color(0,68,102));\n\t\tUIManager.put(\"nimbusBlueGrey\", new Color(60,145,144));\n\t\tUIManager.put(\"control\", new Color(43,82,102));\n\t\tUIManager.put(\"text\", new Color(255,255,255));\n\t\tUIManager.put(\"Table.alternateRowColor\", new Color(0,68,102));\n\t\tUIManager.put(\"TextField.font\", new Font(\"Font\", Font.BOLD, 12));\n\t\tUIManager.put(\"TextField.textForeground\", new Color(0,0,0));\n\t\tUIManager.put(\"PasswordField.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"TextArea.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"FormattedTextField.foreground\", new Color(0,0,0));\n\t\t\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\".background\", new Color(0,68,102));\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\"[Selected].background\", new Color(0,0,0));\n\t\t\n\t\t//TODO nie chca dzialac tooltipy na mapie\n\t\tBorder border = BorderFactory.createLineBorder(new Color(0,0,0)); //#4c4f53\n\t\tUIManager.put(\"ToolTip.border\", border);\n\n\t\t//UIManager.put(\"ToolTip.foregroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.backgroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.background\", new Color(0,0,0)); //#fff7c8\n\t\t//UIManager.put(\"ToolTip.foreground\", new Color(0,0,0));\n\t\t Painter<Component> p = new Painter<Component>() {\n\t\t public void paint(Graphics2D g, Component c, int width, int height) {\n\t\t g.setColor(new Color(20,36,122));\n\t\t //and so forth\n\t\t }\n\t\t };\n\t\t \n\t\tUIManager.put(\"ToolTip[Enabled].backgroundPainter\", p);\n\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new Color(255, 255, 255)); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new Color(255, 255, 255));\n//\t\t\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\",new ColorUIResource(new Color(255, 255, 255)));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new ColorUIResource((new Color(255, 255, 255))));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new ColorUIResource(new Color(255, 255, 255))); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new ColorUIResource(new Color(255, 255, 255)));\n\t\t\n\t \n\t\ttry {\n\t\t for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n\t\t if (\"Nimbus\".equals(info.getName())) {\n\t\t UIManager.setLookAndFeel(info.getClassName());\n\t\t break;\n\t\t }\n\t\t }\n\t\t} catch (Exception e) {\n\t\t // If Nimbus is not available, you can set the GUI to another look and feel.\n\t\t}\n\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table:\\\"Table.cellRenderer\\\".background\", new ColorUIResource(new Color(74,144,178)));\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table.background\", new ColorUIResource(new Color(74,144,178)));\n\t\t\n\n\t}", "public static String setLookAndFeel(String look) {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); //$NON-NLS-1$\n // Display slider value is set to false (already in all LAF by the panel title), used by GTK LAF\n UIManager.put(\"Slider.paintValue\", Boolean.FALSE); //$NON-NLS-1$\n\n String laf = getAvailableLookAndFeel(look);\n try {\n UIManager.setLookAndFeel(laf);\n } catch (Exception e) {\n laf = UIManager.getSystemLookAndFeelClassName();\n LOGGER.error(\"Unable to set the Look&Feel\", e); //$NON-NLS-1$\n }\n // Fix font issue for displaying some Asiatic characters. Some L&F have special fonts.\n setUIFont(new javax.swing.plaf.FontUIResource(\"SansSerif\", Font.PLAIN, 12)); //$NON-NLS-1$\n return laf;\n }", "public JFind2() {\n try {\n String metal = \"javax.swing.plaf.metal.MetalLookAndFeel\";\n String synth = \"javax.swing.plaf.synth.SynthLookAndFeel\"; // --> since JDK-1.5\n\n String gtk = \"com.sun.java.swing.plaf.gtk.GTKLookAndFeel\"; // -> since JDK-1.4\n\n String motif = \"com.sun.java.swing.plaf.motif.MotifLookAndFeel\";\n String windows = \"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\";\n\n String os = System.getProperty(\"os.name\");\n if (os.startsWith(\"Linux\")) {\n try // Install client system look and feel.\n {\n UIManager.setLookAndFeel(metal);\n } catch (Exception e) {\n }\n } else {\n try // Install client system look and feel.\n {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (Exception e) {\n }\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n preInit();\n initComponents();\n postInit();\n\n }", "public void lookandfeel(){\n \n try{\n UIManager.setLookAndFeel(seta_look);\n SwingUtilities.updateComponentTreeUI(this);\n }\n catch(Exception erro){\n JOptionPane.showMessageDialog(null, erro);\n \n }\n}", "public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException,\n\t\t\tUnsupportedLookAndFeelException {\n\t\tdetermineOS();\n\t\tif (currentOs == MAC_OS) {\n\t\t\tSystem.setProperty(\"com.apple.mrj.application.apple.menu.about.name\", \"UP-Admin\");\n\t\t\tSystem.setProperty(\"apple.laf.useScreenMenuBar\", \"true\");\n\t\t\tSystem.setProperty(\"com.apple.mrj.application.live-resize\", \"true\");\n\n\t\t\ttry {\n\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\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} catch (InstantiationException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (UnsupportedLookAndFeelException 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 if ((currentOs == WIN_OS) || (currentOs == null)) {\n\n\t\t\tUIManager.put(\"nimbusBase\", new Color(0x525252));\n\t\t\tUIManager.put(\"control\", new Color(0x949494));\n\t\t\tUIManager.put(\"nimbusSelectionBackground\", new Color(0x171717));\n\t\t\tUIManager.put(\"Menu.background\", new Color(0x2B2B2B));\n\t\t\tUIManager.put(\"background\", new Color(0x171717));\n\t\t\tUIManager.put(\"DesktopIcon.background\", new Color(0x171717));\n\t\t\tUIManager.put(\"nimbusLightBackground\", new Color(0xE3E3E3));\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t\t\n\t\t}\n\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tFrame frame = new Frame();\n\t\t\t\t\tframe.setVisible(true);\n\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 setupSwing() {\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n \r\n try {\r\n for (LookAndFeelInfo info: UIManager.getInstalledLookAndFeels()) {\r\n if (info.getName().equals(\"Windows\")) {\r\n UIManager.setLookAndFeel(info.getClassName());\r\n }\r\n }\r\n } catch (ClassNotFoundException \r\n | InstantiationException\r\n | IllegalAccessException \r\n | UnsupportedLookAndFeelException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n \r\n window = new ManagerWindow(MetagridManager.this);\r\n window.pack();\r\n window.setVisible(true);\r\n }\r\n });\r\n }", "public static void main(String[] args) {\r\n SageLife sagelife = new SageLife();\r\n\r\n try {\r\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\r\n if (\"Nimbus\".equals(info.getName())) {\r\n UIManager.setLookAndFeel(info.getClassName());\r\n break;\r\n }\r\n }\r\n } catch (Exception e) {\r\n // If Nimbus is not available, you can set the GUI to another look and feel.\r\n }\r\n\r\n sagelife.createLayout();\r\n }", "private LookAndFeelManager() {}", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n \n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n \n \n /* Create and display the form */ \n \n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new home().setVisible(true);\n }\n });\n }", "public Q4() {\n initComponents();\n looks=UIManager.getInstalledLookAndFeels();\n }", "public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n UI tesis = new UI();\n tesis.setVisible(true);\n try {\n tesis.inicializar(); \n } catch (NullPointerException e) {\n System.out.println(\"Ejecución terminada forzosamente\");\n System.exit(1);\n }\n }\n });\n }", "@Override\n public void init() {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the applet */\n try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "@Override\r\n public void init() {\r\n /* Set the Nimbus look and feel */\r\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\r\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\r\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \r\n */\r\n try {\r\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\r\n if (\"Nimbus\".equals(info.getName())) {\r\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\r\n break;\r\n }\r\n }\r\n } catch (ClassNotFoundException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (InstantiationException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (IllegalAccessException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n }\r\n //</editor-fold>\r\n\r\n /* Create and display the applet */\r\n try {\r\n java.awt.EventQueue.invokeAndWait(new Runnable() {\r\n public void run() {\r\n initComponents();\r\n }\r\n });\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "private void configureUI() {\r\n // UIManager.put(\"ToolTip.hideAccelerator\", Boolean.FALSE);\r\n\r\n Options.setDefaultIconSize(new Dimension(18, 18));\r\n\r\n Options.setUseNarrowButtons(settings.isUseNarrowButtons());\r\n\r\n // Global options\r\n Options.setTabIconsEnabled(settings.isTabIconsEnabled());\r\n UIManager.put(Options.POPUP_DROP_SHADOW_ENABLED_KEY,\r\n settings.isPopupDropShadowEnabled());\r\n\r\n // Swing Settings\r\n LookAndFeel selectedLaf = settings.getSelectedLookAndFeel();\r\n if (selectedLaf instanceof PlasticLookAndFeel) {\r\n PlasticLookAndFeel.setPlasticTheme(settings.getSelectedTheme());\r\n PlasticLookAndFeel.setTabStyle(settings.getPlasticTabStyle());\r\n PlasticLookAndFeel.setHighContrastFocusColorsEnabled(\r\n settings.isPlasticHighContrastFocusEnabled());\r\n } else if (selectedLaf.getClass() == MetalLookAndFeel.class) {\r\n MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());\r\n }\r\n\r\n // Work around caching in MetalRadioButtonUI\r\n JRadioButton radio = new JRadioButton();\r\n radio.getUI().uninstallUI(radio);\r\n JCheckBox checkBox = new JCheckBox();\r\n checkBox.getUI().uninstallUI(checkBox);\r\n\r\n try {\r\n UIManager.setLookAndFeel(selectedLaf);\r\n } catch (Exception e) {\r\n System.out.println(\"Can't change L&F: \" + e);\r\n }\r\n\r\n }", "public static void main(String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(siniestro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(siniestro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(siniestro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(siniestro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = new JFrame();\n frame.setContentPane(new siniestro());\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n }\n });\n }", "@Override\n public void init() {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n getContentPane().setBackground(Color.BLUE);\n this.setSize(450, 350);\n\n /* Create and display the applet */\n /*try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n */\n run();\n }", "public static void start() {\n\t\ttry {\n\t\t\tfor (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n\t\t\t\tif (\"Nimbus\".equals(info.getName())) {\n\t\t\t\t\tjavax.swing.UIManager.setLookAndFeel(info.getClassName());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassNotFoundException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t} catch (InstantiationException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t} catch (IllegalAccessException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t} catch (javax.swing.UnsupportedLookAndFeelException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t}\n //</editor-fold>\n\n\t\t/* Create and display the form */\n\t\tjava.awt.EventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew GUInterface().setVisible(true);\n\t\t\t}\n\t\t});\n\t}", "public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new HFGUI().setVisible(true);\n }\n });\n }", "public void setTheme(String name) {\n\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (name.equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UserInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UserInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UserInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UserInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n }", "public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(InicioSesion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(InicioSesion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(InicioSesion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(InicioSesion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new InicioSesion().setVisible(true);\n }\n });\n }", "public static void main(String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(JFrame_Accueil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(JFrame_Accueil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(JFrame_Accueil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(JFrame_Accueil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n \n /* Create and display the form */\n java.awt.EventQueue.invokeLater(() -> {\n try {\n new JFrame_Accueil(0).setVisible(true);\n } catch (Exception ex) {\n Logger.getLogger(JFrame_Accueil.class.getName()).log(Level.SEVERE, null, ex);\n }\n });\n }", "public static void main(String[] args) {\r\n /* Set the Nimbus look and feel */\r\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\r\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\r\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html\r\n */\r\n try {\r\n javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());\r\n } catch (ClassNotFoundException ex) {\r\n java.util.logging.Logger.getLogger(FrameCuentasContablesAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (InstantiationException ex) {\r\n java.util.logging.Logger.getLogger(FrameCuentasContablesAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (IllegalAccessException ex) {\r\n java.util.logging.Logger.getLogger(FrameCuentasContablesAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\r\n java.util.logging.Logger.getLogger(FrameCuentasContablesAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n }\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n\r\n /* Create and display the form */\r\n EventQueue.invokeLater(new Runnable() {\r\n public void run() {\r\n JFrame frame = new JFrame();\r\n frame.setContentPane(new FrameCuentasContablesAdmin());\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.pack();\r\n frame.setVisible(true);\r\n }\r\n });\r\n }", "private void changeUIdefaults() {\n\t\tUIManager.put(\"TaskPaneContainer.useGradient\", Boolean.FALSE);\n\t\tUIManager.put(\"TaskPaneContainer.background\",\n\t\t\t\tColors.LightGray.color(0.5f));\n\n\t\t// setting taskpane defaults\n\t\tUIManager.put(\"TaskPane.font\", new FontUIResource(new Font(\"Verdana\",\n\t\t\t\tFont.BOLD, 16)));\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientStart\",\n\t\t\t\tColors.White.color());\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientEnd\",\n\t\t\t\tColors.LightBlue.color());\n\t}", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n \n\n}\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new NewJFrame1().setVisible(true);\n }\n });\n }", "@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tLookAndFeelInfo look[] = UIManager.getInstalledLookAndFeels();\r\n\t\t\tfor (LookAndFeelInfo lookAndFeelInfo : look) {\r\n\r\n\t\t\t\tSystem.out.println(lookAndFeelInfo.getClassName());\r\n\t\t\t}\r\n\t\t\tUIManager.setLookAndFeel(this.config.getLookAndFeel());\r\n\t\t} catch (ClassNotFoundException | InstantiationException\r\n\t\t\t\t| IllegalAccessException | UnsupportedLookAndFeelException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tsetVisible(true);\r\n\t}", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {\n Logger.getLogger(InterpreterGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(() -> {\n new InterpreterGui().setVisible(true);\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Calculator().setVisible(true);\n }\n } \n );\n}", "public void setLAF(String lookAndFeelStr) {\n String exceptionNotice = \"\";\n try {\n // Set the font for Metal LAF to non-bold, in case Metal is used\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n if (lookAndFeelStr == null || lookAndFeelStr.equalsIgnoreCase(\"Metal\")) {\n UIManager.setLookAndFeel(new MetalLookAndFeel());\n } else\n if (lookAndFeelStr.equalsIgnoreCase(\"Nimbus\")) {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (info.getName().equals(\"Nimbus\")) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } else {\n UIManager.setLookAndFeel(lookAndFeelStr);\n }\n } catch (UnsupportedLookAndFeelException e) {\n exceptionNotice = \"UnsupportedLookAndFeelException\";\n } catch (ClassNotFoundException e) {\n exceptionNotice = \"ClassNotFoundException\";\n } catch (InstantiationException e) {\n exceptionNotice = \"InstantiationException\";\n } catch (IllegalAccessException e) {\n exceptionNotice = \"IllegalAccessException\";\n } finally {\n if (! exceptionNotice.isEmpty()) {\n try {\n // The desired LAF was not created, so try to use the Metal LAF as a default.\n UIManager.setLookAndFeel(new MetalLookAndFeel());\n } catch (UnsupportedLookAndFeelException e) {\n logger.error(\"Could not initialize the Swing Look and Feel settings, MCT is closing.\");\n System.exit(1);\n }\n }\n }\n // Look and Feel has been successfully created, now set colors\n initializeColors(UIManager.getLookAndFeel());\n Properties props = new Properties();\n String filename = System.getProperty(viewColor,\"resources/properties/viewColor.properties\");\n FileReader reader = null;\n try {\n \treader = new FileReader(filename);\n \tprops.load(reader);\n BASE_PROPERTIES = new ColorScheme(props);\n BASE_PROPERTIES.applyColorScheme(); // Apply top-level color bindings\n } catch (Exception e) {\n logger.warn(\"Using default color and font properties because could not open viewColor properties file :\"+filename);\n BASE_PROPERTIES = new ColorScheme();\n } finally {\n \ttry {\n if (reader != null) reader.close();\n } catch(IOException ioe1){ }\n }\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Form().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(LibroDiario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(LibroDiario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(LibroDiario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(LibroDiario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new LibroDiario().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(KamarFrom.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(KamarFrom.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(KamarFrom.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(KamarFrom.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new KamarFrom().setVisible(true);\n }\n });\n }", "protected void installDefaults() {\n this.controlPanel.setBackground(null);\n\n Font font = this.controlPanel.getFont();\n if (font == null || font instanceof UIResource) {\n Font toSet = RadianceThemingCortex.GlobalScope.getFontPolicy().getFontSet().\n getControlFont();\n this.controlPanel.setFont(toSet);\n }\n }", "static public LookAndFeelManager createDefaultLookAndFeelManager()\n {\n LookAndFeelManager manager = new LookAndFeelManager();\n\n /* =-=AEW DO NOT register the external look-and-feels; these\n class names are UIX 2.2 look-and-feels, which won't (and can't)\n work in UIX 3, given the different class names. Only uncomment\n if and when such classes are ported to UIX 3.\n // support requests from iasWireless if laf can be found\n _registerExternalLookAndFeel(manager, iaswLaf, _IASW_SCORER);\n\n // register OA's Text LAF if laf can be found\n _registerExternalLookAndFeel(manager, _OA_TEXT_LAF, _OA_TEXT_SCORER);\n */\n\n // Base lafs\n BaseDesktopUtils.registerLookAndFeel(manager);\n\n SimpleDesktopUtils.registerLookAndFeel(manager);\n SimplePdaUtils.registerLookAndFeel(manager);\n\n return manager;\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Puntos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Puntos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Puntos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Puntos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Puntos().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(HW3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(HW3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(HW3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(HW3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new HW3().setVisible(true);\n }\n });\n }", "public Vista_Login() {\n \t\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Vista_Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Vista_Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Vista_Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Vista_Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(FrmLoguin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(FrmLoguin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(FrmLoguin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(FrmLoguin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new FrmLoguin().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Musica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Musica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Musica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Musica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Musica().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Register().setVisible(true);\n }\n });\n }", "public static void main(String[] args) throws Exception{\n\t\tUIManager.setLookAndFeel(new NimbusLookAndFeel());\n\t\t\n\t\t\n\t\tMyWindow myWindow = new MyWindow();\n\t\tmyWindow.setVisible(true);\n\n\t}", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Setup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Setup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Setup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Setup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Setup().setVisible(true);\n }\n });\n }", "public static void main(String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(CadContasReceitasDespesasView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(CadContasReceitasDespesasView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(CadContasReceitasDespesasView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(CadContasReceitasDespesasView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = new JFrame();\n frame.setContentPane(new CadContasReceitasDespesasView());\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n frame.setTitle(args[0]);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(sinavlar2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(sinavlar2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(sinavlar2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(sinavlar2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /*\n * Create and display the form\n */\n java.awt.EventQueue.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n new sinavlar2().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Registracija.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Registracija.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Registracija.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Registracija.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Registracija().setVisible(true);\n }\n });\n }", "private void applyInitialLook() {\r\n\t\tthis.control.setFont(this.initialFont);\r\n\t\tthis.control.setBackground(this.initialBackgroundColor);\r\n\t\tthis.control.setForeground(this.initialForegroundColor);\r\n\t}", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new main().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UsuarioView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UsuarioView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UsuarioView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UsuarioView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() {\n JFrame frame = new JFrame(\"Inscrição\");\n frame.add(new InscricaoView());\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false);\n frame.pack();\n frame.setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(cusRegister.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(cusRegister.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(cusRegister.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(cusRegister.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n new cusRegister().setVisible(true);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(cusRegister.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(RamkaGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(RamkaGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(RamkaGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(RamkaGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new RamkaGui().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(adminhome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(adminhome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(adminhome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(adminhome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new adminhome().setVisible(true);\n }\n });\n }", "public static void main(String[] args) \n\t{\n\t\tCommonMethods.openConnection();\n\t\ttry {\n \t for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n \t if (\"Nimbus\".equals(info.getName())) {\n \t UIManager.setLookAndFeel(info.getClassName());\n \t break;\n \t }\n \t }\n \t} catch (Exception e) {\n \t // If Nimbus is not available, you can set the GUI to another look and feel.\n \t}\n\t\t\n\t\tnew AddNewCustomer();\n\n\t}", "public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Stock_Management.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Stock_Management.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Stock_Management.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Stock_Management.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Stock_Management().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(kullaniciEkrani.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(kullaniciEkrani.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(kullaniciEkrani.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(kullaniciEkrani.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new kullaniciEkrani().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UIHorariosLista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UIHorariosLista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UIHorariosLista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UIHorariosLista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new UIHorariosLista().setVisible(true);\n }\n });\n }", "public static void startTrayIcon() {\r\n try {\r\n \tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\r\n } catch (Exception ex) {\r\n \tJOptionPane.showMessageDialog(null, \"Error setting Look & Feel \"+ex, \"Error setting Look & Feel\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n /* Turn off metal's use of bold fonts */\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\r\n //Schedule a job for the event-dispatching thread:\r\n //adding TrayIcon.\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n });\r\n }", "protected void installDefaults() {\n spinner.setLayout(createLayout());\n LookAndFeel.installBorder(spinner, \"Spinner.border\");\n LookAndFeel.installColorsAndFont(spinner, \"Spinner.background\", \"Spinner.foreground\", \"Spinner.font\"); }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UrunListele.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UrunListele.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UrunListele.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UrunListele.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new UrunListele().setVisible(true);\n }\n });\n }", "public static void main(final String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(ClienteView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(ClienteView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(ClienteView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ClienteView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = new JFrame();\n frame.setContentPane(new ClienteView());\n frame.pack();\n frame.setVisible(true);\n frame.setTitle(args[0]);\n \n }\n });\n }", "public static void main(String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n// * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n// */\n// try {\n// for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n// if (\"Nimbus\".equals(info.getName())) {\n// javax.swing.UIManager.setLookAndFeel(info.getClassName());\n// break;\n// }\n// }\n// } catch (ClassNotFoundException ex) {\n// java.util.logging.Logger.getLogger(CatcTitles.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (InstantiationException ex) {\n// java.util.logging.Logger.getLogger(CatcTitles.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (IllegalAccessException ex) {\n// java.util.logging.Logger.getLogger(CatcTitles.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n// java.util.logging.Logger.getLogger(CatcTitles.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// }\n //</editor-fold>\n\n /* Create and display the form */\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = new JFrame();\n frame.setContentPane(new CatcTitles());\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n }\n });\n }", "public CalculatorGUI() {\n initComponents();\n setTitle(\"Calculator\");\n //setLookAndFeel(\"Windows\");\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Kayıt_Sil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Kayıt_Sil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Kayıt_Sil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Kayıt_Sil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold> \n\n /* Create and display the form */\n \n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Kayıt_Sil().setVisible(true);\n }\n });\n }", "private void menuMotifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuMotifActionPerformed\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n SwingUtilities.updateComponentTreeUI(this);\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(TelaDelProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(TelaDelProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(TelaDelProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(TelaDelProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(SpaceSim.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() {\n new SpaceSim().setVisible(true);\n }\n });\n }", "private void setAppearance(String className) {\n DweezilUIManager.setLookAndFeel(className, new Component[]{MainFrame.getInstance(), StatusWindow.getInstance(),\n PrefsSettingsPanel.this.getParent().getParent()});\n\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(segundapartepestaña5.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(segundapartepestaña5.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(segundapartepestaña5.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(segundapartepestaña5.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new segundapartepestaña5().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(frmBuscarRemitentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(frmBuscarRemitentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(frmBuscarRemitentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(frmBuscarRemitentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n frmBuscarRemitentes dialog = new frmBuscarRemitentes(new javax.swing.JFrame(), true);\n dialog.addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent e) {\n System.exit(0);\n }\n });\n dialog.setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(FRM_Venta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(FRM_Venta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(FRM_Venta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(FRM_Venta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new FRM_Venta().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(JFMenu_principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(JFMenu_principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(JFMenu_principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(JFMenu_principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new TelaCliente().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(ImagenesProducto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(ImagenesProducto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(ImagenesProducto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ImagenesProducto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ImagenesProducto().setVisible(true);\n }\n });\n }", "protected void installDefaults() {\n\t\tColor bg = this.controlPanel.getBackground();\n\t\tif (bg == null || bg instanceof UIResource) {\n\t\t\tthis.controlPanel.setBackground(FlamingoUtilities.getColor(\n\t\t\t\t\tColor.lightGray, \"ControlPanel.background\",\n\t\t\t\t\t\"Panel.background\"));\n\t\t}\n\n\t\tBorder b = this.controlPanel.getBorder();\n\t\tif (b == null || b instanceof UIResource) {\n\t\t\tBorder toSet = UIManager.getBorder(\"ControlPanel.border\");\n\t\t\tif (toSet == null)\n\t\t\t\tnew BorderUIResource.EmptyBorderUIResource(1, 2, 1, 2);\n\t\t\tthis.controlPanel.setBorder(toSet);\n\t\t}\n\t\t\n\t\tFont font = this.controlPanel.getFont();\n if (font == null || font instanceof UIResource) {\n Font toSet = UIManager.getFont(\"Panel.font\");\n this.controlPanel.setFont(toSet);\n }\n\t}", "public MainFrame() throws Exception {\r\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n //SynthLookAndFeel laf = new SynthLookAndFeel();\r\n //UIManager.setLookAndFeel(laf);\r\n initComponents();\r\n }", "public static void main(String args[]) {\r\n try {\r\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\r\n if (\"Nimbus\".equals(info.getName())) {\r\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\r\n break;\r\n }\r\n }\r\n } catch (ClassNotFoundException ex) {\r\n java.util.logging.Logger.getLogger(Roysched.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (InstantiationException ex) {\r\n java.util.logging.Logger.getLogger(Roysched.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (IllegalAccessException ex) {\r\n java.util.logging.Logger.getLogger(Roysched.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\r\n java.util.logging.Logger.getLogger(Roysched.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n }\r\n //</editor-fold>\r\n\r\n /* Create and display the form */\r\n java.awt.EventQueue.invokeLater(new Runnable() {\r\n public void run() {\r\n new Roysched().setVisible(true);\r\n }\r\n });\r\n }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (Exception ex) {\r\n\t\t}\r\n\t}", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(jfmActividades.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(() -> {\n new jfmActividades().setVisible(true);\n });\n }", "protected void uninstallDefaults() {\n\t\tLookAndFeel.uninstallBorder(this.controlPanel);\n\t}", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(ThermalInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(ThermalInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(ThermalInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ThermalInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ThermalInfo().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new HomePage().setVisible(true);\n }\n });\n }", "public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(VentaForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(VentaForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(VentaForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(VentaForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new VentaForm().setVisible(true);\n }\n });\n }" ]
[ "0.7949842", "0.77695245", "0.7702217", "0.7505592", "0.7288192", "0.72294354", "0.72234964", "0.72215366", "0.71814275", "0.71575797", "0.7119326", "0.7112099", "0.70995355", "0.7061918", "0.70504636", "0.69139534", "0.6817144", "0.67054737", "0.66966176", "0.65856785", "0.6573849", "0.65293956", "0.65254724", "0.6505223", "0.6416394", "0.6405853", "0.6261248", "0.62607926", "0.62211", "0.6190853", "0.6169183", "0.6139679", "0.61355853", "0.6078582", "0.60610104", "0.6057701", "0.6031208", "0.60274124", "0.5996543", "0.5947305", "0.5901127", "0.58855057", "0.5862931", "0.5856226", "0.5807226", "0.5793046", "0.5786961", "0.57723355", "0.5744155", "0.5740838", "0.5727419", "0.5660137", "0.5655673", "0.5653423", "0.56517386", "0.56229067", "0.56059295", "0.5601327", "0.5586348", "0.5575255", "0.557285", "0.55689675", "0.55689156", "0.5563224", "0.55484307", "0.55447567", "0.5518522", "0.5516038", "0.5513964", "0.54990613", "0.54919165", "0.5490836", "0.5474502", "0.54727346", "0.5456316", "0.54542667", "0.54524314", "0.5448391", "0.54441714", "0.543299", "0.5430616", "0.5426278", "0.5420295", "0.54171586", "0.5403367", "0.5402169", "0.5387033", "0.5378246", "0.5365174", "0.5363724", "0.535493", "0.5352527", "0.53348494", "0.5331001", "0.5322709", "0.53223884", "0.5322213", "0.53216356", "0.5321577", "0.5314778" ]
0.54395825
79
Initialise all objects in this method.
private void init() { name = getIntent().getStringExtra("name"); nameID = getIntent().getStringExtra("id"); setSupportActionBar(mToolbar); setSupportActionBar(mToolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(true); mToolbar.setTitle(name); mToolbar.setNavigationOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { finish(); } }); mBtnSendText.setEnabled(false); chatViewModel = ViewModelProviders.of(this).get(ChatViewModel.class); chatAdapter = new ChatAdapter(this, this); LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getApplicationContext(), RecyclerView.VERTICAL, false); linearLayoutManager.setStackFromEnd(true); mChatList.setLayoutManager(linearLayoutManager); mChatList.setAdapter(chatAdapter); // Send Button click listener. mBtnSendText.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { checkConnection(); } }); // Chat Box text change listener. mChatBox.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { } @Override public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { if (charSequence.length() == 0) mBtnSendText.setEnabled(false); else mBtnSendText.setEnabled(true); } @Override public void afterTextChanged(Editable editable) { } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initObjects() {\n inputValidation = new InputValidation(activity);\n databaseHelper = new DatabaseHelper(activity);\n user = new User();\n }", "private void init() {\n filmCollection = new FilmCollection();\n cameraCollection = new CameraCollection();\n }", "private void init() {\n\n\t\tinitializeLists();\n\t\tcreateTiles();\n\t\tcreateTileViews();\n\t\tshuffleTiles();\n\n\t}", "private void initializeAll() {\n initialize(rows);\n initialize(columns);\n initialize(boxes);\n }", "protected void initializeInstances() {\n if (mUser == null) {\n mUser = new User(getApplicationContext());\n }\n if (mUserCache == null) {\n mUserCache = new UserCache();\n }\n if(mGlobalGroupContainer == null) {\n mGlobalGroupContainer = new GroupContainer(getApplicationContext());\n }\n if(mGlobalHistoryContainer == null) {\n mGlobalHistoryContainer = new HistoryContainer(getApplicationContext());\n }\n\n if(mGlobalContactContainer == null) {\n mGlobalContactContainer = new ContactContainer(getApplicationContext());\n mGlobalContactContainer.setContactSortKey(Contact.UserSortKey.USER_FIRST_NAME);\n }\n }", "private void initialize() {\n\t\troot = new Group();\n\t\tgetProperties();\n\t\tsetScene();\n\t\tsetStage();\n\t\tsetGUIComponents();\n\t}", "void init() {\n\t\tinitTypes();\n\t\tinitGlobalFunctions();\n\t\tinitFunctions();\n\t\tinitClasses();\n\t}", "public void performInitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}", "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefono = new TelefonoPersonaSie();\r\n\t}", "public void init() {\n\t\tfor (Node node : nodes)\n\t\t\tnode.init();\n\t}", "public void initiate() {\n\t\tallDepartments.put(HRDepartment.class.getSimpleName(), HRDepartment.getInstance());\n\t\tallDepartments.put(ProductionDepartment.class.getSimpleName(), ProductionDepartment.getInstance());\n\t\tallDepartments.put(WarehousingDepartment.class.getSimpleName(), WarehousingDepartment.getInstance());\n\t\tallDepartments.put(FinanceDepartment.class.getSimpleName(), FinanceDepartment.getInstance());\n\t\tallDepartments.put(MarketingDepartment.class.getSimpleName(), MarketingDepartment.getInstance());\n\t\tallDepartments.put(LogisticsDepartment.class.getSimpleName(), LogisticsDepartment.getInstance());\n\t\tallDepartments.put(ProcurementDepartment.class.getSimpleName(), ProcurementDepartment.getInstance());\n\t\tallDepartments.put(ResearchAndDevelopmentDepartment.class.getSimpleName(), ResearchAndDevelopmentDepartment.getInstance());\n\t\tallDepartments.put(SalesDepartment.class.getSimpleName(), SalesDepartment.getInstance());\n\n\t\tcustomerSatisfaction = CustomerSatisfaction.getInstance();\n\t\tcustomerDemand = CustomerDemand.getInstance();\n\t\texternalEvents = ExternalEvents.getInstance();\n\t\tcompanyEcoIndex = CompanyEcoIndex.getInstance();\n\t\tinternalFleet = InternalFleet.getInstance();\n\t\tbankingSystem = BankingSystem.getInstance();\n\t\tproductSupport = ProductSupport.getInstance();\n\t\temployeeGenerator = EmployeeGenerator.getInstance();\n\t\temployeeGenerator.setDepartment((HRDepartment) allDepartments.get(HRDepartment.class.getSimpleName()));\n\t}", "private void initObjects() {\n databaseHelper = new DatabaseHelper(activity);\n dbHelper = new DBHelper(activity);\n inputValidation = new InputValidation(activity);\n progress = new ProgressDialog(activity);\n user=new User();\n }", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "public void init() {\n initLayers();\n for (int i = 0; i < indivCount; i++) {\n ArrayList<Layer> iLayers = new ArrayList<>();\n for (Layer l : layers)\n iLayers.add(l.cloneSettings());\n individuals[i] = new Individual(iLayers);\n }\n }", "private void init() {\n\t\tinitDesign();\n\t\tinitHandlers();\n\t}", "private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}", "public void initialize() {\n\t\tloadRaces();\n\t\tloadBets();\n\t\tgenerateRaces(NUMBER_RACES - races.size());\n\t\t\n\t\traces.stream().forEach(race -> {\n\t\t\texecutor.submit(new RaceWorker(race, this));\n\t\t});\n\t\t\n\t\tinitialized = true;\n\t}", "private void init() {\n this.listaObjetos = new ArrayList();\n this.root = null;\n this.objeto = new Tblobjeto();\n this.pagina = new Tblpagina();\n this.selectedObj = null;\n this.menus = null;\n this.subMenus = null;\n this.acciones = null;\n this.nodes = new ArrayList<TreeNode>();\n this.selectedObjeto = null;\n this.selectedTipo = null;\n this.renderPaginaForm = null;\n this.renderGrupoForm = null;\n this.selectedGrupo = null;\n this.populateTreeTable();\n }", "public void init() {\r\n\t\tsuper.init();\r\n\t\tfor (int i = 0; i < _composites.size(); i++) {\r\n\t\t\t_composites.get(i).init();\t\t\t\r\n\t\t} \r\n\t}", "void initialise() {\n this.sleep = false;\n this.owner = this;\n renewNeighbourClusters();\n recalLocalModularity();\n }", "public void init(){\n\t\tEmployee first = new Employee(\"Diego\", \"Gerente\", \"[email protected]\");\n\t\tHighSchool toAdd = new HighSchool(\"Santiago Apostol\", \"4656465\", \"cra 33a #44-56\", \"3145689879\", 30, 5000, \"Jose\", new Date(1, 3, 2001), 3, \"Servicios educativos\", \"451616\", 15, \"Piedrahita\", 45, 1200, 500);\n\t\ttoAdd.addEmployee(first);\n\t\tProduct pilot = new Product(\"jet\", \"A00358994\", 1.5, 5000);\n\t\tFood firstFood = new Food(\"Colombina\", \"454161\", \"cra 18\", \"454611313\", 565, 60000, \"Alberto\", new Date(1, 8, 2015), 6, \"Manufactura\", 4);\n\t\tfirstFood.addProduct(pilot);\n\t\ttheHolding = new Holding(\"Hertz\", \"15545\", \"cra 39a #30a-55\", \"3147886693\", 80, 500000, \"Daniel\", new Date(1, 2, 2015), 5);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\ttheHolding.addSubordinate(firstFood);\n\t}", "private void initializeObjects() {\n\n showActionBarAndCalendar();\n\t\t\n\t\tmAverageHeartRate = (DashboardItemHeartRate) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_HEART_RATE);\n\t\tmStepsMetric = (DashboardItemMetric) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_STEPS);\n\t\tmDistanceMetric = (DashboardItemMetric) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_DISTANCE);\n\t\tmCalorieMetric = (DashboardItemMetric) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_CALORIES);\n\t\tmSleepMetric = (DashboardItemSleep) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_SLEEP);\n\t\tmWorkoutInfo = (DashboardItemWorkout) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_WORKOUT);\n\t\tmActigraphy = (DashboardItemActigraphy) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_ACTIGRAPHY);\n\t\tmLightExposure = (DashboardItemLightExposure) DashboardItemFactory\n\t\t\t\t\t\t.createDashboardItem(TYPE_LIGHT_EXPOSURE);\n\t\t\n\t\tarrangeDashboardItems();\n\t}", "public void init() {\r\n\t\tcards = new ArrayList<Card>();\r\n\t\tfor(Card card : Card.values()) {\r\n\t\t\tcards.add(card);\r\n\t\t}\r\n\t}", "protected void init() {\n init(null);\n }", "public final void init() {\n connectDB();\n\n initMainPanel();\n\n initOthers();\n }", "public void init() {\r\n\r\n\t}", "public void init() {\n\t\t\n\t\t\n\t\tprepareGaborFilterBankConcurrent();\n\t\t\n\t\tprepareGaborFilterBankConcurrentEnergy();\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n clearCaches();\n }", "public void init() {\n\r\n\t}", "public void init() {\n\r\n\t}", "public void init()\n {\n this.tripDict = new HashMap<String, Set<Trip>>();\n this.routeDict = new HashMap<String, Double>();\n this.tripList = new LinkedList<Trip>();\n this.computeAllPaths();\n this.generateDictionaries();\n }", "private void Initialize()\n {\n \tEcran = new Rectangle(Framework.gauche, Framework.haut, Framework.frameWidth\n\t\t\t\t- Framework.droite - Framework.gauche, Framework.frameHeight - Framework.bas\n\t\t\t\t- Framework.haut);\n\t\tCentreEcranX = (int)(Ecran.getWidth()/2);\n\t\tCentreEcranY = (int)(Ecran.getHeight()/2);\n\t\twidth = Ecran.getWidth();\n\t\theight = Ecran.getHeight();\t\t\n\t\tpH=height/768;\t\t\n\t\tpW=width/1366;\n\t\tObjets = new ArrayList<Objet>(); // Créer la liste chainée en mémoire\n\t\tMissiles = new ArrayList<Missile>(); // Créer la liste chainée en mémoire\n\t\tStations = new ArrayList<Station>(); // Créer la liste chainée en mémoire\n\t\tJoueurs = new ArrayList<Joueur>();\n\t\tlastTrajectoires = new ArrayList<Trajectoire>();\n\n\t\tDisposeAstres(Framework.niveauChoisi);\n\t\tstationCourante = Stations.get(0);\n\n\t\tetat = ETAT.PREPARATION;\n\t\tmouseClicked = mousePressed = mouseReleased = false;\n\t}", "public void init() {\n \n }", "protected void init() {\n }", "protected void initialize() {\n\t\tthis.position = Point3D.ZERO;\n\t\t// reset subclasses properties if any\n\t\treset();\n\t}", "public void init() {\n\t\tdropViewCollections();\n\t\tbuildViewCollections();\n\t\tthis.populateViewCollections();\n\t}", "private void init() {\n\n\n\n }", "public void initialize() {\n // empty for now\n }", "private void init() {\n }", "public static void init()\n {\n\n addShapeless();\n\n addShaped();\n }", "public void init() {\n\t\t}", "private void init() {\n\n\t}", "protected void init() {\n\t}", "protected void init() {\n\t}", "protected void initialize() {\n \t\n }", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "private void prepare()\n {\n Victoria victoria = new Victoria();\n addObject(victoria,190,146);\n Salir salir = new Salir();\n addObject(salir,200,533);\n Volver volver = new Volver();\n addObject(volver,198,401);\n }", "public void init() {}", "public void init() {}", "protected void initialize() {\n // Attribute Load\n this.attributeMap.clear();\n this.attributeMap.putAll(this.loadAttribute());\n // RuleUnique Load\n this.unique = this.loadRule();\n // Marker Load\n this.marker = this.loadMarker();\n // Reference Load\n this.reference = this.loadReference();\n }", "public void init() {\n\t\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}", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "private void initActors() {\r\n\t\t// Prepare everything\r\n\t\tinitLabels();\r\n\t\tinitButtons();\r\n\t\t// Initialize our Actors\r\n\t\tinitTable();\r\n\t}", "public void init() { }", "public void init() { }", "public void init() {\n\t\t\n\t}", "private void initialize() {\n\t\tdisenioVentana();\n\n\t\tdisenioMenu();\n\n\t\tdisenio_Cuerpo();\n\n\t}", "public void init(){\n \n }", "public void initialize(){\n\t\t//TODO: put initialization code here\n\t\tsuper.initialize();\n\t\t\n\t}", "protected void init(){\n }", "public final void init() {\n onInit();\n }", "public final void initialize() {\n initialize(0);\n }", "protected void initVars() {}", "private void initialize() {\n }", "public void init() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tpageLists.add(new Page(i));\n\t\t}\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "public void init()\n {\n }", "public static void init() {\n\t\tregisterRecipes();\n\t\tregisterShapelessRecipes();\n\t\tregisterSmeltingRecipes();\n\t}", "public void init() {\n\t\t// init lists\n\t\t_examinationWaiters = new LinkedList();\n\t\t_xrayWaiters = new LinkedList();\n\t\t_backFromXrayWaiters = new LinkedList();\n\t\t_gonePatients = new Vector();\n\n\t\t// init doctors\n\t\t_doctors = new Person[NUMBER_OF_DOCTORS];\n\t\tfor (int i = 0; i < _doctors.length; ++i) {\n\t\t\t_doctors[i] = new Person(\"d\" + (i + 1));\n\t\t}\n\t\t_xrayDoctor = new Person(\"x\");\n\n\t\t// init examination time computing helper arrays\n\t\t_examinationMins =\n\t\t\tnew int[] {\n\t\t\t\t0,\n\t\t\t\tFIRST_EXAMINATION_MIN,\n\t\t\t\tXRAY_EXAMINATION_MIN,\n\t\t\t\tSECOND_EXAMINATION_MIN };\n\t\t_examinationMaxs =\n\t\t\tnew int[] {\n\t\t\t\t0,\n\t\t\t\tFIRST_EXAMINATION_MAX,\n\t\t\t\tXRAY_EXAMINATION_MAX,\n\t\t\t\tSECOND_EXAMINATION_MAX };\n\n\t\t// create enterAmbulanceEvents\n\t\tVector v = new Vector();\n\t\tint i = 0;\n\t\tfor (int t = OPEN_TIME + getPoisson();\n\t\t\tt < CLOSE_TIME;\n\t\t\tt += getPoisson()) {\n\t\t\tv.add(\n\t\t\t\tnew Event(Event.NEW_PATIENT, t, new Person(\"p\" + (++i)), null));\n\t\t}\n\n\t\t// init eventQueue\n\t\t_eventQueue = new EventQueue(v);\n\n\t\t// init timer\n\t\ttime = OPEN_TIME;\n\t}", "public static void initClasses() {\n\t // base class must be initialized first\n\t \t SoAction.initClass();\n\t \t \n\t \t SoCallbackAction.initClass();\n\t \t SoGLRenderAction.initClass();\n\t \t SoGetBoundingBoxAction.initClass();\n\t \t SoGetMatrixAction.initClass();\n\t \t SoGetPrimitiveCountAction.initClass();\n\t \t SoHandleEventAction.initClass();\n\t \t SoPickAction.initClass();\n\t \t SoRayPickAction.initClass();\n\t \t SoSearchAction.initClass();\n\t \t SoWriteAction.initClass();\n\t \t \t \t\n\t }", "@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }", "public void initialize()\n {\n \t// Luodaan manager-luokat\n EffectManager.getInstance();\n MessageManager.getInstance();\n CameraManager.getInstance();\n\n // Luodaan pelitilan eri osat\n backgroundManager = new BackgroundManager(wrapper);\n \tweaponManager = new WeaponManager();\n hud = new Hud(context, weaponManager);\n touchManager = new TouchManager(dm, surfaceView, context, hud, weaponManager);\n gameMode = new GameMode(gameActivity, this, dm, context, hud, weaponManager);\n \n // Järjestellään Wrapperin listat uudelleen\n wrapper.sortDrawables();\n wrapper.generateAiGroups();\n \n // Merkitään kaikki ladatuiksi\n allLoaded = true;\n }", "private void initialize() {\n this.pm10Sensors = new ArrayList<>();\n this.tempSensors = new ArrayList<>();\n this.humidSensors = new ArrayList<>();\n }", "public void init() {\n\n }", "public void init() {\n\n }", "private void setEverything(){\r\n int listLength = propertyList.length -1;\r\n arrayIterator = new ArrayIterator<>(propertyList, listLength+1);\r\n\r\n this.priceTree = new SearchTree<>(new PriceComparator());\r\n this.stockTree = new SearchTree<>(new StockComparator());\r\n this.ratingTree = new SearchTree<>(new RatingComparator());\r\n this.deliveryTree= new SearchTree<>(new DeliveryTimeComparator());\r\n\r\n this.foodArray = new ArrayQueue<>();\r\n this.restaurantArray = new ArrayQueue<>();\r\n\r\n // Fill arrays from property list.\r\n createFoodArray();\r\n arrayIterator.setCurrent(0); //Since the restaurantArray will use the same iterator\r\n createRestaurantArray();\r\n\r\n // Fill Binary Search Trees\r\n createFoodTrees();\r\n createRestaurantTrees();\r\n }", "private void initialize() {\n\t}", "public void initialize() {\n // TODO\n }", "public void initObjects() {\n /*\n using findViewById references to the todoTitleEdittext,todoDateEditText,todoDescriptionEditText,saveTodoButton to from layout\n */\n todoTitleEditText = (EditText) findViewById(R.id.editText_todo_title);\n todoDateEditText = (EditText) findViewById(R.id.editText_todo_date);\n todoDescriptionEditText = (EditText) findViewById(R.id.editText_todo_description);\n saveTodoButton = (Button) findViewById(R.id.button_save_todo);\n }", "public void init(){\r\n\t\t\r\n\t}", "@Override\n\t\tprotected void initialise() {\n\n\t\t}", "public void init(){}", "private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}", "private void initialiseAll() {\n // now that all the BeanDescriptors are in their map\n // we can initialise them which sorts out circular\n // dependencies for OneToMany and ManyToOne etc\n BeanDescriptorInitContext initContext = new BeanDescriptorInitContext(asOfTableMap, draftTableMap, asOfViewSuffix);\n\n // PASS 1:\n // initialise the ID properties of all the beans\n // first (as they are needed to initialise the\n // associated properties in the second pass).\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initialiseId(initContext);\n }\n\n // PASS 2:\n // now initialise all the inherit info\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initInheritInfo();\n }\n\n // PASS 3:\n // now initialise all the associated properties\n for (BeanDescriptor<?> d : descMap.values()) {\n // also look for intersection tables with\n // associated history support and register them\n // into the asOfTableMap\n d.initialiseOther(initContext);\n }\n\n // PASS 4:\n // now initialise document mapping which needs target descriptors\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initialiseDocMapping();\n }\n\n // create BeanManager for each non-embedded entity bean\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initLast();\n if (!d.isEmbedded()) {\n beanManagerMap.put(d.fullName(), beanManagerFactory.create(d));\n checkForValidEmbeddedId(d);\n }\n }\n }", "public void inicialisation(){\r\n\t\t\r\n\t\tgoods = new AutoParts[0];\r\n\t\tclient = new Client[0];\r\n\t\t\r\n\t\tshop = new Shopping[0];\r\n\t\tsale = new Sale[0];\r\n\t\ttransaction = new Document[0];\r\n\t\t\r\n\t\tbalancesAutoParts = new BalancesAutoParts[0];\r\n\t\t\r\n\t\tprices = new Prices[0];\r\n\t\t\r\n\t\tagriment = new Agreement[0];\r\n\t\t\r\n\t}", "private Data initialise() {\n \r\n getRoomsData();\r\n getMeetingTimesData();\r\n setLabMeetingTimes();\r\n getInstructorsData();\r\n getCoursesData();\r\n getDepartmentsData();\r\n getInstructorFixData();\r\n \r\n for (int i=0;i<departments.size(); i++){\r\n numberOfClasses += departments.get(i).getCourses().size();\r\n }\r\n return this;\r\n }", "public void initializeObliqueLaunch(){\r\n world = new Environment();\r\n cannon = new Thrower();\r\n ball = new Projectile();\r\n this.setInitialValues();\r\n }", "private void initialize()\n {\n for(int i=0;i<4;i++)\n {\n foundationPile[i]= new Pile(Rank.ACE);\n foundationPile[i].setRules(true, false, false, false, true,false, true);\n } \n for(int i=0;i<7;i++)\n {\n tableauHidden[i] = new Pile();\n tableauVisible[i] = new Pile(Rank.KING);\n tableauVisible[i].setRules(false, true, false, false, false,false, true);\n } \n deck.shuffle();\n deck.shuffle();\n dealGame();\n }" ]
[ "0.7411761", "0.7299825", "0.7192524", "0.7186545", "0.71564573", "0.715225", "0.7078731", "0.7070363", "0.7050244", "0.7015209", "0.7004689", "0.6969541", "0.69673896", "0.69533384", "0.69504565", "0.69389826", "0.6896582", "0.6866121", "0.68555367", "0.6842694", "0.6841098", "0.6791644", "0.6783859", "0.67738503", "0.67384475", "0.67219615", "0.6710837", "0.67107034", "0.67107034", "0.67107034", "0.67107034", "0.6691226", "0.6679476", "0.6679476", "0.66687274", "0.6666766", "0.6665596", "0.6653362", "0.664801", "0.66389865", "0.6637559", "0.6630328", "0.6629576", "0.66281027", "0.6624713", "0.661652", "0.66116184", "0.66116184", "0.6610394", "0.659519", "0.659519", "0.659519", "0.65778244", "0.65778244", "0.65778244", "0.65778244", "0.65767056", "0.6572942", "0.6572942", "0.6565267", "0.65649873", "0.65618646", "0.6549575", "0.6549575", "0.6549575", "0.654345", "0.65420055", "0.65420055", "0.6541514", "0.65367925", "0.6524318", "0.65241927", "0.6520418", "0.6506803", "0.64954925", "0.64769906", "0.6471453", "0.6467776", "0.64663756", "0.6466062", "0.6465866", "0.6464192", "0.64562804", "0.64549017", "0.6454666", "0.64543194", "0.6442501", "0.6442501", "0.64283514", "0.6424538", "0.6420777", "0.64186764", "0.64162064", "0.64154285", "0.6411796", "0.6410453", "0.6397812", "0.6395903", "0.6395853", "0.6394836", "0.63905466" ]
0.0
-1
Sync data with chat bot api.
public void syncMessages() { ArrayList<ChatEntity> nonSyncedChatEntities = new ArrayList<>(); nonSyncedChatEntities.addAll(chatViewModel.loadChatsWithSyncStatus(false, nameID)); if (nonSyncedChatEntities.size() > 0) { for (int i = 0; i < nonSyncedChatEntities.size(); i++) { ChatEntity chatEntity = nonSyncedChatEntities.get(i); chatEntity.setSynced(true); chatViewModel.updateSource(chatEntity); getChatResult(nonSyncedChatEntities.get(i).getMessage()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void syncData() {\n try {\n // pulling data from server\n pullData();\n\n // pushing local changes to server\n// recordStatus=2\n pushData();\n// recordStatus=1\n// pushData1();\n } catch (Throwable throwable) {\n Log.d(TAG, \"doWork: \" + throwable.getMessage());\n }\n // Toast.makeText(getApplicationContext(), \".\", Toast.LENGTH_SHORT).show();\n }", "private void updateChat() throws SQLException{\n DBConnect db = DBConnect.getInstance();\n ArrayList<String> messages = db.getChat(selectedCustomer.getChat_id());\n chat.getItems().clear();\n for(String mess :messages){\n chat.getItems().add(mess);\n }\n }", "private void updateData() {\n apiCompetitionService = new RetrofitAdapter().connectionEnable().create(CompetitionSrv.class);\n\n // recuperamos los datos nuevos\n competitionMapUpdate.put(\"id\", String.valueOf(this.competencia.getId()));\n competitionMapUpdate.put(\"ciudad\", ciudadNueva);\n competitionMapUpdate.put(\"genero\", generoNuevo.getNombre());\n competitionMapUpdate.put(\"estado\", estadoNuevo.getNombre());\n\n Log.d(\"DATA_UPDATE_ERROR\", \"Datos nuevos de la competencia: \"+competitionMapUpdate);\n\n Call<MsgRequest> call = apiCompetitionService.updateCompetition(competitionMapUpdate);\n call.enqueue(new Callback<MsgRequest>() {\n @Override\n public void onResponse(Call<MsgRequest> call, Response<MsgRequest> response) {\n if (response.code() == 200) {\n Log.d(\"UPDATE_DATA\", \"Datos actualizados con exito\");\n Toast.makeText(getContext(), \"Datos actualizados con exito \", Toast.LENGTH_SHORT).show();\n return;\n }\n if (response.code() == 400) {\n Log.d(\"DATA_UPDATE_ERROR\", \"PETICION MAL FORMADA: \"+response.errorBody());\n JSONObject jsonObject = null;\n try {\n jsonObject = new JSONObject(response.errorBody().string());\n String userMessage = jsonObject.getString(\"messaging\");\n Log.d(\"DATA_UPDATE_ERROR\", \"Msg de la repuesta: \"+userMessage);\n Toast.makeText(getContext(), \"No se pudieron registrar los cambios: << \"+userMessage+\" >>\", Toast.LENGTH_SHORT).show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return;\n }\n }\n\n @Override\n public void onFailure(Call<MsgRequest> call, Throwable t) {\n Log.d(\"RESP_CREATE_ERROR\", \"error: \"+t.getMessage());\n Toast.makeText(getContext(), \"Existen problemas con el servidor \", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void queryServer() {\n final String lastTime = \"2020-11-17 00:00:00\";\n final OkHttpClient client = HttpHelper.getOkHttpClient();\n final RequestBody requestBody = new FormBody.Builder()\n .add(Config.STR_TIME, lastTime)\n .build();\n final Request request = new okhttp3.Request.Builder()\n .post(requestBody)\n .url(Config.URL_TALK_QUERY)\n .build();\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(@NonNull Call call, @NonNull IOException e) {\n uniApiResult.postValue(new UniApiResult.Fail(Config.ERROR_NET, Arrays.toString(e.getStackTrace())));\n Log.e(\"Contacts\", Config.ERROR_NET);\n }\n @Override\n public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {\n if( !response.isSuccessful() ) {\n uniApiResult.postValue(new UniApiResult.Fail(Config.ERROR_NET, String.valueOf(response.code())));\n return;\n }\n assert response.body() != null;\n String resJson = response.body().string();\n try {\n JSONObject jsonO = new JSONObject(resJson);\n uniApiResult.postValue(new UniApiResult<>(jsonO.getString(Config.STR_STATUS), \"\"));\n\n JSONArray jsonA = (JSONArray) jsonO.get(Config.STR_STATUS_DATA);\n// List<TMessage> newTMessages = new ArrayList<>();\n for (int i = 0; i < jsonA.length(); ++i) {\n TMessage message = TMessage.jsonToTMessage((JSONObject) jsonA.get(i));\n if (!tMessageDao.isMessageExist(message.getAccount1(), message.getAccount2(),message.getSendTime())) {\n tMessageDao.InsertMessage(message);\n// newTMessages.add(message);\n }\n }\n// TMessageList.postValue(newTMessages);\n ThreadPoolHelper.getInstance().execute(TalkViewModel.this::queryLocalMessageList);\n //new Thread(TalkViewModel.this::queryLocalMessageList).start();\n } catch (JSONException e) {\n e.printStackTrace();\n uniApiResult.postValue(new UniApiResult.Fail(Config.ERROR_UNKNOWN, Arrays.toString(e.getStackTrace())));\n }\n }\n });\n }", "private void individualSend(UserLogic t) {\n if(t != UserLogic.this && t != null && ((String)UI.getContacts().getSelectedValue()).equals(t.username)){\r\n if(((String)t.UI.getContacts().getSelectedValue()).equals(username)) { //If both users are directly communicating\r\n t.UI.getProperList().addElement(username + \"> \" + UI.getMessage().getText()); //Send message\r\n t.UI.getContacts().setCellRenderer(clearNotification); //Remove notification\r\n }\r\n else{ //If the user are not directly communicating\r\n t.UI.getContacts().setCellRenderer(setNotification); //Set notification\r\n }\r\n if(t.chats.containsKey(username)){ //Store chats in other users database (When database exists)\r\n ArrayList<String> arrayList = t.chats.get(username); //Get data\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>(); //create new database\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n }\r\n //This writes on my screen\r\n if(t == UserLogic.this && t!=null){ //On the current user side\r\n UI.getProperList().addElement(\"Me> \" + UI.getMessage().getText()); //Write message to screen\r\n String currentChat = (String) UI.getContacts().getSelectedValue(); //Get selected user\r\n if(chats.containsKey(currentChat)){ //check if database exists\r\n ArrayList<String> arrayList = chats.get(currentChat);\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>();\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n }\r\n }", "private void sendFitDataSync(final Context context){\n final Date date = new Date();\n HandlerThread ht = new HandlerThread(\"HeartThread\", android.os.Process.THREAD_PRIORITY_BACKGROUND);\n ht.start();\n Handler h = new Handler(ht.getLooper());\n h.post(new Runnable() {\n @Override\n public void run() {\n GoogleApiClient mGoogleAPIClient = new GoogleApiClient.Builder(context)\n .addConnectionCallbacks(new GoogleApiClient.ConnectionCallbacks() {\n @Override\n public void onConnected(Bundle bundle) {\n Log.d(\"Heart\", \"Connected\");\n }\n\n @Override\n public void onConnectionSuspended(int i) {\n\n }\n })\n .addApi(Wearable.API).build();\n mGoogleAPIClient.blockingConnect(10, TimeUnit.SECONDS);\n /* Sync msg & time to handheld */\n WearableSendSync.sendSyncToDevice(mGoogleAPIClient, WearableSendSync.START_ACTV_SYNC, date);\n WearableSendSync.sendSyncToDevice(mGoogleAPIClient, WearableSendSync.START_HIST_SYNC, date);\n WearableSendSync.sendDailyNotifFileWrapper(mGoogleAPIClient);\n\n }\n });\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLog.d(\"shows\",\"shw \"+i++);\n\n\t\t\t\t//SendMsg\n\t\t\t\tnameValuePairs= new ArrayList<NameValuePair>(3);\n\t\t\t\tdb=new ChattyData(con);\n\t\t\t\tCursor c=db.getUnsent();\n\t\t\t\tif(c!=null)\n\t\t\t\t{\n\t\t\t\t c.moveToFirst();\n\t\t\t\t try{c.getString(1).equals(\"\");\n\t\t\t\t sno=c.getInt(0);\n\t\t\t\t\tLog.d(\"sno\",sno+\"\");\n\t\t\t\t nameValuePairs.add(new BasicNameValuePair(\"from\", pref.getString(\"id\", \"\")));\n\t\t\t\t nameValuePairs.add(new BasicNameValuePair(\"to\", c.getString(1)));\n\t\t\t\t nameValuePairs.add(new BasicNameValuePair(\"msg\", c.getString(2)));\n\t\t\t\t SendMsg sendMsg=new SendMsg(con,sno);\n\t\t\t\t\tif (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n\t\t\t\t\t\tsendMsg.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,nameValuePairs);\n\t\t\t\t\telse\tsendMsg.execute(nameValuePairs);\n\t\t\t\t }\n\t\t\t\t catch(Exception e){}\n\t\t\t\t}\n\t\t\t\tdb.close();\n\t\t\t\tLog.d(\"shows\",\"sno \"+sno+\"\");\n\t\t\t\t\n\t\t\t\t//NewMsg\n\t\t\t\tnameValuePairs= new ArrayList<NameValuePair>(1);\n\t\t\t\ttry{\n\t\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"id\", pref.getString(\"id\", \"\")));\n\t\t\t\t\tNewMsg newMsg=new NewMsg(con);\n\t\t\t\t\tif (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n\t\t\t\t\t\tnewMsg.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,nameValuePairs);\n\t\t\t\t\telse\tnewMsg.execute(nameValuePairs);\n\t\t\t\t}catch(Exception e){}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//new ReadMsg().execute();\n\t\t\t\t\n\t\t\t\t/*AddChat myTask = new AddChat(this);\n\t\t\t\tif (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n\t\t\t\t myTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,nameValuePairs);\n\t\t\t\telse\n\t\t\t\t myTask.execute(nameValuePairs);*/\n\t\t\t}", "@OnClick(R.id.enter_chat1)\n public void sendMessage() {\n if (getView() == null) {\n return;\n }\n EditText editText = getView().findViewById(R.id.chat_edit_text1);\n sendMessageBackend(editText.getText().toString(), utils.getChatUser());\n updateListAdapter();\n editText.setText(\"\");\n }", "private void sendUpdateConnectionInfo() {\n\n }", "public void updateChat(Object tag) {\n if (null == tag || mData.isEmpty()) {\n Logger.d(TAG, \"updateChat() invalid mData: \" + mData + \" or tag: \"\n + tag);\n return;\n }\n Set<View> viewSet = mData.keySet();\n Iterator<View> viewIterator = viewSet.iterator();\n if (viewIterator == null) {\n Logger.d(TAG, \"updateChat() The viewIterator is null\");\n return;\n }\n while (viewIterator.hasNext()) {\n View view = viewIterator.next();\n if (view == null) {\n Logger.d(TAG, \"updateChat() The view is null\");\n } else {\n Object obj = mData.get(view);\n if (obj == null) {\n Logger.d(TAG, \"updateChat() The value is null\");\n } else {\n if (obj instanceof ChatsStruct) {\n ChatsStruct chatStruct = (ChatsStruct) obj;\n if (tag.equals(chatStruct.getWindowTag())) {\n updateChats(view, chatStruct);\n } else {\n Logger.d(TAG,\n \"updateChat() not the chatStruct with the tag\"\n + tag);\n }\n } else {\n Logger.d(TAG, \"updateChat() the chat struct is \" + obj);\n }\n }\n }\n }\n }", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Long time = new Date().getTime();\n if (!dataSnapshot.exists()) {\n // Create new chats\n Chat chat1 = new Chat(mChatName, mChatPhotoUrl, mUid, mChatUserId, msg.getMessage(), time, false);\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mUid, mChatId}), chat1);\n Chat chat2 = new Chat(mUsername, mPhotoUrl, mUid, mChatUserId, msg.getMessage(), time, true);\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mChatUserId, mChatId}), chat2);\n } else {\n // update latest message for chat1\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mUid, mChatId, \"latestMessage\"}), msg.getMessage());\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mUid, mChatId, \"latestActivity\"}), time);\n\n // update latest message for chat2\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mChatUserId, mChatId, \"latestMessage\"}), msg.getMessage());\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mChatUserId, mChatId, \"latestActivity\"}), time);\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mChatUserId, mChatId, \"notified\"}), true);\n }\n\n // create new message\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.MESSAGES_CHILD, familyCode, mChatId, msg.getId()}), msg);\n\n mFirebaseDatabaseReference.updateChildren(databaseUpdates, new DatabaseReference.CompletionListener() {\n @Override\n public void onComplete(@Nullable DatabaseError databaseError, @NonNull DatabaseReference databaseReference) {\n if (databaseError == null) {\n databaseUpdates.clear();\n chatMessageForm.reset(ChatActivity.this);\n } else {\n Log.w(TAG, \"Send message failed for chat: \" + mChatId + \" for user: \" + mUid + \". \", databaseError.toException());\n Toast.makeText(ChatActivity.this, getResources().getString(R.string.error_sending_message), Toast.LENGTH_SHORT).show();\n }\n loadingDialog.hide();\n }\n });\n }", "private void update() {\n ambianceModel.ambiance.uniq_id = ambianceModel._id.$oid;\n\n RestAdapter restAdapter = new RestAdapter.Builder().setLogLevel(RestAdapter.LogLevel.FULL).setEndpoint(getResources().getString(R.string.api)).build();\n final GsonBuilder builder = new GsonBuilder();\n builder.excludeFieldsWithoutExposeAnnotation();\n builder.disableHtmlEscaping();\n final Gson gson = builder.create();\n Request r = new Request(Singleton.token, ambianceModel._id.$oid, ambianceModel);\n String json = gson.toJson(r);\n Log.v(\"Ambiance activity\", json);\n\n final Lumhueapi lumhueapi = restAdapter.create(Lumhueapi.class);\n lumhueapi.updateAmbiance(r, new Callback<AmbianceApplyResponse>() {\n @Override\n public void success(AmbianceApplyResponse ambianceApplyResponse, Response response) {\n Log.v(\"Ambiance activity\", \"It worked\");\n }\n\n @Override\n public void failure(RetrofitError error) {\n String tv = error.getMessage();\n Log.v(\"Ambiance activity\", tv + \"\");\n }\n });\n }", "private void updateChatDetails(){\n Map<String,Object> chatAddMap = new HashMap<>();\n chatAddMap.put(\"seen\",false);\n chatAddMap.put(\"timestamp\", ServerValue.TIMESTAMP);\n\n DatabaseReference chatRef = rootRef.child(\"Chat\").child(current_user.getUid()).child(chatUserId).getRef();\n //Add to Chat\n chatRef.updateChildren(chatAddMap).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.i(\"Checkkkkk\",\"ssss\");\n }\n });\n }", "void sendChat(SendChatParam param);", "private void setupChat() {\n\n\n // Initialize the array adapter for the conversation thread\n mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);\n\n mConversationView.setAdapter(mConversationArrayAdapter);\n\n // Initialize the compose field with a listener for the return key\n mOutEditText.setOnEditorActionListener(mWriteListener);\n\n // Initialize the send button with a listener that for click events\n mSendButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n // Send a message using content of the edit text widget\n View view = getView();\n if (null != view) {\n TextView textView = (TextView) view.findViewById(R.id.edit_text_out);\n String message = textView.getText().toString();\n Bundle bundle=new Bundle();\n bundle.putString(BluetoothChatFragment.EXTRAS_ADVERTISE_DATA, message);\n mCallback.onSendMessage(bundle);\n //對話框上顯示\n mConversationArrayAdapter.add(\"Me: \" + message);\n //設為不可發送 並清除訊息文字編輯區\n Send_btn=false;\n mSendButton.setEnabled(Send_btn);\n mOutStringBuffer.setLength(0);\n mOutEditText.setText(mOutStringBuffer);\n\n }\n }\n });\n\n // Initialize the buffer for outgoing messages\n mOutStringBuffer = new StringBuffer(\"\");\n }", "public void SendToAll()\r\n {\r\n AlertDialog.Builder dialog=new AlertDialog.Builder(MainActivity.this);\r\n dialog.setTitle(\"Send Message To All Users\");\r\n dialog.setIcon(R.drawable.ic_action_send) ;\r\n dialog.setMessage(\"Enter your message :\") ;\r\n final EditText input =new EditText(this);\r\n input.setHint(\"Hi !\");\r\n dialog.setView(input) ;\r\n dialog.setPositiveButton(\"Send\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n if (!TextUtils.isEmpty(input.getText()))\r\n {\r\n firebaseUser=FirebaseAuth.getInstance().getCurrentUser() ;\r\n reference=FirebaseDatabase.getInstance().getReference(\"Users\");\r\n reference.addListenerForSingleValueEvent(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\r\n for (DataSnapshot snapshot:dataSnapshot.getChildren())\r\n {\r\n final Users users=snapshot.getValue(Users.class);\r\n if (!users.getId().equals(firebaseUser.getUid()))\r\n {\r\n Calendar calendar=Calendar.getInstance() ;\r\n SimpleDateFormat format=new SimpleDateFormat(\"HH:mm\") ;\r\n String time=format.format(calendar.getTime()) ;\r\n String key = reference.child(\"Chats\").push().getKey() ;\r\n HashMap<String,Object>hashMap=new HashMap<>();\r\n hashMap.put(\"sender\",firebaseUser.getUid());\r\n hashMap.put(\"receiver\",users.getId());\r\n hashMap.put(\"message\",input.getText().toString());\r\n hashMap.put(\"id\",key);\r\n hashMap.put(\"time\",time);\r\n hashMap.put(\"isseen\",false) ;\r\n reference=FirebaseDatabase.getInstance().getReference(\"Chats\") ;\r\n reference.child(key).setValue(hashMap) ;\r\n final DatabaseReference chatRef=FirebaseDatabase.getInstance().getReference(\"chatlist\").child(firebaseUser.getUid()).child(users.getId());\r\n chatRef.addListenerForSingleValueEvent(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\r\n if(!dataSnapshot.exists())\r\n {\r\n chatRef.child(\"id\").setValue(users.getId());\r\n }\r\n }\r\n\r\n @Override\r\n public void onCancelled(@NonNull DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n @Override\r\n public void onCancelled(@NonNull DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n }\r\n\r\n }\r\n });\r\n dialog.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.cancel();\r\n }\r\n });\r\n dialog.show();\r\n }", "public void sendMessage(String msg) {\n\n if (msg != null && !msg.isEmpty()) {\n\n RestResponse.BotMessage botMessage = new RestResponse.BotMessage(msg);\n\n RestResponse.BotPayLoad botPayLoad = new RestResponse.BotPayLoad();\n botPayLoad.setMessage(botMessage);\n\n Gson gson = new Gson();\n String jsonPayload = gson.toJson(botPayLoad);\n\n BotRequestPool.getBotRequestStringArrayList().add(jsonPayload);\n }\n\n if (!BotRequestPool.isPoolEmpty()) {\n if (!BotRequestPool.getBotRequestStringArrayList().isEmpty()) {\n ArrayList<String> botRequestStringArrayList = BotRequestPool.getBotRequestStringArrayList();\n int len = botRequestStringArrayList.size();\n for (int i = 0; i < len; i++) {\n String botRequestPayload = botRequestStringArrayList.get(i);\n boolean wasSuccessfullySend = SocketWrapper.getInstance(mContext).sendMessage(botRequestPayload);\n if (wasSuccessfullySend) {\n BotRequestPool.getBotRequestStringArrayList().remove(botRequestPayload);\n i--; //reset the parameter\n len--; //reset the length.\n } else {\n break;//Break the loop, as re-connection would be attempted from sendMessage(...)\n }\n }\n }\n }\n }", "private void updateDatabase(String messageText)\n {\n HashMap<String, ChatData> mapThis = new HashMap<>();\n ChatData thisData = new ChatData(thisUsername, otherUsername, otherUid, messageText, thisPhoto, otherPhoto, new Date());\n thisData.setRead(true);\n mapThis.put(otherUid, thisData);\n FirebaseFirestore.getInstance().collection(\"chats\").document(thisUid).set(mapThis, SetOptions.merge());\n \n HashMap<String, ChatData> mapOther = new HashMap<>();\n ChatData otherData = new ChatData(otherUsername, thisUsername, thisUid, messageText, otherPhoto, thisPhoto, new Date());\n mapOther.put(thisUid, otherData);\n FirebaseFirestore.getInstance().collection(\"chats\").document(otherUid).set(mapOther, SetOptions.merge());\n \n Map<String, String> map = new HashMap<>();\n map.put(\"message\", messageText);\n map.put(\"user\", thisUsername);\n reference.push().setValue(map);\n messageArea.setText(\"\");\n \n new Notification(otherUid, thisUsername, Notification.NOTIFICATION_CHAT, messageText, this);\n }", "private void sendMessage(final String send, final String receive, String message){\n\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference();\n final String[] sendName = {\"\"};\n final String[] receiveName = {\"\"};\n\n HashMap<String,Object> hashMap = new HashMap<>();\n\n DatabaseReference userRef = FirebaseDatabase.getInstance().getReference(\"Users\");\n userRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for(DataSnapshot ds : dataSnapshot.getChildren()) {\n String uid = ds.getKey();\n if(uid.equals(send)) sendName[0] = ds.getValue(User.class).getName();\n else if(uid.equals(receive)) receiveName[0] = ds.getValue(User.class).getName();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n\n Chat message1 = new Chat(send, sendName[0], receive, receiveName[0], message);\n\n ref.child(\"chats\").push().setValue(message1);\n }", "public void getNewEvents(String username ,String sync){\n\t\tusername=\"frfsamb\";\n\t\tsync=null;\n\t\ttry {\n\t\t\tHttpClient httpclient = new DefaultHttpClient(Utils.getHttpParams());\n\t\t\tHttpPost httppost = new HttpPost(Utils.SERVICE_URL_SYNC_NEW_EVENTS);\n\t\t\tList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);\n\t\t\tnameValuePairs.add(new BasicNameValuePair(\"username\", username));\n\t\t\tnameValuePairs.add(new BasicNameValuePair(\"sync\", sync));\n\t\t\thttppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\t\t\tHttpResponse response = httpclient.execute(httppost);\n\t\t\tHttpEntity entity = response.getEntity();\n\t\t\tInputStream is = entity.getContent();\n\t\t\tint ch;\n\t\t\tStringBuffer b = new StringBuffer();\n\t\t\twhile ((ch = is.read()) != -1) {\n\t\t\t\tb.append((char) ch);\n\t\t\t}\n\t\t\tString s = b.toString();\n\t\t\tis.close();\n\t\t\t// PARSE JSON RESPONSE\n\t\t\tJSONObject jso = new JSONObject(s);\t\n\t\t\tif (jso.getInt(\"id_evenement\")==0) {\n\t\t\t\tLog.i(getClass().getSimpleName(), \"NO DATA TO SYNC FOUND!!!\");\n\t\t\t} else {\n\t\t\t\tLog.i(getClass().getSimpleName(), \"DATA TO SYNC FOUND!!!\"+jso.getString(\"evenement_datedebutvalidite\"));\n\t\t\t\t\n\t\t\t\tDatabaseConnector dbConnector = new DatabaseConnector(sharedContext);\n\t\t\t\tdbConnector.open();\n\t\t\t\tdbConnector.insertFromRest(jso.getInt(\"id_evenement\"), jso.getString(\"evenement_libelle\"), jso.getString(\"evenement_datedebutvalidite\"),\n\t\t\t\t\t\tjso.getString(\"evenement_datefinvalidite\"), jso.getString(\"evenement_datedebut\"), jso.getString(\"evenement_datefin\"),\n\t\t\t\t\t\tjso.getString(\"evenement_heuredebut\"), jso.getString(\"evenement_heurefin\"), jso.getString(\"evenement_detail\"), jso.getString(\"evenement_nomfichier\"),\n\t\t\t\t\t\tjso.getString(\"evenement_priorite\"), jso.getString(\"evenement_stpdatemodif\"), jso.getString(\"evenement_stpdatecrea\"),\n\t\t\t\t\t\tjso.getString(\"evenement_stputilcrea\"), jso.getString(\"evenement_stputilmodif\"), jso.getString(\"evenement_stpstatut\"),\n\t\t\t\t\t\tjso.getString(\"evenement_stpdatepubli\"), jso.getString(\"evenement_stputilpubli\"), jso.getString(\"evenement_sync\"), jso.getString(\"evenement_deleted\"));\n\t\t\t\tdbConnector.close();\n\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.i(getClass().getSimpleName(), \"SYNC ERROR!!!\"+e.getMessage());\n\t\t}\n\t}", "private void publish(String deviceAddress)\n {\n if(mMqttServiceBound)\n {\n try\n {\n TexTronicsDevice device = mTexTronicsList.get(deviceAddress);\n if(device != null)\n {\n // Get the byte array from the CSV file stored in the device\n byte[] buffer = IOUtil.readFile(device.getCsvFile());\n // Create a new string using device info and new byte array\n String json = MqttConnectionService.generateJson(device.getDate(),\n device.getDeviceAddress(),\n Choice.toString(device.getChoice()),\n device.getExerciseID(),\n device.getRoutineID(),\n new String(buffer));\n Log.d(\"SmartGlove\", \"JSON: \" + json);\n // Call the service to publish this string, now in JSON format\n mMqttService.publishMessage(json);\n String exe_nm = MainActivity.exercise_name;\n\n List<Integer> ids = new ArrayList<>();\n try{\n ids = UserRepository.getInstance(getApplicationContext()).getAllIdentities();\n }\n catch (Exception e){\n Log.e(TAG, \"onCreate: \", e);\n }\n\n int current = ids.size();\n\n Log.d(TAG, \"UpdateData: logging the data\");\n\n if (exe_nm.equals(\"Finger_Tap\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finTap_left(json,current);\n }\n else if (exe_nm.equals(\"Closed_Grip\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_opCl_left(json,current);\n }\n else if (exe_nm.equals(\"Hand_Flip\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_h_flip_left(json,current);\n }\n else if (exe_nm.equals(\"Finger_to_Nose\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finNose_left(json,current);\n }\n else if (exe_nm.equals(\"Hold_Hands_Out\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handout_left(json,current);\n }\n else if (exe_nm.equals(\"Resting_Hands_on_Thighs\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handrest_left(json,current);\n }\n else if (exe_nm.equals(\"Finger_Tap\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finTap_right(json,current);\n }\n else if (exe_nm.equals(\"Closed_Grip\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_opCl_right(json,current);\n }\n else if (exe_nm.equals(\"Hand_Flip\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_h_flip_right(json,current);\n }\n else if (exe_nm.equals(\"Finger_to_Nose\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finNose_right(json,current);\n }\n else if (exe_nm.equals(\"Hold_Hands_Out\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handout_right(json,current);\n }\n else if (exe_nm.equals(\"Resting_Hands_on_Thighs\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handrest_right(json,current);\n }\n else if (exe_nm.equals(\"Heel_Stomp\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_heelStmp_right(json,current);\n }\n else if (exe_nm.equals(\"Toe_Tap\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_toeTap_right(json,current);\n }\n else if (exe_nm.equals(\"Walk_Steps\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_gait_right(json,current);\n }\n else if (exe_nm.equals(\"Heel_Stomp\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_heelStmp_left(json,current);\n }\n else if (exe_nm.equals(\"Toe_Tap\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_toeTap_left(json,current);\n }\n else if (exe_nm.equals(\"Walk_Steps\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_gait_left(json,current);\n }\n }\n else {\n Log.d(TAG, \"publish: Publish failed. Device is null\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public void getContempt() {\n Call<List<Chat>> call = jsonPlaceHolderApi.getContempt();\n call.enqueue(new Callback<List<Chat>>() {\n @Override\n public void onResponse(Call<List<Chat>> call, Response<List<Chat>> response) {\n //not successful\n if (!response.isSuccessful()) {\n Toast.makeText(getContext().getApplicationContext(), response.code(), Toast.LENGTH_LONG).show();\n return;\n }\n //get data\n chat = response.body();\n //Toast.makeText(getContext().getApplicationContext(), chat.get(r).getText(), Toast.LENGTH_LONG).show();\n ai.setText(chat.get(r).getText());\n\n }\n @Override\n public void onFailure(Call<List<Chat>> call, Throwable t) {\n Toast.makeText(getContext().getApplicationContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "@Dao\npublic interface ChatDao {\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long Add(ChatPojo chatPojo);\n\n @Query(\"select * from ChatPojo where chatId = :chatId\")\n LiveData<List<ChatPojo>> getAll(String chatId);\n\n @Query(\"select * from ChatPojo WHERE groupId IN (:groupIds) GROUP BY groupId ORDER BY chatTimestamp DESC\")\n LiveData<List<ChatPojo>> getRecentGroupChatAll(List<String> groupIds);\n\n\n @Query(\"select * from ChatPojo WHERE chatId IN (:ids) GROUP BY chatId ORDER BY chatTimestamp DESC\")\n LiveData<List<ChatPojo>> getRecentChatAll(List<String> ids);\n\n @Query(\"select DISTINCT chatId from ChatPojo\")\n List<String> getRecentChatUserList();\n\n @Query(\"select DISTINCT groupId from GroupPojo\")\n List<String> getGroupIdList();\n\n @Query(\"select * from ChatPojo where chatId = :chatId and isShowing = 0 ORDER BY chatTimestamp DESC limit 1\")\n LiveData<ChatPojo> getSingleLast(String chatId);\n\n// @Query(\"select * from ChatPojo \")\n// LiveData<List<ChatPojo>> getAll();\n /*@Query(\"select * from ChatPojo WHERE groupId = :groupId \")\nContactListResponse.ResponseDataBean getSingle(String groupId);*/\n\n @Delete\n int singledelete(ChatPojo chatPojo);\n\n @Query(\"select DISTINCT chatRecv from ChatPojo\")\n List<String> getChatUserList();\n\n @Query(\"select DISTINCT chatRecv from ChatPojo\")\n List<String> getChatUserSendList();\n\n @Query(\"select * from ChatPojo where chatId = :username ORDER BY chatTimestamp DESC\")\n ChatPojo getlastmsg(String username);\n\n @Query(\"select COUNT(isShowing) from ChatPojo where chatId = :chatId and isShowing = 0\")\n String unseenmsgCount(String chatId);\n\n @Query(\"UPDATE ChatPojo SET isShowing = 1 where chatId = :chatId\")\n void updateIsShowing(String chatId);\n\n\n @Query(\"DELETE FROM ChatPojo\")\n void deleteTbl();\n\n @Query(\"select * from ChatPojo \" +\n \" INNER JOIN UserPojo ON ChatPojo.chatId == UserPojo.username\" +\n \" where UserPojo.displayname LIKE :message OR ChatPojo.chatText LIKE :message GROUP BY chatId ORDER BY chatTimestamp DESC\")\n List<ChatPojo> search(String message);\n\n}", "public void sync()\n {\n setAutoSync(false);\n // simply send sync command\n super.executionSync(Option.SYNC);\n }", "private void setupChat() {\n // Initialize the array adapter for the conversation thread\n mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);\n\n //\n mFlashButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n sendMessage((byte)Constants.FLASH,(byte)Constants.LED3);\n\n }\n }\n });\n mLightButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n sendMessage((byte)Constants.FLASH,(byte)Constants.LED2);\n }\n }\n });\n mN1FlashButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n sendMessage((byte)Constants.CLEARMEMORY,(byte)Constants.NODE1);\n }\n }\n });\n mN2FlashButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n sendMessage((byte)Constants.BUSSIGNAL,(byte)Constants.NODE2);\n }\n }\n });\n\n updateLightSensorValuesButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n updateLightSensorValues();\n }\n }\n });\n downloadDataButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view)\n {\n sendMessage((byte)Constants.READMEMORY,(byte)0);\n dataStream.clear();\n }\n }\n });\n\n\n // Initialize the BluetoothChatService to perform bluetooth connections\n mChatService = new BluetoothChatService(getActivity(), mHandler);\n\n // Initialize the buffer for outgoing messages\n mOutStringBuffer = new StringBuffer(\"\");\n }", "private static void sendMessageToAll(Message msg) throws IOException, EncodeException {\n String jsonStr = JSON.toJSONString(msg);\n\n for (String key : onlineSessions.keySet()) {\n System.out.println(\"WebSocketChatServer - Message \" + jsonStr + \" sent to client with username \" + key + \" and session \" + onlineSessions.get(key));\n System.out.println(key + \" : \" + onlineSessions.get(key));\n try {\n onlineSessions.get(key).getBasicRemote().sendObject(msg);\n } catch (IOException | EncodeException error) {\n error.printStackTrace();\n }\n }\n }", "public interface Chat {\n UUID getChatId();\n void setChatId(UUID chatId);\n UUID getObjectId();\n void setObjectId(UUID objectId);\n String getLocalActorType();\n void setLocalActorType(String localActorType);\n String getLocalActorPublicKey();\n void setLocalActorPublicKey(String localActorPublicKey);\n String getRemoteActorType();\n void setRemoteActorType(String remoteActorType);\n String getRemoteActorPublicKey();\n void setRemoteActorPublicKey(String remoteActorPublicKey);\n String getChatName();\n void setChatName(String chatName);\n ChatStatus getStatus();\n void setStatus(ChatStatus status);\n Date getDate();\n void setDate(Date date);\n Date getLastMessageDate();\n void setLastMessageDate(Date lastMessageDate);\n}", "public void updateData() {}", "private void sync() {\n new AsyncTask<Void, Void, Void>() {\n ProgressDialog progressDialog;\n\n @Override\n protected void onPreExecute() {\n progressDialog = ProgressDialog.show(\n PostActivity.this, \"\", getString(R.string.loading));\n }\n\n @Override\n protected Void doInBackground(Void... params) {\n try {\n new PostBusiness().updateAll();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n @Override\n protected void onPostExecute(Void aVoid) {\n progressDialog.dismiss();\n postFragment.updateList();\n }\n }.execute();\n }", "public void sendMessage(CharSequence text, String conversation)\n {\n String user = currentUId();\n Map<String, Object> map = new HashMap<>();\n map.put(\"user\", user);\n map.put(\"time\", ServerValue.TIMESTAMP);\n map.put(\"text\", text.toString());\n Map<String, Object> read = new HashMap<>();\n read.put(user, true);\n map.put(\"read\", read);\n rootRef.child(\"messaging/\" + conversation).push().setValue(map, ServerValue.TIMESTAMP);\n }", "@Override\n protected String doInBackground(String... params) {\n Map<String, String> payload = new HashMap<String, String>();\n DBHelper db = new DBHelper(context);\n List<Channel> channels = db.getAllChannels();\n String channelString = \"[\";\n for (Channel ch: channels) {\n if(sharedPreferences.getBoolean(\"channel_\"+ch.id,false)){\n channelString += \"\"+ch.id+\",\";\n }\n }\n if(!channelString.equals(\"[\"))\n channelString = channelString.substring(0,channelString.length()-1);\n\n channelString += \"]\";\n Log.d(TAG,channelString);\n // get device IMEI number\n TelephonyManager mngr = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n String IMEI = \"UNKNOWN\";\n try {\n IMEI = mngr.getDeviceId();\n }catch(Exception e){\n Log.d(TAG,\"Unable to get IMEI\");\n }\n\n payload.put(\"channels\", channelString);\n payload.put(\"IMEI\", IMEI);\n payload.put(\"token\", sharedPreferences.getString(NoticeBoardPreferences.GCM_TOKEN,\"NULL\"));\n String url = NoticeBoardPreferences.URL_SYNC_DB;\n\n NetworkHandler nh = new NetworkHandler(payload, url);\n String result = nh.callServer();\n if(result.equals(\"No response\")){\n pd.dismiss();\n this.cancel(true);\n }\n Log.d(TAG, result);\n\n JSONHandler json = new JSONHandler(result);\n if(json.jsonObject == null){\n Toast.makeText(context,\"Server Error!!!\",Toast.LENGTH_LONG).show();\n cancel(true);\n }\n\n notices = new ArrayList<Notice>();\n channels = new ArrayList<Channel>();\n JSONArray notes = json.getArray(\"notices\");\n\n for (int i = 0; i < notes.length(); i++) {\n try {\n notices.add(new JSONHandler(notes.getString(i)).getNotice());\n } catch (JSONException e) {\n Log.d(TAG, \"JSONException > \" + notes.toString());\n }\n }\n\n JSONArray chans = json.getArray(\"channels\");\n for (int i = 0; i < chans.length(); i++) {\n try {\n channels.add(new JSONHandler(chans.getString(i)).getChannel());\n } catch (JSONException e) {\n Log.d(TAG, \"JSONException > \" + chans.toString());\n }\n }\n\n db.onUpgrade(db.getWritableDatabase(), 1, 1);\n\n for (Notice n : notices) {\n db.insertNotice(n);\n }\n\n for (Channel ch : channels) {\n if(firstRun){\n ch.getAndSetImage(context);\n }\n db.insertChannel(ch);\n }\n\n NoticeBoardPreferences.channels = channels;\n Collections.reverse(notices);\n\n return null;\n }", "@PutMapping(value=\"/chat/{id}/{userName}/{sentence}\")\n\t\tpublic ResponseEntity<Chat> newChat (@PathVariable long id, @PathVariable String userName, @PathVariable String sentence) {\n\t\t\tif(lobbies.get(id)!=null) {\n\t\t\t\tif(lobbies.get(id).getUser1()!=null) {\n\t\t\t\t\tif(lobbies.get(id).getUser1().getUserName().equals(userName)) {\n\t\t\t\t\t\t//Añadir el chat al lobby que se solicita\n\t\t\t\t\t\tChat chat = new Chat(sentence,userName);\n\t\t\t\t\t\tif(lobbies.get(id).getMummy().equals(userName)) {\n\t\t\t\t\t\t\tchat.setCharacter(\"Mummy\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(lobbies.get(id).getPharaoh().equals(userName)) {\n\t\t\t\t\t\t\tchat.setCharacter(\"Pharaoh\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlobbies.get(id).addChat(chat);\n\t\t\t\t\t\n\t\t\t\t\treturn new ResponseEntity<>(chat, HttpStatus.OK);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(lobbies.get(id).getUser2()!=null) {\n\t\t\t\t\tif(lobbies.get(id).getUser2().getUserName().equals(userName)) {\n\t\t\t\t\t\t//Añadir el chat al lobby que se solicita\n\t\t\t\t\t\tChat chat = new Chat(sentence,userName);\n\t\t\t\t\t\tif(lobbies.get(id).getMummy().equals(userName)) {\n\t\t\t\t\t\t\tchat.setCharacter(\"Mummy\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(lobbies.get(id).getPharaoh().equals(userName)) {\n\t\t\t\t\t\t\tchat.setCharacter(\"Pharaoh\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlobbies.get(id).addChat(chat);\n\t\t\t\t\t\n\t\t\t\t\treturn new ResponseEntity<>(chat, HttpStatus.OK);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\t}else {\n\t\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t}", "private void sendUpdates() {\n\n List<PeerUpdateMessage.Part> parts = new ArrayList<PeerUpdateMessage.Part>();\n for (ActivePlayer peer : player.getSavedNeighbors()) {\n PeerUpdateMessage.Part part = new PeerUpdateMessage.Part(\n peer.character.id, peer.character.getExtrapolatedMotionState());\n parts.add(part);\n }\n\n if (!parts.isEmpty()) {\n PeerUpdateMessage msg = new PeerUpdateMessage(parts);\n new ToClientMessageSink(player.session).sendWithoutConfirmation(msg);\n }\n }", "public void receive()\n {\n //Client receives a message: it finds out which type of message is and so it behaves differently\n //CHAT message: prints the message in the area\n //CONNECT message: client can't receive a connect message from the server once it's connected properly\n //DISCONNECT message: client can't receive a disconnect message from the server\n //USER_LIST message: it shows the list of connected users\n try\n {\n String json = inputStream.readLine();\n\n switch (gson.fromJson(json, Message.class).getType())\n {\n case Message.CHAT:\n ChatMessage cmsg = gson.fromJson(json, ChatMessage.class);\n\n if(cmsg.getReceiverClient() == null)\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO ALL): \" + cmsg.getText() + \"\\n\");\n else\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO YOU): \" + cmsg.getText() + \"\\n\");\n break;\n case Message.CONNECT:\n //Send login nickname and wait for permission to join\n //if message code is 1, nickname is a duplicate and must be changed, then login again\n //(send call is inside button event)\n ConnectMessage comsg = gson.fromJson(json, ConnectMessage.class);\n\n if(comsg.getCode() == 1)\n {\n //Show error\n ChatGUI.getInstance().getLoginErrorLabel().setVisible(true);\n }\n else\n {\n //Save nickname\n nickname = ChatGUI.getInstance().getLoginField().getText();\n\n //Hide this panel and show main panel\n ChatGUI.getInstance().getLoginPanel().setVisible(false);\n ChatGUI.getInstance().getMainPanel().setVisible(true);\n }\n break;\n case Message.USER_LIST:\n UserListMessage umsg2 = gson.fromJson(json, UserListMessage.class);\n fillUserList(umsg2);\n break;\n }\n } \n catch (JsonSyntaxException | IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "@Override\n\t\tpublic void onMessage(String msg) {\n\t\t\tif(msg.equals(\"update\")) {\n\t\t\t\tAuctionList al = new AuctionList();\n\t\t\t\tal.refreshAuction();\n\t\t\t}\n\t\t\tfor (ChatWebSocket member : webSockets) {\n\t\t try {\n\t\t member.connection.sendMessage(msg);\n\t\t \n\t\t } catch(IOException e) {\n\t\t \te.printStackTrace();\n\t\t }\n\t\t }\n\t\t}", "@Override\n public void run() {\n syncToServer();\n }", "private void updateChatAttendees() {\n if (updateChatAttendeeIdList.size() == 1) { //size()==0 indicates user has been dropped\n Toast.makeText(this, R.string.error_chat_participant, Toast.LENGTH_LONG).show();\n return;\n }\n ArrayList<String> dropAttendeeIdList = new ArrayList<>();\n dropAttendeeIdList.addAll(chatAttendeeIdList);\n dropAttendeeIdList.removeAll(updateChatAttendeeIdList);\n ArrayList<String> addAttendeeIdList = new ArrayList<>();\n addAttendeeIdList.addAll(updateChatAttendeeIdList);\n addAttendeeIdList.removeAll(chatAttendeeIdList);\n if (addAttendeeIdList.isEmpty() && dropAttendeeIdList.isEmpty()) { //no changes\n return;\n }\n\n if (!chat.creatorId.equals(myId)) {\n Toast.makeText(this, R.string.only_creator_change_attendee, Toast.LENGTH_LONG).show();\n return;\n }\n\n if (!dropAttendeeIdList.isEmpty()) {\n String message = null;\n switch (httpServerManager.dropConversationAttendees(conversationId, dropAttendeeIdList)) {\n case 3: //ok\n break;\n case 1: //no user\n message = \"Cannot find one or more participants in database\";\n break;\n case 4:\n message = \"Cannot find chat with id: \" + conversationId + \"in database\";\n break;\n case -1:\n message = \"Server error. Please try again\";\n //TODO: mark Conversation_Attendees table as Sync_Needed\n break;\n }\n if (message != null) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n return;\n }\n }\n\n if (!addAttendeeIdList.isEmpty()) {\n // save unregistered attendees (those with negative ids)\n for (int j = 0; j < addAttendeeIdList.size(); j++) {\n String attendeeId = addAttendeeIdList.get(j);\n if (attendeeId.startsWith(\"-\")) {\n Attendee attendee = null;\n for (int i = 0; i < chat.attendees.size(); i++) {\n if (attendeeId.equals(chat.attendees.get(i).id)) {\n attendee = chat.attendees.get(i);\n break;\n }\n }\n if (attendee == null || !conversationManager.saveUnregisteredAttendee(attendee)) {\n Toast.makeText(this, R.string.error_create_chat, Toast.LENGTH_SHORT).show();\n return;\n }\n\n chatAttendeeIdList.add(attendee.id);\n updateChatAttendeeIdList.remove(attendeeId);\n updateChatAttendeeIdList.add(attendee.id);\n addAttendeeIdList.set(j, attendee.id);\n }\n }\n String message = null;\n switch (httpServerManager.addConversationAttendees(conversationId, addAttendeeIdList)) {\n case 3: //ok\n break;\n case 1: //no user\n message = \"Cannot find one or more users in database\";\n break;\n case 4:\n message = \"Cannot find chat with id: \" + conversationId + \"in database\";\n break;\n case -1:\n message = \"Server unavailable. Please check your network connection\";\n //TODO: mark Conversation_Attendees table as Sync_Needed\n break;\n }\n if (message != null) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n return;\n }\n }\n\n //notify dropped chat attendees\n if (!dropAttendeeIdList.isEmpty()) {\n chatServerManager.dropConversationAttendees(myId, conversationId, dropAttendeeIdList, chatAttendeeIdList);\n }\n\n //notifiy existing chat attendees of new users and new users to start chat\n if (!addAttendeeIdList.isEmpty()) {\n List<String> recipients = new ArrayList<>();\n recipients.addAll(updateChatAttendeeIdList);\n recipients.removeAll(addAttendeeIdList);\n chatServerManager.addConversationAttendees(myId, conversationId, addAttendeeIdList, recipients);\n chatServerManager.startConversation(myId, conversationId, addAttendeeIdList);\n }\n }", "public static void main(String[] args) {\n ChatHandler.setRepository(repository);\n webSocket(\"/chat\", ChatHandler.class);\n\n // this is only necessary for cross site development\n options(\"/*\", ((request, response) -> allowCrossOriginRequests(response)));\n\n // get all known chat rooms\n get(\"/chatRoom\", ((request, response) -> {\n List<ChatRoom> chatRooms = repository.getChatRooms();\n Either<Exception, String> jsonChatRooms = dataToJson(chatRooms);\n return createResponse(response, jsonChatRooms);\n }));\n\n // get chat history for a chat room\n get(\"/chatRoom/:chatRoomId\", ((request, response) -> {\n String id = getParameter(request, \":chatRoomId\");\n Optional<ChatRoom> chatRoom = findChatRoom(id);\n Optional<MessageLog> messageLog = chatRoom.map(cr -> repository.getMessageLog(cr));\n Either<Exception, Optional<String>> jsonMessageLog = dataToJson(messageLog);\n return createOptionalResponse(response, jsonMessageLog);\n }));\n\n // delete chat room including history\n delete(\"/chatRoom/:chatRoomId\", ((request, response) -> {\n String id = getParameter(request, \":chatRoomId\");\n Optional<ChatRoom> chatRoom = findChatRoom(id);\n chatRoom.ifPresent(cr -> repository.deleteChatRoom(cr));\n Either<Exception, Optional<String>> result = Either.right(chatRoom.map(x -> \"\"));\n return createOptionalResponse(response, result);\n }));\n\n // make a participant known to the system and return its id back to the caller\n post(\"/participant\", ((request, response) -> {\n Either<Exception, Participant> participant = jsonToData(request.body(), Participant.class);\n if (participant.isRight()) {\n String id = repository.addParticipant(participant.get());\n Either<Exception, String> jsonId = participant.map(p -> '\"' + id + '\"');\n return createResponse(response, jsonId);\n }\n else {\n return createResponse(response, participant.map(p -> \"\"));\n }\n }));\n\n // gets the Id of an existing participant. A poor mans login.\n get(\"/participant/:participantName\", ((request, response) -> {\n String participantName = getParameter(request, \":participantName\");\n Optional<Participant> knownParticipant = repository.login(participantName);\n Either<Exception, Optional<String>> result = dataToJson(knownParticipant);\n return createOptionalResponse(response, result);\n }));\n\n // make a chat room known to the system and return its id back to the caller\n post(\"/chatRoom\", ((request, response) -> {\n Either<Exception, ChatRoom> chatRoom = jsonToData(request.body(), ChatRoom.class);\n if (chatRoom.isRight()) {\n String id = repository.addChatRoom(chatRoom.get());\n Either<Exception, String> jsonId = chatRoom.map(c -> '\"' + id + '\"');\n return createResponse(response, jsonId);\n }\n else {\n return createResponse(response, chatRoom.map(c -> \"\"));\n }\n }));\n }", "public void syncChannel() {\r\n\t\tarrChannels.clear(); // I want to make sure that there are no leftover data inside.\r\n\t\tfor(int i = 0; i < workChannels.size(); i++) {\r\n\t\t\tarrChannels.add(workChannels.get(i));\r\n\t\t}\r\n\t}", "private void broadcastData(String data, User currentUser) throws IOException {\n Set<User> keySet = connectedUsers.keySet();\n int count = 0;\n\n for (User temp : keySet) {\n if (temp.equals(currentUser)) {\n continue;\n }\n\n SocketChannel socketChannel = connectedUsers.get(temp);\n OperationHandler.sendData(socketChannel, currentUser.getUserName() + \": \" + data);\n count++;\n }\n\n // Send feedback to the user.\n SocketChannel socketChannel = connectedUsers.get(currentUser);\n OperationHandler.sendData(socketChannel, String.format(Constants.MESSAGE_SENT, count));\n }", "protocol.ChatData.ChatItem getChatData();", "private void setupChat() {\n chatService = new BluetoothChatService(NavigationDrawerActivity.this, mHandler);\n\n }", "private void groupChatSend(UserLogic t) {\n if(((String) UI.getContacts().getSelectedValue()).equals( groupChat)){\r\n if (t != UserLogic.this && t != null) { //Sending to other users chat\r\n if(((String)t.UI.getContacts().getSelectedValue()).equals(groupChat)) {\r\n t.UI.getProperList().addElement(username + \"> \" + UI.getMessage().getText());\r\n t.UI.getContacts().setCellRenderer(clearNotification);\r\n }\r\n else{\r\n t.UI.getContacts().setCellRenderer(setNotification);\r\n }\r\n if(t.chats.containsKey(groupChat)){\r\n ArrayList<String> arrayList = t.chats.get(groupChat);\r\n arrayList.add(username + \"> \" + UI.getMessage().getText());\r\n t.chats.put(groupChat, arrayList);\r\n }\r\n else {\r\n ArrayList<String> arrayList = new ArrayList<>();\r\n arrayList.add(username + \"> \" + UI.getMessage().getText());\r\n t.chats.put(groupChat, arrayList);\r\n }\r\n }\r\n\r\n if(t == UserLogic.this && t!=null){ //Send to my screen\r\n UI.getProperList().addElement(\"Me> \" + UI.getMessage().getText());\r\n if(chats.containsKey(groupChat)){ //Database group chat exists\r\n ArrayList<String> arrayList = chats.get(groupChat);\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(groupChat, arrayList);\r\n }\r\n else {\r\n ArrayList<String> arrayList = new ArrayList<>();\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(groupChat, arrayList);\r\n }\r\n }\r\n }\r\n }", "abstract public void sendData(Account account, SyncResult syncResult) throws Exception;", "public void sendDataToDB() throws JSONException, InstantiationException, IllegalAccessException, ClassNotFoundException, UnirestException, ParseException {\r\n\t\t\r\n\t\tArrayList<HashMap<String, String>> dataSet = new ArrayList<>();\r\n\t\t\r\n\t\tfor (int i = 0; i < dataArray.length(); i++) {\r\n\t\t\tHashMap<String, String> jsonObject = new HashMap<String, String>();\r\n\t\t\tjsonObject.put(\"id\" ,dataArray.getJSONObject(i).get(\"id\").toString());\r\n\t\t\tjsonObject.put(\"name\", dataArray.getJSONObject(i).get(\"name\").toString());\r\n\t\t\tjsonObject.put(\"free_bikes\", dataArray.getJSONObject(i).get(\"free_bikes\").toString());\r\n\t\t\tjsonObject.put(\"timestamp\", changeTimeStamptoUnixTimeString(dataArray.getJSONObject(i).get(\"timestamp\").toString()));\r\n\t\t\tjsonObject.put(\"latitude\", dataArray.getJSONObject(i).get(\"latitude\").toString());\r\n\t\t\tjsonObject.put(\"longitude\", dataArray.getJSONObject(i).get(\"longitude\").toString());\r\n\r\n\t\t\tdataSet.add(jsonObject);\r\n\t\t}\r\n\t\t\r\n\t\t// Send whole data to DBService\r\n\t\tUnirest.post(\"http://stadtraddbservice:6000/newData\")\r\n\t\t//Unirest.post(\"http://localhost:6000/newData\") // Fuer lokalen Test\r\n\t\t .body(new Gson().toJson(dataSet))\r\n\t\t .asString();\r\n\t}", "private void createNewChat() {\n if (advertisement.getUniqueOwnerID().equals(dataModel.getUserID())) {\n view.showCanNotSendMessageToYourselfToast();\n return;\n }\n\n dataModel.createNewChat(advertisement.getUniqueOwnerID(), advertisement.getOwner(), advertisement.getUniqueID(),\n advertisement.getImageUrl(), chatID -> view.openChat(chatID));\n }", "private void sendAddFBAndChatInfoToServer(String fbid) {\n \tSBHttpRequest chatServiceAddUserRequest = new ChatServiceCreateUser(fbid);\r\n \tSBHttpClient.getInstance().executeRequest(chatServiceAddUserRequest);\r\n\t\tSBHttpRequest sendFBInfoRequest = new SaveFBInfoRequest(ThisUserConfig.getInstance().getString(ThisUserConfig.USERID), fbid, ThisUserConfig.getInstance().getString(ThisUserConfig.FBACCESSTOKEN));\r\n\t\tSBHttpClient.getInstance().executeRequest(sendFBInfoRequest);\t\t\t\r\n\t}", "private void syncWithServer() {\n if (!mIsActivityResumedFromSleep) {\n LogHelper\n .log(TAG, \"Activity is not resuming from sleep. So service initialization will handle xmpp login.\");\n return;\n }\n RobotCommandServiceManager.loginXmppIfRequired(getApplicationContext());\n }", "public void Sync_Voting_Data() {\n progressdial();\n Thread T2 = new Thread() {\n @Override\n public void run() {\n try {\n if (!db.isOpen())\n db = openOrCreateDatabase(\"MDA_Club\", SQLiteDatabase.CREATE_IF_NECESSARY, null);\n\n String SqlQry = \"Select OP2_ID,User_Ans,Remark from C_\" + ClientId + \"_OP3 Where OP1_ID=\" + Mid + \" AND Submit=1 AND SyncID=1 Order by OP2_ID\";\n Cursor cursorT = db.rawQuery(SqlQry, null);\n String UAns, Remark, SData = \"\";\n int Op2Id;\n while (cursorT.moveToNext()) {\n Op2Id = cursorT.getInt(0);\n UAns = chkval(cursorT.getString(1));\n Remark = chkval(cursorT.getString(2));\n SData = SData + Op2Id + \"^\" + UAns + \"^\" + Remark + \"@@\";\n }\n cursorT.close();\n\n\n if (SData.length() > 2) {\n SData = SData.substring(0, SData.length() - 2);\n\n String TempMS = \"M\";\n if (UserType.equals(\"SPOUSE\")) {\n TempMS = \"S\";\n }\n\n SData = LogId + \"#\" + TempMS + \"#\" + Mid + \"#\" + SData + \"#\" + GPSLoc;\n\n WebServiceCall webcall = new WebServiceCall();\n WebResult = webcall.Sync_OpinionPoll_MS(ClientId, SData);\n if (WebResult.contains(\"Saved\")) {\n SqlQry = \"Update C_\" + ClientId + \"_OP3 Set SyncID=0 Where OP1_ID=\" + Mid;\n db.execSQL(SqlQry);\n } else {\n SqlQry = \"Delete from C_\" + ClientId + \"_OP3 Where OP1_ID=\" + Mid;\n db.execSQL(SqlQry);\n }\n }\n db.close();\n\n runOnUiThread(new Runnable() {\n public void run() {\n if (WebResult.contains(\"Saved\")) {\n btnSubmit.setVisibility(View.GONE);\n LV1.setEnabled(false);\n AlertDisplay(\"Result\", \"Submitted Successfully !\", true);\n } else if (WebResult.contains(\"Error\")) {\n AlertDisplay(\"Technical issue\", \"Something went wrong. Please try later !\", false);\n } else {\n AlertDisplay(\"Result\", WebResult, false);\n }\n }\n });\n } catch (Exception e) {\n //System.out.println(e.getMessage());\n e.printStackTrace();\n }\n Progsdial.dismiss();\n }\n };\n T2.start();\n }", "public void getHappiness() {\n Call<List<Chat>> call = jsonPlaceHolderApi.getHappiness();\n call.enqueue(new Callback<List<Chat>>() {\n @Override\n public void onResponse(Call<List<Chat>> call, Response<List<Chat>> response) {\n //not successful\n if (!response.isSuccessful()) {\n Toast.makeText(getContext().getApplicationContext(), response.code(), Toast.LENGTH_LONG).show();\n return;\n }\n //get data\n chat = response.body();\n //Toast.makeText(getContext().getApplicationContext(), chat.get(r).getText(), Toast.LENGTH_LONG).show();\n ai.setText(chat.get(r).getText());\n\n }\n @Override\n public void onFailure(Call<List<Chat>> call, Throwable t) {\n Toast.makeText(getContext().getApplicationContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n\tpublic void SendAndReceiveData() throws APIException \n\t{\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.beforeSendAndReceiveData();\n\t\ttry\n\t\t{\n\t\t\tapi.SendAndReceiveData();\n\t\t}\n\t\tcatch(APIException e)\n\t\t{\n\t\t\tfor (Listener listen : listeners1)\n\t\t\t\tlisten.onError(e);\n\t\t\tthrow new APIException(e);\n\t\t}\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.afterSendAndReceiveData();\n\t}", "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n Log.i(\"hell\", \"From: \" + remoteMessage.getData());\n Log.d(TAG, \"From: \" + remoteMessage.getFrom());\n Log.d(TAG, \"Notification Message Body: \" + remoteMessage.getData().get(\"message\"));\n// UpdaterService.Updater updater new UpdaterService.Updater();\n //Calling method to generate notification\n// scroll();\n SharedPreferences sharedPreferences = this.getSharedPreferences(\"user\",0);\n\n IcebreakerNotification message = new IcebreakerNotification();\n message.setMessage(remoteMessage.getData().get(\"message\"));\n message.setFrom(remoteMessage.getData().get(\"title\"));\n message.setTo(sharedPreferences.getString(\"enroll\",\"\"));\n MessageDb db = new MessageDb(MyFirebaseMessagingService.this);\n if (remoteMessage.getData().get(\"type\").equalsIgnoreCase(\"deliver\")){\n db.updateMessage(remoteMessage.getData().get(\"id\"));\n\n }\n else if(remoteMessage.getData().get(\"type\").equalsIgnoreCase(\"random\")){\n sendNotification(remoteMessage.getData().get(\"title\"), remoteMessage.getData().get(\"message\"),1,1,1);\n RandomChat randomChat;\n Gson gson = new Gson();\n randomChat = gson.fromJson(remoteMessage.getData().get(\"profile\"),RandomChat.class);\n db.addRandom(randomChat,Long.parseLong(remoteMessage.getData().get(\"time\")));\n\n\n }\n else {\n jsonObject = new JsonObject();\n jsonObject.addProperty(\"to\",message.getFrom());\n jsonObject.addProperty(\"from\", remoteMessage.getFrom());\n jsonObject.addProperty(\"id\",remoteMessage.getData().get(\"id\"));\n jsonObject.addProperty(\"type\",\"deliver\");\n sendDeliver();\n Log.i(\"hell\", String.valueOf(db.getChatId(message)));\n if (db.getChatId(message) == 0){\n db.addChat(message,System.currentTimeMillis());\n// db.addContact(message.getFrom());\n }\n db.updateChat(db.getChatId(message),System.currentTimeMillis());\n\n db.addMessage(message.getMessage(), db.getChatId(message),Long.parseLong(remoteMessage.getData().get(\"id\")),0,Long.parseLong(remoteMessage.getData().get(\"time\")),0);\n// ChatActivity.adapter.notifyDataSetChanged();\n if (isAppIsInBackground(this)) {\n\n sendNotification(remoteMessage.getData().get(\"title\"), remoteMessage.getData().get(\"message\"), db.unread(),db.unreadChat(),0);\n db.close();\n }\n else\n {\n final MediaPlayer mp = MediaPlayer.create(this, R.raw.sound);\n mp.start();\n }\n }\n Intent intent;\n intent = new Intent(BROADCAST_ACTION);\n sendBroadcast(intent);\n Intent intent2;\n intent2 = new Intent(BROADCAST_HOME);\n sendBroadcast(intent2);\n\n// bindService(UpdaterService,null,null);\n }", "public void syncLogsAccordingly( ){\n Log.d(TAG, \"Syncing Logs to Log panel\");\n\n try{\n Log.d(TAG , \"STATUS : \"+AppInfoManager.getAppStatusEncode());\n APPORIOLOGS.appStateLog(AppInfoManager.getAppStatusEncode());}catch (Exception e){}\n AndroidNetworking.post(\"\"+ AtsApplication.EndPoint_add_logs)\n .addBodyParameter(\"timezone\", TimeZone.getDefault().getID())\n .addBodyParameter(\"key\", AtsApplication.getGson().toJson(HyperLog.getDeviceLogs(false)))\n .setTag(\"log_sync\")\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n public void onResponse(JSONObject response) {\n try{\n ModelResultChecker modelResultChecker = AtsApplication.getGson().fromJson(\"\"+response,ModelResultChecker.class);\n if(modelResultChecker.getResult() == 1 ){\n Log.i(TAG, \"Logs Synced Successfully \");\n HyperLog.deleteLogs();\n onSync.onSyncSuccess(\"\"+AtsConstants.SYNC_EXISTING_LOGS);\n }else{\n Log.e(TAG, \"Logs Not synced from server got message \"+modelResultChecker.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n }catch (Exception e){\n Log.e(TAG, \"Logs Not synced with error code: \"+e.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n }\n @Override\n public void onError(ANError error) {\n Log.e(TAG, \"Logs Not synced with error code: \"+error.getErrorCode());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n });\n }", "private void send() {\n ModelManager.putFeedBack(getCurrentActivity(),\n GlobalValue.myAccount.getId() + \"\", edtTitle.getText()\n .toString(), edtDes.getText().toString(),type, true,\n new ModelManagerListener() {\n\n @Override\n public void onSuccess(Object object) {\n // TODO Auto-generated method stub\n edtDes.setText(\"\");\n edtTitle.setText(\"\");\n MainUserActivity activity = (MainUserActivity) getCurrentActivity();\n activity.backFragment(new AccountFragment());\n }\n\n @Override\n public void onError(VolleyError error) {\n // TODO Auto-generated method stub\n Toast.makeText(self, ErrorNetworkHandler.processError(error), Toast.LENGTH_LONG).show();\n }\n });\n }", "private void fetchChatContact(){\n chatRemoteDAO.getAllChatRequestHandler(profileRemoteDAO.getUserId());\n }", "public void addChat(String to, String from, String from_fullname, String msg, String date, String status,\r\n String uniqueid, String type, String file_type) {\r\n\r\n String myPhone = getUserDetails().get(\"phone\");\r\n String contactPhone = \"\";\r\n if(myPhone.equals(to)) contactPhone = from;\r\n if(myPhone.equals(from)) contactPhone = to;\r\n\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(UserChat.USERCHAT_TO, to); // TO\r\n values.put(UserChat.USERCHAT_FROM, from); // FROM\r\n values.put(UserChat.USERCHAT_FROM_FULLNAME, from_fullname); // FROM FULL NAME\r\n values.put(UserChat.USERCHAT_MSG, msg); // CHAT MESSAGE\r\n values.put(UserChat.USERCHAT_DATE, date); // DATE\r\n values.put(\"status\", status); // status: pending, sent, delivered, seen\r\n values.put(\"uniqueid\", uniqueid);\r\n values.put(\"type\", type);\r\n values.put(\"file_type\", file_type);\r\n values.put(\"contact_phone\", contactPhone); // Contact\r\n\r\n // Inserting Row\r\n db.insert(UserChat.TABLE_USERCHAT, null, values);\r\n db.close(); // Closing database connection\r\n }", "private void setupChat() {\n Log.d(TAG, \"setupChat()\");\n\n // Initialize the array adapter for the conversation thread\n mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);\n\n mConversationView.setAdapter(mConversationArrayAdapter);\n\n // Initialize the compose field with a listener for the return key\n\n // Initialize the send button with a listener that for click events\n\n // Initialize the BluetoothChatService to perform bluetooth connections\n mChatService = new BluetoothChatService(getActivity(), mhandler);\n\n // Initialize the buffer for outgoing messages\n mOutStringBuffer = new StringBuffer(\"\");\n switchForFileSaved.setOnCheckedChangeListener(switchListener) ;\n }", "void kegiatanChat(){\n db.child(\"chatbot\").child(\"chat\").child(perusahaan).child(userName).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n listData = new ArrayList<>();\n for (DataSnapshot ds : dataSnapshot.getChildren()){\n Map<String,Objects> ambil = (HashMap<String, Objects>)ds.getValue();\n Map<String,Objects> terima = new HashMap<>();\n for (Map.Entry<String,Objects> entry : ambil.entrySet()){\n terima.put(entry.getKey(),entry.getValue());\n }\n listData.add(terima);\n }\n\n // adapter chat botnya\n final ChatbotRecyclerAdapter adapter = new ChatbotRecyclerAdapter(context,listData);\n wadahChat.setLayoutManager(new LinearLayoutManager(context));\n wadahChat.setAdapter(adapter);\n wadahChat.scrollToPosition(listData.size()-1);\n\n builderCus = new AlertDialog.Builder(context);\n final View viewCus = getLayoutInflater().inflate(R.layout.layout_chatbot_vholder4_v2,null,false);\n builderCus.setView(viewCus);\n dialogCus = builderCus.create();\n final TextView tamuBook = viewCus.findViewById(R.id.tamu_book);\n final TextView tamuNama = viewCus.findViewById(R.id.tamu_nama);\n final TextView tamuStt = viewCus.findViewById(R.id.tamu_stt);\n final TextView tamuJenisKamar = viewCus.findViewById(R.id.tamu_jenis_kamar);\n final TextView tamuPax = viewCus.findViewById(R.id.tamu_pax);\n final TextView tamuPax2 = viewCus.findViewById(R.id.tamu_pax2);\n final TextView tamuBreakfast = viewCus.findViewById(R.id.tamu_breakfast);\n final TextView tanggalDatang = viewCus.findViewById(R.id.tanggal_datang);\n final TextView bulanDatang = viewCus.findViewById(R.id.bulan_datang);\n final TextView tahunDatang = viewCus.findViewById(R.id.tahun_datang);\n final TextView tanggalBerangkat = viewCus.findViewById(R.id.tanggal_berangkat);\n final TextView bulanBerangkat = viewCus.findViewById(R.id.bulan_berangkat);\n final TextView tahunBerangkat = viewCus.findViewById(R.id.tahun_berangkat);\n final TextView agennya = viewCus.findViewById(R.id.agennya);\n adapter.setKetikaHolder4Diklik(new ChatbotRecyclerAdapter.KetikaHolder4Diklik() {\n @Override\n public void maka(View view, int position) {\n dialogCus.show();\n\n Map<String,Objects> ambilSemua = adapter.getPosisi(position);\n\n String tang = String.valueOf(ambilSemua.get(\"tanggal\")).replace(\" 00:00:00\",\"\");\n String[] datang = String.valueOf(ambilSemua.get(\"tgl_datang\")).replace(\" 00:00:00\",\"\").split(\"-\");\n String[] berang = String.valueOf(ambilSemua.get(\"tgl_berang\")).replace(\" 00:00:00\",\"\").split(\"-\");\n\n String jenisKamar = !String.valueOf(ambilSemua.get(\"jenis_kamar\")).equals(\"null\")?String.valueOf(ambilSemua.get(\"jenis_kamar\")):\"\";\n\n tamuBook.setText(tang);\n tamuNama.setText(String.valueOf(ambilSemua.get(\"nama_tamu\")));\n tamuStt.setText(String.valueOf(ambilSemua.get(\"stt\")));\n tamuJenisKamar.setText(jenisKamar);\n tamuPax.setText(\"ADULT : \"+String.valueOf(ambilSemua.get(\"pax\")));\n tamuPax2.setText(\"CHILD : \"+String.valueOf(ambilSemua.get(\"pax2\")));\n tamuBreakfast.setText(String.valueOf(ambilSemua.get(\"nm_makan\")).trim());\n tanggalDatang.setText(datang[2]);\n bulanDatang.setText(datang[1]);\n tahunDatang.setText(datang[0]);\n tanggalBerangkat.setText(berang[2]);\n bulanBerangkat.setText(berang[1]);\n tahunBerangkat.setText(berang[0]);\n agennya.setText(String.valueOf(ambilSemua.get(\"agen\")));\n }\n });\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n wadahChat.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n if (dy < 0 && tulisContainer.getVisibility() == View.VISIBLE){\n YoYo.with(Techniques.FadeOutDown).duration(200).withListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n super.onAnimationEnd(animation);\n tulisContainer.setVisibility(View.GONE);\n }\n }).playOn(tulisContainer);\n\n\n }else if (dy > 0 && tulisContainer.getVisibility() == View.GONE){\n tulisContainer.setVisibility(View.VISIBLE);\n YoYo.with(Techniques.FadeInUp).duration(200).playOn(tulisContainer);\n }\n }\n });\n }", "public void getSurprise() {\n Call<List<Chat>> call = jsonPlaceHolderApi.getSurprise();\n call.enqueue(new Callback<List<Chat>>() {\n @Override\n public void onResponse(Call<List<Chat>> call, Response<List<Chat>> response) {\n //not successful\n if (!response.isSuccessful()) {\n Toast.makeText(getContext().getApplicationContext(), response.code(), Toast.LENGTH_LONG).show();\n return;\n }\n //get data\n chat = response.body();\n //Toast.makeText(getContext().getApplicationContext(), chat.get(r).getText(), Toast.LENGTH_LONG).show();\n ai.setText(chat.get(r).getText());\n\n }\n @Override\n public void onFailure(Call<List<Chat>> call, Throwable t) {\n Toast.makeText(getContext().getApplicationContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "private void sendMyMessage(JSONObject jsonMsg) {\n String link = \"http://\"+ip+\":8065/api/v1/channels/\"+channel_id+\"/create\";\n String response;\n try{\n ConnectAPIs messageAPI = new ConnectAPIs(link,token);\n messageAPI.sendComment(jsonMsg,this,this);\n }catch(Exception e){\n System.out.println(\"Sending error: \" + e.toString());\n }\n }", "private void updateAllUsers() {\n for(IUser user : this.bot.getClient().getUsers()) {\n this.updateUserStatus(user);\n }\n saveJSON();\n }", "void sendJson(Object data);", "public void sendChat(String s) {\n ACLMessage m = new ACLMessage(briscola.common.ACLCodes.ACL_CHAT);\n m.setConversationId(getChatID());\n m.setContent(s);\n if (players == null) {\n say(\"Nessun giocatore in lista\");\n } else {\n for (Player p : players) {\n m.addReceiver(p.getAID());\n }\n send(m);\n }\n }", "public void make_chat_room() {\n client_PW.println(\"------------make new chat-------------\");\n client_PW.println(\"Enter chat name : \");\n client_PW.flush();\n String line = null;\n String ad=null;\n PrintWriter pw=null;\n HashMap new_chat = new HashMap();\n try {\n line = client_BR.readLine();\n try{\n File file = new File(System.getProperty(\"user.home\"),line + \".txt\");\n pw = new PrintWriter(file);\n \n }catch(Exception e){System.out.println(e);}\n \n synchronized(chat_room) {\n chat_room.put(line, new_chat);\n }\n synchronized(cur_chat_room) {\n cur_chat_room.remove(client_ID);\n }\n String msg = client_ID + \"님이 퇴장하셨습니다\";\n broadcast(msg, null);\n synchronized(new_chat) {\n new_chat.put(client_ID,client_PW);\n }\n synchronized(new_chat) {\n \n new_chat.put(ad,pw);\n }\n cur_chat_room = new_chat;\n } catch (Exception e) { System.out.println(e); }\n \n\n }", "public void sendPostUpVote(){\n Intent intent = getIntent();\n final int heritageId = intent.getIntExtra(\"heritageId\", -1);\n Retrofit retrofit = ApiClient.getApiClient();\n final SharedPreferences sharedPref = getSharedPreferences(\"TOKENSHARED\", Context.MODE_PRIVATE);\n final String token = sharedPref.getString(\"TOKEN\", null);\n ApiInterface apiInterface = retrofit.create(ApiInterface.class);\n Call<JsonResponseVote> call = apiInterface.vote(new VoteBody(true, heritageId),\"Token \" + token);\n call.enqueue(new Callback<JsonResponseVote>() {\n @Override\n public void onResponse(Call<JsonResponseVote> call, Response<JsonResponseVote> response) {\n\n if (response.isSuccessful()) {\n Toast.makeText(getApplicationContext(), \"SUCCESSFUL UPVOTE\", Toast.LENGTH_SHORT).show();\n voteCount.setText(Integer.toString(response.body().getUpvote_count()-response.body().getDownvote_count()));\n deleteVote.setEnabled(true);\n upVote.setEnabled(false);\n downVote.setEnabled(true);\n\n } else {\n Toast.makeText(getApplicationContext(), \"Sorry for inconvince server is down\" + response.code(), Toast.LENGTH_SHORT).show();\n Log.d(\"response\", response.raw().body().toString());\n }\n\n }\n\n @Override\n public void onFailure(Call<JsonResponseVote> call, Throwable t) {\n Toast.makeText(getApplicationContext(), \"ERROR while posting\", Toast.LENGTH_SHORT).show();\n }\n });\n\n }", "private void sendSyncCommand() throws IOException {\n System.out.print(addressPort);\n System.out.println(\"Send Synchronizatin Command\");\n DataOutputStream dos = new DataOutputStream(os);\n for (int i = 0; i < syncCmd.list.size(); i++) {\n System.out.print(\"CODE: \");\n System.out.println(syncCmd.list.get(i).code);\n System.out.print(\"PARENT1: \");\n System.out.println(syncCmd.list.get(i).parent1);\n System.out.print(\"PARENT2: \");\n System.out.println(syncCmd.list.get(i).parent2);\n System.out.print(\"NAME1: \");\n System.out.println(syncCmd.list.get(i).name1);\n System.out.print(\"NAME2: \");\n System.out.println(syncCmd.list.get(i).name2);\n System.out.print(\"ADDRESSPORT: \");\n System.out.println(syncCmd.list.get(i).addressPort);\n }\n\n for (int i = 0; i < syncCmd.list.size(); i++) {\n dos.writeByte(syncCmd.list.get(i).code);\n dos.writeUTF(syncCmd.list.get(i).parent1);\n dos.writeUTF(syncCmd.list.get(i).parent2);\n dos.writeUTF(syncCmd.list.get(i).name1);\n dos.writeUTF(syncCmd.list.get(i).name2);\n dos.writeUTF(syncCmd.list.get(i).addressPort);\n }\n dos.writeByte(Message.MSG_NEW_KEY);\n synchronized (GUITracker.onlinePeer) {\n dos.writeUTF(Util.convertBytesToBase64(GUITracker.RC4KeyByte));\n }\n }", "public interface ChatClient {\n\n @POST(\"chat/group/create\") Call<ChatGroupCreationResponse> createChatGroup(\n @Body ChatGroup chatGroup);\n\n @POST(\"chat/group/create\") Observable<ChatGroupCreationResponse> createChatGroupRx(\n @Body ChatGroup chatGroup);\n\n @POST(\"chat/group/update/{group_id}\") Observable<SimpleResponse> sendMessageRx(\n @Path(\"group_id\") String group_id, @Query(\"token\") String token, @Body Chat chat);\n\n @GET(\"chats\") Call<List<ChatGroup>> getChatGroups(@Query(\"token\") String token,\n @Query(\"page\") int page, @Query(\"per_page\") int perPage);\n\n @GET(\"chat/group/members/{group_id}\") Call<APIResponse<User>> getGroupMembers(\n @Path(\"group_id\") String groupId, @Query(\"page\") int page, @Query(\"per_page\") int perPage,\n @Query(\"token\") String userToken);\n\n @POST(\"chat/group/rename/{group_id}\") Observable<SimpleResponse> renameGroup(\n @Path(\"group_id\") String group_id, @Query(\"token\") String token, @Body ChatGroup name);\n}", "public void stats(){\n\n String url = \"http://womanart.co.ke/sales/insertData.php\";\n\n final Database db = new Database(this);\n\n ArrayList<Dbase> array = db.fetch_sync();\n\n Gson gson = new Gson();\n\n String data = gson.toJson(array);\n\n Log.d(\"DATA\", data);\n\n RequestParams params = new RequestParams();\n\n params.put(\"json\", data);\n\n AsyncHttpClient client = new AsyncHttpClient();\n\n client.post(url, params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int kl, Header[] headers, byte[] response) {\n\n String res = new String(response);\n\n Log.d(\"RESPONSE\", res);\n\n try {\n JSONArray jsonArray = new JSONArray(res);\n\n for (int i = 0; i < jsonArray.length(); i++) {\n\n JSONObject json = jsonArray.getJSONObject(i);\n\n Log.d(\"JSON\", String.valueOf(json));\n\n String email = json.getString(\"key\");\n\n String status = json.getString(\"status\");\n\n if (status.equals(\"inserted\")) {\n db.update(email);\n Log.d(\"DATA\", \"Synced record for \" + email);\n\n //count for unsynced data being inserted into the online db.\n\n //toast a message.\n Toast.makeText(UpdateService.this, \"Record(s) Inserted.\", Toast.LENGTH_SHORT).show();\n }\n else {\n\n Toast.makeText(UpdateService.this, \"All Record(s) are Synced.\", Toast.LENGTH_SHORT).show();\n }\n }\n } catch (JSONException e) {\n Log.e(\"FAIL\", e.getMessage());\n\n //Toast.makeText(UpdateService.this, \"Info Sync Failed.\", Toast.LENGTH_SHORT).show();\n }\n\n //stop the service from running.\n stopSelf();\n }\n\n @Override\n public void onFailure(int kl, Header[] headers, byte[] bytes, Throwable throwable) {\n Log.d(\"FAIL\", \"Failed to load data \" + kl);\n Toast.makeText(getApplicationContext(), \"Record(s) Not Inserted\", Toast.LENGTH_LONG).show();\n\n //stop the service from running.\n stopSelf();\n }\n });\n }", "public void onlinerequest() {\r\n int size = Server.getUsers().size();\r\n \r\n try {\r\n this.output.flush();\r\n this.output.writeUTF(\"ONLINE\");\r\n this.output.flush();\r\n this.output.writeUTF(Integer.toString(size));\r\n this.output.flush();\r\n// Log.print(\"Sending the data\");\r\n for(int x = 0; x < Server.getUsers().size(); x++){\r\n if(Server.getUsers().get(x).getName().equals(this.name)){\r\n this.output.writeUTF(Server.getUsers().get(x).getName() + \" (You)\");\r\n }\r\n else{\r\n this.output.writeUTF(Server.getUsers().get(x).getName());\r\n this.output.flush();\r\n }\r\n \r\n \r\n }\r\n// Log.print(\"Successfully sent\");\r\n } catch (IOException ex) {\r\n Log.error(ex.getMessage());\r\n }\r\n }", "public void connect() {\n BotConnector newBot = new BotConnector();\n newBot.setEmail(this.email);\n newBot.setAuthenticationKey(key);\n newBot.setBotName(name);\n newBot.setRoom(room);\n //Start Listener Thread\n this.serverListener = new Thread(newBot, \"serverListener\");\n this.serverListener.start();\n }", "private void send(){\n String n = name.getText().toString();\n String b = bg.getText().toString();\n String d = dob.getText().toString();\n String l = loc.getText().toString();\n String i = id.getText().toString();\n String m = mob.getText().toString();\n\n if(TextUtils.isEmpty(n) || TextUtils.isEmpty(b) || TextUtils.isEmpty(d) || TextUtils.isEmpty(l) || TextUtils.isEmpty(i)\n || TextUtils.isEmpty(m)){\n //if any of the field remains empty, no data will be send\n Toast.makeText(this, \"Details incomplete!!\", Toast.LENGTH_SHORT).show();\n }\n else{\n //sending data\n String id = root.push().getKey();//key given by the firebase itself\n \n //creating new person object for each data\n Person person = new Person(b,d,i,l,m,n);\n root.child(id).setValue(person);//sending data\n }\n }", "private void getChatHistory(final int id) {\n String tag_string_req = \"req_chat_history\";\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConfig.URL_Chat_History, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(\"MyTAG\", \"history Response: \" + response.toString());\n\n try {\n JSONObject jObject = new JSONObject(response);\n JSONArray jArray = jObject.getJSONArray(\"messages\");\n\n System.out.println(jObject.toString());\n boolean error = jObject.getBoolean(\"error\");\n // Check for error node in json\n if (!error) {\n\n for(int i=0;i<jArray.length();i++) {\n\n JSONObject s = jArray.getJSONObject(i);//name of object returned from database\n String content = s.getString(\"content\"); //same names of json fields\n int chat_id = s.getInt(\"chat_id\");\n int sender_id = s.getInt(\"sender_id\");\n String time = s.getString(\"send_time\");\n System.err.print(\"chat_id:\" + chat_id + \" +content:\" + content + \" +sender:\" + sender_id + \" +time:\" + time);\n Message m= new Message(chat_id,sender_id,content,time);\n m.setSenderName(parentName);\n Messages.add(m);\n }\n LA = new MessagesAdapter(getApplicationContext(), R.layout.my_message, Messages);\n myList.setAdapter(LA);\n myList.setSelection(LA.getCount() - 1);\n\n } else {\n // Error in login. Get the error message\n String errorMsg = jObject.getString(\"error_msg\");\n Toast.makeText(getApplicationContext(),\n errorMsg+\": response\", Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Json error: \" + e.getMessage()+\"\", Toast.LENGTH_LONG).show();\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n // Log.e(TAG, \"Login Error: \" + error.getMessage());\n Toast.makeText(getApplicationContext(),\n error.getMessage()+\"\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n\n }\n }) {\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"chat_id\", id+\"\");\n\n return params;\n }\n\n };\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n }", "void updateData();", "public void chat_list() {\n\n synchronized(chat_room) {\n Set chat_room_set = chat_room.keySet();\n Iterator iter = chat_room_set.iterator();\n\n clearScreen(client_PW);\n client_PW.println(\"------------Chat Room List-----------\");\n while(iter.hasNext()) {\n client_PW.println(iter.next());\n }\n client_PW.flush();\n }\n }", "private void Send(final Message m) {\n String tag_string_req = \"req_chat_send\";\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConfig.URL_Chat_Send, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(\"MyTAG\", \"send Response: \" + response.toString());\n\n try {\n JSONObject jObject = new JSONObject(response);\n\n System.out.println(jObject.toString());\n boolean error = jObject.getBoolean(\"error\");\n // Check for error node in json\n if (!error) {\n\n editText.setText(\"\");\n Messages.add(m);\n LA.notifyDataSetChanged();\n myList.setSelection(LA.getCount() - 1);\n\n } else {\n // Error in login. Get the error message\n String errorMsg = jObject.getString(\"error_msg\");\n Toast.makeText(getApplicationContext(),\n errorMsg+\": response\", Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Json error: \" + e.getMessage()+\"\", Toast.LENGTH_LONG).show();\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n // Log.e(TAG, \"Login Error: \" + error.getMessage());\n Toast.makeText(getApplicationContext(),\n error.getMessage()+\"\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n\n }\n }) {\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"chat_id\", m.getChat_id()+\"\");\n params.put(\"sender_id\", m.getSender_id()+\"\");\n params.put(\"content\", m.getContent()+\"\");\n params.put(\"send_time\", m.getTime()+\"\");\n\n return params;\n }\n\n };\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n }", "public void UpdateAllControl(){\n try {\n AsyncHttpClient cliente = new AsyncHttpClient();\n cliente.setMaxRetriesAndTimeout(0, 10000);\n\n RequestParams parametros = new RequestParams();\n parametros.put(\"account\", UserName);\n parametros.put(\"apikey\", Apikey);\n parametros.put(\"date\", Date);\n parametros.put(\"hour\", Hour);\n parametros.put(\"minute\", Minute);\n\n cliente.put(this, GenConf.UpdateControlsURL, parametros, new JsonHttpResponseHandler() {\n @Override\n public void onStart() {\n mdialog.show();\n super.onStart();\n }\n\n @Override\n public void onFinish() {\n mdialog.cancel();\n super.onFinish();\n closed = true;\n CloseActivity();\n }\n });\n }\n catch (Exception e){\n\n }\n }", "public void getSadness() {\n Call<List<Chat>> call = jsonPlaceHolderApi.getSadness();\n call.enqueue(new Callback<List<Chat>>() {\n @Override\n public void onResponse(Call<List<Chat>> call, Response<List<Chat>> response) {\n //not successful\n if (!response.isSuccessful()) {\n Toast.makeText(getContext().getApplicationContext(), response.code(), Toast.LENGTH_LONG).show();\n return;\n }\n //get data\n chat = response.body();\n //Toast.makeText(getContext().getApplicationContext(), chat.get(r).getText(), Toast.LENGTH_LONG).show();\n ai.setText(chat.get(r).getText());\n\n }\n @Override\n public void onFailure(Call<List<Chat>> call, Throwable t) {\n Toast.makeText(getContext().getApplicationContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "private void syncLogsAccordingly() throws Exception{\n HashMap<String, String> params = new HashMap<>();\n params.put(\"timezone\", TimeZone.getDefault().getID());\n List<DeviceLogModel> deviceLogModels = HyperLog.getDeviceLogs(false) ;\n\n\n JSONObject jsonObject = new JSONObject();\n\n try{\n jsonObject.put(\"key\",gson.toJson(deviceLogModels));\n }catch (Exception e){\n Toast.makeText(mContext, \"\"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n\n\n AndroidNetworking.post(\"\" + EndPoint)\n .addJSONObjectBody(jsonObject)\n .setTag(this)\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n public void onResponse(final JSONObject jsonObject) {\n HyperLog.deleteLogs();\n }\n\n @Override\n public void onError(ANError anError) {\n// Toast.makeText(ATSApplication.this, \"ERROR : \"+anError.getErrorBody(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void getDisgust() {\n Call<List<Chat>> call = jsonPlaceHolderApi.getDisgust();\n call.enqueue(new Callback<List<Chat>>() {\n @Override\n public void onResponse(Call<List<Chat>> call, Response<List<Chat>> response) {\n //not successful\n if (!response.isSuccessful()) {\n Toast.makeText(getContext().getApplicationContext(), response.code(), Toast.LENGTH_LONG).show();\n return;\n }\n //get data\n chat = response.body();\n //Toast.makeText(getContext().getApplicationContext(), chat.get(r).getText(), Toast.LENGTH_LONG).show();\n ai.setText(chat.get(r).getText());\n\n }\n @Override\n public void onFailure(Call<List<Chat>> call, Throwable t) {\n Toast.makeText(getContext().getApplicationContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "public void writeIdChatAtSpecificUserInDatabase(@NonNull ChatMessage chat) {\n mDatabaseReference.child(\"users\").child(chat.getSender()).child(\"chats\").\n child(chat.getIdChat()).setValue(chat.getReceiver());\n mDatabaseReference.child(\"users\").child(chat.getReceiver()).child(\"chats\").\n child(chat.getIdChat()).setValue(chat.getSender());\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.chat_activity);\n\t\t\n\t\ttext = (EditText)findViewById(R.id.etSendMsg);\n\t\tchat = (TextView)findViewById(R.id.tvChat);\n\t\tsend = (Button)findViewById(R.id.bSend);\n\t\t\n\t\tsend.setOnClickListener(this);\n\t\tuser = getIntent().getStringExtra(\"user\");\n\t\tchallenged = getIntent().getStringExtra(\"challenged\");\n\t\tsa = ((SharingAtts)getApplication());\n\t\t\n\t\tit = new ItemTest();\n\t\tString colNames = it.printData(\"chat\")[1];\n\t\tdbm = new DBManager(this, colNames, \"chat\", it.printData(\"chat\")[0]);\n\t\tWarpClient.initialize(Constants.apiKey, Constants.secretKey);\n\t\ttry {\n\t\t\tmyGame = WarpClient.getInstance();\n\t\t\tmyGame.addConnectionRequestListener(this); \n\t\t\tmyGame.connectWithUserName(user);\n\t\t\tmyGame.addNotificationListener(this);\n\t\t\tmyGame.addChatRequestListener(this);\n\t\t\tchat.setText(\"\");\n\t\t\t\n\t\t\tmyGame.addZoneRequestListener(this);\n\t\t\t/*\n\t\t\tmyGame.addRoomRequestListener(this);\n\t\t\tmyGame.addChatRequestListener(this);\n\t\t\t\n\t\t\t*/\n\t\t\t//myGame.getOnlineUsers();\n\t\t\t\n\t\t\t//myGame.addTurnBasedRoomListener(this);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tdbm.openToRead();\n\t\tString msgs = dbm.directQuery(\"SELECT sender,message FROM chat WHERE ((sender LIKE '\"+ sa.name+\"' AND receiver LIKE '\"+ challenged+ \"')\"+\n\t\t\t\t\" OR (sender LIKE '\"+challenged+\"' AND receiver LIKE '\"+ sa.name+\"'))\"+\n\t\t\t\t\"\", new String[]{ \"sender\",\"message\"});\n\t\tLog.d(\"special_query\", \"SELECT sender,message FROM chat WHERE sender LIKE '\"+ sa.name+\"' AND receiver LIKE '\"+ challenged+ \"'\"+\n\t\t\t\t\" OR sender LIKE '\"+challenged+\"' AND receiver LIKE '\"+ sa.name+\"'\"+\n\t\t\t\t\"\");\n\t\tString allRows = dbm.directQuery(\"SELECT * FROM chat\", it.printData(\"chat\")[1].split(\" \"));\n\t\t//allRows.replace(\" \", \"->\");\n\t\tString[] all = allRows.split(\"\\n\");\n\t\t\n\t\tfor(int i=0; i<all.length;i++){\n\t\t\tall[i].replace(\" \", \"->\");;\n\t\t\tLog.d(\"row_\"+i, all[i]);\n\t\t}\n\t\tdbm.close();\n\t\tmsgs = msgs.replace(\",\", \" : \");\n\t\tif(msgs!=null)\n\t\t\tchat.setText(msgs);\n\t\telse\n\t\t\tLog.e(\"msgs\", \"msg is null\");\n\t\t\n\t}", "public void getAnger() {\n Call<List<Chat>> call = jsonPlaceHolderApi.getAnger();\n call.enqueue(new Callback<List<Chat>>() {\n @Override\n public void onResponse(Call<List<Chat>> call, Response<List<Chat>> response) {\n //not successful\n if (!response.isSuccessful()) {\n Toast.makeText(getContext().getApplicationContext(), response.code(), Toast.LENGTH_LONG).show();\n return;\n }\n //get data\n chat = response.body();\n //Toast.makeText(getContext().getApplicationContext(), chat.get(r).getText(), Toast.LENGTH_LONG).show();\n ai.setText(chat.get(r).getText());\n\n }\n @Override\n public void onFailure(Call<List<Chat>> call, Throwable t) {\n Toast.makeText(getContext().getApplicationContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void onUpdateReceived(Update update) {\n if (update.hasMessage() && update.getMessage().hasText()) {\n SendMessage reply = new SendMessage(); // Create a SendMessage object with mandatory fields\n String chatId = update.getMessage().getChatId().toString();\n reply.setChatId(chatId);\n // message.setText(update.getMessage().getText());\n\n String userId = update.getMessage().getChat().getId().toString();\n String firstName = update.getMessage().getChat().getFirstName();\n String lastName = update.getMessage().getChat().getLastName();\n String channel = TELEGRAM_STRING;\n\n User user = getUser(userId, channel);\n if(user == null) {\n user = createUser(userId, firstName, lastName, channel, chatId);\n }\n\n String message = update.getMessage().getText();\n String[] splittedMessage = message.split(\" \");\n\n String command = getCommand(message);\n\n switch (command) {\n case START_COMMAND:\n createReplyMessage(reply, START_MESSAGE);\n break;\n\n case SUBSCRIBE_COMMAND:\n if (splittedMessage.length > 1) {\n if (splittedMessage[1].length() != 6) {\n createReplyMessage(reply, String.format(INVALID_PINCODE, splittedMessage[1]));\n break;\n }\n String pincode = getPincode(splittedMessage[1], userId);\n Integer age = getAge(splittedMessage[2]);\n if (pincode == null || age == null) {\n createReplyMessage(reply, String.format(INVALID_MESSAGE, splittedMessage[1]));\n break;\n }\n Boolean subscribed = subscribe(user, pincode, age);\n if (subscribed) {\n createReplyMessage(reply, String.format(SUBSCRIBED_MESSAGE, pincode, age));\n } else {\n createReplyMessage(reply, String.format(ALREADY_SUBSCRIBED_MESSAGE, pincode, age));\n }\n } else {\n createReplyMessage(reply, INVALID_MESSAGE);\n }\n break;\n\n case UNSUBSCRIBE_COMMAND:\n if (splittedMessage.length > 1) {\n if (splittedMessage[1].length() != 6) {\n createReplyMessage(reply, String.format(INVALID_PINCODE, splittedMessage[1]));\n break;\n }\n String pincode = getPincode(splittedMessage[1], userId);\n Integer age = getAge(splittedMessage[2]);\n if (pincode == null || age == null) {\n createReplyMessage(reply, String.format(INVALID_MESSAGE, String.format(\"%s %s\", splittedMessage[1], splittedMessage[2])));\n break;\n }\n Boolean unsubscribed = unsubscribe(user, pincode, age);\n if (unsubscribed) {\n createReplyMessage(reply, String.format(UNSUBSCRIBED_MESSAGE, pincode, age));\n } else {\n createReplyMessage(reply, String.format(NO_SUBSCRIPTION_FOUND, pincode, age));\n }\n } else {\n createReplyMessage(reply, INVALID_MESSAGE);\n }\n break;\n\n case LIST_SUBSCRIPTION_COMMAND:\n List<String> subscriptionList = getAllSubscription(user);\n String replyMessString = \"\";\n if (!(subscriptionList.size() > 0)) {\n replyMessString = NO_SUBSCRIPTION_MESSAGE;\n }\n int i = 1;\n for (String string : subscriptionList) {\n replyMessString += String.format(\"%s. %s\\n\", i, string);\n i++;\n }\n createReplyMessage(reply, replyMessString);\n break;\n\n case HELP_COMMAND:\n createReplyMessage(reply, HELP_MESSAGE);\n break;\n\n default:\n createReplyMessage(reply, UNRECOGNIZED_COMMAND);\n }\n sendMessage(reply);\n }\n }", "private List<User> syncDataFromMaster() {\n\n// if (getHostPostOfServer().equals(ClusterInfo.getClusterInfo().getMaster())) {\n// return;\n// }\n String requestUrl;\n requestUrl = \"http://\".concat(ClusterInfo.getClusterInfo().getMaster().concat(\"/users\"));\n List<User> users = restTemplate.getForObject(requestUrl, List.class);\n return users;\n\n }", "public interface ChatConnection extends Closeable, Flushable {\n\t/**\n\t * Logs into the chat system. This should be called before any other method.\n\t * @param email the login email\n\t * @param password the login password\n\t * @throws InvalidCredentialsException if the login credentials are bad\n\t * @throws IOException if there's a network problem\n\t */\n\tvoid login(String email, String password) throws InvalidCredentialsException, IOException;\n\n\t/**\n\t * Joins a room. A room should be joined before it is interacted with.\n\t * @param roomId the room ID\n\t * @throws RoomNotFoundException if the room does not exist\n\t * @throws RoomPermissionException if messages cannot be posted to this room\n\t * @throws IOException if there's a network problem\n\t */\n\tvoid joinRoom(int roomId) throws RoomNotFoundException, RoomPermissionException, IOException;\n\n\t/**\n\t * Leaves a room. This method does nothing if the room was never joined.\n\t * @param roomId the room ID\n\t * @throws IOException if there's a network problem\n\t */\n\tvoid leaveRoom(int roomId) throws IOException;\n\n\t/**\n\t * Posts a message. If the message exceeds the max message size, it will be\n\t * truncated.\n\t * @param roomId the room ID\n\t * @param message the message to post\n\t * @return the ID of the new message\n\t * @throws RoomNotFoundException if the room does not exist\n\t * @throws RoomPermissionException if the message can't be posted to the\n\t * room because it doesn't exist or the bot doesn't have permission\n\t * @throws IOException if there's a network problem\n\t */\n\tlong sendMessage(int roomId, String message) throws RoomNotFoundException, RoomPermissionException, IOException;\n\n\t/**\n\t * Posts a message.\n\t * @param roomId the room ID\n\t * @param message the message to post\n\t * @param splitStrategy defines how the message should be split up if the\n\t * message exceeds the chat connection's max message size\n\t * @return the ID(s) of the new message(s). This list will contain multiple\n\t * IDs if the message was split up into multiple messages.\n\t * @throws RoomNotFoundException if the room does not exist\n\t * @throws RoomPermissionException if the message can't be posted to the\n\t * room because it doesn't exist or the bot doesn't have permission\n\t * @throws IOException if there's a network problem\n\t */\n\tList<Long> sendMessage(int roomId, String message, SplitStrategy splitStrategy) throws RoomNotFoundException, RoomPermissionException, IOException;\n\n\t/**\n\t * Deletes a message. You can only delete your own messages. Messages older\n\t * than two minutes cannot be deleted.\n\t * @param roomId the ID of the room that the message was posted to\n\t * @param messageId the ID of the message to delete\n\t * @return true if it was successfully deleted, false if not\n\t * @throws RoomNotFoundException if the room does not exist\n\t * @throws RoomPermissionException if the room because it doesn't exist or\n\t * the bot doesn't have permission to post in that room anymore\n\t * @throws IOException if there's a network problem\n\t */\n\tboolean deleteMessage(int roomId, long messageId) throws RoomNotFoundException, RoomPermissionException, IOException;\n\n\t/**\n\t * Edits an existing message. You can only edit your own messages. Messages\n\t * older than two minutes cannot be edited.\n\t * @param roomId the ID of the room that the message was posted to\n\t * @param messageId the ID of the message to edit\n\t * @param updatedMessage the updated message\n\t * @return boolean if the edit was successful, false if not\n\t * @throws RoomNotFoundException if the room does not exist\n\t * @throws RoomPermissionException if the room because it doesn't exist or\n\t * the bot doesn't have permission to post in that room anymore\n\t * @throws IOException if there's a network problem\n\t */\n\tboolean editMessage(int roomId, long messageId, String updatedMessage) throws RoomNotFoundException, RoomPermissionException, IOException;\n\n\t/**\n\t * Listens for new messages that are posted to rooms that were joined with\n\t * the {@link joinRoom} method. This method blocks until the chat connection\n\t * is closed.\n\t * @param handler handles the messages\n\t */\n\tvoid listen(ChatMessageHandler handler);\n\n\t/**\n\t * Gets the most recent messages from a room.\n\t * @param roomId the room ID\n\t * @param count the number of messages to retrieve\n\t * @return the messages\n\t * @throws IOException if there's a network problem\n\t */\n\tList<ChatMessage> getMessages(int roomId, int count) throws IOException;\n\n\t/**\n\t * Gets information about room users, such as their reputation and username.\n\t * @param roomId the ID of the room the user(s) are in (it is not necessary\n\t * to join this room before calling this method)\n\t * @param userIds the user ID(s)\n\t * @return the user information\n\t * @throws IOException if there's a network problem\n\t */\n\tList<UserInfo> getUserInfo(int roomId, List<Integer> userIds) throws IOException;\n\n\t/**\n\t * Gets the users in a room that are \"pingable\". Pingable users receive\n\t * notifications if they are mentioned. If a user is pingable, it does not\n\t * necessarily mean they are currently in the room, although they could be.\n\t * @param roomId the room ID (it is not necessary to join this room before\n\t * calling this method)\n\t * @return the pingable users\n\t * @throws IOException if there's a network problem\n\t */\n\tList<PingableUser> getPingableUsers(int roomId) throws IOException;\n\n\t/**\n\t * Gets information about a room, such as its name and description.\n\t * @param roomId the room ID\n\t * @return the room info or null if the room doesn't exist\n\t * @throws IOException if there's a network problem\n\t */\n\tRoomInfo getRoomInfo(int roomId) throws IOException;\n}", "public interface SlackService {\n\n // \"?token=\" + API_KEY + \"&channel=\" + BOTS_CHANNEL_ID + \"&as_user=true\" + \"&text=\" + messageText);\n\n @POST(\"chat.postMessage\")\n Call<SendMessageResponse> sendMessage(@Query(\"token\") String token, @Query(\"channel\") String channel, @Query(\"as_user\") String asUser, @Query(\"text\") String messageText);\n}", "public interface Repository {\n\n Observable<LoginData> login(LoginInfo loginInfo);\n\n Observable<List<ChatData>> getChatData(String datas);\n}", "public interface QChatApi {\n @GET(\"users/all\")\n Observable<Users> getUsers();\n\n @GET(\"users/{user}\")\n Observable<User> getUser(@Path(\"user\") String user);\n\n @Headers(\"Content-Type: application/json\")\n @POST(\"user/new\")\n Observable<User> newUser(@Body User user);\n\n @Headers(\"Content-Type: application/json\")\n @PUT(\"user/update\")\n Observable<User> updateUser(@Body User user);\n\n @Headers(\"Content-Type: application/json\")\n @POST(\"users/{user}/message/new\")\n Observable<Message> newMessage(@Path(\"user\") String user, @Body Message message);\n\n @GET(\"users/{user}/messages/all\")\n Observable<Messages> getMessages(@Path(\"user\") int user, @Query(\"is_sent\") boolean isSent);\n\n @Headers(\"Content-Type: application/json\")\n @POST(\"users/{user}/friends/new\")\n Observable<Friend> newFriend(@Path(\"user\") String user, @Body Friend friend);\n\n @GET(\"users/{user}/friends/all\")\n Observable<Friend> getFriends(@Path(\"user\") String user);\n}", "public void receivedUpdateFromServer();", "public void callUpdateFamilyContactApi() {\n if (Utils.isNetworkConnected(mContext)) {\n\n Utils.showDialog(mContext);\n ApiHandler.getApiService().get_Update_FamilyContact(getUpdateFamilyContactdetail(), new retrofit.Callback<TeacherInfoModel>() {\n @Override\n public void success(TeacherInfoModel childInfoModel, Response response) {\n Utils.dismissDialog();\n if (childInfoModel == null) {\n Utils.ping(mContext, getString(R.string.something_wrong));\n return;\n }\n if (childInfoModel.getSuccess() == null) {\n Utils.ping(mContext, getString(R.string.something_wrong));\n return;\n }\n if (childInfoModel.getSuccess().equalsIgnoreCase(\"false\")) {\n Utils.ping(mContext, getString(R.string.false_msg));\n return;\n }\n if (childInfoModel.getSuccess().equalsIgnoreCase(\"True\")) {\n if(!updateTypestr.equalsIgnoreCase(\"Family\")){\n Utils.setPref(mContext, \"RegisterUserName\", firstNameStr + \" \" + lastNameStr);\n }\n Intent intent = new Intent(mContext, FamilyListActivity.class);\n intent.putExtra(\"froncontanct\", froncontanctStr);\n intent.putExtra(\"wheretocometype\", wheretocometypeStr);\n startActivity(intent);\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n Utils.dismissDialog();\n error.printStackTrace();\n error.getMessage();\n Utils.ping(mContext, getString(R.string.something_wrong));\n }\n });\n } else {\n Utils.ping(mContext, getString(R.string.internet_connection_error));\n }\n }", "void onEcologyDataSyncMessage(EcologyMessage message) {\n message.addArgument(SYNC_DATA_MESSAGE_ID);\n message.setSource(getMyDeviceId());\n sendConnectorMessage(message);\n }", "public static void update() {\n\t\tnew Thread() {\n\t\t\tpublic void run() {\n\n\t\t\t\ttry {\n\t\t\t\t\tserverSocket2 = new ServerSocket(50000);\n\t\t\t\t\twhile (yes) {\n\t\t\t\t\t\tSocket connection = serverSocket2.accept();\n\n\t\t\t\t\t\tString out = \"\";\n\t\t\t\t\t\tDataOutputStream output = new DataOutputStream(\n\t\t\t\t\t\t\t\tconnection.getOutputStream());\n\t\t\t\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\t\t\t\tout += j + \"::\" + b[j].getText() + \" /:\"; // (index,username)\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.writeBytes(out + \"\\n\");\n\t\t\t\t\t\tconnection.close();\n\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}.start();\n\t}", "public void sendChat(String message) {\r\n connection.chat(message);\r\n }", "public interface Communicator {\n void sendPositionAndJson(int position , String json);\n}", "public void localToRemoteRatingSync()\r\n {\r\n Uri uri = DataBaseContract.Rating.URI_CONTENT;\r\n int results = ratingModel.changeToSync(uri,contentResolver);\r\n Log.i(TAG, \"Ratings puestos en cola de sincronizacion:\" + results);\r\n\r\n ArrayList<Rating> ratingsPendingForInsert = ratingModel.getRatingsForSync();\r\n Log.i(TAG, \"Se encontraron \" + ratingsPendingForInsert.size() + \" ratings para insertar en el servidor\");\r\n\r\n syncRatingsPendingForInsert(ratingsPendingForInsert);\r\n }", "public void SendMessageKik(String message, ArrayList<String> users) {\n FileWriter fw= null;\r\n try {\r\n fw = new FileWriter(\"src\\\\main\\\\java\\\\nl\\\\Ipsen5Server\\\\Service\\\\users.txt\");\r\n\r\n fw.write(users.toString());\r\n fw.close();\r\n\r\n //writes message to file that will be read by API\r\n FileWriter fw1 = new FileWriter(\"src\\\\main\\\\java\\\\nl\\\\Ipsen5Server\\\\Service\\\\message.txt\");\r\n fw1.write(message);\r\n fw1.close();\r\n\r\n //creates client side and connects to API, this will trigger API to send the message to all users in users.txt file\r\n Socket s;\r\n s = new Socket(InetAddress.getLocalHost().getHostName(), 1234);\r\n PrintWriter pr = new PrintWriter(s.getOutputStream());\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n\t\t\tpublic void handleMessage(android.os.Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase HandleConfig.GETROOMINFO:// 获取room详情,并且1分钟更新一次\n\t\t\t\t\tdismissProcessDialog();\n\t\t\t\t\tNetEntry entry = decodePointList(msg.getData().getString(\n\t\t\t\t\t\t\t\"data\"));\n\t\t\t\t\tif (NetEntry.CODESUCESS.equals(entry.status)) {\n\t\t\t\t\t\tupdteRoomInfo(msg.getData().getString(\"data\"));\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowToastError(entry.msg);\n\t\t\t\t\t}\n\t\t\t\t\tandroid.os.Message mg = android.os.Message.obtain();\n\t\t\t\t\tmg.what = HandleConfig.REFRESHROOMINFO;\n\t\t\t\t\tmHandler.sendMessageDelayed(mg, 10000);\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase HandleConfig.REFRESHROOMINFO:\n\t\t\t\t\tif(isFinishing()==false){\n\t\t\t\t\t\tgetroominfo(roomid);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase HandleConfig.QUERYROOMUSERS:// 更新room user list\n\n\t\t\t\t\tNetEntry entry1 = decodePointList(msg.getData().getString(\n\t\t\t\t\t\t\t\"data\"));\n\n\t\t\t\t\tif (NetEntry.CODESUCESS.equals(entry1.status)) {\n\t\t\t\t\t\tJSONObject jsonobj;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tjsonobj = new JSONObject(msg.getData().getString(\n\t\t\t\t\t\t\t\t\t\"data\"));\n\n\t\t\t\t\t\t\tJSONObject tmp = jsonobj.getJSONObject(\"data\");\n\t\t\t\t\t\t\tJSONArray tmpList = tmp.getJSONArray(\"list\");\n\t\t\t\t\t\t\tperson.clear();\n\t\t\t\t\t\t\tfor (int i = 0; i < tmpList.length(); i++) {\n\t\t\t\t\t\t\t\tJSONObject t = tmpList.getJSONObject(i);\n\t\t\t\t\t\t\t\tString phone = t.getString(\"phone\");\n\t\t\t\t\t\t\t\tString id = t.getString(\"id\");\n\t\t\t\t\t\t\t\tString name = t.getString(\"name\");\n\t\t\t\t\t\t\t\tString headpic = t.getString(\"headpic\");\n\t\t\t\t\t\t\t\tif (phone.equals(owner.phone)) {// 房主\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tMessagePerson p = new MessagePerson();\n\t\t\t\t\t\t\t\tp.id = id;\n\t\t\t\t\t\t\t\tp.name=name;\n\t\t\t\t\t\t\t\tp.pic = headpic;\n\t\t\t\t\t\t\t\tp.phone = phone;\n\t\t\t\t\t\t\t\tperson.add(p);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tbigWindow.UpdateRoomPerson(person);\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowToastError(entry1.msg);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tshowToastError(\"聊天室链接失败\");\n\t\t\t\tcase 4:\n\t\t\t\t\tdismissProcessDialog();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "public void callForProfileData(){\n socket.emit(\"user\");\n }", "@Override\n public void sendChat(String message) throws ModelException {\n assert message != null;\n\n try {\n String clientModel = m_theProxy.sendChat(GameModelFacade.instance().getLocalPlayer().getIndex(), message);\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n } catch (NetworkException e) {\n throw new ModelException(e);\n }\n }", "public interface ChatManager {\n //TODO: Implementar los metodos que necesiten manejar el module\n //Documentar\n List<Chat> getChats() throws CantGetChatException;\n\n Chat getChatByChatId(UUID chatId) throws CantGetChatException;\n\n Chat newEmptyInstanceChat() throws CantNewEmptyChatException;\n\n void saveChat(Chat chat) throws CantSaveChatException;\n\n void deleteChat(Chat chat) throws CantDeleteChatException;\n\n List<Message> getMessages() throws CantGetMessageException;\n\n Message getMessageByChatId(UUID chatId) throws CantGetMessageException;\n\n Message getMessageByMessageId(UUID messageId) throws CantGetMessageException;\n\n Message newEmptyInstanceMessage() throws CantNewEmptyMessageException;\n\n void saveMessage(Message message) throws CantSaveMessageException;\n\n void deleteMessage(Message message) throws CantDeleteMessageException;\n\n List<Contact> getContacts() throws CantGetContactException;\n\n Contact getContactByContactId(UUID contactId) throws CantGetContactException;\n\n Contact newEmptyInstanceContact() throws CantNewEmptyContactException;\n\n void saveContact(Contact contact) throws CantSaveContactException;\n\n void deleteContact(Contact contact) throws CantDeleteContactException;\n}" ]
[ "0.6039268", "0.6001955", "0.5997015", "0.59008414", "0.57420516", "0.56681705", "0.5568387", "0.55485666", "0.54912823", "0.5482079", "0.54642177", "0.54319996", "0.5427684", "0.541807", "0.5373824", "0.5359513", "0.53566486", "0.5346966", "0.5327505", "0.5297723", "0.52971745", "0.5294286", "0.5285863", "0.5275707", "0.52382404", "0.5232163", "0.52298564", "0.52259696", "0.52116245", "0.5205244", "0.5204367", "0.52038723", "0.5199205", "0.51954114", "0.51941234", "0.5193303", "0.5189815", "0.5180671", "0.5177385", "0.51771086", "0.5175836", "0.51705873", "0.51697046", "0.5166743", "0.5160214", "0.5158224", "0.5140043", "0.5138579", "0.5129582", "0.51283", "0.5126199", "0.51246554", "0.5124218", "0.51239896", "0.5118258", "0.51112765", "0.51071197", "0.51029986", "0.5093597", "0.5088808", "0.5086893", "0.508283", "0.507647", "0.5076325", "0.5070736", "0.5070689", "0.50625193", "0.50595564", "0.50471777", "0.5037421", "0.50309014", "0.5030869", "0.5028462", "0.5023307", "0.50215846", "0.5017752", "0.5017486", "0.5017131", "0.5016377", "0.5011254", "0.5009982", "0.5008047", "0.50075924", "0.5005895", "0.49974298", "0.49889898", "0.49873587", "0.49821103", "0.49804506", "0.49797347", "0.49771032", "0.49755076", "0.49745688", "0.4973884", "0.4963547", "0.4962489", "0.49611014", "0.49562913", "0.49530268", "0.49504262" ]
0.6392555
0
Add Date & Time to messages.
private String getDate() { SimpleDateFormat parseFormat = new SimpleDateFormat("hh:mm a"); Date date = new Date(); String s = parseFormat.format(date); return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addMessage(final ChatMessage chatMessage)\n\t{\n\t\tfinal SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd MMMM HH:mm:ss\", Locale.US);\n\t\tfinal Date date = chatMessage.getSentDate();\n\t\tprint(\"\\n\" + dateFormat.format(date) + \", \" + chatMessage.getAuthor() + \":\");\n\t\tprint(\"\\n\" + chatMessage.getContent() + \"\\n\");\n\t}", "public Date getMessageDate();", "private void formatTime() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat ft = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\tm_timeSent = ft.format(date).toString();\r\n\t}", "private void getDate() {\t// use the date service to get the date\r\n String currentDateTimeText = theDateService.getDateAndTime();\r\n this.send(currentDateTimeText);\r\n }", "@Override\n\tpublic void msgUpdateTime(int time, int day) {\n\t\tlog.add(new LoggedEvent(\"Recieved Time \" + time));\n\t}", "public void setAddedTime(java.util.Date newAddedTime) {\n this.addedTime = newAddedTime;\n }", "public OutputChatMessage(ChatMessage original, Date time)\n\t{\n\t\tsuper(original.getId(), original.getMessage(), original.getAuthor());\n\t\tthis.time = time;\t\t\n\t}", "private static void addToLog(String message) {\n\t\ttry {\n\t\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yy HH:mm:ss:SS\");\n\t\t\tDate dateobj = new Date();\n\t\t\tlog.write(df.format(dateobj) + \": \" + message + \"\\n\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error With the Log File\");\n\t\t\tSystem.err.println(\"Exiting...\");\n\t\t\tSystem.exit(1);\n\t\t};\n\t}", "private void display(String msg) {\n String time = simpleDateFormat.format(new Date()) + \" | \" + msg;\n System.out.println(time);\n }", "void addDate(long t) {\n\tif (act != null) {\n\t long date = act.getDate() + t;\n\t act.setLocation(act.getMap(), act.getX(), act.getY(), date);\n\t}\n }", "@Override\n\tpublic void setAddTime(Date addTime) {\n\t\t\n\t}", "public void appendToReminders(Date reminders);", "public void setDateAdded(Date dateAdded);", "private void setUpdatedDateAndTime() {\n // Calendar whose Date object will be converted to a readable date String and time String\n // initially set to the current date and time\n Calendar updatedCalendar = Calendar.getInstance();\n updatedCalendar.clear();\n // subtract 1 because Calendar month numbering is 0-based, ex. January is 0\n updatedCalendar.set(UPDATED_YEAR, UPDATED_MONTH-1, UPDATED_DAY, UPDATED_HOUR, UPDATED_MINUTE);\n\n Date updatedTime = updatedCalendar.getTime();\n time = DateFormat.getTimeInstance(DateFormat.SHORT).format(updatedTime);\n // format date to show day of week, month, day, year\n date = DateFormat.getDateInstance(DateFormat.FULL).format(updatedTime);\n }", "public void addExtraTime (int t) {\n\t\textraTime += t;\n\t\textTime.setText(String.valueOf(extraTime));\n\t}", "public void addToReminders(Date reminders);", "private void refreshLastSeenDate() {\r\n\r\n if (friendFeed == null)\r\n return;\r\n\r\n Date lastMessageDate = friendFeed.getLastMessageTime();\r\n lastMessageSentDateTextView.setText(StringUtils\r\n .normalizeDifferenceDate(lastMessageDate));\r\n }", "private void displayEvent(String msg) {\n //format the event with date and time before it\n String e = sdf.format(new Date()) + \" : \" + msg;\n //add the event to the chatList array\n chatList.add(e);\n //display newly formatted event in GUI\n mg.appendEvent(e + \"\\n\");\n }", "protected void updateDate() {\r\n\t\tDate date = new Date();\r\n\t\tdate.setTime(mTime);\r\n\t\tDateFormat dateFormat = android.text.format.DateFormat.getDateFormat(getApplicationContext());\r\n\t\tString text = dateFormat.format(date);\r\n\t\tmDatePickerText.setText(text);\r\n\t}", "@Override\n\tpublic synchronized boolean add(TracesMessage obj) {\n\t\tTracesMessage log = obj;\n\t\tlong ts =log.getTime();\n\t\tif (ts < startTime || startTime < 0)\n\t\t\tstartTime = ts;\n\t\treturn super.add(obj);\n\t}", "@Override\r\n\tpublic void addMessage(Integer receive_id, Integer send_id, String content,Timestamp createtime) {\n\t\tString sql=\"insert into message(receive_id,send_id,content,createtime,isread,result) values(?,?,?,?,?,?)\";\r\n\t\tObject[] args=new Object[] {receive_id,send_id,content,createtime,0,0};\r\n\t\ttry {\r\n\t\t\tupdate(conn, sql, args);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void log(String message){\n Date date = new Date();\n String pattern = \"hh:mm:ss\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n String dateText = simpleDateFormat.format(date);\n System.out.println(\"LOG \" + dateText + \": \" + message);\n }", "private void addMessageToUI (Message message) {\n if (message == null) {\n return;\n }\n\n //find the correct position based on timestamp\n int index = chatMessages.size() - 1;\n while (index >= 0 && message.getTimestamp() < chatMessages.get(index).getTimestamp()) {\n index--;\n }\n\n //update inerted message show time/sender flags\n Message lastMsg = index >= 0 ? chatMessages.get(index) : null;\n message.showMessageTime = lastMsg == null || message.getTimestamp() - lastMsg.getTimestamp() > Message.GROUP_TIME_THRESHOLD;\n message.showMessageSender = lastMsg == null || message.showMessageTime || !message.getSenderId().equals(lastMsg.getSenderId());\n chatMessages.add(index + 1, message);\n chatRoomAdapter.notifyItemInserted(index + 1);\n\n //upate next message show time/sender flags\n Message nextMsg = index + 2 < chatMessages.size() ? chatMessages.get(index + 2) : null;\n if (nextMsg != null) {\n boolean nextMsgShowMsgTime = nextMsg.getTimestamp() - message.getTimestamp() > Message.GROUP_TIME_THRESHOLD;\n boolean nextMsgShowMsgSender = nextMsgShowMsgTime || !nextMsg.getSenderId().equals(message.getSenderId());\n if (nextMsgShowMsgTime != nextMsg.showMessageTime || nextMsgShowMsgSender != nextMsg.showMessageSender) {\n nextMsg.showMessageTime = nextMsgShowMsgTime;\n nextMsg.showMessageSender = nextMsgShowMsgSender;\n chatRoomAdapter.notifyItemChanged(index + 2);\n }\n }\n\n chatLayoutManager.scrollToPosition(chatMessages.size() - 1);\n }", "public void Add_date(String d)\n {\n\n date = new String(d);\t\n }", "private void setTimeDate(){\n tvTime = (TextView) findViewById(R.id.tv_time);\n dateFormat = new SimpleDateFormat(\"hh:mm a\");\n tvTime.setText(dateFormat.format(new Date()).toString());\n\n //Set Date to Top TextView\n tvDate = (TextView) findViewById(R.id.tv_date);\n dateFormat = new SimpleDateFormat(\"EEE, MMM d\");\n tvDate.setText(dateFormat.format(new Date()).toString());\n }", "void createDailyMessageRaport(String stringCurrentDate);", "public void addSystemGeneratedMessage(Chat receiverChat)\n {\n Timestamp timestamp = new Timestamp(System.currentTimeMillis());\n\n String lastUpdateDay = Utils.SIMPLE_DATE_ONLY_FORMAT.format(\n new Date(mChatDetails.getTimestampLastUpdateLong()));\n\n String today = Utils.SIMPLE_DATE_ONLY_FORMAT.format(\n new Date(timestamp.getTime()));\n\n if((lastUpdateDay.equals(today) && mChatDetails.getTotalNoOfMessagesAvailable()==0) ||\n !lastUpdateDay.equals(today)) {\n\n String senderFirstName = \"SystemGeneratedMessage\";\n String senderEmail = \"SystemGeneratedMessage\";\n HashMap<String, Object> timestampMessageSentAt = new HashMap<String, Object>();\n timestampMessageSentAt.put(Constants.FIREBASE_PROPERTY_TIMESTAMP, ServerValue.TIMESTAMP);\n\n\n String statusDelivered = getResources().getString(R.string.message_status_delivered);\n String visibleTo = \"All\";\n\n\n mReceiverChatMessagesRef = mAllChatsRef.child(receiverChat.chatId);\n String messageId = mReceiverChatMessagesRef.push().getKey();\n\n Message systemGeneratedMessage = new Message(today, messageId, statusDelivered, senderFirstName, senderEmail, visibleTo, timestampMessageSentAt, null, null);\n mReceiverChatMessagesRef.child(messageId).setValue(systemGeneratedMessage);\n }\n }", "public void sendMessage(View v) {\n /*\n\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n EditText editText = (EditText) findViewById(R.id.edit_message);\n String message = editText.getText().toString();\n intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n\n */\n long time = currentTimeMillis();\n Date d1 = new Date();\n Date d2;\n // d2 = new Date(d1.getYear(),d1.getMonth(),d1.getDate(),d1.getHours(),d1.getMinutes(),d1.getSeconds());\n Toast.makeText(this, \"ALARM ON\", Toast.LENGTH_SHORT).show();\n // Calendar calendar = Calendar.getInstance();\n // calendar.set(Calendar.HOUR_OF_DAY, alarmTimePicker.getCurrentHour());\n // calendar.set(Calendar.MINUTE, alarmTimePicker.getCurrentMinute());\n alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(MainActivity.this, AlarmReceiver.class);\n pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0);\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n // Set the alarm's trigger time to 8:30 a.m.\n calendar.set(Calendar.HOUR_OF_DAY, 14);\n calendar.set(Calendar.MINUTE, 58);\n Toast.makeText(MainActivity.this, \"bjr\", Toast.LENGTH_SHORT).show();\n // alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, time + 5, 10000, pendingIntent);\n alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), pendingIntent);\n // Bon manque de prevenir le receiver....!!\n\n }", "public void addMessage() {\n }", "@Override\n\t\tpublic void addReportToDBMessage(ArrayList<Object> msg) {\n\t\t\tString parkName = (String) msg.get(3);\n\t\t\tint month = ((Date) msg.get(1)).getMonth() + 1;\n\t\t\tString stringToAdd = \"\";\n\t\t\tArrayList<String> DataToAddToDB = (ArrayList<String>) msg.get(2);\n\t\t\tfor (String s : DataToAddToDB)\n\t\t\t\tstringToAdd += s + \" \";\n\t\t\tstringToAdd = stringToAdd.substring(0, stringToAdd.length() - 1);\n\t\t\thashMapDB.get(parkName).put(month, stringToAdd);\n\t\t}", "public final void addDate(final Date date,\n final String type) throws RIFCSException {\n DateFormat df = new SimpleDateFormat(TEMPORAL_DATE_FORMAT);\n String text = df.format(date);\n String result = text.substring(0, TEMPORAL_DATE_FORMAT_LENGTH)\n + \":\" + text.substring(TEMPORAL_DATE_FORMAT_LENGTH);\n this.addDate(result, type);\n }", "public Booking(String message, int year, int month, int day, String time, String from, String to, String display, String username, String displayName) {\n this.wholeMsg = message;\n this.echo = 0;\n this.reports = 0;\n this.calendarYear = year;\n this.calendarMonth = month;\n this.calendarDay = day;\n this.time = time;\n this.from = from;\n this.to = to;\n this.display=display;\n this.username = username;\n this.displayName = displayName;\n\n\n String[] arr1 = time.split(\":\");\n Calendar c = GregorianCalendar.getInstance();\n c.set(year, month, day, Integer.parseInt(arr1[0]), Integer.parseInt(arr1[1]));\n this.timestamp = c.getTime().getTime();\n }", "public java.util.Date getAddedTime() {\n return addedTime;\n }", "public String getMyDatePosted() {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.US);\n try {\n Date date = format.parse(myDatePosted);\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n cal.add(Calendar.HOUR, -7);\n Date temp = cal.getTime();\n format.applyPattern(\"MMM dd, yyyy hh:mm a\");\n return format.format(temp);\n } catch (ParseException e) {\n return myDatePosted;\n }\n }", "public Date getSendTime() {\n return sendTime;\n }", "public void setAddtime(Date addtime) {\r\n this.addtime = addtime;\r\n }", "public void setTimeSend(Date timeSend) {\n this.timeSend = timeSend;\n }", "public Date getAddtime() {\r\n return addtime;\r\n }", "public void setAddtime(Date addtime) {\n this.addtime = addtime;\n }", "private void setTimestamp(ViewHolder holder, boolean hasNewMessages, long timestamp) {\n // format the timestamp to a pretty visible format\n String formattedTimestamp = TimeUtils.getFormattedTimestamp(holder.itemView.getContext(), timestamp);\n\n if (hasNewMessages) {\n // show bold text\n holder.lastMessageTimestamp.setText(Html.fromHtml(\"<b>\" + formattedTimestamp + \"</b>\"));\n } else {\n // not not bold text\n holder.lastMessageTimestamp.setText(formattedTimestamp);\n }\n }", "public void addMessage (Message message)\r\n\t{\r\n\t\tString bcast_log_text = ucast_log.getText() ;\r\n\t\tString new_text = Message.getNickname(message.getSender()) + \" : \" + message.getMessage() + \"\\n\";\r\n\t\tucast_log.setText(bcast_log_text + new_text);\r\n\t}", "public Message () {\n\t\tthis.setCreationtime(Calendar.getInstance().getTimeInMillis());\n\t\tsetTimestamp();\n\t}", "public void updateText() {\n\n dateText = dateFormat.format(c.getTime());\n timeText = timeFormat.format(c.getTime());\n dateEt.setText(dateText + \" \"+ timeText);\n}", "private void serverDisplay(String message)\n {\n String timeStamp = dateFormat.format(new Date()) + \" \" + message;\n System.out.println(timeStamp);\n }", "public Date getAddtime() {\n return addtime;\n }", "private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }", "@Override\n public void addDateHeader(String arg0, long arg1) {\n\n }", "public Date getAddTime() {\n return addTime;\n }", "public void addToReminders(List<Date> reminders);", "public void addMessage(String msg){messages.add(msg);}", "public void setAddTime(LocalDateTime addTime) {\n this.addTime = addTime;\n }", "public void setAddTime(LocalDateTime addTime) {\n this.addTime = addTime;\n }", "public void setAddTime(LocalDateTime addTime) {\n this.addTime = addTime;\n }", "public void addMessage(DataMessage message) {\n\t\tthis.tableModel.addMessage(message);\n\t\tthis.showLastMessage();\n\t}", "public void appendToReminders(List<Date> reminders);", "protected void addMessage(IDBSMessage pMessage){\n\t\twMessages.add(pMessage);\n\t}", "public void addDateHeader(String s, long l) {\n\t\t\n\t}", "private synchronized static void internalLog(StringBuilder msg) {\n\n //add time header\n String timeStamp = simpleDateFormat.format(new Date());\n msg.insert(0, timeStamp);\n byte[] contentArray = msg.toString().getBytes();\n int length = contentArray.length;\n int srcPos = 0;\n\n if (mPos == LOG_BUFFER_SIZE_MAX) {\n //Flush internal buffer\n flushInternalBuffer();\n }\n\n if (length > buffer.length) {\n //Strongly flush the current buffer no matter whether it is full\n flushInternalBuffer();\n\n //Flush all msg string to sd card\n while (length > buffer.length) {\n\n System.arraycopy(contentArray, srcPos, buffer, mPos, buffer.length);\n\n flushInternalBuffer();\n\n length -= buffer.length;\n srcPos += buffer.length;\n\n }\n } else if (length == buffer.length) {\n flushInternalBuffer();\n\n //Copy contents to buffer\n System.arraycopy(contentArray, 0, buffer, mPos, length);\n flushInternalBuffer();\n length = 0;\n }\n\n if (length < buffer.length && length > 0) {\n if ((mPos + length) > buffer.length) {\n flushInternalBuffer();\n\n //Copy contents to buffer\n System.arraycopy(contentArray, srcPos, buffer, mPos, length);\n mPos += length;\n\n } else if ((mPos + length) == buffer.length) {\n //Add content to buffer\n System.arraycopy(contentArray, srcPos, buffer, mPos, length);\n mPos += length;\n\n flushInternalBuffer();\n\n } else {\n //Add content to buffer\n System.arraycopy(contentArray, srcPos, buffer, mPos, length);\n mPos += length;\n\n }\n\n }\n\n }", "private void PrintMessageOnTextChat(MessageWithTime message)\n\t{\n\t\tApplicationManager.textChat.write(message);\n\n\t}", "public String getDateAdded() {\n return dateAdded;\n }", "public void setSendTime(Date sendTime) {\n this.sendTime = sendTime;\n }", "public Date getDateAdded();", "private synchronized void addMessage(String user, String message) {\n\t\tchatData.addElement(new ChatMessage(user, message));\n\t\tif (chatData.size() > 20)\n\t\t\tchatData.removeElementAt(0);\n\t}", "public void setSentTime(Date v) \n {\n \n if (!ObjectUtils.equals(this.sentTime, v))\n {\n this.sentTime = v;\n setModified(true);\n }\n \n \n }", "@Override\n public void onSuccess(long time) {\n ChatMessageBean message = new ChatMessageBean();\n message.setBelongUserMobileNo(currentUser.getMobilePhoneNumber());\n message.setContent(chatMessage);\n message.setSendTime(String.valueOf(time*1000L));\n message.setTargetUserMobileNo(friend.getMobilePhoneNumber());\n\n message.save(FriendsChatActivity.this);\n\n ImSdkUtil.sendTextMessage(friend.getMobilePhoneNumber(), chatMessage);\n\n chatAdapter.add(message);\n mChatListView.setSelection(chatAdapter.getCount() - 1);\n }", "@Override\n public String toString() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"[\" + super.getType() + \"]\" + super.toString() + \" (by: \" + df.format(this.date) + \")\";\n }", "private void updateTimeTxtV()\n {\n String timeFormat =\"hh:mm aaa\";//12:08 PM\n SimpleDateFormat stf = new SimpleDateFormat(timeFormat, Locale.CANADA);\n timeStr = stf.format(cal.getTime());\n timeTxtV.setText(timeStr);\n\n //unix datetime for saving in db\n dateTimeUnix = cal.getTimeInMillis() / 1000L;\n }", "public String getTimeAndDate() {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd MMM hh:mm\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString dateAndTime = dateFormat.format(cal.getTime());\n\t\t\treturn dateAndTime;\n\t\t}", "public void addEvent() {\n TimetableUserItem event;\n try {\n String description = getDescription();\n String date = getDate();\n String startTime = getStartTime();\n String endTime = getEndTime();\n verifyCorrectTime(startTime, endTime);\n String location = getLocation();\n event = new TimetableUserItem(description, date, startTime, endTime, location);\n verifyNoConflict(event);\n timetable.addEvent(event.getDayOfWeek(), event);\n timetable.addToEvents(event);\n addUI.printEventMessage(event);\n } catch (AddException e) {\n e.printMessage();\n logger.log(Level.WARNING, \"Invalid event created, event has not been added to timetable\");\n }\n }", "public Tweet(String message, Date date){\n this.message = message;\n this.date = date;\n\n }", "public void addTime(Time a){\n\t\ttimes.add(a);\n\t}", "@Override\n public HangarMessages addConstraintsTypeLocalDateTimeMessage(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(CONSTRAINTS_TypeLocalDateTime_MESSAGE));\n return this;\n }", "public Message addMessage(Message p);", "public Date getTimeSend() {\n return timeSend;\n }", "public void setSendingTime(Date sendingTime) {\n this.sendingTime = sendingTime;\n }", "public Date getSendingTime() {\n return sendingTime;\n }", "abstract void addMessage(Message message);", "public void addDateField(Date date) {\n\t\tput(\"BIRTHDAY\", Constants.TIME_FMT.format(date));\n\t}", "public void print(String message) {\n\t\tDate date = new Date();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm:ss.S\");\n\t\tSystem.out.println(sdf.format(date) + \"\t: \" + message);\n\t}", "public Message(){\n\t\ttimeStamp = System.currentTimeMillis();\n\t}", "@Override\n\tpublic void addDateHeader(String name, long date) {\n\t}", "public void appendModelEvent(String text) {\n try {\n DateFormat dateFormat = new java.text.SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n StyledDocument doc = screenTP.getStyledDocument();\n doc.insertString(doc.getLength(), formatForPrint(dateFormat.format(date) + \" - \" + text), doc.getStyle(\"modelEvent\"));\n screenTP.setCaretPosition(doc.getLength());\n } catch (BadLocationException ex) {\n AdaptationSuperviser.logger.error(\"Error while trying to append incoming message in the \" + this.getName(), ex);\n }\n }", "@Override\n protected void populateView(View v, ChatMessage model, int position) {\n TextView messageText = (TextView)v.findViewById(R.id.message_text);\n TextView messageUser = (TextView)v.findViewById(R.id.message_user);\n TextView messageTime = (TextView)v.findViewById(R.id.message_time);\n // Set their text\n messageText.setText(model.getMessageText());\n messageUser.setText(model.getMessageUser());\n\n // Format the date before showing it\n messageTime.setText(DateFormat.format(\"dd-MM-yyyy (HH:mm:ss)\",\n model.getMessageTime()));\n }", "public void addMessage(String message);", "public void send(Message message) {\n\t\tthis.clockSer.addTS(this.localName);\n\t\t((TimeStampedMessage)message).setMsgTS(this.clockSer.getTs().makeCopy());\nSystem.out.println(\"TS add by 1\");\n\n\t\ttry {\n\t\t\tparseConfig();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessage.set_source(localName);\n\t\tmessage.set_seqNum(currSeqNum++);\n\t\t\t\t\n\t\tRule rule = null;\n\t\tif((rule = matchRule(message, RuleType.SEND)) != null) {\n\t\t\tif(rule.getAction().equals(\"drop\")) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\telse if(rule.getAction().equals(\"duplicate\")) {\n\t\t\t\tMessage dupMsg = message.makeCopy();\n\t\t\t\tdupMsg.set_duplicate(true);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/* Send 'message' and 'dupMsg' */\n\t\t\t\tdoSend(message);\n\t\t\t\t/* update the timestamp */\n\t\t\t\tthis.clockSer.addTS(this.localName);\n\t\t\t\t((TimeStampedMessage)dupMsg).setMsgTS(this.clockSer.getTs().makeCopy());\nSystem.out.println(\"TS add by 1\");\n\t\t\t\tdoSend(dupMsg);\n\t\t\t\t\n\t\t\t\t/* We need to send delayed messages after new message.\n\t\t\t\t * This was clarified in Live session by Professor.\n\t\t\t\t */\n\t\t\t\tfor(Message m : delaySendQueue) {\n\t\t\t\t\tdoSend(m);\n\t\t\t\t}\n\t\t\t\tdelaySendQueue.clear();\n\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(rule.getAction().equals(\"delay\")) {\n\t\t\t\tdelaySendQueue.add(message);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"We get a wierd message here!\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tdoSend(message);\n\t\t\t\n\t\t\t/* We need to send delayed messages after new message.\n\t\t\t * This was clarified in Live session by Professor.\n\t\t\t */\n\t\t\tfor(Message m : delaySendQueue) {\n\t\t\t\tdoSend(m);\n\t\t\t}\n\t\t\tdelaySendQueue.clear();\n\t\t}\n\t\t\n\t}", "public static void showMeswithTime(String str){\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\tString date = df.format(new Date());\r\n\t\tSystem.out.println(date+\" : \"+str);\r\n\t}", "Builder addDateCreated(Date value);", "public void logChat(String text) {\n\t\ttry {\n\n\t\t\tDateFormat df = new SimpleDateFormat(\"'On' MM/dd/yyyy 'at' HH:mm:ss\");\n\t\t\tDate d = new Date();\n\n\t\t\tchatLog.add(df.format(d) + \", \" + c.getDisplayName() + \" said: \" + text + \"\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\twriteChatLog();\n\t\t}\n\t}", "private void printChronologerMessage(String message) {\n dialogBoxContainer.getChildren().add(DialogBox.getChronologerDialog(message).getRoot());\n }", "@Override\n\tpublic Date getAddTime() {\n\t\treturn null;\n\t}", "@Override\n\tpublic int add(Message t) {\n\t\treturn 0;\n\t}", "public void setDateAdded(java.util.Date dateAdded) {\n this.dateAdded = dateAdded;\n }", "Builder addDateCreated(DateTime value);", "private void print(String msg) {\r\n\t\tSystem.out.printf(\"[%tT] %s\\n\", Calendar.getInstance(), msg);\r\n\t}", "Builder addDateCreated(String value);", "public void addTime(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), TIME, value);\r\n\t}", "public Notification(String message, Long date) {\n this.message = message;\n this.date = date;\n }", "public void addTime(long time)\r\n {\r\n listOfTimes.add(time);\r\n }", "public void updateTextLabel() {\n waktu.setText(dateFormat.format(c.getTime()));\n }", "public void add(Message message){\n if (message.getContent().length() <= 280) {\n this.messages.add(message);\n }\n //this.messages.add(message);\n }", "private void updateTimeEntryData()\n throws RedmineException\n {\n if (System.currentTimeMillis() > (timeEntriesUpdateTimeStamp+Settings.cacheExpireTime*1000))\n {\n synchronized(timeEntries)\n {\n // get total number of time entries\n int timeEntryCount = getDataLength(\"/time_entries\",\"time_entry\");\n for (int i = timeEntries.size(); i < timeEntryCount; i++)\n {\n timeEntries.add(TIME_ENTRY_NULL);\n }\n\n // get date of first time entry (Note: always sorted descending and cannot be changed)\n timeEntryStartDate = new Date();\n getData(\"/time_entries\",\"time_entry\",timeEntryCount-1,1,new ParseElementHandler<TimeEntry>()\n {\n public void data(Element element)\n {\n timeEntryStartDate = getDateValue(element,\"spent_on\");\n//Dprintf.dprintf(\"timeEntryStartDate=%s\",timeEntryStartDate);\n }\n });\n\n timeEntriesUpdateTimeStamp = System.currentTimeMillis();\n }\n }\n }" ]
[ "0.65921706", "0.6273567", "0.6113912", "0.597329", "0.585337", "0.57489544", "0.5728519", "0.5607009", "0.56053466", "0.55867136", "0.5586023", "0.55404395", "0.5523602", "0.5516739", "0.55052036", "0.55029577", "0.5499182", "0.5492447", "0.549162", "0.54915756", "0.5464664", "0.5461633", "0.54309875", "0.54165006", "0.53794366", "0.5360369", "0.5334783", "0.53346443", "0.53335786", "0.5317897", "0.529771", "0.52876574", "0.5282712", "0.5281241", "0.5272318", "0.52679944", "0.526636", "0.525789", "0.52557296", "0.52556217", "0.5253533", "0.5240356", "0.5237774", "0.52301806", "0.5227208", "0.52156115", "0.5214272", "0.5204436", "0.5200472", "0.5192878", "0.51852155", "0.51852155", "0.51852155", "0.5181824", "0.5175973", "0.51705784", "0.51634574", "0.5162736", "0.51610273", "0.51488227", "0.5138644", "0.51355183", "0.5133485", "0.5132077", "0.51084036", "0.510721", "0.5092825", "0.5092723", "0.5089792", "0.50885206", "0.50825447", "0.50813717", "0.5077982", "0.50645506", "0.50627095", "0.50618947", "0.5060998", "0.5052427", "0.5050506", "0.50481606", "0.5047889", "0.5041685", "0.504127", "0.50396705", "0.5036629", "0.50327015", "0.50276506", "0.5027267", "0.50265", "0.5024071", "0.5022861", "0.501711", "0.5015246", "0.50119406", "0.50086004", "0.5007867", "0.50072396", "0.50038874", "0.499697", "0.49951333", "0.49881127" ]
0.0
-1
Instantiates a new recording deleter.
public RecordingDeleter(AsyncCallback callback) { this.callback = callback; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onDestroy() {\n super.onDestroy();\n\n stopRecording();\n }", "public interface RecordManager {\n\n void startRecord(String path);\n\n void stopRecord(Runnable endCallback);\n\n void init();\n\n void release();\n\n}", "public void StopRecording()\n {\n handler.stopRecording();\n\n }", "public void release() {\n\t\tif (state == State.RECORDING) {\n\t\t\tstopRecord();\n\t\t}\n\t\tif (audioRecorder != null) {\n\t\t\taudioRecorder.release();\n\t\t}\n\t\tstate = State.INITIALIZING;\n\t\tsRecorderManager = null;\n\t\taudioRecorder = null;\n\t}", "private void RecordStoreLockFactory() {\n }", "private void releaseMediaRecorder() {\n if (mediaRecorder == null) return;\n\n mediaRecorder.stop();\n mediaRecorder.reset(); // clear recorder configuration\n }", "public GpsRecordManager()\n {\n registeredListeners = new LinkedHashSet<>();\n }", "public interface Deleter {\n\n public void OnDeletion(String message);\n}", "public static _OnGestureRecordCompletedDel create(ClsCtx dwClsContext) throws ComException\r\n {\r\n final _OnGestureRecordCompletedDelImpl intf = new _OnGestureRecordCompletedDelImpl(CLASS_ID, dwClsContext);\r\n OleFunctions.oleRun(intf);\r\n return intf;\r\n }", "private void stopRecording() {\n\n }", "private void stopRecording() {\n Log.e(TAG, \"Stop recording file: \" + curRecordingFileName);\n if (null != mRecorder) {\n mRecorder.stop();\n mRecorder.release();\n mRecorder = null;\n }\n\n }", "public RecordingRepository() {\r\n recordings = new ArrayList<>();\r\n recordingMap = new HashMap<>();\r\n recordingsByMeetingIDMap = new HashMap<>();\r\n update();\r\n }", "public void onDelete(final R record) {\n // can be overridden.\n }", "@Implementation(minSdk = N)\n protected void unregisterAudioRecordingCallback(AudioManager.AudioRecordingCallback cb) {\n audioRecordingCallbacks.remove(cb);\n }", "void delete(ResultCapture<Void> extractor);", "File stopRecording();", "public void onDestroy() {\n super.onDestroy();\n C0938a.m5006c(\"SR/SoundRecorder\", \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~onDestroy\");\n m6659t();\n ServiceConnection serviceConnection = this.f5403W;\n if (serviceConnection != null) {\n unbindService(serviceConnection);\n }\n }", "public GeppettoRecordingCreator(String name)\n\t{\n\t\t_fileName = name;\n\t}", "@Delete\n void delete(Measurement measurement);", "private void startRecording() {\n\n }", "public void stopRecording() {\n BLog.d(TAG, \"stopRecording()\");\n stopLastRunnable();\n mRecordingRunnable.stopRun();\n try {\n mRecordingThread.interrupt();\n } catch (Exception e) {}\n mRecordingThread = null;\n }", "private void stopRecordRegistration(SoundRecordingUtil recorder, File wavFile) {\r\n\t\ttry {\r\n\t\t\trecorder.stop();\r\n\t\t\trecorder.save(wavFile);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void stopRecording() {\n recoTransaction.stopRecording();\n }", "public Disposer(String tag){\n disposables=new ArrayList<Disposable>();\n names=new ArrayList<String>();\n TAG=tag+\" disposes\";\n logging = false;\n }", "public RecordService() {\n super(\"RecordService\");\n }", "public LateComingRecord() {\n\t\t}", "private interface Deletion {\n\n /**\n * Requests deletion.\n *\n * @return a request that can be canceled, or {@code null} if the request was processed directly\n */\n @Nullable\n MediaRequest request();\n }", "void delete(String receiptHandle);", "public Desinscription() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "static void recordLeakNonRefCountingOperation(ResourceLeakTracker<ByteBuf> leak)\r\n/* 46: */ {\r\n/* 47: 63 */ if (!ACQUIRE_AND_RELEASE_ONLY) {\r\n/* 48: 64 */ leak.record();\r\n/* 49: */ }\r\n/* 50: */ }", "private void stopRecording() {\n if (mRecordingHelper != null) {\n File file = mRecordingHelper.stopRecord();\n\n if (file == null) {\n return;\n }\n\n if (mOnRecordingPopupListener != null) {\n mOnRecordingPopupListener.onResultBuffer(file.getAbsolutePath());\n }\n\n// byte[] bytesArray = new byte[(int) file.length()];\n//\n// FileInputStream fis = null;\n// try {\n// fis = new FileInputStream(file);\n// fis.read(bytesArray); //read file into bytes[]\n// fis.close();\n//\n//\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n\n }\n\n if (isShowing()) {\n hide();\n }\n }", "public SongRecord(){\n\t}", "void stopRecording() {\n // Save the track id as the shared preference will overwrite the recording track id.\n SharedPreferences sharedPreferences = getSharedPreferences(\n Constants.SETTINGS_NAME, Context.MODE_PRIVATE);\n long currentTrackId = sharedPreferences.getLong(getString(R.string.recording_track_key), -1);\n \n ITrackRecordingService trackRecordingService = serviceConnection.getServiceIfBound();\n if (trackRecordingService != null) {\n try {\n trackRecordingService.endCurrentTrack();\n } catch (Exception e) {\n Log.e(TAG, \"Unable to stop recording.\", e);\n }\n }\n \n serviceConnection.stop();\n \n if (currentTrackId > 0) {\n Intent intent = new Intent(MyTracks.this, TrackDetail.class);\n intent.putExtra(TrackDetail.TRACK_ID, currentTrackId);\n intent.putExtra(TrackDetail.SHOW_CANCEL, false);\n startActivity(intent);\n }\n }", "public void startRecording(){\n String samplerateString = null, buffersizeString = null;\n if (Build.VERSION.SDK_INT >= 17) {\n AudioManager audioManager = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE);\n samplerateString = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE);\n buffersizeString = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER);\n }\n samplerateString= \"48000\";\n buffersizeString = \"256\";\n\n System.loadLibrary(\"FrequencyDomain\");\n FrequencyDomain(Integer.parseInt(samplerateString), Integer.parseInt(buffersizeString));\n }", "public InstrumentedFileOutputStream(FileDescriptor fdObj, String recId) {\r\n super(fdObj);\r\n this.recId = recId;\r\n }", "public GoogleApiRecord() {\n super(GoogleApi.GOOGLE_API);\n }", "public RecordStoreException() {\n }", "public DefaultEventRecorderStrategy(RecorderStrategy strategy) {\r\n super(strategy.getStorage());\r\n this.strategy = strategy;\r\n start();\r\n }", "default void destroy() {}", "void destruct()\n\t{\n\t\tlistenerList = null;\n\t}", "public DoctorRecord() {\n super(Doctor.DOCTOR);\n }", "LogRecorder getLogRecorder();", "LogRecorder getLogRecorder();", "@Override\n public void destroy() {\n super.destroy();\n logger.log(Level.INFO, \"destory() Invoked\");\n }", "public void stopAndReleaseAudioRecord() {\n if ((mAudioRecord != null) && (mAudioRecord.getState() != AudioRecord.STATE_UNINITIALIZED)) {\n try {\n mAudioRecord.stop();\n mAudioRecord.release();\n } catch (Exception e) {\n Log.e(TAG, \"stopAndReleaseAudioRecord() Exception: \" + e.getMessage());\n }\n }\n mAudioRecord = null;\n }", "private StorageFacade() {\n }", "void delete(UnsubscribeRequest request, ResultCapture<Void> extractor);", "protected RecordStorageUnderTest(ContextSpec context, RecordStorage<I, M> delegate) {\n super(context, delegate);\n }", "@Generated\n@Library(\"AVFAudio\")\n@Runtime(ObjCRuntime.class)\n@ObjCProtocolName(\"AVAudioRecorderDelegate\")\npublic interface AVAudioRecorderDelegate {\n /**\n * audioRecorderBeginInterruption: is called when the audio session has been interrupted while the recorder was\n * recording. The recorded file will be closed.\n * \n * API-Since: 2.2\n * Deprecated-Since: 8.0\n */\n @Generated\n @IsOptional\n @Deprecated\n @Selector(\"audioRecorderBeginInterruption:\")\n default void audioRecorderBeginInterruption(@NotNull AVAudioRecorder recorder) {\n throw new java.lang.UnsupportedOperationException();\n }\n\n /**\n * audioRecorderDidFinishRecording:successfully: is called when a recording has been finished or stopped. This\n * method is NOT called if the recorder is stopped due to an interruption.\n */\n @Generated\n @IsOptional\n @Selector(\"audioRecorderDidFinishRecording:successfully:\")\n default void audioRecorderDidFinishRecordingSuccessfully(@NotNull AVAudioRecorder recorder, boolean flag) {\n throw new java.lang.UnsupportedOperationException();\n }\n\n /**\n * if an error occurs while encoding it will be reported to the delegate.\n */\n @Generated\n @IsOptional\n @Selector(\"audioRecorderEncodeErrorDidOccur:error:\")\n default void audioRecorderEncodeErrorDidOccurError(@NotNull AVAudioRecorder recorder, @Nullable NSError error) {\n throw new java.lang.UnsupportedOperationException();\n }\n\n /**\n * audioRecorderEndInterruption: is called when the preferred method, audioRecorderEndInterruption:withFlags:, is\n * not implemented.\n * \n * API-Since: 2.2\n * Deprecated-Since: 6.0\n */\n @Generated\n @IsOptional\n @Deprecated\n @Selector(\"audioRecorderEndInterruption:\")\n default void audioRecorderEndInterruption(@NotNull AVAudioRecorder recorder) {\n throw new java.lang.UnsupportedOperationException();\n }\n\n /**\n * API-Since: 4.0\n * Deprecated-Since: 6.0\n */\n @Generated\n @IsOptional\n @Deprecated\n @Selector(\"audioRecorderEndInterruption:withFlags:\")\n default void audioRecorderEndInterruptionWithFlags(@NotNull AVAudioRecorder recorder, @NUInt long flags) {\n throw new java.lang.UnsupportedOperationException();\n }\n\n /**\n * audioRecorderEndInterruption:withOptions: is called when the audio session interruption has ended and this\n * recorder had been interrupted while recording.\n * Currently the only flag is AVAudioSessionInterruptionFlags_ShouldResume.\n * \n * API-Since: 6.0\n * Deprecated-Since: 8.0\n */\n @Generated\n @IsOptional\n @Deprecated\n @Selector(\"audioRecorderEndInterruption:withOptions:\")\n default void audioRecorderEndInterruptionWithOptions(@NotNull AVAudioRecorder recorder, @NUInt long flags) {\n throw new java.lang.UnsupportedOperationException();\n }\n}", "public static RecordingRepository getInstance() {\r\n if (_instance == null) {\r\n _instance = new RecordingRepository();\r\n }\r\n return _instance;\r\n }", "@Override\n public void onCancel() {\n Log.d(\"RecordView\", \"onCancel\");\n mediaRecorder.reset();\n mediaRecorder.release();\n File file = new File(audioPath);\n if(file.exists())\n file.delete();\n binding.recordingLayout.setVisibility(View.GONE);\n binding.messageLayout.setVisibility(View.VISIBLE);\n }", "default void record(Consumer<Long> f) {\n long id = start();\n try {\n f.accept(id);\n } finally {\n stop(id);\n }\n }", "void delete(TimelineIdentifier identifier);", "DataHRecordData() {}", "Recycler.DefaultHandle<T> newHandle()\r\n/* 582: */ {\r\n/* 583:623 */ return new Recycler.DefaultHandle(this);\r\n/* 584: */ }", "private void stopRecordIdentification(SoundRecordingUtil recorder, File wavFile) {\r\n\t\ttry {\r\n\t\t\trecorder.stop();\r\n\t\t\trecorder.save(wavFile);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void deleteRecord() {\n\n new BackgroundDeleteTask().execute();\n }", "void afterDelete(T resource);", "public void endRecord() {\n if (recordHandler != null)\n recordHandler.record(record);\n }", "@Override\n public void delete() {\n }", "D createDelegate() {\n return null;\n }", "@Override\n public void destroy() {\n }", "default void record(Runnable f) {\n long id = start();\n try {\n f.run();\n } finally {\n stop(id);\n }\n }", "public native void destruirTracker();", "void deletePatient(Patient target);", "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "public Deleter delete() {\n return new AugmentedDeleter() {\n @Override\n protected void handleDeletion(Iterable<Key<?>> keys) {\n assertInTransaction();\n checkState(Streams.stream(keys).allMatch(Objects::nonNull), \"Can't delete a null key.\");\n checkProhibitedAnnotations(keys, NotBackedUp.class, VirtualEntity.class);\n TRANSACTION_INFO.get().putDeletes(keys);\n }\n };\n }", "protected final DispensableDrug newDispensableDrugInstance() {\n return new DispensableDrug(fdbDataManager);\n }", "public void setVadRecorder(){\n }", "private void stopRecord() {\n /*\n r6 = this;\n r5 = 0;\n r1 = r6.isRecording;\n if (r1 != 0) goto L_0x0006;\n L_0x0005:\n return;\n L_0x0006:\n r1 = com.baidu.navisdk.BNaviModuleManager.getContext();\n com.baidu.navisdk.util.listener.MediaFocuseChangeListener.releaseAudioFocus(r1);\n com.baidu.navisdk.comapi.tts.TTSPlayerControl.resumeVoiceTTSOutput();\n r1 = 0;\n r6.isRecording = r1;\n r1 = r6.recordProcessIView;\n if (r1 == 0) goto L_0x001c;\n L_0x0017:\n r1 = r6.recordProcessIView;\n r1.clearAnimation();\n L_0x001c:\n r1 = r6.mTimer;\t Catch:{ Exception -> 0x004d }\n if (r1 == 0) goto L_0x0025;\n L_0x0020:\n r1 = r6.mTimer;\t Catch:{ Exception -> 0x004d }\n r1.cancel();\t Catch:{ Exception -> 0x004d }\n L_0x0025:\n r1 = r6.mRecorder;\t Catch:{ Exception -> 0x004d }\n if (r1 == 0) goto L_0x0036;\n L_0x0029:\n r1 = r6.mRecorder;\t Catch:{ Exception -> 0x005c }\n r1.stop();\t Catch:{ Exception -> 0x005c }\n L_0x002e:\n r1 = r6.mRecorder;\t Catch:{ Exception -> 0x004d }\n r1.release();\t Catch:{ Exception -> 0x004d }\n r1 = 0;\n r6.mRecorder = r1;\t Catch:{ Exception -> 0x004d }\n L_0x0036:\n r6.mRecorder = r5;\n r6.mTimer = r5;\n L_0x003a:\n r1 = r6.mOnUgcSoundsRecordCallback;\n if (r1 == 0) goto L_0x004a;\n L_0x003e:\n r1 = r6.mOnUgcSoundsRecordCallback;\n r2 = r6.timeCountTime;\n r2 = 20 - r2;\n r3 = r6.filePath;\n r4 = 1;\n r1.onRecordFinish(r2, r3, r4);\n L_0x004a:\n mUgcSoundsRecordDialog = r5;\n goto L_0x0005;\n L_0x004d:\n r0 = move-exception;\n r0.printStackTrace();\t Catch:{ all -> 0x0056 }\n r6.mRecorder = r5;\n r6.mTimer = r5;\n goto L_0x003a;\n L_0x0056:\n r1 = move-exception;\n r6.mRecorder = r5;\n r6.mTimer = r5;\n throw r1;\n L_0x005c:\n r1 = move-exception;\n goto L_0x002e;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.navisdk.module.ugc.dialog.UgcSoundsRecordDialog.stopRecord():void\");\n }", "public interface StopRecordListener {\n void stop();\n\n void recorderStart();\n\n void volumeChange(float vol);\n}", "@Override\n\tpublic void delRec() {\n\t\t\n\t}", "public Destroyer() {\n super(DS_SIZE);\n }", "public synchronized static RecordManager instance() {\n\t\tif (s_Instance == null) s_Instance = new RecordManager();\n\t\treturn s_Instance;\n\t}", "public DeleteResource() {\n }", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "DL createDL();", "void onFinishRecord(File voiceFile, int duration);", "public void m6596M() {\n C0938a.m5002a(\"SR/SoundRecorder\", \"<performDeleteOperation>\");\n AlertDialog create = new AlertDialog.Builder(this, 51314692).setTitle(getString(R.string.delete_file_new)).setPositiveButton(R.string.delete, new C1325fb(this)).setNegativeButton(R.string.cancel, (DialogInterface.OnClickListener) null).create();\n create.setCanceledOnTouchOutside(true);\n create.setOwnerActivity(this);\n if (!isDestroyed() && !isFinishing()) {\n create.show();\n create.getWindow().setGravity(80);\n create.getButton(-1).setTextColor(Color.parseColor(C1413m.f5728z));\n }\n }", "public CommAreaRecord() {\n\t}", "public void deleteDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);", "private void record(){\n clear();\n recording = true;\n paused = false;\n playing = false;\n setBtnState();\n recorder = new Recorder(audioFormat);\n new Thread(recorder).start();\n }", "public SubscriptionRecord() {\n super(Subscription.SUBSCRIPTION);\n }", "public void stopRecording() {\n cameraPreview.stopRecording();\n mediaRecorder.stop(); // stop the recording\n releaseMediaRecorder(); // release the MediaRecorder object\n camera.lock(); // take camera access back from MediaRecorder\n isRecording = false;\n }", "public void destroy() {\n log = null;\n }", "DeleteType createDeleteType();", "private VerifierFactory() {\n }", "private Delete() {}", "private Delete() {}", "@Override\n public void destroy() {\n \n }", "public void stop() {\r\n\t\tisRecording = false;\r\n\t}", "public Dealer() {\n this(1);\n }", "@Override\n public void destroy() {\n }", "AudioDeviceInventory() {\n mDeviceBroker = null;\n }", "@Override\n public void destroy() {\n\n }", "void deregister() {\n Thread patientLoaderThread = new Thread(new RegistrationRunnable(false));\n patientLoaderThread.start();\n }", "private void onDeleteConfirmed() {\n stopService();\n\n Intent intent = new Intent(this, StartRecordingActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n }", "@Override\n\tpublic void registerDestructionCallback(String name, Runnable callback)\n\t{\n\t}", "public void create(Singer newRecord);", "public PersonRecord() {}" ]
[ "0.57678527", "0.529177", "0.5274992", "0.5176669", "0.51251155", "0.5112937", "0.50450253", "0.5032679", "0.5020125", "0.5009207", "0.4971387", "0.4772085", "0.4652821", "0.46084166", "0.46025828", "0.46004248", "0.46003386", "0.45981574", "0.45573756", "0.45520476", "0.45457566", "0.45302814", "0.45298296", "0.45176366", "0.45154977", "0.45046744", "0.45024174", "0.45013407", "0.4491961", "0.44913787", "0.44779608", "0.4470088", "0.44514287", "0.44487777", "0.4445554", "0.44431162", "0.44396308", "0.44389555", "0.4429733", "0.44254884", "0.44146892", "0.43933114", "0.43933114", "0.43918866", "0.43911046", "0.43812516", "0.43807122", "0.4372775", "0.43639636", "0.4363631", "0.435951", "0.43574336", "0.43566418", "0.4350116", "0.4347116", "0.43460587", "0.43430796", "0.43390968", "0.43337137", "0.43315625", "0.43281347", "0.43280932", "0.4324591", "0.43239906", "0.43198302", "0.43171775", "0.431644", "0.43145844", "0.4313829", "0.43090597", "0.43078983", "0.430474", "0.43026814", "0.4302198", "0.42967287", "0.42967144", "0.42957252", "0.42940682", "0.42888197", "0.42810327", "0.42801106", "0.4277845", "0.42761257", "0.42751297", "0.4273104", "0.42726198", "0.42698935", "0.42668995", "0.42668995", "0.42666513", "0.42622352", "0.42621788", "0.42558467", "0.42553616", "0.42504758", "0.42483547", "0.42480472", "0.42475763", "0.42472112", "0.42469108" ]
0.6639158
0
TODO Autogenerated method stub
public static void main(String[] args) { Address address = new Address("Sector-62", "Noida", "201301"); Employee employee = new Employee("Ayush", "1038", address); System.out.println("----------------------> Data before Serialization <-------------------------------"); employee.display(); ObjectOutputStream oos; try { oos = new ObjectOutputStream(new FileOutputStream("employee_detail.ser")); oos.writeObject(employee); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{ "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
Mark all outstanding invoices with a due date after expiry date as overdue.
@Transactional public void markOverdueInvoices(LocalDate expiryDate) { List<Invoice> invoices = invoiceRepository.findByDueDateBeforeAndInvoiceState(fromLocalDate(expiryDate), Invoice.InvoiceState.OUTSTANDING); for (Invoice invoice : invoices) { log.info("Setting state to overdue on invoice {}", invoice); invoice.setInvoiceState(Invoice.InvoiceState.OVERDUE); invoiceRepository.save(invoice); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOverdueDays(Integer overdueDays) {\n this.overdueDays = overdueDays;\n }", "protected boolean isOverdue() {\n\t\t// this might be backwards, go back and check later\n\t\t/*int i = todaysDate.compareTo(returnDate);// returns 0, a positive num, or a negative num\n\t\tif (i == 0) { return false;}\t\t// the dates are equal, not overdue\n\t\telse if (i > 0) { return true; }\t// positive value if the invoking object is later than date\n\t\telse { return false; } */\t\t\t// negative value if the invoking object is earlier than date\n\t\t\n\t\t// can also do\n\t\tif (todaysDate.getTime() > returnDate.getTime() ) { return true; }\n\t\telse { return false; }\t// if the difference in time is less than or equal\n\t}", "public void checkOverDue() {\n\t\tif (state == loanState.current && //changed 'StAtE' to 'state' and ' lOaN_sTaTe.CURRENT to loanState.current\r\n\t\t\tCalendar.getInstance().getDate().after(date)) { //changed Calendar.gEtInStAnCe to Calender.getInstance and gEt_DaTe to getDate and DaTe to date\r\n\t\t\tthis.state = loanState.overDue; //changed 'StAtE' to 'state' and lOaN_sTaTe.OVER_DUE to loanState.overDue\t\t\t\r\n\t\t} //added curly brackets\r\n\t}", "public boolean isOverdue(int today);", "protected void deadlineLeasing() {\n log.info(\"OrdersBean : deadlineLeasing\");\n List<OrdersEntity> ordersEntitiesDeadline = ordersServices.findAllOrdersByIdUserAndStatusIsValidate(usersBean.getUsersEntity().getId());\n if (!ordersEntitiesDeadline.isEmpty()) {\n contractsBean.findAllContractsInAllMyOrdersForLeasingAndDeadlineIsLowerThan1Month(ordersEntitiesDeadline);\n }\n }", "public void setDue(LocalDate due) {\n this.due = due;\n }", "public IssueBuilderAbstract dueDate(Calendar dueDate){\n fieldDueDate = dueDate;\n return this;\n }", "public ArrayList<OverdueNotice> createOverdueNotices(){\n ArrayList<OverdueNotice> overdueList = new ArrayList<OverdueNotice>();\n Set<String> patronNames = this.patron.keySet();\n for (String patronName : patronNames){\n ArrayList<Book> books = this.patron.get(patronName).getBooks();\n for (Book book : books){\n if (book.getDueDate() == (this.calendar.getDate()-1)){\n overdueList.add(new OverdueNotice(this.patron.get(patronName),this.calendar.getDate()));\n break;\n }\n }\n }\n return overdueList;\n }", "public void setOverdueAmount(BigDecimal overdueAmount) {\n this.overdueAmount = overdueAmount;\n }", "public void setOverdueTs(Date overdueTs) {\n\t\tthis.overdueTs = overdueTs;\n\t}", "@SuppressWarnings(\"PMD.SignatureDeclareThrowsException\")\n public void redoLoanDisbursalWithPastDate() throws Exception {\n RedoLoanDisbursalParameters paramsPastDate = new RedoLoanDisbursalParameters();\n paramsPastDate.setDisbursalDateDD(\"25\");\n paramsPastDate.setDisbursalDateMM(\"02\");\n paramsPastDate.setDisbursalDateYYYY(\"2011\");\n LoanAccountPage loanAccountPage = loanTestHelper.redoLoanDisbursal(\"Default Group\", \"WeeklyGroupFlatLoanWithOnetimeFee\", paramsPastDate, null, 0, false);\n verifyRedoLoanDisbursalWithPastDate(loanAccountPage);\n }", "@SuppressWarnings(\"PMD.SignatureDeclareThrowsException\")\n public void redoLoanDisbursalWithPastDateUnpaid() throws Exception {\n // Testing redo loan\n RedoLoanDisbursalParameters paramsPastDate = new RedoLoanDisbursalParameters();\n paramsPastDate.setDisbursalDateDD(\"25\");\n paramsPastDate.setDisbursalDateMM(\"02\");\n paramsPastDate.setDisbursalDateYYYY(\"2011\");\n paramsPastDate.setLoanAmount(\"3000.0\");\n paramsPastDate.setInterestRate(\"10\");\n paramsPastDate.setNumberOfInstallments(\"52\");\n RedoLoanDisbursalParameters paramsCurrentDate = new RedoLoanDisbursalParameters();\n paramsCurrentDate.setDisbursalDateDD(\"22\");\n paramsCurrentDate.setDisbursalDateMM(\"2\");\n paramsCurrentDate.setDisbursalDateYYYY(\"2012\");\n LoanAccountPage loanAccountPage = loanTestHelper.redoLoanDisbursal(\"Default Group\", \"WeeklyGroupFlatLoanWithOnetimeFee\", paramsPastDate, paramsCurrentDate, 0, true);\n loanAccountPage.verifyStatus(\"Active in Good Standing\");\n loanAccountPage.verifyPerformanceHistory(\"51\", \"0\");\n // Testing multiple reverse payments\n String payAmount = \"63\";\n String reverseNote = \"Reversed \";\n int loanBalance = (int) (Float.parseFloat(loanAccountPage.getTotalBalance()) + 63 * 3);\n for (int i = 0; i < 3; i++) {\n ApplyAdjustmentPage applyAdjustmentPage = loanAccountPage.navigateToApplyAdjustment();\n applyAdjustmentPage.verifyAdjustment(payAmount, reverseNote + (i + 1));\n }\n verifyMultipleReversePayments(loanAccountPage, payAmount, reverseNote, loanBalance);\n }", "public void setDueDate(FinanceDate dueDate) {\r\n\t\tthis.dueDate = dueDate;\r\n\t}", "@Test(groups = \"slow\", description = \"Can retrieve the account overdue status\")\n public void testOverdueStatus() throws Exception {\n final Account accountJson = createAccountNoPMBundleAndSubscriptionAndWaitForFirstInvoice();\n\n // Get the invoices\n final List<Invoice> invoices = accountApi.getInvoicesForAccount(accountJson.getAccountId(), null, null, null, requestOptions);\n // 2 invoices but look for the non zero dollar one\n assertEquals(invoices.size(), 2);\n\n // We're still clear - see the configuration\n Assert.assertTrue(accountApi.getOverdueAccount(accountJson.getAccountId(), requestOptions).isClearState());\n\n callbackServlet.pushExpectedEvents(ExtBusEventType.INVOICE_CREATION, ExtBusEventType.INVOICE_PAYMENT_FAILED, ExtBusEventType.BLOCKING_STATE, ExtBusEventType.OVERDUE_CHANGE);\n clock.addDays(30);\n callbackServlet.assertListenerStatus();\n Assert.assertEquals(accountApi.getOverdueAccount(accountJson.getAccountId(), requestOptions).getName(), \"OD1\");\n\n callbackServlet.pushExpectedEvents(ExtBusEventType.TAG_CREATION, ExtBusEventType.BLOCKING_STATE, ExtBusEventType.OVERDUE_CHANGE);\n clock.addDays(10);\n callbackServlet.assertListenerStatus();\n Assert.assertEquals(accountApi.getOverdueAccount(accountJson.getAccountId(), requestOptions).getName(), \"OD2\");\n\n callbackServlet.pushExpectedEvents(ExtBusEventType.BLOCKING_STATE, ExtBusEventType.OVERDUE_CHANGE);\n clock.addDays(10);\n callbackServlet.assertListenerStatus();\n Assert.assertEquals(accountApi.getOverdueAccount(accountJson.getAccountId(), requestOptions).getName(), \"OD3\");\n\n // Post external payments, paying the most recent invoice first: this is to avoid a race condition where\n // a refresh overdue notification kicks in after the first payment, which makes the account goes CLEAR and\n // triggers an AUTO_INVOICE_OFF tag removal (hence adjustment of the other invoices balance).\n final Invoices invoicesForAccount = accountApi.getInvoicesForAccount(accountJson.getAccountId(), null, null, false, false, false, true, null, AuditLevel.NONE, requestOptions);\n final List<Invoice> mostRecentInvoiceFirst = invoicesForAccount.stream()\n .sorted(Comparator.comparing(Invoice::getInvoiceDate).reversed())\n .collect(Collectors.toUnmodifiableList());\n for (final Invoice invoice : mostRecentInvoiceFirst) {\n if (invoice.getBalance().compareTo(BigDecimal.ZERO) > 0) {\n final InvoicePayment invoicePayment = new InvoicePayment();\n invoicePayment.setPurchasedAmount(invoice.getAmount());\n invoicePayment.setAccountId(accountJson.getAccountId());\n invoicePayment.setTargetInvoiceId(invoice.getInvoiceId());\n callbackServlet.pushExpectedEvents(ExtBusEventType.INVOICE_PAYMENT_SUCCESS, ExtBusEventType.PAYMENT_SUCCESS);\n invoiceApi.createInstantPayment(invoice.getInvoiceId(), invoicePayment, true, Collections.emptyList(), NULL_PLUGIN_PROPERTIES, requestOptions);\n callbackServlet.assertListenerStatus();\n }\n }\n\n // Wait a bit for overdue to pick up the payment events...\n callbackServlet.pushExpectedEvents(ExtBusEventType.TAG_DELETION, ExtBusEventType.BLOCKING_STATE, ExtBusEventType.OVERDUE_CHANGE);\n callbackServlet.assertListenerStatus();\n\n // Verify we're in clear state\n Assert.assertTrue(accountApi.getOverdueAccount(accountJson.getAccountId(), requestOptions).isClearState());\n }", "public void setDueDate(String dueDate) {\n }", "@Override\r\n\tpublic void onBeforeUpdate(Record record) throws DeadlineExceededException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint newStatus = (Integer) record.getValue(\"resignationstatusid\");\r\n\t\tint oldStatus = (Integer) record.getOldValue(\"resignationstatusid\");\r\n\t\tif((oldStatus == HRISConstants.RESIGNATION_NEW || oldStatus == HRISConstants.RESIGNATION_ONHOLD || oldStatus == HRISConstants.RESIGNATION_REJECTED)&& newStatus == HRISConstants.RESIGNATION_ACCEPTED){\r\n\t\t\t\r\n\t\t\tString TODAY_DATE = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(SystemParameters.getCurrentDateTime());\r\n\t\t\trecord.addUpdate(\"approveddate\",TODAY_DATE);\r\n\t\t}\r\n\t}", "public void setDueDate(Date dueDate) {\r\n\t\tthis.dueDate = dueDate;\r\n\t}", "public void setDueDate(String dueDate)\n {\n this.dueDate = dueDate;\n }", "public void markUnsold(){\n\n myMaxRejectCountCount--;\n }", "public void setIssuedDate(Date v) \n {\n \n if (!ObjectUtils.equals(this.issuedDate, v))\n {\n this.issuedDate = v;\n setModified(true);\n }\n \n \n }", "public static boolean isPastDue(Date date) {\n\t\tthrow new IllegalStateException(\"no database connection\");\r\n\t}", "@Override\n @Transactional\n public void cancelAllEventsWhenIssued(Set<Prescribing> prescribings) {\n Calendar today = Calendar.getInstance();\n today.roll(Calendar.DATE, -1);\n Calendar dateOfEvent = new GregorianCalendar();\n for (Prescribing prescribing :\n prescribings) {\n Set<Event> events = new HashSet<>(prescribing.getEvents());\n if (events.size() != 0) {\n for (Event event :\n events) {\n dateOfEvent.setTime(event.getDate());\n if (dateOfEvent.after(today) && event.getStatus().equals(\"open\")) {\n event.setStatus(\"Cancel\");\n event.setReason(\"Patient was issued\");\n eventService.updateEvent(event);\n }\n }\n }\n }\n }", "public void setDueDate(Date dueDate) {\n\t\tthis.dueDate = dueDate;\n\t}", "public void setDueDate(Date dueDate) {\n\t\tthis.dueDate = dueDate;\n\t}", "public void setDateDue(java.util.Date dateDue) {\n this.dateDue = dateDue;\n }", "public void setDueDate(Date d){dueDate = d;}", "public boolean isOverDue() {\n\t\treturn state == loanState.overDue; //changed 'StAtE' to 'state' and lOaN_sTaTe.OVER_DUE to loanState.overDue\r\n\t}", "public boolean pastDueDate(Date d){\r\n if(dueDate.after(d)){\r\n return false;\r\n }\r\n return true;\r\n }", "public BigDecimal getOverdueAmount() {\n return overdueAmount;\n }", "public static void updateOverDueTask() {\n\t\tString prevDate = DateModifier.getPrevDate(DateModifier.getCurrDate());\r\n\r\n\t\tfor (int j = 0; j < 10; j++) { // Deletes files from 10 days ago\r\n\r\n\t\t\tString fileName = prevDate + \".txt\";\r\n\t\t\tfile_object = new File(fileName);\r\n\t\t\t\r\n\t\t\tif (file_object.exists()) {\r\n\t\t\t\t\r\n\t\t\t\t// read the content of the previous date file, put in the list\r\n\t\t\t\tprevDateTask = (new FileAccessor(fileName)).readContents();\r\n\r\n\t\t\t\tif (prevDateTask.size() != 0) {\r\n\t\t\t\t\tODTask = (new FileAccessor(OVERDUETXT)).readContents();\r\n\r\n\t\t\t\t\t// Transfer contents over\r\n\t\t\t\t\tfor (int i = 0; i < prevDateTask.size(); i++) {\r\n\t\t\t\t\t\tODTask.add(prevDate + \" \" + prevDateTask.get(i));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// write in file\r\n\t\t\t\t\t(new FileAccessor(OVERDUETXT, ODTask)).writeContents();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Delete the previous date text file to save space\r\n\t\t\t\tfile_object.delete();\r\n\t\t\t}\r\n\r\n\t\t\t// Get previous date from the previous date for the next loop\r\n\t\t\tprevDate = DateModifier.getPrevDate(prevDate);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public Integer getOverdueDays() {\n return overdueDays;\n }", "boolean isIncludeOverdueReminders() {\n \n return this.includeOverdueCheckBox.isSelected();\n \n }", "public void setOverdueNum5Y(java.lang.Integer overdueNum5Y) {\n this.overdueNum5Y = overdueNum5Y;\n }", "public void removeAfterDate(Date d) {\n for (int i = 0; i < this._noOfItems; i++) {\n FoodItem currentItem = this._stock[i];\n // if item's expiry date before the date param\n if (currentItem.getExpiryDate().before(d)) {\n // remove it from the stock\n removeAtIndex(i);\n // because an item was removed from [i], we'd like to stay in same indexer\n // (because all items are \"shifted\" back in the array)\n i--;\n }\n }\n }", "private void correctAssignOverDueTasks(TestTask tryCorrect, TestTask expectedTask, String currentDate) {\n recurringManager.correctAddingOverdueTasks(tryCorrect, helper.getLocalDateByString(currentDate));\n }", "public void setOverdueMonths5Y(java.lang.Integer overdueMonths5Y) {\n this.overdueMonths5Y = overdueMonths5Y;\n }", "@Transactional\n @Override\n public void updatedExpiredTradesStatus(LocalDate date) {\n tradeRepository.updateExpiredTradesStatus(date);\n }", "void setExpiredDate(Date expiredDate);", "public LocalDate getDue() {\n return this.due;\n }", "public void setExpiry(int expiry)\n {\n this.expiry = expiry;\n }", "public int checkExpiryDate(LocalDate today) {\n\n final int limit = 100;\n long expirationDate = Duration.between(\n this.food.getCreateDate().atTime(0, 0), this.food.getExpiryDate().atTime(0, 0)\n ).toDays();\n long goneDate = Duration.between(\n this.food.getCreateDate().atTime(0, 0), today.atTime(0, 0)\n ).toDays();\n\n return (int) (limit * goneDate / expirationDate);\n\n }", "public void deleteExpiredAbsences() throws SQLException {\n java.sql.Date sqlExpiryDate = java.sql.Date.valueOf(LocalDate.now());\n String SQLStmt = \"DELETE FROM ABSENCE WHERE DATE < '\" + sqlExpiryDate + \"';\";\n try (Connection con = dbc.getConnection()) {\n Statement statement = con.createStatement();\n statement.executeUpdate(SQLStmt); \n }\n }", "public Date getDue() {\n return this.due;\n }", "private void reallocateUnConsumedEsnRecords() {\n\t\tesnInfoRepository\n\t\t\t\t.findAllByIsConsumed(false).stream().filter(item -> (Days\n\t\t\t\t\t\t.daysBetween(new DateTime(item.getDateClaimed()), new DateTime()).isGreaterThan(Days.days(2))))\n\t\t\t\t.forEach(item -> {\n\t\t\t\t\titem.setUserClaimed(null);\n\t\t\t\t\titem.setDateClaimed(null);\n\t\t\t\t});\n\t}", "@Scheduled(cron = \"0 0 1 * * *\")\n\tpublic void removeExpiredPremiumUsers(){\n\t\tIterable <User> users = userDao.findAll();\n\t\tDate now = new Date();\n\t\t\n\t\tfor (User user : users){\n\t\t\tif (user.isPremium()){\n\t\t\t\ttry{\n\t\t\t\t\tif(user.getPremiumExpiryDate().before(now)){\n\t\t\t\t\t\tuser.removePremium();\n\t\t\t\t\t\tuserDao.save(user);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tcatch(Exception e){\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void modifyDepositDue(PrintItinerary itinerary, String xslFormat) {\n\t\tif (xslFormat.equalsIgnoreCase(\"CUSTOMERFORMATBOOKING\")) {\n\t\t\t// long datediff = DateUtils.dateDifferenceInDays(itinerary\n\t\t\t// .getBookingHeader().getBookingDate(), itinerary\n\t\t\t// .getBookingHeader().getDepartureDate());\n\t\t\t// if (datediff <= 45) { //CQ#8927 - Condition added for equal to 45\n\n\t\t\t// for Holiday period 60 days and non holdiday persion 45 scenarion\n\t\t\t// both opt date and finalpayment date will be same\n\t\t\t// according to kim\n\t\t\tlong datediff = DateUtils.dateDifferenceInDays(itinerary\n\t\t\t\t\t.getBookingHeader().getOptionDate(), itinerary\n\t\t\t\t\t.getBookingHeader().getFinalDueDate());\n\t\t\tif (datediff == 0) { // CQ#8927 - Condition added for equal to 45\n\t\t\t\titinerary.getBookingHeader().setMinimumAmount(\n\t\t\t\t\t\titinerary.getBookingHeader().getTourPrice()\n\t\t\t\t\t\t\t\t- itinerary.getBookingHeader().getAmountPaid());\n\t\t\t}\n\t\t\t// CQ#8955 - Added for displaying Gross balance Due in Agent\n\t\t} else if (xslFormat.equalsIgnoreCase(\"AGENTFORMATBOOKING\")) {\n\t\t\tlong datediff = DateUtils.dateDifferenceInDays(itinerary\n\t\t\t\t\t.getBookingHeader().getBookingDate(), itinerary\n\t\t\t\t\t.getBookingHeader().getDepartureDate());\n\t\t\t// if (datediff > 45) {\n\t\t\titinerary.getBookingHeader().setGrossBalanceDue(\n\t\t\t\t\titinerary.getBookingHeader().getTourPrice()\n\t\t\t\t\t\t\t- itinerary.getBookingHeader().getAmountPaid());\n\t\t\t// }\n\n\t\t}\n\t}", "public void setExpiredate(String expierdate) {\n\t\t\tthis.expiredate = expierdate;\n\t}", "public void addUsedEDay(Integer date) {\n pastEDays.add(date);\n }", "private Constraint scheduleTasksWithDueDates(ConstraintFactory factory) {\n return factory.from(TaskAssignment.class)\n .filter(TaskAssignment::isTaskAssignedWithDueDate)\n .rewardConfigurable(\"Schedule tasks with due dates\");\n }", "public void setRenewalEffectiveDate(java.util.Date value);", "Date getDueDate();", "Date getDueDate();", "public void editDueDate(Calendar newDate) {\n this.dueDate = newDate;\n }", "Order setInvoiceCreatedStatus(Order order, User user, Date invoiceDate, Date invoiceDueDate);", "void setIssued(org.hl7.fhir.Instant issued);", "public void setTaxExemptEffectiveDate(java.util.Calendar taxExemptEffectiveDate) {\n this.taxExemptEffectiveDate = taxExemptEffectiveDate;\n }", "public boolean isDeviceOverdue() throws DateFormatException {\r\n \tString today = Helper.getCurrentDate();\r\n \tString due = this.rentSettings.getDueDate();\r\n \tSystem.out.println(\"Duedate \" + due);\r\n \tboolean good = Helper.isValidDate(due);\r\n \tif(good) {\r\n \t\tif(Helper.timeDifference(today, due) < 0) {\r\n \t\t\tSystem.out.println(\"Device \" + this + \" is Overdue\");\r\n \t\t\treturn true;\r\n \t\t}\r\n \t\telse \r\n \t\t\tSystem.out.println(\"Device \" + this + \" is NOT overdue yet\");\r\n \t}\r\n return false;\r\n }", "@Test\r\n\tpublic void testCancelAuctionOnAuctionExsistsForNonProfitPastAuctionDate(){\r\n\t\t\r\n\t\tCalendar c = new Calendar();\t\t\r\n\t\tc.addAuction(new AuctionRequest(d1, t1, myNonProfit.getOrgName()));\t\t\r\n\t\tassertFalse(c.cancelAuction(myNonProfit, myAuctDateAfterAuctionDate, myCurrDate));\r\n\t\t\r\n\t}", "public void checkBlackOutPeriod(){\n\n\n // loop through all filings and output filing date value in milli seconds\n System.out.println(\"checking black out period status for filings : \"+blackOutPeriodDuration);\n\n BaseTradeMarkApplicationService baseTradeMarkApplicationService = serviceBeanFactory.getBaseTradeMarkApplicationService();\n\n\n for(Iterator<BaseTrademarkApplication> iter = baseTradeMarkApplicationService.findAll().iterator(); iter.hasNext(); ) {\n BaseTrademarkApplication current = iter.next();\n\n if((current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"TEAS RF New Application\") )|| (current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"New Application\") ) ){\n // check that date + duration against current time\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod()) < new Date().getTime()){\n\n System.out.println(\"Filing has expired from the black out period\");\n\n //baseTradeMarkApplicationService.save(current);\n\n // we need to check current filings to make sure there are no active office action\n\n if(current.hasActiveOfficeAction() == false){\n\n OfficeActions officeActions = new OfficeActions();\n officeActions.setParentMarkImagePath(current.getTradeMark().getTrademarkImagePath());\n officeActions.setStandardCharacterMark(current.isStandardTextMark());\n officeActions.setStandardCharacterText(current.getTradeMark().getTrademarkStandardCharacterText());\n officeActions.setParentMarkOwnerName(current.getPrimaryOwner().getOwnerDisplayname());\n officeActions.setParentSerialNumber(current.getTrademarkName());\n officeActions.setParentRegistrationNumber(current.getRegistrationID());\n officeActions.setActiveAction(true);\n long dueDate = new Date().getTime()+current.getBlackOutPeriod()+current.getOfficeActionResponsePeriod();\n officeActions.setDueDate(new Date(dueDate));\n //officeActions.setOfficeActionCode(\"Missing transliteration\");\n\n\n // create office action event here\n // filing document is only created if an office action is created with required actions\n\n\n\n\n // required actions section\n\n\n // required action Translation\n if (current.getTradeMark().isStandardCharacterMark() || current.getTradeMark().getTrademarkDesignType().equals(\"Design with Text\")) {\n if (current.getTradeMark().getForeignLanguageTranslationUSText() == null || current.getTradeMark().getForeignLanguageTranslationUSText() == null || current.getTradeMark().getForeignLanguageType_translation() == null ){\n\n // create required action here\n RequiredActions requiredActions = new RequiredActions();\n requiredActions.setRequiredActionType(\"Translation of Foreign Wording\");\n requiredActions.setTranslationTextForeign(current.getTradeMark().getForeignLanguageTranslationOriginalText());\n requiredActions.setTranslationTextEnglish(current.getTradeMark().getForeignLanguageTranslationUSText());\n requiredActions.setTranslationTextLanguage(current.getTradeMark().getForeignLanguageType_translation());\n\n\n\n officeActions.addRequiredActions(requiredActions);\n\n\n\n }\n\n\n }\n\n // required action disclaimer\n\n if(current.getTradeMark().getDisclaimerDeclarationList().size() == 0){\n // you have to provide at least one disclaimer\n RequiredActions requiredActions = new RequiredActions();\n requiredActions.setRequiredActionType(\"Disclaimer Required\");\n\n officeActions.addRequiredActions(requiredActions);\n\n }\n\n\n // office action is created only if there are required actions\n if(officeActions.getRequiredActions().size() > 0){\n current.setFilingStatus(\"Non-Final Action Mailed\");\n officeActions.setOfficeActionCode(\"Non-Final Action Mailed\");\n\n\n // create an default office action object and attach it to filing\n current.addOfficeAction(officeActions);\n officeActions.setTrademarkApplication(current);\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Office Action Outgoing\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n }\n\n baseTradeMarkApplicationService.save(current);\n\n\n\n\n }\n\n\n\n\n // also check for number of required actions.\n // if there are none. office action is not saved\n\n\n\n\n\n // set relevant office actions\n\n\n\n }\n else{\n System.out.println(\"filing is still in the black out period\");\n\n }\n }\n else{\n System.out.println(\"Filing is not Submitted yet.\");\n }\n }\n\n\n }", "private void correctAssignOverdueTasks(RecurringType type) throws Exception {\n TestTask tryCorrect = helper.buildRecurringTask(type);\n TestTask expectedTask = helper.buildRecurringTask(type);\n assertCorrectAssignOverdueTasks(tryCorrect, expectedTask, type); \n }", "void savingListRecurringExpenditure(Ui ui) throws BankException, TransactionException {\n throw new BankException(\"This account does not support this feature\");\n }", "private void updateDueList() {\n boolean status = customerDue.storeSellsDetails(new CustomerDuelDatabaseModel(\n selectedCustomer.getCustomerCode(),\n printInfo.getTotalAmountTv(),\n printInfo.getPayableTv(),\n printInfo.getCurrentDueTv(),\n printInfo.getInvoiceTv(),\n date,\n printInfo.getDepositTv()\n ));\n\n if (status) Log.d(TAG, \"updateDueList: --------------successful\");\n else Log.d(TAG, \"updateDueList: --------- failed to store due details\");\n }", "public void setIssuanceDate(Date value) {\n setAttributeInternal(ISSUANCEDATE, value);\n }", "public void cancel(Calendar checkIn, Calendar checkOut){\n\t\tcheckInCheckOutPairs.remove(checkIn);\n\t\t// 2) Update occupiedDates set\n\t\tIterator<Calendar> iter = occupiedDates.iterator();\n\t\twhile (iter.hasNext()){\n\t\t\tCalendar cal = iter.next();\n\t\t\tif (cal.equals(checkIn) || (cal.isLaterThan(checkIn) && cal.isEarlierThan(checkOut))){\n\t\t\t\titer.remove();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "void setInvoicedDate(Date invoicedDate);", "@Scheduled(cron = \"0 1 * * * *\")\n public void dailyTasks(){\n logger.info(\"Daily task started\");\n\n logger.info(\"Sending overdue emails\");\n List<Payment> overduePayments = new ArrayList<>();\n List<Payment> futurePayments = new ArrayList<>();\n paymentService.addPendingPayments(futurePayments, overduePayments);\n for(Payment overdue: overduePayments){\n Client client = overdue.getClient();\n if(client == null) throw new IllegalStateException(\"Payment \" + overdue.getId() + \" should have a valid client \");\n String email = client.getEmail();\n if(StringUtils.isEmpty(email)) continue;\n overdueEmailBody.replaceAll(\"\\\\$name\", client.getFirstName()).replaceAll(\"\\\\$unit\", overdue.getUnit().getName()).replaceAll(\"\\\\amount\", String.valueOf(overdue.getAmount()));\n emailSender.sendEmail(email, overdueEmailSubject, overdueEmailBody );\n }\n for(Payment payment: futurePayments){\n Client client = payment.getClient();\n if(client == null) throw new IllegalStateException(\"Payment \" + payment.getId() + \" should have a valid client \");\n String email = client.getEmail();\n if(StringUtils.isEmpty(email)) continue;\n futureEmailBody.replaceAll(\"\\\\$name\", client.getFirstName()).replaceAll(\"\\\\$unit\", payment.getUnit().getName()).replaceAll(\"\\\\amount\", String.valueOf(payment.getAmount()));\n emailSender.sendEmail(email, futureEmailSubject, futureEmailBody );\n }\n\n }", "@Override\r\n\tpublic void reviewOfPastYear(ExemptTeamMember exemptTeamMember) {\n\t\t\r\n\t\t\r\n\t}", "@Autowired\n\tpublic void setExpiry(@Value(\"${repair.expiry}\") Duration expiry) {\n\t\tthis.expiry = DurationConverter.oneOrMore(expiry);\n\t}", "@Query(\"select i from Invoice i inner join i.signup s where s.signupId=?1 and DATE(i.dueDate)< DATE(now()) AND s.status = 'Active'\")\n\tList<Invoice> getPastInvoiceByActiveSignup(Long signupId);", "protected void scheduleExpiry()\n {\n long dtExpiry = 0L;\n int cDelay = OldOldCache.this.m_cExpiryDelay;\n if (cDelay > 0)\n {\n dtExpiry = getSafeTimeMillis() + cDelay;\n }\n setExpiryMillis(dtExpiry);\n }", "public void editDueDate(Calendar newDueDate) {\n dueDate = newDueDate;\n }", "public int daysOverdue(int today);", "@Override\n public void setExpiration( Date arg0)\n {\n \n }", "public void setRenewalperiodbeforeexp(Integer value) {\n setAttributeInternal(RENEWALPERIODBEFOREEXP, value);\n }", "public void setExpiryDate(java.util.Calendar expiryDate) {\r\n this.expiryDate = expiryDate;\r\n }", "@Scheduled(fixedDelay = 10000)\n @Transactional\n @Override\n public void updatedExpiredTradesStatus() {\n tradeRepository.updateExpiredTradesStatus();\n }", "private void setDefaultExpiryDate() {\n int twoWeeks = 14;\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.add(Calendar.DAY_OF_YEAR, twoWeeks);\n this.expiryDate = calendar.getTime();\n }", "void importNewRecurringExpenditure(Transaction expenditure) throws BankException {\n logger.warning(\"This account does not support this feature\");\n throw new BankException(\"This account does not support this feature\");\n }", "@Override\n\t/** Marks all expired Coupons in the Coupon table in the database */\n\tpublic void markExpiredCoupons() throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\n\t\ttry {\n\t\t\t// Defining SQL string to mark expired Coupons via prepared\n\t\t\t// statement\n\t\t\tString markExpiredCouponsSQL = \"update coupon set expired='expired' where end_date < current_date\";\n\t\t\t// Not working variants:\n\t\t\t// String markExpiredCouponsSQL = \"update coupon set\n\t\t\t// expired='expired' where end_date < 2017-05-21\";\n\t\t\t// String markExpiredCouponsSQL = \"update coupon set\n\t\t\t// expired='expired' where end_date < getdate()\";\n\t\t\t// String markExpiredCouponsSQL = \"update coupon set\n\t\t\t// expired='expired' where date < (format ( getdate(),\n\t\t\t// 'YYYY-MM-DD'))\";\n\t\t\t// String markExpiredCouponsSQL = \"update coupon set\n\t\t\t// expired='expired' where end_date < ?\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(markExpiredCouponsSQL);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute check\n\n\t\t\t// Not working (prepared statement variant)\n\t\t\t// java.util.Date todayDate = Calendar.getInstance().getTime();\n\t\t\t// SimpleDateFormat formatter = new SimpleDateFormat(\"YYYY-MM-DD\");\n\t\t\t// String todayString = formatter.format(todayDate);\n\t\t\t// pstmt.setString(1, todayString);\n\n\t\t\tint resExpired = pstmt.executeUpdate();\n\t\t\tif (resExpired != 0) {\n\t\t\t\t// If result row count is not equal to zero - execution has been\n\t\t\t\t// successful\n\t\t\t\tSystem.out.println(\"Expired coupons have been marked successfully\");\n\t\t\t} else {\n\t\t\t\t// Otherwise execution failed due to Coupons not found in the\n\t\t\t\t// database\n\t\t\t\tSystem.out.println(\"Coupons marking has been failed - subject entries not found in the database\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon marking in the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupons marking has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t}", "public boolean expired(){\n return !Period.between(dateOfPurchase.plusYears(1), LocalDate.now()).isNegative();\n }", "public void setTargetDueDate(Date targetDueDate) {\n\t\tthis.targetDueDate = targetDueDate;\n\t}", "public void setExpiryDate(Date expiryDate) {\n this.expiryDate = expiryDate;\n }", "public Calendar getDueDate(){\n return dueDate;\n }", "public Date getDueDate() {\r\n\t\treturn dueDate;\r\n\t}", "public final void payBills() {\n if (this.isBankrupt) {\n return;\n }\n Formulas formulas = new Formulas();\n if ((getInitialBudget() - formulas.monthlySpendings(this)) < 0) {\n setBankrupt(true);\n }\n setInitialBudget(getInitialBudget() - formulas.monthlySpendings(this));\n }", "public void markAsUpToDate(int id) {\n\t\tif(!upToDateIds.contains(id)) {\n\t\t\tSystem.out.println(\"Marking ID \" + id + \" as up to date.\");\n\t\t\tupToDateIds.add(id);\n\t\t}\t\n\t}", "public void setTaxExemptExpirationDate(java.util.Calendar taxExemptExpirationDate) {\n this.taxExemptExpirationDate = taxExemptExpirationDate;\n }", "public void endOfRentalPeriod(Integer mileageAfter, LocalDate dateEnd) {\r\n this.mileageAfter = mileageAfter;\r\n this.dateEnd = dateEnd;\r\n }", "public void markAsUpToDate() {\n\t\tlog.debug(\"No chain to catch up.\");\n\t\tupToDate = true;\n\t}", "public void setOverdueMaxMonth5Y(java.lang.Integer overdueMaxMonth5Y) {\n this.overdueMaxMonth5Y = overdueMaxMonth5Y;\n }", "public CisaData withDateDue(java.util.Date dateDue) {\n setDateDue(dateDue);\n return this;\n }", "public synchronized void applyFee() {\r\n balance -= FEE;\r\n }", "public void setNotAfter(java.util.Date r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setNotAfter(java.util.Date):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setNotAfter(java.util.Date):void\");\n }", "void updateTaskDueDate(int id, LocalDateTime dueDate);", "public void doChangeItemDueDate(ActionEvent actionEvent) {\n // grab the item\n // setDueDate(item);\n }", "void savingAddRecurringExpenditure(Transaction newExpenditure, Ui ui) throws BankException, TransactionException {\n throw new BankException(\"This account does not support this feature\");\n }", "@Ignore\n @Test\n public void testLoanWithOnePaymentMadeAndOneOverduePayments() throws Exception {\n LoanBO loan = setUpLoan(dateTime, AccountState.LOAN_ACTIVE_IN_GOOD_STANDING);\n\n Assert.assertNull(loan.getLoanArrearsAgingEntity());\n\n short daysOverdue = 3;\n // advance time daysOverdue past the second repayment interval\n dateTime = dateTime.plusDays(2 * repaymentInterval + daysOverdue);\n new DateTimeService().setCurrentDateTimeFixed(dateTime);\n\n // make one payment, so we should still be one payment behind after that\n PaymentData paymentData = PaymentData.createPaymentData(new Money(Configuration.getInstance().getSystemConfig()\n .getCurrency(), \"\" + onePayment), loan.getPersonnel(), Short.valueOf(\"1\"), dateTime.toDate());\n IntegrationTestObjectMother.applyAccountPayment(loan, paymentData);\n runLoanArrearsThenLoanArrearsAging();\n StaticHibernateUtil.flushAndClearSession();\n\n loan = legacyLoanDao.getAccount(loan.getAccountId());\n\n Assert.assertNotNull(loan.getLoanArrearsAgingEntity());\n LoanArrearsAgingEntity loanArrearsAgingEntity = loan.getLoanArrearsAgingEntity();\n\n Assert.assertEquals(new Money(getCurrency(), \"\" + (loanAmount - principalForOneInstallment)),\n loanArrearsAgingEntity.getUnpaidPrincipal());\n Assert.assertEquals(new Money(getCurrency(), \"\" + (totalInterest - interestForOneInstallment)),\n loanArrearsAgingEntity.getUnpaidInterest());\n Assert.assertEquals(new Money(getCurrency(), \"\" + principalForOneInstallment), loanArrearsAgingEntity\n .getOverduePrincipal());\n Assert.assertEquals(new Money(getCurrency(), \"\" + interestForOneInstallment), loanArrearsAgingEntity\n .getOverdueInterest());\n Assert.assertEquals(new Money(getCurrency(), \"\" + (principalForOneInstallment + interestForOneInstallment)),\n loanArrearsAgingEntity.getOverdueBalance());\n\n Assert.assertEquals(Short.valueOf(daysOverdue), loanArrearsAgingEntity.getDaysInArrears());\n }", "Order modifyDiscountToOrder(Order order, int discountToAppply);", "public void setDateIssued(Date dateIssued) {\n\t\tthis.dateIssued = dateIssued;\n\t}", "public void checkOfficeActionPeriod1(){\n\n System.out.println(\"checking Office Action period 1 status for filings : \"+firstOfficeActionDuration);\n\n BaseTradeMarkApplicationService baseTradeMarkApplicationService = serviceBeanFactory.getBaseTradeMarkApplicationService();\n\n\n for(Iterator<BaseTrademarkApplication> iter = baseTradeMarkApplicationService.findAll().iterator(); iter.hasNext(); ) {\n\n BaseTrademarkApplication current = iter.next();\n if(current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"Non-Final Action Mailed\") == true){\n // check that date + duration against current time\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod() + current.getOfficeActionResponsePeriod()) < new Date().getTime()){\n\n System.out.println(\"Filing has expired from the office action period\");\n\n // check if office action has been completed ..\n for(Iterator<OfficeActions> iter3 = current.getOfficeActions().iterator(); iter3.hasNext(); ) {\n OfficeActions current3 = iter3.next();\n\n if(current3.isOfficeActionCompleted() == false && current.getFilingStatus().contains(\"Abandoned\") == false){\n\n // remove office action ..or set it to inactive\n // so on the dashboard. we only show actions that are active\n //\n // do the same thing. create petition object and attach it to the filing\n Petition petition = new Petition();\n petition.setParentMarkImagePath(current.getTradeMark().getTrademarkImagePath());\n petition.setStandardCharacterMark(current.isStandardTextMark());\n petition.setStandardCharacterText(current.getTradeMark().getTrademarkStandardCharacterText());\n petition.setParentMarkOwnerName(current.getPrimaryOwner().getOwnerDisplayname());\n petition.setParentSerialNumber(current.getTrademarkName());\n petition.setParentRegistrationNumber(current.getRegistrationID());\n\n petition.setActionID(String.valueOf(current3.getInternalID()));\n\n long dueDate = new Date().getTime()+current.getBlackOutPeriod()+current.getOfficeActionResponsePeriod()+current.getPetitionPeriod();\n petition.setDueDate(new Date(dueDate));\n\n\n current.setFilingStatus(\"Abandoned - Failure to Respond or Late Response\");\n petition.setOfficeActionCode(\"Abandoned - Failure to Respond or Late Response\");\n petition.setPetitionTitle(\"Failure to Respond Timely to Office Action\");\n\n petition.setActivePetition(true);\n current.addPetition(petition);\n petition.setTrademarkApplication(current);\n current3.setActiveAction(false);\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Filing Abandoned\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n\n\n // go back and set any active actions to in-active\n //for(Iterator<OfficeActions> iter2 = current.getOfficeActions().iterator(); iter2.hasNext(); ) {\n // OfficeActions current2 = iter2.next();\n // current2.setActiveAction(false);\n\n //}\n\n baseTradeMarkApplicationService.save(current);\n\n\n }\n\n\n\n }\n\n\n\n // only execute below code if office action is not completed...\n\n\n }\n else{\n System.out.println(\"filing is still in respond to office action period or filing is in a different state\");\n\n\n }\n }\n else{\n if(current.getFilingStatus().equals(\"TEAS RF New Application\") || current.getFilingStatus().equals(\"New Application\") ){\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod() + current.getOfficeActionResponsePeriod() ) < new Date().getTime()){\n boolean acceptedFiling = true;\n\n for(Iterator<OfficeActions> iter4 = current.getOfficeActions().iterator(); iter4.hasNext(); ) {\n OfficeActions current4 = iter4.next();\n if(current4.isActiveAction() && current4.getOfficeActionCode().equals(\"global default action\") == false){\n if(current4.isOfficeActionCompleted() == true){\n // skip examiner review period\n // filing is accepted\n // change filing status\n // create filing document event\n\n current4.setActiveAction(false);\n\n\n\n }\n else {\n acceptedFiling = false;\n\n System.out.println(\"office action is not completed\");\n }\n\n }\n\n\n }\n\n if(acceptedFiling == true){\n current.setFilingStatus(\"Accepted Filing\");\n current.setApplicationAcceptedDate(new Date());\n\n // create accepted filing date\n\n\n\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Filing Accepted\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n\n\n // go back and set any active actions to in-active\n //for(Iterator<OfficeActions> iter2 = current.getOfficeActions().iterator(); iter2.hasNext(); ) {\n // OfficeActions current2 = iter2.next();\n // current2.setActiveAction(false);\n\n //}\n\n baseTradeMarkApplicationService.save(current);\n\n }\n // if there are no office actions ..it is also compelete\n\n }\n // check for accepted filings\n }\n\n\n\n\n\n\n\n\n\n\n\n\n }\n\n }\n\n }" ]
[ "0.6075956", "0.5894295", "0.58897054", "0.5856971", "0.57689416", "0.5760612", "0.5750313", "0.57472134", "0.5742938", "0.55235", "0.54894644", "0.5428642", "0.53881323", "0.53788215", "0.53750837", "0.5367099", "0.5242216", "0.52396464", "0.52340996", "0.5230293", "0.52256054", "0.52159834", "0.51351833", "0.51351833", "0.5099761", "0.5086041", "0.50819886", "0.50619435", "0.5043527", "0.50367147", "0.5007338", "0.49871305", "0.49814397", "0.49800143", "0.4975813", "0.4961901", "0.49410844", "0.48942977", "0.48914894", "0.48861793", "0.48663336", "0.4827241", "0.48241788", "0.48212937", "0.48180854", "0.48120034", "0.48050228", "0.48008713", "0.47964123", "0.47964096", "0.47722295", "0.47722295", "0.4771891", "0.476865", "0.47679996", "0.47653633", "0.47505635", "0.47467482", "0.47444865", "0.47315028", "0.47299603", "0.4723447", "0.47197893", "0.47166517", "0.47066048", "0.46954903", "0.46900323", "0.46857554", "0.46793061", "0.46791992", "0.46743563", "0.46687174", "0.466826", "0.46558338", "0.4645436", "0.4641964", "0.4636458", "0.4624135", "0.4607793", "0.4606326", "0.45981506", "0.45967394", "0.45908132", "0.4586606", "0.4586247", "0.45861742", "0.4580115", "0.4578657", "0.45661825", "0.456313", "0.45549524", "0.45420897", "0.4540958", "0.4540797", "0.45372975", "0.45105484", "0.4509318", "0.4508505", "0.45065382", "0.45059076" ]
0.782479
0
Momentele componenten worden opgeslagen in Arraylist
public void setcomponenten(ArrayList<Componenten> a){ this.database= a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Double> getmasseslist(){return masses;}", "List<DataGatherMoment> getDataGatherMoments();", "private ArrayList<Measurement> getMeasurements() {\n ArrayList<Measurement> measurements = new ArrayList<>();\n Cursor cursor = db.getData();\n\n if (cursor.getCount() == 0) {\n Toast.makeText(this, \"Es wurden noch keine Messungen gemacht.\", Toast.LENGTH_SHORT).show();\n } else {\n while (cursor.moveToNext()) {\n int id = cursor.getInt(cursor.getColumnIndex(\"ID\"));\n double pupil1 = cursor.getDouble(cursor.getColumnIndex(\"Pupil1\"));\n double pupil2 = cursor.getDouble(cursor.getColumnIndex(\"Pupil2\"));\n double difference = cursor.getDouble(cursor.getColumnIndex(\"Difference\"));\n String date = cursor.getString(cursor.getColumnIndex(\"Date\"));\n String filepath = cursor.getString(cursor.getColumnIndex(\"Filepath\"));\n\n measurements.add(new Measurement(id, pupil1, pupil2, difference, date, filepath));\n }\n }\n Collections.reverse(measurements);\n return measurements;\n }", "private static List<Aeropuerto> llenarAeropuertos(){\n List<Aeropuerto> res = new ArrayList<>();\n res.add(new Aeropuerto(\"la paz\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"cochabamba\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"santa cruz\",LocalTime.of(06,20,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"tarija\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"sucre\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"oruro\",LocalTime.of(06,15,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"potosi\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"beni\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"pando\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n return res;\n }", "public static final List<NormalTrackTimeStamp> m130161a(long j, List<? extends NormalTrackTimeStamp> list) {\n long j2;\n boolean z;\n if (list == null) {\n return null;\n }\n Iterable iterable = list;\n Collection arrayList = new ArrayList();\n for (Object next : iterable) {\n NormalTrackTimeStamp normalTrackTimeStamp = (NormalTrackTimeStamp) next;\n if (normalTrackTimeStamp != null) {\n j2 = (long) normalTrackTimeStamp.getPts();\n } else {\n j2 = 0;\n }\n long j3 = j - j2;\n if (-160 <= j3 && 160 >= j3) {\n z = true;\n } else {\n z = false;\n }\n if (z) {\n arrayList.add(next);\n }\n }\n return (List) arrayList;\n }", "public void recomendarTemposEM() {\n ArrayList iTXCH = new ArrayList(); /// Instancias pre fusion\n ArrayList iTYCH = new ArrayList();\n ArrayList iTZCH = new ArrayList();\n\n ArrayList cenTXCH = new ArrayList(); /// Centroides Tempos tempos ch\n ArrayList cenTYCH = new ArrayList();\n ArrayList cenTZCH = new ArrayList();\n\n ArrayList cenTXDB = new ArrayList(); /// centroide tempos db\n ArrayList cenTYDB = new ArrayList();\n ArrayList cenTZDB = new ArrayList();\n\n ArrayList insTXCH = new ArrayList(); /// Instancias fusion\n ArrayList insTYCH = new ArrayList();\n ArrayList insTZCH = new ArrayList();\n\n ArrayList ppTXCH = new ArrayList(); /// centroide promedio ponderado tempos\n ArrayList ppTYCH = new ArrayList();\n ArrayList ppTZCH = new ArrayList();\n\n ArrayList ppTXDB = new ArrayList(); /// centroide promedio ponderado duracion\n ArrayList ppTYDB = new ArrayList();\n ArrayList ppTZDB = new ArrayList();\n\n ArrayList paTXCH = new ArrayList(); /// centroide promedio aritmetico tempos ch\n ArrayList paTYCH = new ArrayList();\n ArrayList paTZCH = new ArrayList();\n\n ArrayList paTXDB = new ArrayList(); /// centroide promedio artimetico tempos db\n ArrayList paTYDB = new ArrayList();\n ArrayList paTZDB = new ArrayList();\n\n////////////////// TEMPO EN X ////////////////////////////// \n ////////// calinsky - harabaz /////////\n if (txchsEM == \"Pre Fusion\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n cenTXCH = CExtraer.arrayTempoXCpruebaEM;\n iTXCH = CExtraer.arrayTempoXIpruebaEM;\n res = Double.parseDouble((String) iTXCH.get(0));\n for (int i = 0; i < iTXCH.size(); i++) {\n if (Double.parseDouble((String) iTXCH.get(i)) > res) {\n System.out.println(iTXCH.get(i));\n res = Double.parseDouble((String) iTXCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTXCH2.setText(cenTXCH.get(iposision).toString());\n }\n\n if (txchsEM == \"Fusion PP\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTXCH = CFusionarEM.arregloInstanciasTX1EM;\n ppTXCH = CFusionarEM.arregloPPTX1EM;\n\n res = Double.parseDouble((String) insTXCH.get(0));\n for (int i = 0; i < insTXCH.size(); i++) {\n if (Double.parseDouble((String) insTXCH.get(i)) > res) {\n System.out.println(insTXCH.get(i));\n\n res = Double.parseDouble((String) insTXCH.get(i));\n iposision = i;\n\n System.out.println(iposision);\n\n }\n }\n valorTXCH2.setText(ppTXCH.get(iposision).toString());\n }\n\n if (txchsEM == \"Fusion PA\") {\n\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTXCH = CFusionarEM.arregloInstanciasTX1EM;\n paTXCH = CFusionarEM.arregloPATX1EM;\n res = Double.parseDouble((String) insTXCH.get(0));\n for (int i = 0; i < insTXCH.size(); i++) {\n if (Double.parseDouble((String) insTXCH.get(i)) > res) {\n res = Double.parseDouble((String) insTXCH.get(i));\n iposision = i;\n }\n }\n valorTXCH2.setText(paTXCH.get(iposision).toString());\n\n }\n\n //////////// davies bouldin //////////////\n if (txdbsEM == \"Pre Fusion\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n cenTXDB = CExtraer.arrayTempoXCpruebaEM;\n iTXCH = CExtraer.arrayTempoXIpruebaEM;\n res = Double.parseDouble((String) iTXCH.get(0));\n for (int i = 0; i < iTXCH.size(); i++) {\n if (Double.parseDouble((String) iTXCH.get(i)) > res) {\n System.out.println(iTXCH.get(i));\n res = Double.parseDouble((String) iTXCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTXDB2.setText(cenTXDB.get(iposision).toString());\n }\n\n if (txdbsEM == \"Fusion PP\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTXCH = CFusionarEM.arregloInstanciasTX1EM;\n ppTXDB = CFusionarEM.arregloPPTX1EM;\n res = Double.parseDouble((String) insTXCH.get(0));\n for (int i = 0; i < insTXCH.size(); i++) {\n if (Double.parseDouble((String) insTXCH.get(i)) > res) {\n System.out.println(insTXCH.get(i));\n res = Double.parseDouble((String) insTXCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTXDB2.setText(ppTXDB.get(iposision).toString());\n }\n if (txdbsEM == \"Fusion PA\") {\n\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTXCH = CFusionarEM.arregloInstanciasTX1EM;\n paTXDB = CFusionarEM.arregloPATX1EM;\n\n res = Double.parseDouble((String) insTXCH.get(0));\n for (int i = 0; i < insTXCH.size(); i++) {\n if (Double.parseDouble((String) insTXCH.get(i)) > res) {\n res = Double.parseDouble((String) insTXCH.get(i));\n iposision = i;\n }\n }\n valorTXDB2.setText(paTXDB.get(iposision).toString());\n\n }\n\n ///////////// TEMPO EN Y //////////// \n //////////// calinsky - harabaz /////////////\n if (tychsEM == \"Pre Fusion\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n cenTYCH = CExtraer.arrayTempoYCpruebaEM;\n iTYCH = CExtraer.arrayTempoYIpruebaEM;\n res = Double.parseDouble((String) iTYCH.get(0));\n for (int i = 0; i < iTYCH.size(); i++) {\n if (Double.parseDouble((String) iTYCH.get(i)) > res) {\n System.out.println(iTYCH.get(i));\n res = Double.parseDouble((String) iTYCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTYCH2.setText(cenTYCH.get(iposision).toString());\n }\n\n if (tychsEM == \"Fusion PP\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTYCH = CFusionarEM.arregloInstanciasTY1EM;\n ppTYCH = CFusionarEM.arregloPPTY1EM;\n res = Double.parseDouble((String) insTYCH.get(0));\n for (int i = 0; i < insTYCH.size(); i++) {\n if (Double.parseDouble((String) insTYCH.get(i)) > res) {\n res = Double.parseDouble((String) insTYCH.get(i));\n iposision = i;\n }\n }\n valorTYCH2.setText(ppTYCH.get(iposision).toString());\n\n }\n\n if (tychsEM == \"Fusion PA\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTYCH = CFusionarEM.arregloInstanciasTY1EM;\n paTYCH = CFusionarEM.arregloPATY1EM;\n res = Double.parseDouble((String) insTYCH.get(0));\n for (int i = 0; i < insTYCH.size(); i++) {\n if (Double.parseDouble((String) insTYCH.get(i)) > res) {\n res = Double.parseDouble((String) insTYCH.get(i));\n iposision = i;\n }\n }\n valorTYCH2.setText(paTYCH.get(iposision).toString());\n }\n /////////// davies - bouldin /////////////\n if (tydbsEM == \"Pre Fusion\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n cenTYDB = CExtraer.arrayTempoYCpruebaEM;\n iTYCH = CExtraer.arrayTempoYIpruebaEM;\n res = Double.parseDouble((String) iTYCH.get(0));\n for (int i = 0; i < iTYCH.size(); i++) {\n if (Double.parseDouble((String) iTYCH.get(i)) > res) {\n System.out.println(iTYCH.get(i));\n res = Double.parseDouble((String) iTYCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTYDB2.setText(cenTYDB.get(iposision).toString());\n }\n\n if (tydbsEM == \"Fusion PP\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTYCH = CFusionarEM.arregloInstanciasTY1EM;\n ppTYDB = CFusionarEM.arregloPPTY1EM;\n res = Double.parseDouble((String) insTYCH.get(0));\n for (int i = 0; i < insTYCH.size(); i++) {\n if (Double.parseDouble((String) insTYCH.get(i)) > res) {\n res = Double.parseDouble((String) insTYCH.get(i));\n iposision = i;\n }\n }\n valorTYDB2.setText(ppTYDB.get(iposision).toString());\n }\n if (tydbsEM == \"Fusion PA\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTYCH = CFusionarEM.arregloInstanciasTY1EM;\n paTYDB = CFusionarEM.arregloPATY1EM;\n res = Double.parseDouble((String) insTYCH.get(0));\n for (int i = 0; i < insTYCH.size(); i++) {\n if (Double.parseDouble((String) insTYCH.get(i)) > res) {\n res = Double.parseDouble((String) insTYCH.get(i));\n iposision = i;\n }\n }\n valorTYDB2.setText(paTYDB.get(iposision).toString());\n }\n\n ///////////// TEMPO EN Z //////////// \n ///////////// calinsky harabaz ///////////////////\n if (tzchsEM == \"Pre Fusion\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n cenTZCH = CExtraer.arrayTempoZCpruebaEM;\n iTZCH = CExtraer.arrayTempoZIpruebaEM;\n res = Double.parseDouble((String) iTZCH.get(0));\n for (int i = 0; i < iTZCH.size(); i++) {\n if (Double.parseDouble((String) iTZCH.get(i)) > res) {\n System.out.println(iTZCH.get(i));\n res = Double.parseDouble((String) iTZCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTZCH2.setText(cenTZCH.get(iposision).toString());\n }\n\n if (tzchsEM == \"Fusion PP\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTZCH = CFusionarEM.arregloInstanciasTZ1EM;\n ppTZCH = CFusionarEM.arregloPPTZ1EM;\n res = Double.parseDouble((String) insTZCH.get(0));\n for (int i = 0; i < insTZCH.size(); i++) {\n if (Double.parseDouble((String) insTZCH.get(i)) > res) {\n res = Double.parseDouble((String) insTZCH.get(i));\n iposision = i;\n }\n }\n valorTZCH2.setText(ppTZCH.get(iposision).toString());\n }\n if (tzchsEM == \"Fusion PA\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTZCH = CFusionarEM.arregloInstanciasTZ1EM;\n paTZCH = CFusionarEM.arregloPATZ1EM;\n res = Double.parseDouble((String) insTZCH.get(0));\n for (int i = 0; i < insTZCH.size(); i++) {\n if (Double.parseDouble((String) insTZCH.get(i)) > res) {\n res = Double.parseDouble((String) insTZCH.get(i));\n iposision = i;\n }\n }\n valorTZCH2.setText(paTZCH.get(iposision).toString());\n }\n\n ///////////// davies bouldin /////////////////// \n if (tzdbsEM == \"Pre Fusion\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n cenTZDB = CExtraer.arrayTempoZCpruebaEM;\n iTZCH = CExtraer.arrayTempoZIpruebaEM;\n res = Double.parseDouble((String) iTZCH.get(0));\n for (int i = 0; i < iTZCH.size(); i++) {\n if (Double.parseDouble((String) iTZCH.get(i)) > res) {\n System.out.println(iTZCH.get(i));\n res = Double.parseDouble((String) iTZCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTZDB2.setText(cenTZDB.get(iposision).toString());\n }\n\n if (tzdbsEM == \"Fusion PP\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTZCH = CFusionarEM.arregloInstanciasTZ1EM;\n ppTZDB = CFusionarEM.arregloPPTZ1EM;\n res = Double.parseDouble((String) insTZCH.get(0));\n for (int i = 0; i < insTZCH.size(); i++) {\n if (Double.parseDouble((String) insTZCH.get(i)) > res) {\n res = Double.parseDouble((String) insTZCH.get(i));\n iposision = i;\n }\n }\n valorTZDB2.setText(ppTZDB.get(iposision).toString());\n }\n //////////\n if (tzdbsEM == \"Fusion PA\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTZCH = CFusionarEM.arregloInstanciasTZ1EM;\n paTZDB = CFusionarEM.arregloPATZ1EM;\n res = Double.parseDouble((String) insTZCH.get(0));\n for (int i = 0; i < insTZCH.size(); i++) {\n if (Double.parseDouble((String) insTZCH.get(i)) > res) {\n res = Double.parseDouble((String) insTZCH.get(i));\n iposision = i;\n }\n }\n valorTZDB2.setText(paTZDB.get(iposision).toString());\n }\n\n }", "public void sort() {\n\t\tArrayList<Medication> dayList = new ArrayList<Medication>();\n\t\tupcomingMedsLabel.setText(\"\");\n\t\tDate dt = new Date();\n\t\tDateFormat df = new SimpleDateFormat(\"EEEE\");\n\t\tString currentDay = df.format(dt);\n\t\t\n\t\t//Runs through all elements in the array\n\t\tfor(int i = 0; i < medList.size(); i++) {\n\t\t\t//Checks to see if the medication needs to be taken today\n\t\t\tif(medList.get(i).getMedDateTime().contains(currentDay)) {\n\t\t\t\tboolean added = false;\n\t\t\t\t//If no other element has been added, added the element\n\t\t\t\tif(dayList.size() == 0) {\n\t\t\t\t\tdayList.add(medList.get(i));\n\t\t\t\t} else {\n\t\t\t\t\t//Checks all other medications in the dayList to order them chronologicaly\n\t\t\t\t\tfor(int j = 0; j < dayList.size(); j++) {\n\t\t\t\t\t\t//Get the hour of element at j and compare it again element at i of medList\n\t\t\t\t\t\tint hour = Integer.parseInt(dayList.get(j).getHour());\n\t\t\t\t\t\t//If < add at j, if equal check minutes else add later\n\t\t\t\t\t\tif(Integer.parseInt(medList.get(i).getHour()) < hour) {\n\t\t\t\t\t\t\tdayList.add(j, medList.get(i));\n\t\t\t\t\t\t\tadded = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if (Integer.parseInt(medList.get(i).getHour()) == hour) {\n\t\t\t\t\t\t\tadded = true;\n\t\t\t\t\t\t\t//Checks against minutes\n\t\t\t\t\t\t\tint minute = Integer.parseInt(dayList.get(j).getMinute());\n\t\t\t\t\t\t\tif(Integer.parseInt(medList.get(i).getMinute()) < minute) {\n\t\t\t\t\t\t\t\tdayList.add(j, medList.get(i));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif(dayList.size() > (j + 1)) {\n\t\t\t\t\t\t\t\t\tdayList.add(j+1, medList.get(i));\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tdayList.add(medList.get(i));\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(added == false) {\n\t\t\t\t\t\tdayList.add(medList.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Update the upcomingMedsLabel\n\t\tfor(int i = 0; i < dayList.size(); i++) {\n\t\t\tupcomingMedsLabel.setText(upcomingMedsLabel.getText() + \"\\n\\n\" + dayList.get(i));\n\t\t}\n\t}", "public void recomendarTempos() {\n ArrayList iTXCH = new ArrayList(); /// Instancias pre fusion\n ArrayList iTYCH = new ArrayList();\n ArrayList iTZCH = new ArrayList();\n\n ArrayList cenTXCH = new ArrayList(); /// Centroides Tempos tempos ch\n ArrayList cenTYCH = new ArrayList();\n ArrayList cenTZCH = new ArrayList();\n\n ArrayList cenTXDB = new ArrayList(); /// centroide tempos db\n ArrayList cenTYDB = new ArrayList();\n ArrayList cenTZDB = new ArrayList();\n\n ArrayList insTXCH = new ArrayList(); /// Instancias fusion\n ArrayList insTYCH = new ArrayList();\n ArrayList insTZCH = new ArrayList();\n\n ArrayList ppTXCH = new ArrayList(); /// centroide promedio ponderado tempos\n ArrayList ppTYCH = new ArrayList();\n ArrayList ppTZCH = new ArrayList();\n\n ArrayList ppTXDB = new ArrayList(); /// centroide promedio ponderado duracion\n ArrayList ppTYDB = new ArrayList();\n ArrayList ppTZDB = new ArrayList();\n\n ArrayList paTXCH = new ArrayList(); /// centroide promedio aritmetico tempos ch\n ArrayList paTYCH = new ArrayList();\n ArrayList paTZCH = new ArrayList();\n\n ArrayList paTXDB = new ArrayList(); /// centroide promedio artimetico tempos db\n ArrayList paTYDB = new ArrayList();\n ArrayList paTZDB = new ArrayList();\n\n////////////////// TEMPO EN X ////////////////////////////// \n ////////// calinsky - harabaz /////////\n if (txchs == \"Pre Fusion\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n cenTXCH = CExtraer.arrayTempoXCprueba;\n iTXCH = CExtraer.arrayTempoXIprueba;\n res = Double.parseDouble((String) iTXCH.get(0));\n for (int i = 0; i < iTXCH.size(); i++) {\n if (Double.parseDouble((String) iTXCH.get(i)) > res) {\n System.out.println(iTXCH.get(i));\n res = Double.parseDouble((String) iTXCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTXCH.setText(cenTXCH.get(iposision).toString());\n }\n\n if (txchs == \"Fusion PP\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTXCH = CFusionar.arregloInstanciasTX1;\n ppTXCH = CFusionar.arregloPPTX1;\n\n res = Double.parseDouble((String) insTXCH.get(0));\n for (int i = 0; i < insTXCH.size(); i++) {\n if (Double.parseDouble((String) insTXCH.get(i)) > res) {\n System.out.println(insTXCH.get(i));\n\n res = Double.parseDouble((String) insTXCH.get(i));\n iposision = i;\n\n System.out.println(iposision);\n\n }\n }\n valorTXCH.setText(ppTXCH.get(iposision).toString());\n }\n\n if (txchs == \"Fusion PA\") {\n\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTXCH = CFusionar.arregloInstanciasTX1;\n paTXCH = CFusionar.arregloPATX1;\n res = Double.parseDouble((String) insTXCH.get(0));\n for (int i = 0; i < insTXCH.size(); i++) {\n if (Double.parseDouble((String) insTXCH.get(i)) > res) {\n res = Double.parseDouble((String) insTXCH.get(i));\n iposision = i;\n }\n }\n valorTXCH.setText(paTXCH.get(iposision).toString());\n\n }\n\n //////////// davies bouldin //////////////\n if (txdbs == \"Pre Fusion\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n cenTXDB = CExtraer.arrayTempoXCprueba;\n iTXCH = CExtraer.arrayTempoXIprueba;\n res = Double.parseDouble((String) iTXCH.get(0));\n for (int i = 0; i < iTXCH.size(); i++) {\n if (Double.parseDouble((String) iTXCH.get(i)) > res) {\n System.out.println(iTXCH.get(i));\n res = Double.parseDouble((String) iTXCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTXDB.setText(cenTXDB.get(iposision).toString());\n }\n\n if (txdbs == \"Fusion PP\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTXCH = CFusionar.arregloInstanciasTX1;\n ppTXDB = CFusionar.arregloPPTX1;\n res = Double.parseDouble((String) insTXCH.get(0));\n for (int i = 0; i < insTXCH.size(); i++) {\n if (Double.parseDouble((String) insTXCH.get(i)) > res) {\n System.out.println(insTXCH.get(i));\n res = Double.parseDouble((String) insTXCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTXDB.setText(ppTXDB.get(iposision).toString());\n }\n if (txdbs == \"Fusion PA\") {\n\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTXCH = CFusionar.arregloInstanciasTX1;\n paTXDB = CFusionar.arregloPATX1;\n res = Double.parseDouble((String) insTXCH.get(0));\n for (int i = 0; i < insTXCH.size(); i++) {\n if (Double.parseDouble((String) insTXCH.get(i)) > res) {\n res = Double.parseDouble((String) insTXCH.get(i));\n iposision = i;\n }\n }\n valorTXDB.setText(paTXDB.get(iposision).toString());\n\n }\n\n ///////////// TEMPO EN Y //////////// \n //////////// calinsky - harabaz /////////////\n if (tychs == \"Pre Fusion\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n cenTYCH = CExtraer.arrayTempoYCprueba;\n iTYCH = CExtraer.arrayTempoYIprueba;\n res = Double.parseDouble((String) iTYCH.get(0));\n for (int i = 0; i < iTYCH.size(); i++) {\n if (Double.parseDouble((String) iTYCH.get(i)) > res) {\n System.out.println(iTYCH.get(i));\n res = Double.parseDouble((String) iTYCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTYCH.setText(cenTYCH.get(iposision).toString());\n }\n\n if (tychs == \"Fusion PP\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTYCH = CFusionar.arregloInstanciasTY1;\n ppTYCH = CFusionar.arregloPPTY1;\n res = Double.parseDouble((String) insTYCH.get(0));\n for (int i = 0; i < insTYCH.size(); i++) {\n if (Double.parseDouble((String) insTYCH.get(i)) > res) {\n res = Double.parseDouble((String) insTYCH.get(i));\n iposision = i;\n }\n }\n valorTYCH.setText(ppTYCH.get(iposision).toString());\n\n }\n\n if (tychs == \"Fusion PA\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTYCH = CFusionar.arregloInstanciasTY1;\n paTYCH = CFusionar.arregloPATY1;\n res = Double.parseDouble((String) insTYCH.get(0));\n for (int i = 0; i < insTYCH.size(); i++) {\n if (Double.parseDouble((String) insTYCH.get(i)) > res) {\n res = Double.parseDouble((String) insTYCH.get(i));\n iposision = i;\n }\n }\n valorTYCH.setText(paTYCH.get(iposision).toString());\n }\n /////////// davies - bouldin /////////////\n if (tydbs == \"Pre Fusion\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n cenTYDB = CExtraer.arrayTempoYCprueba;\n iTYCH = CExtraer.arrayTempoYIprueba;\n res = Double.parseDouble((String) iTYCH.get(0));\n for (int i = 0; i < iTYCH.size(); i++) {\n if (Double.parseDouble((String) iTYCH.get(i)) > res) {\n System.out.println(iTYCH.get(i));\n res = Double.parseDouble((String) iTYCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTYDB.setText(cenTYDB.get(iposision).toString());\n }\n\n if (tydbs == \"Fusion PP\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTYCH = CFusionar.arregloInstanciasTY1;\n ppTYDB = CFusionar.arregloPPTY1;\n res = Double.parseDouble((String) insTYCH.get(0));\n for (int i = 0; i < insTYCH.size(); i++) {\n if (Double.parseDouble((String) insTYCH.get(i)) > res) {\n res = Double.parseDouble((String) insTYCH.get(i));\n iposision = i;\n }\n }\n valorTYDB.setText(ppTYDB.get(iposision).toString());\n }\n if (tydbs == \"Fusion PA\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTYCH = CFusionar.arregloInstanciasTY1;\n paTYDB = CFusionar.arregloPATY1;\n res = Double.parseDouble((String) insTYCH.get(0));\n for (int i = 0; i < insTYCH.size(); i++) {\n if (Double.parseDouble((String) insTYCH.get(i)) > res) {\n res = Double.parseDouble((String) insTYCH.get(i));\n iposision = i;\n }\n }\n valorTYDB.setText(paTYDB.get(iposision).toString());\n }\n\n ///////////// TEMPO EN Z //////////// \n ///////////// calinsky harabaz ///////////////////\n if (tzchs == \"Pre Fusion\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n cenTZCH = CExtraer.arrayTempoZCprueba;\n iTZCH = CExtraer.arrayTempoZIprueba;\n res = Double.parseDouble((String) iTZCH.get(0));\n for (int i = 0; i < iTZCH.size(); i++) {\n if (Double.parseDouble((String) iTZCH.get(i)) > res) {\n System.out.println(iTZCH.get(i));\n res = Double.parseDouble((String) iTZCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTZCH.setText(cenTZCH.get(iposision).toString());\n }\n\n if (tzchs == \"Fusion PP\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTZCH = CFusionar.arregloInstanciasTZ1;\n ppTZCH = CFusionar.arregloPPTZ1;\n res = Double.parseDouble((String) insTZCH.get(0));\n for (int i = 0; i < insTZCH.size(); i++) {\n if (Double.parseDouble((String) insTZCH.get(i)) > res) {\n res = Double.parseDouble((String) insTZCH.get(i));\n iposision = i;\n }\n }\n valorTZCH.setText(ppTZCH.get(iposision).toString());\n }\n if (tzchs == \"Fusion PA\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTZCH = CFusionar.arregloInstanciasTZ1;\n paTZCH = CFusionar.arregloPATZ1;\n res = Double.parseDouble((String) insTZCH.get(0));\n for (int i = 0; i < insTZCH.size(); i++) {\n if (Double.parseDouble((String) insTZCH.get(i)) > res) {\n res = Double.parseDouble((String) insTZCH.get(i));\n iposision = i;\n }\n }\n valorTZCH.setText(paTZCH.get(iposision).toString());\n }\n\n ///////////// davies bouldin /////////////////// \n if (tzdbs == \"Pre Fusion\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n cenTZDB = CExtraer.arrayTempoZCprueba;\n iTZCH = CExtraer.arrayTempoZIprueba;\n res = Double.parseDouble((String) iTZCH.get(0));\n for (int i = 0; i < iTZCH.size(); i++) {\n if (Double.parseDouble((String) iTZCH.get(i)) > res) {\n System.out.println(iTZCH.get(i));\n res = Double.parseDouble((String) iTZCH.get(i));\n iposision = i;\n System.out.println(iposision);\n }\n }\n valorTZDB.setText(cenTZDB.get(iposision).toString());\n }\n\n if (tzdbs == \"Fusion PP\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTZCH = CFusionar.arregloInstanciasTZ1;\n ppTZDB = CFusionar.arregloPPTZ1;\n res = Double.parseDouble((String) insTZCH.get(0));\n for (int i = 0; i < insTZCH.size(); i++) {\n if (Double.parseDouble((String) insTZCH.get(i)) > res) {\n res = Double.parseDouble((String) insTZCH.get(i));\n iposision = i;\n }\n }\n valorTZDB.setText(ppTZDB.get(iposision).toString());\n }\n //////////\n if (tzdbs == \"Fusion PA\") {\n double res = 0;\n double cont = 0;\n int iposision = 0;\n\n insTZCH = CFusionar.arregloInstanciasTZ1;\n paTZDB = CFusionar.arregloPATZ1;\n res = Double.parseDouble((String) insTZCH.get(0));\n for (int i = 0; i < insTZCH.size(); i++) {\n if (Double.parseDouble((String) insTZCH.get(i)) > res) {\n res = Double.parseDouble((String) insTZCH.get(i));\n iposision = i;\n }\n }\n valorTZDB.setText(paTZDB.get(iposision).toString());\n }\n\n }", "public ArrayList<Double> getTime(){\n\t\treturn time;\n\t}", "private static ArrayList<String> parseMomentFictionalProgress(Element momentElement)\n throws MissionParseException {\n ArrayList<String> progress = new ArrayList<>();\n NodeList fictionalProgressNodes =\n momentElement.getElementsByTagName(ELEMENT_FICTIONAL_PROGRESS);\n for (int i = 0; i < fictionalProgressNodes.getLength(); i++) {\n Node node = fictionalProgressNodes.item(i);\n Element parent = (Element) node.getParentNode();\n if (isElementNode(node) && parent.getTagName().equals(ELEMENT_MOMENT)) {\n String progressString = parseFictionalProgressElement((Element) node);\n progress.add(progressString);\n }\n }\n return progress;\n }", "public Registro(List<Double> d) \n { \n\t this.setContenido((ArrayList<Double>) d);\n }", "public Molt(){\n molt=new ArrayList<>();\n }", "public ArrayList<Integer> createList(){\r\n \tArrayList<Integer> test = new ArrayList<>();\r\n \tstarLabels = new ArrayList<>();\r\n \tconstLabels = new ArrayList<>();\r\n \tplanetLabels = new ArrayList<>();\r\n \tmesrLabels = new ArrayList<>();\r\n \tmoonLabel = new ArrayList<>();\r\n \t\r\n \tint a = 0;\r\n \tint b = 1;\r\n \tint c = 2;\r\n \tint d = 3;\r\n \t\r\n \tint size;\r\n \t\r\n \t//Go through the spaceobjectlist\r\n \tfor(int i = 0; i < AlexxWork2.spaceObjList.size(); i++) {\r\n \t\t\r\n \t\t//If object is visible and object has positive altitude continue\r\n \t\tif(AlexxWork2.spaceObjList.get(i).getMagnitude() != null \r\n \t\t\t\t&& (Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) \r\n \t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 0.5) {\r\n\t \t\t\r\n \t\t\t\r\n \t\t\t//Calculate X and Y\r\n \t\t\tint x = getX(2250, 2250, 1000, \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n \t\t\t\r\n\t\t\t\tint y = getY(2250, 2250, 1000, \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\r\n\t\t\t\t//Load stars\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"STAR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\") {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(AlexxWork2.starNamesCB \r\n\t\t\t\t\t\t\t&& Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Filter out number only star names\r\n\t\t\t\t\t\t\tint testInt = Integer.parseInt(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t} catch (NumberFormatException | NullPointerException nfe) {\r\n\t\t\t\t\t\t\t\tstarLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(x));\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(y));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Load constellation data\r\n\t\t\t\t\tif(herculesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadHerculesLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMinorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMajorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(libraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadLibraLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(andromedaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAndromedaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquilaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquilaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ariesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAriesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aurigaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAurigaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(bootesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadBootesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cancerNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCancerLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMajorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMinorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(capricornusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCapricornusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cassiopeiaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCassiopeiaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(centaurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCentaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cepheusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCepheusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cruxNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCruxLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cygnusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCygnusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(dracoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadDracoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(geminiNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadGeminiLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hydraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadHydraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(leoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLeoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(lyraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLyraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(orionNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadOrionLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(pegasusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPegasusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(perseusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPerseusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(piscesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPiscesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(sagittariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadSagittariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(scorpioNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadScorpioLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(taurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadTaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\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//Add coordinates to list\r\n\t \t\ttest.add(a, x);\r\n\t \t\ttest.add(b, y);\r\n\t \t\t\r\n\t \t\t//Add moon information if visible\r\n\t \t\tif(AlexxWork2.spaceObjList.get(i).getProperName() == \"MOON\") {\r\n size = 22;\r\n String moonName = AlexxWork2.spaceObjList.get(i).getProperName() + \": \" + AlexxWork2.spaceObjList.get(i).getType();\r\n moonLabel.add(0, moonName);\r\n moonLabel.add(1, String.valueOf(x));\r\n moonLabel.add(2, String.valueOf(y));\r\n }\r\n\t \t\t\r\n\t \t\t//If object is planet, set the size\r\n\t \t\telse if(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\"){\r\n\t \t\t\tsize = 16;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else set size based on mag\r\n\t \t\telse{\r\n\t \t\t\tsize = getSize(Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()));\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Add size to list\r\n\t \t\ttest.add(c, size);\r\n\t \t\ttest.add(d, size);\r\n\t \t\ta = d + 1;\r\n\t \t\tb = a + 1;\r\n\t \t\tc = b + 1;\r\n\t \t\td = c + 1;\r\n \t\t}\r\n \t\t\r\n \t\t//Load constellation labels\r\n \t\tif(AlexxWork2.constellationsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"CONST\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tconstLabels.add(AlexxWork2.spaceObjList.get(i).getConstName());\r\n\t\t\t\t\tconstLabels.add(String.valueOf(x));\r\n\t\t\t\t\tconstLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load planet labels\r\n \t\tif(AlexxWork2.planetsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tplanetLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(x));\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load messier labels\r\n \t\tif(AlexxWork2.messierCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"MESR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tmesrLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(x));\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t//Return list \r\n \treturn test;\r\n }", "private void setDate() {\n\n for (int i = 0; i < historicList.size(); i++) {\n if (i == 0) {\n dateList.get(0).setText(\"Hier\");\n }\n if (i == 1) {\n dateList.get(0).setText(\"Avant - hier\");\n dateList.get(1).setText(\"Hier\");\n }\n\n if (i == 2) {\n dateList.get(0).setText(\"Il y a trois jours\");\n dateList.get(1).setText(\"Avant - hier\");\n dateList.get(2).setText(\"Hier\");\n\n }\n\n if (i == 3) {\n dateList.get(0).setText(\"Il y a quatre jours\");\n dateList.get(1).setText(\"Il y a trois jours\");\n dateList.get(2).setText(\"Avant - hier\");\n dateList.get(3).setText(\"Hier\");\n }\n\n if (i == 4) {\n dateList.get(0).setText(\"Il y a cinq jours\");\n dateList.get(1).setText(\"Il y a quatre jours\");\n dateList.get(2).setText(\"Il y a trois jours\");\n dateList.get(3).setText(\"Avant - hier\");\n dateList.get(4).setText(\"Hier\");\n }\n\n if (i == 5) {\n dateList.get(0).setText(\"Il y a six jours\");\n dateList.get(1).setText(\"Il y a cinq jours\");\n dateList.get(2).setText(\"Il y a quatre jours\");\n dateList.get(3).setText(\"Il y a trois jours\");\n dateList.get(4).setText(\"Avant - hier\");\n dateList.get(5).setText(\"Hier\");\n }\n\n if (i == 6) {\n dateList.get(0).setText(\"Il y a une semaine\");\n dateList.get(1).setText(\"Il y a six jours\");\n dateList.get(2).setText(\"Il y a cinq jours\");\n dateList.get(3).setText(\"Il y a quatre jours\");\n dateList.get(4).setText(\"Il y a trois jours\");\n dateList.get(5).setText(\"Avant - hier\");\n dateList.get(6).setText(\"Hier\");\n }\n\n }\n }", "private void addIsochronesToChart(ArrayList<ArrayList<Star>> list) {\n int isoCounter = 0;\n int MAX_ISOCHRONES = 400;\n int SKIPPING_COUNT = list.size() / MAX_ISOCHRONES + 1;\n for (ArrayList<Star> isochrone : list) {\n isoCounter++;\n\n if (isoCounter % SKIPPING_COUNT != 0) {\n continue;\n }\n\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n XYChart.Series series = new XYChart.Series();\n int index = 0;\n for (Star s : isochrone) {\n if (index % 4 != 0) { index++; continue; } //faster rendering\n //need to invert x-axis and this solution sucks, but FIXME later\n series.getData().add(new XYChart.Data(-s.getTemperature(), s.getLuminosity()));\n index++;\n }\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n lineChart.getData().add(series);\n }\n });\n return null;\n }\n };\n\n Thread th = new Thread(task);\n th.setDaemon(true);\n th.start();\n }\n }", "private void obtenerAnimales() {\n // final ArrayList<String> lista = new ArrayList<>();\n //Para obtener datos de la base de datos\n refAnimales.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n long size = dataSnapshot.getChildrenCount();\n ArrayList<String> animalesFirebase = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n\n String code = dataSnapshot.child(\"\" + i).child(\"codigo\").getValue(String.class);\n String nombre = dataSnapshot.child(\"\" + i).child(\"nombre\").getValue(String.class);\n String tipo = dataSnapshot.child(\"\" + i).child(\"tipo\").getValue(String.class);\n String raza = dataSnapshot.child(\"\" + i).child(\"raza\").getValue(String.class);\n String animal = code + \" | \" + nombre + \" | \" + tipo + \" | \" + raza;\n\n animalesFirebase.add(animal);\n }\n\n adaptar(animalesFirebase);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}", "ArrayList<Float> znajdzOstatecznaCeneCenaNaNajblizszeSloty()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCeneCenaNaNajblizszeSloty -start\");\n\t\t\n\t\t\n\t\t//wez wszystkie ceny \n\t\t//moze byc brane od dowolnego prosumenta wiec 0 tez jest ok\n\t\tArrayList<Point> L1 = listaFunkcjiUzytecznosci.get(0);\n\t\t\n\t\tArrayList<Float> L2 = new ArrayList<Float>();\n\t\t\n\t\tint i=0;\n\t\twhile (i<L1.size())\n\t\t{\n\t\t\tfloat cena = L1.get(i).getPrice();\n\t\t\tL2.add(cena);\n\t\t\t//print(cena);\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//print (Arrays.toString(L2.toArray()));\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCeneCenaNaNajblizszeSloty -end\");\n\t\t\n\t\treturn L2;\n\t}", "public ArrayList<Float> leerMapaDesdeBaseDeDatos() {\n listaNumeros.add(2.0f);\r\n listaNumeros.add(3.0f);\r\n listaNumeros.add(4.0f);\r\n listaNumeros.add(5.0f);\r\n listaNumeros.add(1.0f);\r\n return listaNumeros;\r\n }", "public abstract ArrayList<AprilTagDetection> getDetections();", "public void initTempsPassage() {\r\n\t\tlong dureeTotale = heureDepart.getTime();\r\n\t\ttempsPassage = new Date[getItineraire().size()][2];\r\n\r\n\t\tfor (int i = 0; i < getItineraire().size(); i++) {\r\n\t\t\tfor (int j = 0; j < getItineraire().get(i).getTroncons().size(); j++) {\r\n\t\t\t\tdureeTotale += getItineraire().get(i).getTroncons().get(j).getLongueur() * 1000 / VITESSE;// Duree\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// des\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// trajets\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// en\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// seconde\r\n\r\n\t\t\t}\r\n\t\t\tif (i < listeLivraisons.size()) {\r\n\t\t\t\tif (listeLivraisons.get(i).getDebutPlageHoraire() != null\r\n\t\t\t\t\t\t&& listeLivraisons.get(i).getDebutPlageHoraire().getTime() > dureeTotale) {\r\n\t\t\t\t\ttempsPassage[i][0] = new Date(dureeTotale);\r\n\t\t\t\t\ttempsPassage[i][1] = new Date(listeLivraisons.get(i).getDebutPlageHoraire().getTime());\r\n\t\t\t\t\tdureeTotale = listeLivraisons.get(i).getDebutPlageHoraire().getTime();\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempsPassage[i][0] = new Date(dureeTotale);\r\n\t\t\t\t}\r\n\t\t\t\tdureeTotale += listeLivraisons.get(i).getDuree() * 1000; // duree\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// de\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// livraison\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// en\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ms\r\n\t\t\t} else {\r\n\t\t\t\ttempsPassage[i][0] = new Date(dureeTotale);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\theureArrivee = new Date(dureeTotale);\r\n\t}", "private ArrayList<Tarea> getTareas(Date desde, Date hasta) {\n BDConsulter consulter = new BDConsulter(DATABASE_URL, DATABASE_USER, DATABASE_PASS);//genero la clase, que se conecta a la base postgresql\n consulter.connect();//establezco la conexion\n\n //Si no hay ningun integrante seleccionado, selecciono todos\n List<String> integrantesSeleccionados = jListIntegrantes.getSelectedValuesList();\n DefaultListModel<String> model = (DefaultListModel<String>) jListIntegrantes.getModel();\n List<String> integrantes = new ArrayList<String>();\n if (integrantesSeleccionados.size() == 0) {\n for (int i = 0; i < model.getSize(); i++) {\n System.out.println((model.getElementAt(i)));\n integrantes.add(model.getElementAt(i));\n }\n integrantesSeleccionados = integrantes;\n }\n\n ArrayList<Tarea> tareas = new ArrayList<>();\n for (String s : integrantesSeleccionados) {\n tareas.addAll(consulter.getTareas(desde, hasta, (String) jComboBoxProyecto.getSelectedItem(), (String) jComboBoxGrupos.getSelectedItem(), s));//obtengo las tareas creadas entre un rango de fecha dado\n }\n consulter.disconnect();//termino la conexion con la base//termino la conexion con la base\n return tareas;\n }", "ObservableList<EndTime> getEndTimeList();", "public MaxAndMin(){\n this.list=new ListOfData().getData();\n }", "public abstract ArrayList<AprilTagDetection> getFreshDetections();", "private static void caso4(ArrayList<Float> listaValores) {\n \n }", "private void m10260a(List<C2411a> list) {\n for (C2411a c2411a : list) {\n this.f8987o.add(Double.valueOf(c2411a.m12234j()));\n this.f8988p.add(Double.valueOf(c2411a.m12236l()));\n this.f8989q.add(Double.valueOf(c2411a.m12237m()));\n this.f8992t.add(Double.valueOf(c2411a.m12240p()));\n }\n this.f8993u = list.size();\n }", "private void m10266b(List<C2411a> list) {\n int i;\n int i2;\n List arrayList = new ArrayList();\n ArrayList arrayList2 = new ArrayList();\n arrayList.addAll(list);\n this.f8987o.add(Double.valueOf(0.0d));\n arrayList2.add(Double.valueOf(0.0d));\n for (i = 0; i < 5; i++) {\n C2411a c2411a = (C2411a) arrayList.remove(0);\n this.f8987o.add(Double.valueOf(c2411a.m12234j()));\n arrayList2.add(Double.valueOf(c2411a.m12233i() / 1000.0d));\n }\n int size = arrayList.size();\n i = 5;\n while (i > 0) {\n i2 = size - 1;\n c2411a = (C2411a) arrayList.remove(size - i);\n this.f8987o.add(Double.valueOf(c2411a.m12234j()));\n arrayList2.add(Double.valueOf(c2411a.m12233i() / 1000.0d));\n i--;\n size = i2;\n }\n int size2 = arrayList.size();\n int i3 = size2 / 387;\n int i4 = 0;\n int i5 = 6;\n while (i4 < 387) {\n i2 = i4 * i3;\n if (i2 >= size2) {\n double j = ((C2411a) arrayList.get(size2 - 1)).m12234j();\n if (j > this.f8976d.getMaxVelocity()) {\n j = this.f8976d.getMaxVelocity();\n }\n this.f8987o.add(i5, Double.valueOf(j));\n arrayList2.add(i5, Double.valueOf(((C2411a) arrayList.get(size2 - 1)).m12233i() / 1000.0d));\n size = i5 + 1;\n } else {\n c2411a = (C2411a) arrayList.get(i2);\n i = (i4 + 1) * i3;\n if (i >= size2) {\n i = size2 - 1;\n }\n C2411a c2411a2 = (C2411a) arrayList.get(i);\n long h = (c2411a2.m12232h() / 1000) - (c2411a.m12232h() / 1000);\n double d;\n if (h <= 0) {\n double d2 = 0.0d;\n while (i2 < (i4 + 1) * i3) {\n d2 += ((C2411a) arrayList.get(i2)).m12234j();\n i2++;\n }\n d = d2 / ((double) i3);\n if (d > this.f8976d.getMaxVelocity()) {\n d = this.f8976d.getMaxVelocity();\n }\n this.f8987o.add(i5, Double.valueOf(d));\n } else {\n d = ((c2411a2.m12233i() - c2411a.m12233i()) / ((double) h)) * 3.6d;\n if (d > this.f8976d.getMaxVelocity()) {\n d = this.f8976d.getMaxVelocity();\n }\n this.f8987o.add(i5, Double.valueOf(d));\n }\n arrayList2.add(i5, Double.valueOf(c2411a.m12233i() / 1000.0d));\n size = i5 + 1;\n }\n i4++;\n i5 = size;\n }\n this.f8987o.add(Double.valueOf(0.0d));\n arrayList2.add(Double.valueOf(this.f8976d.getTotalDistance()));\n i2 = this.f8987o.size();\n i = 1;\n while (i < i2) {\n if (this.f8978f >= ((Double) arrayList2.get(i - 1)).doubleValue() && this.f8978f < ((Double) arrayList2.get(i)).doubleValue()) {\n this.f8987o.add(i, Double.valueOf(this.f8976d.getMaxVelocity()));\n arrayList2.add(i, Double.valueOf(this.f8978f));\n break;\n }\n i++;\n }\n this.f8993u = this.f8987o.size();\n }", "public List<NoteToken> getElts(){\r\n List<NoteToken> returnList = new ArrayList<NoteToken>();\r\n for (Iterator<Meters> i = MetersList.iterator(); i.hasNext();){\r\n returnList.addAll(i.next().getElts());\r\n }\r\n return returnList;\r\n }", "@Override\n\tpublic List getTime() {\n\t\treturn null;\n\t}", "public List<Double> getTimeList()\n\t{\n\t\treturn this.timeList;\n\t}", "public List<Mobibus> darMobibus();", "@Override\n public void onChanged(List<Fuel> fuels) {\n if (!fuels.isEmpty()){\n\n Log.d(TAG, \"onChanged: fuels.size() = \" + fuels.size());\n\n // fuels.size()-1 displayed last item in the list, so I tested and found that 0 item is the first item\n Fuel mostRecentFuel = fuels.get(0); // most recent item is zero item on the list means first item\n Log.d(TAG, \"onChanged: mostRecentFuel.getFuelID() = \" + mostRecentFuel.getFuelID());\n\n lastODOreading = mostRecentFuel.getCurrentKm();\n tin_startingKm.setText(String.valueOf(lastODOreading));\n\n }\n\n\n }", "private ArrayList[] blxAlpha(ArrayList[] madre, ArrayList[] padre, Random al)\n\t{\n\t\tint numAtributos = madre.length;\n\t\tdouble max = 0;\n\t\tdouble min = 0;\n\t\tdouble I = 0;\n\t\tArrayList[] hijo = new ArrayList[numAtributos];\n\t\t\n\t\t\n\t\tfor (int i = 0; i < numAtributos; i++)\t\t//Para cada atributo\n\t\t{\n\t\t\thijo[i] = new ArrayList();\n\t\t\t\n\t\t\t// El primer y el último valor de cada atributo no cambia\n\t\t\thijo[i].add(madre[i].get(0));\n\t\t\t\n\t\t\tint numParticiones = madre[i].size();\n\t\t\t\n\t\t\tfor (int j = 1; j < numParticiones-1;j++)\n\t\t\t{\n\t\t\t\tif ((Double)(madre[i].get(j)) < (Double)(padre[i].get(j)))\n\t\t\t\t{\t\n\t\t\t\t\tmax = (Double)(padre[i].get(j));\n\t\t\t\t\tmin = (Double)(madre[i].get(j));\n\t\t\t\t}\n\t\t\t\telse\t\t\t\t\t\t\t//Si el gen de la madre es mayor\n\t\t\t\t{\n\t\t\t\t\tmin = (Double)(padre[i].get(j));\n\t\t\t\t\tmax = (Double)(madre[i].get(j));\n\t\t\t\t}\t\t\t\t\t \n\t\t\t\tI = max - min;\t//Obtenemos la diferencia\n\t\t\t\tmin = min - I * 0.15;\t//Calculamos el extremo inferior\n\t\t\t\tmax = max + I * 0.15;\t//Calculamos el extremo superior\n\t\t\t\thijo[i].add(min + al.nextDouble() * (max - min));\t//Calculamos un punto aleatorio dentro del intervalo\n\t\t\t}\n\t\t\t\n\t\t\t// El primer y el último valor de cada atributo no cambia\n\t\t\thijo[i].add(madre[i].get(numParticiones-1));\n\t\t}\n\t\t\n\t\t// Validación del individuo\n\t\t\n\t\t// Ponemos a mínimo los valores menores que el mínimo y al máximo los valores menores que el máximo\n\t\tfor(int i=0;i < numAtributos; i++)\n\t\t{\n\t\t\tint numParticiones = hijo[i].size();\n\t\t\t\n\t\t\tmin = ((Double)(hijo[i].get(0)));\n\t\t\tmax = ((Double)(hijo[i].get(numParticiones-1)));\n\t\t\t\n\t\t\tfor (int j = 1; j < numParticiones-1;j++)\n\t\t\t{\n\t\t\t\tif(((Double)(hijo[i].get(j))) < min)\n\t\t\t\t{\n\t\t\t\t\thijo[i].add(j, min);\n\t\t\t\t}\n\t\t\t\telse if((((Double)(hijo[i].get(j))) > max))\n\t\t\t\t{\n\t\t\t\t\thijo[i].add(j, max);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Ordenamos los valores de menor a mayor\n\t\tfor(int i=0;i < numAtributos; i++)\n\t\t{\n\t\t\tint numParticiones = hijo[i].size();\n\t\t\t\n\t\t\tfor (int j = 1; j < numParticiones-2;j++)\n\t\t\t{\n\t\t\t\tfor(int k = 1; k < numParticiones-2; k++)\n\t\t\t\t{\n\t\t\t\t\tdouble temp = ((Double)(hijo[i].get(k)));\n\t\t\t\t\tdouble compara = ((Double)(hijo[i].get(k+1)));\n\t\t\t\t\t\n\t\t\t\t\tif(temp > compara)\n\t\t\t\t\t{\n\t\t\t\t\t\thijo[i].remove(k);\n\t\t\t\t\t\thijo[i].add(k, compara);\n\t\t\t\t\t\thijo[i].remove(k+1);\n\t\t\t\t\t\thijo[i].add(k+1, temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn hijo;\t\n\t}", "List<EffectPointModel> mo70331d();", "public List<String> nomeAnimais(){\n\t\tfor (Animal a: this.animais) {\n\t\t\tthis.nomes.add(a.getNomeNumero());\n\t\t}\n\t\treturn this.nomes;\n\t}", "public ArrayList<String> StringArrayListTimeCheck() {\n String temp = null;\n ArrayList<String> newStringList = new ArrayList();\n Calendar cal = Calendar.getInstance();\n for (int i = 0; i < 11; i++) {\n cal.add(Calendar.HOUR, 2);\n SimpleDateFormat sdf = new SimpleDateFormat(\"ha\");\n temp = sdf.format(cal.getTime()).toLowerCase();\n newStringList.add(temp);\n\n }\n return newStringList;\n\n }", "public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }", "public void agregarVolumenes(String[] volumenes) {\n for (String volumen : volumenes) {\n if(Double.parseDouble(volumen) < 1){\n desplegableVolumen.addItem(Double.toString(Double.parseDouble(volumen)*1000) + \"ml\");\n }else{\n desplegableVolumen.addItem(volumen + \"L\");\n }\n \n }\n }", "public Listado() {\n initComponents();\n\n for (int i=0;i<tbl_listado.getRowCount();i++)\n {\n Float precio = (Float)tbl_listado.getModel().getValueAt(i, 1);\n double iva = precio*0.12;\n tbl_listado.getModel().setValueAt(iva,i,4);\n }\n }", "private void adjustMessierData()\n\t{\n\t\tfor(int i = 0; i < messierList.size(); i++)\n\t\t{\n\t\t\tMessier aMessier = messierList.get(i);\n\t\t\tdouble rightAsc = aMessier.getRADecimalHour();\n\t\t\tdouble hourAngle = theCalculator.findHourAngle(rightAsc, userLocalTime);\n\t\t\taMessier.setHourAngle(hourAngle);\n\t\t\tmessierList.set(i, aMessier);\n\t\t}\n\t}", "public ArrayList<ArrayList<Dog>> getVetSchedule() {\n\t\t\tint initialCapacity = 10;\r\n\t\t\tArrayList<ArrayList<Dog>> list = new ArrayList<ArrayList<Dog>>(initialCapacity); //list to put in lists of dogs\r\n\t\t\t//intialize ArrayList with size ArrayList\r\n\t\t\tlist.add(new ArrayList<Dog>());\r\n\t\t\t/*for(int i=0; i<=10; i++){\r\n\t\t\t\tlist.add(new ArrayList<Dog>());\r\n\t\t\t}\r\n\t\t\t*/\r\n\t\t\tDogShelterIterator iterator = new DogShelterIterator();\r\n\t\t\twhile(iterator.hasNext()){\r\n\t\t\t\tDog nextDog = iterator.next();\r\n\t\t\t\tint index = nextDog.getDaysToNextVetAppointment()/7;\r\n\t\t\t\tif(index < list.size())list.get(index).add(nextDog);\r\n\t\t\t\telse{\r\n\t\t\t\t\t//index out of range --> create larger list\r\n\t\t\t\t\tArrayList<ArrayList<Dog>> newList = new ArrayList<ArrayList<Dog>>(index+1);\r\n\t\t\t\t\tnewList.addAll(list); //add all lists from the old list\r\n\t\t\t\t\tfor(int i=0; i<(index+1)-list.size(); i++){ //initialize the other half with new ArrayLists\r\n\t\t\t\t\t\tnewList.add(new ArrayList<Dog>());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlist = newList; //update list to the larger newList\r\n\t\t\t\t\tlist.get(index).add(nextDog);\r\n\t\t\t\t}\r\n\t\t\t}\r\n return list;\r\n\t\t}", "private ArrayList<Mascota> deserializarTimelineJson(JsonArray arregloJson){\n\n ArrayList<Mascota> recentMedia = new ArrayList<>();\n\n //Para cada elemento del Json\n for (int i = 0; i < arregloJson.size() ; i++) {\n JsonObject recentMediaDataObject = arregloJson.get(i).getAsJsonObject();\n\n //Obteniendo los Datos de la Imagen Reciente\n String id = recentMediaDataObject.get(JsonKeys.ID).getAsString();\n JsonObject imageJson = recentMediaDataObject.getAsJsonObject(JsonKeys.MEDIA_IMAGES);\n JsonObject imagenStdJson = imageJson.getAsJsonObject(JsonKeys.MEDIA_STANDARD_RESOLUTION);\n String urlFoto = imagenStdJson.get(JsonKeys.MEDIA_URL).getAsString();\n\n //Obteniendo los Likes\n JsonObject likesJson = recentMediaDataObject.getAsJsonObject(JsonKeys.MEDIA_LIKES);\n int likes = likesJson.get(JsonKeys.MEDIA_LIKES_COUNT).getAsInt();\n\n //Obteniendo el Usuario\n JsonObject userJson = recentMediaDataObject.getAsJsonObject(JsonKeys.USER);\n String usuario = userJson.get(JsonKeys.USER_NAME).getAsString();\n String urlFotoPerfil = userJson.get(JsonKeys.SEARCH_PROFILEPICTURE).getAsString();\n\n //Llenando Datos\n Mascota recentMediaActual = new Mascota();\n recentMediaActual.setId(id);\n recentMediaActual.setNombre(usuario);\n recentMediaActual.setUrlFoto(urlFoto);\n recentMediaActual.setLikes(likes);\n recentMediaActual.setUrlFotoPerfil(urlFotoPerfil);\n\n recentMedia.add(recentMediaActual);\n\n }\n return recentMedia;\n }", "private void initDate(){\n\n owa = findViewById(R.id.OWA);\n sda = findViewById(R.id.SWA);\n fida = findViewById(R.id.FIDA);\n fda = findViewById(R.id.FDA);\n trda = findViewById(R.id.TRDA);\n tda = findViewById(R.id.TDA);\n hier = findViewById(R.id.HIER);\n\n dateList.add(hier);\n dateList.add(tda);\n dateList.add(trda);\n dateList.add(fda);\n dateList.add(fida);\n dateList.add(sda);\n dateList.add(owa);\n\n }", "private void getLactanciasMaternas() {\n mLactanciasMaternas = estudioAdapter.getListaLactanciaMaternasSinEnviar();\n //ca.close();\n }", "public void createListData()\n {\n List<SinhVien> listSinhvien=new ArrayList<>();\n for(int i=0;i<10;i++){\n SinhVien sv=new SinhVien(i+\"\",\"123\",\"0123\",i+1.0f);\n listSinhvien.add(sv);\n }\n PresenterImplDangXuat.onLoadSucess(listSinhvien);\n }", "public long reserva_de_entradas(int identificador_evento, Date fechaevento, Horario[] listahorarios ) throws ParseException {\n fgen.info (\"Identificador del evento\" + identificador_evento);\n fgen.info (\"Fecha del evento\" + fechaevento);\n ArrayList<Horario> horariosReserva = new ArrayList<Horario>();\n for (int i = 0; i < listahorarios.length; i++) {\n \n Horario horario = listahorarios[i];\n fgen.info (\"Horario : \" + horario.getHorario().toString()); \n horariosReserva.add(horario);\n List<Disponibilidad> listadisponibles = listahorarios[i].disponibilidades;\n for (int j = 0; j < listadisponibles.size() ; j++) { \n fgen.info (\" Disponibilidad - Cantidad: \" + listadisponibles.get(j).getCantidad());\n fgen.info (\" Disponibilidad - Precio: \" + listadisponibles.get(j).getPrecio());\n fgen.info (\" Disponibilidad - Sector: \" + listadisponibles.get(j).getSector());\n } \n \n \n } \n //Inicializo o tomo lo que esta en memoria de la lista de reservas\n ListaReservas reservas= new ListaReservas(); \n // busco el evento y que la lista de horarios sea en la que quiero reservar\n ListaEventos eventos = new ListaEventos();\n Calendar c = Calendar.getInstance();\n c.setTime(fechaevento);\n Evento e = eventos.buscarEvento(identificador_evento, c);\n List<Horario> horariosRetornar = new ArrayList<Horario>();\n if(e != null)\n {\n horariosRetornar = e.getHorarios();\n } \n \n if (horariosRetornar != null)\n {\n for (int i = 0; i < horariosRetornar.size(); i++) {\n for (int j = 0; j < listahorarios.length; j++) {\n Date fechaE = horariosRetornar.get(i).getHorario().getTime(); \n Date fechaEventoDate = listahorarios[j].hora.getTime(); \n if(fechaE.equals(fechaEventoDate)) \n { for (int k = 0; k < horariosRetornar.get(i).disponibilidades.size(); k++) {\n for (int l = 0; l < listahorarios[j].disponibilidades.size(); l++) {\n Disponibilidad d= horariosRetornar.get(i).disponibilidades.get(k);\n Disponibilidad r= listahorarios[j].disponibilidades.get(l);\n if (d.cantidad >= r.cantidad && d.sector.equalsIgnoreCase(r.sector) && d.precio==r.precio)\n {\n d.setCantidad(d.cantidad-r.cantidad);\n //Reserva reserv= new Reserva();\n //reservas.contador_Id= reservas.contador_Id +1;\n //reserv.idReserva= reservas.contador_Id;\n //reserv.Estado=1;\n //reserv.idEvento = identificador_evento;\n //reserv.horarios.add(listahorarios[j]);\n //reservas.listaReserva.add(reserv);\n //return reserv.idReserva;\n }\n else if(d.cantidad < r.cantidad && d.sector.equalsIgnoreCase(r.sector) && d.precio==r.precio)\n {\n //Si hay alguna solicitud de de reserva que no se pueda cumplir. Re reorna 0.\n //TODO: Hay que volver para atras las cantidades modificadas.\n return 0;\n }\n \n }\n \n }\n }\n }\n }\n Reserva reserv= new Reserva();\n reservas.contador_Id= reservas.contador_Id +1;\n reserv.idReserva= reservas.contador_Id;\n reserv.Estado=1;\n reserv.idEvento = identificador_evento;\n reserv.horarios = horariosReserva;\n reserv.fechaEvento = c;\n reservas.listaReserva.add(reserv);\n return reserv.idReserva;\n }\n \n return 0;\n }", "public ArrayList getUnits();", "public void setTimerListData() {\n for (int i = 0; i < 10; i++) {\n TimerDisplay timer = new TimerDisplay();\n timer.setCurrentDate(\"Jan 0\" + i + \" 2017 00:00\");\n timer.setEndDate(\"Jan 0\" + (i+1) + \" 2017 00:00\");\n timer.setPercentage();\n\n listTimers.add(timer);\n }\n }", "private Object[] importTempChartAussen() {\n ArrayList<String> xValues = new ArrayList<>();\n //values: beinhaltet die x und y Werte als Entry\n ArrayList<Entry> values = new ArrayList<>();\n\n SimpleDateFormat parser = new SimpleDateFormat(\"yyyy-MM-dd' '00:00:00\",\n Locale.GERMANY);\n Date d = new Date();\n d.setTime(d.getTime() - 604800000); //604800000ms=7d\n GregorianCalendar datenow = new GregorianCalendar();\n\n //ermittle die maximal Werte der letzten 7 Tage\n String query = \"SELECT datetime, Max(value) AS value FROM temperature where sensorid=1 AND datetime> '\"\n + parser.format(d)\n + \"' GROUP BY SUBSTR(datetime,0,11) ORDER BY datetime\";\n Cursor cr1 = db.getRawQuery(query);\n\n Date date = null;\n String day_of_week;\n SimpleDateFormat sdfDayMonth = new SimpleDateFormat(\"dd.MM\", Locale.GERMANY);\n SimpleDateFormat sdfYearMonthDateHourMinuteSecond = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.GERMANY);\n for (int i = 0; i < cr1.getCount(); i++) {\n //lese jeden Temperaturwert als Date ein und konvertiers dann zu einem GregorianCalendar\n\n try {\n date = sdfYearMonthDateHourMinuteSecond.parse(cr1.getString(cr1.getColumnIndex(\"datetime\")));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n GregorianCalendar g = new GregorianCalendar();\n g.setTime(date);\n\n if (datenow.get(GregorianCalendar.YEAR) == g\n .get(GregorianCalendar.YEAR)\n && datenow.get(GregorianCalendar.DAY_OF_YEAR) == g\n .get(GregorianCalendar.DAY_OF_YEAR)) {\n day_of_week = \"Heute \"; // unsichtbare Zeichen dahinter\n // damits ins Layout passt\n } else if (datenow.get(GregorianCalendar.YEAR) == g\n .get(GregorianCalendar.YEAR) && (datenow.get(GregorianCalendar.DAY_OF_YEAR)) == g\n .get(GregorianCalendar.DAY_OF_YEAR) + 1) {\n\n day_of_week = \"Gestern\";\n\n } else if (datenow.get(GregorianCalendar.YEAR) >= g\n .get(GregorianCalendar.YEAR)\n && datenow.get(GregorianCalendar.DAY_OF_YEAR) - 8 >= g\n .get(GregorianCalendar.DAY_OF_YEAR)) {\n\n day_of_week = sdfDayMonth.format(g.getTime());\n\n } else {\n day_of_week = g.getDisplayName(GregorianCalendar.DAY_OF_WEEK,\n GregorianCalendar.SHORT, Locale.GERMANY);\n }\n xValues.add(day_of_week);\n values.add(new Entry(i, cr1.getFloat(cr1.getColumnIndex(\"value\"))));\n cr1.moveToNext();\n }\n cr1.close();\n\n\n //erstellt ein LineDataSet mit den Objekten und entsprechenden Anpassungen\n LineDataSet set1 = new LineDataSet(values, \"Aussen\");\n // set1.setDrawCubic(true);\n set1.setCubicIntensity(0.2f);\n set1.setDrawCircles(false);\n set1.setLineWidth(2f);\n set1.setHighLightColor(Color.rgb(244, 117, 117));\n // set1.setColor(Color.rgb(104, 241, 175));\n set1.setColor(activity.getSharedPreferences(\"myprefs\", 0).getInt(\n \"trendcurveColorAussen\", Color.WHITE));\n set1.setFillColor(ColorTemplate.getHoloBlue());\n set1.setMode(LineDataSet.Mode.CUBIC_BEZIER);\n\n Object[] result = new Object[2];\n result[0] = set1;\n result[1] = xValues;\n return result;\n }", "public int compterAnimaux(){\r\n\t\treturn noms.size();\r\n\t}", "private void m10274d(List<C2411a> list) {\n int i;\n StringBuilder stringBuilder = new StringBuilder();\n int size = list.size();\n C2411a c2411a;\n double f;\n if (size <= 200) {\n for (C2411a c2411a2 : list) {\n double e = c2411a2.m12229e();\n f = c2411a2.m12230f();\n if (e <= 90.0d && e >= -90.0d && f <= 180.0d && f >= -180.0d) {\n this.f8990r.add(Double.valueOf(c2411a2.m12231g()));\n stringBuilder.append(e).append(\",\").append(f).append('|');\n }\n }\n } else {\n int i2 = size / 200;\n for (int i3 = 0; i3 < 200; i3++) {\n i = i3 * i2;\n double f2;\n if (i >= size) {\n c2411a2 = (C2411a) list.get(size - 1);\n f = c2411a2.m12229e();\n f2 = c2411a2.m12230f();\n if (f <= 90.0d && f >= -90.0d && f2 <= 180.0d && f2 >= -180.0d) {\n this.f8990r.add(Double.valueOf(c2411a2.m12231g()));\n stringBuilder.append(f).append(\",\").append(f2).append('|');\n }\n } else {\n c2411a2 = (C2411a) list.get(i);\n f = c2411a2.m12229e();\n f2 = c2411a2.m12230f();\n if (f <= 90.0d && f >= -90.0d && f2 <= 180.0d && f2 >= -180.0d) {\n this.f8990r.add(Double.valueOf(c2411a2.m12231g()));\n stringBuilder.append(f).append(\",\").append(f2).append('|');\n }\n }\n }\n }\n if (stringBuilder.length() <= 0) {\n ArrayList arrayList = new ArrayList();\n for (i = 0; i < this.f8993u; i++) {\n arrayList.add(Double.valueOf(0.0d));\n }\n this.f8973a.mo3315b(arrayList);\n return;\n }\n m10265b(stringBuilder.substring(0, stringBuilder.length() - 1));\n }", "public Jahresrangliste() {\r\n\t\tLaeufe = new ArrayList<Lauf>();\r\n\t\tRennfahrer = new ArrayList<Fahrer>();\r\n\t}", "public ArrayList<PeriodoAcademicos> listarQuimestres() {\n try {\n Conexion conexion = new Conexion();\n ResultSet rs = conexion.Consulta(\"SELECT * FROM siacc_periodoacademico WHERE estado_paca LIKE 'A' AND codigopadre_paca IS NULL\");\n\n ArrayList listar = new ArrayList();\n while (rs.next()) {\n listar.add(Crear(rs));\n }\n return listar;\n } catch (Exception ex) {\n throw new RuntimeException(\"Error al Obtener Quimestres en ArrayList\");\n }\n }", "public Object[] getList() {\n\t\treturn new Object[]{pitch, duration, velocity};\n\t}", "public void addListDataToDB() {\n\n for (int i = 1; i < 10; i++) {\n TimerDisplay timer = new TimerDisplay();\n timer.setCurrentDate(\"Jan 0\" + i + \" 2017 00:00\");\n timer.setEndDate(\"Jan 0\" + (i + 2) + \" 2017 00:00\");\n timer.setPercentage();\n\n databaseHelper.addDate(timer);\n //listTimers.add(timer);\n }\n }", "ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}", "public String[] listadoJugadoresEnMesa() {\n\n\t\tString[] listado = new String[this.jugadoresEnMesa.size()];\n\n\t\tfor (int i = 0; i < this.jugadoresEnMesa.size(); i++)\n\t\t\tlistado[i] = String.format(\"%d - %s\", (i + 1), this.jugadoresEnMesa.get(i).info());\n\n\t\treturn listado;\n\t}", "public double[] momentosDeZernike(){\r\n\t\tdouble[] retorno = new double[9];\r\n\t\tdouble xDistancia = 0;\r\n\t\tdouble yDistancia = 0;\r\n\t\tdouble raio = 0;\r\n\t\tdouble angulo = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < imagem.length; i++) {\r\n\t\t\t\r\n\t\t\txDistancia = i - this.xMassa;\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < imagem[i].length; j++) {\r\n\t\t\t\t\r\n\t\t\t\t yDistancia = j - this.yMassa;\r\n\t\t\t\t \r\n\t\t\t\t raio = Math.sqrt(xDistancia*xDistancia + yDistancia*yDistancia);\r\n\t\t\t\t \r\n\t\t\t\t angulo = Math.atan(yDistancia/xDistancia);\r\n\t\t\t\t \r\n\t\t\t\t for(int l=0; l<retorno.length; l++){\r\n\t\t\t\t\t retorno[l] += imagem[i][j] * (this.calcularV(raio, angulo, l));\r\n\t\t\t\t }\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < retorno.length; i++) {\r\n\t\t\tif(i == 0 ){\r\n\t\t\t\t\r\n\t\t\t\tretorno[i] *= 1/Math.PI;\r\n\t\t\t\t\r\n\t\t\t}else if(i == 1){\r\n\t\t\t\t\r\n\t\t\t\tretorno[i] *= (1+1)/Math.PI;\r\n\t\t\t\t\r\n\t\t\t}else if(i == 2 || i == 3){\r\n\t\t\t\t\r\n\t\t\t\tretorno[i] *= (2+1)/Math.PI;\r\n\t\t\t\t\r\n\t\t\t}else if(i == 4 || i == 5){\r\n\t\t\t\t\r\n\t\t\t\tretorno[i] *= (3+1)/Math.PI;\r\n\t\t\t\t\r\n\t\t\t}else if (i == 6 || i == 7 || i == 8){\r\n\t\t\t\t\r\n\t\t\t\tretorno[i] *= (4+1)/Math.PI; \r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn retorno;\r\n\t}", "public void druckeMagazin()\n {\n for (T posten : magazin) \n {\n System.out.println (posten);\n }\n }", "public List<TilePojo> getCharactesListByDate() {\n\t\tLOGGER.info(\"getCharactesListByDate -> Start\");\n\t\tcharactesListByDate = new LinkedList<>();\n\t\tList<TilePojo> charList = tileGalleryAndLandingService.getTilesByDate(homePagePath, galleryFor, null,\n\t\t\t\tresource.getResourceResolver(), true);\n\t\tcharactesListByDate = getFixedNumberChar(charList, 12);\n\t\tLOGGER.info(\"getCharactesListByDate -> End\");\n\t\treturn charactesListByDate;\n\t}", "public List<Double> getArrivalTime() {\n return new ArrayList<Double>(arrivalTime);\n }", "public formAnalisis() {\n initComponents();\n// List<Double> testData = IntStream.range(1, 100)\n// .mapToDouble(d -> d)\n// .collect(ArrayList::new, ArrayList::add, ArrayList::addAll);\n// deskriptif stat = new deskriptif();\n// stat.setNameDesc(\"foo\");\n// list1.add(stat);\n// testData.forEach((v) -> stat.addValue(v)); \n }", "private void creatBirth(){\n\n for (int i = 0; i < repeatLunar.size() - 1; i++) {\n mLunar = repeatLunar.get(i);\n mLunarDay = mLunar.getLunarDay();\n mLunarMonth = mLunar.getLunarMonth();\n mLunarYear = mLunar.getLunarYear();\n mRepeat = mLunar.getRepeat();\n\n createEvent(getDate(mLunarYear, mLunarMonth, mLunarDay));\n\n\n }\n\n\n\n }", "List<Matricula> listarMatriculas();", "public static void getMejorbeneficios(ArrayList<BeneficiosCovid19> lista1, ArrayList<BeneficiosCovid19> lista2){\n\n // obetjo de la clase BeneficiosCovid19 para almacenar los datos mayores\n BeneficiosCovid19 beneficiosMayores = new BeneficiosCovid19();\n\n //Variable para implementar el Wrapper del objeto tipo Float\n float valor = 0;\n\n //Almacenamos valor = 0\n beneficiosMayores.setValorSubsidio(valor);\n\n // Ciclo para obtener el subsidio mayor\n for (int i = 0;i< lista1.size();i++) {\n BeneficiosCovid19 auxiliarCovid = lista1.get(i);\n\n if (auxiliarCovid.getValorSubsidio() > beneficiosMayores.getValorSubsidio()){\n beneficiosMayores = auxiliarCovid;\n }\n }\n\n // Ciclo para obtener el ID mayor\n for (int i = 0;i< lista2.size();i++) {\n BeneficiosCovid19 auxiliarCovid2 = lista2.get(i);\n if (auxiliarCovid2.getValorSubsidio() > beneficiosMayores.getValorSubsidio()){\n beneficiosMayores = auxiliarCovid2;\n }\n }\n\n // Mostra resultado de las busquedas\n System.out.println(\"El id del subsidio mayor es: \" + beneficiosMayores.getId());\n System.out.println(\"El nombre subsidio mayor es: \" + beneficiosMayores.getNombre());\n System.out.println(\"El valor subsidio mayor es: \" + beneficiosMayores.getValorSubsidio());\n\n }", "java.util.List<org.landxml.schema.landXML11.SpeedsDocument.Speeds> getSpeedsList();", "@Override\n\tpublic ArrayList<MODEL.Medicamento> getlista() {\n\t\treturn null;\n\t}", "private ArrayList<Meal> getMealsFromDates(ArrayList<String> dateList) {\n ArrayList<Meal> mealArrayList = new ArrayList<>();\n for (int i = 0; i < dateList.size(); i++) {\n if (dataCont.findPlan(dateList.get(i)) != null) {\n mealArrayList.add(dataCont.findPlan(dateList.get(i)).getPlannedMeal());\n }\n }\n return mealArrayList;\n }", "public void mostrarlistafininicio(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=fin;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.anterior;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de fin a inicio\",JOptionPane.INFORMATION_MESSAGE);\n }}", "public ArrayList<String> mostraResultats(){\n ArrayList<String> tauleta = new ArrayList<>();\n for (int j=0; j<res.getClients().size(); j++) {\n for (int k=0; k<res.getClients().get(j).getAssigs().size(); k++) {\n String aux = \"\";\n for (int i = 0; i < res.getClients().get(j).getAssigs().get(k).getAntecedents().getRangs().size(); i++) {\n aux += res.getClients().get(j).getAssigs().get(k).getAntecedents().getRangs().get(i).getNom() + \"\\t\";\n }\n aux += \" -> \" + res.getClients().get(j).getAssigs().get(k).getConsequent().getNom();\n tauleta.add(aux);\n }\n }\n return tauleta;\n }", "private static ArrayList<MP> convertToRatedMPList(ArrayList<RatedMP> pRatedMPs)\n\t{\n\t\tArrayList<MP> result = new ArrayList<MP>(); // will be used to sort the MPs by their rating.\n\t\tfor (RatedMP mp : pRatedMPs)\n\t\t{\n\t\t\tresult.add(mp.getMP());\n\t\t}\n\t\treturn result;\n\t}", "private ArrayList<MeubleModele> initMeubleModeleCatalogue(){\n ArrayList<MeubleModele> catalogue = new ArrayList<>();\n // Création meubles\n MeubleModele Table1 = new MeubleModele(\"Table acier noir\", \"MaCuisine.com\", MeubleModele.Type.Tables,29,110,67);\n MeubleModele Table2 = new MeubleModele(\"Petite table ronde\", \"MaCuisine.com\", MeubleModele.Type.Tables,100,60,60);\n MeubleModele Table3 = new MeubleModele(\"Table 4pers. blanche\", \"MaCuisine.com\", MeubleModele.Type.Tables,499,160,95);\n MeubleModele Table4 = new MeubleModele(\"Table 8pers. noire\", \"MaCuisine.com\", MeubleModele.Type.Tables,599,240,105);\n MeubleModele Table5 = new MeubleModele(\"Table murale blanche\", \"MaCuisine.com\", MeubleModele.Type.Tables,39,74,60);\n MeubleModele Table6 = new MeubleModele(\"Table murale noire\", \"MaCuisine.com\", MeubleModele.Type.Tables,49,90,50);\n MeubleModele Meuble = new MeubleModele(\"Grandes étagères\", \"MaCuisine.com\", MeubleModele.Type.Meubles,99,147,147);\n MeubleModele Chaise = new MeubleModele(\"Chaise blanche cuir\", \"MaCuisine.com\", MeubleModele.Type.Chaises,59,30,30);\n //MeubleModele Machine_A_Laver = new MeubleModele(\"Machine à laver Bosch\", \"Bosch\", MeubleModele.Type.Petits_electromenagers,499,100,100);\n //MeubleModele Plan_de_travail = new MeubleModele(\"Plan de travail avec évier\", \"MaCuisine.com\", MeubleModele.Type.Gros_electromenagers,130,200,60);\n // Images meubles\n //Image i = new Image(getClass().getResourceAsStream(\"../Sprites/table1.png\"));\n //if (i == null) {\n // System.out.println(\"Erreur\");\n //}\n Table1.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table1.png\")));\n Table2.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table2.png\")));\n Table3.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table3.png\")));\n Table4.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table4.png\")));\n Table5.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table5.png\")));\n Table6.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/table6.png\")));\n Meuble.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/meuble.png\")));\n Chaise.setImg(new Image(getClass().getResourceAsStream(\"../Sprites/chaise.png\")));\n // add catalogue\n catalogue.add(Table1);\n catalogue.add(Table2);\n catalogue.add(Table3);\n catalogue.add(Table4);\n catalogue.add(Table5);\n catalogue.add(Table6);\n catalogue.add(Meuble);\n catalogue.add(Chaise);\n //catalogue.add(Machine_A_Laver);\n //catalogue.add(Plan_de_travail);\n return catalogue;\n }", "private void getAltitude_values(ArrayList<NewLocation> arrLocations){\n\n //checks that tha array list is not empty\n if(arrLocations != null){\n // sets the variable needed\n double min,max, sumAltitudes = 0, average;\n //count variable will help to get the average\n int count = 0;\n min = arrLocations.get(0).getAltitude();\n max = arrLocations.get(0).getAltitude();\n\n for (int i = 0; i < arrLocations.size(); i++) {\n if(arrLocations.get(i).getAltitude() < min){\n min = arrLocations.get(i).getAltitude();\n }\n\n if(arrLocations.get(i).getAltitude() > max ){\n max = arrLocations.get(i).getAltitude();\n maxAltValue = max;\n }\n sumAltitudes += arrLocations.get(i).getAltitude();\n count++;\n }\n // sum of all altitudes divided by the count will give us the average of altitudes\n average = sumAltitudes / count;\n avgAltValue = average;\n //set a new format for the results\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.CEILING);\n Log.d(TAG, \"Count_Altitudes: \" + count);\n Log.d(TAG, \"MinAltitude: \" + df.format(min) );\n Log.d(TAG, \"MaxAltitude: \" + df.format(max));\n Log.d(TAG, \"AverageAltitude: \" + df.format(average));\n minAltitudeView.setText(df.format(min) + \" m\");\n maxAltitudeView.setText(df.format(max)+ \" m\");\n avgAltitudeView.setText(df.format(average)+ \" m\");\n\n }else{\n Log.d(TAG, \"array is empty\");\n }\n\n\n }", "public ArrayList<Medication> getAllMeds() {\n String sql = \"select * from Med\";\n Cursor cursor = getReadableDatabase().rawQuery(sql, new String[]{});\n int dbIndex = cursor.getColumnIndex(\"_id\");\n int medNameIndex = cursor.getColumnIndex(\"medname\");\n int medNotesIndex = cursor.getColumnIndex(\"mednotes\");\n int doseIndex = cursor.getColumnIndex(\"dose\");\n int freqIndex = cursor.getColumnIndex(\"freq\");\n int startDateIndex = cursor.getColumnIndex(\"startdate\");\n int endDateIndex = cursor.getColumnIndex(\"enddate\");\n int imageIndex = cursor.getColumnIndex(\"image\");\n int alert1Index = cursor.getColumnIndex(\"alert1\");\n int alert2Index = cursor.getColumnIndex(\"alert2\");\n int alert3Index = cursor.getColumnIndex(\"alert3\");\n int alert4Index = cursor.getColumnIndex(\"alert4\");\n int alert5Index = cursor.getColumnIndex(\"alert5\");\n int alert6Index = cursor.getColumnIndex(\"alert6\");\n int alertsOnIndex = cursor.getColumnIndex(\"alertson\");\n\n ArrayList<Medication> tempArray = new ArrayList();\n for (int i = 0; i < cursor.getCount(); i++) {\n cursor.moveToPosition(i);\n Medication newMed = new Medication(); //(cursor.getString(languageIndex), cursor.getString(allergyIndex), cursor.getInt(dateIndex));\n newMed.setDbID(cursor.getInt(dbIndex));\n newMed.setMedName(cursor.getString(medNameIndex));\n newMed.setMedNotes(cursor.getString(medNotesIndex));\n newMed.setDose(cursor.getString(doseIndex));\n newMed.setFreq(cursor.getInt(freqIndex));\n newMed.setMedStart(cursor.getInt(startDateIndex));\n newMed.setMedEnd(cursor.getInt(endDateIndex));\n newMed.setImageRes(cursor.getString(imageIndex));\n newMed.setAlert1(cursor.getInt(alert1Index));\n newMed.setAlert2(cursor.getInt(alert2Index));\n newMed.setAlert3(cursor.getInt(alert3Index));\n newMed.setAlert4(cursor.getInt(alert4Index));\n newMed.setAlert5(cursor.getInt(alert5Index));\n newMed.setAlert6(cursor.getInt(alert6Index));\n newMed.setAlertsOn(cursor.getInt(alertsOnIndex));\n\n //get hashmaps and set them to the med object\n HashMap[] hashMapArray = getDoseMaps(newMed);\n newMed.setDoseMap1(hashMapArray[0]);\n newMed.setDoseMap2(hashMapArray[1]);\n tempArray.add(newMed);\n }\n cursor.close();\n\n //return the array to be used at runtime\n return tempArray;\n }", "public void fill(ArrayList<LottoDay> list)\n\t{\n\t\tint[] numF = new int [48];//store occurrences for lotto numbers\n\t\tint [] megaF = new int [28]; //store occurrences for mega numbers\n\t\tint[] check = new int [5]; // stores each objects 5 numbers\n\t\tint counter =0; //counts occurrences\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i); //get object\n\t\t\tcheck = one.getWNum(); //gets 5 numbers of the object\n\t\t\tfor(int j=0; j<numF.length;j++)\n\t\t\t{\n\t\t\t\tfor(int k =0; k<check.length;k++)\n\t\t\t\t{\n\t\t\t\t\t//if number equals index\n\t\t\t\t\tif(check[k]==j)\n\t\t\t\t\t{\n\t\t\t\t\t\tcounter++; //add one to count\n\t\t\t\t\t\tnumF[j]=counter+numF[j]; //add one to occurrence\n\t\t\t\t\t\tcounter=0;//reset counter\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i);//get object\n\t\t\tmega= one.getMega();//get mega number\n\t\t\tfor(int j=0; j<megaF.length;j++)\n\t\t\t{\n\t\t\t\t// if mega number equals index\n\t\t\t\tif(mega==j)\n\t\t\t\t{\n\t\t\t\t\tcounter++;//add one to count\n\t\t\t\t\tmegaF[j]=counter+megaF[j]; //add one to occurrence\n\t\t\t\t\tcounter=0;//reset counter\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\t\tfor(int i=0; i<numF.length; i++)\n\t\t{\n\t\t\tnumber.put(i,numF[i]);//put all lotto numbers with occurrences\n\n\t\t}\n\t\tfor(int i=0; i<megaF.length; i++)\n\t\t{\n\t\t\tmegaN.put(i, megaF[i]);//put all mega numbers with occurrences\n\t\t}\n\t}", "private static ArrayList<String> construireMatriceCalcul() throws Exception_AbsenceExperienceBiomass, Exception_ParseException,IOException, Exception_SparqlConnexion {\n\n /*Pour chaque objetc : Object_TIEG de vDocExp construire le vecteur d'entrée au calul*/\n /*Le vecteur résultant sera placé sur : vVecteurCalculGlobal*/\n /*En cas de valeurs manquantes, le vecteur sera null, un message indiquant l'emplacement du manque ser transmis à la servlet*/\n \n Object_RapportCalculVecteur rapport;\n \n ArrayList<String> message= new ArrayList<>();\n \n if(vDocExp.size() > 0)\n {\n \n for(Object_TIEG obj : vDocExp)\n {\n try { \n\n if((rapport=InterrogationDataRDF.getVecteurCalcul(vPathRacine, obj, vTopicOperations, vRelationParametres)).getVecteurCalcul()!=null)\n {\n vVecteurCalculGlobal.add(rapport.getVecteurCalcul());\n }\n else\n {\n if(rapport.getMessage()!=null)\n {\n message.add(rapport.getMessage());\n }\n \n }\n \n } catch (Exception_ParseException ex) {\n \n throw ex;\n }\n }\n }\n else\n {\n throw new Exception_AbsenceExperienceBiomass();\n }\n \n return message;\n \n }", "public List<EntradaDeMaterial> buscarEntradasDisponibles();", "ArrayList<Float> pierwszaPredykcjaWezPredykcjeZListy()\n\t{\n\t\tArrayList<Float> L1 = new ArrayList<Float>();\n\t\t\n\t\tint i=0;\n\t\twhile (i<Stale.horyzontCzasowy && (LokalneCentrum.getTimeIndex()+i)<listaCenWczytanaZPliku.size())\n\t\t{\n\t\t\tL1.add(listaCenWczytanaZPliku.get(LokalneCentrum.getTimeIndex()+i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn L1;\n\t}", "List<C1700ar> mo7233f();", "public List<Poliza> generarPoliza(final Periodo p){\r\n\t\tList<Poliza> polizas=new ArrayList<Poliza>();\r\n\t\tfor(Date dia:p.getListaDeDias()){\r\n\t\t\ttry {\r\n\t\t\t\tPoliza res=generarPoliza(dia);\r\n\t\t\t\tpolizas.add(res);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.error(\"No genero la poliza para el dia: \"+dia+ \" \\nMsg: \"+ExceptionUtils.getRootCauseMessage(e)\r\n\t\t\t\t\t\t,e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn polizas;\r\n\t}", "public static void main (String [] args){\r\n Jefatura jefe_RR=new Jefatura(\"Jeanpool\",55000,2006,9,25);\r\n jefe_RR.estableceIncentivo(2570);\r\n Empleado [] misEmpleados=new Empleado[6];\r\n misEmpleados[0]=new Empleado(\"Paco Gomez\",85000,1990,12,17);\r\n misEmpleados[1]=new Empleado(\"Ana Lopez\",95000,1995,06,02);\r\n misEmpleados[2]=new Empleado(\"Maria Martin\",105000,2002,03,15);\r\n misEmpleados[3]=new Empleado(\"Jeanpool Guerrero\");\r\n misEmpleados[4]=jefe_RR;/**--Polimorfismo: Prinicipio de sustitucion*/\r\n misEmpleados[5]=new Jefatura(\"Maria\",95000,1999,5,26);\r\n Jefatura jefa_Finanzas=(Jefatura)misEmpleados[5];/** CASTING CONVERTIR UN OBJETO A otro */\r\n jefa_Finanzas.estableceIncentivo(55000);\r\n \r\n \r\n \r\n /** for(int i=0;i<3; i++){\r\n misEmpleados[i].subeSueldo(5);\r\n \r\n }\r\n \r\n for(int i=0;i<3;i++){\r\n System.out.println(\"Nombre \"+misEmpleados[i].dimeNombre() + \"Sueldo: \"+misEmpleados[i].dimeSueldo()+ \"Fecha Alta: \"+misEmpleados[i].dameFechaContrato());\r\n }\r\n */\r\n\r\n for(Empleado elementos:misEmpleados){\r\n \r\n elementos.subeSueldo(5);\r\n \r\n }\r\n \r\n for(Empleado elementos:misEmpleados){\r\n System.out.println(\"Nombre: \"+elementos.dimeNombre()+ \" Sueldo: \"+elementos.dimeSueldo()+ \" Alta Contrato: \"+elementos.dameFechaContrato());\r\n }\r\n \r\n }", "private ArrayList<ArrayList<String>> getMonthEvents(ArrayList<Event> yearList)\n throws PacException {\n\n ArrayList<ArrayList<String>> monthList = initializeMonthList();\n for (Event event : yearList) {\n int month = event.getMonth();\n String description = getEventDescription(event);\n switch (month) {\n case 1:\n case 7:\n monthList.get(0).add(description);\n break;\n case 2:\n case 8:\n monthList.get(1).add(description);\n break;\n case 3:\n case 9:\n monthList.get(2).add(description);\n break;\n case 4:\n case 10:\n monthList.get(3).add(description);\n break;\n case 5:\n case 11:\n monthList.get(4).add(description);\n break;\n case 6:\n case 12:\n monthList.get(5).add(description);\n break;\n default:\n throw new PacException(MONTH_NOT_FOUND_ERROR_MESSAGE);\n }\n }\n return monthList;\n }", "public String montar(ArrayList<Estado> e){\n\t\tString data = \"\";\n\t\tIterator<Estado> it = e.iterator();\n\t\twhile(it.hasNext()){\n\t\t\tEstado a = it.next();\n\t\t\tdata += a.getId();\n\t\t}\n\t\treturn data;\n\t}", "private void initList(LocalDate cal) {\n\t\tdays.add(\"Mo\");\n\t\tdays.add(\"Tu\");\n\t\tdays.add(\"We\");\n\t\tdays.add(\"Th\");\n\t\tdays.add(\"Fr\");\n\t\tdays.add(\"Sa\");\n\t\tdays.add(\"Su\");\n\t}", "public List<Tupel<Artist, Integer>> getLastReleaseDateOfEachArtist();", "public ArrayList<Foire> getListFoire(String json) {\n ArrayList<Foire> listEvent = new ArrayList<>();\n try {\n JSONParser j = new JSONParser();\n Map<String, Object> groupes = j.parseJSON(new CharArrayReader(json.toCharArray()));\n List<Map<String, Object>> list = (List<Map<String, Object>>) groupes.get(\"root\");\n\n for (Map<String, Object> obj : list) {\n Foire e = new Foire();\n e.setIdFoire((int) Float.parseFloat(obj.get(\"idFoire\").toString()));\n e.setTitreFoire(obj.get(\"titreFoire\").toString());\n e.setDescriptionFoire(obj.get(\"descriptionFoire\").toString());\n e.setPrixFoire((int) Float.parseFloat(obj.get(\"prixFoire\").toString()));\n e.setImageFoire(obj.get(\"image\").toString());\n Map<String, Object> listDate = (Map<String, Object>) obj.get(\"dateEvent\");\n SimpleDateFormat sourceFormat = new SimpleDateFormat(\"d/m/Y\");\n \n //Date d = new Date((long) (double) listDate.get(\"timestamp\") * 1000);\n //e.setDateDeCreation(d);\n \n Map<String, Object> listCat = (Map<String, Object>) obj.get(\"idStand\");\n Stand cat = new Stand();\n cat.setIdStand((int) Float.parseFloat(listCat.get(\"idStand\") + \"\"));\n cat.setTitreStand(listCat.get(\"titreStand\") + \"\");\n e.setIdStand(cat);\n listEvent.add(e);\n }\n\n } catch (IOException ex) {\n }\n return listEvent;\n }", "public static List<String> getListOfMonthsShort(){\r\n\t\t\r\n\t\tList<String> months = new ArrayList<String>();\r\n\t\tmonths.add(\"Jan\"); months.add(\"Feb\"); months.add(\"Mar\"); months.add(\"Apr\");\r\n\t\tmonths.add(\"May\"); months.add(\"Jun\"); months.add(\"Jul\"); months.add(\"Aug\");\r\n\t\tmonths.add(\"Sep\"); months.add(\"Oct\"); months.add(\"Nov\"); months.add(\"Dec\");\r\n\t\treturn months;\r\n\t\t\r\n\t}", "public List<Vendedor> listarVendedor();", "public ArrayList<Richiesta> riempi2(){\n ArrayList<Richiesta> array = new ArrayList<>();\n Richiesta elemento = new Richiesta();\n elemento.setIdRichiesta(1);\n elemento.setStato(\"C\");\n elemento.setTipo(\"Prescrizione\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"Brufen\");\n elemento.setQuantita_farmaco(2);\n elemento.setCf_paziente(\"NLSFLP94T45L378G\");\n array.add(elemento);\n\n elemento.setIdRichiesta(2);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita specialistica\");\n elemento.setNote_richiesta(\"Specialistica dermatologica presso dottoressa A.TASIN \");\n elemento.setData_richiesta(\"2016/05/06 alle 15:30 \");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n elemento.setIdRichiesta(3);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita di controllo\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"dermatologica\");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n return array;\n }", "public Curriculum(ArrayList<Fase> fasen, int aantalFasen) {\r\n for (int i = 0; i < aantalFasen; i++) {\r\n this.allefasen.add(fasen.get(i));//voegt alle fasen toe aan het curriculum\r\n }\r\n\r\n }", "public List<String> mo15798ho() {\n return new ArrayList(this.f3885Kh);\n }", "private ArrayList<Alimento> initLista() {\n try {\n File file = new File(\"C:\\\\Users\\\\Gabri\\\\OneDrive\\\\Ambiente de Trabalho\\\\Calorie\\\\src\\\\Assets\\\\alimentos.txt\");\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n\n ArrayList<Alimento> lista = new ArrayList<>();\n\n int noLines = Integer.parseInt(br.readLine());\n for(int l=0; l<noLines; l++) {\n String[] alimTks = (br.readLine()).split(\",\");\n\n Alimento alimento = new Alimento(idAlimCounter++,alimTks[0],100,Integer.parseInt(alimTks[1]),Float.parseFloat(alimTks[2]),Float.parseFloat(alimTks[3]),Float.parseFloat(alimTks[4]));\n lista.add(alimento);\n }\n\n return lista;\n }catch (Exception e) {\n System.out.println(\"Sistema - getLista() : \"+e.toString());\n }\n return null;\n }", "public List<HistoriaLaboral> getAccionesMigradas(Emp emp);", "public ArrayList<MensurationRow> toRow() {\n\t\tArrayList<MensurationRow> arr = new ArrayList<MensurationRow>();\n\t\t\n\t\tarr.add(new MensurationRow(\"Tour de hanches\", String.valueOf(tourHanches)));\n\t\tarr.add(new MensurationRow(\"Tour de bassin\", String.valueOf(tourBassin)));\n\t\tarr.add(new MensurationRow(\"Tour de cuisse\", String.valueOf(tourCuisse)));\n\t\tarr.add(new MensurationRow(\"Tour de genou\", String.valueOf(tourGenou)));\n\t\tarr.add(new MensurationRow(\"Tour de mollet\", String.valueOf(tourMollet)));\n\t\tarr.add(new MensurationRow(\"Tour de cheville\", String.valueOf(tourCheville)));\n\t\tarr.add(new MensurationRow(\"Montant dos\", String.valueOf(montantDos)));\n\t\tarr.add(new MensurationRow(\"Longueur enfourchure\", String.valueOf(longueurEnfourchure)));\n\t\tarr.add(new MensurationRow(\"Hauteur taille-sol\", String.valueOf(hauteurTailleSol)));\n\t\tarr.add(new MensurationRow(\"Hauteur taille-genou\", String.valueOf(hauteurTailleGenou)));\n\t\tarr.add(new MensurationRow(\"Hauteur genou-cheville\", String.valueOf(hauteurGenouCheville)));\n\t\tarr.add(new MensurationRow(\"Hauteur entrejambe-cheville\", String.valueOf(hauteurEntrejambeCheville)));\n\t\tarr.add(new MensurationRow(\"Hauteur cheville-sol\", String.valueOf(hauteurChevilleSol)));\n\t\t\n\t\treturn arr;\n\t}", "public void setListData() {\n \n for (int i = 0; i < 11; i++) {\n \n final NotificationLogMessage alert = new NotificationLogMessage();\n \n /******* Firstly take data in model object ******/\n alert.setMessageTitle(\"Message Title \"+i);\n alert.setDateAndTime(i+\":00am \"+i+\"/\"+i+\"/\"+\"2014\");\n alert.setMessageBody(\"There are now \" + i + \" messages\");\n \n /******** Take Model Object in ArrayList **********/\n testArr.add( alert );\n }\n \n }", "private void displayEstimationTimeAndMileage(List<LatLng> listPoints){\n\n double mileage = UtilsGoogleMaps.getMileageRoute(listPoints);\n\n if(mileage>0){\n String mileageText = UtilsGoogleMaps.getMileageEstimated(listPoints);\n String timeText = UtilsGoogleMaps.getTimeRoute(mileage);\n\n mileageView.setText(mileageText);\n timeView.setText(timeText);\n }\n }", "public ArrayList<String> getMonths() \r\n\t{\r\n\t\tString[] monthsArray = {\"January\", \"Febuary\", \"March\", \"April\", \"May\", \"June\",\r\n\t\t\t\t\t\t \"July\", \"August\", \"September\", \"October\", \"November\", \"Decmber\"};\r\n\t\tArrayList <String>monthList = new ArrayList<String>(Arrays.asList(monthsArray));\r\n\t\treturn monthList;\r\n\t}", "public static List<String> getListOfMonthsLong(){\r\n\t\t\r\n\t\tList<String> months = new ArrayList<String>();\r\n\t\tmonths.add(\"January\"); months.add(\"February\"); months.add(\"March\"); months.add(\"April\");\r\n\t\tmonths.add(\"May\"); months.add(\"June\"); months.add(\"July\"); months.add(\"August\");\r\n\t\tmonths.add(\"September\"); months.add(\"October\"); months.add(\"November\"); months.add(\"December\");\r\n\t\treturn months;\r\n\t\t\r\n\t}", "private static void sortingArrayList() {\n Collections.sort(allMapData, new Comparator<MapDataModel>() {\n public int compare(MapDataModel d1, MapDataModel d2) {\n return valueOf(d1.getDateTime().compareTo(d2.getDateTime()));\n }\n });\n }", "@Override\n\tpublic ArrayList<CauThu> getDSCauThu(String maDoi) {\n\t\treturn null;\n\t}" ]
[ "0.6205569", "0.60947317", "0.5751302", "0.5675074", "0.5621543", "0.5584284", "0.55820704", "0.55438864", "0.5529454", "0.5446814", "0.5443929", "0.5434979", "0.5421143", "0.54015577", "0.53915817", "0.5387877", "0.5382496", "0.53782177", "0.5373024", "0.5368247", "0.53657794", "0.53559184", "0.5347549", "0.5312053", "0.5306162", "0.5289484", "0.5276683", "0.52670854", "0.5265957", "0.52589846", "0.5257595", "0.52528167", "0.523674", "0.5232979", "0.5232178", "0.5226506", "0.522442", "0.52214944", "0.5204368", "0.5192241", "0.51732004", "0.51622957", "0.5157645", "0.5132928", "0.5127348", "0.5127326", "0.512409", "0.5123274", "0.5116704", "0.511385", "0.51127696", "0.5112754", "0.51046765", "0.5102648", "0.5099677", "0.5098758", "0.50839275", "0.50722605", "0.5070112", "0.5067751", "0.506323", "0.50623083", "0.50552654", "0.5054847", "0.5043622", "0.5041318", "0.5041152", "0.5040474", "0.50399274", "0.5031214", "0.5027293", "0.5016598", "0.5013638", "0.50116885", "0.5005753", "0.50039136", "0.5003253", "0.5002211", "0.5001299", "0.4999482", "0.4995737", "0.49947548", "0.49912536", "0.4990468", "0.49896756", "0.4986618", "0.49857205", "0.49833703", "0.4979766", "0.49747112", "0.49694845", "0.49676138", "0.4964168", "0.4956377", "0.4954511", "0.49454057", "0.49421236", "0.49412274", "0.49410155", "0.49333465", "0.49311292" ]
0.0
-1
Neerzetten van de momentele componenten in infrastructuur overzicht
public void paintComponent(Graphics g) { super.paintComponent(g); int xDatabase = 50; int xWebserver = 400; int xFirewall = 250; int yDatabase = 50; int yWebserver = 50; int dCount = 0; int wCount = 0; for (Componenten s : database) { try { Image image = ImageIO.read(new File("Images/Database.png")).getScaledInstance(50, 50, Image.SCALE_SMOOTH); // DBserver-image if (s.getType().equals("DBserver")) { // draw database if (dCount == 7 || dCount == 14) { xDatabase += 100; yDatabase = 50; } g.drawImage(image, xDatabase, yDatabase, null); // neerzetten van de lijnen in IO g.drawString(s.getNaam(), xDatabase , yDatabase + 60); g.setColor(Color.BLACK); g.drawLine(225, 50, 225, 700); g.drawLine(25,50 ,600 ,50); //up g.drawLine(600 , 50,600, 700); // right g.drawLine(25 , 50,25, 700); // left g.drawLine(25,700 ,600 ,700); //up yDatabase += 100; dCount++; } else if (s.getType().equals("webserver")) { if (wCount == 7 || wCount == 14 ) { xWebserver += 100; yWebserver = 50; } Image image2 = ImageIO.read(new File("Images/Webserver.png")).getScaledInstance(50, 50, Image.SCALE_SMOOTH);// webserver image g.drawImage(image2, xWebserver, yWebserver, null); g.drawString(s.getNaam(), xWebserver , yWebserver +60); g.setColor(Color.BLACK); g.drawLine(333, 50, 333, 700); yWebserver += 100; wCount++; } else { Image image3 = ImageIO.read(new File("Images/FireWall.png")).getScaledInstance(50, 50, Image.SCALE_SMOOTH);// Firewall image g.drawImage(image3, xFirewall, 80, null); g.drawString(s.getNaam(), xFirewall, 140); } } catch (IOException e) { e.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Moment() {}", "public ConverterComponent() {\n\t}", "public mbvBoletinPeriodo() {\r\n }", "public periodictable() {\n initComponents();\n }", "Vaisseau_longueur createVaisseau_longueur();", "public vP() {\n initComponents();\n \n crono = new Bjj();\n \n \n \n }", "public ADateDemo() {\n\n\n initComponents();\n\n\n }", "public DefaultTimestampFieldComponentFactory() {\r\n\t\tsuper();\r\n\t}", "public Oddeven() {\n initComponents();\n }", "public Vencimientos() {\n initComponents();\n \n \n }", "public UnitConverter() {\r\n getParameters();\r\n }", "public KamarFrom() {\n \n initComponents();\n tabel();\n \n }", "public void designBasement() {\n\t\t\r\n\t}", "public FieldMarshal() {\n \n _emf = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory(\"FieldMarshalMySqlPU\");\n tournamentJpaController = new TournamentJpaController(_emf);\n tournamentManager = new TournamentManager( tournamentJpaController ); \n //playerManager = new PlayerManager( _emf );\n initComponents();\n \n //loadTournamentView.setEntityManager(_em);\n loadView.setManager(tournamentManager);\n //loadView.addPropertyChangeListener(tournamentManager);\n //loadView.updateList();\n \n ///tournamentManager.addObserver(tournamentView);\n ///tournamentManager.addObserver(playersView); \n \n tournamentView.setManager(tournamentManager);\n //playersView.setManager(tournamentManager);\n \n \n //tournamentView.updateView();\n //playersView.updateView();\n playersView.setManager(tournamentManager);\n }", "public Punto_venta() {\n initComponents();\n }", "public Calculadora() {\n initComponents();\n }", "public interface Datum {\n\n Component createComponent(ComponentContext c);\n}", "public CadastroComplemento() {\n initComponents();\n \n }", "Vaisseau_ordonneeLaPlusBasse createVaisseau_ordonneeLaPlusBasse();", "ComponentmodelPackage getComponentmodelPackage();", "public v_pembelian() {\n initComponents();\n disable_info();\n setTabel();\n initFaktur();\n }", "public void inicializar(Component comp) {\r\n\r\n\t\tList<Tematica> tematica = servicioTematica.buscarTematicasDeArea(area);\r\n\t\tltbTematica.setModel(new ListModelList<Tematica>(tematica));\r\n\r\n\t}", "public CalculaNota() {\n initComponents();\n }", "Compleja createCompleja();", "public CalculadoraBasica() {\n initComponents();\n }", "public Component() {\n }", "public MendInformation() {\r\n \tinitComponents();\r\n }", "@Override\n public void initComponent() {\n }", "@Override\n public void initComponent() {\n }", "Component getComponent() {\n/* 224 */ return this.component;\n/* */ }", "public VComponente() {\n initComponents();\n }", "private DittaAutonoleggio(){\n \n }", "public ObjectFactoryModuleCalendar() {\n }", "public FRMPrestarComputador() {\n initComponents();\n // idb.setText(idloguin);\n this.TXTFechaDePrestamo.setText(fechaActual());\n }", "public VPacientes() {\n initComponents();\n inicializar();\n }", "Compuesta createCompuesta();", "public CalendarBasi()\n {\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n anio = new DisplayDosDigitos(100);\n }", "public ModelltypImpl(String dateiname) {\r\n\t\tdatentypen.add(new DatentypImpl(\"Text\", \"String\", \"VARCHAR($laenge)\")); // erster Typ ist stets DefaultTyp\r\n\t\tdatentypen.add(new DatentypImpl(\"Integer\", \"int\", \"INT\"));\r\n\t\tdatentypen.add(new DatentypImpl(\"Boolean\", \"INT(1)\"));\r\n\t\tdatentypen.add(new DatentypImpl(\"Betrag\", \"double\", \"DECIMAL\"));\r\n\t\tdatentypen.add(new DatentypImpl(\"Double\", \"double\", \"DECIMAL\"));\r\n\t\tdatentypen.add(new DatentypImpl(\"Datum+Zeit\", \"java.util.Date\", \"DATETIME\"));\r\n\t\tdatentypen.add(new DatentypImpl(\"Datum\", \"java.sql.Date\", \"DATE\"));\r\n\t\tdatentypen.add(new DatentypImpl(\"Zeit\", \"java.util.Time\", \"TIME\"));\r\n\t\tdatentypen.add(new DatentypImpl(\"Long\", \"INT\"));\r\n\t\tdatentypen.add(new DatentypImpl(\"Text lang\", \"String\", \"CLOB\"));\r\n\t\tdatentypen.add(new DatentypImpl(\"char\", \"CHAR(1)\"));\r\n\t\tdatentypen.add(new DatentypImpl(\"Id\", \"String\", \"VARCHAR(16 BYTE)\"));\r\n\t}", "Component createComponent();", "Component createComponent();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "public LecturaPorEvento() \r\n {\r\n }", "@Override\r\n public void initComponent() {\n }", "Vaisseau createVaisseau();", "public interface IPeriodController extends IDisplayablePlugin {\r\n\t/**\r\n\t * This method is called by the platform whenever it needs DTOs for a\r\n\t * specific period.\r\n\t * \r\n\t * <p>\r\n\t * The <code>dto</code> parameter contains a reference to the DTO for this\r\n\t * period. It's up to the controller to remove any existing child DTOs.\r\n\t * \r\n\t * <p>\r\n\t * The <code>panel</code> parameter contains a reference to a {@link JPanel}\r\n\t * where the view can put its components.\r\n\t * \r\n\t * Modifications to the DTO can (and most probably will) occur even after\r\n\t * the function has returned.\r\n\t * \r\n\t * @param period\r\n\t * The DTO of the period.\r\n\t * @return Component where the view has put its components, or null if not\r\n\t * necessary\r\n\t */\r\n\tComponent editDTO(DTOPeriod period);\r\n\r\n\t/**\r\n\t * Defines the priority. This is used to sort the controllers before\r\n\t * displaying them at the GUI. The controller with the highest priority will\r\n\t * be displayed first.\r\n\t * \r\n\t * @return The priority of the controller.\r\n\t */\r\n\tint getGuiPriority();\r\n\r\n\t/**\r\n\t * Returns a list with the keys of all values which can be determined\r\n\t * stochastically.\r\n\t * \r\n\t * @return a list with the keys of all values which can be determined\r\n\t * stochastically.\r\n\t */\r\n\tList<DTOKeyPair> getStochasticKeys();\r\n}", "public mitigacao() {\n initComponents();\n }", "public mbvConsolidadoPeriodoAnteriores() {\r\n }", "public TelaAgendamento() {\n initComponents();\n }", "private UsineJoueur() {}", "public TelaConversao() {\n initComponents();\n }", "public ConversorVelocidad() {\n //setTemperaturaConvertida(0);\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public DepoIslemleri() {\n initComponents();\n setLocationRelativeTo(null);\n basla();\n }", "private void initcomponent() {\n\r\n\t}", "public Converter() {\n initComponents();\n }", "private void inicializarComponentes() {\n universidadesIncluidos = UniversidadFacade.getInstance().listarTodosUniversidadOrdenados();\n universidadesIncluidos.removeAll(universidadesExcluidos);\n Comunes.cargarJList(jListMatriculasCatastrales, universidadesIncluidos);\n }", "public lectManage() {\n initComponents();\n tableComponents();\n viewSchedule();\n }", "public interface TimeModel {\n TimeContainer getTime();\n}", "public misTutores() {\n initComponents();\n }", "public ModifierDestination() {\n initComponents();\n }", "@Override\n public String getModu() {\n return null;\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public Datenauswahl() {\n initComponents();\n }", "public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public TranslaterInterface() {\n initComponents();\n workin=new TranslaterLogic();\n \n }", "public void trenneVerbindung();", "private GUIAltaHabitacion() {\r\n\t initComponents();\r\n\t }", "public InventarioControlador() {\n }", "public DateGraphFormat(){\n }", "public BilanComptable() {\n initComponents();\n \n \n \n }", "public Venda() {\n initComponents();\n }", "public Venda() {\n initComponents();\n }", "ModularizationElement createModularizationElement();", "public Venda() {\n }", "public ViewUsluga() {\n initComponents();\n obrada = new ObradaUsluga();\n postInitComponents(); \n }", "public MiniatuurWeergaven() {\n initComponents();\n }", "public BuscaMedicamento() {\n initComponents();\n }", "public TelaSobre() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public Inventario() {\n initComponents();\n }", "void inicializaComponentes(){\r\n\t\t\r\n\t\t//Botão com status\r\n\t\ttgbGeral = (ToggleButton) findViewById(R.id.tgbGeral);\r\n\t\ttgbGeral.setOnClickListener(this);\r\n\t\ttgbMovimento = (ToggleButton) findViewById(R.id.tgbMovimento);\r\n\t\ttgbMovimento.setOnClickListener(this);\r\n\t\ttgbfogo = (ToggleButton) findViewById(R.id.tgbFogo);\r\n\t\ttgbfogo.setOnClickListener(this);\r\n\r\n\t\t//botão\r\n\t\tbtnTemperatura = (Button) findViewById(R.id.btnTemperatura);\r\n\t\tbtnTemperatura.setOnClickListener(this);\r\n\t\t\r\n\t\t//label\r\n\t\ttxtLegenda = (TextView) findViewById(R.id.txtSensorLegenda);\r\n\t}", "public ManipularEstudiantes() {\n initComponents();\n cme = new Control_Mantenimiento_Estudiante(this);\n this.gUI_botones2.agregar_eventos(cme);\n }", "public LgSistema() {\n initComponents();\n }", "public PresentacionPartido(Object partido) {\n initComponents(partido);\n }", "private void instanciarComponentes() {\n\t\t\n\t\tpainelTopo = new JPanel(new FlowLayout());\n\t\tpainelTopo.setBackground(Color.LIGHT_GRAY);\n\t\tlbInicial = new JLabel(\"De: \");\n\t\tlbFinal = new JLabel(\"Até: \");\n\t\tlabelTabuadoDo = new JLabel(\"Tabuada do: \");\n\t\ttxtInicial = new JTextField(10);\n\t\ttxtFinal = new JTextField(10);\n\t\ttxtNumero = new JTextField(10);\n\t\tbuttonCalcular = new JButton(\"Calcular\");\n\t\tpainelCentro = new JPanel(new FlowLayout());\n\t}", "public Echec() {\n initComponents();\n chargerImages();\n IAAbstraite ia = choixModeJeu();\n String config = chargerConfiguration();\n \n if(config == null)\n {\n this.partie = new Partie(ia);\n }\n else\n {\n try\n {\n this.partie = new Partie(config, ia);\n }\n catch(Exception e)\n {\n e.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Impossible de charger la configuration : \" + e.getMessage(), \"Erreur de lecture de la configuration\", JOptionPane.ERROR_MESSAGE);\n this.partie = new Partie(ia);\n }\n }\n \n updatePlateau();\n }", "public interface IComponent {\n \n double getCosto();\n void setCosto(double valor);\n String getFunciona();\n \n}", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "public Altas() {\n initComponents();\n }", "public Caso_de_uso () {\n }", "Vaisseau_seDeplacerVersLaGauche createVaisseau_seDeplacerVersLaGauche();", "public MainFrame() {\n initComponents();\n \n //Llenando comboboxes\n DefaultComboBoxModel cmbModel = (DefaultComboBoxModel) cmbPiece.getModel();\n cmbModel.removeAllElements();\n \n for (Piece piece : new PieceController().getAll()) {\n cmbModel.addElement(piece);\n }\n \n cmbModel = (DefaultComboBoxModel) cmbProvider.getModel();\n cmbModel.removeAllElements();\n \n for (Provider provider : new ProviderController().getAll()) {\n cmbModel.addElement(provider);\n }\n \n clear();\n \n dtpFrom.setFormats(new SimpleDateFormat(\"dd/MM/yyyy\"));\n dtpTo.setFormats(new SimpleDateFormat(\"dd/MM/yyyy\"));\n dtpFrom.getEditor().setEditable(false);\n dtpTo.getEditor().setEditable(false);\n \n }", "private ControleurAcceuil(){ }", "public SistemaEstaciones() {\n initComponents();\n }", "public void init(){\n\t\t\n\t\t// Definition general de la fenetre\n\t\tthis.setLayout(new BorderLayout());\n\t\t\n\t\t/*********** PARTIE HAUTE *************/\n\t\t\n\t\t// JPanel qui va contenir l'interface de controle\n\t\tJPanel panH=new JPanel();\n\t\t\n\t\t// Ajout de la zone de saisie du mot binaire\n\t\tpanH.add(new JLabel(\"Mot binaire:\"));\n\t\tentree=new JTextField(\"1100110101\",10);\n\t\tpanH.add(entree);\n\t\t\n\t\t// Ajout de la liste de selection du codage\n\t\tcodage=new JComboBox();\n\t\tcodage.addItem(\"NRZ\");\n\t\tcodage.addItem(\"NRZI\");\n\t\tcodage.addItem(\"Manchester\");\n\t\tcodage.addItem(\"Manchester differentiel\");\n\t\tcodage.addItem(\"Miller\");\n\t\t\n\t\tpanH.add(codage);\n\t\t\n\t\t\n\t\t// Ajout du bouton d'execution du codage\n\t\tconvertir=new JButton(\"Convertir\");\n\t\tconvertir.addActionListener(new EcouteurBouton());\n\t\tpanH.add(convertir);\n\t\t\n\t\t\n\t\tadd(panH,BorderLayout.NORTH);\n\t\t\n\t\t\n\t\t/*********** PARTIE CENTRALE *************/\n\t\t\n\t\t// Ajout de la zone d'affichage de la solution\n\t\tzoneGraph=new Dessin();\n\t\tadd(zoneGraph);\n\t}", "ComponentType createComponentType();", "public Calendar() {\n initComponents();\n }" ]
[ "0.5979441", "0.5777335", "0.56486017", "0.5647942", "0.5619412", "0.56002754", "0.5598987", "0.55720246", "0.5542019", "0.5513261", "0.54920274", "0.54900175", "0.54732716", "0.54492944", "0.54391086", "0.5434113", "0.54087526", "0.54051197", "0.5398985", "0.5394302", "0.5389259", "0.5385982", "0.5376798", "0.53723186", "0.5368436", "0.5365033", "0.5362767", "0.53402615", "0.53402615", "0.53324115", "0.533164", "0.53309447", "0.5322508", "0.5315841", "0.5311018", "0.5301491", "0.52898085", "0.5283952", "0.5275992", "0.5275992", "0.52745837", "0.52745837", "0.52745837", "0.52745837", "0.5271549", "0.52691174", "0.52542853", "0.52541965", "0.52536094", "0.52510184", "0.5249097", "0.5246848", "0.5239543", "0.5237709", "0.52361363", "0.5235193", "0.523329", "0.5228307", "0.52246934", "0.5221149", "0.5218747", "0.5210035", "0.52098423", "0.52096033", "0.5209569", "0.5207245", "0.52071834", "0.51973236", "0.5194115", "0.5184777", "0.51811713", "0.5179001", "0.5171732", "0.51663214", "0.51663214", "0.5154024", "0.5151647", "0.51491356", "0.5143639", "0.51430446", "0.51368535", "0.51329595", "0.5131332", "0.5128237", "0.51267874", "0.51191497", "0.51148784", "0.51125395", "0.5112243", "0.5107294", "0.51067424", "0.51067424", "0.51059043", "0.51057756", "0.5105155", "0.51051337", "0.51037735", "0.5096716", "0.50945944", "0.50900656", "0.5089228" ]
0.0
-1
Retrieves and returns the LifecycleRetriever singleton.
public static LifecycleProvider get() { return INSTANCE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private LifecycleHolder get(Context context) {\n if (context == null) {\n throw new IllegalArgumentException(\"You cannot start a load on a null Context\");\n } else if (!isOnMainThread() && !(context instanceof Application)) {\n if (context instanceof FragmentActivity) {\n return get((FragmentActivity) context);\n } else if (context instanceof Activity) {\n return get((Activity) context);\n } else if (context instanceof ContextWrapper) {\n return get(((ContextWrapper) context).getBaseContext());\n }\n }\n\n return getApplicationLifecycle();\n }", "public LifecycleHolder getApplicationLifecycle() {\n if (applicationLifecycle == null) {\n synchronized (this) {\n if (applicationLifecycle == null) {\n // Normally pause/resume is taken care of by the fragment we add to the fragment or activity.\n // However, in this case since the manager attached to the application will not receive lifecycle\n // events,\n applicationLifecycle = new LifecycleHolder(true);\n }\n }\n }\n return applicationLifecycle;\n }", "public static LifecycleContext getLifecycleContext()\n {\n return context;\n }", "public static FcRenewalManager getInstance() {\n try {\n logger.methodStart();\n if (instance == null) {\n instance = new FcRenewalManager();\n }\n return (FcRenewalManager) instance;\n } finally {\n logger.methodEnd();\n }\n }", "public Lifecycle getLifecycle() {\n return Lifecycle.SERVER;\n }", "public static PipelineManager getInstance() {\n if (INSTANCE == null){\n synchronized(PipelineManager.class) {\n if(INSTANCE == null) {\n INSTANCE = new PipelineManager();\n }\n }\n }\n return INSTANCE;\n }", "public static ValorantManager getInstance() {\n if(instance == null) {\n instance = new ValorantManager();\n }\n return instance;\n }", "public static SlavesHolder getInstance() {\n if (instance == null) {\n instance = new SlavesHolder();\n }\n return instance;\n }", "public static ReferenceLoginManager getInstance() {\n if (instance == null) {\n throw new RuntimeException(\"Persistence not configured yet!\");\n } else return instance;\n }", "public static ThreadedPmClientInstanceResolver get() {\n\t\t// synchronization :: rely on registry to return same impl\n\t\tif (instance == null) {\n\t\t\tinstance = Registry.impl(ThreadedPmClientInstanceResolver.class);\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 }", "public RouteInstanceManager getRouteInstanceManager() {\n\t\tif (routeInstanceManager == null) {\n\t\t\tIRouteInstanceDAO routeInstanceDAO = new RouteInstanceDAOSqlite(dbHelper);\n\t\t\trouteInstanceManager = new RouteInstanceManager(routeInstanceDAO);\n\t\t\trouteInstanceManager.setManagerHolder(this);\n\t\t}\n\t\treturn routeInstanceManager;\n\t}", "public synchronized static Subversion getInstance() {\n if (instance == null) {\n instance = new Subversion();\n }\n return instance;\n }", "public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }", "public static LocalizationProvider getInstance() {\r\n\t\treturn instance;\r\n\t}", "public static Downloader getInstance() {\n return new Downloader();\n }", "public static VersionFactory getInstance() {\n\t\treturn SingletonHolder.versionFactory;\n\t}", "public static NativeLibraryLoader getInstance() {\n return instance;\n }", "public static synchronized Singleton getInstance() {\n\t\tif (mContext == null) {\n\t\t\tthrow new IllegalArgumentException(\"Impossible to get the instance. This class must be initialized before\");\n\t\t}\n\n\t\tif (instance == null) {\n\t\t\tinstance = new Singleton();\n\t\t}\n\n\t\treturn instance;\n\t}", "public static synchronized StylesheetsLoader getInstance() {\r\n\t\t\r\n\t\tif (ref==null)\r\n\t\t\tref = new StylesheetsLoader();\r\n\t\treturn ref;\r\n\t\t\r\n\t}", "public static TimedRefreshManager getInstance() {\n\t\t\n\t\tif (_instance == null) {\n\t\t\t_instance = new TimedRefreshManager();\n\t\t}\n\t\treturn _instance;\n\n\t}", "public static LocalVpnService getInstance() {\n\n return instance;\n }", "public static synchronized LocaleManager getInstance() {\n\t\t\n\t\tif(manager == null) {\n\t\t\tmanager = new LocaleManager();\n\t\t}\n\t\t\n\t\treturn manager;\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}", "public TraversalStrategyFactory getInstance() {\n\t\treturn instance;\n\t}", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static PropertyManager getInstance () {\n if (instance == null) {\n synchronized (lock) {\n instance = new PropertyManager();\n instance.loadData();\n }\n }\n return instance;\n }", "public static Setup getInstance () {\n return SetupHolder.INSTANCE;\n }", "public static EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static Catalog instance() {\r\n if (catalog == null) {\r\n return (catalog = new Catalog());\r\n } else {\r\n return catalog;\r\n }\r\n }", "public static StateChangeMonitor getInstance() {\n\t\tsynchronized (classLock) {\n\t\t\tif (monitor == null) {\n\t\t\t\tmonitor = new StateChangeMonitor();\n\t\t\t}\n\t\t\treturn monitor;\n\t\t}\n\t}", "public static ConversionUtils getInstance() {\n ConversionUtils instance = (instanceStorage == null ? null : instanceStorage.get());\n if (instance == null) {\n instance = ConversionUtils.setInstance(null);\n }\n return instance;\n }", "public static LazySingleton getInstance()\n {\n // Check null\n if (instance == null)\n instance = new LazySingleton();\n return instance;\n\n }", "public static MonitorManager getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new MonitorManager();\n\t\t}\n\t\treturn instance;\n\t}", "public static ResourceManager getInstance() {\n if (instance == null)\n instance = new ResourceManager();\n return instance;\n }", "public static Singleton getInstance() {\n\n if (_instance == null) {\n synchronized (Singleton.class) {\n if (_instance == null)\n _instance = new Singleton();\n }\n }\n return _instance;\n }", "public static 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 RepositoryService getInstance() {\n return instance;\n }", "public static synchronized LowerCaseResolution instance() {\n\t\t// double check locking\n\t\tif (instance == null) {\n\t\t\tsynchronized (LowerCaseResolution.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new LowerCaseResolution();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static UrlDAO instance() {\n\n if (instance == null) {\n synchronized(UrlDAO.class) {\n if (instance == null)\n instance = new UrlDAO();\n }\n }\n return instance;\n }", "public static CameraManager get() {\n\t\treturn cameraManager;\n\t}", "public RouteStopManager getRouteStopManager() {\n\t\tif (routeStopManager == null) {\n\t\t\tIRouteStopDAO routeStopDAO = new RouteStopDAOSqlite(dbHelper);\n\t\t\trouteStopManager = new RouteStopManager(routeStopDAO);\n\t\t\trouteStopManager.setManagerHolder(this);\n\t\t}\n\t\treturn routeStopManager;\n\t}", "public synchronized static RecordManager instance() {\n\t\tif (s_Instance == null) s_Instance = new RecordManager();\n\t\treturn s_Instance;\n\t}", "@NotNull\n public static UsageTracker getInstance() {\n return ServiceManager.getService(UsageTracker.class);\n }", "public static RecordingRepository getInstance() {\r\n if (_instance == null) {\r\n _instance = new RecordingRepository();\r\n }\r\n return _instance;\r\n }", "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 SchedulerService get() {\n return SINGLETON;\n }", "synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }", "public static Manager getInstance() {\n if (instance == null) {\n instance = new Manager();\n }\n return instance;\n }", "public static SubManager get() {\n if (subManager==null){\n throw new RuntimeException(\"Error Occurred\");\n }\n else{\n return subManager;\n }\n }", "public static PropertyHolder getInstance() {\n if (singletonHolder == null) {\n singletonHolder = new PropertyHolder();\n }\n return singletonHolder;\n }", "public static synchronized PlatformInit getService() {\n\t\tif(theService == null || theService.initialised)\n\t\t\treturn theService;\n\t\treturn null;\n\t}", "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 synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }", "public static Service getInstance()\n\t{\n\t\tif (serviceInstance == null)\n\t\t{\n\t\t\tserviceInstance = new Service(LocalDao.getInstance());\n\t\t}\n\t\treturn serviceInstance;\n\t}", "public static ResourceManager getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new ResourceManager();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public synchronized static MetaDataCache getInstance() {\r\n if (instance == null) {\r\n instance = new MetaDataCache();\r\n }\r\n return instance;\r\n }", "public static Singleton getInstance() {\n if (instance == null) {\n synchronized (Singleton.class){\n if (instance == null) {\n instance = new Singleton();\n }\n }\n }\n return instance;\n }", "public static SftpPropertyLoad getInstance() {\n\t\tif (null == instance) {\n\t\t\tsynchronized (SftpPropertyLoad.class) {\n\t\t\t\tif (null == instance) {\n\t\t\t\t\tinstance = new SftpPropertyLoad(\"sftp\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn instance;\n\t}", "private static Injector instance() {\n if (instance == null) {\n instance = new Injector();\n }\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 ResourcesManager getInstance() {\n\n if (instance == null) {\n instance = new ResourcesManager();\n }\n return instance;\n\n }", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public static ImageDownloadManager getInstance() {\n return sInstance;\n }", "Manager getManager() {\n return Manager.getInstance();\n }", "Manager getManager() {\n return Manager.getInstance();\n }", "Manager getManager() {\n return Manager.getInstance();\n }", "public static final ResultObserver getInstance() {\n return sInstance;\n }", "private static synchronized InitiatorService getInitiatorService()\n {\n if (initiatorService.get() == null) {\n initiatorService.set(new InitiatorService());\n }\n return initiatorService.get();\n }", "public static InspectorManager getInstance() {\n if (instance==null) instance = new InspectorManager();\n return instance;\n}", "public static StoreController getInstance() {\n\t\tif (storeController == null) {\n\t\t\tsynchronized (StoreController.class) {\n\t\t\t\tif (storeController == null) {\n\t\t\t\t\tstoreController = new StoreController();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn storeController;\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 static synchronized DatabaseManager getInstance() {\n\n if (instance == null) {\n System.err.println(\"DatabaseManager is not initialized. \" +\n \"Call DatabaseManager.initializeInstance(...) first.\");\n }\n\n return instance;\n }", "public VehicleManager getVehicleManager() {\n\t\tif (vehicleManager == null) {\n\t\t\tIVehicleDAO vehicleDAO = new VehicleDAOSqlite(dbHelper);\n\t\t\tvehicleManager = new VehicleManager(vehicleDAO);\n\t\t\tvehicleManager.setManagerHolder(this);\n\t\t}\n\t\treturn vehicleManager;\n\t}", "public static synchronized MyVolleySingleton getInstance(Context context) {\n if (singletonInstance == null) { // If Instance is null\n singletonInstance = new MyVolleySingleton(context); // Initialize new Instance\n }\n return singletonInstance;\n }", "public VehicleRouteManager getVehicleRouteManager() {\n\t\tif (vehicleRouteManager == null) {\n\t\t\tIVehicleRouteDAO vehicleRouteDAO = new VehicleRouteDAOSqlite(dbHelper);\n\t\t\tvehicleRouteManager = new VehicleRouteManager(vehicleRouteDAO);\n\t\t\tvehicleRouteManager.setManagerHolder(this);\n\t\t}\n\t\treturn vehicleRouteManager;\n\t}", "public synchronized T get(Scope scope) {\n if (instance != null) {\n return instance;\n }\n\n if (providerInstance != null) {\n if (isProvidingSingleton) {\n instance = providerInstance.get();\n return instance;\n }\n\n return providerInstance.get();\n }\n\n if (factoryClass != null && factory == null) {\n factory = FactoryLocator.getFactory(factoryClass);\n this.isSingleton |= factory.hasSingletonAnnotation();\n this.isReleasable |= (this.isSingleton && factory.hasReleasableAnnotation());\n // gc\n factoryClass = null;\n }\n\n if (factory != null) {\n if (isSingleton) {\n instance = factory.createInstance(scope);\n\n if (!isReleasable) {\n // gc\n factory = null;\n }\n\n return instance;\n }\n\n return factory.createInstance(scope);\n }\n\n if (providerFactoryClass != null && providerFactory == null) {\n providerFactory = FactoryLocator.getFactory(providerFactoryClass);\n this.isSingleton |= providerFactory.hasSingletonAnnotation();\n this.isReleasable |= (this.isSingleton && providerFactory.hasReleasableAnnotation());\n this.isProvidingSingleton |= providerFactory.hasProvidesSingletonAnnotation();\n this.isProvidingReleasable |=\n (this.isProvidingSingleton && providerFactory.hasProvidesReleasableAnnotation());\n\n // gc\n providerFactoryClass = null;\n }\n\n if (providerFactory != null) {\n if (isSingleton) {\n providerInstance = providerFactory.createInstance(scope);\n\n if (!isReleasable) {\n // gc\n providerFactory = null;\n }\n\n if (isProvidingSingleton) {\n instance = providerInstance.get();\n return instance;\n }\n return providerInstance.get();\n }\n\n if (isProvidingSingleton) {\n instance = providerFactory.createInstance(scope).get();\n\n if (!isProvidingReleasable) {\n // gc\n providerFactory = null;\n }\n return instance;\n }\n\n return providerFactory.createInstance(scope).get();\n }\n\n throw new IllegalStateException(\n \"A provider can only be used with an instance, a provider, a factory or a provider factory. Should not happen.\");\n }", "synchronized public static PreferenceManager getInstance()\n {\n return singleton;\n }", "public static SubjectManagement getInstance() {\n\n\t\tif (instance == null) {\n\t\t\tinstance = new SubjectManagement();\n\t\t}\n\n\t\treturn instance;\n\t}", "public static SQLiteStorage instance() {\n return instance;\n }", "public static PluginManager getInstance() {\n\t\tif (pm == null) {\n\t\t\tpm = new PluginManager();\n\t\t}\n\t\treturn pm;\n\t}", "public static System getInstance() {\n\t\ttry {\n\t\t\treturn instance == null ? new System(null, null, null) : instance;\n\t\t} catch (Exception e) {\n\t\t\tlogger.fatal(\"System Initialization Failed\", e);\n\t\t\treturn null;\n\t\t}\n\t}", "public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }", "public static Camera getInstance() {\r\n return instance;\r\n }", "public RouteManager getRouteManager() {\n\t\tif (routeManager == null) {\n\t\t\tIRouteDAO routeDAO = new RouteDAOSqlite(dbHelper);\n\t\t\trouteManager = new RouteManager(routeDAO);\n\t\t\trouteManager.setManagerHolder(this);\n\t\t}\n\t\treturn routeManager;\n\t}", "ActivityLifecycleTracker getActivityLifecycleTracker() {\n return activityLifecycleTracker;\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 static MusicManager getInstance() {\n\t\tif (musicManager == null)\n\t\t\tmusicManager = new MusicManager();\n\t\t\n\t\treturn musicManager;\n\t}", "public synchronized static LogManager instance() {\n\t\tif( instance == null ) {\n\t\t\tinstance = new LogManager();\n\t\t}\n\t\treturn instance;\n\t}", "public synchronized static SpeedSliderListener getInstance()\n {\n if (instance == null)\n instance = new SpeedSliderListener();\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}", "@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Atomically set the reference's value to a new singleton iff\n // the current value is null. This constructor will most likely\n // be called more than once if instance() is called from\n // multiple threads, but only the first one is used.\n sSingletonAR\n .updateAndGet(u ->\n u != null ? u : new SingletonAR<T>());\n\n // Return the singleton's current value.\n return (Singleton<T>) sSingletonAR.get();\n }", "public static EmployeeStorageManager getInstance() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (EmployeeStorageManager.class) {\n\t\t\t\tinstance = new EmployeeStorageManager();\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static PropertiesUtil getInstance(){\n if (instance == null) {\n synchronized (PropertiesUtil.class){\n instance = new PropertiesUtil();\n instance.loadProperties();\n }\n }\n return instance;\n }", "public static Main getInstance() {\n return instance;\n }", "public static synchronized SettingsStore getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new SettingsStore();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static mxPropertiesManager getInstance()\n\t{\n\t\tif (propertiesManager == null)\n\t\t{\n\t\t\tpropertiesManager = new mxPropertiesManager();\n\t\t}\n\t\treturn propertiesManager;\n\t}", "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 }" ]
[ "0.6184418", "0.5925926", "0.5925404", "0.5850118", "0.5803431", "0.57813436", "0.57163954", "0.5670754", "0.5661588", "0.5599803", "0.55925554", "0.5516396", "0.55120474", "0.5477844", "0.54199743", "0.5419192", "0.5403156", "0.5380267", "0.53726625", "0.5369896", "0.53679234", "0.5343544", "0.5340391", "0.5337725", "0.53216165", "0.5318854", "0.53111845", "0.53099465", "0.5298339", "0.5292765", "0.5290873", "0.52860755", "0.5270374", "0.5269639", "0.5264036", "0.5261824", "0.5259737", "0.5253737", "0.5253685", "0.5249178", "0.5248439", "0.5247535", "0.5231734", "0.5223703", "0.52170265", "0.5215446", "0.52049094", "0.5203551", "0.5201254", "0.52004033", "0.51990235", "0.5190267", "0.51683015", "0.51678115", "0.5166671", "0.5164888", "0.5161746", "0.516036", "0.51601064", "0.51534647", "0.5136113", "0.5136038", "0.51187414", "0.51146066", "0.51132923", "0.51050586", "0.5098949", "0.5098949", "0.5098949", "0.5098892", "0.5097722", "0.50960666", "0.5084284", "0.50796926", "0.5079649", "0.50726527", "0.50695413", "0.50584215", "0.5055207", "0.5041793", "0.50348043", "0.50301605", "0.50290096", "0.5026167", "0.5021314", "0.5020415", "0.50203216", "0.5011593", "0.5001361", "0.5000822", "0.4997128", "0.49885342", "0.4988203", "0.4984651", "0.49813187", "0.49786845", "0.4976293", "0.4975337", "0.4972048", "0.49676776" ]
0.725491
0