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

Package class diagram package SimpleCompetenceElementWidget
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.SimpleCompetenceElementWidget
All Implemented Interfaces:
cz.cuni.amis.pogamut.sposh.elements.PoshElementListener, PropertyChangeListener, EventListener, Accessible, org.netbeans.api.visual.action.PopupMenuProvider

public class SimpleCompetenceElementWidget
extends SimpleBasicWidget<T>

Widget representing Competence Element and its only possible child CompetenceElement (so this widget represents two data nodes) 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
 
Fields inherited from class cz.cuni.pogamut.posh.widget.PoshWidget
height, propertyNode, width
 
Constructor Summary
SimpleCompetenceElementWidget(PoshScene poshScene, cz.cuni.amis.pogamut.sposh.elements.CompetenceElement dataNode, PoshWidget<? extends cz.cuni.amis.pogamut.sposh.elements.PoshElement> parent)
           
 
Method Summary
protected  void addChildWidget(cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode)
          Create proper widget from child data node.
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.
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, getHeadlineText, 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
 

Constructor Detail

SimpleCompetenceElementWidget

public SimpleCompetenceElementWidget(PoshScene poshScene,
                                     cz.cuni.amis.pogamut.sposh.elements.CompetenceElement dataNode,
                                     PoshWidget<? extends cz.cuni.amis.pogamut.sposh.elements.PoshElement> parent)
Method Detail

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.CompetenceElement>
Returns:
type of PoshElement this Widget represents.

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.CompetenceElement>
Returns:
not null, list of actions for context menu

addChildWidget

protected void addChildWidget(cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode)
Create proper widget from child data node.

Specified by:
addChildWidget in class SimpleBasicWidget<cz.cuni.amis.pogamut.sposh.elements.CompetenceElement>
Parameters:
dataNode - DataNode that was added as child to associated data node

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.CompetenceElement>
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.CompetenceElement>
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.CompetenceElement>
Returns:


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