diff --git a/modules/desktop/src/com/haulmont/cuba/desktop/gui/DesktopComponentsFactory.java b/modules/desktop/src/com/haulmont/cuba/desktop/gui/DesktopComponentsFactory.java index 4cd74cb0d5..abddd57e1e 100644 --- a/modules/desktop/src/com/haulmont/cuba/desktop/gui/DesktopComponentsFactory.java +++ b/modules/desktop/src/com/haulmont/cuba/desktop/gui/DesktopComponentsFactory.java @@ -17,9 +17,8 @@ import java.util.HashMap; import java.util.Map; /** - *

$Id$

- * * @author krivopustov + * @version $Id$ */ @ManagedBean(ComponentsFactory.NAME) public class DesktopComponentsFactory implements ComponentsFactory { @@ -61,7 +60,7 @@ public class DesktopComponentsFactory implements ComponentsFactory { classes.put(OptionsGroup.NAME, DesktopOptionsGroup.class); classes.put(FileUploadField.NAME, DesktopFileUploadField.class); classes.put(FileMultiUploadField.NAME, DesktopFileMultiUploadField.class); - classes.put(Tabsheet.NAME, DesktopTabsheet.class); + classes.put(TabSheet.NAME, DesktopTabSheet.class); classes.put(Embedded.NAME, DesktopEmbedded.class); classes.put(WidgetsTree.NAME, DesktopWidgetsTree.class); classes.put(GroupBoxLayout.NAME, DesktopGroupBox.class); diff --git a/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopTabsheet.java b/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopTabSheet.java similarity index 95% rename from modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopTabsheet.java rename to modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopTabSheet.java index f52dc7c9d1..1da386d4b6 100644 --- a/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopTabsheet.java +++ b/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopTabSheet.java @@ -25,13 +25,12 @@ import java.awt.event.*; import java.util.*; /** - *

$Id$

- * * @author krivopustov + * @version $Id$ */ -public class DesktopTabsheet +public class DesktopTabSheet extends DesktopAbstractComponent - implements Tabsheet, Component.Container, AutoExpanding { + implements TabSheet, Component.Container, AutoExpanding { protected Map components = new HashMap(); protected List tabs = new ArrayList(); @@ -48,7 +47,7 @@ public class DesktopTabsheet protected Set listeners = new HashSet(); - public DesktopTabsheet() { + public DesktopTabSheet() { impl = new JTabbedPane(); } @@ -283,7 +282,7 @@ public class DesktopTabsheet lti.tabContent.add(comp); lti.tabContent.expand(comp, "", ""); - final Window window = ComponentsHelper.getWindow(DesktopTabsheet.this); + final Window window = ComponentsHelper.getWindow(DesktopTabSheet.this); if (window != null) { ComponentsHelper.walkComponents( lti.tabContent, @@ -355,7 +354,7 @@ public class DesktopTabsheet return false; } - protected class TabImpl implements Tabsheet.Tab { + protected class TabImpl implements TabSheet.Tab { private String name; private Component component; @@ -395,7 +394,7 @@ public class DesktopTabsheet @Override public void setCaption(String caption) { this.caption = caption; - DesktopTabsheet.this.impl.setTitleAt(getTabIndex(), caption); + DesktopTabSheet.this.impl.setTitleAt(getTabIndex(), caption); getButtonTabComponent().setCaption(caption); } @@ -430,7 +429,7 @@ public class DesktopTabsheet public void setVisible(boolean visible) { if (visible != this.visible) { this.visible = visible; - DesktopTabsheet.this.updateTabVisibility(this); + DesktopTabSheet.this.updateTabVisibility(this); } } @@ -475,7 +474,7 @@ public class DesktopTabsheet } public int getTabIndex() { - return DesktopTabsheet.this.impl.indexOfTabComponent(buttonTabComponent); + return DesktopTabSheet.this.impl.indexOfTabComponent(buttonTabComponent); } @Override diff --git a/modules/gui/src/com/haulmont/cuba/gui/WindowCreationHelper.java b/modules/gui/src/com/haulmont/cuba/gui/WindowCreationHelper.java index c80e72615b..5b66ee3693 100644 --- a/modules/gui/src/com/haulmont/cuba/gui/WindowCreationHelper.java +++ b/modules/gui/src/com/haulmont/cuba/gui/WindowCreationHelper.java @@ -20,7 +20,6 @@ import org.apache.commons.logging.LogFactory; import org.dom4j.Element; import java.io.InputStream; -import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -96,9 +95,9 @@ public class WindowCreationHelper { final String subComponentId = matcher.group(2); final Component customComponent = window.getComponent(customComponentId); if (customComponent != null) { - if (customComponent instanceof Tabsheet) { - final Tabsheet tabsheet = (Tabsheet) customComponent; - final Tabsheet.Tab tab = tabsheet.getTab(subComponentId); + if (customComponent instanceof TabSheet) { + final TabSheet tabsheet = (TabSheet) customComponent; + final TabSheet.Tab tab = tabsheet.getTab(subComponentId); if (tab != null) { Integer permissionValue = permissionEntry.getValue(); if (permissionValue == UiPermissionValue.HIDE.getValue()) diff --git a/modules/gui/src/com/haulmont/cuba/gui/app/core/file/multiupload.xml b/modules/gui/src/com/haulmont/cuba/gui/app/core/file/multiupload.xml index fb61afcb67..6911a9525d 100644 --- a/modules/gui/src/com/haulmont/cuba/gui/app/core/file/multiupload.xml +++ b/modules/gui/src/com/haulmont/cuba/gui/app/core/file/multiupload.xml @@ -17,7 +17,7 @@ - +