cz.cuni.pogamut.shed.widget
Class ExpandedActionEnvelope

Package class diagram package ExpandedActionEnvelope
java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by cz.cuni.pogamut.shed.widget.ExpandedActionEnvelope
All Implemented Interfaces:
IPresentedWidget, Accessible

public class ExpandedActionEnvelope
extends org.netbeans.api.visual.widget.Widget
implements IPresentedWidget

This class is used as a container for expanded TriggeredAction. Basically it has exactly one child at all times (AttachmentEnvelope) that contains expanded action widgets. This widget is presentable and when the action reference changes, so must the AttachmentEnvelope. Why not use AttachmentEnvelope directly? Because widget that switches its content must be presentable and there could be some nasties when replacing old presentable attachment with a new one.

Author:
Honza Havlicek
See Also:
used for CE, drives, used for AP

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.Widget.Dependency
 
Method Summary
 org.netbeans.api.visual.anchor.Anchor getAnchor()
          Anchor is fixed at left side, coords [0,ShedWidget.height].
 IPresenter getPresenter()
          Get presenter of the widget.
 void changeAttachmentWidget(AttachmentEnvelope newAttachmentEnvelope)
          Take the current attachment envelope, remove its branch ({@link ShedScene#removeBranch(org.netbeans.api.visual.widget.Widget) ) and add newly passed attachment as content of this envelope.
 void setPresenter(IPresenter newPresenter)
           
 
Methods inherited from class org.netbeans.api.visual.widget.Widget
addDependency, addChild, addChild, addChild, addChild, addChildren, bringToBack, bringToFront, calculateClientArea, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getClientArea, getCursor, getCursorAt, getDependencies, getFont, getForeground, getGraphics, getChildConstraint, getChildren, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isEnabled, isHitAt, isCheckClipping, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeDependency, removeFromParent, removeChild, removeChildren, removeChildren, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, setCheckClipping, setChildConstraint, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setResourceTable, setState, setToolTipText, setVisible, updateResources
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

changeAttachmentWidget

public void changeAttachmentWidget(AttachmentEnvelope newAttachmentEnvelope)
Take the current attachment envelope, remove its branch ({@link ShedScene#removeBranch(org.netbeans.api.visual.widget.Widget) ) and add newly passed attachment as content of this envelope.

Parameters:
newAttachmentEnvelope - Replacement for old attachment envelope.

getPresenter

public IPresenter getPresenter()
Description copied from interface: IPresentedWidget
Get presenter of the widget.

Specified by:
getPresenter in interface IPresentedWidget

setPresenter

public void setPresenter(IPresenter newPresenter)

getAnchor

public org.netbeans.api.visual.anchor.Anchor getAnchor()
Anchor is fixed at left side, coords [0,ShedWidget.height].



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