public class TabScenePanel extends java.lang.Object implements ContentPrototype
| Red (ahuseyno) |
| Red (ahuseyno) |
| Constructor and Description |
|---|
TabScenePanel(HomerMainFrame mainFrame)
Create a new tab scene onto which widgets can be dropped.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(PositionableElement element)
Add an element's representation to the scene.
|
org.netbeans.api.visual.model.ObjectScene |
getContent()
Get a reference to the current scene.
|
java.lang.String |
getName()
Get the name of the tab.
|
ContentPrototype |
getNewInstance()
Get a new tab scene panel instance.
|
java.lang.String |
getTag()
Return the tag of the tab.
|
java.awt.Component |
getView()
Get the view associated with the scene.
|
void |
remove(PositionableElement element)
Remove the widget from the scene.
|
void |
setName(java.lang.String name)
Set the name of the tab.
|
void |
setTag(java.lang.String tag)
Set the tag of the tab.
|
public TabScenePanel(HomerMainFrame mainFrame)
mainFrame - The parent frame of the panel.public void add(PositionableElement element) throws IllegalActionException
add in interface ContentPrototypeelement - The element to be added.IllegalActionException - If the appropriate element's representation
cannot be loaded.public org.netbeans.api.visual.model.ObjectScene getContent()
getContent in interface ContentPrototypepublic java.lang.String getName()
setName(String)public ContentPrototype getNewInstance()
getNewInstance in interface ContentPrototypepublic java.lang.String getTag()
setTag(String)public java.awt.Component getView()
public void remove(PositionableElement element)
remove in interface ContentPrototypeelement - The widget to be removed.public void setName(java.lang.String name)
name - The name of the tab.getName()public void setTag(java.lang.String tag)
tag - The tag to set.getTag()