com.ibm.dse.tools.workbench.gui
Class EntityEntityUI

java.lang.Object
  |
  +--com.ibm.dse.tools.workbench.gui.EntityEntityUI

public class EntityEntityUI
extends java.lang.Object
implements UIDelegate, javax.swing.ListCellRenderer, javax.swing.tree.TreeCellRenderer

User interface for entities.


Field Summary
protected  EntityEntityCellRenderer cellRenderer
           
 
Fields inherited from interface com.ibm.dse.tools.workbench.gui.UIDelegate
MENU_EXTENSIONS_SECTION
 
Constructor Summary
EntityEntityUI()
          This constructor creates an EntityEntityUI object.
 
Method Summary
 void addChangeListener(DWChangeListener listener)
          This method adds a DWChangeListener listener to the listener list.
 javax.swing.JComponent getEditor(javax.swing.JComponent component)
          This method returns the editor component for the class and for a type of component.
 java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
          This method returns the components of ListCellRenderer
 java.awt.Component[] getOptionList(TableRow row, java.util.Hashtable params)
          This method returns the specific options for a class.
 javax.swing.Renderer getRenderer(javax.swing.JComponent component)
          This method returns the renderer component for this element and for a type of component.
 java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree, java.lang.Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
          This methods returns the component of a TreeCellRenderer
 void launchWizard(TableRow tableRow, java.util.Hashtable params)
          This method launches the appropiate wizard to edit the instance.
 void refreshRenderers()
          This method refresh the Renderers
 void removeChangeListener(DWChangeListener listener)
          This method removes a DWChangeListener listener from the listener list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cellRenderer

protected EntityEntityCellRenderer cellRenderer
Constructor Detail

EntityEntityUI

public EntityEntityUI()
This constructor creates an EntityEntityUI object.
Method Detail

addChangeListener

public void addChangeListener(DWChangeListener listener)
This method adds a DWChangeListener listener to the listener list.
Parameters:
listener - com.ibm.dse.tools.workbench.gui.DWChangeListener

getEditor

public javax.swing.JComponent getEditor(javax.swing.JComponent component)
This method returns the editor component for the class and for a type of component.
Specified by:
getEditor in interface UIDelegate
Parameters:
component - com.sun.java.swing.JComponent
Returns:
com.sun.java.swing.JComponent

getListCellRendererComponent

public java.awt.Component getListCellRendererComponent(javax.swing.JList list,
                                                       java.lang.Object value,
                                                       int index,
                                                       boolean isSelected,
                                                       boolean cellHasFocus)
This method returns the components of ListCellRenderer
Specified by:
getListCellRendererComponent in interface javax.swing.ListCellRenderer
Parameters:
list - java.swing.JList
value - java.lang.Object
index - int
isSelected - boolean
cellHasFocus - boolean
Returns:
javax.swing.renderer.getComponent

getOptionList

public java.awt.Component[] getOptionList(TableRow row,
                                          java.util.Hashtable params)
This method returns the specific options for a class. The menu items will be displayed on a menu.
Specified by:
getOptionList in interface UIDelegate
Parameters:
row - com.ibm.dse.tools.workbench.base.TableRow
params - java.lang.Object
Returns:
com.sun.java.swing.JMenuItem[]

getRenderer

public javax.swing.Renderer getRenderer(javax.swing.JComponent component)
This method returns the renderer component for this element and for a type of component.
Specified by:
getRenderer in interface UIDelegate
Parameters:
component - com.sun.java.swing.JComponent
Returns:
com.sun.java.swing.JComponent

getTreeCellRendererComponent

public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree,
                                                       java.lang.Object value,
                                                       boolean selected,
                                                       boolean expanded,
                                                       boolean leaf,
                                                       int row,
                                                       boolean hasFocus)
This methods returns the component of a TreeCellRenderer
Specified by:
getTreeCellRendererComponent in interface javax.swing.tree.TreeCellRenderer
Parameters:
tree - javax.swing.JTree
value - java.lang.Object
selected - boolean
expanded - boolean
leaf - boolean
row - int
hasFocus - boolean
Returns:
com.sun.java.swing.JComponent

launchWizard

public void launchWizard(TableRow tableRow,
                         java.util.Hashtable params)
This method launches the appropiate wizard to edit the instance.
Specified by:
launchWizard in interface UIDelegate
Parameters:
tableRow - com.ibm.dse.tools.workbench.base.TableRow
params - java.util.Hashtable

refreshRenderers

public void refreshRenderers()
This method refresh the Renderers
Specified by:
refreshRenderers in interface UIDelegate

removeChangeListener

public void removeChangeListener(DWChangeListener listener)
This method removes a DWChangeListener listener from the listener list.
Parameters:
listener - com.ibm.dse.tools.workbench.gui.DWChangeListener