|
||||||||||
| 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.ShedWidget
T - Type of element this widget is attached to.public class ShedWidget
Ancestor of all widgets in the ShedScene. It provides common
infrastructure and helper methods for all widgets, e.g. drag and drop,
display name ect.
| Nested Class Summary | |
|---|---|
static class |
ShedWidget.Variable
Structure holding info about variable shown in the widget. |
| Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget |
|---|
org.netbeans.api.visual.widget.Widget.Dependency |
| Field Summary | |
|---|---|
protected IPresenter |
actionProvider
Provider of actions for this widget, menu, accept and others. |
protected Color |
borderColor
Color of the border |
protected Color |
color
Color of the widget |
protected static int |
height
Default height of ShedWidget. |
protected static int |
width
Default width of ShedWidget. |
| Method Summary | |
|---|---|
void |
addBreakpoint(boolean single)
Show strip at the right side of the widget |
protected Rectangle |
calculateClientArea()
|
String |
getDisplayName()
Get display name of the widget |
JPopupMenu |
getPopupMenu(org.netbeans.api.visual.widget.Widget widget,
Point localLocation)
Return menu associated with the widget (will be used as context menu). |
IPresenter |
getPresenter()
Get presenter of the widget. |
protected void |
paintWidget()
|
void |
removeBreakpoint()
Remove colored strip on the right side of widget that was representing the breakpoint. |
void |
setActiveIntensity(int percent)
Set intensity of red border, if 0, border will have color of widget, if 100, border will be bright red. |
void |
setDisplayName(String newDisplayName)
|
void |
setError(List<ShedWidget.Variable> newMissing)
Set list of lines that will be shown in red bold font under presentVars lines. |
void |
setPresent(List<ShedWidget.Variable> newPresent)
Set list of lines that will be shown in bold font under title. |
void |
setPresenter(IPresenter newPresenter)
Set new presenter of the widget. |
void |
setUnused(List<ShedWidget.Variable> newUnused)
Set list of lines that will be shown in italic font under errorVars lines. |
String |
toString()
|
| 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 |
| Field Detail |
|---|
protected Color color
protected Color borderColor
protected IPresenter actionProvider
protected static final int width
ShedWidget.
protected static final int height
ShedWidget.
| Method Detail |
|---|
public final String getDisplayName()
public final void setDisplayName(String newDisplayName)
public final void setPresent(List<ShedWidget.Variable> newPresent)
newPresent - New list representations of presentVars variablespublic final void setError(List<ShedWidget.Variable> newMissing)
newMissing - New list representations of presentVars variablespublic final void setUnused(List<ShedWidget.Variable> newUnused)
newUnused - New list representations of errorVars variablespublic void setActiveIntensity(int percent)
percent - Intensity in percents, 0-100public final IPresenter getPresenter()
IPresentedWidget
getPresenter in interface IPresentedWidgetpublic final void setPresenter(IPresenter newPresenter)
newPresenter - New presenter.public void addBreakpoint(boolean single)
public void removeBreakpoint()
public final JPopupMenu getPopupMenu(org.netbeans.api.visual.widget.Widget widget,
Point localLocation)
getPopupMenu in interface org.netbeans.api.visual.action.PopupMenuProviderwidget - widget on which the popup menu is requested (always this)localLocation - Where was popup menu invoked, if null, invoked by
keyboard
#getMenuActions()
.protected Rectangle calculateClientArea()
calculateClientArea in class org.netbeans.api.visual.widget.Widgetprotected void paintWidget()
paintWidget in class org.netbeans.api.visual.widget.Widgetpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||