|
||||||||||
| 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.shed.widget.AbstractShedEnvelope<T>
T - Type of children the envelope will contain.public abstract class AbstractShedEnvelope<T extends org.netbeans.api.visual.widget.Widget>
Envelope that should contain multiple widgets of same type (e.g. drives, choices, senses...).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget |
|---|
org.netbeans.api.visual.widget.Widget.Dependency |
| Field Summary | |
|---|---|
protected ShedScene |
scene
|
| Constructor Summary | |
|---|---|
protected |
AbstractShedEnvelope(ShedScene scene)
|
| Method Summary | |
|---|---|
void |
add(T newWidget)
Add widget to the envelope behind the last element |
void |
add(T newWidget,
int position)
Add widget at specified position. |
T |
getChild(int position)
Typed Wrapper for Widget.getChildren().List.get(int). |
IPresenter |
getPresenter()
Get presenter of the widget. |
void |
move(int absoluteIndex,
T movedWidget)
Move the widget relative to the other widgets. |
int |
numberOfChildren()
Get number of children, used for type safe looping. |
void |
remove(T removedWidget)
Remove widget and its branch from the scene. |
void |
setPresenter(IPresenter newPresenter)
|
protected abstract void |
updateChildrenPositions()
Method called when child widget is added/moved/deleted. |
| Methods inherited from class org.netbeans.api.visual.widget.Widget |
|---|
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, calculateClientArea, 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, paintWidget, 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, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ShedScene scene
| Constructor Detail |
|---|
protected AbstractShedEnvelope(ShedScene scene)
| Method Detail |
|---|
protected abstract void updateChildrenPositions()
Widget.setPreferredLocation(java.awt.Point).
public final void add(T newWidget,
int position)
add in interface IShedEnvelope<T extends org.netbeans.api.visual.widget.Widget>newWidget - position - public final void add(T newWidget)
newWidget - Widget that wll be added to the envelope at the last
place
public final void move(int absoluteIndex,
T movedWidget)
IShedEnvelope
move in interface IShedEnvelope<T extends org.netbeans.api.visual.widget.Widget>movedWidget - widget to movepublic final void remove(T removedWidget)
remove in interface IShedEnvelope<T extends org.netbeans.api.visual.widget.Widget>removedWidget - Branch to removepublic final T getChild(int position)
Widget.getChildren().List.get(int). Get
child at specified position and return it.
position - position of the child we want.
public final int numberOfChildren()
public final IPresenter getPresenter()
IPresentedWidget
getPresenter in interface IPresentedWidgetpublic final void setPresenter(IPresenter newPresenter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||