cz.cuni.pogamut.posh.widget.kidview
Class SimpleSenseWidget

Package class diagram package SimpleSenseWidget
java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by cz.cuni.pogamut.posh.widget.PoshWidget<T>
          extended by cz.cuni.pogamut.posh.widget.kidview.SimpleBasicWidget<T>
              extended by cz.cuni.pogamut.posh.widget.kidview.SimpleSenseWidget
All Implemented Interfaces:
cz.cuni.amis.pogamut.sposh.elements.PoshElementListener, PropertyChangeListener, EventListener, Accessible, org.netbeans.api.visual.action.PopupMenuProvider

public class SimpleSenseWidget
extends SimpleBasicWidget<T>

Representation of Sense in KidView.

Author:
Honza

Nested Class Summary
 
Nested classes/interfaces inherited from class cz.cuni.pogamut.posh.widget.PoshWidget
PoshWidget.PropertyNode
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.Widget.Dependency
 
Field Summary
static String DEFAULT_FAIL_SENSE
           
static String DEFAULT_SUCCEED_SENSE
           
 
Fields inherited from class cz.cuni.pogamut.posh.widget.PoshWidget
height, propertyNode, width
 
Method Summary
protected  void addChildWidget(cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode)
          This is called when node is added as child
protected  List<AbstractMenuAction> createMenuActions()
          Create actions for context menu.
protected  org.openide.nodes.Sheet createSheet()
          Create Node.Sheet for poroperties of this widget.
 void elementPropertyChange(PropertyChangeEvent evt)
          This is a method that is supposed to handle property changes of the lap element.
protected  List<AbstractAcceptAction> getAcceptProviders()
          Return list of acceptors that will do something when proper Transferable is dropped on the widget.
 String getHeadlineText()
          Get actual text of headline.
protected  PoshNodeType getType()
          Get type of widget, in this case type of PoshElement
 
Methods inherited from class cz.cuni.pogamut.posh.widget.kidview.SimpleBasicWidget
addTriggeredActionWidgets, addTriggeredActionWidgets, changeTriggeredActionWidgets, deleteWidgetFromScene, getAssociatedWidget, getIndexOfElement, getPopupMenu, moveChildWidget, moveChildWidgetNode, nodeChanged
 
Methods inherited from class cz.cuni.pogamut.posh.widget.PoshWidget
calculateClientArea, createPropertiesNode, doRepaint, getChildNodes, getCommentText, getConnection, getDataNode, getParent, getPoshScene, getPropertiesNode, getRootWidget, isAncestor, isCollapsed, paintWidget, propertyChange, select, setCollapsed, setCommentText, setHeadlineText, toString, updateSources
 
Methods inherited from class org.netbeans.api.visual.widget.Widget
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getChildConstraint, getChildren, getClientArea, getCursor, getCursorAt, getDependencies, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isHitAt, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setResourceTable, setState, setToolTipText, setVisible, updateResources
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_FAIL_SENSE

public static final String DEFAULT_FAIL_SENSE
See Also:
Constant Field Values

DEFAULT_SUCCEED_SENSE

public static final String DEFAULT_SUCCEED_SENSE
See Also:
Constant Field Values
Method Detail

addChildWidget

protected void addChildWidget(cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode)
Description copied from class: SimpleBasicWidget
This is called when node is added as child

Specified by:
addChildWidget in class SimpleBasicWidget<cz.cuni.amis.pogamut.sposh.elements.Sense>

createMenuActions

protected List<AbstractMenuAction> createMenuActions()
Description copied from class: SimpleBasicWidget
Create actions for context menu.

Specified by:
createMenuActions in class SimpleBasicWidget<cz.cuni.amis.pogamut.sposh.elements.Sense>
Returns:
not null, list of actions for context menu

getHeadlineText

public String getHeadlineText()
Description copied from class: PoshWidget
Get actual text of headline. It should be same as the text from getName, but if name is too long, shorten it and append "..."

Overrides:
getHeadlineText in class PoshWidget<cz.cuni.amis.pogamut.sposh.elements.Sense>
Returns:
text of the headline label

getType

protected PoshNodeType getType()
Description copied from class: PoshWidget
Get type of widget, in this case type of PoshElement

Specified by:
getType in class PoshWidget<cz.cuni.amis.pogamut.sposh.elements.Sense>
Returns:
type of PoshElement this Widget represents.

elementPropertyChange

public void elementPropertyChange(PropertyChangeEvent evt)
Description copied from class: PoshWidget
This is a method that is supposed to handle property changes of the lap element.

Specified by:
elementPropertyChange in class PoshWidget<cz.cuni.amis.pogamut.sposh.elements.Sense>
Parameters:
evt - description of change

getAcceptProviders

protected List<AbstractAcceptAction> getAcceptProviders()
Description copied from class: PoshWidget
Return list of acceptors that will do something when proper Transferable is dropped on the widget.

Specified by:
getAcceptProviders in class PoshWidget<cz.cuni.amis.pogamut.sposh.elements.Sense>
Returns:
List of DnD accepting providers. Never null.

createSheet

protected org.openide.nodes.Sheet createSheet()
Description copied from class: PoshWidget
Create Node.Sheet for poroperties of this widget.

Overrides:
createSheet in class PoshWidget<cz.cuni.amis.pogamut.sposh.elements.Sense>
Returns:


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.