mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 01:59:35 +00:00
refactored the UserManagement.html entry point's UI
This commit is contained in:
1 parent
afb57bd7b3
commit
c5bc285e3a
16 files changed
+355
-238
No files matched your search
-13
@@ -281,19 +281,6 @@ public class AdminConsoleEntryPoint extends AbstractEntryPoint implements Regatt
|
||||
rootPanel.add(dockPanel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sizie of the tab panel when the tab panel is attached to the DOM
|
||||
*/
|
||||
private void setTabPanelSize(final TabLayoutPanel advancedTabPanel, final String width, final String height) {
|
||||
advancedTabPanel.addAttachHandler(new Handler() {
|
||||
@Override
|
||||
public void onAttachOrDetach(AttachEvent event) {
|
||||
advancedTabPanel.getElement().getParentElement().getStyle().setProperty("width", width);
|
||||
advancedTabPanel.getElement().getParentElement().getStyle().setProperty("height", height);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void refreshDataFor(Widget widget) {
|
||||
Widget target = widget;
|
||||
if (widget != null) {
|
||||
|
||||
+3
-3
@@ -95,9 +95,9 @@ public class RegattaWithSeriesAndFleetsCreateDialog extends RegattaWithSeriesAnd
|
||||
}
|
||||
|
||||
public RegattaWithSeriesAndFleetsCreateDialog(Collection<RegattaDTO> existingRegattas,
|
||||
List<EventDTO> existingEvents, StringMessages stringConstants, DialogCallback<RegattaDTO> callback) {
|
||||
super(new RegattaDTO(), existingEvents, stringConstants.addRegatta(), stringConstants.ok(), stringConstants,
|
||||
new RegattaParameterValidator(stringConstants, existingRegattas), callback);
|
||||
List<EventDTO> existingEvents, StringMessages stringMessages, DialogCallback<RegattaDTO> callback) {
|
||||
super(new RegattaDTO(), existingEvents, stringMessages.addRegatta(), stringMessages.ok(), stringMessages,
|
||||
new RegattaParameterValidator(stringMessages, existingRegattas), callback);
|
||||
this.seriesEditor = new SeriesWithFleetsListEditor(Collections.<SeriesDTO>emptyList(), stringMessages, resources.removeIcon(), /*enableFleetRemoval*/true);
|
||||
}
|
||||
|
||||
|
||||
+16
@@ -5,6 +5,8 @@ import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.debug.client.DebugInfo;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.event.dom.client.ClickHandler;
|
||||
import com.google.gwt.event.logical.shared.AttachEvent;
|
||||
import com.google.gwt.event.logical.shared.AttachEvent.Handler;
|
||||
import com.google.gwt.resources.client.TextResource;
|
||||
import com.google.gwt.user.client.Window;
|
||||
import com.google.gwt.user.client.rpc.ServiceDefTarget;
|
||||
@@ -13,6 +15,7 @@ import com.google.gwt.user.client.ui.DialogBox;
|
||||
import com.google.gwt.user.client.ui.HTML;
|
||||
import com.google.gwt.user.client.ui.Label;
|
||||
import com.google.gwt.user.client.ui.RootPanel;
|
||||
import com.google.gwt.user.client.ui.TabLayoutPanel;
|
||||
import com.google.gwt.user.client.ui.VerticalPanel;
|
||||
import com.sap.sse.gwt.client.EntryPointHelper;
|
||||
import com.sap.sse.gwt.client.async.MarkedAsyncCallback;
|
||||
@@ -136,4 +139,17 @@ public abstract class AbstractEntryPoint implements EntryPoint, ErrorReporter, W
|
||||
});
|
||||
return myErrorDialogBox;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the size of the tab panel when the tab panel is attached to the DOM
|
||||
*/
|
||||
protected void setTabPanelSize(final TabLayoutPanel advancedTabPanel, final String width, final String height) {
|
||||
advancedTabPanel.addAttachHandler(new Handler() {
|
||||
@Override
|
||||
public void onAttachOrDetach(AttachEvent event) {
|
||||
advancedTabPanel.getElement().getParentElement().getStyle().setProperty("width", width);
|
||||
advancedTabPanel.getElement().getParentElement().getStyle().setProperty("height", height);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user