/** * Create a graphical representation of the object. The constructor calls the abstract * createGraphic method of this class to create the custom graphic which is then added to the * OMGraphicList. This method also sets the SimpleBeanObject's id as the appObject associated with * the created graphic. */ public CustomGraphic(SimpleBeanObject object) { super(1); setTraverseMode(OMGraphicList.LAST_ADDED_ON_TOP); graphic = createGraphic(object); super.add(graphic); putAttribute(OMGraphic.APP_OBJECT, new Long(object.getId())); }