amber.server.component
Interface BaseMenu

All Known Implementing Classes:
MenuBarHandler, PopupMenuHandler

public interface BaseMenu


Method Summary
 int getBaseOffset()
          This function returns the base offset that all menu components off this menu must reference.
 int getIdOffset(int id)
          This function returns what the input ID would be if it were offset by the base offset.
 int removeIdOffset(int id)
          This function returns what the input ID would be if it were not offset by the base offset.
 

Method Detail

getBaseOffset

public int getBaseOffset()
This function returns the base offset that all menu components off this menu must reference.
Returns:
int containing the base offset.

getIdOffset

public int getIdOffset(int id)
This function returns what the input ID would be if it were offset by the base offset.
Parameters:
id - int ID value to offset.
Returns:
int containing the ID value offset by the base offset.

removeIdOffset

public int removeIdOffset(int id)
This function returns what the input ID would be if it were not offset by the base offset.
Parameters:
id - int ID value including offset.
Returns:
int containing the ID value with no base offset.


Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.