|
||||||||||
| 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>
| 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 to the envelope at the specified position. |
T |
getChild(int position)
Typed Wrapper for Widget.getChildren(). |
IPresenter |
getPresenter()
|
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 from the envelope. |
void |
setPresenter(IPresenter newPresenter)
|
protected abstract void |
updateChildrenPositions()
|
| 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 |
| Field Detail |
|---|
protected final ShedScene scene
| Constructor Detail |
|---|
protected AbstractShedEnvelope(ShedScene scene)
| Method Detail |
|---|
protected abstract void updateChildrenPositions()
public final void add(T newWidget,
int position)
IShedEnvelope
add in interface IShedEnvelope<T extends org.netbeans.api.visual.widget.Widget>newWidget - widget to addposition - where to put widgetpublic 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)
IShedEnvelope
remove in interface IShedEnvelope<T extends org.netbeans.api.visual.widget.Widget>removedWidget - widget to remove from the envelope.public 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()
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 | |||||||||