mima.presentation.gwt.node
Class NodeView

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by mima.presentation.gwt.node.NodeView
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, NodeObserver
Direct Known Subclasses:
CentralNodeView, SubNodeView

public abstract class NodeView
extends com.google.gwt.user.client.ui.Composite
implements NodeObserver

Author:
Virginio Carfagno

Nested Class Summary
protected static class NodeView.HidePopupMenuCommand
           
 
Field Summary
private  Node _node
           
private  NodeComponent _nodeComponent
           
private  com.google.gwt.user.client.ui.VerticalPanel _nodeComponentContainer
           
private  NodeCore _nodeCore
           
private static java.lang.String COMMAND_TITLE_CREATE_SUBNODE
           
private static java.lang.String COMMAND_TITLE_EDIT_NODE_TITLE
           
private static java.lang.String COMMAND_TITLE_EXPAND_ALL_SUBNODES
           
private static java.lang.String COMMAND_TITLE_PASTE_NODE
           
private static java.lang.String COMMAND_TITLE_REMOVE_LINK
           
private static java.lang.String COMMAND_TITLE_REMOVE_NOTE
           
private static java.lang.String COMMAND_TITLE_SET_CIRCLE_FRAME
           
private static java.lang.String COMMAND_TITLE_SET_LINK
           
private static java.lang.String COMMAND_TITLE_SET_NOTE
           
private static java.lang.String COMMAND_TITLE_SET_RECTANGLE_FRAME
           
protected static SubNode CuttedSubNode
           
private static java.lang.String FRAME_MENU
           
protected static boolean IsCreateSubNode
           
 
Constructor Summary
protected NodeView(Node node, boolean isComposeRight)
           
 
Method Summary
private  com.google.gwt.user.client.Command createCreateSubNodeCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)
           
private  com.google.gwt.user.client.Command createEditNodeTitleCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)
           
private  com.google.gwt.user.client.Command createExpandAllSubNodesCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)
           
private  com.google.gwt.user.client.ui.MenuBar createFrameMenu(com.google.gwt.user.client.ui.PopupPanel popupMenu)
           
private  com.google.gwt.user.client.ui.VerticalPanel createNodeComponentContainer()
           
private  com.google.gwt.user.client.Command createNodeEditorCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu, boolean isEditLink)
           
private  NodeComponent createNodeFrame()
           
private  com.google.gwt.user.client.Command createPasteNodeCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)
           
private  com.google.gwt.user.client.ui.PopupPanel createPopupMenu()
           
protected  com.google.gwt.user.client.ui.MenuBar createPopupMenu(com.google.gwt.user.client.ui.PopupPanel popupPanel)
           
private  com.google.gwt.user.client.Command createRemoveLinkCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)
           
private  com.google.gwt.user.client.Command createRemoveNoteCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)
           
private  com.google.gwt.user.client.Command createSetCircleFrameCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)
           
private  com.google.gwt.user.client.Command createSetRectangleFrameCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)
           
 void deregisterObserver()
           
 int getAbsoluteEdgeConnectionPointY()
           
protected  Node getNode()
           
 java.lang.String getNodeTitle()
          This method was introduced for testing with Pattern Window Driver.
 void nodeChanged()
           
private  void showPopupMenu(int x, int y)
           
protected  void showTitleEditor(boolean isCreateSubNode)
           
private  void updateNodeComponentContainer()
           
private  void updateNodeFrame()
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getElement, initWidget, onAttach, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onBrowserEvent, onLoad, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMMAND_TITLE_CREATE_SUBNODE

private static final java.lang.String COMMAND_TITLE_CREATE_SUBNODE
See Also:
Constant Field Values

COMMAND_TITLE_EDIT_NODE_TITLE

private static final java.lang.String COMMAND_TITLE_EDIT_NODE_TITLE
See Also:
Constant Field Values

COMMAND_TITLE_EXPAND_ALL_SUBNODES

private static final java.lang.String COMMAND_TITLE_EXPAND_ALL_SUBNODES
See Also:
Constant Field Values

