How to get an icon of an object in Windchill
2013-03-20 00:00
751 查看
public static String getIcon(WTObject wtobject) throws Exception { IconDelegate icondelegate = IconDelegateFactory.getInstance().getIconDelegate(wtobject); IconSelector iconselector; for(iconselector = icondelegate.getStandardIconSelector(); !iconselector.isResourceKey(); iconselector = icondelegate.getStandardIconSelector()){ icondelegate = icondelegate.resolveSelector(iconselector); } URLFactory urlfactory = new URLFactory(); return urlfactory.getHREF(iconselector.getIconKey()); }
相关文章推荐
- How to get the published properties of an persistent object
- [eZ publish] When a ezxml embed an video, how to get the ezxml object in the video embed template?
- How to access the properties of an object in Javascript
- How to update an object in Windchill with IBAs
- How do I get the name of an object's type in JavaScript
- How to get IOleSite interface of the WebBrowser in an ActiveX control
- uiview 某点返回 色值 How to get the color of a pixel in an UIView?
- flex/in the datagrid,how to get the new value of cell in the datagrid after edit
- How do you copy the contents of an array to a std::vector in C++ without looping? (From stack over flow)
- Javascript: How to enumerate property of an object ?
- How to Compare two layer’s object: Get AOT objects both modified in USR & SL1 layer
- How to get request_id of previous request in a request set?
- 在C++中怎样获得数组的大小?(原文标题:How Would You Get the Count of an Array in C++?)
- How to Get the Length of File in C
- How to get the length of array of strings in C? - Yahoo! Answers
- Know How To Use ID_NULL Function To Search An Object In Oracle Forms
- How to Get the Frequency Table of a Categorical Variable as a Data Frame in R
- How to draw an Icon on the IndicatorPane of Series 60
- How to Get First and Last Day of a Month in SQL Server
- How to get the object type in javascript: