mima.presentation.gwt.mindmap
Class NodeCore

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.nodeframe.NodeComponent
                  extended by mima.presentation.gwt.mindmap.NodeCore
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, NodeObserver

 class NodeCore
extends NodeComponent
implements NodeObserver

Author:
Virginio Carfagno

Field Summary
private  com.google.gwt.user.client.ui.Image _expansionIconButton
           
private  com.google.gwt.user.client.ui.HorizontalPanel _iconButtons
           
private  com.google.gwt.user.client.ui.Widget _linkIconButton
           
private  com.google.gwt.user.client.ui.HorizontalPanel _nodeCore
           
protected  NodeView _nodeView
           
private  com.google.gwt.user.client.ui.Widget _noteIconButton
           
private  com.google.gwt.user.client.ui.Label _titleLabel
           
private static java.lang.String COLLAPSED_ICON_URL
           
private static java.lang.String EXPANDED_ICON_URL
           
private static java.lang.String LINK_ICON_URL
           
private static java.lang.String NOTE_ICON_URL
           
private static java.lang.String STYLE_NAME
           
private static java.lang.String STYLE_NAME_SELECTED
           
 
Constructor Summary
NodeCore(NodeView nodeView)
           
 
Method Summary
private  void composeNodeCore()
           
private  com.google.gwt.user.client.ui.Image createExpansionIcon()
           
private  com.google.gwt.user.client.ui.Image createIcon(java.lang.String iconURL)
           
private  com.google.gwt.user.client.ui.Widget createLinkIconButton()
           
private  com.google.gwt.user.client.ui.Widget createNoteIconButton()
           
private  com.google.gwt.user.client.ui.MouseListener createSelectionListener()
           
private  com.google.gwt.user.client.ui.Label createTitleLabel()
           
private  com.google.gwt.user.client.ui.ClickListener createToggleExpansionListener()
           
 int getAbsoluteEdgeConnectionPointY()
           
protected  Node getNode()
           
 java.lang.String getNodeTitle()
          This method was introduced for testing with Pattern Window Driver.
 void nodeChanged()
           
protected  void onLoad()
           
private  void positionExpansionIconsToLeft()
           
private  void positionExpansionIconsToRight()
           
private  void updateExpansionIcon()
           
private  void updateLinkIconButton()
           
private  void updateNoteIconButton()
           
private  void updateTitle()
           
private  void updateView()
           
 
Methods inherited from class mima.presentation.gwt.nodeframe.NodeComponent
fireNodeComponentChanged, setNodeFrame
 
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, 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

COLLAPSED_ICON_URL

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

EXPANDED_ICON_URL

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

LINK_ICON_URL

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

NOTE_ICON_URL

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

STYLE_NAME

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

STYLE_NAME_SELECTED

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

_expansionIconButton

private com.google.gwt.user.client.ui.Image _expansionIconButton

_iconButtons

private com.google.gwt.user.client.ui.HorizontalPanel _iconButtons

_linkIconButton

private com.google.gwt.user.client.ui.Widget _linkIconButton

_nodeCore

private com.google.gwt.user.client.ui.HorizontalPanel _nodeCore

_nodeView

protected NodeView _nodeView

_noteIconButton

private com.google.gwt.user.client.ui.Widget _noteIconButton

_titleLabel

private com.google.gwt.user.client.ui.Label _titleLabel
Constructor Detail

NodeCore

NodeCore(NodeView nodeView)
Method Detail

composeNodeCore

private void composeNodeCore()

createExpansionIcon

private com.google.gwt.user.client.ui.Image createExpansionIcon()

createIcon

private com.google.gwt.user.client.ui.Image createIcon(java.lang.String iconURL)

createLinkIconButton

private com.google.gwt.user.client.ui.Widget createLinkIconButton()

createNoteIconButton

private com.google.gwt.user.client.ui.Widget createNoteIconButton()

createSelectionListener

private com.google.gwt.user.client.ui.MouseListener createSelectionListener()

createTitleLabel

private com.google.gwt.user.client.ui.Label createTitleLabel()

createToggleExpansionListener

private com.google.gwt.user.client.ui.ClickListener createToggleExpansionListener()

getAbsoluteEdgeConnectionPointY

public int getAbsoluteEdgeConnectionPointY()
Specified by:
getAbsoluteEdgeConnectionPointY in class NodeComponent

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

onLoad

protected void onLoad()
Overrides:
onLoad in class com.google.gwt.user.client.ui.Widget

positionExpansionIconsToLeft

private void positionExpansionIconsToLeft()

positionExpansionIconsToRight

private void positionExpansionIconsToRight()

updateExpansionIcon

private void updateExpansionIcon()

updateLinkIconButton

private void updateLinkIconButton()

updateNoteIconButton

private void updateNoteIconButton()

updateTitle

private void updateTitle()

updateView

private void updateView()