Changes since
the last release

com.ebay.sdk.helper.ui
Class ControlBuilder

java.lang.Object
  extended by com.ebay.sdk.helper.ui.ControlBuilder

public class ControlBuilder
extends java.lang.Object

A helper class to build an array of JCheckBoxes/JIDCheckBoxes in a given JPanel with a GridBagLayout.


Method Summary
 javax.swing.JCheckBox[] buildCheckBoxControls(javax.swing.JPanel panel, java.util.ArrayList list, int colSize)
          Method to build an array of checkboxes in a JPanel with a GridBagLayout.
 javax.swing.JCheckBox[] buildIDCheckBoxControls(javax.swing.JPanel panel, java.util.Hashtable map, int colSize)
          Method to build an array of checkboxes in a JPanel with a GridBagLayout.
static ControlBuilder getInstance()
          Method to return an instance of ControlBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ControlBuilder getInstance()
Method to return an instance of ControlBuilder

Returns:
ControlBuilder

buildCheckBoxControls

public javax.swing.JCheckBox[] buildCheckBoxControls(javax.swing.JPanel panel,
                                                     java.util.ArrayList list,
                                                     int colSize)
Method to build an array of checkboxes in a JPanel with a GridBagLayout.

Parameters:
panel - Parent panel for the JCheckBoxes.
list - List of labels for the JCheckBoxes.
colSize - Column size for the JCheckBoxes array.
Returns:
An array of JCheckBoxes.

buildIDCheckBoxControls

public javax.swing.JCheckBox[] buildIDCheckBoxControls(javax.swing.JPanel panel,
                                                       java.util.Hashtable map,
                                                       int colSize)
Method to build an array of checkboxes in a JPanel with a GridBagLayout.

Parameters:
panel - Parent panel for the JIDCheckBoxes.
map - Hashmap of ids and labels for the JIDCheckBoxes.
colSize - Column size for the JIDCheckBoxes array.
Returns:
An array of JIDCheckBoxes.

Changes since
the last release

The information contained in this document is proprietary and confidential. Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc. For information regarding a qualifying NDA, contact Developer Relations: developer-relations@ebay.com
© 2004-2009 eBay Inc. All rights reserved.