marvin.gui
Class MarvinPluginWindowComponent

java.lang.Object
  extended by marvin.gui.MarvinPluginWindowComponent

public class MarvinPluginWindowComponent
extends java.lang.Object

Generic component for PluginWindow.


Nested Class Summary
static class MarvinPluginWindowComponent.ComponentType
           
 
Field Summary
protected  java.lang.String attributeID
           
protected  MarvinAttributes attributes
           
protected  javax.swing.JComponent component
           
protected  java.lang.String id
           
 
Constructor Summary
MarvinPluginWindowComponent(java.lang.String id, java.lang.String attrID, MarvinAttributes attr, javax.swing.JComponent comp, MarvinPluginWindowComponent.ComponentType type)
          Constructs a new MarvinPluginWindowComponent
 
Method Summary
 java.lang.String getAttributeID()
          Returns the ID of the attribute associated with the component.
 MarvinAttributes getAttributes()
          Returns Atribute objectīs reference.
 javax.swing.JComponent getComponent()
          Returns the swing component representation of this component.
 java.lang.String getID()
          Returns the componentīs ID.
 MarvinPluginWindowComponent.ComponentType getType()
          Returns the type of the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id

attributeID

protected java.lang.String attributeID

attributes

protected MarvinAttributes attributes

component

protected javax.swing.JComponent component
Constructor Detail

MarvinPluginWindowComponent

public MarvinPluginWindowComponent(java.lang.String id,
                                   java.lang.String attrID,
                                   MarvinAttributes attr,
                                   javax.swing.JComponent comp,
                                   MarvinPluginWindowComponent.ComponentType type)
Constructs a new MarvinPluginWindowComponent

Parameters:
a_id -
attrID -
attr - MarvinAttributes
comp - JComponent
type -
Method Detail

getID

public java.lang.String getID()
Returns the componentīs ID.

Returns:
the componentīs ID

getAttributeID

public java.lang.String getAttributeID()
Returns the ID of the attribute associated with the component.

Returns:
attributeīs ID.

getAttributes

public MarvinAttributes getAttributes()
Returns Atribute objectīs reference.

Returns:
MarvinAttribute reference.

getComponent

public javax.swing.JComponent getComponent()
Returns the swing component representation of this component.

Returns:
the Swing component

getType

public MarvinPluginWindowComponent.ComponentType getType()
Returns the type of the component.

Returns:
the componentīs type.