|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.sasserver.RemoteObjectCustomizerPanel
public abstract class RemoteObjectCustomizerPanel
RemoteObjectCustomizerPanel is a class that can serve as the base class of of a customizer panel that needs to create a connection to create remote objects. A dialog with an informational message is displayed while the createRemoteObjects method is run asynchronously.
Field Summary | |
---|---|
protected com.sas.rmi.Connection |
connection
Connection object for remote access. |
protected com.sas.rmi.ConnectionUtility |
connectionUtility
Connection utility used to display a default or busy cursor. |
protected boolean |
dialogAsynchronous
Controls whether the CommandProgress dialog is run asynchronously. |
protected com.sas.collection.OrderedCollection |
dialogDisposeList
Registered dialogs that require dispose being called. |
protected boolean |
isConnectionDesignTimeActive
Flag which indicates if the connection is active at design time. |
protected com.sas.collection.OrderedCollection |
remoteObjects
Registered RemoteBaseClient objects. |
protected com.sas.rmi.Rocf |
rocf
Rocf object used for remote object creation. |
Fields inherited from class com.sas.visuals.CustomizerPanel |
---|
bean |
Fields inherited from class com.sas.visuals.TabFolder |
---|
RB_KEY |
Constructor Summary | |
---|---|
RemoteObjectCustomizerPanel(java.lang.String tabName)
Abstract class. |
Method Summary | |
---|---|
protected void |
connectionAlternateThreadEnding()
Called after the thread is either completed or terminated. |
protected void |
connectionThreadEnding()
Called after the thread is either completed or terminated. |
protected void |
createAlternateRemoteObjects()
Creates an instance of Rocf and tests the connection. |
protected void |
createRemoteObjects()
Creates an instance of Rocf and tests the connection. |
protected void |
createRocf()
|
void |
customizerClosing()
Called whenever the customizer is closing. |
protected void |
disposeRemoteObject(java.lang.Object remoteObject)
|
protected void |
disposeRemoteObjects()
Cleans up any remote objects. |
static com.sas.rmi.Connection |
getConnection(com.sas.rmi.RemoteBaseClient rbc)
|
protected void |
initializeConnection(com.sas.rmi.RemoteBaseClient rbc)
Called on the java bean being customized to get the connection object. |
protected boolean |
isDesignTimeObject()
Specifies whether or not the remote object being customized is a design time object. |
protected void |
registerDialog(RemoteObjectSelectorDialog dialog)
Registers a RemoteObjectSelectorDialog. |
protected void |
registerRemoteBaseClient(com.sas.rmi.RemoteBaseClient rbc)
Registers a RemoteBaseClient. |
protected void |
runAlternateConnectionThread()
Called to run thread that performs remote user defined operations as defined in createAlternateRemoteObjects. |
protected void |
runConnectionThread()
Called to run thread that performs remote user defined operations as defined in createRemoteObjects. |
void |
setObject(java.lang.Object bean)
Called when a java bean is being set on a customizer. |
boolean |
wasCancelled()
Indicates whether or not the cancel button was pressed. |
boolean |
wasExceptionThrown()
Indicates whether or not an exception was thrown creating the remote objects. |
Methods inherited from class com.sas.visuals.CustomizerPanel |
---|
getObject |
Methods inherited from class com.sas.visuals.TabFolder |
---|
getDefaultHeight, getDefaultWidth, getExtendedBeanInfo, getTabButton, getText, propertyChange, setBackground, setDefaultHeight, setDefaultValues, setDefaultWidth, setTabButton, setText |
Methods inherited from class com.sas.awt.Panel |
---|
remove, remove, removeAll |
Methods inherited from interface com.sas.awt.ContainerInterface |
---|
getComponents, getLayout, invalidate, setLayout, validate |
Field Detail |
---|
protected boolean isConnectionDesignTimeActive
protected com.sas.rmi.Connection connection
protected com.sas.rmi.Rocf rocf
protected com.sas.rmi.ConnectionUtility connectionUtility
protected com.sas.collection.OrderedCollection remoteObjects
protected boolean dialogAsynchronous
protected com.sas.collection.OrderedCollection dialogDisposeList
Constructor Detail |
---|
public RemoteObjectCustomizerPanel(java.lang.String tabName)
tabName
- name displayed on tab buttonMethod Detail |
---|
protected void registerDialog(RemoteObjectSelectorDialog dialog)
dialog
- the dialog to registerprotected void registerRemoteBaseClient(com.sas.rmi.RemoteBaseClient rbc)
rbc
- object to registerprotected boolean isDesignTimeObject()
true
if the object is a design time object, otherwise false
protected void initializeConnection(com.sas.rmi.RemoteBaseClient rbc)
rbc
- the object to get the connection forpublic static final com.sas.rmi.Connection getConnection(com.sas.rmi.RemoteBaseClient rbc)
protected void createRocf()
protected void createRemoteObjects() throws java.lang.Exception
java.lang.Exception
- If an error occurs when connecting to the remote host.protected void createAlternateRemoteObjects() throws java.lang.Exception
java.lang.Exception
- If an error occurs when connecting to the remote host.protected void disposeRemoteObjects()
RemoteBaseClient
,
registerRemoteBaseClient(com.sas.rmi.RemoteBaseClient)
,
registerDialog(com.sas.sasserver.RemoteObjectSelectorDialog)
protected void disposeRemoteObject(java.lang.Object remoteObject)
protected void connectionThreadEnding()
wasCancelled
,
wasExceptionThrown()
protected void connectionAlternateThreadEnding()
wasCancelled
,
wasExceptionThrown()
protected void runConnectionThread()
connectionThreadEnding()
protected void runAlternateConnectionThread()
connectionThreadEnding()
public boolean wasCancelled()
true
if the progress dialog was cancelled, false
otherwisepublic boolean wasExceptionThrown()
true
if the an exception was thrown creating the remote objects,
false
otherwisepublic void customizerClosing()
customizerClosing
in interface com.sas.beans.CustomizerClosingInterface
customizerClosing
in class CustomizerPanel
CustomizerPanel.customizerClosing()
,
disposeRemoteObjects()
public void setObject(java.lang.Object bean)
setObject
in interface java.beans.Customizer
setObject
in class CustomizerPanel
bean
- the object to customizeCustomizer.setObject(java.lang.Object)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |