refactoring of shared ui components

This commit is contained in:
fmittag committed 2012-01-18 17:26:00 +01:00
1 parent bce47076a3
commit ad0c2cd6ab
4 files changed
-50

No files matched your search

@@ -1,12 +0,0 @@
package com.sap.sailing.gwt.ui.shared.components;
/**
* {@link Component}s are arranged in an "ordered forest" structure (multi-rooted tree with the roots ordered in a sequence).
* Each hierarchy level can optionally provide a localized name. Each hierarchy level consists of one or more
*
* @author Axel Uhl (d043530)
*
*/
public interface ComponentForest extends ComponentForestEntry {
Iterable<ComponentForest> getEntries();
}
@@ -1,17 +0,0 @@
package com.sap.sailing.gwt.ui.shared.components;
import com.google.gwt.user.client.ui.Widget;
public interface ComponentForestEntry {
/**
* @return the name to display to a user for quick navigation to this component
*/
String getLocalizedShortName();
/**
* A component forest entry may or may not have a {@link Widget} used to render its contents. Typically,
* entries with sub-entries don't afford a widget of their own but let the framework choose a container
* in which to aggregate their entries' widgets.
*/
Widget getEntryWidget();
}
@@ -1,21 +0,0 @@
package com.sap.sailing.gwt.ui.shared.components;
import com.google.gwt.user.client.ui.VerticalPanel;
/**
* A GWT component that visualizes a {@link ComponentForest} including menus to scroll quickly to the embedded view
* of the respective component, collapse/expand buttons for the views embedded and homogeneous settings buttons for
* those components that have settings.
*
* @author Axel Uhl (d043530)
*
*/
public class CompositePanel extends VerticalPanel {
public CompositePanel(ComponentForest components) {
super();
for (ComponentForestEntry entry : components.getEntries()) {
entry.toString(); // TODO continue here...
}
}
}