Permalink
Browse files

Begin work on standalone server categorization

  • Loading branch information...
1 parent 7762266 commit fa468fec6b4790991bb9d02efe289d2f2c45edc7 @heiko-braun heiko-braun committed Mar 14, 2011
Showing with 597 additions and 157 deletions.
  1. +4 −0 standalone/src/main/java/org/jboss/as/console/client/auth/SignInPagePresenter.java
  2. +1 −1 standalone/src/main/java/org/jboss/as/console/client/core/BootstrapContext.java
  3. +1 −1 standalone/src/main/java/org/jboss/as/console/client/core/Header.java
  4. +8 −1 standalone/src/main/java/org/jboss/as/console/client/core/MainLayoutPresenter.java
  5. +1 −1 standalone/src/main/java/org/jboss/as/console/client/core/MainLayoutViewImpl.java
  6. +8 −3 standalone/src/main/java/org/jboss/as/console/client/core/NameTokens.java
  7. +4 −2 standalone/src/main/java/org/jboss/as/console/client/core/gin/CoreUI.java
  8. +18 −10 standalone/src/main/java/org/jboss/as/console/client/core/gin/CoreUIModule.java
  9. +2 −3 standalone/src/main/java/org/jboss/as/console/client/domain/deployment/DeploymentsOverview.java
  10. +1 −1 standalone/src/main/java/org/jboss/as/console/client/domain/groups/ServerGroupMgmtPresenter.java
  11. +1 −1 standalone/src/main/java/org/jboss/as/console/client/domain/hosts/HostMgmtPresenter.java
  12. +1 −1 standalone/src/main/java/org/jboss/as/console/client/domain/profiles/ProfileMgmtPresenter.java
  13. +1 −1 standalone/src/main/java/org/jboss/as/console/client/server/LHSServerNavigation.java
  14. +4 −3 standalone/src/main/java/org/jboss/as/console/client/server/ServerMgmtApplicationPresenter.java
  15. +2 −2 ...ss/as/console/client/server/{ServerMgmtApplicationViewImpl.java → ServerMgmtApplicationView.java}
  16. +66 −0 standalone/src/main/java/org/jboss/as/console/client/server/deployment/DeploymentListPresenter.java
  17. +204 −0 standalone/src/main/java/org/jboss/as/console/client/server/deployment/DeploymentListView.java
  18. +76 −0 standalone/src/main/java/org/jboss/as/console/client/server/deployment/DeploymentMgmtPresenter.java
  19. +61 −0 standalone/src/main/java/org/jboss/as/console/client/server/deployment/DeploymentMgmtView.java
  20. +69 −0 standalone/src/main/java/org/jboss/as/console/client/server/deployment/LHSDeploymentNavigation.java
  21. +0 −66 standalone/src/main/java/org/jboss/as/console/client/server/deployments/DeploymentToolPresenter.java
  22. +0 −42 standalone/src/main/java/org/jboss/as/console/client/server/deployments/DeploymentToolViewImpl.java
  23. +15 −13 .../console/client/server/subsys/threads/{ThreadManagementViewImpl.java → ThreadManagementView.java}
  24. +1 −1 standalone/src/main/java/org/jboss/as/console/client/system/SystemApplicationPresenter.java
  25. +42 −0 standalone/src/main/java/org/jboss/as/console/client/widgets/LoadingOverlay.java
  26. +4 −4 ...va/org/jboss/as/console/client/{domain/deployment/DeploymentHeader.java → widgets/RHSHeader.java}
  27. +2 −0 standalone/war/App.html
  28. BIN standalone/war/images/loading_lite.gif
