|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ibm.di.admin.ui.BaseUI
com.ibm.di.admin.ui.ConnectorTreeUI
public class ConnectorTreeUI
This is the Connector Tree user interface class. This class is responsible for tree events.
Nested Class Summary | |
---|---|
class |
ConnectorTreeUI.AddConnector
This class represents an object which is added to an AssemblyLine. |
class |
ConnectorTreeUI.CheckBoxListener
|
class |
ConnectorTreeUI.ConnectorTree
Sub class JTree to avoid editing of certain objects. |
class |
ConnectorTreeUI.ConnectorTreeContextMenu
This class describes context menu for a Component. |
class |
ConnectorTreeUI.ConnectorTreeModel
List Model. |
class |
ConnectorTreeUI.TreeSelMod
Override the setSelectionPath to prevent resetting selected items if user clicks on an already selected item. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ConnectorTreeUI()
Constructor for the ConnectorTreeUI object |
|
ConnectorTreeUI(AssemblyLineConfig config)
Constructor for the ConnectorTreeUI object |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent event)
This method is called when an action is performed. |
void |
addConnector(Object name)
Adds a connector to the container |
void |
addEnabledCB(JPopupMenu menu,
Object sel)
|
void |
clearSelection()
This method clears the selection. |
int |
count()
Returns the number of components in our container |
void |
createUI()
Creates user interface for config object |
boolean |
differentRoots(BaseConfiguration one,
BaseConfiguration two)
Check if two BaseConfigurations are in different Containers. |
void |
doubleClick(int row,
TreePath path)
Called when an item has been double clicked - fires a Rename action event |
void |
dragDropEnd(DragSourceDropEvent e)
Called after drag/drop ended - reset selection path |
void |
dragGestureRecognized(DragGestureEvent e)
Called when an item has been dragged. |
void |
dragOver(DropTargetDragEvent e)
This method is call when a drag operation is performed. |
void |
drop(DropTargetDropEvent e)
Items dropped - either add configs from the library (list) or rearrange internally (string) |
void |
enableToolbarItem(String actionName,
boolean enabled)
This method enables the specified tool bar item. |
void |
enableToolbarItems(String[] actionNames,
boolean enabled)
This method specifies if a tool bar items are enabled/disabled. |
int |
getSelectedIndex()
Gets the selectedIndex attribute of the ConnectorTreeUI object |
int[] |
getSelectedIndices()
Gets the selectedIndices attribute of the ConnectorTreeUI object |
Object |
getSelectedItem()
Gets the selectedItem attribute of the ConnectorTreeUI object |
Vector |
getSelectedItems()
Gets all selected items |
void |
moveComponent(String name,
Point p)
This method is call when a Component is moved. |
void |
moveOneComponent(String name,
Point p,
boolean giveMessage)
This method is call when a Component is moved. |
void |
openSelection(int row,
TreePath path)
Opens the current selection |
void |
renameSelectedItem()
Called to start editing the currently selected item |
ContainerConfig |
rootContainer(BaseConfiguration bc)
Returns the top level container for a config |
ContainerConfig |
selectedContainer()
This method returns the currently selected container. |
void |
setSelectedIndex(int index)
Sets the selectedIndex attribute of the ConnectorTreeUI object |
void |
singleClick(int row,
TreePath path)
Called when an item has been clicked |
void |
valueChanged(TreeSelectionEvent event)
This method is called when the value of the selected item is changed. |
Methods inherited from class com.ibm.di.admin.ui.BaseUI |
---|
addActionListener, dragEnter, dragEnter, dragExit, dragExit, dragOver, dropActionChanged, dropActionChanged, findContainer, fireActionPerformed, getConfig, getContainer, getProperty, isDebugMode, removeActionListener, setConfig, setContainer, setProperty |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.dnd.DropTargetListener |
---|
dragEnter, dragExit, dropActionChanged |
Constructor Detail |
---|
public ConnectorTreeUI()
public ConnectorTreeUI(AssemblyLineConfig config)
config
- this parameter represents AssemblyLine configuration.Method Detail |
---|
public void createUI()
BaseUIInterface
createUI
in interface BaseUIInterface
public void singleClick(int row, TreePath path)
row
- the row on which the item is placed.path
- the path to the clicked item.public void openSelection(int row, TreePath path)
row
- the row on which the selection is placed.path
- the path to the current selection.public void doubleClick(int row, TreePath path)
row
- the row on which the item is placed.path
- the path to the clicked item.public void renameSelectedItem()
public void addConnector(Object name)
name
- The feature to be added to the Connector attributepublic int count()
int
value representing the number of components in our container.public void dragGestureRecognized(DragGestureEvent e)
dragGestureRecognized
in interface DragGestureListener
dragGestureRecognized
in class BaseUI
e
- the DragGestureEvent describing the gesture that has just occurred.public void dragDropEnd(DragSourceDropEvent e)
dragDropEnd
in interface DragSourceListener
dragDropEnd
in class BaseUI
e
- this parameter provides information about the originator of the drag/drop event.public void drop(DropTargetDropEvent e)
drop
in interface DropTargetListener
drop
in class BaseUI
e
- This parameter reports for drop actions that reflect the current state of the
drag-and-drop operation.public void dragOver(DropTargetDragEvent e)
dragOver
in interface DropTargetListener
dragOver
in class BaseUI
e
- This parameter reports for drag actions that reflect the current
state of the drag operation.public boolean differentRoots(BaseConfiguration one, BaseConfiguration two)
public ContainerConfig rootContainer(BaseConfiguration bc)
public ContainerConfig selectedContainer()
public void moveComponent(String name, Point p)
name
- the name of the Component.p
- the position of the Component.public void moveOneComponent(String name, Point p, boolean giveMessage)
name
- the name of the Component.p
- the position of the Component.giveMessage
- if this parameter is true an info message is
displayed if it is not allowed to move the specified Component to the specified place.public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- this parameter describes the performed action.public void valueChanged(TreeSelectionEvent event)
valueChanged
in interface TreeSelectionListener
event
- the event that characterizes the change.public Object getSelectedItem()
public Vector getSelectedItems()
public int getSelectedIndex()
public int[] getSelectedIndices()
public void setSelectedIndex(int index)
index
- The new selectedIndex valuepublic void clearSelection()
public void enableToolbarItems(String[] actionNames, boolean enabled)
actionNames
- this parameter specifies the names of the items.enabled
- this parameter specifies if the tool bar items are enabled/disabled.public void enableToolbarItem(String actionName, boolean enabled)
actionName
- this parameter specifies the name of the item.enabled
- this parameter specifies if the tool bar item is enabled/disabled.public void addEnabledCB(JPopupMenu menu, Object sel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |