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 $
Author:
$Author: lowende $

Nested Class Summary
private  class TabProxy.EditorContainer
          Container responsible for placing the editingComponent.
private  class TabProxy.FujabaCellEditorListener
          This class deals with the setting the new names, when the user enters return.
private  class TabProxy.FujabaTreeCellEditor
          TreeCellEditor for editing the Nodes in the TreeView.
private  class TabProxy.PopupListener
          This class handles the mouse clicks on the 'project-tree' and shows a popup menu for the UMLPackages
private  class TabProxy.TreeListener
          No comment provided by developer, please add a comment to improve documentation.
 
Field Summary
private  java.awt.Component component
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.Icon icon
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.tree.DefaultMutableTreeNode root
          Tree representation.
private  TabbedPaneProxy tabbedPaneProxy
           --------- 0..1 tabProxy 0..1 TabbedPaneProxy | title |------------------------------- TabProxy --------- tabbedPaneProxy tabProxy
private  java.lang.String tip
          No comment provided by developer, please add a comment to improve documentation.
private  java.lang.String title
          No comment provided by developer, please add a comment to improve documentation.
(package private)  javax.swing.JTree tree
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.tree.TreeCellRenderer treeCellRenderer
          No comment provided by developer, please add a comment to improve documentation.
 
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
 

Field Detail

root

private javax.swing.tree.DefaultMutableTreeNode root
Tree representation.


tree

javax.swing.JTree tree
No comment provided by developer, please add a comment to improve documentation.


component

private java.awt.Component component
No comment provided by developer, please add a comment to improve documentation.


icon

private javax.swing.Icon icon
No comment provided by developer, please add a comment to improve documentation.


tip

private java.lang.String tip
No comment provided by developer, please add a comment to improve documentation.


title

private java.lang.String title
No comment provided by developer, please add a comment to improve documentation.


treeCellRenderer

private javax.swing.tree.TreeCellRenderer treeCellRenderer
No comment provided by developer, please add a comment to improve documentation.


tabbedPaneProxy

private TabbedPaneProxy tabbedPaneProxy
                 --------- 0..1      tabProxy       0..1
 TabbedPaneProxy | title |------------------------------- TabProxy
                 --------- tabbedPaneProxy      tabProxy
 

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