using a 317 pi client and source.

Hello i'd wanted to create a custom interface, how would i go about making my interface clickable through the clickingbuttons.java with the correct actionbuttonid? like, how do i know what actionbuttonid i need to assign to make it work with my interface?