Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6901229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:38:49+00:00 2026-05-27T07:38:49+00:00

I have a Mainscreen with tabs. Each tab has its own overridden navigationClick method

  • 0

I have a Mainscreen with tabs. Each tab has its own overridden navigationClick method that looks like this

protected boolean navigationClick(int status, int time) {
    fieldChangeNotify(1);
    return true;
}

and other methods

public boolean isFocusable() {
    return true;
}

protected void drawFocus(Graphics graphics,
                         boolean on) {
    // Don't draw the default focus
}

protected void onFocus(int direction) {
    super.onFocus(direction);
    invalidate();
}

protected void onUnfocus() {
    super.onUnfocus();
    invalidate();
}

However, in my mainscreen, there is 3 of these tabs in a horizontalfieldmanager. An overridden fieldChanged is implemented like this

public void fieldChanged(Field field, int context) {
    if (_tabArea != null) {
        if (field == _tab1) {
           delete(_tabArea);
            _tabArea = displayTab1();
           add(_tabArea);

        } else if (field == _tab2) {
            delete(_tabArea);
            _tabArea = displayTab2();
            add(_tabArea);
        } else if (field == _tab3) {
            delete(_tabArea);
            _tabArea = displayTab3();
            add(_tabArea);
        }
    }
} 

which switches the tabs. I have a navigationClick below that handles the clicks on the listfield, however ever since I overrode the navigationClick, that tab switching no longer works. Anyone have any idea why?

protected boolean navigationClick(int status, int time) {
      Field field = _listfield;

      if(field instanceof ListField)
      {
          int selected = _listfield.getSelectedIndex();
          switch (selected) {
          case 0:
              delete(_tabArea);
              All all = new All();
              _tabArea = all.getVFM();
              add(_tabArea);
              break;
          case 1:
              break;
          }
          return true;
      }
      return super.navigationClick(status, time);   
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:38:49+00:00Added an answer on May 27, 2026 at 7:38 am

    Does your override call super.navigationClick() in all cases?

    Based on your code for navigationClick, it looks like super.navigationClick() won’t be called, because if(field instanceof ListField) prevents execution from reaching the super call.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view that has a UISegmentedControl in its bottom UIToolBar with 2
I have a UITableView that loads content into a UIWebView like this: //MainViewController.m -
In my application I have several activities, the main screen has 4 buttons that
I have to tabs, new and REPORTS. In the REPORTS tab, I'm creating a
I have this class - (void) initWithFrame:(CGRect)frame withString:(NSString *)html{ //CGRect rectFrame = [UIScreen mainScreen].applicationFrame;
I have a NSWindow that I'm putting into fullscreen mode. I would like to
Ok I have an application that uses tab controller. However before I want the
I have an app that has a tabBar with a navbar, The tabBar is
I have a Facebook-Like MainScreen. For my SettingsViewController I need to pass a object
I have a scrollview and its initialize as this ; scrollV = [[UIScrollView alloc]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.