com.ebay.sdk.helper.ui
Class GuiUtil
java.lang.Object
com.ebay.sdk.helper.ui.GuiUtil
public class GuiUtil
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GuiUtil
public GuiUtil()
CenterComponent
public static void CenterComponent(java.awt.Component frame)
JListClearData
public static void JListClearData(javax.swing.JList list)
JListAddObject
public static void JListAddObject(javax.swing.JList list,
java.lang.Object item)
JListRemoveSelectedObject
public static void JListRemoveSelectedObject(javax.swing.JList list)
getMoneyField
public static AmountType getMoneyField(javax.swing.JTextField tf)
getCalendarFromField
public static java.util.Calendar getCalendarFromField(javax.swing.JTextField txtField)
throws java.text.ParseException
- Throws:
java.text.ParseException
getTimeFilterFromFields
public static TimeFilter getTimeFilterFromFields(javax.swing.JTextField txtFrom,
javax.swing.JTextField txtTo)
throws java.text.ParseException
- Throws:
java.text.ParseException
setTimeFilterFields
public static void setTimeFilterFields(int backDays,
javax.swing.JTextField txtFrom,
javax.swing.JTextField txtTo)
IsTextFieldEmpty
public static boolean IsTextFieldEmpty(javax.swing.JTextField tf)
AreAllTextFieldsFilled
public static boolean AreAllTextFieldsFilled(javax.swing.JTextField[] tfs)
isFilledString
public static boolean isFilledString(java.lang.String s)
isApiAccountFilled
public static boolean isApiAccountFilled(ApiAccount ac)
isApiContextFilled
public static boolean isApiContextFilled(ApiContext ctx,
boolean checkEBayAccount)
isTextControlFilled
public static boolean isTextControlFilled(javax.swing.text.JTextComponent tc,
java.lang.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
- JTextComponenterrorMessage
- String
- Returns:
- boolean
- Throws:
SdkException
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.