Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
BZ-1195300: provide tooltips for ListBarWidget buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrenaat committed Mar 11, 2015
1 parent f656d83 commit 17bf84b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public interface WorkbenchConstants

String minimizePanel();

String closePanel();

String selectView();

String expandToolbar();

String collapseToolbar();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

import org.jboss.errai.ioc.client.container.IOCResolutionException;
import org.jboss.errai.security.shared.api.identity.User;
import org.uberfire.client.resources.i18n.WorkbenchConstants;
import org.uberfire.client.util.Layouts;
import org.uberfire.client.workbench.PanelManager;
import org.uberfire.client.workbench.panels.MultiPartWidget;
Expand Down Expand Up @@ -187,6 +188,7 @@ public void setup( boolean isMultiPart,
this.menuArea.setVisible( false );

if ( isMultiPart ) {
closeButton.setTitle( WorkbenchConstants.INSTANCE.closePanel() );
closeButton.addClickHandler( new ClickHandler() {
@Override
public void onClick( ClickEvent event ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
xmlns:ufp="urn:import:org.uberfire.client.workbench.widgets.panel">

<ui:with field="res" type="org.uberfire.client.resources.WorkbenchResources"/>
<ui:with field="i18n" type="org.uberfire.client.resources.i18n.WorkbenchConstants"/>

<ui:style>
.title {
Expand Down Expand Up @@ -59,7 +60,9 @@
<tb:Button ui:field="closeButton" size="MINI" icon="REMOVE"/>
</tb:ButtonGroup>
<tb:ButtonGroup ui:field="dropdownCaretContainer">
<tb:DropdownButton ui:field="dropdownCaret" size="MINI"/>
<tb:Tooltip trigger="HOVER" placement="BOTTOM" text="{i18n.selectView}">
<tb:DropdownButton ui:field="dropdownCaret" size="MINI"/>
</tb:Tooltip>
</tb:ButtonGroup>
<tb:ButtonGroup>
<ufp:MaximizeToggleButton ui:field="maximizeButton"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
maximizePanel=Maximize panel to fit full screen
minimizePanel=Minimize panel to its previous size
closePanel=Close this panel
selectView=Select view
expandToolbar=Expand Toolbar
collapseToolbar=Collapse Toolbar

0 comments on commit 17bf84b

Please sign in to comment.