Examples of VTabbedPane


Examples of org.compiere.grid.VTabbedPane

      gc.addDataStatusListener(this);
      m_curTab = gc.getMTab();
     
      Component tabElement = null;
      tabElement = gc;
      VTabbedPane tabPane = new VTabbedPane(false);
      tabPane.addTab(m_curTab.getName().toString(), m_curTab, tabElement);
      m_curWinTab = tabPane;
      m_curWindowNo = windowNo;
      jbInit();
      initSwitchLineAction();
    }
View Full Code Here

Examples of org.compiere.grid.VTabbedPane

      Env.setAutoCommit(m_ctx, m_curWindowNo, Env.isAutoCommit(m_ctx));
      boolean autoNew = Env.isAutoNew(m_ctx);
      Env.setAutoNew(m_ctx, m_curWindowNo, autoNew);

      //  Workbench Window
      VTabbedPane window = null;
      //  just one window
      if (m_mWorkbench.getWindowCount() == 1)
      {
        window = tabPanel;
        window.setWorkbench(false);
      }
      else
      {
        VTabbedPane tp = new VTabbedPane(false);
        window = tp;
      }
      //  Window Init
      window.addChangeListener(this);
View Full Code Here

Examples of org.compiere.grid.VTabbedPane

    if (m_disposing)
      return;
    log.info(e.toString());
    setBusy(true, true);

    VTabbedPane tp = (VTabbedPane)e.getSource();
    boolean back = false;
    boolean isAPanelTab = false;

    //int previousIndex = 0;

    //  Workbench Tab Change
    if (tp.isWorkbench())
    {
      int WBIndex = tabPanel.getSelectedIndex();
      m_curWindowNo = m_mWorkbench.getWindowNo(WBIndex);
      //  Window Change
      log.info("curWin=" + m_curWindowNo + " - Win=" + tp);
      if (tp.getSelectedComponent() instanceof JTabbedPane)
        m_curWinTab = (JTabbedPane)tp.getSelectedComponent();
      else
        throw new java.lang.IllegalArgumentException("Window does not contain Tabs");
      if (m_curWinTab.getSelectedComponent() instanceof GridController) {
        m_curGC = (GridController)m_curWinTab.getSelectedComponent();
        initSwitchLineAction();
View Full Code Here

Examples of org.compiere.grid.VTabbedPane

    if (index == m_curWinTab.getTabCount()-1)
      return;
    //hengsin, bug [ 1637763 ]
    if (m_curWinTab instanceof VTabbedPane)
    {
      VTabbedPane tabPane = (VTabbedPane)m_curWinTab;
      index++;
      while ( index < tabPane.getTabCount() )
      {
        if (tabPane.isEnabledAt(index))
        {
          m_curGC.getTable().removeEditor();
          m_curGC.acceptEditorChanges();
          tabPane.setSelectedIndex(index);
          break;
        }
        else
          index++;
      }
View Full Code Here

Examples of org.compiere.grid.VTabbedPane

    if (index == 0)
      return;
    //hengsin, bug [ 1637763 ]
    if (m_curWinTab instanceof VTabbedPane)
    {
      VTabbedPane tabPane = (VTabbedPane)m_curWinTab;
      index--;
      while ( index >= 0 )
      {
        if (tabPane.isEnabledAt(index))
        {
          m_curGC.getTable().removeEditor();
          m_curGC.acceptEditorChanges();
          tabPane.setSelectedIndex(index);
          break;
        }
        else
          index--;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.