com.sybase.uep.bobclient.controls
Class LayoutManager

java.lang.Object
  extended by net.rim.device.api.ui.Field
      extended by net.rim.device.api.ui.Manager
          extended by com.sybase.uep.bobclient.controls.LayoutManager
All Implemented Interfaces:
ScreenProperties
Direct Known Subclasses:
ClientLogsTab, RegionManager, ServerLogsTab, TwoColumnLayout

public class LayoutManager
extends net.rim.device.api.ui.Manager
implements ScreenProperties

This is the Layout manager control

Author:
tdang

Field Summary
protected  int[] _columnPercentages
           
protected  int _controlID
           
protected  RowLayout _currentRowLayout
           
protected  CustomEventsHandler _customEventsHandler
           
protected  int _orientation
           
static int DEFAULT_MARGIN
           
static int DEFAULT_SPACING
           
 
Fields inherited from class net.rim.device.api.ui.Manager
BOTTOMMOST, DOWNWARD, HORIZONTAL_SCROLL, HORIZONTAL_SCROLL_MASK, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_MASK, LEAVE_BLANK_SPACE, LEFTMOST, LEFTWARD, NO_HORIZONTAL_SCROLL, NO_HORIZONTAL_SCROLLBAR, NO_SCROLL_RESET, NO_VERTICAL_SCROLL, NO_VERTICAL_SCROLLBAR, QUANTA_FONT, RIGHTMOST, RIGHTWARD, TOPMOST, UPWARD, VERTICAL_SCROLL, VERTICAL_SCROLL_MASK, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_MASK
 
Fields inherited from class net.rim.device.api.ui.Field
ACTION_INVOKE, EDITABLE, EDITABLE_MASK, FIELD_BOTTOM, FIELD_HALIGN_MASK, FIELD_HCENTER, FIELD_LEADING, FIELD_LEFT, FIELD_RIGHT, FIELD_TOP, FIELD_TRAILING, FIELD_VALIGN_MASK, FIELD_VCENTER, FOCUSABLE, FOCUSABLE_MASK, HIGHLIGHT_FOCUS, HIGHLIGHT_SELECT, NON_FOCUSABLE, NON_SPELLCHECKABLE, READONLY, SPELLCHECKABLE, SPELLCHECKABLE_MASK, STATUS_MOVE_FOCUS_HORIZONTALLY, STATUS_MOVE_FOCUS_VERTICALLY, USE_ALL_HEIGHT, USE_ALL_WIDTH, VISUAL_STATE_ACTIVE, VISUAL_STATE_DISABLED, VISUAL_STATE_DISABLED_FOCUS, VISUAL_STATE_FOCUS, VISUAL_STATE_NORMAL
 
