Class MantleTabPanel
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.CellPanel
com.google.gwt.user.client.ui.VerticalPanel
org.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
org.pentaho.mantle.client.ui.tabs.MantleTabPanel
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasAlignment
,com.google.gwt.user.client.ui.HasHorizontalAlignment
,com.google.gwt.user.client.ui.HasVerticalAlignment
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.HasWidgets
,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
,com.google.gwt.user.client.ui.IndexedPanel
,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
,com.google.gwt.user.client.ui.InsertPanel
,com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
,com.google.gwt.user.client.ui.IsWidget
,Iterable<com.google.gwt.user.client.ui.Widget>
public class MantleTabPanel
extends org.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
com.google.gwt.user.client.ui.HasHorizontalAlignment.AutoHorizontalAlignmentConstant, com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
-
Field Summary
Fields inherited from class org.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
selectedTab, tabBar, tabDeck
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
Fields inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHT
Fields inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
ALIGN_BOTTOM, ALIGN_MIDDLE, ALIGN_TOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTab
(String text, String tooltip, boolean closeable, com.google.gwt.user.client.ui.Widget content) void
static void
clearClosingFrame
(com.google.gwt.user.client.Element frame) void
void
closeOtherTabs
(org.pentaho.gwt.widgets.client.tabs.PentahoTab exceptThisTab) void
closeTab
(org.pentaho.gwt.widgets.client.tabs.PentahoTab closeTab, boolean invokePreTabCloseHook) void
deleteTabMenuItemLinkage
(org.pentaho.gwt.widgets.client.tabs.PentahoTab pentahoTab) void
enableContentEdit
(boolean enable) boolean
existingTabMatchesName
(String name) static void
fireCloseTab
(String frameId) This method returns the current frame element id.getFrame
(org.pentaho.gwt.widgets.client.tabs.PentahoTab tab) com.google.gwt.user.client.Element
getFrameElement
(org.pentaho.gwt.widgets.client.tabs.PentahoTab tab) getLinkedTabMenuItem
(org.pentaho.gwt.widgets.client.tabs.PentahoTab pentahoTab) static String
getReadyState
(com.google.gwt.user.client.Element frameElement) static boolean
hasUnsavedChanges
(com.google.gwt.user.client.Element frameElement) void
void
linkTabToMenuItem
(org.pentaho.gwt.widgets.client.tabs.PentahoTab pentahoTab, MantleTabMenuItem mantleTabMenuItem) static void
onTabSelect
(com.google.gwt.user.client.Element element) static boolean
preTabCloseHook
(com.google.gwt.user.client.Element frameElement) void
void
renameMenuTab
(org.pentaho.gwt.widgets.client.tabs.PentahoTab tab) void
selectTab
(org.pentaho.gwt.widgets.client.tabs.PentahoTab selectedTab) void
selectTab
(org.pentaho.gwt.widgets.client.tabs.PentahoTab selectedTab, boolean setFocus) void
setContentEditSelected
(boolean selected) void
setCurrentTabSaveEnabled
(boolean enabled) void
setFileInfoInFrame
(FileItem selectedFileItem) Store representation of file in the frame for reference later when save is calledvoid
setTabBarWidth
(String widthString) void
setTabSaveEnabled
(String frameId, boolean enabled) void
setTabSaveEnabled
(org.pentaho.gwt.widgets.client.tabs.PentahoTab tab, boolean enabled) void
setTabsMenu
(com.google.gwt.user.client.ui.MenuBar menuBar, com.google.gwt.user.client.ui.MenuItem menuItem) void
void
showNewURLTab
(String tabName, String tabTooltip, String url, boolean setFileInfoInFrame) void
showNewURLTab
(String tabName, String tabTooltip, String url, boolean setFileInfoInFrame, String frameName) static boolean
supportsReadyFeedback
(com.google.gwt.user.client.Element frameElement) void
updateTabMenuText
(org.pentaho.gwt.widgets.client.tabs.PentahoTab selectedTab) Update the tabsMenuBar text to reflect the currently selected tab.Methods inherited from class org.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
closeTab, getSelectedTab, getSelectedTabIndex, getTab, getTabBar, getTabCount, getTabDeck, selectTab, setSelectedTab, setTabBar, setTabDeck
Methods inherited from class com.google.gwt.user.client.ui.VerticalPanel
add, getHorizontalAlignment, getVerticalAlignment, insert, insert, onEnsureDebugId, remove, setHorizontalAlignment, setVerticalAlignment
Methods inherited from class com.google.gwt.user.client.ui.CellPanel
getBody, getSpacing, getTable, setBorderWidth, setCellHeight, setCellHeight, setCellHorizontalAlignment, setCellHorizontalAlignment, setCellHorizontalAlignment, setCellHorizontalAlignment, setCellVerticalAlignment, setCellVerticalAlignment, setCellVerticalAlignment, setCellVerticalAlignment, setCellWidth, setCellWidth, setSpacing
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndex
Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
add
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MantleTabPanel
public MantleTabPanel() -
MantleTabPanel
public MantleTabPanel(boolean setupNativeHooks)
-
-
Method Details
-
setTabsMenu
public void setTabsMenu(com.google.gwt.user.client.ui.MenuBar menuBar, com.google.gwt.user.client.ui.MenuItem menuItem) -
setTabBarWidth
-
addTab
public void addTab(String text, String tooltip, boolean closeable, com.google.gwt.user.client.ui.Widget content) - Overrides:
addTab
in classorg.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
-
linkTabToMenuItem
public void linkTabToMenuItem(org.pentaho.gwt.widgets.client.tabs.PentahoTab pentahoTab, MantleTabMenuItem mantleTabMenuItem) -
getLinkedTabMenuItem
public MantleTabMenuItem getLinkedTabMenuItem(org.pentaho.gwt.widgets.client.tabs.PentahoTab pentahoTab) -
deleteTabMenuItemLinkage
public void deleteTabMenuItemLinkage(org.pentaho.gwt.widgets.client.tabs.PentahoTab pentahoTab) -
renameMenuTab
public void renameMenuTab(org.pentaho.gwt.widgets.client.tabs.PentahoTab tab) -
updateTabMenuText
public void updateTabMenuText(org.pentaho.gwt.widgets.client.tabs.PentahoTab selectedTab) Update the tabsMenuBar text to reflect the currently selected tab. If no tab is selected, the text is empty, and the menuBar is hidden.- Parameters:
selectedTab
-
-
showNewURLTab
-
showNewURLTab
-
existingTabMatchesName
-
fireCloseTab
-
showLoadingIndicator
public void showLoadingIndicator() -
hideLoadingIndicator
public void hideLoadingIndicator() -
setCurrentTabSaveEnabled
public void setCurrentTabSaveEnabled(boolean enabled) -
setTabSaveEnabled
public void setTabSaveEnabled(org.pentaho.gwt.widgets.client.tabs.PentahoTab tab, boolean enabled) -
setTabSaveEnabled
-
registerContentOverlay
-
enableContentEdit
public void enableContentEdit(boolean enable) -
setContentEditSelected
public void setContentEditSelected(boolean selected) -
setFileInfoInFrame
Store representation of file in the frame for reference later when save is called- Parameters:
selectedFileItem
-
-
getCurrentFrame
-
getFrame
-
getFrameElement
public com.google.gwt.user.client.Element getFrameElement(org.pentaho.gwt.widgets.client.tabs.PentahoTab tab) -
getCurrentFrameElementId
This method returns the current frame element id.- Returns:
-
getReadyState
-
supportsReadyFeedback
public static boolean supportsReadyFeedback(com.google.gwt.user.client.Element frameElement) -
hasUnsavedChanges
public static boolean hasUnsavedChanges(com.google.gwt.user.client.Element frameElement) -
preTabCloseHook
public static boolean preTabCloseHook(com.google.gwt.user.client.Element frameElement) -
closeTab
public void closeTab(org.pentaho.gwt.widgets.client.tabs.PentahoTab closeTab, boolean invokePreTabCloseHook) - Overrides:
closeTab
in classorg.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
-
clearClosingFrame
public static void clearClosingFrame(com.google.gwt.user.client.Element frame) -
closeOtherTabs
public void closeOtherTabs(org.pentaho.gwt.widgets.client.tabs.PentahoTab exceptThisTab) - Overrides:
closeOtherTabs
in classorg.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
-
closeAllTabs
public void closeAllTabs()- Overrides:
closeAllTabs
in classorg.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
-
selectTab
public void selectTab(org.pentaho.gwt.widgets.client.tabs.PentahoTab selectedTab) - Overrides:
selectTab
in classorg.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
-
selectTab
public void selectTab(org.pentaho.gwt.widgets.client.tabs.PentahoTab selectedTab, boolean setFocus) - Overrides:
selectTab
in classorg.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
-
allTabsClosed
public void allTabsClosed() -
onTabSelect
public static void onTabSelect(com.google.gwt.user.client.Element element)
-