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.DebugIdImplEnabledNested 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.HorizontalAlignmentConstantNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstantNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidgetNested 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, tabDeckFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIXFields 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_RIGHTFields inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
ALIGN_BOTTOM, ALIGN_MIDDLE, ALIGN_TOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTab(String text, String tooltip, boolean closeable, com.google.gwt.user.client.ui.Widget content) voidstatic voidclearClosingFrame(com.google.gwt.user.client.Element frame) voidvoidcloseOtherTabs(org.pentaho.gwt.widgets.client.tabs.PentahoTab exceptThisTab) voidcloseTab(org.pentaho.gwt.widgets.client.tabs.PentahoTab closeTab, boolean invokePreTabCloseHook) voiddeleteTabMenuItemLinkage(org.pentaho.gwt.widgets.client.tabs.PentahoTab pentahoTab) voidenableContentEdit(boolean enable) booleanexistingTabMatchesName(String name) static voidfireCloseTab(String frameId) This method returns the current frame element id.getFrame(org.pentaho.gwt.widgets.client.tabs.PentahoTab tab) com.google.gwt.user.client.ElementgetFrameElement(org.pentaho.gwt.widgets.client.tabs.PentahoTab tab) getLinkedTabMenuItem(org.pentaho.gwt.widgets.client.tabs.PentahoTab pentahoTab) static StringgetReadyState(com.google.gwt.user.client.Element frameElement) static booleanhasUnsavedChanges(com.google.gwt.user.client.Element frameElement) voidvoidlinkTabToMenuItem(org.pentaho.gwt.widgets.client.tabs.PentahoTab pentahoTab, MantleTabMenuItem mantleTabMenuItem) static voidonTabSelect(com.google.gwt.user.client.Element element) static booleanpreTabCloseHook(com.google.gwt.user.client.Element frameElement) voidvoidrenameMenuTab(org.pentaho.gwt.widgets.client.tabs.PentahoTab tab) voidselectTab(org.pentaho.gwt.widgets.client.tabs.PentahoTab selectedTab) voidselectTab(org.pentaho.gwt.widgets.client.tabs.PentahoTab selectedTab, boolean setFocus) voidsetContentEditSelected(boolean selected) voidsetCurrentTabSaveEnabled(boolean enabled) voidsetFileInfoInFrame(FileItem selectedFileItem) Store representation of file in the frame for reference later when save is calledvoidsetTabBarWidth(String widthString) voidsetTabSaveEnabled(String frameId, boolean enabled) voidsetTabSaveEnabled(org.pentaho.gwt.widgets.client.tabs.PentahoTab tab, boolean enabled) voidsetTabsMenu(com.google.gwt.user.client.ui.MenuBar menuBar, com.google.gwt.user.client.ui.MenuItem menuItem) voidvoidshowNewURLTab(String tabName, String tabTooltip, String url, boolean setFileInfoInFrame) voidshowNewURLTab(String tabName, String tabTooltip, String url, boolean setFileInfoInFrame, String frameName) static booleansupportsReadyFeedback(com.google.gwt.user.client.Element frameElement) voidupdateTabMenuText(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, setTabDeckMethods inherited from class com.google.gwt.user.client.ui.VerticalPanel
add, getHorizontalAlignment, getVerticalAlignment, insert, insert, onEnsureDebugId, remove, setHorizontalAlignment, setVerticalAlignmentMethods 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, setSpacingMethods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, removeMethods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeMethods 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, unsinkEventsMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, removeMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndexMethods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
addMethods 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:
addTabin 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:
closeTabin 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:
closeOtherTabsin classorg.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
-
closeAllTabs
public void closeAllTabs()- Overrides:
closeAllTabsin classorg.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
-
selectTab
public void selectTab(org.pentaho.gwt.widgets.client.tabs.PentahoTab selectedTab) - Overrides:
selectTabin classorg.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
-
selectTab
public void selectTab(org.pentaho.gwt.widgets.client.tabs.PentahoTab selectedTab, boolean setFocus) - Overrides:
selectTabin classorg.pentaho.gwt.widgets.client.tabs.PentahoTabPanel
-
allTabsClosed
public void allTabsClosed() -
onTabSelect
public static void onTabSelect(com.google.gwt.user.client.Element element)
-