Fields inherited from interface com.sybase.uep.bobclient.constants.ScreenProperties
ABOUT_SCREEN_CLOSE_MENU_LABEL, ABOUT_SCREEN_DESCRIPTION, ABOUT_SCREEN_FLASH_ALLOWCATED_LABEL, ABOUT_SCREEN_FLASH_FREE_LABEL, ABOUT_SCREEN_FLASH_OBJECTS_LABEL, ABOUT_SCREEN_FONT_STYLE, ABOUT_SCREEN_LOGO_IMAGE, ABOUT_SCREEN_NAVIGATION_BORDER_STYLE, ABOUT_SCREEN_NAVIGATION_STYLE, ABOUT_SCREEN_RAM_ALLOWCATED_LABEL, ABOUT_SCREEN_RAM_FREE_LABEL, ABOUT_SCREEN_RAM_OBJECTS_LABEL, ABOUT_SCREEN_SHOW_DEVICE_INFO, ABOUT_SCREEN_VERSION_LABEL, APPLOG_Details_SCREEN_CANCELL_MENU_ACTION, APPLOG_Details_SCREEN_CANCELL_MENU_LABEL, APPLOG_Details_SCREEN_FONT_STYLE, APPLOG_Details_SCREEN_LABEL_PENDING_FONT_STYLE, APPLOG_Details_SCREEN_LOG_LEVEL_DEBUG_LABEL, APPLOG_Details_SCREEN_LOG_LEVEL_ERROR_LABEL, APPLOG_Details_SCREEN_LOG_LEVEL_FATAL_LABEL, APPLOG_Details_SCREEN_LOG_LEVEL_INFO_LABEL, APPLOG_Details_SCREEN_LOG_LEVEL_LABEL, APPLOG_Details_SCREEN_LOG_LEVEL_WARN_LABEL, APPLOG_Details_SCREEN_LOG_MESSAGE_LABEL, APPLOG_Details_SCREEN_LOG_STATUS_CLIENTONLY, APPLOG_Details_SCREEN_LOG_STATUS_UPLOADED, APPLOG_Details_SCREEN_LOG_TIME_LABEL, APPLOG_Details_SCREEN_NAVIGATION_BORDER_STYLE, APPLOG_Details_SCREEN_NAVIGATION_STYLE, APPLOG_Details_SCREEN_PENDING_FONT_STYLE, APPLOG_Details_SCREEN_STATUS_LABEL, APPLOG_Details_SCREEN_TITLE, APPLOGS_SCREEN_CLIENTLOG_TAB_TITLE, APPLOGS_SCREEN_CLOSE_MENU_LABEL, APPLOGS_SCREEN_DEBUG_LEVEL_LABEL, APPLOGS_SCREEN_DELETE_ALL_LOGS_MENU_LABEL, APPLOGS_SCREEN_DELETE_ALL_LOGS_MESSAGE, APPLOGS_SCREEN_DELETE_LOG_MENU_LABEL, APPLOGS_SCREEN_DELETE_LOG_MESSAGE, APPLOGS_SCREEN_DELETE_LOGLEVELTREE_MESSAGE, APPLOGS_SCREEN_DETAIL_MENU_LABEL, APPLOGS_SCREEN_ERROR_LEVEL_LABEL, APPLOGS_SCREEN_FATAl_LEVEL_LABEL, APPLOGS_SCREEN_HEADER_FONT_STYLE, APPLOGS_SCREEN_INFO_LEVEL_LABEL, APPLOGS_SCREEN_LOG_LEVEL_DEBUG_ICON, APPLOGS_SCREEN_LOG_LEVEL_ERROR_ICON, APPLOGS_SCREEN_LOG_LEVEL_FATAL_ICON, APPLOGS_SCREEN_LOG_LEVEL_INFO_ICON, APPLOGS_SCREEN_LOG_LEVEL_WARN_ICON, APPLOGS_SCREEN_LOGLEVEL_NODE_ITEM_LABEL, APPLOGS_SCREEN_LOGLEVEL_NODE_ITEMS_LABEL, APPLOGS_SCREEN_NAVIGATION_BORDER_STYLE, APPLOGS_SCREEN_SORT_ON_LOGTIME_MENU_LABEL, APPLOGS_SCREEN_SYNCHRONIZE_MENU_LABEL, APPLOGS_SCREEN_TITLE, APPLOGS_SCREEN_UPLOAD_ALL_LOGS_MENU_LABEL, APPLOGS_SCREEN_UPLOAD_LOG_MENU_LABEL, APPLOGS_SCREEN_WARN_LEVEL_LABEL, BUTTON_ACTION, BUTTON_BORDER_COLOR, BUTTON_IMAGE, BUTTON_IMAGE_ALIGNMENT, BUTTON_LABEL, BUTTON_WIDTH, CHECKBOX_CHECK, CHECKBOX_LABEL, DATE_CHOICE_LABEL, FOOTER_BORDER_COLOR, FOOTER_FONT_STYLE, FOOTER_HAS_BORDER, FOOTER_LABEL, HORIZONTAL_RULER_COLOR, HORIZONTAL_RULER_THICKNESS, HORIZONTAL_RULER_WIDTH, HYPERLINK_ACTION, HYPERLINK_LABEL, LABEL_TEXT, LAYOUT_DISPLAY_FONT_STYLE, LAYOUT_EVEN_ROW_FONT_STYLE, LAYOUT_NUMBER_OF_COLUMNS, LAYOUT_ODD_ROW_FONT_STYLE, LAYOUT_SHOW_ALT_COLORS, LIST_ITEM_BORDER_COLOR, LIST_ITEM_HAS_BORDER, LIST_ITEM_ICON, LIST_ITEM_LABEL, LOG_INFO_SCREEN_CLOSE_ACTION, LOG_INFO_SCREEN_CLOSE_MENU_LABEL, LOG_INFO_SCREEN_LOG_APPLICATION_NAME_LABEL, LOG_INFO_SCREEN_LOG_DATE_LABEL, LOG_INFO_SCREEN_LOG_MESSAGE_LABEL, LOG_INFO_SCREEN_LOG_STATUS_FAILED_LABEL, LOG_INFO_SCREEN_LOG_STATUS_LABEL, LOG_INFO_SCREEN_LOG_STATUS_SUCCESS_LABEL, LOG_INFO_SCREEN_NAVIGATION_BORDER_STYLE, LOG_INFO_SCREEN_NAVIGATION_STYLE, LOG_INFO_SCREEN_TITLE, LOGCONFIG_SCREEN_BUTTON_FOCUS_FONT_STYLE, LOGCONFIG_SCREEN_BUTTON_UNFOCUS_FONT_STYLE, LOGCONFIG_SCREEN_CLOSE_BUTTON_LABEL, LOGCONFIG_SCREEN_CLOSE_MENU_LABEL, LOGCONFIG_SCREEN_FONT_STYLE, LOGCONFIG_SCREEN_LABEL_FONT_STYLE, LOGCONFIG_SCREEN_LOGLEVEL_SELECT_DEBUG_LABEL, LOGCONFIG_SCREEN_LOGLEVEL_SELECT_ERROR_LABEL, LOGCONFIG_SCREEN_LOGLEVEL_SELECT_FATAL_LABEL, LOGCONFIG_SCREEN_LOGLEVEL_SELECT_INFO_LABEL, LOGCONFIG_SCREEN_LOGLEVEL_SELECT_OFF_LABEL, LOGCONFIG_SCREEN_LOGLEVEL_SELECT_WARN_LABEL, LOGCONFIG_SCREEN_NO_CHANGE_MESSAGE, LOGCONFIG_SCREEN_SAVE_BUTTON_LABEL, LOGCONFIG_SCREEN_SAVE_MENU_LABEL, LOGCONFIG_SCREEN_TITLE, LOGGING_SCREEN_DEFAULT_DELETELOG_CHECKBOX_LABEL, LOGGING_SCREEN_DEFAULT_DELETELOGS, LOGGING_SCREEN_DEFAULT_LOG_LEVEL, LOGGING_SCREEN_DEFAULT_LOG_LEVEL_LABEL, LOGGING_SCREEN_NAVIGATION_BORDER_STYLE, LOGGING_SCREEN_NAVIGATION_STYLE, LOGGING_SCREEN_SAVE_LOGSETTING_MESSAGE, LOGIN_SCREEN_BANNER_IMAGE, LOGIN_SCREEN_BUTTON_FOCUS_FONT_STYLE, LOGIN_SCREEN_BUTTON_UNFOCUS_FONT_STYLE, LOGIN_SCREEN_ERROR_AUTHENTICATE_MESSAGE, LOGIN_SCREEN_ERROR_LOADING_PROFILE_MESSAGE, LOGIN_SCREEN_EXIT_BUTTON_LABEL, LOGIN_SCREEN_EXIT_MENU_LABEL, LOGIN_SCREEN_FAILED_LOGIN_ALERT_MESSAGE, LOGIN_SCREEN_FAILURE_ACTION, LOGIN_SCREEN_FONT_STYLE, LOGIN_SCREEN_LOGIN_BUTTON_LABEL, LOGIN_SCREEN_LOGIN_LABEL, LOGIN_SCREEN_LOGIN_MENU_LABEL, LOGIN_SCREEN_LOGIN_PROMPT_MESSAGE, LOGIN_SCREEN_NAVIGATION_BORDER_STYLE, LOGIN_SCREEN_NAVIGATION_STYLE, LOGIN_SCREEN_PASSWORD_LABEL, LOGIN_SCREEN_PASSWORD_PROMPT_MESSAGE, LOGIN_SCREEN_SHOW_BUTTONS, LOGIN_SCREEN_SHOW_LOGO, LOGIN_SCREEN_SUCCESS_ACTION, LOGIN_SCREEN_WAIT_AUTHENTICATE_MESSAGE, LOGS_SCREEN_ADD_NAVIGATIONBAR_OPTION, LOGS_SCREEN_ALERT_CANCEL_LABEL, LOGS_SCREEN_ALERT_OK_LABEL, LOGS_SCREEN_CLOSE_ACTION, LOGS_SCREEN_CLOSE_MENU_LABEL, LOGS_SCREEN_DELETE_ALL_LOGS_MENU_LABEL, LOGS_SCREEN_DELETE_ALL_LOGS_MESSAGE, LOGS_SCREEN_DELETE_LOG_MENU_LABEL, LOGS_SCREEN_DELETE_LOG_MESSAGE, LOGS_SCREEN_DETAIL_MENU_LABEL, LOGS_SCREEN_LOADING_MBO_ERROR_MESSAGE, LOGS_SCREEN_LOG_ERROR_ICON, LOGS_SCREEN_LOG_ICON, LOGS_SCREEN_MBO_ICON, LOGS_SCREEN_NAVIGATION_BORDER_STYLE, LOGS_SCREEN_NAVIGATION_STYLE, LOGS_SCREEN_NAVIGATION_TITLE, LOGS_SCREEN_NO_LOGS_LABEL, LOGS_SCREEN_PACKAGE_ICON, LOGS_SCREEN_SCREEN_FONT_STYLE, LOGS_SCREEN_SERVERLOG_TAB_TITLE, LOGS_SCREEN_SYNCHRONIZE_MENU_LABEL, MOBILE_OBJECT_INFO_SCREEN_CLOSE_ACTION, MOBILE_OBJECT_INFO_SCREEN_CLOSE_MENU_LABEL, MOBILE_OBJECT_INFO_SCREEN_NAME_LABEL, MOBILE_OBJECT_INFO_SCREEN_TITLE, NAVIGATION_BAR_BORDER_STYLE, NAVIGATION_BAR_FONT_STYLE, NAVIGATION_BAR_LABEL, PASSWORD_INPUT_BORDER_COLOR, PASSWORD_INPUT_EMPTY_MEANS_NULL, PASSWORD_INPUT_LABEL, PASSWORD_INPUT_SHOW_BORDER, PENDING_OPERATION_INFO_SCREEN_CLOSE_ACTION, PENDING_OPERATION_INFO_SCREEN_CLOSE_MENU_LABEL, PENDING_OPERATION_INFO_SCREEN_LAST_MODIFIED_LABEL, PENDING_OPERATION_INFO_SCREEN_NAVIGATION_BORDER_STYLE, PENDING_OPERATION_INFO_SCREEN_NAVIGATION_STYLE, PENDING_OPERATION_INFO_SCREEN_OPERATION_NAME_LABEL, PENDING_OPERATION_INFO_SCREEN_PARAMETER_LIST_LABEL, PENDING_OPERATION_INFO_SCREEN_STATUS_DISABLED_LABEL, PENDING_OPERATION_INFO_SCREEN_STATUS_LABEL, PENDING_OPERATION_INFO_SCREEN_STATUS_PENDING_LABEL, PENDING_OPERATION_INFO_SCREEN_TITLE, PENDING_OPERATION_SCREEN_ALERT_CANCEL_LABEL, PENDING_OPERATION_SCREEN_ALERT_DELETE_ALL_OPERATIONS_MESSAGE, PENDING_OPERATION_SCREEN_ALERT_DELETE_OPERATION_MESSAGE, PENDING_OPERATION_SCREEN_ALERT_OK_LABEL, PENDING_OPERATION_SCREEN_ALERT_SUBMIT_ALL_OPERATIONS_MESSAGE, PENDING_OPERATION_SCREEN_ALERT_SUBMIT_PACKAGE_OPERATION_MESSAGE, PENDING_OPERATION_SCREEN_ALERT_SUBMIT_PUBLICATION_OPERATION_MESSAGE, PENDING_OPERATION_SCREEN_CLOSE_ACTION, PENDING_OPERATION_SCREEN_CLOSE_MENU_LABEL, PENDING_OPERATION_SCREEN_DELETE_ALL_OPERATION_MENU_LABEL, PENDING_OPERATION_SCREEN_DELETE_ICON, PENDING_OPERATION_SCREEN_DELETE_OPERATION_MENU_LABEL, PENDING_OPERATION_SCREEN_DELETE_TREE_LABEL, PENDING_OPERATION_SCREEN_DISABLE_ICON, PENDING_OPERATION_SCREEN_DISABLE_OPERATION_MENU_LABEL, PENDING_OPERATION_SCREEN_ENABLE_ICON, PENDING_OPERATION_SCREEN_ENABLE_OPERATION_MENU_LABEL, PENDING_OPERATION_SCREEN_FONT_STYLE, PENDING_OPERATION_SCREEN_FOOTER_DISABLED_LABEL, PENDING_OPERATION_SCREEN_FOOTER_PENDING_LABEL, PENDING_OPERATION_SCREEN_INSERT_ICON, PENDING_OPERATION_SCREEN_INSERT_TREE_LABEL, PENDING_OPERATION_SCREEN_LOADING_MBO_ERROR_MESSAGE, PENDING_OPERATION_SCREEN_MBO_ICON, PENDING_OPERATION_SCREEN_NAVIGATION_BORDER_STYLE, PENDING_OPERATION_SCREEN_NAVIGATION_STYLE, PENDING_OPERATION_SCREEN_NO_OPERATION_TREE_LABEL, PENDING_OPERATION_SCREEN_OPERATION_INFO_MENU_LABEL, PENDING_OPERATION_SCREEN_OTHER_ICON, PENDING_OPERATION_SCREEN_OTHER_TREE_LABEL, PENDING_OPERATION_SCREEN_PACKAGE_ICON, PENDING_OPERATION_SCREEN_PUBLICATION_ICON, PENDING_OPERATION_SCREEN_SUBMIT_ALL_OPERATION_MENU_LABEL, PENDING_OPERATION_SCREEN_SUBMIT_OPERATION_MENU_LABEL, PENDING_OPERATION_SCREEN_UPDATE_ICON, PENDING_OPERATION_SCREEN_UPDATE_TREE_LABEL, PERSONALIZATION_SCREEN_ADD_MENU_LABEL, PERSONALIZATION_SCREEN_BUTTON_FOCUS_FONT_STYLE, PERSONALIZATION_SCREEN_BUTTON_UNFOCUS_FONT_STYLE, PERSONALIZATION_SCREEN_CLOSE_ACTION, PERSONALIZATION_SCREEN_CLOSE_BUTTON_LABEL, PERSONALIZATION_SCREEN_CLOSE_MENU_LABEL, PERSONALIZATION_SCREEN_EDIT_MENU_LABEL, PERSONALIZATION_SCREEN_ERROR_LOADING_PERSONALIZATION_MESSAGE, PERSONALIZATION_SCREEN_FONT_STYLE, PERSONALIZATION_SCREEN_LABEL_FONT_STYLE, PERSONALIZATION_SCREEN_NAVIGATION_BORDER_STYLE, PERSONALIZATION_SCREEN_NAVIGATION_STYLE, PERSONALIZATION_SCREEN_NO_PERSONALIZATION_APP_MESSAGE, PERSONALIZATION_SCREEN_NO_PERSONALIZATION_KEYS_MESSAGE, PERSONALIZATION_SCREEN_NO_PERSONALIZATION_KEYS_NO_CHANGE_MESSAGE, PERSONALIZATION_SCREEN_PACKAGE_ICON, PERSONALIZATION_SCREEN_PERSONALIZATION_ICON, PERSONALIZATION_SCREEN_REMOVE_MENU_LABEL, PERSONALIZATION_SCREEN_SAVE_ACTION, PERSONALIZATION_SCREEN_UPDATE_BUTTON_LABEL, PERSONALIZATION_SCREEN_UPDATE_MENU_LABEL, PERSONALIZATION_SCREEN_VALUE_MAX_LENGTH, PERSONALIZATION_SCREEN_VALUE_NULL_MESSAGE, PERSONALIZATION_SCREEN_VALUE_TOO_LONG_MESSAGE, PROFILE_SCREEN_CLOSE_MENU_LABEL, PROFILE_SCREEN_EDIT_PROFILE_MENU_LABEL, PROFILE_SCREEN_ERROR_LOADING_PROFILE_MSG, PROFILE_SCREEN_ERROR_SAVING_PROFILE_MSG, PROFILE_SCREEN_FONT_STYLE, PROFILE_SCREEN_LOGIN_PROFILE_ICON, PROFILE_SCREEN_LOGIN_PROFILE_MENU_LABEL, PROFILE_SCREEN_NAVIGATION_BORDER_STYLE, PROFILE_SCREEN_NAVIGATION_STYLE, PROFILE_SCREEN_SET_LOGIN_PROFILE_ERROR_MSG, PROFILE_UPDATE_SCREEN_CANCEL_MENU_LABEL, PROFILE_UPDATE_SCREEN_CLOSE_ACTION, PROFILE_UPDATE_SCREEN_FONT_STYLE, PROFILE_UPDATE_SCREEN_LABEL_FONT_STYLE, PROFILE_UPDATE_SCREEN_LOGIN_PROFILE_ICON, PROFILE_UPDATE_SCREEN_NAVIGATION_BORDER_STYLE, PROFILE_UPDATE_SCREEN_NAVIGATION_STYLE, PROFILE_UPDATE_SCREEN_NO_PROFILE_MSG, PROFILE_UPDATE_SCREEN_NOTHING_CHANGED_MSG, PROFILE_UPDATE_SCREEN_ONLINE_LOGIN_ERROR_MSG, PROFILE_UPDATE_SCREEN_PASSWORD_INPUT_LABEL, PROFILE_UPDATE_SCREEN_PORT_NUMBER_INPUT_LABEL, PROFILE_UPDATE_SCREEN_PROFILE_NAME_INPUT_LABEL, PROFILE_UPDATE_SCREEN_SAVE_ACTION, PROFILE_UPDATE_SCREEN_SAVE_MENU_LABEL, PROFILE_UPDATE_SCREEN_SAVE_PROFILE_SUCCESS_MSG, PROFILE_UPDATE_SCREEN_SAVE_PROFILE_SUCCESS_SUGGESTION_MSG, PROFILE_UPDATE_SCREEN_SERVER_INPUT_LABEL, PROFILE_UPDATE_SCREEN_STREAM_PARAMS_INPUT_LABEL, PROFILE_UPDATE_SCREEN_TITLE, PROFILE_UPDATE_SCREEN_UPDATE_DUPLICATE_PROFILE_NAME_MSG, PROFILE_UPDATE_SCREEN_UPDATE_ENTER_PROFILE_NAME_MSG, PROFILE_UPDATE_SCREEN_UPDATE_ENTER_SERVER_NAME_MSG, PROFILE_UPDATE_SCREEN_UPDATE_ENTER_SERVER_PORT_MSG, PROFILE_UPDATE_SCREEN_UPDATE_ENTER_USER_NAME_MSG, PROFILE_UPDATE_SCREEN_UPDATE_PORT_INVALID_MSG, PROFILE_UPDATE_SCREEN_UPDATE_SECURE_LABEL, PROFILE_UPDATE_SCREEN_UPDATE_VALIDATING_MSG, PROFILE_UPDATE_SCREEN_USERNAME_INPUT_LABEL, PUSH_LOGS_CLEAR_LOGS_MENU_LABEL, PUSH_LOGS_CLOSE_ACTION, PUSH_LOGS_CLOSE_MENU_LABEL, PUSH_LOGS_SAVE_ACTION, PUSH_LOGS_SCREEN_ERROR_LOADING_SYNC_GROUP_INFO_MSG, PUSH_LOGS_SCREEN_ERROR_SAVING_SYNC_GROUP_MSG, PUSH_LOGS_SCREEN_NAVIGATION_BORDER_STYLE, PUSH_LOGS_SCREEN_NAVIGATION_FONT_STYLE, PUSH_LOGS_SCREEN_TITLE, PUSH_SETTINGS_INFORMATION_FONT_STYLE, PUSH_SETTINGS_LABEL_FONT_STYLE, PUSH_SETTINGS_SCREEN_BUTTON_FOCUS_FONT_STYLE, PUSH_SETTINGS_SCREEN_BUTTON_UNFOCUS_FONT_STYLE, PUSH_SETTINGS_SCREEN_CANCEL_BUTTON_LABEL, PUSH_SETTINGS_SCREEN_CANCEL_MENU_LABEL, PUSH_SETTINGS_SCREEN_ENTER_HTTP_MDS_PORT_MESSAGE, PUSH_SETTINGS_SCREEN_ENTER_HTTP_MDS_SERVER_MESSAGE, PUSH_SETTINGS_SCREEN_ERROR_LOADING_SETTINGS_MESSAGE, PUSH_SETTINGS_SCREEN_FONT_STYLE, PUSH_SETTINGS_SCREEN_HTTP_INPUT_LABEL, PUSH_SETTINGS_SCREEN_HTTP_INPUT_MESSAGE, PUSH_SETTINGS_SCREEN_HTTP_INVALID_MDS_PORT_MESSAGE, PUSH_SETTINGS_SCREEN_HTTP_MDS_PORT, PUSH_SETTINGS_SCREEN_HTTP_MDS_PORT_INPUT_LABEL, PUSH_SETTINGS_SCREEN_HTTP_MDS_SERVER_INPUT_LABEL, PUSH_SETTINGS_SCREEN_HTTP_MDS_SERVER_NAME, PUSH_SETTINGS_SCREEN_NAVIGATION_BORDER_STYLE, PUSH_SETTINGS_SCREEN_NAVIGATION_STYLE, PUSH_SETTINGS_SCREEN_SAVE_BUTTON_LABEL, PUSH_SETTINGS_SCREEN_SAVE_MENU_LABEL, PUSH_SETTINGS_SCREEN_SAVE_SUCCESS_MESSAGE, RADIO_BOX_GROUP_DISPLAY_FONT_STYLE, RADIO_BOX_GROUP_SELECTED_RADIO_LABEL, RADIOBOX_LABEL, SCALAR_PERSONALIZATION_EDITOR_SCREEN_CLOSE_BUTTON_LABEL, SCALAR_PERSONALIZATION_EDITOR_SCREEN_CLOSE_MENU_LABEL, SCALAR_PERSONALIZATION_EDITOR_SCREEN_PERS_KEY_VALUE_LABEL, SCALAR_PERSONALIZATION_EDITOR_SCREEN_SAVE_BUTTON_LABEL, SCALAR_PERSONALIZATION_EDITOR_SCREEN_SAVE_MENU_LABEL, SCALAR_PERSONALIZATION_EDITOR_SCREEN_TITLE, SCREEN_SAVER_SCREEN_BUTTON_FOCUS_FONT_STYLE, SCREEN_SAVER_SCREEN_BUTTON_UNFOCUS_FONT_STYLE, SCREEN_SAVER_SCREEN_CANCEL_BUTTON_LABEL, SCREEN_SAVER_SCREEN_CANCEL_MENU_LABEL, SCREEN_SAVER_SCREEN_CHANGE_IDLE_TIME, SCREEN_SAVER_SCREEN_CHANGE_SCREEN_SAVER, SCREEN_SAVER_SCREEN_ENABLE_SCREEN_SAVER_LABEL, SCREEN_SAVER_SCREEN_ERROR_LOADING_SETTINGS_MESSAGE, SCREEN_SAVER_SCREEN_FONT_STYLE, SCREEN_SAVER_SCREEN_IDLE_TIME_MESSAGE, SCREEN_SAVER_SCREEN_LOCK_CLIENT_NOW_LABEL, SCREEN_SAVER_SCREEN_LOCK_CLIENT_NOW_PROMPT_MESSAGE, SCREEN_SAVER_SCREEN_NAVIGATION_BORDER_STYLE, SCREEN_SAVER_SCREEN_NAVIGATION_STYLE, SCREEN_SAVER_SCREEN_SAVE_ACTION, SCREEN_SAVER_SCREEN_SAVE_BUTTON_LABEL, SCREEN_SAVER_SCREEN_SAVE_MENU_LABEL, SCREEN_SAVER_SCREEN_SAVE_SUCCESS_MESSAGE, SCREEN_SAVER_SCREEN_SHOW_BUTTONS, SCREEN_SAVER_SCREEN_WAIT_LABEL, SEARCH_SCREEN_ALL_COLUMN_SELECT_LABEL, SEARCH_SCREEN_BLOB_ERROR_MESSAGE, SEARCH_SCREEN_BUTTON_FOCUS_FONT_STYLE, SEARCH_SCREEN_BUTTON_UNFOCUS_FONT_STYLE, SEARCH_SCREEN_CLOSE_BUTTON_LABEL, SEARCH_SCREEN_CLOSE_MENU_LABEL, SEARCH_SCREEN_COLUMN_SELECT_LABEL, SEARCH_SCREEN_COMPARISON_SELECT_AND_LABEL, SEARCH_SCREEN_COMPARISON_SELECT_LABEL, SEARCH_SCREEN_COMPARISON_SELECT_OR_LABEL, SEARCH_SCREEN_ENTER_SEARCH_VALUE_ALERT, SEARCH_SCREEN_FAILURE_ACTION, SEARCH_SCREEN_FILTER_SELECT_CONTAINS_LABEL, SEARCH_SCREEN_FILTER_SELECT_DOES_NOT_CONTAIN_LABEL, SEARCH_SCREEN_FILTER_SELECT_DOES_NOT_END_WITH_LABEL, SEARCH_SCREEN_FILTER_SELECT_DOES_NOT_START_WITH_LABEL, SEARCH_SCREEN_FILTER_SELECT_ENDS_WITH_LABEL, SEARCH_SCREEN_FILTER_SELECT_EQUAL_LABEL, SEARCH_SCREEN_FILTER_SELECT_GREATER_THAN_LABEL, SEARCH_SCREEN_FILTER_SELECT_GREATER_THEN_OR_EQUAL_LABEL, SEARCH_SCREEN_FILTER_SELECT_LABEL, SEARCH_SCREEN_FILTER_SELECT_LESS_THAN_LABEL, SEARCH_SCREEN_FILTER_SELECT_LESS_THAN_OR_EQUAL_LABEL, SEARCH_SCREEN_FILTER_SELECT_LIKE_LABEL, SEARCH_SCREEN_FILTER_SELECT_NOT_EQUAL_LABEL, SEARCH_SCREEN_FILTER_SELECT_NOT_LIKE_LABEL, SEARCH_SCREEN_FILTER_SELECT_STARTS_WITH_LABEL, SEARCH_SCREEN_FIND_BUTTON_LABEL, SEARCH_SCREEN_FIND_INPUT_LABEL, SEARCH_SCREEN_FIND_MENU_LABEL, SEARCH_SCREEN_LABEL_FONT_STYLE, SEARCH_SCREEN_MOBILE_APP_UNDEFINED_ERROR_MSG, SEARCH_SCREEN_MOBILE_ERROR_LOADING_MOBILE_APP_MSG, SEARCH_SCREEN_NAVIGATION_BORDER_STYLE, SEARCH_SCREEN_NAVIGATION_STYLE, SEARCH_SCREEN_NO_COLUMN_MATCH_OP_ERROR_MSG, SEARCH_SCREEN_SCREEN_FONT_STYLE, SEARCH_SCREEN_SEARCH_DATA_TYPE_DOES_NOT_MATCH_MESSAGE, SEARCH_SCREEN_SEARCH_EXCEPTION_ERROR_MSG, SEARCH_SCREEN_SUCCESS_ACTION, SEARCH_SCREEN_UNABLE_TO_FIND_ALERT, SELECTBOX_ITEM_LABEL, SELECTBOX_ITEM_NAME, SELECTBOX_ITEM_VALUE, SELECTBOX_LABEL, SPLASH_SCREEN_CLOSE_ACTION, SPLASH_SCREEN_LOGO_IMAGE, SPLASH_SCREEN_MESSAGE, STOCK_SCREEN_CLOSE_ACTION, STOCK_SCREEN_FAILED_ACTION, STOCK_SCREEN_SAVE_ACTION, STOCK_SCREEN_SUCCESS_ACTION, SYNC_GROUP_INFO_SCREEN_CLOSE_ACTION, SYNC_GROUP_INFO_SCREEN_CLOSE_MENU_LABEL, SYNC_GROUP_INFO_SCREEN_ERROR_LOADING_SYNC_GROUP_INFO_MSG, SYNC_GROUP_INFO_SCREEN_ERROR_SAVING_SYNC_GROUP_MSG, SYNC_GROUP_INFO_SCREEN_FONT_STYLE, SYNC_GROUP_INFO_SCREEN_LOG_MESSAGE_MENU_LABEL, SYNC_GROUP_INFO_SCREEN_NAVIGATION_BORDER_STYLE, SYNC_GROUP_INFO_SCREEN_NAVIGATION_STYLE, SYNC_GROUP_INFO_SCREEN_NO_PUSH_LOGS_MSG, SYNC_GROUP_INFO_SCREEN_PACKAGE_LABEL, SYNC_GROUP_INFO_SCREEN_PUSH_ADMIN_MSG, SYNC_GROUP_INFO_SCREEN_PUSH_ENABLE_MSG, SYNC_GROUP_INFO_SCREEN_PUSH_NOTIFICATION_LABEL, SYNC_GROUP_INFO_SCREEN_PUSH_SYNC_INTERVAL_LABEL, SYNC_GROUP_INFO_SCREEN_PUSH_SYNC_INTERVAL_MSG, SYNC_GROUP_INFO_SCREEN_PUSH_SYNC_INTERVAL_NUM_MSG, SYNC_GROUP_INFO_SCREEN_PUSH_TYPE_NO_PROMPT_NO_SYNC_LABEL, SYNC_GROUP_INFO_SCREEN_PUSH_TYPE_NO_SYNC_NO_RESP_LABEL, SYNC_GROUP_INFO_SCREEN_PUSH_TYPE_SYNC_IMMEDIATELY_LABEL, SYNC_GROUP_INFO_SCREEN_PUSH_TYPE_SYNC_NO_RESP_LABEL, SYNC_GROUP_INFO_SCREEN_SAVE_ACTION, SYNC_GROUP_INFO_SCREEN_SAVE_MENU_LABEL, SYNC_GROUP_INFO_SCREEN_SAVING_MESSAGE, SYNC_GROUP_INFO_SCREEN_SHOW_PUSH_LOGS, SYNC_GROUP_INFO_SCREEN_SYNC_GROUP_ID_UNDEFINED_MSG, SYNC_GROUP_INFO_SCREEN_SYNC_GROUP_LABEL, SYNC_GROUP_INFO_SCREEN_TITLE, SYNC_GROUP_INFO_SCREEN_WAIT_IDLE_LABEL, SYNCHRONIZATION_MBO_INFO_SCREEN_APP_SIZE_NAME_LABEL, SYNCHRONIZATION_MBO_INFO_SCREEN_ERROR_LOADING_MBO_INFO_MSG, SYNCHRONIZATION_MBO_INFO_SCREEN_FONT_STYLE, SYNCHRONIZATION_MBO_INFO_SCREEN_ID_UNDEFINED_MSG, SYNCHRONIZATION_MBO_INFO_SCREEN_LAST_TIME_REFRESH_LABEL, SYNCHRONIZATION_MBO_INFO_SCREEN_NAVIGATION_BORDER_STYLE, SYNCHRONIZATION_MBO_INFO_SCREEN_NAVIGATION_STYLE, SYNCHRONIZATION_MBO_INFO_SCREEN_PROFILE_LABEL, SYNCHRONIZATION_SCREEN_CLEARING_DATA_ERROR_MESSAGE, SYNCHRONIZATION_SCREEN_CLOSE_ACTION, SYNCHRONIZATION_SCREEN_CLOSE_MENU_LABEL, SYNCHRONIZATION_SCREEN_FONT_STYLE, SYNCHRONIZATION_SCREEN_LOADING_MBO_ERROR_MESSAGE, SYNCHRONIZATION_SCREEN_MBO_ICON, SYNCHRONIZATION_SCREEN_MBO_INFO_MENU_LABEL, SYNCHRONIZATION_SCREEN_NAVIGATION_BORDER_STYLE, SYNCHRONIZATION_SCREEN_NAVIGATION_STYLE, SYNCHRONIZATION_SCREEN_PACKAGE_ICON, SYNCHRONIZATION_SCREEN_PUBLICATION_ICON, SYNCHRONIZATION_SCREEN_REFRESH_ALL_MENU_LABEL, SYNCHRONIZATION_SCREEN_REFRESH_MENU_LABEL, SYNCHRONIZATION_SCREEN_REFRESH_PACKAGE_MENU_LABEL, SYNCHRONIZATION_SCREEN_REMOVE_MBO_MENU_LABEL, SYNCHRONIZATION_SCREEN_SYNC_GROUP_INFO_MENU_LABEL, TAB_ACTIVE_BORDER_COLOR, TAB_INACTIVE_BORDER_COLOR, TABLE_BORDER_COLOR, TABLE_ERROR_LOADING_MBO_MESSAGE, TABLE_EVEN_ROW_FONT_STYLE, TABLE_FOCUS_FONT_STYLE, TABLE_HAS_BORDER, TABLE_HAS_ROW_ALTERNATE_COLOR, TABLE_HAS_SORT_MENUS, TABLE_HEADER_FONT_STYLE, TABLE_ODD_ROW_FONT_STYLE, TABLE_PARAMETER_BGCOLOR_COLOR, TABLE_PENDING_FONT_STYLE, TABLE_SORT_MENU_LABEL, TEXTINPUT_BORDER_COLOR, TEXTINPUT_EMPTY_MEANS_NULL, TEXTINPUT_LABEL, TEXTINPUT_SHOW_BORDER, TWO_COLUMN_LAYOUT_BORDER_COLOR, TWO_COLUMN_LAYOUT_DISABLE_HOT_KEYS, TWO_COLUMN_LAYOUT_DISPLAY_FONT_STYLE, TWO_COLUMN_LAYOUT_ERROR_LOADING_MOBILE_APP_MSG, TWO_COLUMN_LAYOUT_EVEN_ROW_FONT_STYLE, TWO_COLUMN_LAYOUT_FOCUS_FONT_STYLE, TWO_COLUMN_LAYOUT_LEFT_ALIGNMENT, TWO_COLUMN_LAYOUT_NEXT_HOTKEY, TWO_COLUMN_LAYOUT_NEXT_MENU_LABEL, TWO_COLUMN_LAYOUT_ODD_ROW_FONT_STYLE, TWO_COLUMN_LAYOUT_PENDING_FONT_STYLE, TWO_COLUMN_LAYOUT_PREVIOUS_HOTKEY, TWO_COLUMN_LAYOUT_PREVIOUS_MENU_LABEL, TWO_COLUMN_LAYOUT_RIGHT_ALIGNMENT, TWO_COLUMN_LAYOUT_SHOW_NEXT_PREVIOUS_MENUS
 
