|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wgmecad.PortUtils
A collection of utilities that differ client's behavior on R7 and X05.
Objective: to keep all clients file except this as much alike as possible in
both streams, ideally - not differing at all.
Constructor Summary | |
PortUtils()
|
Method Summary | |
static String |
correctNumber(String number)
Uppercases input arg in X05, returns as is in R7 as X-05 needs to uppercase Number fields automatically |
static JTextField |
newNumberField()
Returns new instance of UpperCaseJTextField for X-05, new instance javax.swing.JTextField for 7.0 as X-05 needs to uppercase Number fields automatically |
static boolean |
validateAttribute(String attributeName,
String attributeValue)
Wrapper for com.ptc.epm.commands.util.AttributeHelper.validateAttribute which is throwing WTException in X05, and doesn't in R7 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PortUtils()
Method Detail |
public static JTextField newNumberField()
public static String correctNumber(String number)
number
- Incoming doc number
public static boolean validateAttribute(String attributeName, String attributeValue)
attributeName
- Attribute's nameattributeValue
- Attribute's value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |