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 TypeMethodDescriptionvoidApply sharable properties.voidShare the data identified by dataId with both internal and external objects.voidShare the data identified by dataId with both internal and external objects.voiddoShareExternal(Object dataId, Object data) Share the data identified by dataId with only external (to the jvm) objects.voiddoShareInternal(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.booleanGets the sharing.Gets the unique id.protected voidInitialize this sharable.voidreceiveShareData(Sharable from, Object dataId, Object[] data) Receive share data.voidRemoves the sharable.voidsetReceiveShareTime(Object dataId, Long time) Record the time when this object rcvd the sharevoidsetShareGroup(Object shareGroup) Sets the share group.voidsetSharing(boolean sharing) Sets the sharing.voidsetUniqueId(String id) Sets the unique id.voidShow 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:
getSharingin 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:
getUniqueIdin interfaceSharable- Returns:
- the unique id
-
setUniqueId
Sets the unique id.- Parameters:
id- the new unique id
-