Constructor Summary
LayoutManager(int numColumns, boolean isFullScreen)
          Layout manager constructor
LayoutManager(int numColumns, int[] columnPercentages)
          Layout manager constructor
LayoutManager(int numColumns, int[] columnPercentages, boolean isFullScreen)
          Layout manager constructor
LayoutManager(int numColumns, int[] columnPercentages, boolean isFullScreen, FontStyle displayStyle)
          Layout manager constructor
LayoutManager(int numColumns, int[] columnPercentages, boolean isFullScreen, FontStyle displayStyle, FontStyle evenRowFontStyle, FontStyle oddRowFontStyle)
          Layout manager constructor
LayoutManager(int numColumns, int[] columnPercentages, boolean isFullScreen, FontStyle displayStyle, FontStyle evenRowFontStyle, FontStyle oddRowFontStyle, java.lang.String backgroundImage, long style)
          Layout manager constructor
 
Method Summary
 void addWidget(net.rim.device.api.ui.Field widget)
          Add a widget to this layout
 void addWidget(net.rim.device.api.ui.Field widget, int colspan)
          Add a widget to this layout
 void addWidget(net.rim.device.api.ui.Field widget, int colspan, int rowspan)
          Add a widget to this layout
 int[] approximateColumnPercentage()
          Get the approxiamte equal column percentage based on how many columns are assigned
 void deleteAll()
           
protected  void drawFocus(net.rim.device.api.ui.Graphics g, boolean on)
          (non-Javadoc)
 net.rim.device.api.ui.Field[] getAllFields()
          Get all the controls on this layout
 net.rim.device.api.system.EncodedImage getBackgroundImage()
          Gets the instance of encoded background image
 java.lang.String getBackgroundImageName()
          Gets the full file name of the background image
 int[] getColumnWidths()
          Set defined column widths
 int getControlID()
          Returns the control's ID
 Control getControlWithFocus()
          Get control with focus
 ICustomEventsDelegate getCustomEventsDelegate()
          Returns the control's custom events delegate
 FontStyle getDisplayFontStyle()
          Get display font style
 FontStyle getEvenRowFontStyle()
          Get the two column even row font style
 net.rim.device.api.ui.Field getFieldWithFocus()
           
 int getHeightBeforeIndex(int index)
          Retrieve the height before the supplied row index
 int getMarginHeight()
          Gets the value of vertical margin
 int getMarginWidth()
          Gets the value of horizontal margin
 int getNumberOfColumns()
          Get the number of columns for this layout
 int getNumberOfRows()
          Get the number of rows currently in this layout
 FontStyle getOddRowFontStyle()
          Get the two column odd row font style
 int getPreferredHeight()
          Retrieves this field's preferred height.
 int getPreferredWidth()
          Retrieves this field's preferred width.
 net.rim.device.api.ui.Field getScreenFooter()
          Returns the screen footer that is on the screen with this layout manager.
 net.rim.device.api.ui.Field getScreenHeader()
          Returns the screen header that is on the screen with this layout manager.
 int getScreenHeight()
          Returns parent screen's scrollable section height.
 int getSpacingHorizontal()
          Gets the value of horizontal spacing
 int getSpacingVertical()
          Gets the value of vertical spacing
 boolean isFullScreen()
          Returns whether the layout manager should occupy the whole screen.
 boolean isPaintRowLayout()
          Whether to paint row layout.
 boolean isScaleBackgroundImage()
          Gets if to scale the background image to fill the container
 boolean isShowAltColors()
          Get if it's alternating colors
