Package ucar.unidata.collab
Class SharableImpl
java.lang.Object
ucar.unidata.collab.SharableImpl
- All Implemented Interfaces:
Sharable
- Direct Known Subclasses:
AnimationWidget
,DataSourceImpl
,DisplayControlBase
,Flythrough
,PropertiedThing
,ViewManager
- Author:
- Jeff McWhirter
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new sharable impl.SharableImpl
(boolean sharing) Instantiates a new sharable impl.SharableImpl
(Object group, boolean sharing) Instantiates a new sharable impl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Apply sharable properties.void
Share the data identified by dataId with both internal and external objects.void
Share the data identified by dataId with both internal and external objects.void
doShareExternal
(Object dataId, Object data) Share the data identified by dataId with only external (to the jvm) objects.void
doShareInternal
(Object dataId, Object data) Share the data identified by dataId with only internal (to the jvm) objects.getReceiveShareTime
(Object dataId) Get the last time this object rcvd the shareGets the sharable properties component.Gets the share group.boolean
Gets the sharing.Gets the unique id.protected void
Initialize this sharable.void
receiveShareData
(Sharable from, Object dataId, Object[] data) Receive share data.void
Removes the sharable.void
setReceiveShareTime
(Object dataId, Long time) Record the time when this object rcvd the sharevoid
setShareGroup
(Object shareGroup) Sets the share group.void
setSharing
(boolean sharing) Sets the sharing.void
setUniqueId
(String id) Sets the unique id.void
Show sharable dialog.
-
Constructor Details
-
SharableImpl
public SharableImpl()Instantiates a new sharable impl. -
SharableImpl
public SharableImpl(boolean sharing) Instantiates a new sharable impl.- Parameters:
sharing
- the sharing
-
SharableImpl
Instantiates a new sharable impl.- Parameters:
group
- the groupsharing
- the sharing
-
-
Method Details
-
showSharableDialog
public void showSharableDialog()Show sharable dialog. -
getSharablePropertiesComponent
Gets the sharable properties component.- Returns:
- the sharable properties component
-
applySharableProperties
public void applySharableProperties()Apply sharable properties. -
initSharable
protected void initSharable()Initialize this sharable. Add it into the SharableManager. -
getSharing
public boolean getSharing()Gets the sharing.- Specified by:
getSharing
in interfaceSharable
- Returns:
- the sharing
-
setSharing
public void setSharing(boolean sharing) Sets the sharing.- Parameters:
sharing
- the new sharing
-
removeSharable
public void removeSharable()Removes the sharable. -
getUniqueId
Gets the unique id.- Specified by:
getUniqueId
in interfaceSharable
- Returns:
- the unique id
-
setUniqueId
Sets the unique id.- Parameters:
id
- the new unique id
-