com.ibm.cics.core.connections
Class ConnectionWidgetManager

java.lang.Object
  extended by com.ibm.cics.core.connections.ConnectionWidgetManager
All Implemented Interfaces:
IActiveConnectionCategoryService

Deprecated. use IConnectionUserInterfaceService#createConnectionWidget(org.eclipse.swt.widgets.Composite, String) to

@Deprecated
public class ConnectionWidgetManager
extends java.lang.Object
implements IActiveConnectionCategoryService

Manages a IConnectionStateViewer, controlling which category is displayed, and listening to the IConnectionService to receive updates on the state of that connection. It should no longer be necessary to use this class, as IConnectionUserInterfaceService#createConnectionWidget(org.eclipse.swt.widgets.Composite, String) can be used to construct a connection widget.


Constructor Summary
ConnectionWidgetManager(IConnectionService connectionService)
          Deprecated. Constructor.
ConnectionWidgetManager(IConnectionService connectionService, boolean isInDialog)
          Deprecated. Constructor.
 
Method Summary
 void addActiveConnectionCategoryListener(IActiveConnectionCategoryListener listener)
          Deprecated. Adds a new IActiveConnectionCategoryListener to this service, which will be notified whenever the active connection category provided by this service changes.
 void dispose()
          Deprecated. Disposes the ConnectionWidgetManager
 java.lang.String getActiveConnectionCategory()
          Deprecated. Returns the ID of the currently active connection category, according to this connection category service, or null if no connection category is active.
 IConnectionStatusController getConnectionStatusController()
          Deprecated.  
 boolean isDialogMode()
          Deprecated. Answers whether this ConnectionWidgetManager is in dialog mode.
 void removeActiveConnectionCategoryListener(IActiveConnectionCategoryListener listener)
          Deprecated. Removes an existing IActiveConnectionCategoryListener from this service.
 void setConnectionStateViewer(IConnectionStateViewer connectionStateViewer)
          Deprecated. Sets the IConnectionStateViewer to be used by this ConnectionWidgetManager
 void setCurrentCategory(java.lang.String aCategory)
          Deprecated. Sets the connection category displayed by the connection status viewer managed by this manager
 void setDialogMode(boolean dialogMode)
          Deprecated. Set whether this ConnectionWidgetManager is in dialog mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionWidgetManager

public ConnectionWidgetManager(IConnectionService connectionService)
Deprecated. 
Constructor. Defaults to not in a dialog state.

Parameters:
connectionService - the connection service this ConnectionWidgetManager should use

ConnectionWidgetManager

public ConnectionWidgetManager(IConnectionService connectionService,
                               boolean isInDialog)
Deprecated. 
Constructor. In dialog mode, content that can not be accessed from a modal context (e.g. display the host connections view) will be hidden.

Parameters:
connectionService - connection service to use
isInDialog - whether or not the ConnectionTrimWidget is in a dialog
Method Detail

dispose

public void dispose()
Deprecated. 
Disposes the ConnectionWidgetManager


addActiveConnectionCategoryListener

public void addActiveConnectionCategoryListener(IActiveConnectionCategoryListener listener)
Deprecated. 
Description copied from interface: IActiveConnectionCategoryService
Adds a new IActiveConnectionCategoryListener to this service, which will be notified whenever the active connection category provided by this service changes.

Specified by:
addActiveConnectionCategoryListener in interface IActiveConnectionCategoryService
Parameters:
listener - the listener to be added

removeActiveConnectionCategoryListener

public void removeActiveConnectionCategoryListener(IActiveConnectionCategoryListener listener)
Deprecated. 
Description copied from interface: IActiveConnectionCategoryService
Removes an existing IActiveConnectionCategoryListener from this service.

Specified by:
removeActiveConnectionCategoryListener in interface IActiveConnectionCategoryService
Parameters:
listener - the listener to remove

setConnectionStateViewer

public void setConnectionStateViewer(IConnectionStateViewer connectionStateViewer)
Deprecated. 
Sets the IConnectionStateViewer to be used by this ConnectionWidgetManager


getConnectionStatusController

public IConnectionStatusController getConnectionStatusController()
Deprecated. 
Returns:
the IConnectionStatusController

setCurrentCategory

public void setCurrentCategory(java.lang.String aCategory)
Deprecated. 
Sets the connection category displayed by the connection status viewer managed by this manager

Parameters:
aCategory -

getActiveConnectionCategory

public java.lang.String getActiveConnectionCategory()
Deprecated. 
Description copied from interface: IActiveConnectionCategoryService
Returns the ID of the currently active connection category, according to this connection category service, or null if no connection category is active.

Specified by:
getActiveConnectionCategory in interface IActiveConnectionCategoryService
Returns:
the active connection category ID or null

isDialogMode

public boolean isDialogMode()
Deprecated. 
Answers whether this ConnectionWidgetManager is in dialog mode. In dialog mode, content that can not be accessed from a modal context (e.g. display the host connections view) will be hidden.

Returns:
a boolean indicating whether or not this ConnectionWidgetManager is in dialog mode.

setDialogMode

public void setDialogMode(boolean dialogMode)
Deprecated. 
Set whether this ConnectionWidgetManager is in dialog mode. In dialog mode, content that can not be accessed from a modal context (e.g. display the host connections view) will be hidden.

Parameters:
dialogMode - a boolean indicating whether or not this ConnectionWidgetManager is in dialog mode.


Copyright © 2013 IBM Corp. All Rights Reserved.