protected  boolean navigationClick(int status, int time)
          (non-Javadoc)
protected  boolean navigationMovement(int dx, int dy, int status, int time)
          (non-Javadoc)
protected  boolean navigationUnclick(int status, int time)
          (non-Javadoc)
protected  void onFocus(int direction)
          (non-Javadoc)
protected  void onUnfocus()
          (non-Javadoc)
protected  void paint(net.rim.device.api.ui.Graphics g)
          (non-Javadoc)
protected  void paintBackground(net.rim.device.api.ui.Graphics g)
           
 void refresh()
          Refresh all the fields
 void setBackgroundImage(net.rim.device.api.system.EncodedImage backgroundImage)
          Sets the encoded background image
 void setBackgroundImage(java.lang.String backgroundImage)
          Sets the full file name of the background image
 void setColumnPercentage(int[] columnPercentage)
          Set the column percentages
 void setColumnWidths(int[] columnWidths)
          Set the column widths
 void setControlID(int controlID)
          Sets the control's ID
 void setCustomEventsDelegate(ICustomEventsDelegate delegate, int eventsFlags)
          Sets the control's custom events delegate for the given events
 void setDisplayFontStyle(FontStyle fontStyle)
          Set display font style
 void setEvenRowFontStyle(FontStyle fontStyle)
          Set the two column even row font style
 void setMarginHeight(int marginHeight)
          Sets the value of vertical margin
 void setMarginWidth(int marginWidth)
          Sets the value of horizontal margin
 void setNumberOfColumns(int numColumns)
          Set the number of columns for this layout
 void setOddRowFontStyle(FontStyle fontStyle)
          Set the two column odd row font style
 void setPaintRowLayout(boolean paintRowLayout)
          Set the flag whether to paint row layout.
 void setProperty(int key, java.lang.Object value)
          Set the property values
 void setScaleBackgroundImage(boolean isScaleBackgroundImageAspectFit)
          Sets if to scale the background image to fill the container
 void setScreenFooter(net.rim.device.api.ui.Field footer)
          Set the screen footer that is on the screen with this layout manager.
 void setScreenHeader(net.rim.device.api.ui.Field header)
          Set the screen header that is on the screen with this layout manager.
 void setShowAltColors(boolean bol)
          Set the show alternating color
 void setSpacingHorizontal(int spacingHorizontal)
          Sets the value of horizontal spacing
 void setSpacingVertical(int spacingVertical)
          Sets the value of vertical spacing
 void setupColumnWidths(int[] columnPercentages)
          Setup the column widths