COMMAND_TITLE_PASTE_NODE

private static final java.lang.String COMMAND_TITLE_PASTE_NODE
See Also:
Constant Field Values

COMMAND_TITLE_REMOVE_LINK

private static final java.lang.String COMMAND_TITLE_REMOVE_LINK
See Also:
Constant Field Values

COMMAND_TITLE_REMOVE_NOTE

private static final java.lang.String COMMAND_TITLE_REMOVE_NOTE
See Also:
Constant Field Values

COMMAND_TITLE_SET_CIRCLE_FRAME

private static final java.lang.String COMMAND_TITLE_SET_CIRCLE_FRAME
See Also:
Constant Field Values

COMMAND_TITLE_SET_LINK

private static final java.lang.String COMMAND_TITLE_SET_LINK
See Also:
Constant Field Values

COMMAND_TITLE_SET_NOTE

private static final java.lang.String COMMAND_TITLE_SET_NOTE
See Also:
Constant Field Values

COMMAND_TITLE_SET_RECTANGLE_FRAME

private static final java.lang.String COMMAND_TITLE_SET_RECTANGLE_FRAME
See Also:
Constant Field Values

CuttedSubNode

protected static SubNode CuttedSubNode

FRAME_MENU

private static final java.lang.String FRAME_MENU
See Also:
Constant Field Values

IsCreateSubNode

protected static boolean IsCreateSubNode

_node

private Node _node

_nodeComponent

private NodeComponent _nodeComponent

_nodeComponentContainer

private com.google.gwt.user.client.ui.VerticalPanel _nodeComponentContainer

_nodeCore

private NodeCore _nodeCore
Constructor Detail

NodeView

protected NodeView(Node node,
                   boolean isComposeRight)
Method Detail

createCreateSubNodeCommand

private com.google.gwt.user.client.Command createCreateSubNodeCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)

createEditNodeTitleCommand

private com.google.gwt.user.client.Command createEditNodeTitleCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)

createExpandAllSubNodesCommand

private com.google.gwt.user.client.Command createExpandAllSubNodesCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)

createFrameMenu

private com.google.gwt.user.client.ui.MenuBar createFrameMenu(com.google.gwt.user.client.ui.PopupPanel popupMenu)

createNodeComponentContainer

private com.google.gwt.user.client.ui.VerticalPanel createNodeComponentContainer()

createNodeEditorCommand

private com.google.gwt.user.client.Command createNodeEditorCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu,
                                                                   boolean isEditLink)

createNodeFrame

private NodeComponent createNodeFrame()

createPasteNodeCommand

private com.google.gwt.user.client.Command createPasteNodeCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)

createPopupMenu

private com.google.gwt.user.client.ui.PopupPanel createPopupMenu()

createPopupMenu

protected com.google.gwt.user.client.ui.MenuBar createPopupMenu(com.google.gwt.user.client.ui.PopupPanel popupPanel)

createRemoveLinkCommand

private com.google.gwt.user.client.Command createRemoveLinkCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)

createRemoveNoteCommand

private com.google.gwt.user.client.Command createRemoveNoteCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)

createSetCircleFrameCommand

private com.google.gwt.user.client.Command createSetCircleFrameCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)

createSetRectangleFrameCommand

private com.google.gwt.user.client.Command createSetRectangleFrameCommand(com.google.gwt.user.client.ui.PopupPanel popupMenu)

deregisterObserver

public void deregisterObserver()

getAbsoluteEdgeConnectionPointY

public int getAbsoluteEdgeConnectionPointY()

getNode

protected Node getNode()

getNodeTitle

public java.lang.String getNodeTitle()
This method was introduced for testing with Pattern Window Driver.


nodeChanged

public void nodeChanged()
Specified by:
nodeChanged in interface NodeObserver

showPopupMenu

private void showPopupMenu(int x,
                           int y)

showTitleEditor

protected void showTitleEditor(boolean isCreateSubNode)

updateNodeComponentContainer

private void updateNodeComponentContainer()

updateNodeFrame

private void updateNodeFrame()