Package org.enhydra.jawe.base.panel.panels

Examples of org.enhydra.jawe.base.panel.panels.XMLTabbedPanel


   public void displayElement(XMLElement el) {
      XMLPanel previousPanel = getViewPanel();
      XMLElement previousElement = getActiveElement();
      if (previousPanel instanceof XMLTabbedPanel && previousElement != null) {
         XMLTabbedPanel tp = (XMLTabbedPanel) previousPanel;
         Class ec = previousElement.getClass();
         int activeTab = tp.getActiveTab();
         lastActiveTabs.put(ec, new Integer(activeTab));
      }

      // MUST BE SET BEFORE GENERATING NEW PANEL BECAUSE PANELGENERATOR
      // CAN SET THIS FLAG TO TRUE
      isModified = false;

      XMLPanel p;
      if (el != null) {
         p = this.panelGenerator.getPanel(el);
      } else {
         p = new XMLBasicPanel();
      }
      setViewPanel(p);
      if (p instanceof XMLTabbedPanel) {
         Integer at = (Integer) lastActiveTabs.get(el.getClass());
         if (at != null) {
            int atno = at.intValue();
            XMLTabbedPanel tp = (XMLTabbedPanel) p;
            if (tp.getTabCount() <= at.intValue()) {
               atno = tp.getTabCount() - 1;
               lastActiveTabs.put(el.getClass(), new Integer(atno));
            }
            tp.setActiveTab(atno);
         }
      }
      getPanelSettings().adjustActions();
      // enableApplyAction(isModified);
      // enableRevertAction(isModified);
View Full Code Here


                break;
            }
        }

        if (panels.size() > 1) {
            return new XMLTabbedPanel(getPanelContainer(),
                    el,
                    panels,
                    JaWEManager.getInstance().getLabelGenerator().getLabel(el),
                    false);
        } else if (panels.size() == 1) {
View Full Code Here

                break;
            }
        }

        if (panels.size() > 1) {
            return new XMLTabbedPanel(getPanelContainer(),
                    el,
                    panels,
                    JaWEManager.getInstance().getLabelGenerator().getLabel(el),
                    false);
        } else if (panels.size() == 1) {
View Full Code Here

                break;
            }
        }

        if (panels.size() > 1) {
            return new XMLTabbedPanel(getPanelContainer(),
                    el,
                    panels,
                    JaWEManager.getInstance().getLabelGenerator().getLabel(el),
                    false);
        } else if (panels.size() == 1) {
View Full Code Here

                break;
            }
        }

        if (panels.size() > 1) {
            return new XMLTabbedPanel(getPanelContainer(),
                    el,
                    panels,
                    JaWEManager.getInstance().getLabelGenerator().getLabel(el),
                    false);
        } else if (panels.size() == 1) {
View Full Code Here

                break;
            }
        }

        if (panels.size() > 1) {
            return new XMLTabbedPanel(getPanelContainer(),
                    el,
                    panels,
                    JaWEManager.getInstance().getLabelGenerator().getLabel(el),
                    false);
        } else if (panels.size() == 1) {
View Full Code Here

TOP

Related Classes of org.enhydra.jawe.base.panel.panels.XMLTabbedPanel

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.