protected  void sublayout(int width, int height)
          Implements custom layout features for this manager.
 void updateRowsLayout()
          Updates the manager's layout.
 
Methods inherited from class net.rim.device.api.ui.Manager
add, clearCustomScrollArrows, delete, deleteRange, getAccessibleContext, getField, getFieldAtLocation, getFieldCount, getFieldWithFocusIndex, getFocusRect, getHorizontalScroll, getLeafFieldWithFocus, getPreferredHeightOfChild, getPreferredWidthOfChild, getVerticalScroll, getVirtualHeight, getVirtualWidth, getVisibleHeight, getVisibleWidth, insert, invalidate, invalidate, invalidateFieldRange, invokeAction, isDataValid, isDirty, isDownArrowShown, isFocusable, isMuddy, isSelecting, isUpArrowShown, isValidLayout, keyChar, keyControl, keyDown, keyRepeat, keyStatus, keyUp, layout, layoutChild, makeMenu, moveFocus, moveFocus, moveFocus, nextFocus, nextFocus, onUndisplay, paintChild, replace, setDirty, setFocus, setHorizontalQuantization, setHorizontalScroll, setNonfocusableOverride, setPositionChild, setScrollListener, setVerticalQuantization, setVerticalScroll, setVirtualExtent, subpaint, touchEvent, trackwheelClick, trackwheelUnclick
 
