Package tvbrowser.ui.mainframe.toolbar

Examples of tvbrowser.ui.mainframe.toolbar.ToolBar$ToolBarSeparatorPanel


    if (mToolBarPanel != null) {
      contentPane.remove(mToolBarPanel);
    }

    mToolBarModel = DefaultToolBarModel.getInstance();
    mToolBar = new ToolBar(mToolBarModel);
    mToolBar.setOpaque(false);

    String location = mToolBar.getToolbarLocation();

    if (Settings.propIsToolbarVisible.getBoolean()) {
View Full Code Here


      ids[i] = (String) action.getValue(ToolBar.ACTION_ID_KEY);
    }
    DefaultToolBarModel.getInstance().setButtonIds(ids);
    Settings.propToolbarButtons.setStringArray(ids);

    ToolBar toolbar = MainFrame.getInstance().getToolbar();
    int inx = mShowCB.getSelectedIndex();
    if (inx == 0) {
      toolbar.setStyle(ToolBar.STYLE_ICON | ToolBar.STYLE_TEXT);
    } else if (inx == 1) {
      toolbar.setStyle(ToolBar.STYLE_TEXT);
    } else if (inx == 2) {
      toolbar.setStyle(ToolBar.STYLE_ICON);
    }

    if (mLocationCB.getSelectedIndex() == 1) {
      toolbar.setToolbarLocation(BorderLayout.WEST);
      mWest = true;
    } else {
      toolbar.setToolbarLocation(BorderLayout.NORTH);
      mWest = false;
    }

    MainFrame.getInstance().setShowToolbar(mShowToolbarCb.isSelected());
    MainFrame.getInstance().setShowSearchField(mShowSearchFieldCb.isSelected());

    toolbar.setUseBigIcons(mUseBigIconsCb.isSelected());
    toolbar.storeSettings();
    MainFrame.getInstance().updateToolbar();

    buildButtonPanel();
    init();
  }
View Full Code Here

TOP

Related Classes of tvbrowser.ui.mainframe.toolbar.ToolBar$ToolBarSeparatorPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.