ucar.unidata.idv.control.multi
Class DisplayControlWrapper

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.collab.PropertiedThing
          extended by ucar.unidata.idv.control.multi.DisplayComponent
              extended by ucar.unidata.idv.control.multi.DisplayControlWrapper
All Implemented Interfaces:
PropertyChangeListener, EventListener, Sharable

public class DisplayControlWrapper
extends DisplayComponent

Provides a table view

Version:
$Revision: 1.6 $
Author:
IDV Development Team

Field Summary
static int DECORATION_BORDER
          type of decoration
static String[] DECORATION_NAMES
          type of decoration
static int DECORATION_NONE
          type of decoration
static int DECORATION_TITLEDBORDER
          type of decoration
static int[] DECORATIONS
          type of decoration
 
Fields inherited from class ucar.unidata.idv.control.multi.DisplayComponent
CMD_SAVEIMAGE, CMD_SAVEMOVIE, displayControl, displayLabel, hasBeenInitialized, isRemoved, PROP_REMOVED
 
Fields inherited from class ucar.unidata.collab.PropertiedThing
propertiesDialog
 
Constructor Summary
DisplayControlWrapper()
          Default ctor
DisplayControlWrapper(DisplayControlImpl myDisplayControl)
          Default ctor
 
Method Summary
protected  boolean applyProperties()
          Apply properties
protected  JComponent doMakeContents()
          make the gui
 void doRemove()
          Cleanup the component
 int getDecoration()
          Get the Decoration property.
 DisplayControlImpl getMyDisplayControl()
          Get the DisplayControl property.
protected  List getPopupMenuItems(List items)
          Add to the popup menu
protected  void getPropertiesComponents(List comps, int tabIdx)
          Make the properties gui
 String getTypeName()
          Return the human readable name of this component
 void initAfterUnPersistence(MultiDisplayHolder displayControl, ControlContext vc, Hashtable properties)
          Called by the IntegratedDataViewer to initialize after this control has been unpersisted
 void propertyChange(PropertyChangeEvent event)
          Handle the property change event
 void setDecoration(int value)
          Set the Decoration property.
 void setMyDisplayControl(DisplayControlImpl value)
          Set the DisplayControl property.
 String toString()
          to string
 
Methods inherited from class ucar.unidata.idv.control.multi.DisplayComponent
addGroupMenuItems, animationTimeChanged, doApplyProperties, doMakeDisplayLabel, doSaveImage, doSaveMovie, getBackgroundColor, getContents, getDisplayables, getDisplayControl, getDisplayGroup, getDisplayLabel, getIsRemoved, getLabelShown, getName, initDone, loadData, removeDisplayComponent, setBackgroundColor, setDisplayControl, setDisplayGroup, setIsRemoved, setLabelShown, setName, showPopup, showProperties
 
Methods inherited from class ucar.unidata.collab.PropertiedThing
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyListeners, getPropertyTabs, isShowing, removePropertyChangeListener, showProperties
 
Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DECORATION_NONE

public static final int DECORATION_NONE
type of decoration

See Also:
Constant Field Values

DECORATION_BORDER

public static final int DECORATION_BORDER
type of decoration

See Also:
Constant Field Values

DECORATION_TITLEDBORDER

public static final int DECORATION_TITLEDBORDER
type of decoration

See Also:
Constant Field Values

DECORATIONS

public static final int[] DECORATIONS
type of decoration


DECORATION_NAMES

public static final String[] DECORATION_NAMES
type of decoration

Constructor Detail

DisplayControlWrapper

public DisplayControlWrapper()
Default ctor


DisplayControlWrapper

public DisplayControlWrapper(DisplayControlImpl myDisplayControl)
Default ctor

Parameters:
myDisplayControl - My control
Method Detail

initAfterUnPersistence

public void initAfterUnPersistence(MultiDisplayHolder displayControl,
                                   ControlContext vc,
                                   Hashtable properties)
Called by the IntegratedDataViewer to initialize after this control has been unpersisted

Overrides:
initAfterUnPersistence in class DisplayComponent
Parameters:
displayControl - The display control I am part of
vc - The context in which this control exists
properties - Properties that may hold things

propertyChange

public void propertyChange(PropertyChangeEvent event)
Handle the property change event

Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class PropertiedThing
Parameters:
event - The event

getPropertiesComponents

protected void getPropertiesComponents(List comps,
                                       int tabIdx)
Make the properties gui

Overrides:
getPropertiesComponents in class DisplayComponent
Parameters:
comps - List of components
tabIdx - Which tab in the gui

applyProperties

protected boolean applyProperties()
Apply properties

Overrides:
applyProperties in class DisplayComponent
Returns:
Successful

getPopupMenuItems

protected List getPopupMenuItems(List items)
Add to the popup menu

Overrides:
getPopupMenuItems in class DisplayComponent
Parameters:
items - List of menu items
Returns:
The list

getTypeName

public String getTypeName()
Return the human readable name of this component

Overrides:
getTypeName in class DisplayComponent
Returns:
component type name

doRemove

public void doRemove()
Cleanup the component

Overrides:
doRemove in class DisplayComponent

doMakeContents

protected JComponent doMakeContents()
make the gui

Specified by:
doMakeContents in class DisplayComponent
Returns:
The gui contents

toString

public String toString()
to string

Overrides:
toString in class DisplayComponent
Returns:
string

setMyDisplayControl

public void setMyDisplayControl(DisplayControlImpl value)
Set the DisplayControl property.

Parameters:
value - The new value for DisplayControl

getMyDisplayControl

public DisplayControlImpl getMyDisplayControl()
Get the DisplayControl property.

Returns:
The DisplayControl

setDecoration

public void setDecoration(int value)
Set the Decoration property.

Parameters:
value - The new value for Decoration

getDecoration

public int getDecoration()
Get the Decoration property.

Returns:
The Decoration