Methods inherited from class net.rim.device.api.ui.Field
drawHighlightRegion, fieldChangeNotify, focusAdd, focusChangeNotify, focusRemove, getBackground, getBackground, getBorder, getBorder, getBorder, getChangeListener, getContentHeight, getContentLeft, getContentRect, getContentRect, getContentTop, getContentWidth, getContextMenu, getContextMenu, getCookie, getExtent, getExtent, getFieldStyle, getFocusListener, getFont, getHeight, getIndex, getLeft, getManager, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOriginal, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getScreen, getState, getStyle, getTop, getVisualState, getWidth, invalidateAll, isEditable, isFocus, isPasteable, isSelectable, isSelectionCopyable, isSelectionCutable, isSelectionDeleteable, isSpellCheckable, isStyle, isVisible, makeContextMenu, makeContextMenu, onDisplay, onExposed, onMenuDismissed, onMenuDismissed, onObscured, onVisibilityChange, paste, select, selectionCopy, selectionCut, selectionDelete, setBackground, setBackground, setBorder, setBorder, setBorder, setBorder, setBorder, setChangeListener, setCookie, setEditable, setExtent, setFocus, setFocusListener, setFont, setFont, setMargin, setMargin, setMuddy, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, updateLayout
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_columnPercentages

protected int[] _columnPercentages

_currentRowLayout

protected RowLayout _currentRowLayout

_customEventsHandler

protected CustomEventsHandler _customEventsHandler

_controlID

protected int _controlID

_orientation

protected int _orientation

DEFAULT_MARGIN

public static int DEFAULT_MARGIN

DEFAULT_SPACING

public static int DEFAULT_SPACING
Constructor Detail

LayoutManager

public LayoutManager(int numColumns,
                     boolean isFullScreen)
Layout manager constructor

Parameters:
numColumns - - number of columns for this layout
isFullScreen - - True if layout should take up whole screen

LayoutManager

public LayoutManager(int numColumns,
                     int[] columnPercentages)
Layout manager constructor

Parameters:
numColumns - - number of columns for this layout
columnPercentages - - array of column percentages

LayoutManager

public LayoutManager(int numColumns,
                     int[] columnPercentages,
                     boolean isFullScreen)
Layout manager constructor

Parameters:
numColumns - - number of columns for this layout
columnPercentages - - array of column percentages
isFullScreen - - True if layout should take up whole screen

LayoutManager

public LayoutManager(int numColumns,
                     int[] columnPercentages,
                     boolean isFullScreen,
                     FontStyle displayStyle)
Layout manager constructor

Parameters:
numColumns - - number of columns for this layout
columnPercentages - - array of column percentages
isFullScreen - - True if layout should take up whole screen
displayStyle - - default display font style object

LayoutManager

public LayoutManager(int numColumns,
                     int[] columnPercentages,
                     boolean isFullScreen,
                     FontStyle displayStyle,
                     FontStyle evenRowFontStyle,
                     FontStyle oddRowFontStyle)
Layout manager constructor

Parameters:
numColumns - - number of columns for this layout
columnPercentages - - array of column percentages
isFullScreen - - True if layout should take up whole screen
displayStyle - - default display font style object
evenRowFontStyle - - even row font style object
oddRowFontStyle - - odd row font style object

LayoutManager

public LayoutManager(int numColumns,
                     int[] columnPercentages,
                     boolean isFullScreen,
                     FontStyle displayStyle,
                     FontStyle evenRowFontStyle,
                     FontStyle oddRowFontStyle,
                     java.lang.String backgroundImage,
                     long style)
Layout manager constructor

Parameters:
numColumns - - number of columns for this layout
columnPercentages - - array of column percentages
isFullScreen - - True if layout should take up whole screen
displayStyle - - default display font style object
evenRowFontStyle - - even row font style object
oddRowFontStyle - - odd row font style object
backgroundImage - - full file name of the background image
style - - style of the layout manager
Method Detail

sublayout

protected void sublayout(int width,
                         int height)
Implements custom layout features for this manager. If implementing a manager with custom layout features, extend the Manager class and implement this method. Invoking the sublayout method prompts your manager subclass to lay out controlled fields appropriately. layout(int, int) invokes this method to perform custom layout handling.

Specified by:
sublayout in class net.rim.device.api.ui.Manager
Parameters:
width - - Width available for this manager.
height - - Height available for this manager.

getScreenHeight

public int getScreenHeight()
Returns parent screen's scrollable section height.

Returns:
parent screen's scrollable section height

drawFocus

protected void drawFocus(net.rim.device.api.ui.Graphics g,
                         boolean on)
(non-Javadoc)

Overrides:
drawFocus in class net.rim.device.api.ui.Field
See Also:
Field.drawFocus(Graphics g, boolean on)

paint

protected void paint(net.rim.device.api.ui.Graphics g)
(non-Javadoc)

Overrides:
paint in class net.rim.device.api.ui.Manager
See Also:
Field.paint(Graphics g)

paintBackground

protected void paintBackground(net.rim.device.api.ui.Graphics g)
Overrides:
paintBackground in class net.rim.device.api.ui.Field

onFocus

protected void onFocus(int direction)
(non-Javadoc)

Overrides:
onFocus in class net.rim.device.api.ui.Manager
See Also:
Field.onFocus(int direction)

onUnfocus

protected void onUnfocus()
(non-Javadoc)

Overrides:
onUnfocus in class net.rim.device.api.ui.Manager
See Also:
Field.onUnfocus()

navigationClick

protected boolean navigationClick(int status,
                                  int time)
(non-Javadoc)

Overrides:
navigationClick in class net.rim.device.api.ui.Manager
See Also:
Field.navigationClick(int status, int time)

navigationUnclick

protected boolean navigationUnclick(int status,
                                    int time)
(non-Javadoc)

Overrides:
navigationUnclick in class net.rim.device.api.ui.Manager
See Also:
Field.navigationUnclick(int status, int time)

navigationMovement

protected boolean navigationMovement(int dx,
                                     int dy,
                                     int status,
                                     int time)
(non-Javadoc)

Overrides:
navigationMovement in class net.rim.device.api.ui.Manager
See Also:
Field.navigationMovement(int dx, int dy, int status, int time)

getDisplayFontStyle

public FontStyle getDisplayFontStyle()
Get display font style

Returns:
FontStyle object

setDisplayFontStyle

public void setDisplayFontStyle(FontStyle fontStyle)
Set display font style

Parameters:
fontStyle - - font style object

getEvenRowFontStyle

public FontStyle getEvenRowFontStyle()
Get the two column even row font style

Returns:
FontStyle object

setEvenRowFontStyle

public void setEvenRowFontStyle(FontStyle fontStyle)
Set the two column even row font style

Parameters:
fontStyle - - font style object

getOddRowFontStyle

public FontStyle getOddRowFontStyle()
Get the two column odd row font style

Returns:
FontStyle object

setOddRowFontStyle

public void setOddRowFontStyle(FontStyle fontStyle)
Set the two column odd row font style

Parameters:
fontStyle - - font style object

