Servoy 5.x Public API

com.servoy.j2db.server.headlessclient.dataui
Class WebComponentSpecialIdMaker

java.lang.Object
  extended by com.servoy.j2db.server.headlessclient.dataui.WebComponentSpecialIdMaker

public class WebComponentSpecialIdMaker
extends Object

Utility class for determining the markup ID of a given component. Uses the servoy id of that component and adds indexes in case of table/list view.

Called by overriden methods of Component.getMarkupId()

Since:
5.0

Constructor Summary
WebComponentSpecialIdMaker()
           
 
Method Summary
static String getSpecialId(int selectedIndex, org.apache.wicket.Component component)
           
static String getSpecialIdIfAppropriate(org.apache.wicket.Component component)
          Determines the markup ID of a given component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebComponentSpecialIdMaker

public WebComponentSpecialIdMaker()
Method Detail

getSpecialId

public static String getSpecialId(int selectedIndex,
                                  org.apache.wicket.Component component)

getSpecialIdIfAppropriate

public static String getSpecialIdIfAppropriate(org.apache.wicket.Component component)
Determines the markup ID of a given component. Uses the servoy id of that component and adds indexes in case of table/list view in order to make id's unique.

Parameters:
component - the component who's markup id is computed and returned.
Returns:
the markup id for the given component.

Copyright © 2010 Servoy B.V.