@@ -17,6 +17,7 @@
import org.jboss.as.console.client.core.BootstrapContext;
import org.jboss.as.console.client.core.NameTokens;
import org.jboss.as.console.client.shared.Preferences;
+import org.jboss.as.console.client.widgets.LoadingOverlay;
public class SignInPagePresenter extends
@@ -119,6 +120,9 @@ void doLogin() {
placeManager.revealPlace(myRequest);
} */
+ LoadingOverlay.on(getView().asWidget(), true);
+ getView().asWidget().setVisible(false);
+
PlaceRequest myRequest = new PlaceRequest(NameTokens.mainLayout);
placeManager.revealPlace(myRequest);
@@ -12,7 +12,7 @@
* @author Heiko Braun
* @date 2/11/11
*/
-public class BootstrapContext {
+ public class BootstrapContext {
public static final String INITIAL_TOKEN = "initial_token";
public static final String STANDALONE = "standalone_usage";
@@ -38,7 +38,7 @@
public static final String[][] SECTIONS_STANADLONE = {
new String[]{NameTokens.serverConfig, "Profile"},
- new String[]{NameTokens.deploymentTool, "Deployments"}
+ new String[]{NameTokens.DeploymentMgmtPresenter, "Deployments"}
};
private MessageBar messageBar;
@@ -13,6 +13,7 @@
import com.gwtplatform.mvp.client.proxy.RevealContentHandler;
import com.gwtplatform.mvp.client.proxy.RevealRootLayoutContentEvent;
import org.jboss.as.console.client.Console;
+import org.jboss.as.console.client.widgets.LoadingOverlay;
/**
* @author Heiko Braun
@@ -29,7 +30,7 @@
}
@ContentSlot
- public static final GwtEvent.Type<RevealContentHandler<?>> TYPE_SetMainContent = new GwtEvent.Type<RevealContentHandler<?>>();
+ public static final GwtEvent.Type<RevealContentHandler<?>> TYPE_MainContent = new GwtEvent.Type<RevealContentHandler<?>>();
@ProxyCodeSplit
@NameToken(NameTokens.mainLayout)
@@ -58,6 +59,12 @@ public void prepareFromRequest(PlaceRequest request) {
}
@Override
+ protected void onReset() {
+ super.onReset();
+ LoadingOverlay.hide();
+ }
+
+ @Override
protected void revealInParent() {
RevealRootLayoutContentEvent.fire(this, this);
}
@@ -55,7 +55,7 @@ public Widget asWidget() {
@Override
public void setInSlot(Object slot, Widget content) {
- if (slot == MainLayoutPresenter.TYPE_SetMainContent) {
+ if (slot == MainLayoutPresenter.TYPE_MainContent) {
if(content!=null)
setMainContent(content);
}
@@ -27,9 +27,9 @@ public static String getServerConfig() {
return serverConfig;
}
- public static final String deploymentTool = "server-deployments";
- public static String getDeploymentTool() {
- return deploymentTool;
+ public static final String DeploymentMgmtPresenter = "server-deployments";
+ public static String getDeploymentMgmtPresenter() {
+ return DeploymentMgmtPresenter;
}
public static final String systemApp = "system";
@@ -110,4 +110,9 @@ public static String getServerPresenter() {
public static String getInstancesPresenter() {
return InstancesPresenter;
}
+
+ public static final String DeploymentListPresenter = "deployment-list";
+ public static String getDeploymentListPresenter() {
+ return DeploymentListPresenter;
+ }
}
@@ -31,7 +31,8 @@
import org.jboss.as.console.client.domain.model.ServerGroupStore;
import org.jboss.as.console.client.domain.profiles.ProfileMgmtPresenter;
import org.jboss.as.console.client.server.ServerMgmtApplicationPresenter;
-import org.jboss.as.console.client.server.deployments.DeploymentToolPresenter;
+import org.jboss.as.console.client.server.deployment.DeploymentListPresenter;
+import org.jboss.as.console.client.server.deployment.DeploymentMgmtPresenter;
import org.jboss.as.console.client.server.interfaces.InterfaceToolPresenter;
import org.jboss.as.console.client.server.path.PathToolPresenter;
import org.jboss.as.console.client.server.properties.PropertyToolPresenter;
@@ -80,8 +81,9 @@
// ----------------------------------------------------------------------
AsyncProvider<ServerMgmtApplicationPresenter> getServerManagementAppPresenter();
+ AsyncProvider<DeploymentMgmtPresenter> getDeploymentMgmtPresenter();
+ AsyncProvider<DeploymentListPresenter> getDeploymentListPresenter();
- AsyncProvider<DeploymentToolPresenter> getDeploymentToolPresenter();
DeploymentStore getDeploymentStore();
AsyncProvider<InterfaceToolPresenter> getInterfaceToolPresenter();
@@ -29,9 +29,11 @@
import org.jboss.as.console.client.domain.profiles.ProfileMgmtPresenter;
import org.jboss.as.console.client.domain.profiles.ProfileMgmtView;
import org.jboss.as.console.client.server.ServerMgmtApplicationPresenter;
-import org.jboss.as.console.client.server.ServerMgmtApplicationViewImpl;
-import org.jboss.as.console.client.server.deployments.DeploymentToolPresenter;
-import org.jboss.as.console.client.server.deployments.DeploymentToolViewImpl;
+import org.jboss.as.console.client.server.ServerMgmtApplicationView;
+import org.jboss.as.console.client.server.deployment.DeploymentListPresenter;
+import org.jboss.as.console.client.server.deployment.DeploymentListView;
+import org.jboss.as.console.client.server.deployment.DeploymentMgmtPresenter;
+import org.jboss.as.console.client.server.deployment.DeploymentMgmtView;
import org.jboss.as.console.client.server.interfaces.InterfaceToolPresenter;
import org.jboss.as.console.client.server.interfaces.InterfaceToolViewImpl;
import org.jboss.as.console.client.server.path.PathToolPresenter;
@@ -41,7 +43,7 @@
import org.jboss.as.console.client.server.sockets.SocketToolPresenter;
import org.jboss.as.console.client.server.sockets.SocketToolViewImpl;
import org.jboss.as.console.client.server.subsys.threads.ThreadManagementPresenter;
-import org.jboss.as.console.client.server.subsys.threads.ThreadManagementViewImpl;
+import org.jboss.as.console.client.server.subsys.threads.ThreadManagementView;
import org.jboss.as.console.client.shared.DeploymentStore;
import org.jboss.as.console.client.shared.MockDeploymentStoreImpl;
import org.jboss.as.console.client.shared.MockSubsystemStore;
@@ -103,14 +105,20 @@ protected void configure() {
bindPresenter(ServerMgmtApplicationPresenter.class,
ServerMgmtApplicationPresenter.ServerManagementView.class,
- ServerMgmtApplicationViewImpl.class,
+ ServerMgmtApplicationView.class,
ServerMgmtApplicationPresenter.ServerManagementProxy.class);
// server deployments
- bindPresenter(DeploymentToolPresenter.class,
- DeploymentToolPresenter.DeploymentToolView.class,
- DeploymentToolViewImpl.class,
- DeploymentToolPresenter.DeploymentToolProxy.class);
+ bindPresenter(DeploymentMgmtPresenter.class,
+ DeploymentMgmtPresenter.DeploymentToolView.class,
+ DeploymentMgmtView.class,
+ DeploymentMgmtPresenter.DeploymentToolProxy.class);
+
+ bindPresenter(DeploymentListPresenter.class,
+ DeploymentListPresenter.MyView.class,
+ DeploymentListView.class,
+ DeploymentListPresenter.MyProxy.class);
+
bind(DeploymentStore.class).to(MockDeploymentStoreImpl.class).in(Singleton.class);
// server/interfaces
@@ -140,7 +148,7 @@ protected void configure() {
// server/threads
bindPresenter(ThreadManagementPresenter.class,
ThreadManagementPresenter.MyView.class,
- ThreadManagementViewImpl.class,
+ ThreadManagementView.class,
ThreadManagementPresenter.MyProxy.class);
@@ -8,15 +8,14 @@
import com.google.gwt.user.cellview.client.TextColumn;
import com.google.gwt.user.client.ui.*;
import com.google.gwt.view.client.ListDataProvider;
-import com.google.gwt.view.client.SelectionChangeEvent;
import com.google.gwt.view.client.SingleSelectionModel;
import org.jboss.as.console.client.core.SuspendableViewImpl;
import org.jboss.as.console.client.domain.model.ServerGroupRecord;
import org.jboss.as.console.client.shared.DeploymentRecord;
import org.jboss.as.console.client.widgets.ComboBox;
import org.jboss.as.console.client.widgets.ContentHeaderLabel;
import org.jboss.as.console.client.widgets.Feedback;
-import org.jboss.as.console.client.widgets.StackSectionHeader;
+import org.jboss.as.console.client.widgets.RHSHeader;
import org.jboss.as.console.client.widgets.forms.CheckBoxItem;
import org.jboss.as.console.client.widgets.forms.Form;
import org.jboss.as.console.client.widgets.forms.TextBoxItem;
@@ -51,7 +50,7 @@ public void setPresenter(DeploymentsPresenter presenter) {
public Widget createWidget() {
LayoutPanel layout = new LayoutPanel();
- DeploymentHeader title = new DeploymentHeader();
+ RHSHeader title = new RHSHeader("Domain Deployments");
layout.add(title);
layout.setWidgetTopHeight(title, 0, Style.Unit.PX, 28, Style.Unit.PX);
@@ -89,7 +89,7 @@ protected void onReset() {
@Override
protected void revealInParent() {
- RevealContentEvent.fire(getEventBus(), MainLayoutPresenter.TYPE_SetMainContent, this);
+ RevealContentEvent.fire(getEventBus(), MainLayoutPresenter.TYPE_MainContent, this);
}
@Override
@@ -93,7 +93,7 @@ protected void onReset() {
@Override
protected void revealInParent() {
- RevealContentEvent.fire(getEventBus(), MainLayoutPresenter.TYPE_SetMainContent, this);
+ RevealContentEvent.fire(getEventBus(), MainLayoutPresenter.TYPE_MainContent, this);
}
@Override
@@ -88,7 +88,7 @@ public void prepareFromRequest(PlaceRequest request) {
@Override
protected void revealInParent() {
// reveal in main layout
- RevealContentEvent.fire(getEventBus(), MainLayoutPresenter.TYPE_SetMainContent, this);
+ RevealContentEvent.fire(getEventBus(), MainLayoutPresenter.TYPE_MainContent, this);
}
@Override
@@ -74,7 +74,7 @@ public void onSelection(SelectionEvent<TreeItem> event) {
i+=25;
}
- stack.add(dplLayout, new StackSectionHeader("Deployments"), 28);
+ //stack.add(dplLayout, new StackSectionHeader("Deployments"), 28);
// ----------------------------------------------------
@@ -73,23 +73,24 @@ public void prepareFromRequest(PlaceRequest request) {
// reveal default sub page
if(revealDefault && NameTokens.serverConfig.equals(request.getNameToken()))
{
- placeManager.revealRelativePlace(new PlaceRequest(NameTokens.deploymentTool));
+ placeManager.revealRelativePlace(new PlaceRequest(NameTokens.ThreadManagementPresenter));
revealDefault = false; // only once
}
}
@Override
protected void onReset() {
super.onReset();
+
Console.MODULES.getHeader().highlight(NameTokens.serverConfig);
- ProfileHeader header = new ProfileHeader("Standalone Server");
+ ProfileHeader header = new ProfileHeader("Configuration Profile");
Console.MODULES.getHeader().setContent(header);
}
@Override
protected void revealInParent() {
// reveal in main layout
- RevealContentEvent.fire(getEventBus(), MainLayoutPresenter.TYPE_SetMainContent, this);
+ RevealContentEvent.fire(getEventBus(), MainLayoutPresenter.TYPE_MainContent, this);
}
}
@@ -19,7 +19,7 @@
* @author Heiko Braun
* @date 2/4/11
*/
-public class ServerMgmtApplicationViewImpl extends ViewImpl
+public class ServerMgmtApplicationView extends ViewImpl
implements ServerMgmtApplicationPresenter.ServerManagementView {
private ServerMgmtApplicationPresenter presenter;
@@ -28,7 +28,7 @@
private LayoutPanel contentCanvas;
private LHSServerNavigation lhsNavigation;
- public ServerMgmtApplicationViewImpl() {
+ public ServerMgmtApplicationView() {
super();
layout = new SplitLayoutPanel(4);
@@ -0,0 +1,66 @@
+package org.jboss.as.console.client.server.deployment;
+
+import com.google.gwt.event.shared.EventBus;
+import com.google.inject.Inject;
+import com.gwtplatform.mvp.client.Presenter;
+import com.gwtplatform.mvp.client.View;
+import com.gwtplatform.mvp.client.annotations.NameToken;
+import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit;
+import com.gwtplatform.mvp.client.proxy.Place;
+import com.gwtplatform.mvp.client.proxy.PlaceManager;
+import com.gwtplatform.mvp.client.proxy.Proxy;
+import com.gwtplatform.mvp.client.proxy.RevealContentEvent;
+import org.jboss.as.console.client.core.NameTokens;
+import org.jboss.as.console.client.shared.DeploymentRecord;
+
+/**
+ * @author Heiko Braun
+ * @date 3/14/11
+ */
+public class DeploymentListPresenter extends Presenter<DeploymentListPresenter.MyView, DeploymentListPresenter.MyProxy> {
+
+ private final PlaceManager placeManager;
+
+ @ProxyCodeSplit
+ @NameToken(NameTokens.DeploymentListPresenter)
+ public interface MyProxy extends Proxy<DeploymentListPresenter>, Place {
+ }
+
+ public interface MyView extends View {
+ void setPresenter(DeploymentListPresenter presenter);
+ }
+
+ @Inject
+ public DeploymentListPresenter(
+ EventBus eventBus, MyView view, MyProxy proxy,
+ PlaceManager placeManager) {
+
+ super(eventBus, view, proxy);
+ this.placeManager = placeManager;
+ }
+
+ @Override
+ protected void onBind() {
+ super.onBind();
+ getView().setPresenter(this);
+ }
+
+ @Override
+ protected void onReset() {
+ super.onReset();
+ }
+
+ @Override
+ protected void revealInParent() {
+ RevealContentEvent.fire(getEventBus(), DeploymentMgmtPresenter.TYPE_MainContent, this);
+ }
+
+ public void onFilterType(String value) {
+
+ }
+
+ public void deleteDeployment(DeploymentRecord selectedObject) {
+
+ }
+
+}
Oops, something went wrong.

0 comments on commit fa468fe

Please sign in to comment.