Examples of CCheckBox


Examples of org.compiere.swing.CCheckBox

    StringBuffer sql = new StringBuffer();
    priceListChecks  = new Vector<CCheckBox>(80);
    priceListIDs     = new Vector<Integer>(80);
    Box priceLists   = Box.createVerticalBox();
    Box line;
    CCheckBox check;
   
    sql.append("SELECT pl.name, pl.m_pricelist_id "+
               "FROM   m_pricelist pl "+
               "WHERE  pl.ad_client_id = "+ad_client_id+" "+
               "AND    pl.ad_org_id = "+ad_org_id+" "+
               "AND    pl.isactive = 'Y' "+
               "ORDER BY pl.name");
   
    PreparedStatement pstmt = null;
    ResultSet rs = null;
    try
    {
      pstmt = DB.prepareStatement(sql.toString(), null);
      rs = pstmt.executeQuery();
     
      while (rs.next())
      {
        check = new CCheckBox(rs.getString(1));
        check.addActionListener(this);
        priceListChecks.add(check);
        priceListIDs.add(Integer.valueOf(rs.getInt(2)));
       
        line = Box.createHorizontalBox();
        line.add(Box.createHorizontalStrut(5));
View Full Code Here

Examples of org.compiere.swing.CCheckBox

   * @return a string containing the selected Price List IDs.
   */
  private String getPriceListIDs()
  {
    StringBuffer plIDBuffer = new StringBuffer("(");
    CCheckBox pl;
    for (int i = 0; i < priceListChecks.size(); i++)
    {
      pl = priceListChecks.get(i);
      if (pl.isSelected())
        plIDBuffer.append(priceListIDs.get(i)).append(",");
    }
    plIDBuffer.deleteCharAt(plIDBuffer.length()-1); // remove the last comma
    plIDBuffer.append(") ");
   
View Full Code Here

Examples of org.compiere.swing.CCheckBox

      tc.setCellRenderer(new CheckRenderer());
      if (readOnly)
        tc.setCellEditor(new ROCellEditor());
      else
      {
        CCheckBox check = new CCheckBox();
        check.setMargin(new Insets(0,0,0,0));
        check.setHorizontalAlignment(SwingConstants.CENTER);
        tc.setCellEditor(new DefaultCellEditor(check));
      }
      m_minWidth.add(new Integer(30));
     
      tc.setHeaderRenderer(new VHeaderRenderer(DisplayType.YesNo));
View Full Code Here

Examples of org.sf.feeling.swt.win32.extension.widgets.CCheckBox

    widget.setText(text);
    return widget;
  }
 
  public CCheckBox createCCheckBox(Composite com, String text){
    CCheckBox widget = new CCheckBox(com);
    widget.setFont(UIDATA.FONT_9);
    widget.setText(text);
    return widget;
  }
View Full Code Here

Examples of org.sf.feeling.swt.win32.extension.widgets.CCheckBox

    if(listener != null) widget.addSelectionListener(listener);
    return widget;
  }
 
  public CCheckBox createCCheckBox(Composite com, String text, SelectionListener listener){
    CCheckBox widget = createCCheckBox(com, text);
    if(listener != null) widget.addSelectionListener(listener);
    return widget;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.