mima.presentation.gwt.nodecore
Class NodeCore
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
mima.presentation.gwt.nodecomponent.NodeComponent
mima.presentation.gwt.nodecore.NodeCore
- All Implemented Interfaces:
- com.google.gwt.user.client.EventListener, NodeObserver
public class NodeCore
- extends NodeComponent
- implements NodeObserver
- Author:
- Virginio Carfagno
Constructor Summary |
NodeCore(Node node,
boolean isComposeRight)
|
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 |
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
_node
private Node _node
_nodeCore
private com.google.gwt.user.client.ui.HorizontalPanel _nodeCore
_noteIconButton
private com.google.gwt.user.client.ui.Widget _noteIconButton
_titleLabel
private com.google.gwt.user.client.ui.Label _titleLabel
NodeCore
public NodeCore(Node node,
boolean isComposeRight)
composeNodeCore
private void composeNodeCore(boolean isComposeRight)
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()
deregisterObserver
public void deregisterObserver()
getAbsoluteEdgeConnectionPointY
public int getAbsoluteEdgeConnectionPointY()
- Specified by:
getAbsoluteEdgeConnectionPointY
in class NodeComponent
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()