Changes since
the last release

com.ebay.sdk.helper.ui
Class GuiUtil

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

public class GuiUtil
extends Object


Constructor Summary
GuiUtil()
           
 
Method Summary
static boolean AreAllTextFieldsFilled(JTextField[] tfs)
           
static void CenterComponent(Component frame)
           
static Calendar getCalendarFromField(JTextField txtField)
           
static AmountType getMoneyField(JTextField tf)
           
static TimeFilter getTimeFilterFromFields(JTextField txtFrom, JTextField txtTo)
           
static boolean isApiAccountFilled(ApiAccount ac)
           
static boolean isApiContextFilled(ApiContext ctx, boolean checkEBayAccount)
           
static boolean isFilledString(String s)
           
static boolean isTextControlFilled(JTextComponent tc, String errorMessage)
          Checks if a text control is filled.
static boolean IsTextFieldEmpty(JTextField tf)
           
static void JListAddObject(JList list, Object item)
           
static void JListClearData(JList list)
           
static void JListRemoveSelectedObject(JList list)
           
static void setTimeFilterFields(int backDays, JTextField txtFrom, JTextField txtTo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiUtil

public GuiUtil()
Method Detail

CenterComponent

public static void CenterComponent(Component frame)

JListClearData

public static void JListClearData(JList list)

JListAddObject

public static void JListAddObject(JList list,
                                  Object item)

JListRemoveSelectedObject

public static void JListRemoveSelectedObject(JList list)

getMoneyField

public static AmountType getMoneyField(JTextField tf)

getCalendarFromField

public static Calendar getCalendarFromField(JTextField txtField)
                                     throws ParseException
Throws:
ParseException

getTimeFilterFromFields

public static TimeFilter getTimeFilterFromFields(JTextField txtFrom,
                                                 JTextField txtTo)
                                          throws ParseException
Throws:
ParseException

setTimeFilterFields

public static void setTimeFilterFields(int backDays,
                                       JTextField txtFrom,
                                       JTextField txtTo)

IsTextFieldEmpty

public static boolean IsTextFieldEmpty(JTextField tf)

AreAllTextFieldsFilled

public static boolean AreAllTextFieldsFilled(JTextField[] tfs)

isFilledString

public static boolean isFilledString(String s)

isApiAccountFilled

public static boolean isApiAccountFilled(ApiAccount ac)

isApiContextFilled

public static boolean isApiContextFilled(ApiContext ctx,
                                         boolean checkEBayAccount)

isTextControlFilled

public static boolean isTextControlFilled(JTextComponent tc,
                                          String errorMessage)
                                   throws SdkException
Checks if a text control is filled. If errorMessage is null an SdkException will be thrown with the specified error message.

Parameters:
tc - JTextComponent
errorMessage - String
Returns:
boolean
Throws:
SdkException

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.