about summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
* Abstracted Recordable concernKelly Rauchenberger2018-07-064-9/+14
* Updated pokeviewer (embed pokemon link)Kelly Rauchenberger2018-07-041-1/+1
* Updated pokeviewer (embeds)Kelly Rauchenberger2018-07-041-3/+3
* Blog drafts no longer require slugsKelly Rauchenberger2018-07-0412-18/+60
* Added blog draftsKelly Rauchenberger2018-07-0413-11/+99
* Made stream updates more distinctKelly Rauchenberger2018-07-031-5/+7
* Tweaked datetime formattingKelly Rauchenberger2018-07-032-2/+2
* Added short footer to blog postsKelly Rauchenberger2018-07-032-0/+19
* Added some extra space to the bottom of the pageKelly Rauchenberger2018-07-031-1/+1
* Changed about snippet to reflect that I graduatedKelly Rauchenberger2018-07-031-1/+2
* Implemented streamsKelly Rauchenberger2018-07-0327-41/+355
* Collapsed Entry -> Blog single-table inheritance to BlogKelly Rauchenberger2018-07-039-46/+66
* Removed test filesKelly Rauchenberger2018-07-0314-132/+0
* Updated capistranoKelly Rauchenberger2018-07-021-1/+1
* Updated gemsKelly Rauchenberger2018-07-021-71/+73
* Updated pokeviewerKelly Rauchenberger2018-02-141-45/+45
* Updated pokeviewer (Pokédex)Kelly Rauchenberger2018-01-293-10/+44
* Added migration from previous pokeviewer updateKelly Rauchenberger2018-01-142-1/+24
* Updated pokeviewer (hatkirby/pokeviewer#4)Kelly Rauchenberger2018-01-141-1/+1
* Updated pokeviewerKelly Rauchenberger2018-01-131-1/+1
* Updated pokeviewerKelly Rauchenberger2018-01-131-1/+1
* Actually added migration from previous commitKelly Rauchenberger2018-01-132-27/+68
* Updated pokeviewer (hatkirby/pokeviewer#3)Kelly Rauchenberger2018-01-131-6/+6
* Updated CapistranoKelly Rauchenberger2018-01-051-1/+1
* Updated pokeviewer (crisp images)Kelly Rauchenberger2018-01-051-30/+31
* Updated Capfile lockKelly Rauchenberger2017-10-151-1/+1
* Updated pokeviewerKelly Rauchenberger2017-10-151-1/+1
* Fixed two migration similar to previousKelly Rauchenberger2017-10-153-4/+6
* Fixed migration againKelly Rauchenberger2017-10-152-2/+2
* Fixed MySQL choking on a pokeviewer migrationKelly Rauchenberger2017-10-152-2/+4
* Fixed typo in some pokeviewer foreign keysKelly Rauchenberger2017-10-152-6/+6
* Added pokeviewerKelly Rauchenberger2017-10-1529-72/+764
* Added Four Island faviconKelly Rauchenberger2017-07-031-0/+0
* Fixed the "create record" checkbox in adminKelly Rauchenberger2017-07-025-3/+3
* Added mysql2 gemKelly Rauchenberger2017-07-022-0/+6
* Maybe?Kelly Rauchenberger2017-07-022-4/+1
* Added devise secret key envKelly Rauchenberger2017-07-021-0/+3
* Added JS runtimeKelly Rauchenberger2017-07-022-1/+7
* Set up CapistranoKelly Rauchenberger2017-07-0211-34/+247
* Styled flash and errors in admin panelKelly Rauchenberger2017-07-023-14/+61
* Styled password reset formKelly Rauchenberger2017-07-027-45/+51
* Tweaked strftime on records pageKelly Rauchenberger2017-07-021-1/+1
* Created admin panelKelly Rauchenberger2017-07-02185-43/+12003
* Styled figures in blog postsKelly Rauchenberger2017-06-301-0/+19
* Split up stylesheets for each layoutKelly Rauchenberger2017-06-3011-263/+254
* Worked on sidebar styleKelly Rauchenberger2017-06-292-18/+37
* Made ponies actually trotKelly Rauchenberger2017-06-291-0/+6
* Added views for blog postsKelly Rauchenberger2017-06-292-0/+14
* Worked more on overall layout, made ponies clickableKelly Rauchenberger2017-06-293-24/+26
* Worked on style of blog postsKelly Rauchenberger2017-06-296-3/+96
">super(parent, modal); initComponents(); jComboBox1.setModel(cbm); } /** 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. */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox(); jCheckBox1 = new javax.swing.JCheckBox(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setName("Form"); // NOI18N org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(com.fourisland.instadisc.InstaDiscApp.class).getContext().getResourceMap(ActionFilterForm.class); jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N jLabel1.setName("jLabel1"); // NOI18N jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N jLabel2.setName("jLabel2"); // NOI18N jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N jLabel3.setName("jLabel3"); // NOI18N jComboBox1.setName("jComboBox1"); // NOI18N jCheckBox1.setText(resourceMap.getString("jCheckBox1.text")); // NOI18N jCheckBox1.setName("jCheckBox1"); // NOI18N jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N jLabel4.setName("jLabel4"); // NOI18N jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N jLabel5.setName("jLabel5"); // NOI18N jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N jLabel6.setName("jLabel6"); // NOI18N jTextField1.setText(resourceMap.getString("jTextField1.text")); // NOI18N jTextField1.setName("jTextField1"); // NOI18N jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N jButton1.setName("jButton1"); // NOI18N jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N jButton2.setName("jButton2"); // NOI18N jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addGroup(layout.createSequentialGroup() .addGap(12, 12, 12) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 391, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jComboBox1, 0, 346, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBox1)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)))))) .addGroup(layout.createSequentialGroup() .addGap(36, 36, 36) .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(324, Short.MAX_VALUE) .addComponent(jButton2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel4) .addComponent(jCheckBox1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1) .addComponent(jButton2)) .addContainerGap()) ); pack(); }// </editor-fold>//GEN-END:initComponents private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed f.setField((String) jComboBox1.getSelectedItem()); f.setEqual(jCheckBox1.isSelected()); f.setTest(jTextField1.getText()); Wrapper.addFilter(f); setVisible(false); }//GEN-LAST:event_jButton2ActionPerformed private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed setVisible(false); }//GEN-LAST:event_jButton1ActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { ActionFilterForm dialog = new ActionFilterForm(new javax.swing.JFrame(), true); dialog.addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JCheckBox jCheckBox1; private javax.swing.JComboBox jComboBox1; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel6; private javax.swing.JTextField jTextField1; // End of variables declaration//GEN-END:variables DefaultComboBoxModel cbm = new DefaultComboBoxModel(); Filter f; public void setFilter(Filter filter) { String[] semantics = Category.getRequiredSemantics(Wrapper.getSubscription(filter.getSubscription()).getCategory()); int i = 0; cbm.addElement("Author"); for (i = 0; i < semantics.length; i++) { cbm.addElement(semantics[i]); } if (filter.getID() == -65536) { jLabel1.setText("Add Filter"); } else { jComboBox1.setSelectedIndex(0); for (i = 0; i < semantics.length; i++) { if (semantics[i].equals(filter.getField())) { jComboBox1.setSelectedIndex(i+1); break; } } jCheckBox1.setSelected(filter.getEqual()); jTextField1.setText(filter.getTest()); } f = filter; } }