de.uni_paderborn.fujaba.app
Class TabProxy

java.lang.Object
  extended byde.uni_paderborn.fujaba.app.TabProxy

public class TabProxy
extends java.lang.Object

Version:
$Revision: 1.69.2.3 $
Author:
$Author: cschneid $

Constructor Summary
TabProxy(java.lang.String tabTitle, java.lang.String rootTitle, java.lang.String tip, javax.swing.Icon icon)
          Constructor for class TabProxy
 
Method Summary
 void addTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
          Access method for an one to n association.
 javax.swing.tree.TreePath findTreePath(java.lang.Object obj)
          Find obj in tree and return the tree path.
 java.awt.Component getComponent()
          UMLMethod: 'Read access method for attribute component : Void'
 javax.swing.Icon getIcon()
          UMLMethod: 'Read access method for attribute icon : Void'
 LogicUnparseInterface getLogicAt(int x, int y)
          Find the logic represented by the gui element at a specific location in the tab.
 javax.swing.tree.DefaultMutableTreeNode getRoot()
          Get the root attribute of the TabProxy object
 TabbedPaneProxy getTabbedPaneProxy()
          Get the tabbedPaneProxy attribute of the TabProxy object
 java.lang.String getTip()
          UMLMethod: 'Read access method for attribute tip : String'
 java.lang.String getTitle()
          UMLMethod: 'Read access method for attribute title : String'
 javax.swing.JTree getTree()
          Return the tree component
 javax.swing.tree.TreeCellRenderer getTreeCellRenderer()
          Get the treeCellRenderer attribute of the TabProxy object
 void init()
          No comment provided by developer, please add a comment to improve documentation.
 boolean isTabEmpty()
          Return true if this tab contains no entries except the root node.
 void removeYou()
          No comment provided by developer, please add a comment to improve documentation.
 java.awt.Component setComponent(java.awt.Component component)
          UMLMethod: 'Write access method for attribute component : Void'
 javax.swing.Icon setIcon(javax.swing.Icon icon)
          UMLMethod: 'Write access method for attribute icon : Void'
 void setRoot(javax.swing.tree.DefaultMutableTreeNode root)
          Sets the root attribute of the TabProxy object
 boolean setTabbedPaneProxy(TabbedPaneProxy value)
          Sets the tabbedPaneProxy attribute of the TabProxy object
 java.lang.String setTip(java.lang.String tip)
          UMLMethod: 'Write access method for attribute tip : String'
 java.lang.String setTitle(java.lang.String title)
          UMLMethod: 'Write access method for attribute title : String'
 void setTree(javax.swing.JTree tree)
          Sets the tree attribute of the TabProxy object
 void setTreeCellRenderer(javax.swing.tree.TreeCellRenderer treeCellRenderer)
          Sets the treeCellRenderer attribute of the TabProxy object
protected  javax.swing.JScrollPane setupScrollTreeComponent(javax.swing.JTree tree)
          Add a scroll component to the tree.
protected  javax.swing.JTree setupTreeComponent()
          Setup tree component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabProxy

public TabProxy(java.lang.String tabTitle,
                java.lang.String rootTitle,
                java.lang.String tip,
                javax.swing.Icon icon)
Constructor for class TabProxy

Parameters:
tabTitle - No description provided
rootTitle - No description provided
tip - No description provided
icon - No description provided
Method Detail

setRoot

public void setRoot(javax.swing.tree.DefaultMutableTreeNode root)
Sets the root attribute of the TabProxy object

Parameters:
root - The new root value

getRoot

public javax.swing.tree.DefaultMutableTreeNode getRoot()
Get the root attribute of the TabProxy object

Returns:
The root value

setTree

public void setTree(javax.swing.JTree tree)
Sets the tree attribute of the TabProxy object

Parameters:
tree - The new tree value

getTree

public javax.swing.JTree getTree()
Return the tree component

Returns:
The tree value

getComponent

public java.awt.Component getComponent()
UMLMethod: 'Read access method for attribute component : Void'

Returns:
The component value

setComponent

public java.awt.Component setComponent(java.awt.Component component)
UMLMethod: 'Write access method for attribute component : Void'

Parameters:
component - The new component value
Returns:
No description provided

getIcon

public javax.swing.Icon getIcon()
UMLMethod: 'Read access method for attribute icon : Void'

Returns:
The icon value

setIcon

public javax.swing.Icon setIcon(javax.swing.Icon icon)
UMLMethod: 'Write access method for attribute icon : Void'

Parameters:
icon - The new icon value
Returns:
No description provided

getTip

public java.lang.String getTip()
UMLMethod: 'Read access method for attribute tip : String'

Returns:
The tip value

setTip

public java.lang.String setTip(java.lang.String tip)
UMLMethod: 'Write access method for attribute tip : String'

Parameters:
tip - The new tip value
Returns:
No description provided

getTitle

public java.lang.String getTitle()
UMLMethod: 'Read access method for attribute title : String'

Returns:
The title value

setTitle

public java.lang.String setTitle(java.lang.String title)
UMLMethod: 'Write access method for attribute title : String'

Parameters:
title - The new title value
Returns:
No description provided

getTreeCellRenderer

public javax.swing.tree.TreeCellRenderer getTreeCellRenderer()
Get the treeCellRenderer attribute of the TabProxy object

Returns:
The treeCellRenderer value

setTreeCellRenderer

public void setTreeCellRenderer(javax.swing.tree.TreeCellRenderer treeCellRenderer)
Sets the treeCellRenderer attribute of the TabProxy object

Parameters:
treeCellRenderer - The new treeCellRenderer value

init

public void init()
No comment provided by developer, please add a comment to improve documentation.


addTreeNode

public void addTreeNode(javax.swing.tree.DefaultMutableTreeNode node)
Access method for an one to n association.

Parameters:
node - The object added.

isTabEmpty

public boolean isTabEmpty()
Return true if this tab contains no entries except the root node.

Returns:
The tabEmpty value

setupTreeComponent

protected javax.swing.JTree setupTreeComponent()
Setup tree component

Returns:
No description provided

setupScrollTreeComponent

protected javax.swing.JScrollPane setupScrollTreeComponent(javax.swing.JTree tree)
Add a scroll component to the tree.

Parameters:
tree - No description provided
Returns:
No description provided

findTreePath

public javax.swing.tree.TreePath findTreePath(java.lang.Object obj)
Find obj in tree and return the tree path.

Parameters:
obj - No description provided
Returns:
No description provided

setTabbedPaneProxy

public boolean setTabbedPaneProxy(TabbedPaneProxy value)
Sets the tabbedPaneProxy attribute of the TabProxy object

Parameters:
value - The new tabbedPaneProxy value
Returns:
No description provided

getTabbedPaneProxy

public TabbedPaneProxy getTabbedPaneProxy()
Get the tabbedPaneProxy attribute of the TabProxy object

Returns:
The tabbedPaneProxy value

removeYou

public void removeYou()
No comment provided by developer, please add a comment to improve documentation.


getLogicAt

public LogicUnparseInterface getLogicAt(int x,
                                        int y)
Find the logic represented by the gui element at a specific location in the tab.

Parameters:
x - horizontal coordinate of location
y - vertical coordinate of location
Returns:
the logic that is represented, null if none was found