|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jSyncManager.Client.RegistrationData
The RegistrationData class. This persistent, serializable class stores and manages the user-specified program settings for the JSyncManager class. This class can be used by developers for auto-installing jConduits when the jSyncManager is not active.
| Field Summary | |
static java.lang.String |
JCONDUIT_FILE
The name of the default jConduit storage file. |
static java.lang.String |
PREFERENCES_FILE
The name off the ddefault preferences file. |
| Constructor Summary | |
RegistrationData()
Creates a new instance of the Registration Data user application preferences object. |
|
| Method Summary | |
protected void |
finalize()
Finalizes this object by ensuring its values are properly saved. |
int[] |
getAllowedIDs()
Retreives a list of the IDs allowed to synchronize with this jSyncManager instance. |
AbstractConduit |
getConduit(int i)
Retreives the specified installed jConduit. |
AbstractConduit |
getConduit(java.lang.String s)
Retreives an installed jConduit by name. |
int |
getConduitCount()
Gets the count of installed jConduits. |
java.util.Vector |
getConduits()
Gets all installed jConduits as a Vector object. |
DefaultConduit |
getDefaultConduit()
Deprecated. the Synchronization engine now takes care of this. This method only exists to satisfy the LegacyClient, and will be removed in the next release. |
boolean |
getDisablePopups()
Checks to see if popups are enabled or disabled. |
boolean |
getManualHide()
Checks to see if the manual hide option is enabled. |
boolean |
getModemFlag()
Checks to see if the active transport is a modem transport. |
int |
getNumAllowedIDs()
Retreives the number of IDs allowed to synchronize with this system. |
boolean |
getSecurityEnabled()
Tests to see if security is enabled or not. |
boolean |
getSyncTimeOption()
Tests to see if date/time synchronization is enabled or not. |
SLPTransportInterface |
getTransport()
Retreives the active transport instance. |
java.awt.Rectangle |
getWindowPosition()
Retreives the saved window position for the jSyncManager frame. |
boolean |
isConfigured()
Tests to see if this instance is configured. |
static RegistrationData |
loadRegistrationData()
Loads an existing RegistrationData instance from disk. |
void |
registerConduit(AbstractConduit conduit)
Registers (adds) a jConduit to the installed list. |
void |
removeConduit(AbstractConduit conduit)
Removes the specified jConduit from the installed list. |
void |
removeConduit(int i)
Removes the jConduit at the specified index. |
void |
saveSettings()
Saves this user application properties object to its file. |
void |
setAllowedIDs(int[] ai)
Sets the IDs allowed to synchronize. |
void |
setDisablePopups(boolean flag)
Sets the disable popup flag. |
void |
setFrameFlag(boolean b)
Sets the frame flag for the synchronization dialog. |
void |
setManualHide(boolean flag)
Sets the manual hide flag for the synchronization dialog. |
void |
setSecurityEnabled(boolean flag)
Sets the security enablement state flag. |
void |
setSyncTimeOption(boolean flag)
Sets the date/time sync option. |
void |
setTransport(SLPTransportInterface t)
Sets the active transport instance. |
void |
setWindowPosition(java.awt.Rectangle rectangle)
Sets the window position to the specified rectangle. |
java.lang.String |
toString()
Retreive this user application preferences object as a String. |
boolean |
useFrame()
Tests to see if the synchronizing dialog should use a frame. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static java.lang.String JCONDUIT_FILE
public static java.lang.String PREFERENCES_FILE
| Constructor Detail |
public RegistrationData()
| Method Detail |
protected void finalize()
throws java.lang.Throwable
java.lang.Throwable - thrown in the event any un-handleable throwables are generated during finalization.public int[] getAllowedIDs()
public AbstractConduit getConduit(int i)
i - the jConduit index to retreive.
public AbstractConduit getConduit(java.lang.String s)
throws ConduitNotFoundException
s - the name of the jConduit to retreive.
ConduitNotFoundException - thrown if the named jConduit isn't installed.public int getConduitCount()
public java.util.Vector getConduits()
public DefaultConduit getDefaultConduit()
public boolean getDisablePopups()
public boolean getManualHide()
public boolean getModemFlag()
public int getNumAllowedIDs()
public boolean getSecurityEnabled()
public boolean getSyncTimeOption()
public java.awt.Rectangle getWindowPosition()
public boolean isConfigured()
public static RegistrationData loadRegistrationData()
public void registerConduit(AbstractConduit conduit)
conduit - the jConduit instance to add.public void removeConduit(int i)
i - the index of the jConduit to remove.public void removeConduit(AbstractConduit conduit)
conduit - the jConduit to remove.
public void saveSettings()
throws java.lang.Exception
java.lang.Exception - thrown if any exceptions occur during write.public void setAllowedIDs(int[] ai)
ai - an array of allowed IDs.public void setDisablePopups(boolean flag)
flag - set to true to disable popups, false otherwise.public void setFrameFlag(boolean b)
b - set to true to use a frame, false otherwise.public void setManualHide(boolean flag)
flag - set to true to use manual hide, false otherwise.public void setSecurityEnabled(boolean flag)
flag - set to true to enable security, false otherwise.public void setSyncTimeOption(boolean flag)
flag - set to true to enable date/time synchronization, false otherwise.public void setWindowPosition(java.awt.Rectangle rectangle)
rectangle - the window position for the main jSyncManager frame.public boolean useFrame()
public SLPTransportInterface getTransport()
public void setTransport(SLPTransportInterface t)
t - the active transport instance.public java.lang.String toString()
|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||