|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.netbeans.api.visual.widget.Widget
cz.cuni.pogamut.posh.widget.PoshWidget<T>
cz.cuni.pogamut.posh.widget.kidview.SimpleBasicWidget<T>
public abstract class SimpleBasicWidget<T extends cz.cuni.amis.pogamut.sposh.elements.PoshElement>
Basic widget for KidView. Events are handled individually in methods addChildWidget deleteWidgetFromScene moveChildWidget
| 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 | |
|---|---|
protected |
SimpleBasicWidget(PoshScene poshScene,
T dataNode,
PoshWidget<? extends cz.cuni.amis.pogamut.sposh.elements.PoshElement> parent,
String name)
|
| Method Summary | |
|---|---|
protected abstract void |
addChildWidget(cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode)
This is called when node is added as child |
protected void |
addTriggeredActionWidgets(int index,
cz.cuni.amis.pogamut.sposh.elements.TriggeredAction dataNode)
Add correct widget that is going to represent triggered action (competence, action pattern or action) to the place of the tree. |
protected void |
addTriggeredActionWidgets(cz.cuni.amis.pogamut.sposh.elements.TriggeredAction dataNode)
Add correct widget that is going to represent triggered action (competence, action pattern or action) to the place of the tree. |
protected void |
changeTriggeredActionWidgets(cz.cuni.amis.pogamut.sposh.elements.TriggeredAction ta)
Take this widget, remove it and on the original place where this widget was place proper representaion of trigggered action (by addTriggeredActionWidgets) |
protected abstract List<AbstractMenuAction> |
createMenuActions()
Create actions for context menu. |
protected void |
deleteWidgetFromScene(cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode)
Common function for deleting widget from scene |
protected PoshWidget |
getAssociatedWidget(List<PoshWidget<? extends cz.cuni.amis.pogamut.sposh.elements.PoshElement>> list,
cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode)
Get widget from the list that has dataNodeas associated node. |
protected int |
getIndexOfElement(List list,
Object element)
Get indexof element in the list that has same reference as the passed object. |
JPopupMenu |
getPopupMenu(org.netbeans.api.visual.widget.Widget arg0,
Point arg1)
Return menu associated with the widget (will be used as context menu). |
protected void |
moveChildWidget(cz.cuni.amis.pogamut.sposh.elements.PoshElement movedChildDN)
Key functionm that is called when dataNode is moved Since KidView closely resembles PoshPlan structure, just one function for all should be enough. |
protected void |
moveChildWidgetNode(int from,
int to)
Move element in getChildNodes() |
void |
nodeChanged(cz.cuni.amis.pogamut.sposh.PoshTreeEvent event,
cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode)
|
| Methods inherited from class cz.cuni.pogamut.posh.widget.PoshWidget |
|---|
calculateClientArea, createPropertiesNode, createSheet, doRepaint, elementPropertyChange, getAcceptProviders, getChildNodes, getCommentText, getConnection, getDataNode, getHeadlineText, getParent, getPoshScene, getPropertiesNode, getRootWidget, getType, 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 |
|---|
protected SimpleBasicWidget(PoshScene poshScene,
T dataNode,
PoshWidget<? extends cz.cuni.amis.pogamut.sposh.elements.PoshElement> parent,
String name)
| Method Detail |
|---|
public final void nodeChanged(cz.cuni.amis.pogamut.sposh.PoshTreeEvent event,
cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode)
protected abstract void addChildWidget(cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode)
dataNode - protected void moveChildWidget(cz.cuni.amis.pogamut.sposh.elements.PoshElement movedChildDN)
movedChildDN - data node that was moved in POSH plan.protected void deleteWidgetFromScene(cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode)
protected abstract List<AbstractMenuAction> createMenuActions()
public final JPopupMenu getPopupMenu(org.netbeans.api.visual.widget.Widget arg0,
Point arg1)
PoshWidget
getPopupMenu in interface org.netbeans.api.visual.action.PopupMenuProvidergetPopupMenu in class PoshWidget<T extends cz.cuni.amis.pogamut.sposh.elements.PoshElement>arg0 - ignoredarg1 - ignored
protected void addTriggeredActionWidgets(cz.cuni.amis.pogamut.sposh.elements.TriggeredAction dataNode)
dataNode - triggered widget
protected void addTriggeredActionWidgets(int index,
cz.cuni.amis.pogamut.sposh.elements.TriggeredAction dataNode)
dataNode - triggered widgetprotected void changeTriggeredActionWidgets(cz.cuni.amis.pogamut.sposh.elements.TriggeredAction ta)
addTriggeredActionWidgets)
ta - triggered action we are adding to place of this widget.
protected final int getIndexOfElement(List list,
Object element)
list - List in which we are looking.element - object we are looking for in the list.
protected final PoshWidget getAssociatedWidget(List<PoshWidget<? extends cz.cuni.amis.pogamut.sposh.elements.PoshElement>> list,
cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode)
list - dataNode -
protected final void moveChildWidgetNode(int from,
int to)
from - index in the list of children the child is moved fromto - index in the list of children the child is moved to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||