getPreferredWidth

public int getPreferredWidth()
Retrieves this field's preferred width. Your implementation of getPreferredWidth() should return the width of your custom field if it has any amount of space available.

Overrides:
getPreferredWidth in class net.rim.device.api.ui.Field
Returns:
Preferred width for this field in pixels

getPreferredHeight

public int getPreferredHeight()
Retrieves this field's preferred height. Your implementation of getPreferredHeight() should return the height of your custom field if it has any amount of space available.

Overrides:
getPreferredHeight in class net.rim.device.api.ui.Field
Returns:
Preferred height for this field in pixels

setScreenHeader

public void setScreenHeader(net.rim.device.api.ui.Field header)
Set the screen header that is on the screen with this layout manager. If there is a screen header then we will need to calculate it's height. This way we can set the table widget height to occupy the majority of the screen instead of partial.

Parameters:
header - Field object for the header widget

setScreenFooter

public void setScreenFooter(net.rim.device.api.ui.Field footer)
Set the screen footer that is on the screen with this layout manager. If there is a screen footer then we will need to calculate it's height. This way we can set widget height to occupy the majority of the screen instead of partial.

Parameters:
footer - Field object for the footer widget

getScreenHeader

public net.rim.device.api.ui.Field getScreenHeader()
Returns the screen header that is on the screen with this layout manager.

Returns:
the screen header that is on the screen with this layout manager.

getScreenFooter

public net.rim.device.api.ui.Field getScreenFooter()
Returns the screen footer that is on the screen with this layout manager.

Returns:
the screen footer that is on the screen with this layout manager.

getHeightBeforeIndex

public int getHeightBeforeIndex(int index)
Retrieve the height before the supplied row index

Parameters:
index - int value for the row index to search til
Returns:
int value for the height before the supplied row index

deleteAll

public void deleteAll()
Overrides:
deleteAll in class net.rim.device.api.ui.Manager

setShowAltColors

public void setShowAltColors(boolean bol)
Set the show alternating color

Parameters:
bol - - True is there is alternating color on each row

isShowAltColors

public boolean isShowAltColors()
Get if it's alternating colors

Returns:
True if it's alternating colors

approximateColumnPercentage

public int[] approximateColumnPercentage()
Get the approxiamte equal column percentage based on how many columns are assigned

Returns:
int array of column percentages

setupColumnWidths

public void setupColumnWidths(int[] columnPercentages)
Setup the column widths

Parameters:
columnPercentages - - int array of column percentages

setColumnPercentage

public void setColumnPercentage(int[] columnPercentage)
Set the column percentages

Parameters:
columnPercentage - - int array of column percentages

getColumnWidths

public int[] getColumnWidths()
Set defined column widths

Returns:
int array of column widths

setColumnWidths

public void setColumnWidths(int[] columnWidths)
Set the column widths

Parameters:
columnWidths - - int array of column widths

getNumberOfRows

public int getNumberOfRows()
Get the number of rows currently in this layout

Returns:
the number of rows

getNumberOfColumns

public int getNumberOfColumns()
Get the number of columns for this layout

Returns:
number of columns

setNumberOfColumns

public void setNumberOfColumns(int numColumns)
Set the number of columns for this layout

Parameters:
numColumns - - number of columns

addWidget

public void addWidget(net.rim.device.api.ui.Field widget)
Add a widget to this layout

Parameters:
widget - - the widget to add to this layout

addWidget

public void addWidget(net.rim.device.api.ui.Field widget,
                      int colspan)
Add a widget to this layout

Parameters:
widget - - the widget to add to this layout
colspan - - number of columns this widget should take up

addWidget

public void addWidget(net.rim.device.api.ui.Field widget,
                      int colspan,
                      int rowspan)
Add a widget to this layout

Parameters:
widget - - the widget to add to this layout
colspan - - number of columns this widget will take up
rowspan - - number of rows this widget will take up

getControlWithFocus

public Control getControlWithFocus()
Get control with focus

Returns:
the control with focus

getFieldWithFocus

public net.rim.device.api.ui.Field getFieldWithFocus()
Overrides:
getFieldWithFocus in class net.rim.device.api.ui.Manager

getAllFields

public net.rim.device.api.ui.Field[] getAllFields()
Get all the controls on this layout

Returns:
array of Controls

refresh

public void refresh()
Refresh all the fields


setProperty

public void setProperty(int key,
                        java.lang.Object value)
Set the property values

Parameters:
key - - Unique key of a specific button attribute
value - - The supplied value for this attribute

getCustomEventsDelegate

public ICustomEventsDelegate getCustomEventsDelegate()
Returns the control's custom events delegate

Returns:
the control's custom events delegate

setCustomEventsDelegate

public void setCustomEventsDelegate(ICustomEventsDelegate delegate,
                                    int eventsFlags)
Sets the control's custom events delegate for the given events

Parameters:
delegate - custom events delegate
eventsFlags - the events to set delegate to

getControlID

public int getControlID()
Returns the control's ID

Returns:
the control's Id

setControlID

public void setControlID(int controlID)
Sets the control's ID

Parameters:
controlId - control ID

getBackgroundImageName

public java.lang.String getBackgroundImageName()
Gets the full file name of the background image

Returns:
full image file name

getBackgroundImage

public net.rim.device.api.system.EncodedImage getBackgroundImage()
Gets the instance of encoded background image

Returns:
instance of encoded background image

setBackgroundImage

public void setBackgroundImage(java.lang.String backgroundImage)
Sets the full file name of the background image

Parameters:
backgroundImage - - full file name of the background image

setBackgroundImage

public void setBackgroundImage(net.rim.device.api.system.EncodedImage backgroundImage)
Sets the encoded background image

Parameters:
backgroundImage - - encoded background image

isScaleBackgroundImage

public boolean isScaleBackgroundImage()
Gets if to scale the background image to fill the container

Returns:
true means to scale the background image to fill the container

setScaleBackgroundImage

public void setScaleBackgroundImage(boolean isScaleBackgroundImageAspectFit)
Sets if to scale the background image to fill the container

Parameters:
isScaleBackgroundImageAspectFit - - true means to scale the background image as aspect fit, false as aspect fill

isPaintRowLayout

public boolean isPaintRowLayout()
Whether to paint row layout.

Returns:
true if to paint row layout and false otherwise.

setPaintRowLayout

public void setPaintRowLayout(boolean paintRowLayout)
Set the flag whether to paint row layout.

Parameters:
paintRowLayout - flag whether to paint row layout.

getMarginWidth

public int getMarginWidth()
Gets the value of horizontal margin

Returns:
the value of horizontal margin

setMarginWidth

public void setMarginWidth(int marginWidth)
Sets the value of horizontal margin

Parameters:
marginWidth -

getMarginHeight

public int getMarginHeight()
Gets the value of vertical margin

Returns:
the value of vertical margin

setMarginHeight

public void setMarginHeight(int marginHeight)
Sets the value of vertical margin

Parameters:
marginHeight -

getSpacingHorizontal

public int getSpacingHorizontal()
Gets the value of horizontal spacing

Returns:
value of horizontal spacing

setSpacingHorizontal

public void setSpacingHorizontal(int spacingHorizontal)
Sets the value of horizontal spacing

Parameters:
spacingHorizontal -

getSpacingVertical

public int getSpacingVertical()
Gets the value of vertical spacing

Returns:
value of vertical spacing

setSpacingVertical

public void setSpacingVertical(int spacingVertical)
Sets the value of vertical spacing

Parameters:
spacingVertical -

updateRowsLayout

public void updateRowsLayout()
Updates the manager's layout.


isFullScreen

public boolean isFullScreen()
Returns whether the layout manager should occupy the whole screen.

Returns:
true if the layout manager should occupy the whole screen and false otherwise.